Lock command – HP NonStop G-Series User Manual
Page 75

Switch Command Interface (SWCI)
ServerNet Nomadic Disk User’s Guide—425485-001
6- 11
LOCK Command
LOCK Command
The LOCK command changes the specified switch card to the locked state.
SC n
specifies the slot number of the switch card to be locked.
n
is an integer from 1
through 8
Considerations
•
The key switch on the SCC must be in the REMOTE position for this command to
succeed.
•
If the command is successful, SWCI returns a message stating that the specified
switch card is now locked.
•
If the command is unsuccessful, SWCI returns an error message.
•
Locking a switch card is required when more than one SWCI process might be
accessing the same switch at the same time.
•
If the card is already locked, the LOCK command is rejected. If multiple SWCI
processes could be toggling switches at the same time, each SWCI process must
lock a switch (preventing a simultaneous action from another SWCI process), toggle
the switch, and then unlock it.
Example
To lock the switch card in slot 7:
SWCI $NDSWA.#TERM> LOCK SC 7
SC 7 IS NOW LOCKED
LOCK SC n