Pages

Wednesday, July 4, 2012

Creating WAS profiles using manageprofiles.sh command


Create a deployment manager profile

The following example creates a deployment manager profile:
./manageprofiles.sh -create -profileName dmgr01 -profilePath /opt/IBM/Websphere/Appserver/profiles/dmgr01 -templatePath  /opt/IBM/Websphere/Appserver/profileTemplates/dmgr -hostName 192.168.1.50 -nodeName dmgr01node01 -cellName cell01
Issue the following parameters:
-create
Creates a profile. (Required)
-templatePath template_path
Specifies the file path to the template. (Required)
Use the following format:
-templatePath install_root/profileTemplates/xd_augment/dmgr
-profileName
Specifies the name of the profile. (Optional)
-profilePath
Specifies the intended location of the profile in the file system. (Optional)
-hostName
Specifies the host name of the profile. (Optional)
-nodeName
Specifies the node name of the profile. The name must be unique within the cell. (Optional)
-cellName
Specifies the cell name of the profile. The cell name must be unique for each profile. (Optional)
-isDefault
Designates the profile as the default target of commands that do not use a profile parameter. (Optional)
-omitAction
Omits optional features. (Optional)
-adminUserName
Specifies the valid username for use with administrative security. (Optional)
-adminPassword
Specifies the password that is used with the name specified with the -adminUserName parameter. (Optional)
-portsFile
Specifies the path to a file that defines port settings for the new profile. Do not use this parameter with the -startingPort or -defaultPortsparameters. (Optional)
-startingPort
Specifies the starting port number for generating all ports for the profile. Do not use this parameter with the -portsFile or -defaultPortsparameters. (Optional)
-defaultPorts
Accepts the default ports for the new profile. Do not use this parameter with the -portsFile or -startingPort parameters. (Optional)
-validatePorts
Specifies which ports to validate to ensure the ports are not already in use or reserved. (Optional)


Create a custom profile

The following example creates a custom profile:
./manageprofiles.sh -create -profileName customNode01 -profilePath /export/home/wasadmin/IBM/Websphere/Appserver/profiles/customNode01 -templatePath  /export/home/wasadmin/IBM/Websphere/Appserver/profileTemplates/managed -hostName 192.168.1.50 -nodeName customNode01 -federateLater false -dmgrHost 192.168.1.50 -dmgrPort 8879 
Issue the following parameters:
-create
Creates a profile. (Required)
-templatePath template_path
Specifies the file path to the template. (Required)
Use the following format:
-templatePath install_root/profileTemplates/xd_augment/managed
-profileName
Specifies the name of the profile. The parameter is optional, but is issued by default if no values are specified.
-profilePath
Specifies the intended location of the profile in the file system. The parameter is optional, but is issued by default if no values are specified.
-hostName
Specifies the host name of the profile. The parameter is optional, but is issued by default if no values are specified.
-nodeName
Specifies the node name of the profile. The name must be unique within the cell. The parameter is optional, but is issued by default if no values are specified.
-cellName
Specifies the cell name of the profile. The cell name must be unique for each profile. The parameter is optional, but is issued by default if no values are specified.
-federateLater
Federates the node at a later time. Specify the value as true. The parameter is optional, but is issued by default if no values are specified.
-dmgrHost
Specifies the workstation in which the deployment manager is running. The parameter is optional, but is issued by default if no values are specified.
-dmgrPort
Specifies the SOAP port of the deployment manager. The parameter is optional, but is issued by default if no values are specified.
-isDefault
Designates the profile as the default target of commands that do not use a profile parameter. (Optional)
-omitAction
Omits optional features. (Optional)
-portsFile
Specifies the path to a file that defines port settings for the new profile. Do not use this parameter with the -startingPort or -defaultPortsparameters. (Optional)
-dmgrAdminUserName
Specifies the username of the deployment manager that you want to federate to. (Optional)
-dmgrAdminPassword
Specifies the password for the deployment manager that you want to federate to. (Optional)


Suggestions are always welcome..!  Without signing also you can send your comments.

No comments: