Utility command group of AdminTask
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 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)
Examples
Interactive mode example usage:
- Jacl...
$AdminTask changeHostName {-interactive}- Use Jython string:
AdminTask.changeHostName ('[-interactive]')- Use Jython list:
AdminTask.changeHostName (['-interactive'])
getDmgrProperties
Use the getDmgrProperties command to return the name of the dmgr.
Target object
None
Parameters and return values
- Parameters: None
- Returns: The name of the dmgr in a network deployment system. Returns an empty string if the system is a single server.
Examples
Interactive mode example usage:
- Jacl...
$AdminTask getDmgrProperties {-interactive}- Use Jython string:
AdminTask.getDmgrProperties ('[-interactive]')- Use Jython list:
AdminTask.getDmgrProperties (['-interactive'])
isFederated
Use the isFederated command to check if the system is a single server or network deployment.
Target object
None
Parameters and return values
- Parameters: None
- Returns: Boolean. true if the system is a network deployment system. Otherwise it returns false.
Examples
Interactive mode example usage:
- Jacl...
$AdminTask isFederated {-interactive}- Use Jython string:
AdminTask.isFederated ('[-interactive]')- Use Jython list:
AdminTask.isFederated (['-interactive'])
Related tasks
Use AdminTask for scripted administration
Related
Commands for AdminTask