You can use the Jython or Jacl scripting languages to manage servers with the wsadmin tool. 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 the AdminTask object includes the following commands:
Use the changeHostName command to change the host name of a node.
Target object
None
Parameters and return values
Examples
Interactive mode example usage:
$AdminTask changeHostName {-interactive}
AdminTask.changeHostName ('[-interactive]')
AdminTask.changeHostName (['-interactive'])
Use the getDmgrProperties command to return the name of the deployment manager.
Target object
None
Parameters and return values
Examples
Interactive mode example usage:
$AdminTask getDmgrProperties {-interactive}
AdminTask.getDmgrProperties ('[-interactive]')
AdminTask.getDmgrProperties (['-interactive'])
Use the isFederated command to check if the system is a single server or network deployment.
Target object
None
Parameters and return values
Examples
Interactive mode example usage:
$AdminTask isFederated {-interactive}
AdminTask.isFederated ('[-interactive]')
AdminTask.isFederated (['-interactive'])