You can use the Jython or Jacl scripting languages to manage servers with the wsadmin tool. Use the commands and parameters in the Utility group to query for the name of the deployment manager, and to determine if the system is a single server or network deployment.
Use the getDmgrProperties command to display the name of the deployment manager.
Target object
None
Parameters and return values
Return value
The command returns the name of the deployment manager in a network deployment system. The command returns an empty string if the system is a single server.
Examples
Batch mode example usage:
$AdminTask getDmgrProperties {}
AdminTask.getDmgrProperties()
Interactive mode example usage:
$AdminTask getDmgrProperties {-interactive}
AdminTask.getDmgrProperties('-interactive')
Use the isFederated command to determine whether the system is a single server or a network deployment configuration.
Target object
None
Parameters
None
Return value
The command returns a value of true if the system is a network deployment system. The command returns a value of false if the system is a single server.
Examples
Batch mode example usage:
$AdminTask isFederated {}
AdminTask.isFederated ()
Interactive mode example usage:
$AdminTask isFederated {-interactive}
AdminTask.isFederated('-interactive')