Chapter 32. Basics of scripting for Workload Simulator 1115
There are four types of control statements:
CALL
IF/THEN/ELSE
SELECT
DO
The CALL statement shifts control of program execution from one procedure to another
procedure. The IF/THEN/ELSE statement and the SELECT statement group execute
statements selectively depending on conditions that exist. The DO statement group enables
the user to group statements logically and in some cases to execute statements repetitively.
32.4 WSim operator commands
The user can issue WSim operator commands to:
Initialize a simulated network.
Start a simulation run.
Query the status of a simulated network device.
End the simulation run.
The WSim operator commands can be entered when running WSim in the TSO foreground
session and when running WSim as a batch job.
A few examples of WSim operator commands are shown in Table 32-4.
Table 32-4 Samples of WSim operator commands
WSim operator command Result
I testnet Initialize the network named testnet.
I testnet,S Initialize the network named testnet and start the network activity.
S Start activity for all simulated resources in all initialized networks.
S testnet Start activity for all simulated resources in the network named
testnet.
Q Display the status of all initialized networks.
Q lu Display the status of the simulated resource named lu.
W lu Display response time statistics (RSTATS) for the simulated
resource named lu.
P Stop activity for all simulated resources in all networks.
P resourcename Stop activity for the resource named resourcename.
ZEND Causes orderly shutdown of the WSim and writes the message log
buffers to the log data set.