WebLogic Server Command Reference
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Creates a user-configuration file and an associated key file. The user-configuration file contains an encrypted username and password. The key file contains a secret key that is used to encrypt and decrypt the username and password.
Only the key file that originally encrypted the username and password can decrypt the values. If you lose the key file, you must create a new user-configuration and key file pair.
Caution: You must ensure that only authorized users can access the key file. Any user who accesses a valid user-configuration and key file pair gains the privileges of the encrypted username. To secure access to the key file, you can store the key file in a directory that provides read and write access only to authorized users, such as WebLogic Server administrators. Alternatively, you can write the key file to a removable medium, such as a floppy or CD, and lock the medium in a drawer when it is not being used.
Unlike other weblogic.Admin
commands, the STOREUSERCONFIG
command does not connect to a WebLogic Server instance. The data encryption and file creation are accomplished by the JVM in which the STOREUSERCONFIG
command runs. Because it does not connect to a WebLogic Server instance, the command cannot verify that the username and password are valid WebLogic Server credentials.
java weblogic.Admin
-username
username[-password
password]
config-file
[ -userconfigfile] [ -userkeyfile
keyfile]
STOREUSERCONFIG
Specifies a file pathname at which the If a file already exists at the specified pathname, the command overwrites the file with a new file that contains the newly encrypted username and password. If you do not specify this option,
|
|
Specifies a file pathname at which the If a file already exists at the specified pathname, If you do not specify this option,
|
|
Specifies the username and password to encrypt. The If you omit the |
If you do not specify the location in which to create and use a user-configuration file and key file, the weblogic.Admin
and weblogic.Deployer
utilities supply the following default values:
\
username-WebLogicConfig.properties
\
username-WebLogicKey.properties
Where user-home-directory is the home directory of the operating-system user account as determined by the JVM, and username is your operating-system username.
The value of the home directory varies depending on the SDK and type of operating system. For example, on UNIX, the home directory is usually "~username." On Windows, the home directory is usually "C:\Documents and Settings\
username".
You can use the following Java options to specify values for user-home-directory and username:
-Duser.home=
pathname specifies the value of user-home-directory-Duser.name=
usernanme specifies the value of username.For example, the following command configures the user-home directory to be c:\myHome
and the user name to be wlAdmin
. The command will search for the following user-configuration file and user key file:c:\myHome\wlAdmin-WebLogicConfig.properties
c:\myHome\wlAdmin-WebLogicKey.properties
java -Duser.home=c:\myHome -Duser.name=wlAdmin
weblogic.Admin
COMMAND
To create user-configuration and key files:
-username
username and -password
password arguments to specify the username and password to be encrypted. -userconfigfile
config-file and -userkeyfile
key-file arguments:java weblogic.Admin -username
username -password
password-userconfigfile
config-file -userkeyfile
key-fileSTOREUSERCONFIG
\
username-WebLogicConfig.properties
and \
username-WebLogicKey.properties:
java weblogic.Admin -username
username -password
passwordSTOREUSERCONFIG
-Duser.home=
directory and -Duser.name=
username Java options to create files named\
username-WebLogicConfig.properties
and \
username-WebLogicKey.properties:
java -Duser.home=
directory -Duser.name=
username
weblogic.Admin -username
username -password
passwordSTOREUSERCONFIG
You can change the name and location of a user-configuration file or a key file after you create them, as long as you use the two files as a pair.
To use one key file to encrypt multiple user-configuration files:
In the following example, a user who is logged in to a UNIX operating system as joe
encrypts the username wlAdmin
and password wlPass
:
java weblogic.Admin -username wlAdmin -password wlPass
STOREUSERCONFIG
The command determines whether a key file named ~joe/joe-WebLogicKey.properties
exists. If such a file does not exist, it prompts the user to select y
to confirm creating a key file. If the command succeeds, it creates two files:~joe\joe-WebLogicConfig.properties
~joe\joe-WebLogicKey.properties
The file joe-WebLogicConfig.properties
contains an encrypted version of the strings wlAdmin
and wlPass
. Any command that uses the ~joe\joe-WebLogicConfig.properties
file must specify the ~joe\joe-WebLogicKey.properties
key file.
In the following example, the user joe
is a System Administrator who wants to create a user-configuration file for an operating-system account named pat
. For the sake of convenience, joe
wants to create the user-configuration file in pat
's home directory, which will simplify the syntax of the weblogic.Admin
commands that pat
invokes. For added security, only one key file exists at joe
's organization, and it is located on a removable hard drive.
To create a user configuration file in pat
's home directory that is encrypted and decrypted by a key file name e:\myKeyFile
:
java -Duser.name=pat -Duser.home="C:\Documents and Settings\pat" weblogic.Admin -username wlOperatorPat -password wlOperator1 -userkeyfile e:\myKeyFile
STOREUSERCONFIG
A user who logs in to pat
's account can use the following syntax to invoke weblogic.Admin
commands:java weblogic.Admin -userkeyfile e:\myKeyFile
COMMAND
For information on using user-configuration and key files, see Specifying User Credentials.
Table 1-4 is an overview of commands that manage the life cycle of a server instance. Subsequent sections describe command syntax and arguments, and provide an example for each command. For more information about the life cycle of a server instance, refer to "Server Life Cycle" in the Configuring and Managing WebLogic Server guide.
(Deprecated) Cancels the See CANCEL_SHUTDOWN. |
|
Causes the Administration Server to re-establish its administrative control over Managed servers. |
|
Terminates a server instance without waiting for active sessions to complete See FORCESHUTDOWN. |
|
(Deprecated) Locks a WebLogic Server against non-privileged logins. Any subsequent login attempt initiates a security exception which may contain an optional string message. See LOCK. |
|
Makes a server available to receive requests from external clients. See RESUME. |
|
Gracefully shuts down a WebLogic Server. See SHUTDOWN. |
|
Uses a configured Node Manager to start a Managed Server in the See START. |
|
(Deprecated) Uses a configured Node Manager to start a Managed Server and place it in the See STARTINSTANDBY. |
|
(Deprecated) Unlocks the specified WebLogic Server after a LOCK operation. See UNLOCK. |
![]() ![]() |
![]() |
![]() |