Using NS3000/iX Network Services (36920-90008)

208 Chapter 8
NetCI
Sample Applications
Sample Applications
The following are sample NetCI applications that you can develop to
use in a production environment. You can write a script file containing
applicable commands, flow control statements, and data that will
automatically perform different operations on multiple remote nodes.
Sample Script File 1
This application summarizes the network configuration for each node
in NET3 of our sample internetwork. The following script will display all
the entries in the network directory file for the NETXPORT (Network
Transport) subsystem. We will write a script file called GETCONF that
contains NMMGR commands to be executed on each node in NET3.
Logging will also be used to send all output to an MPE log file called
ALLCONF. This log file will be interactively entered with the LOG
command before you execute the script file.
The GETCONF script file contains the following commands:
%file nmmgrcmd=$stdinx
reads input from the script file.
%run nmmgr.pub.sys
runs the NMMGR configuration program.
opendir nsdir.net.sys
opens the network directory file.
listdir displays information on all entries for all nodes.
openconf nsconf.net.sys
opens the current NS configuration information file.
versionconf “A.02.03”
verifies the configuration version.
pathconf=netxpor
t.ni.lan1
protocol.ip specifies the path for the configuration file to be read.
readconf displays the network configuration for the NETXPORT
subsystem.
exit exits NMMGR.
We are now ready to execute the script file, GETCONF, on all nodes in
NET3 of our sample internetwork. If you recall our sample configuration
file, node J was deleted from the NetCI configuration. However, we will
assume we have added node J back into the configuration. Now we will
crate a list called NET3 with the NEWLIST command.
NetCI>NEWLIST NET3