WAS v8.5 > Reference > Commands (wsadmin scripting)

Utility command group of AdminTask

We can use the Jython or Jacl scripting languages to manage servers with wsadmin. 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 command group for 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 parameters:

-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 you are not sure of the value you should specify for this parameter, issue the IPLINFO command on your 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 server.xml 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"

Examples

Batch mode example usage:

Interactive mode example usage:


getDmgrProperties

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

Target object

None

Parameters and return values

Examples

Batch mode example usage:

Interactive mode example usage:


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 usage:

Interactive mode example usage:


Related


Use the wsadmin scripting AdminTask object for scripted administration


Reference:

Commands for AdminTask using wsadmin.sh
PersonalCertificateCommands command group for AdminTask


+

Search Tips   |   Advanced Search