Switch command, Considerations, Examples – HP NonStop G-Series User Manual
Page 92

Switch Command Interface (SWCI)
ServerNet Nomadic Disk (Release 2) User’s Guide — 523968-001
6- 22
SWITCH Command
SWITCH Command
The SWITCH command changes the switch position of the specified switch card. A
switch card can be in either the STRAIGHT position or the CROSSED position.
SC n
specifies the switch card by its slot number, which is an integer from 1 through 8.
The key switch on the SCC must be in the REMOTE position for this command to
succeed.
If the specified slot does not contain a switch card, SWCI returns an error
message.
STRAIGHT
Sets the switch in its straight position, as shown in
CROSSED
Sets the switch in its crossed position, as shown in
If neither STRAIGHT nor CROSSED is specified, the switch is toggled (switched from
its current position to the other position).
Considerations
•
The key switch on the SCC must be in the REMOTE position for this command to
succeed. If the key switch is in the LOCAL position, SWCI returns an error
message.
•
After a SWITCH command, SWCI verifies that the specified switch card has
changed position. If the command was successful, SWCI returns a message
stating so. If the command was unsuccessful, SWCI returns an error message.
•
A switch card malfunction might cause a switch to not respond to the SWITCH
command. After entering the SWITCH command, confirm that the specified switch
card is in the specified position by checking the response messages for the new
switch state.
Examples
•
To toggle the position of the switch card in slot 2 (currently in the straight position):
SWCI $NDSWA.#TERM>UNLOCK SC 2
SC 2 is unlocked
SWCI $NDSWA.#TERM>SWITCH SC 2
SC 2 is toggled from straight to crossed
SWCI $NDSWA.#TERM>LOCK SC 2
SC 2 is locked
Because neither straight nor crossed was specified, the switch moves to the
opposite of its current position (to the crossed position).
SWITCH SC n [ ,STRAIGHT | ,CROSSED ]