These examples assume that the DAS resource group has already been created, the failover IP address has been added to the resource group, and the resource group has been brought online.
In this example, the default values for the extension properties are used.
# clresourcetype register SUNW.jsas |
# clresource create -g das-rg \ -t SUNW.jsas \ -p Network_resources_used=IP1 \ -p Adminuser=admin \ -p Domain_name=domain1 \ -p Passwordfile=/global/disk1/passwordfile das-rs |
In this example, the following values are set.
The resource name is das-rs.
The resource group is das-rg.
The administrative user is admin.
The domain name is domain1.
The full path to the password file is /global/disk1/passwordfile.
The Application Server is assumed to be installed in the standard location /opt/SUNWappserver, which is the default value of the extension property Confdir_list.
The domain is assumed to be installed in the path that you set at the time of installation. This path is defined by the variable AS_DEF_DOMAINS in the file /opt/SUNWappserver/appserver/config/asenv.conf. The binaries can be stored in the local file system, but the domain directory must be in the global file system.
In this example, the Application Server is not installed in the default location and the domain directory is not the default.
# clresourcetype register SUNW.jsas |
# clresource create -g das-rg \ -t SUNW.jsas \ -p Network_resources_used=IP1 \ -p Adminuser=admin \ -p Domain_name=domain1 \ -p Passwordfile=/global/disk1/passwordfile \ -p Confdir_list=/global/disk1/SUNWappserver \ -p Domaindir=/global/disk1/my-domain das-rs |
In this example, the following values are set.
The resource name is das-rs.
The resource group is das-rg.
The administrative user is admin.
The domain name is domain1.
The full path to the password file is /global/disk1/passwordfile.
The Application Server is installed in the directory /global/disk1/SUNWappserver.
The domain directory is /global/disk1/my-domain.
In this example, the extension property Monitor_Uri_List specifies the URI that is serviced by applications on the Application Server. The fault monitor probe monitors this URI to test the functionality of the Application Server.
# clresourcetype register SUNW.jsas |
# clresource create -g das-rg \ -t SUNW.jsas \ -p Network_resources_used=IP1 \ -p Adminuser=admin \ -p Domain_name=domain1 \ -p Passwordfile=/global/disk1/passwordfile \ -p Confdir_list=/global/disk1/SUNWappserver \ -p Domaindir=/global/disk1/my-domain \ -p Monitor_Uri_List=http://IP1:4848/web-service das-rs |
In this example, the following values are set.
The resource name is das-rs.
The resource group is das-rg.
The administrative user is admin.
The domain name is domain1.
The full path to the password file is /global/disk1/passwordfile.
The Application Server is installed in the directory /global/disk1/SUNWappserver.
The domain directory is /global/disk1/my-domain.
The URI to be monitored is http://IP1:4848/web-service.