Using NS3000/iX Network Services (36920-90008)

Chapter 8 203
NetCI
Scripting and Logging
Scripting and Logging
NetCI redirects both input and output when scripting and logging are
used simultaneously. When output is redirected, remember the
following:
1. During execution of the script file, the output mode specified in the
script file is always in effect. If the script file does not specify an
output mode, the mode prior to script file execution remains in effect.
2. After execution of the script file, the output mode prior to execution
takes effect again.
Input and output determine the operational mode in effect. It is only in
the logging operation mode that output is to both the screen and log file.
Refer to Table 8-2 to determine the input and output applicable to each
mode of operation.
Table 8-2 Operation Modes
Examples The following examples begin and end with the interactive operation
mode. Each example shows the operation and output mode in effect at a
particular time. The output can be redirected to either the screen or a
log file, or to both the screen and log file. The straight line under
Output Mode in each example indicates when and how long the output
is redirected to the screen, log file, or both. Notice from the examples
that the scripting operation mode is always in effect whenever a script
file is executing. However, logging mode may not always be in effect.
Example 1
Figure 8-6 shows both scripting and logging being activated. Before
execution of the script file, output is to the screen. When you execute
the script file with PLAY, the script file redirects output to FILE1. After
execution, output returns to the screen since this is the output mode
prior to execution. You do not need to specify the LOGRESET
command.
Operation Mode Input Output
Keyboard Script File Screen Log File
Scripting X X
Logging X X X
Scripting & Logging X X
Interactive
(No Logging and Scripting)
XX