+

Search Tips   |   Advanced Search

Utility (AdminTask)

We can use the Jython or Jacl scripting languages to manage servers with wsadmin.sh. The commands and parameters in the Utility group can be used to change the host name of a node, to query for the name of the deployment manager, and to determine if the system is a single server or network deployment.

The Utility (AdminTask) includes the following commands:


changeHostName

Use the changeHostName command to change the host name of a node.

Target object

None

Parameters and return values

-hostName

The new host name. (String, required)

-nodeName

The name of the node whose host name will be changed. (String, required)

Optional...

-systemName

The name of the z/OS system on which this node will run. This field is only required if a node is to be moved from one system to another, for example, form system SYSA to system SYSB. If we are not sure of the value you should specify for this parameter, issue the IPLINFO command on the z/OS system, and use the name that displays in the Sysname= field as the value for this parameter.

When you run the changeHostName command interactively, the systemName parameter appears, but is only to be used for a z/OS system. The systemName parameter represents the z/OS system name defined in the server.xml file as a value for property, was.ConfiguredSystemName. When the systemName parameter is selected, this property is changed.

-regenDefaultCert

A request to regenerate default certificates. The only valid value for this parameter is "true" to regenerate default certificates. Any other value assumes to NOT regenerate default certificates. The string argument is processed as a boolean. The boolean returned represents the value true if the string argument is not null and is equal, ignoring case, to the string "true". The regenDefaultCert parameter operates like AdminTask.createChainedCertificate and has the following default values:

  • keyStoreName "NodeDefaultKeyStore"

  • keyStoreScope "(node):" + nodeName

  • certificateAlias" "default_" + hostName

  • certificateCommonName" nodeName

  • certificateOrganization" "IBM"

  • certificateOrganizationalUnit" nodeName

  • certificateCountry "US"

(V8502) Note: For both AdminTask.createChainedCertificate and the regenDefaultCert parameters, if using the dmg node the -keyStoreName value changes to -keyStoreName "CellDefaultKeyStore", and the -keyStoreScope value to -keyStoreScope "(cell):" + cellname.

The switch is a convenience switch that makes assumptions about the default values of the certificate parameters. If the default values are not used, then AdminTask.createChainedCertificate or regenDefaultCert should be used instead.

Examples

Batch mode example:

Interactive mode:


getDmgrProperties

Use the getDmgrProperties command to return the name of the deployment manager.

Target object

None

Parameters and return values

Examples

Batch mode example:

Interactive mode:


isFederated

Use the isFederated command to check if the system is a single server or network deployment.

Target object

None

Parameters and return values

Examples

Batch mode example:

Interactive mode:


Related tasks

  • Use the wsadmin scripting AdminTask object for scripted administration

  • Commands (AdminTask)
  • PersonalCertificateCommands (AdminTask)