Description Syntax Example create

WLST Command and Variable Reference 3-41 Edit session is cancelled successfully wls:mydomainedit

3.7.4 create

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

3.7.4.1 Description

Creates a configuration bean of the specified type for the current bean. The create command returns a stub for the newly created configuration bean. In the event of an error, the command returns a WLSTException. Please note the following when using the create command with WLST online: ■ You must be connected to an Administration Server. You cannot use the create command for runtime MBeans or when WLST is connected to a Managed Server instance. ■ You must navigate to the edit configuration MBean hierarchy using the edit command before issuing this command. See Section 3.11.5, edit . ■ You can use the create command to create a WebLogic Server configuration MBean that is a child of the current MBean type. Please note the following when using the create command with WLST offline: ■ When using WLST offline, the following characters are not valid in object names: period ., forward slash , or backward slash \. For more information about: ■ Creating MBeans, see Understanding WebLogic Server MBeans in Developing Custom Management Utilities with JMX. ■ Examples of creating specific types of MBean resources, for example, a JMS or JDBC system resource, refer to the WLST sample scripts installed with your product, as described in WLST Sample Scripts in Oracle WebLogic Scripting Tool. ■ MBeans, their child types, attributes, and operations, see Oracle WebLogic Server MBean Reference.

3.7.4.2 Syntax

createname, childMBeanType, [baseProviderType] Note: Child types must be created under an instance of their parent type. You can only create configuration beans that are children of the current Configuration Management Object cmo type. For more information about the cmo variable, see Changing the Current Management Object in Oracle WebLogic Scripting Tool. Argument Definition name Name of the configuration bean that you are creating. 3-42 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

3.7.4.3 Example

The following example creates a child configuration bean of type Server named newServer for the current configuration bean, storing the stub as server1: wls:mydomainedit server1=createnewServer,Server Server with name newServer has been created successfully. wls:mydomainedit server1.getName newServer wls:mydomainedit The following example creates an authentication provider security provider called myProvider: wls:mydomainedit cdSecurityConfigurationmydomainRealmsmyrealm wls:mydomainedit createmyProvider,weblogic.security.providers.authentication.SQLAuthenticator ,AuthenticationProvider wls:mydomainedit cdAuthenticationProvidersmyProvider wls:mydomainedit setControlFlag, REQUIRED The following example creates a machine named highsec_nm and sets attributes for the associated Node Manager. wls:mydomainedit createhighsec_nm, Machine wls:mydomainedit cdMachinehighsec_nmNodeManagerhighsec_nm wls:mydomainedit setDebugEnabled, true wls:mydomainedit setListenAddress, innes wls:mydomainedit setNMType, SSL wls:mydomainedit setShellCommand,

3.7.5 delete