ServerNet Nomadic Disk User's Guide
Switch Command Interface (SWCI)
ServerNet Nomadic Disk User’s Guide—425485-001
6-23
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 Figure 6-1 on page 6-24.
CROSSED
Sets the switch in its crossed position, as shown in Figure 6-1 on page 6-24.
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 before you can unlock 
a switch card. 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 ]










