If the WebLogic Server START script startManagedWebLogic.sh uses a Managed Server name as an argument, then the extension property Server_name can be set. The START script startManagedWebLogic.sh can be used to start several Managed Servers. The ADMIN_URL must be configured within the START script. To start the WebLogic Server manually, use the following commands:
cluster-node-1> cd /global/wls/user_projects/petstore cluster-node-1> ./startManagedWebLogic.sh petstore1
To configure an Oracle Solaris Cluster HA for WebLogic Server resource whose start script takes the server name petstore1, use the following commands:
# clresource create -t SUNW.wls \ -g wls-mgd-rg1 \ -p Confdir_list=/global/wls/Oracle/Middleware/wlserver_12.1 \ -p Server_url=http://logical-host-2:7003 \ -p Start_script=/global/wls/Oracle/Middleware/user_projects/domains/base_domain /bin/startManagedWebLogic.sh \ -p Server_name=mgd1 \ -p smooth_shutdown=true \ -p Resource_dependencies=logical-host-2 managed-server1
The resource is created in the enabled state.
To configure another HA for WebLogic Server resource that uses the same START script for a different server, petstore2, use the following commands:
# clresource create -t SUNW.wls \ -g wls-mgd-rg2 \ -p Confdir_list=/global/wls/Oracle/Middleware/wlserver_12.1 \ -p Server_url=http://logical-host-2:7004 \ -p Start_script=/global/wls/Oracle/Middleware/user_projects/domains/base_domain /bin/startManagedWebLogic.sh \ -p Server_name=mgd2 \ -p smooth_shutdown=true \ -p Resource_dependencies=logical-host-2 managed-server2
The resource is created in the enabled state.