Technical data

B WebLogic Server Command-Line Interface Reference
B-14 Administration Guide
LOCK
Locks a WebLogic Server against non-privileged logins. Any subsequent login
attempt initiates a security exception which may contain an optional string message.
Note: This command is privileged. It requires the password for the WebLogic Server
administrative user.
Syntax
java weblogic.Admin [Connection and User Credentials Arguments]
LOCK “string_message
Example
In the following example, a WebLogic Server is locked.
java weblogic.Admin -url localhost:7001 -username adminuser
-password gumby1234
LOCK "Sorry, WebLogic Server is temporarily out of service."
Any application that subsequently tries to log into the locked server with a
non-privileged username and password receives the specified message:
Sorry,
WebLogic Server is temporarily out of service
.
Argument Definition
string_message
Optional. Message, in double quotes, to be supplied in the security
exception that is thrown if a non-privileged user attempts to log in
while the WebLogic Server is locked.