![](/images/new-backgrounds/1119592/11959287x1.webp)
LOCK
L O C K
Temporarily disable access to a terminal server port
The LOCK command disables access to a terminal server port without terminating active sessions or logging out the port. The interface prompts you for a password before it locks the port. You use this password to “unlock” the port when you want to regain access to it.
Notes
Locking your port prevents other users from establishing sessions and gaining access to network resources through it if you are away. If you are at a privileged port, locking your port prevents other users from entering commands that are not available through Secure ports.
If you forget the unlock password, a user at a Privileged port must log out your port before you can use it again, although this terminates any active sessions.
The SERVER LOCK characteristic must be enabled to use the LOCK command. See the network manager if you cannot use this command.
Syntax
LOCK
Abbreviation
LOC
Example
TS3395> lock
Lock Password>xxxxx
When you enter the LOCK command, the interface prompts you for a Lock Password. Choose a password that you can remember, because you will use it later to unlock the port. The password do not appear on the screen. After the you enter the Lock Password, the interface prompts you to enter it again, to verify its contents.
Verification>xxxxx
After the interface verifies the password, it displays a message indicating that the port is locked, and the Unlock Password prompt:
TS3395 - 019 - Port 6 locked
Unlock Password>
Enter the Lock Password at the Unlock Password> prompt to regain access to the port.
Related Commands
When a port is locked, you cannot enter commands.