{"id":3448,"date":"2012-06-22T08:45:13","date_gmt":"2012-06-22T13:45:13","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=3448"},"modified":"2012-07-26T09:06:05","modified_gmt":"2012-07-26T14:06:05","slug":"wlst-command-and-variable-reference","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=3448","title":{"rendered":"WLST: Command and Variable Reference"},"content":{"rendered":"<span id=\"Overview_of_WLST_Command_Categories\"><h2>Overview of WLST Command Categories<\/h2><\/span>\n<p>* Browse commands: Navigate the hierarchy of configuration or runtime beans and control the prompt display.<br \/>\n* Control commands:<br \/>\n&#8211; Connect\/disconnect from a server.<br \/>\n&#8211; Create\/configure a WebLogic domain or domain template.<br \/>\n&#8211; Exit WLST.<br \/>\n* Customization commands: Add the command group help and command help that is displayed by the WLST help() and help(&#8216;commandGroup&#8217;) commands.<br \/>\n* Deployment commands:<br \/>\n&#8211; Deploy\/undeploy\/redeploy applications and standalone modules to a server instance.<br \/>\n&#8211; Update an existing deployment plan.<br \/>\n&#8211; Interrogate WebLogic Deployment Manager object.<br \/>\n&#8211; Start\/stop a deployed application.<br \/>\n* Diagnostics commands: export diagnostic data.<br \/>\n* Editing commands: interrogate and edit config beans.<br \/>\n* Information commands: Interrogate WebLogic domains, servers, and variables, and provide configuration bean, runtime bean, and WLST-related information.<br \/>\n* Life cycle commands: manage the life cycle of a server instance.<br \/>\n* Node manager commands: start\/stop\/restart\/monitor server instances using Node Manager.<br \/>\n* Tree commands: navigate among MBean hierarchies.<\/p>\n<span id=\"Start_WLST\"><h3>Start WLST<\/h2><\/span>\n<pre lang=\"bash\">\r\ncd C:\\prog\\Oracle\\Middleware\\wlserver_10.3\\common\\bin\r\nwlst.cmd\r\n<\/pre>\n<span id=\"Browse_Commands\"><h2>Browse Commands<\/h2><\/span>\n<span id=\"cd\"><h3>cd<\/h3><\/span>\n<p>* Navigates the hierarchy of configuration or runtime beans.<br \/>\n* Similar to Unix cd command.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ncd(mbeanName)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nconnect('weblogic','welcome1','t3:\/\/localhost:7001') \r\nwls:\/my_domain\/serverConfig> cd('Servers')\r\nwls:\/my_domain\/serverConfig\/Servers> ls()\r\ndr--   AdminServer\r\ndr--   ManagedServer_1\r\ndr--   ManagedServer_2\r\nwls:\/my_domain\/serverConfig\/Servers> cd('ManagedServer_1')\r\nwls:\/my_domain\/serverConfig\/Servers\/ManagedServer_1> ls\r\n<\/pre>\n<span id=\"currentTree\"><h3>currentTree<\/h3><\/span>\n<p>* Returns the current location in the hierarchy.<br \/>\n* This command enables you to store the current location in the hierarchy and easily return to it after browsing.<br \/>\n* In the event of an error, the command returns a WLSTException.<br \/>\n* Online only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ncurrentTree()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\n# List current dir\r\nwls:\/my_domain\/serverConfig\/Servers> ls()\r\ndr--   AdminServer\r\ndr--   ManagedServer_1\r\ndr--   ManagedServer_2\r\n\r\n# Remember current dir\r\nwls:\/my_domain\/serverConfig\/Servers> myTree=currentTree()\r\n\r\n# Go to server runtime tree.\r\nwls:\/my_domain\/serverConfig\/Servers> serverRuntime()\r\nLocation changed to serverRuntime tree. This is a read-only tree with ServerRunt\r\nimeMBean as the root.\r\nFor more help, use help(serverRuntime)\r\n\r\nwls:\/my_domain\/serverRuntime> ls()\r\n...\r\n\r\n# Go back\r\nwls:\/my_domain\/serverRuntime> myTree()\r\n\r\nwls:\/my_domain\/serverConfig\/Servers> ls\r\n<function ls 3>\r\nwls:\/my_domain\/serverConfig\/Servers> ls()\r\ndr--   AdminServer\r\ndr--   ManagedServer_1\r\ndr--   ManagedServer_2\r\n<\/pre>\n<span id=\"prompt\"><h3>prompt<\/h3><\/span>\n<p>* Toggles the display of path information at the prompt, when entered without an argument.<br \/>\n* This command is useful when the prompt becomes too long due to the length of the path.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nprompt(off|on)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/my_domain\/serverConfig\/Servers> prompt()\r\nwls:\/> prompt()\r\nwls:\/my_domain\/serverConfig\/Servers> prompt('off')\r\n>>>prompt()\r\nwls:\/> prompt()\r\nwls:\/my_domain\/serverConfig\/Servers>\r\n<\/pre>\n<span id=\"pwd\"><h3>pwd<\/h3><\/span>\n<p>* Displays the current location in the configuration or runtime bean hierarchy.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\npwd()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/my_domain\/serverConfig\/Servers> pwd()\r\n'serverConfig:\/Servers'\r\n<\/pre>\n<span id=\"Control_Commands\"><h2>Control Commands<\/h2><\/span>\n<span id=\"addTemplate\"><h3>addTemplate<\/h3><\/span>\n<p>* Extends the current WebLogic domain using an application or service extension template.<br \/>\n&#8211; Use the Template Builder to create an application or service extension template.<br \/>\n* Offline only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\naddTemplate(templateFileName)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/my_domain\/serverConfig\/Servers> disconnect()\r\nDisconnected from weblogic server: AdminServer\r\nwls:\/offline> readDomain('C:\/prog\/Oracle\/Middleware\/user_projects\/domains\/my_domain')\r\nwls:\/offline\/my_domain> pwd()\r\n'\/my_domain'\r\nwls:\/offline\/my_domain> addTemplate('C:\/prog\/Oracle\/Middleware\/wlserver_10.3\/common\/templates\/applications\/wls_default.jar')\r\nwls:\/offline\/my_domain>\r\n<\/pre>\n<span id=\"closeDomain\"><h3>closeDomain<\/h3><\/span>\n<p>* Closes the current domain.<br \/>\n&#8211; The domain is no longer available for editing once it is closed.<br \/>\n* Offline only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ncloseDomain()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> readDomain('c:\/Oracle\/Middleware\/user_projects\/domains\/medrec')\r\n...\r\nwls:\/offline\/medrec> updateDomain()\r\nwls:\/offline\/medrec> closeDomain()\r\nwls:\/offline>\r\n<\/pre>\n<span id=\"closeTemplate\"><h3>closeTemplate<\/h3><\/span>\n<p>* Closes the current domain template.<br \/>\n&#8211; The domain template is no longer available once it is closed.<br \/>\n* Offline only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ncloseTemplate()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> readTemplate('c:\/Oracle\/Middleware\/wlserver_10.3\/common\/templates\/domains\/wls.jar')\r\n...\r\nwls:\/offline\/wls> closeTemplate()\r\nwls:\/offline>\r\n<\/pre>\n<span id=\"connect\"><h3>connect<\/h3><\/span>\n<p>* Connects WLST to a WebLogic Server instance.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nconnect([username, password], [url], [timeout])\r\nconnect([userConfigFile, userKeyFile], [url], [timeout])\r\nconnect([url], [adminServerName], [timeout])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\n<\/pre>\n<span id=\"createDomain\"><h3>createDomain<\/h3><\/span>\n<p>* Creates a WebLogic domain using the specified template.<br \/>\n* Offline only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ncreateDomain(domainTemplate, domainDir, user, password)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> createDomain('c:\/Oracle\/Middleware\/wlserver_10.3\/common\/templates\/domains\/wls_medrec.jar','c:\/Oracle\/Middleware\/user_projects\/domains\/medrec', 'weblogic', 'welcome1')\r\n<\/pre>\n<span id=\"disconnect\"><h3>disconnect<\/h3><\/span>\n<p>* Disconnects WLST from a WebLogic Server instance.<br \/>\n&#8211; The disconnect command does not cause WLST to exit the interactive scripting shell;<br \/>\n&#8211; it closes the current WebLogic Server instance connection and resets all the variables while keeping the interactive shell alive.<br \/>\n* Online only<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ndisconnect(force)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/serverConfig> disconnect() \r\nDisconnected from weblogic server: myserver\r\nwls:\/offline> \r\n<\/pre>\n<span id=\"exit\"><h3>exit<\/h3><\/span>\n<p>* Exits WLST from the user session and closes the scripting shell.<br \/>\n&#8211; If there is an edit session in progress, WLST prompts you for confirmation.<br \/>\n&#8211; To skip the prompt, set the defaultAnswer argument to y.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nexit([defaultAnswer], [exitcode])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/serverConfig> exit() \r\nExiting WebLogic Scripting Tool ...\r\nc:\\>\r\n\r\nwls:\/mydomain\/serverConfig> exit(exitcode=101) \r\nExiting WebLogic Scripting Tool ...\r\nc:\\>\r\n<\/pre>\n<span id=\"readDomain\"><h3>readDomain<\/h3><\/span>\n<p>* Opens an existing WebLogic domain for updating.<br \/>\n* Offline only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nreadDomain(domainDirName)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> readDomain('C:\/prog\/Oracle\/Middleware\/user_projects\/domains\/my_domain')\r\nwls:\/offline\/my_domain> pwd()\r\n'\/my_domain'\r\n<\/pre>\n<span id=\"readTemplate\"><h3>readTemplate<\/h3><\/span>\n<p>* Opens an existing domain template for domain creation.<br \/>\n* Offline only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nreadTemplate(templateFileName)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> readTemplate('c:\/Oracle\/Middleware\/wlserver_10.3\/common\/templates\/domains\/wls_medrec.jar') \r\nwls:\/offline\/wls_medrec>\r\n<\/pre>\n<span id=\"updateDomain\"><h3>updateDomain<\/h3><\/span>\n<p>* Updates and saves the current WebLogic domain.<br \/>\n&#8211; The domain continues to be editable after you update and save it.<br \/>\n* Offline only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nupdateDomain()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> readDomain('c:\/Oracle\/Middleware\/user_projects\/domains\/medrec') \r\n...\r\nwls:\/offline\/medrec> updateDomain() \r\n<\/pre>\n<span id=\"writeDomain\"><h3>writeDomain<\/h3><\/span>\n<p>* Writes the domain configuration information to the specified directory.<br \/>\n&#8211; Once you write the WebLogic domain to file system, you can continue to update the domain template object that exists in memory, and reissue the writeDomain command to store the domain configuration to a new or existing file.<br \/>\n&#8211; By default, when you write a WebLogic domain, the associated applications are written to WL_HOME\/user_projects\/applications\/domainname<br \/>\n&#8211; When you have finished using the domain template object in memory, close it using the closeTemplate command. If you want to edit the WebLogic domain that has been saved to disk, you can open it using the readDomain command.<br \/>\n&#8211; Before writing the domain, you must define a password for the default user, if it is not already defined. For example:<\/p>\n<pre lang=\"bash\">\r\ncd('\/Security\/base_domain\/User\/weblogic')\r\ncmo.setPassword('welcome1')\r\n<\/pre>\n<p>* Offline only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nwriteDomain(domainDir)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> readTemplate('c:\/Oracle\/Middleware\/wlserver_10.3\/common\/templates\/domains\/wls.jar') \r\n...\r\nwls:\/offline\/base_domain> writeDomain('c:\/Oracle\/Middleware\/user_projects\/domains\/base_domain')\r\n<\/pre>\n<span id=\"writeTemplate\"><h3>writeTemplate<\/h3><\/span>\n<p>* Writes the domain configuration information to the specified domain template.<br \/>\n&#8211;  You can use the domain configuration template to recreate the WebLogic domain.<br \/>\n* Offline only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nwriteTemplate(templateName)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> readDomain('c:\/Oracle\/Middleware\/user_projects\/domains\/mydomain') \r\n...\r\nwls:\/offline\/base_domain> writeTemplate('c:\/Oracle\/Middleware\/user_projects\/templates\/myTemplate.jar')\r\n<\/pre>\n<span id=\"Samples\"><h3>Samples<\/h3><\/span>\n<p>* WL_HOME\\common\\templates\\scripts\\wlst\\basicWLSDomain.py<\/p>\n<pre lang=\"bash\">\r\n# Open domain template:\r\nreadTemplate(\"C:\/prog\/Oracle\/Middleware\/wlserver_10.3\/common\/templates\/domains\/wls.jar\")\r\n\r\n# Configure admin server:\r\ncd('Servers\/AdminServer')\r\nset('ListenAddress','') # Leave blank for server instance to decide\r\nset('ListenPort', 7001)\r\n\r\n# Configure admin server SSL connection information:\r\ncreate('AdminServer','SSL')\r\ncd('SSL\/AdminServer')\r\nset('Enabled', 'True')\r\nset('ListenPort', 7002)\r\n\r\n# Set weblogic password.\r\ncd('\/')\r\ncd('Security\/base_domain\/User\/weblogic')\r\ncmo.setPassword('welcome1')\r\n\r\n# Write the domain\r\nsetOption('OverwriteDomain', 'true')\r\nwriteDomain('C:\/prog\/Oracle\/Middleware\/user_projects\/domains\/basicWLSDomain')\r\n\r\n# Close the domain template.\r\ncloseTemplate()\r\n\r\n# Exit WLST.\r\nexit()\r\n<\/pre>\n<span id=\"Customization_Commands\"><h2>Customization Commands<\/h2><\/span>\n<span id=\"addHelpCommandGroup\"><h3>addHelpCommandGroup<\/h3><\/span>\n<p>* Adds a new command help group to those shown by the WLST help() command, and specifies the resource bundle in which the help information is defined for the group.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\naddHelpCommandGroup(commandGroup, resourceBundleName)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\naddHelpCommandGroup('boot','myhelp')\r\naddHelpCommandGroup('boot','foo.bar.MyResourceBundleClass')\r\n<\/pre>\n<span id=\"addHelpCommand\"><h3>addHelpCommand<\/h3><\/span>\n<p>* Adds new command help for a command to an existing command group.<br \/>\n&#8211; Once added to the group, the command (along with a brief description) is displayed in the command list for the group when you enter the help(&#8216;commandGroup&#8217;) command. &#8211; You can also specify whether or not the command is listed by the help(&#8216;online&#8217;) and help(&#8216;offline&#8217;) commands.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">addHelpCommand(commandName,commandGroup,[offline=false, online=false])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\naddHelpCommand('bootDB','boot',online='true',offline='false')\r\n<\/pre>\n<span id=\"Deployment_Commands\"><h2>Deployment Commands<\/h2><\/span>\n<span id=\"deploy\"><h3>deploy<\/h3><\/span>\n<p>* Deploys an application to a WebLogic Server instance.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ndeploy(appName, path, [targets], [stageMode], [planPath], [options])\r\n<\/pre>\n<p>&#8211; appName: Name of the application or standalone Java EE module to be deployed.<br \/>\n&#8211; path: Name of the application directory, archive file, or root of the exploded archive directory to be deployed.<br \/>\n&#8211; targets: Comma-separated list of the targets. Defaults to the server to which WLST is currently connected.<br \/>\n&#8211; stageMode: Valid values are stage, nostage, and external_stage.<br \/>\n&#8211; planPath: Name of the deployment plan file. The filename can be absolute or relative to the application directory. This argument defaults to the plan\/plan.xml file in the application directory, if one exists.<br \/>\n&#8211; options: Comma-separated list of deployment options, specified as name-value pairs.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> connect('weblogic','welcome1','t3:\/\/localhost:7001')\r\nConnecting to t3:\/\/localhost:7001 with userid weblogic ...\r\nSuccessfully connected to Admin Server 'AdminServer' that belongs to domain 'basicWLSDomain'.\r\n\r\nWarning: An insecure protocol was used to connect to the\r\nserver. To ensure on-the-wire security, the SSL port or\r\nAdmin port should be used instead.\r\n\r\nwls:\/basicWLSDomain\/serverConfig> cd('Servers')\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> ls\r\n<function ls 1>\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> ls()\r\ndr--   AdminServer\r\n\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> progress= deploy(appName='jspExpApp',path='C:\/TEMP\/deploy\/prod\/myapp\/1.0\/app\/jspExpressionEar.ear')\r\nDeploying application from C:\\TEMP\\deploy\\prod\\myapp\\1.0\\app\\jspExpressionEar.ear to targets  (upload=false) ...\r\n<Sep 20, 2011 3:21:16 PM EDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, jspExpApp [archive: C:\\TEMP\\deploy\\prod\\myapp\\1.0\\app\\jspExpressionEar.ear], to AdminServer .>\r\n.Completed the deployment of Application with status completed\r\nCurrent Status of your Deployment:\r\nDeployment command type: deploy\r\nDeployment State       : completed\r\nDeployment Message     : no message\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> progress.printStatus()\r\nCurrent Status of your Deployment:\r\nDeployment command type: deploy\r\nDeployment State       : completed\r\nDeployment Message     : no message\r\nwls:\/basicWLSDomain\/serverConfig\/Servers>\r\n<\/pre>\n<span id=\"distributeApplication\"><h3>distributeApplication<\/h3><\/span>\n<p>* Copies the deployment bundle to the specified targets.<br \/>\n&#8211; The deployment bundle includes module, configuration data, and any additional generated code.<br \/>\n&#8211; The distributeApplication command does not start deployment.<br \/>\n* Online only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ndistributeApplication(appPath, [planPath], [targets], [options])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> progress=distributeApplication('c:\/myapps\/BigApp', \r\n'c:\/deployment\/BigApp\/plan.xml', 'myserver,oamserver1,oamcluster')\r\nDistributing Application and Plan ...\r\nSuccessfully distributed the application.\r\n<\/pre>\n<span id=\"getWLDM\"><h3>getWLDM<\/h3><\/span>\n<p>* Returns the WebLogic DeploymentManager object.<br \/>\n* Online only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ngetWLDM()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> wldm=getWLDM()\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> wldm.isConnected()\r\n1\r\n<\/pre>\n<span id=\"listApplications\"><h3>listApplications<\/h3><\/span>\n<p>* Lists all applications that are currently deployed in the WebLogic domain.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nlistApplications()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> listApplications()\r\n jspExpApp\r\n<\/pre>\n<span id=\"loadApplication\"><h3>loadApplication<\/h3><\/span>\n<p>* Loads an application and deployment plan into memory.<br \/>\n&#8211; Returns a WLSTPlan object that you can access to make changes to the deployment plan.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nloadApplication(appPath, [planPath], [createPlan])\r\n<\/pre>\n<p>&#8211; createPlan: default to true.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig\/Servers>  myPlan=loadApplication('C:\/TEMP\/deploy\/prod\/myapp\/1.0\/app\/jspExpressionEar.ear', 'C:\/TEMP\/deploy\/prod\/myapp\/1.0\/app\/plan.xml')\r\nLoading application from C:\/TEMP\/deploy\/prod\/myapp\/1.0\/app\/jspExpressionEar.ear\r\n...\r\nPlan for your application will be written to C:\\TEMP\\deploy\\prod\\myapp\\1.0\\app\\plan.xml\r\n<Sep 20, 2011 3:45:01 PM EDT> <Info> <J2EE Deployment SPI> <BEA-260072> <Saved configuration for application, jspExpressionEar.ear>\r\nLoaded application from C:\\TEMP\\deploy\\prod\\myapp\\1.0\\app\\jspExpressionEar.ear and the deployment plan from C:\\TEMP\\deploy\\prod\\myapp\\1.0\\app\\plan.xml\r\nThe WLSTPlan object is assigned to variable wlstPlan_jspExpressionEar_ear.\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> myPlan.showVariables()\r\nNone of the plan variables have been over-written\r\nwls:\/basicWLSDomain\/serverConfig\/Servers>\r\n<\/pre>\n<span id=\"redeploy\"><h3>redeploy<\/h3><\/span>\n<p>* Reloads classes and redeploys a previously deployed application.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nredeploy(appName, [planPath], [options])\r\n<\/pre>\n<p>&#8211; planPath: default to plan\/plan.xml file in the application directory, if one exists.<br \/>\n&#8211; options: see deploy options. In addition:<br \/>\n~ appPath: Name of the archive file or root of the exploded archive directory to be redeployed.<br \/>\n~ deploymentPrincipalName: String value specifying the principal for redeploying the file or archive during server starts. You can use this option to overwrite the current <deployment-principal-name> in the config.xml file.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> progress=redeploy('jspExpApp', 'C:\/TEMP\/deploy\/prod\/myapp\/1.0\/app\/plan.xml')\r\nRedeploying application jspExpApp ...\r\n<Sep 20, 2011 3:53:13 PM EDT> <Warning> <WebLogicDescriptorWL> <BEA-2156000> <\"config-root\" C:\\Users\\ming-lj\\AppData\\Local\\Temp\\Ming-LJ\\.\\config\\deployments\\jspExpressionEar.ear\\plan was not found>\r\n<Sep 20, 2011 3:53:13 PM EDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, jspExpApp [archive: null], to AdminServer .>\r\n.Completed the redeployment of Application with status completed\r\nCurrent Status of your Deployment:\r\nDeployment command type: redeploy\r\nDeployment State       : completed\r\nDeployment Message     : no message\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> progress.getState()\r\n'completed'\r\nwls:\/basicWLSDomain\/serverConfig\/Servers>\r\n<\/pre>\n<span id=\"startApplication\"><h3>startApplication<\/h3><\/span>\n<p>* Starts an application, making it available to users.<br \/>\n&#8211; The application must be fully configured and available in the WebLogic domain.<br \/>\n&#8211; Returns a WLSTProgress object that you can access to check the status of the command.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nstartApplication(appName, [options])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> progress=startApplication('jspExpApp')\r\n\r\nStarting application jspExpApp.\r\n<Sep 20, 2011 4:05:39 PM EDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating start operation for application, jspExpApp [archive: null], to AdminServer .>\r\n.Completed the start of Application with status completed\r\nCurrent Status of your Deployment:\r\nDeployment command type: start\r\nDeployment State       : completed\r\nDeployment Message     : no message\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> progress.getState()\r\n'completed'\r\n<\/pre>\n<span id=\"stopApplication\"><h3>stopApplication<\/h3><\/span>\n<p>* Stops an application, making it unavailable to users.<br \/>\n&#8211; Returns a WLSTProgress object that you can access to check the status of the command.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nstopApplication(appName, [options])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> progress=stopApplication('jspExpApp')\r\nStopping application jspExpApp.\r\n<Sep 20, 2011 4:07:03 PM EDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating stop operation for application, jspExpApp [archive: null], to AdminServer .>\r\n\r\nCompleted the stop of Application with status completed\r\nCurrent Status of your Deployment:\r\nDeployment command type: stop\r\nDeployment State       : completed\r\nDeployment Message     : no message\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> progress.isRunning()\r\n0\r\nwls:\/basicWLSDomain\/serverConfig\/Servers><\/pre>\n<span id=\"undeploy\"><h3>undeploy<\/h3><\/span>\n<p>* Undeploys an application from the specified servers.<br \/>\n&#8211; Returns a WLSTProgress object that you can access to check the status of the command.<br \/>\n* Online only.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nundeploy(appName,[targets],[options])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> undeploy('jspExpApp')\r\nUndeploying application jspExpApp ...\r\n<Sep 20, 2011 3:17:57 PM EDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, jspExpApp [archive: null], to AdminServer .>\r\n.Completed the undeployment of Application with status completed\r\nCurrent Status of your Deployment:\r\nDeployment command type: undeploy\r\nDeployment State       : completed\r\nDeployment Message     : no message\r\nwls:\/basicWLSDomain\/serverConfig\/Servers>\r\n<\/pre>\n<span id=\"updateApplication\"><h3>updateApplication<\/h3><\/span>\n<p>* Updates an application configuration using a new deployment plan.<br \/>\n&#8211; Returns a WLSTProgress object that you can access to check the status of the command.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nupdateApplication(appName, [planPath], [options])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nprogress=updateApplication('jspExpApp', 'C:\/TEMP\/deploy\/prod\/myapp\/1.0\/app\/plan.xml')\r\n<\/pre>\n<span id=\"Diagnostics_Commands\"><h2>Diagnostics Commands<\/h2><\/span>\n<span id=\"exportDiagnosticData\"><h3>exportDiagnosticData<\/h3><\/span>\n<p>* Executes a query against the specified log file.<br \/>\n&#8211; The results are saved to an XML file.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nexportDiagnosticData([options])\r\n<\/pre>\n<p>&#8211; options:<br \/>\n~ beginTimestamp\u2014Timestamp (inclusive) of the earliest record to be added to the result set. This option defaults to 0.<br \/>\n~ endTimestamp\u2014Timestamp (exclusive) of the latest record to be added to the result set. This option defaults to Long.MAX_VALUE.<br \/>\n~ exportFileName\u2014Name of the file to which the data is exported. This option defaults to export.xml.<br \/>\n~ logicalName\u2014Logical name of the log file being read. Valid values include: HarvestedDataArchive, EventsDataArchive, ServerLog, DomainLog, HTTPAccessLog, WebAppLog, ConnectorLog, and JMSMessageLog. This option defaults to ServerLog.<br \/>\n~ logName\u2014Base log filename containing the log data to be exported. This option defaults to myserver.log.<br \/>\n~ logRotationDir\u2014Directory containing the rotated log files. This option defaults to &#8220;.&#8221; (the same directory in which the log file is stored).<br \/>\n~ query\u2014Expression specifying the filter condition for the data records to be included in the result set. This option defaults to &#8220;&#8221; (empty string), which returns all data.<br \/>\n~ storeDir\u2014Location of the diagnostic store for the server. This option defaults to ..\/data\/store\/diagnostics.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline\/mydomain>exportDiagnosticData(logicalName='ServerLog',  \r\nlogName='myserver.log', exportFileName='myExport.xml')\r\n{'elfFields': '', 'logName': 'myserver.log', 'logRotationDir': '.',\r\n'endTimestamp': 9223372036854775807L, 'exportFileName': 'export.xml',\r\n'storeDir': '..\/data\/store\/diagnostics', 'logicalName': 'ServerLog',\r\n'query': '', 'beginTimestamp': 0}\r\n<\/pre>\n<span id=\"exportDiagnosticDataFromServer\"><h3>exportDiagnosticDataFromServer<\/h3><\/span>\n<p>* Executes a query on the server side and retrieves the exported WebLogic Diagnostic Framework (WLDF) data.<br \/>\n&#8211; The results are saved to an XML file.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nexportDiagnosticDataFromServer([options])\r\n<\/pre>\n<p>&#8211; Options:<br \/>\n~ beginTimestamp: default to 0.<br \/>\n~ endTimestamp: default to Long.MAX_VALUE.<br \/>\n~ exportFileName: default to export.xml.<br \/>\n~ logicalName: default to ServerLog.<br \/>\n~ query: defaults to &#8220;&#8221; (empty string), which returns all data.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/serverRuntime> exportDiagnosticDataFromServer(logicalName=\"HTTPAccessLog\", exportFileName=\"myExport.xml\") \r\n<\/pre>\n<span id=\"getAvailableCapturedImages\"><h3>getAvailableCapturedImages<\/h3><\/span>\n<p>* Returns, as an array of strings, a list of the previously captured diagnostic images that are stored in the image destination directory configured on the server.<br \/>\n&#8211; The default directory is SERVER\\logs\\diagnostic_images.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ngetAvailableCapturedImages()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/serverRuntime>images=getAvailableCapturedImages()\r\nConnecting to http:\/\/localhost:7001 with userid weblogic ...\r\nwls:\/mydomain\/serverRuntime>print images [ 'diagnostic_image_myserver_2009_06_15_14_58_36.zip' ]\r\n<\/pre>\n<span id=\"saveDiagnosticImageCaptureFile\"><h3>saveDiagnosticImageCaptureFile<\/h3><\/span>\n<p>* Downloads the specified diagnostic image capture from the server to which WLST is currently connected.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nsaveDiagnosticImageCaptureFile(imageName, [outputFile])\r\n<\/pre>\n<p>&#8211; outputFile: defaults to imageName in current directory.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/serverRuntime>images=getAvailableCapturedImages()\r\nwls:\/mydomain\/serverConfig> saveDiagnosticImageCaptureFile(images[0])\r\nwls:\/mydomain\/serverConfig> saveDiagnosticImageCaptureFile(images[0], 'mylocalimg.zip')\r\n<\/pre>\n<span id=\"saveDiagnosticImageCaptureEntryFile\"><h3>saveDiagnosticImageCaptureEntryFile<\/h3><\/span>\n<p>* Downloads a specific entry from the diagnostic image capture that is located on the server to which WLST is currently connected.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nsaveDiagnosticImageCaptureEntryFile(imageName, imageEntryName, [outputFile])\r\n<\/pre>\n<p>&#8211; imageEntryName: Name of the specific entry to be retrieved from the diagnostic image capture. This can be one of the following:<\/p>\n<p>image.summary<br \/>\nJTA.img<br \/>\nJRockitFlightRecorder.jfr<br \/>\nWatchSource.img<br \/>\nconfiguration.img<br \/>\nWORK_MANAGER.img<br \/>\nJNDI_IMAGE_SOURCE.img<br \/>\nAPPLICATION.img<br \/>\nInstrumentationImageSource.img<br \/>\nSAF.img<br \/>\nLogging.img<br \/>\nPERSISTENT_STORE.img<br \/>\nJDBC.img<br \/>\nPathService.img<br \/>\nJMS.img<br \/>\nDeployment.img<br \/>\nJVM.img<br \/>\nCONNECTOR.img<\/p>\n<p>&#8211; outputFile: defaults to imageEntryName in current working directory.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/serverRuntime>images=getAvailableCapturedImages()\r\nwls:\/mydomain\/serverConfig> saveDiagnosticImageCaptureEntryFile(images[0], 'image.summary')\r\nwls:\/mydomain\/serverConfig> saveDiagnosticImageCaptureEntryFile(images[0], 'image.summary', 'myimage.summary')\r\n<\/pre>\n<span id=\"Editing_Commands\"><h2>Editing Commands<\/h2><\/span>\n<span id=\"activate\"><h3>activate<\/h3><\/span>\n<p>* Activates changes saved during the current editing session but not yet deployed.<br \/>\n&#8211; This command prints a message if a server restart is required for the changes that are being activated.<br \/>\n&#8211; Returns the latest ActivationTask MBean which reflects the state of changes that a user is currently making or has made recently. You can then invoke methods to get information about the latest Configuration Manager activate task in progress or just completed.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nactivate([timeout], [block])\r\n<\/pre>\n<p>&#8211; timeout: defaults to 30000 (5 min). -1 to never time out.<br \/>\n&#8211; block: whether WLST should block user interaction until the command completes. Defaults to false.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/edit !> activate(200000, block='true') \r\n<\/pre>\n<span id=\"assign\"><h3>assign<\/h3><\/span>\n<p>* Assigns resources to one or more destinations.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nassign(sourceType, sourceName, destinationType, destinationName)\r\n<\/pre>\n<p>&#8211; sourceType: Type of configuration bean to be assigned. This value can be set to one of the following values:<br \/>\n~ AppDeployment<br \/>\n~ Library<br \/>\n~ securityType (such as User)<br \/>\n~ Server<br \/>\n~ service (such as JDBCSystemResource)<br \/>\n~ service.SubDeployment, where service specifies the service type of the SubDeployment (such as JMSSystemResource.SubDeployment); you can also specify nested subdeployments (such as AppDeployment.SubDeployment.SubDeployment)<br \/>\n&#8211; sourceName: Name of the resource to be assigned. Multiple names can be specified, separated by commas, or you can use the wildcard (*) character to specify all resources of the specified type.<br \/>\n&#8211; destinationType: Type of destination.<br \/>\n&#8211; destinationName<br \/>\n* Use the following guidelines for setting the sourceType and destinationType:<\/p>\n<p>&#8211; When assigning application deployments, set the values as follows:<br \/>\n~ sourceType: AppDeployment<br \/>\n~ destinationType: Target<br \/>\n&#8211; When assigning libraries, set the values as follows:<br \/>\n~ sourceType: Library<br \/>\n~ destinationType: Target<br \/>\n&#8211; When assigning services, set the values as follows:<br \/>\n~ sourceType: Name of the specific server, such as JDBCSystemResource<br \/>\n~ destinationType: Target<br \/>\n&#8211; When assigning servers to clusters, set the values as follows:<br \/>\n~ sourceType: Server<br \/>\n~ destinationType: Cluster<br \/>\n&#8211; When assigning subdeployments, set the values as follows:<br \/>\n~ sourceType: service.SubDeployment, where service specifies the parent of the SubDeployment, such as JMSSystemResource.SubDeployment; you can also specify nested subdeployments (such as AppDeployment.SubDeployment.SubDeployment)<br \/>\n~ destinationType: Target<br \/>\n&#8211; When assigning security types, set the values as follows:<br \/>\n~ sourceType: Name of the security type, such as User<br \/>\n~ destinationType: Name of the destination security type, such as Group<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\n# Assign the servers myServer and myServer2 to the cluster myCluster.\r\nwls:\/offline\/mydomain> assign(\"Server\", \"myServer,myServer2\", \"Cluster\", \"myCluster\") \r\n# Assign all servers to the cluster myCluster.\r\nwls:\/offline\/mydomain> assign(\"Server\", \"*\", \"Cluster\", \"myCluster\") \r\n# Assign the application deployment myAppDeployment to the target server newServer.\r\nwls:\/offline\/mydomain> assign(\"AppDeployment\", \"myAppDeployment\", \"Target\", \"newServer\") \r\n# Assign the user newUser to the group Monitors.\r\nwls:\/offline\/mydomain> assign(\"User\", \"newUser\", \"Group\", \"Monitors\") \r\n# Assign the SubDeployment myQueueSubDeployment, which is a child of the JMS resource myJMSResource, to the target server newServer.\r\nwls:\/offline\/mydomain> assign('JMSSystemResource.SubDeployment', \r\n# Assign the nested SubDeployment MedRecAppScopedJMS.MedRecJMSServer, which is a child of the AppDeployment AppDeployment, to the target server AdminServer.\r\nwls:\/offline\/mydomain>assign('AppDeployment.SubDeployment.SubDeployment','MedRecEAR.MedRecAppScopedJMS.MedRecJMSServer','Target','AdminServer') \r\n<\/pre>\n<span id=\"cancelEdit\"><h3>cancelEdit<\/h3><\/span>\n<p>* Cancels an edit session, releases the edit lock, and discards all unsaved changes.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ncancelEdit([defaultAnswer])\r\n<\/pre>\n<p>&#8211; defaultAnswer: y or n. Defaults to null.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/edit !> cancelEdit() \r\nSure you would like to cancel the edit session? (y\/n)y\r\nEdit session is cancelled successfully\r\n<\/pre>\n<span id=\"create\"><h3>create<\/h3><\/span>\n<p>* Creates a configuration bean of the specified type for the current bean.<br \/>\n&#8211; Returns a stub for the newly created configuration bean.<br \/>\n&#8211; Must be connected to an Administration Server.<br \/>\n&#8211; Cannot use the create command for runtime MBeans<br \/>\n&#8211; Must navigate to the edit configuration MBean hierarchy using the edit command before issuing this command.<br \/>\n* Online or offline.<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ncreate(name, childMBeanType, [baseProviderType])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig\/Servers> edit()\r\nLocation changed to edit tree. This is a writable tree with\r\nDomainMBean as the root. To make changes you will need to start\r\nan edit session via startEdit().\r\n\r\nFor more help, use help(edit)\r\nwls:\/basicWLSDomain\/edit> startEdit()\r\nStarting an edit session ...\r\nStarted edit session, please be sure to save and activate your\r\nchanges once you are done.\r\nwls:\/basicWLSDomain\/edit !> server1=create('newServer','Server')\r\nMBean type Server with name newServer has been created successfully.\r\nwls:\/basicWLSDomain\/edit !> server1.getName()\r\n'newServer'\r\nwls:\/basicWLSDomain\/edit !>\r\n<\/pre>\n<span id=\"delete\"><h3>delete<\/h3><\/span>\n<p>* Deletes an instance of a configuration bean of the specified type for the current configuration bean.<br \/>\n&#8211; You can only delete configuration beans that are children of current Configuration Management Object (cmo) type.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ndelete(name, childMBeanType)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/edit> startEdit()\r\nStarting an edit session ...\r\nStarted edit session, please be sure to save and activate your\r\nchanges once you are done.\r\nwls:\/basicWLSDomain\/edit !> delete('newServer','Server')\r\nMBean type Server with name newServer has been deleted successfully.\r\nwls:\/basicWLSDomain\/edit !> activate()\r\nActivating all your changes, this may take a while ...\r\nThe edit lock associated with this edit session is released\r\nonce the activation is completed.\r\nActivation completed\r\n<\/pre>\n<span id=\"encrypt\"><h3>encrypt<\/h3><\/span>\n<p>* Encrypts the specified string.<br \/>\n&#8211; You can then use the encrypted string in your configuration file or as an argument to a command.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nencrypt(obj, [domainDir])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig> es=encrypt('password', 'C:\/prog\/Oracle\/Middlew\r\nare\/user_projects\/domains\/basicWLSDomain')\r\nwls:\/basicWLSDomain\/serverConfig> print es\r\n{AES}S\/cZp\/b2Iz4UQbov5KeKxTy9rHycRX7kYc4r1aHa2PU=\r\nwls:\/basicWLSDomain\/serverConfig>\r\n<\/pre>\n<span id=\"get\"><h3>get<\/h3><\/span>\n<p>* Returns the value of the specified attribute.<br \/>\n&#8211; Alternatively, you can use the cmo variable to perform any get method on the current configuration bean. For example:<\/p>\n<p>cmo.getListenPort()<\/p>\n<p>* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nget(attrName)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/serverConfig> get('AdministrationPort')\r\n9002\r\n\r\nwls:\/basicWLSDomain\/serverConfig> cmo.getAdministrationPort()\r\n9002\r\n<\/pre>\n<span id=\"getActivationTask\"><h3>getActivationTask<\/h3><\/span>\n<p>* Return the latest ActivationTask MBean on which a user can get status.<br \/>\n&#8211; The ActivationTask MBean reflects the state of changes that a user has made recently in WLST.<br \/>\n&#8211; You can then invoke methods to get information about the latest Configuration Manager activate task in progress or just completed.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ngetActivationTask()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/edit !> task=getActivationTask()\r\nwls:\/basicWLSDomain\/edit !> task.getState()\r\n4\r\n<\/pre>\n<span id=\"invoke\"><h3>invoke<\/h3><\/span>\n<p>* Invokes a management operation on the current configuration bean.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\ninvoke(methodName, parameters, signatures)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/config> objs = jarray.array([java.lang.String(\"oamserver\")],java.lang.Object) \r\nwls:\/mydomain\/edit> strs = jarray.array([\"java.lang.String\"],java.lang.String) \r\nwls:\/mydomain\/edit> invoke('lookupServer',objs,strs) \r\ntrue\r\n<\/pre>\n<span id=\"isRestartRequired\"><h3>isRestartRequired<\/h3><\/span>\n<p>* Determines whether a server restart is required.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nisRestartRequired([attributeName])\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/edit !> isRestartRequired()\r\n\r\nServer re-start is NOT REQUIRED for the set of changes in progress.\r\nwls:\/basicWLSDomain\/edit !> isRestartRequired(\"ConsoleEnabled\")\r\n\r\nServer re-start is REQUIRED if you change the attribute ConsoleEnabled\r\n<\/pre>\n<span id=\"loadDB\"><h3>loadDB<\/h3><\/span>\n<p>* Loads SQL files into a database.<br \/>\n&#8211; The loadDB command loads the SQL files from a template file.<br \/>\n&#8211; This command can only be issued after a domain template or extension template has been loaded into memory<br \/>\n* Offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nloadDB(dbVersion, datasourceName, dbCategory)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline\/mydomain> loadDB('5.1', 'p13nDataSource', 'Drop\/Create P13N Database Objects') \r\n<\/pre>\n<span id=\"loadProperties\"><h3>loadProperties<\/h3><\/span>\n<p>* Loads property values from a file and makes them available in the WLST session.<br \/>\n&#8211; This command <em>cannot <\/em>be used when you are importing WLST as a Jython module<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nloadProperties(fileName)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/mydomain\/serverConfig> loadProperties('c:\/temp\/myLoad.properties')\r\n<\/pre>\n<span id=\"save\"><h3>save<\/h3><\/span>\n<p>* Saves the edits that have been made but have not yet been saved.<br \/>\n&#8211; This command is only valid when an edit session is in progress.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nsave()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/edit !> save()\r\nSaving all your changes ...\r\nSaved all your changes successfully.\r\nwls:\/basicWLSDomain\/edit !>\r\n<\/pre>\n<span id=\"set\"><h3>set<\/h3><\/span>\n<p>* Sets the value of a specified attribute in the current management object.<br \/>\n&#8211; When using WLST offline, this command writes the attribute value to the domain configuration files.<br \/>\n&#8211; When using WLST online, this command sets the value of an MBean attribute. Online changes are written to the domain configuration file when you activate your edits.<br \/>\n&#8211; As an alternative to this command, you can use the cmo variable with the following syntax:<br \/>\ncmo.setattrName(value)<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nset(attrName, value)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\ncd('Servers\/AdminServer')\r\nset('ListenAddress','')\r\nset('ListenPort', 7001)\r\n\r\ncreate('AdminServer','SSL')\r\ncd('SSL\/AdminServer')\r\nset('Enabled', 'True')\r\nset('ListenPort', 7002)\r\n<\/pre>\n<span id=\"setOption\"><h3>setOption<\/h3><\/span>\n<p>* Sets options related to a WebLogic domain creation or update.<br \/>\n* Offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nsetOption(optionName, optionValue)\r\n<\/pre>\n<p>&#8211; optionName: Name of the option to set.<br \/>\nAvailable options for <strong>domain creation<\/strong> include:<br \/>\n~ CreateStartMenu: Windows only. Defaults to true.<br \/>\n~ DomainName: defaults to domain directory name.<br \/>\n~ JavaHome<br \/>\n~ OverwriteDomain: defaults to false.<br \/>\n~ ServerStartMode: dev or prod. Defaults to dev.<br \/>\nAvailable options for <strong>domain updates<\/strong> include:<br \/>\n~ AllowCasualUpdate: defaults to true.<br \/>\n~ ReplaceDuplicates: defaults to true.<br \/>\nAvailable options for <strong>both domain creation and domain updates<\/strong> include:<br \/>\n~ AppDir: defaults to WL_HOME\/user_projects\/applications\/domainname<br \/>\n~ AutoAdjustSubDeploymentTarget: defaults to true<br \/>\n~ AutoDeploy: whether to activate auto deployment when a cluster or multiple Managed Servers are created. Defaults to true.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline> setOption('CreateStartMenu', 'false') \r\n<\/pre>\n<span id=\"showChanges\"><h3>showChanges<\/h3><\/span>\n<p>* Shows the changes made to the configuration by the current user during the current edit session.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nshowChanges([onlyInMemory])\r\n<\/pre>\n<p>&#8211; onlyInMemory: defaults to false.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/edit !> showChanges()\r\nwls:\/basicWLSDomain\/edit !>\r\n<\/pre>\n<span id=\"startEdit\"><h3>startEdit<\/h3><\/span>\n<p>* Starts a configuration edit session on behalf of the currently connected user.<br \/>\n&#8211; You must navigate to the edit configuration MBean hierarchy using the edit command before issuing this command.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nstartEdit([waitTimeInMillis], [timeoutInMillis], [exclusive])\r\n- waitTimeInMillis: defaults to 0 ms.\r\n- timeOutInMillis: defaults to -1 ms.\r\n- exclusive: defaults to false.\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/edit> startEdit()\r\nStarting an edit session ...\r\nStarted edit session, please be sure to save and activate your\r\nchanges once you are done.\r\nwls:\/basicWLSDomain\/edit !>\r\n<\/pre>\n<span id=\"stopEdit\"><h3>stopEdit<\/h3><\/span>\n<p>* Stops the current edit session, releases the edit lock, and discards unsaved changes.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nstopEdit([defaultAnswer])\r\n<\/pre>\n<p>&#8211; defaultAnswer: defaults to null.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/edit !> stopEdit()\r\nSure you would like to stop your edit session? (y\/n)y\r\nEdit session has been stopped successfully.\r\nwls:\/basicWLSDomain\/edit>\r\n<\/pre>\n<span id=\"unassign\"><h3>unassign<\/h3><\/span>\n<p>* Unassign applications or resources from one or more destinations.<br \/>\n* Offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nunassign(sourceType, sourceName, destinationType, destinationName)\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/offline\/medrec> unassign(\"Server\", \"myServer,myServer2\", \"Cluster\", \"myCluster\") \r\nwls:\/offline\/mydomain> unassign(\"Server\", \"*\", \"Cluster\", \"myCluster\") \r\nwls:\/offline\/medrec> unassign(\"User\", \"newUser\", \"Group\", \"Monitors\") \r\nwls:\/offline\/mydomain> unassign(\"AppDeployment\", \"myAppDeployment\", \"Target\", \"newServer\") \r\nwls:\/offline\/mydomain> assign('AppDeployment.SubDeployment.SubDeployment', 'MedRecEAR.MedRecAppScopedJMS.MedRecJMSServer', 'Target','AdminServer')\r\n<\/pre>\n<span id=\"undo\"><h3>undo<\/h3><\/span>\n<p>* Reverts all unsaved or unactivated edits.<br \/>\n&#8211; Does not release the edit session.<br \/>\n* Online or offline<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nundo([unactivatedChanges], [defaultAnswer])\r\n<\/pre>\n<p>&#8211; unactivatedChanges: defaults to false.<br \/>\n&#8211; defaultAnswer: defaults to null.<br \/>\n* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/edit !> undo()\r\nSure you would like to undo your changes? (y\/n)y\r\nDiscarded your in-memory changes successfully.\r\nwls:\/basicWLSDomain\/edit !> undo('true')\r\nSure you would like to undo your changes? (y\/n)y\r\nDiscarded all your changes successfully.\r\nwls:\/basicWLSDomain\/edit !>\r\n<\/pre>\n<span id=\"validate\"><h3>validate<\/h3><\/span>\n<p>* Validates the changes that have been made but have not yet been saved.<br \/>\n&#8211; This command enables you to verify that all changes are valid before saving them.<br \/>\n* Online<br \/>\n* Syntax:<\/p>\n<pre lang=\"bash\">\r\nvalidate()\r\n<\/pre>\n<p>* Example:<\/p>\n<pre lang=\"bash\">\r\nwls:\/basicWLSDomain\/edit !> validate()\r\nValidating changes ...\r\nValidated the changes successfully\r\nwls:\/basicWLSDomain\/edit !>\r\n<\/pre>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/download.oracle.com\/docs\/cd\/E17904_01\/web.1111\/e13813\/reference.htm\">WLST Command and Variable Reference<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview of WLST Command Categories * Browse commands: Navigate the hierarchy of configuration or runtime beans and control the prompt display. * Control commands: &#8211; Connect\/disconnect from a server. &#8211; Create\/configure a WebLogic domain or domain template. &#8211; Exit WLST. &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=3448\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[104],"tags":[164],"class_list":["post-3448","post","type-post","status-publish","format-standard","hentry","category-weblogic11g","tag-wlst"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-TC","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3448"}],"version-history":[{"count":11,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3448\/revisions"}],"predecessor-version":[{"id":5493,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3448\/revisions\/5493"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}