Description Syntax Example set

3-48 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference wls:mydomainserverConfig loadPropertiesc:tempmyLoad.properties

3.7.13 save

Command Category: Editing Commands Use with WLST: Online

3.7.13.1 Description

Saves the edits that have been made but have not yet been saved. This command is only valid when an edit session is in progress. For information about starting an edit session, see Section 3.7.17, startEdit . In the event of an error, the command returns a WLSTException.

3.7.13.2 Syntax

save

3.7.13.3 Example

The following example saves the edits that have not yet been saved to disk. wls:mydomainedit save Saving all your changes ... Saved all your changes successfully. wls:mydomainedit

3.7.14 set

Command Category: Editing Commands Use with WLST: Online or Offline

3.7.14.1 Description

Sets the value of a specified attribute in the current management object. When using WLST offline, this command writes the attribute value to the domain configuration files. 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. In the event of an error, the command returns a WLSTException. For information about setting encrypted attributes all encrypted attributes have names that end with Encrypted, see Writing and Reading Encrypted Configuration Values in Oracle WebLogic Scripting Tool. Note the following when using WLST online: ■ You must be in an edit session to use this command. See Section 3.7.17, startEdit . ■ You cannot use this command when WLST is connected to a Managed Server. ■ As an alternative to this command, you can use the cmo variable with the following syntax: cmo.setattrNamevalue For example, instead of using setListenPort, 7011, you can use: cmo.setListenPort7011 WLST Command and Variable Reference 3-49 For more information about the cmo variable, see Changing the Current Management Object in Oracle WebLogic Scripting Tool.

3.7.14.2 Syntax

setattrName, value

3.7.14.3 Example

The following example sets the ArchiveConfigurationCount attribute of DomainMBean to 10: wls:mydomainserverConfig setArchiveConfigurationCount, 10 The following example sets the long value of the T1TimerInterval attribute of a custom Mbean to 123: wls:mydomainserverConfig setT1TimerInterval, Long123 The following example sets the boolean value of the MyBooleanAttribute attribute of a custom Mbean to true: wls:mydomainserverConfig setMyBooleanAttribute, Booleantrue

3.7.15 setOption