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