Using NS3000/iX Network Services (36920-90008)

Chapter 8 213
NetCI
Sample Applications
%/logreset resets output back to the screen.
We are now ready to execute the script file, NODCONF, on any node. For
example, to execute the script file on node L, enter
NetCI>L PLAY NODCONF
which will generate the system configuration listing for node L.
To execute the script file on all nodes in NET3, enter
NetCI>NET3 PLAY NODCONF
which will generate the system configuration listing for NET3. The
listings for node L and NET3 will be in the REPORT log file residing on
node K which is the management node.
Sample Script File 4
This application shows how you can create a script file called SYSOP
containing operations or jobs to be run at a particular time. The
following script file shows how you can effectively use flow control
commands to control the execution of these operations or jobs to be run
at particular times.
The SYSOP script file contains the following commands:
%/while hour < 24
% /comment The following operations are done between 8am and 5pm.
% /if hour > 7
% /if hour < 18
% showjob job=@j
% /else
% /comment This operation is done only at 8pm.
% /if hour = 20
% showjob job=@s
% /endif
% /comment At 10pm the following operation must be done.
% /if hour = 22
% listf @ipc@.maildb.hpoffice,2
% /endif
% /endif
% /endif
% /inc hour
% /comment Replace v in the following statement with the remaining
% /comment number of seconds until the next approximate hour.
% /wait v