tiktst
Demonstrates the features of the tik service.
tiktst [options]
where options are:
|
Option |
Specifies... |
|---|---|
|
-m n |
Test mode. The supported test modes are: 1 = One Natural Access event queue; ten contexts registered with that queue. 2 = Two Natural Access events queues; one context registered per queue. |
|
-t |
Tracing on a per-context basis. Set the per-context tracemask to trace DRIVER_EVENTS, DRIVER_COMMANDS, and DEBUG_BIT_0. |
|
-n numTicks |
Number of tick strings to request from the tik server. This value overrides the default TIK_START_PARM numTicks parameter. |
|
-f frequency |
Frequency of tick strings from the tik server. This value overrides the default TIK_START_PARM frequency parameter. |
tiktst is a tik service demonstration program that uses the tik service to interact with the tik server. tiktst uses Natural Access and tik APIs to start a timer on the tik server and receive tick strings at a specified frequency. As each tick string is received, it is printed to stdout.
The tik service, tik server, and test program are shipped as source only. To build the components:
Build the tik server by entering the following commands:
|
Operating system |
Commands |
|
Windows |
cd nms\ctaccess\demos\tiksvr |
|
UNIX |
cd /nms/ctaccess/demos/tiksvr |
Build the tik service by entering the following commands:
|
Operating system |
Commands |
|
Windows |
cd nms\ctaccess\demos\tiksvc |
|
UNIX |
cd /nms/ctaccess/demos/tiksvc |
Build the tik test program by entering the following commands:
|
Operating system |
Commands |
|
Windows |
cd nms\ctaccess\demos\tiktst |
|
UNIX |
cd /nms/ctaccess/demos/tiktst |
Ensure that the tik server, the tik service, and the tik test program are built.
Start the tik server by entering:
tiksvr
Ensure that ctdaemon is running and was initialized with the TIK,TIMGR service/service manager pair.
Start tiktst by entering the following at the prompt:
tiktst [-m n] [-n numTicks] [-f frequency]