ManagedObjectMetadata
Use the Jython or Jacl scripting languages to manage servers with wsadmin. The commands and parameters in the ManagedObjectMetadata group can be used to retrieve configuration and metadata information for a specified node.
The ManagedObjectMetadata includes the following commands:
- compareNodeVersion
- getMetadataProperties
- getMetadataProperty
- getNodeBaseProductVersion
- getNodeMajorVersion
- getNodeMinorVersion
- getNodePlatformOS
- getNodeSysplexName
- isNodeZOS
compareNodeVersion
The compareNodeVersion command compares the WAS version given a node specified and an input version.Target object
None
Parameters and return values
- -nodeName
- The name of the node associated with the metadata you want this command to return.
- -version
- A version number to compare to the WAS version number.
Examples
Batch mode example usage:
- Jacl...
$AdminTask compareNodeVersion {-nodeName node1 -version 5}- Use Jython string:
AdminTask.compareNodeVersion('[-nodeName node1 -version 5]')- Use Jython list:
AdminTask.compareNodeVersion(['-nodeName', 'node1', '-version', '5'])
Interactive mode example usage:
- Jacl...
$AdminTask compareNodeVersion {-interactive}- Use Jython string:
AdminTask.compareNodeVersion ('[-interactive]')- Use Jython list:
AdminTask.compareNodeVersion (['-interactive'])
getMetadataProperties
The getMetadataProperties command obtains all metadata for the node specified.Target object
None
Parameters and return values
- -nodeName
- The name of the node associated with the metadata you want this command to return.
Examples
Batch mode example usage:
- Jacl...
$AdminTask getMetadataProperties {-nodeName node1}- Use Jython string:
AdminTask.getMetadataProperties('[-nodeName node1]')- Use Jython list:
AdminTask.getMetadataProperties(['-nodeName', 'node1'])
Interactive mode example usage:
- Jacl...
$AdminTask getMetadataProperties {-interactive}- Use Jython string:
AdminTask.getMetadataProperties ('[-interactive]')- Use Jython list:
AdminTask.getMetadataProperties (['-interactive'])
getMetadataProperty
The getMetadataProperty command obtains metadata with the specified key for the node specified.Target object
None
Parameters and return values
- -nodeName
- The name of the node associated with the metadata you want this command to return.
- -propertyName
- Metadata property key.
Examples
Batch mode example usage:
- Jacl...
$AdminTask getMetadataProperty {-nodeName node1 -propertyName com.ibm.websphere.baseProductVersion}- Use Jython string:
AdminTask.getMetadataProperty ('[-nodeName node1 -propertyName com.ibm.websphere.baseProductVersion]')- Use Jython list:
AdminTask.getMetadataProperty (['-nodeName', 'node1', '-propertyName', 'com.ibm.websphere.baseProductVersion'])
Interactive mode example usage:
- Jacl...
$AdminTask getMetadataProperty {-interactive}- Use Jython string:
AdminTask.getMetadataProperty ('[-interactive]')- Use Jython list:
AdminTask.getMetadataProperty (['-interactive'])
getNodeBaseProductVersion
The getNodeBaseProductVersion command returns the version of the WAS for a node specified.Target object
None
Parameters and return values
- -nodeName
- The name of the node associated with the metadata you want this command to return.
Examples
Batch mode example usage:
- Jacl...
$AdminTask getNodeBaseProductVersion {-nodeName node1}- Use Jython string:
AdminTask.getNodeBaseProductVersion('[-nodeName node1]')- Use Jython list:
AdminTask.getNodeBaseProductVersion(['-nodeName', 'node1'])
Interactive mode example usage:
- Jacl...
$AdminTask getNodeBaseProductVersion {-interactive}- Use Jython string:
AdminTask.getNodeBaseProductVersion ('[-interactive]')- Use Jython list:
AdminTask.getNodeBaseProductVersion (['-interactive'])
getNodeMajorVersion
The getNodeMajorVersion command returns the major version of the WAS for a node specified.Target object
None
Parameters and return values
- -nodeName
- The name of the node associated with the metadata you want this command to return.
Examples
Batch mode example usage:
- Jacl...
$AdminTask getNodeMajorVersion {-nodeName node1}- Use Jython string:
AdminTask.getNodeMajorVersion('[-nodeName node1]')- Use Jython list:
AdminTask.getNodeMajorVersion(['-nodeName', 'node1'])
Interactive mode example usage:
- Jacl...
$AdminTask getNodeMajorVersion {-interactive}- Use Jython string:
AdminTask.getNodeMajorVersion ('[-interactive]')- Use Jython list:
AdminTask.getNodeMajorVersion (['-interactive'])
getNodeMinorVersion
The getNodeMinorVersion command returns the minor version of the WAS for a node specified.Target object
None
Parameters and return values
- -nodeName
- The name of the node associated with the metadata you want this command to return.
Examples
Batch mode example usage:
- Jacl...
$AdminTask getNodeMinorVersion {-nodeName node1}- Use Jython string:
AdminTask.getNodeMinorVersion('[-nodeName node1]')- Use Jython list:
AdminTask.getNodeMinorVersion(['-nodeName', 'node1'])
Interactive mode example usage:
- Jacl...
$AdminTask getNodeMinorVersion {-interactive}- Use Jython string:
AdminTask.getNodeMinorVersion ('[-interactive]')- Use Jython list:
AdminTask.getNodeMinorVersion (['-interactive'])
getNodePlatformOS
The getNodePlatformOS command returns the operating system name for a node specified.Target object
None
Parameters and return values
- -nodeName
- The name of the node associated with the metadata you want this command to return.
Examples
Batch mode example usage:
- Jacl...
$AdminTask getNodePlatformOS {-nodeName node1}- Use Jython string:
AdminTask.getNodePlatformOS('[-nodeName node1]')- Use Jython list:
AdminTask.getNodePlatformOS(['-nodeName', 'node1'])
Interactive mode example usage:
- Jacl...
$AdminTask getNodePlatformOS {-interactive}- Use Jython string:
AdminTask.getNodePlatformOS ('[-interactive]')- Use Jython list:
AdminTask.getNodePlatformOS (['-interactive'])
getNodeSysplexName
The getNodeSysplexName command returns the sysplex name for a node specified.Target object
None
Parameters and return values
- -nodeName
- The name of the node associated with the metadata you want this command to return.
Examples
Batch mode example usage:
- Jacl...
$AdminTask getNodeSysplexName {-nodeName node1}- Use Jython string:
AdminTask.getNodeSysplexName('[-nodeName node1]')- Use Jython list:
AdminTask.getNodeSysplexName(['-nodeName', 'node1'])
Interactive mode example usage:
- Jacl...
$AdminTask getNodeSysplexName {-interactive}- Use Jython string:
AdminTask.getNodeSysplexName ('[-interactive]')- Use Jython list:
AdminTask.getNodeSysplexName (['-interactive'])
isNodeZOS
The isNodeZOS command tests if a node specified is running on the z/OS platform. This command does not apply to distributed platforms or to WAS-Express.Target object
None
Parameters and return values
- -nodeName
- The name of the node associated with the metadata you want this command to return.
Examples
Batch mode example usage:
- Jacl...
$AdminTask isNodeZOS {-nodeName node1}- Use Jython string:
AdminTask.isNodeZOS('[-nodeName node1]')- Use Jython list:
AdminTask.isNodeZOS(['-nodeName', 'node1'])
Interactive mode example usage:
- Jacl...
$AdminTask isNodeZOS {-interactive}- Use Jython string:
AdminTask.isNodeZOS ('[-interactive]')- Use Jython list:
AdminTask.isNodeZOS (['-interactive'])
Related tasks
Use AdminTask for scripted administration
Related
Commands for AdminTask