beautypg.com

Lock command, Considerations, Example – HP NonStop G-Series User Manual

Page 81

background image

Switch Command Interface (SWCI)

ServerNet Nomadic Disk (Release 2) User’s Guide 523968-001

6- 11

LOCK Command

LOCK Command

The LOCK command changes the specified switch card to the locked state. In the
locked state, the switch position cannot be changed with SWCI.

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.

Example

To lock the switch card in slot 7:

SWCI $NDSWA.#TERM> LOCK SC 7
SC 7 IS NOW LOCKED

LOCK SC n