Using NS3000/iX Network Services (36920-90008)

Chapter 8 209
NetCI
Sample Applications
We will then assign all the nodes in NET3 to this list with the ALTLIST
command.
NetCI>ALTLIST ADD NET3 H,L,K,J,I,Y
We can verify this by entering the SHOWLIST command at the NetCI
prompt:
NetCI>SHOWLIST NET3
NET3
Nodes on list:
YIJKLH
Before executing the script file, we should create a disc file with a
bigger record size so there will be no data overflow. We will use the
BUILD command to create a disc file called ALLCONF with 10,000
records, each 80 characters long, and ASCII format. Next, we will run
NetCI and redirect all output to be saved in this file with the LOG
command.
:BUILD ALLCONF;REC=- 80,100,F,ASCII;DISC=10000
:RUN NETCI.PUB.SYS
To execute the GETCONF script file, enter
NetCI>LOG ALLCONF
NetCI>NET3 PLAY GETCONF
ALLNODES>/LOGRESET
ALLNODES>/EXIT
The script file will be executed sequentially on all the nodes in NET3.
After the script file is executed, we can then print the logfile, ALLCONF,
to view the network directory and configuration file information for all
the nodes in NET3.
Since it is likely that the script file will take awhile to execute, you may
want to create a job stream to execute it.
Sample Script File 2
This application shows how to install a new version of software and to
convert existing files for use with this new software. We will write a
script file, INSTALL, that copies the file, PROG, and the conversion
program, CONVERT, to a new group, NEWVERS, at each node in NET3. We
will then execute the CONVERT program to convert the file
(PROG.NEWVERS). After the conversion, we will purge the old file in the
APPLIC group (PROG.APPLIC) and rename the new converted file to the
same file name and group as the old file. You can use NetCI to perform
this task using one script file, INSTALL, and the PLAY global command.