Using NS3000/iX Network Services (36920-90008)

190 Chapter 8
NetCI
Writing and Executing Script Files
Table 8-1 Reserved Characters
Special Slash Character
When a script file is executed on a node or list, the MPE mode is in
effect. For example, when you enter
NetCI>Y PLAY SCRIPT1
you are in MPE mode. MPE assumes only MPE commands are executed
in MPE mode. If the script file contains NetCI commands, you must
precede these commands with a special slash (/) character in order for
the commands to be interpreted as NetCI commands. Refer to SCRIPT1
in the following example on the use of the slash character.
Comment Command
A NetCI COMMENT command is available to allow you to include
comments in a script file (containing NetCI commands) that will
execute in NetCI mode. Refer to Example 1 for using the NetCI
COMMENT command. Since there is an MPE COMMENT command, you can
also use this command in a script file (containing MPE commands) that
will execute on a node or list. When a script file executes on a node/list,
you will be in MPE mode. Refer to Example 2 for using the MPE
COMMENT command in a script file executing in MPE mode.
Example 1
This example executes a script file called SCRIPT1 containing NetCI
commands. To execute the script file, you enter
NetCI>PLAY SCRIPT1
Since you are executing SCRIPT1 in the NetCI mode, you are using the
NetCI COMMENT in the script file. The SCRIPT1 script file contains the
following commands:
Reserved Characters Substituted String
!u Current user name
!g Current group name
!a Current account name
!h Home node
!n Current or default node on which execution is
occurring
!! Indicates an exclamation mark and not a
substitution for a parms value or string