Using NS3000/iX Network Services (36920-90008)

Chapter 8 211
NetCI
Sample Applications
%run
prog.applic;info
= “showversion”
checks that the converted file has been converted for
use with the new version of software.
%tellop...**applic:
version a.01.01
installed & ready**
displays a message that the current software version
has been successfully installed and is ready for use.
We are now ready to execute the script file, INSTALL, on all nodes in
NET3 of our sample internetwork. If you recall from Sample Script
File 1, all nodes in NET3 are members of the list called NET3.
To execute the INSTALL script file, enter
NetCI>NET3 PLAY INSTALL H
If you specify the output to a log file, you can later scan the file for
errors. Additional MPE statements can be added to provide for more
robust error checking such as the handling of unexpected errors. For
example, if someone is running the application, the :PURGE command
will fail. We can use MPE commands such as :IF or :ELSE to also
modify the execution of the script file.
Sample Script File 3
This application shows how you can create a script file containing a job
stream for the nodes in NET3 of our sample internetwork. The following
script will contain the :STREAM job command for the different nodes.
When you execute the script file called SYSCONF, this will stream a job
file called CONFJOB which will then execute the SYSINFO program
(which lists the configuration information for the node).
All the commands in the CONFJOB job file may also be included in a
script file. However, we will assume you already have an existing job
file that contains these commands. You only need to create a script file
to stream the job file. By streaming an existing job file within a script
file, you do not need to type again all the commands from the job file
into the script file, and you can always run the job file in MPE.
The SYSCONF script file contains the following stream command:
%stream
confjob.util.sys
streams a job on a node.
Although the script file contains only one command line, it is sometimes
easier to enter PLAY SYSCONF than entering the entire command line.