ManagedObjectMetadata command group for 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 ManagedObjectMetadata group can be used to retrieve configuration and metadata information for a specified node. The ManagedObjectMetadata command group for the AdminTask object includes the following commands:
- compareNodeVersion
- getMetadataProperties
- getMetadataProperty
- getNodeBaseProductVersion
- getNodeMajorVersion
- getNodeMinorVersion
- getNodePlatformOS
- getNodeSysplexName
- isNodeZOS
compareNodeV
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 WebSphere Application Server version number.
Examples
Batch mode example usage:
- Use Jacl:
$AdminTask compareNodeV{-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:
- Use Jacl:
$AdminTask compareNodeV{-interactive}
- Use Jython string:
AdminTask.compareNodeV('[-interactive]')
- Use Jython list:
AdminTask.compareNodeV(['-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:
- Use Jacl:
$AdminTask getMetadataProperties {-nodeName node1}
- Use Jython string:
AdminTask.getMetadataProperties('[-nodeName node1]')
- Use Jython list:
AdminTask.getMetadataProperties(['-nodeName', 'node1'])
Interactive mode example usage:
- Use 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:
- Use 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:
- Use Jacl:
$AdminTask getMetadataProperty {-interactive}
- Use Jython string:
AdminTask.getMetadataProperty ('[-interactive]')
- Use Jython list:
AdminTask.getMetadataProperty (['-interactive'])
getNodeBaseProductV
The getNodeBaseProductVersion command returns the version of the WebSphere Application Server 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:
- Use Jacl:
$AdminTask getNodeBaseProductV{-nodeName node1}
- Use Jython string:
AdminTask.getNodeBaseProductVersion('[-nodeName node1]')
- Use Jython list:
AdminTask.getNodeBaseProductVersion(['-nodeName', 'node1'])
Interactive mode example usage:
- Use Jacl:
$AdminTask getNodeBaseProductV{-interactive}
- Use Jython string:
AdminTask.getNodeBaseProductV('[-interactive]')
- Use Jython list:
AdminTask.getNodeBaseProductV(['-interactive'])
getNodeMajorV
The getNodeMajorVersion command returns the major version of the WAS for a node that you specify.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:
- Use Jacl:
$AdminTask getNodeMajorV{-nodeName node1}
- Use Jython string:
AdminTask.getNodeMajorVersion('[-nodeName node1]')
- Use Jython list:
AdminTask.getNodeMajorVersion(['-nodeName', 'node1'])
Interactive mode example usage:
- Use Jacl:
$AdminTask getNodeMajorV{-interactive}
- Use Jython string:
AdminTask.getNodeMajorV('[-interactive]')
- Use Jython list:
AdminTask.getNodeMajorV(['-interactive'])
getNodeMinorV
The getNodeMinorVersion command returns the minor version of the WAS for a node that you specify.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:
- Use Jacl:
$AdminTask getNodeMinorV{-nodeName node1}
- Use Jython string:
AdminTask.getNodeMinorVersion('[-nodeName node1]')
- Use Jython list:
AdminTask.getNodeMinorVersion(['-nodeName', 'node1'])
Interactive mode example usage:
- Use Jacl:
$AdminTask getNodeMinorV{-interactive}
- Use Jython string:
AdminTask.getNodeMinorV('[-interactive]')
- Use Jython list:
AdminTask.getNodeMinorV(['-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:
- Use Jacl:
$AdminTask getNodePlatformOS {-nodeName node1}
- Use Jython string:
AdminTask.getNodePlatformOS('[-nodeName node1]')
- Use Jython list:
AdminTask.getNodePlatformOS(['-nodeName', 'node1'])
Interactive mode example usage:
- Use 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:
- Use Jacl:
$AdminTask getNodeSysplexName {-nodeName node1}
- Use Jython string:
AdminTask.getNodeSysplexName('[-nodeName node1]')
- Use Jython list:
AdminTask.getNodeSysplexName(['-nodeName', 'node1'])
Interactive mode example usage:
- Use 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:
- Use Jacl:
$AdminTask isNodeZOS {-nodeName node1}
- Use Jython string:
AdminTask.isNodeZOS('[-nodeName node1]')
- Use Jython list:
AdminTask.isNodeZOS(['-nodeName', 'node1'])
Interactive mode example usage:
- Use Jacl:
$AdminTask isNodeZOS {-interactive}
- Use Jython string:
AdminTask.isNodeZOS ('[-interactive]')
- Use Jython list:
AdminTask.isNodeZOS (['-interactive'])
Related tasks
Use the AdminTask object for scripted administration
Related Reference
Commands for the AdminTask object
Reference topic