Description Syntax Example storeUserConfig

3-72 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

3.8.21.1 Description

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 be used to decrypt the values. If you lose the key file, you must create a new user configuration and key file pair. In the event of an error, the command returns a WLSTException.

3.8.21.2 Syntax

storeUserConfig[userConfigFile], [userKeyFile], [nm]

3.8.21.3 Example

The following example creates and stores a user configuration file and key file in the default location. wls:mydomainserverConfig storeUserConfig Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Do you want to create the key file? y or n y The username and password that were used for this current WLS connection are stored in C:\Documents and Settings\pat\pat-WebLogicConfig.properties Argument Definition userConfigFile Optional. Name of the file to store the user configuration. The pathname can be absolute or relative to the file-system directory from which you started WLST. If you do not specify this argument, the command stores the file in your home directory as determined by your JVM. The location of the home directory depends on the SDK and type of operating system on which WLST is running.The default filename is based on the following pattern: username -WebLogicConfig.properties where username is the user name that you used to log in to the operating system. The command also prints to standard out the location in which it created the file. userKeyFile Optional. Name of the file to store the key information that is associated with the user configuration file that you specify. The pathname can be absolute or relative to the file-system directory from which you started WLST. If you do not specify this argument, the command stores the file in your home directory as determined by your JVM. The location of the home directory depends on the SDK and type of operating system on which WLST is running. The default filename is based on the following pattern: username -WebLogicKey.properties where username is the user name that you used to log in to the operating system. The command also prints to standard out the location in which it created the file. nm Optional. Boolean value specifying whether to store the username and password for Node Manager or WebLogic Server. If set to true, the Node Manager username and password is stored. This argument default to false. WLST Command and Variable Reference 3-73 and C:\Documents and Settings\pat\pat-WebLogicKey.properties. The following example creates and stores a user configuration file and key file in the specified locations. wls:mydomainserverConfig storeUserConfigc:myFilesmyuserconfigfile.secure, c:myFilesmyuserkeyfile.secure Creating the key file can reduce the security of your system if it is not kept in a secured location after it is created. Do you want to create the key file? y or n y The username and password that were used for this current WLS connection are stored in c:myFilesmysuserconfigfile.secure and c:myFilesmyuserkeyfile.secure wls:mydomainserverConfig

3.8.22 threadDump