Commands for the ManagedObjectMetadata group of the AdminTask object

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..

For more information about the AdminTask object, see the Commands for the AdminTask object article.

The following commands are available for the ManagedObjectMetadata group of the AdminTask object:

Command name: Description: Target object: Parameters and return values: Examples:

compareNodeVersion

The compareNodeVcommand compares the WAS version given a node that you specify and an input version. None

  • Parameters:

    - nodeName

    The name of the node associated with the metadata you want this command to return.

    - version

    A version number that you want to compare to the WebSphere Application Server version number.

  • Returns:

Batch mode example usage:

  • Using Jacl

    $AdminTask compareNodeV{-nodeName node1 -version 5}
    

  • Using Jython string

    AdminTask.compareNodeVersion('[-nodeName node1 -version 5]')
    

Interactive mode example usage:

  • Using Jacl

    $AdminTask compareNodeV{-interactive}
    

  • Using Jython string

    AdminTask.compareNodeV('[-interactive]')
    

getMetadataProperties

The getMetadataProperties command obtains all metadata for the node that you specify. None

  • Parameters:

    - nodeName

    The name of the node associated with the metadata you want this command to return.

  • Returns: The list of metadata properties.

Batch mode example usage:

  • Using Jacl

    $AdminTask getMetadataProperties {-nodeName node1}
    

  • Using Jython string

    AdminTask.getMetadataProperties('[-nodeName node1]')
    

Interactive mode example usage:

  • Using Jacl

    $AdminTask getMetadataProperties {-interactive}
    

  • Using Jython string

    AdminTask.getMetadataProperties ('[-interactive]')
    

getMetadataProperty

The getMetadataProperty command obtains metadata with the specified key for the node that you specify. None

  • Parameters:

    - nodeName

    The name of the node associated with the metadata you want this command to return.

    - propertyName

    Metadata property key.

  • Returns: The requested property for the node that you specified.

Batch mode example usage:

  • Using Jacl

    $AdminTask getMetadataProperty {-nodeName node1 
    -propertyName com.ibm.websphere.baseProductVersion}
    

  • Using Jython string

    AdminTask.getMetadataProperty ('[-nodeName node1 
    -propertyName com.ibm.websphere.baseProductVersion]')
    

Interactive mode example usage:

  • Using Jacl

    $AdminTask getMetadataProperty {-interactive}
    

  • Using Jython string

    AdminTask.getMetadataProperty ('[-interactive]')
    

getNodeBaseProductVersion

The getNodeBaseProductVcommand returns the version of the WAS for a node that you specify. None

  • Parameters:

    - nodeName

    The name of the node associated with the metadata you want this command to return.

  • Returns: WAS version for the node that you specify.

Batch mode example usage:

  • Using Jacl

    $AdminTask getNodeBaseProductV{-nodeName node1}
    

  • Using Jython string

    AdminTask.getNodeBaseProductVersion('[-nodeName node1]')
    

Interactive mode example usage:

  • Using Jacl

    $AdminTask getNodeBaseProductV{-interactive}
    

  • Using Jython string

    AdminTask.getNodeBaseProductV('[-interactive]')
    

getNodeMajorVersion

The getNodeMajorVcommand returns the major version of the WebSphere Application Server for a node that you specify. None

  • Parameters:

    - nodeName

    The name of the node associated with the metadata you want this command to return.

  • Returns: WAS major version for the node that you specified.

Batch mode example usage:

  • Using Jacl

    $AdminTask getNodeMajorV{-nodeName node1}
    

  • Using Jython string

    AdminTask.getNodeMajorVersion('[-nodeName node1]')
    

Interactive mode example usage:

  • Using Jacl

    $AdminTask getNodeMajorV{-interactive}
    

  • Using Jython string

    AdminTask.getNodeMajorV('[-interactive]')
    

getNodeMinorVersion

The getNodeMinorVcommand returns the minor version of the WebSphere Application Server for a node that you specify. None

  • Parameters:

    - nodeName

    The name of the node associated with the metadata you want this command to return.

  • Returns: WAS minor version for the node that you specified.

Batch mode example usage:

  • Using Jacl

    $AdminTask getNodeMinorV{-nodeName node1}
    

  • Using Jython string

    AdminTask.getNodeMinorVersion('[-nodeName node1]')
    

Interactive mode example usage:

  • Using Jacl

    $AdminTask getNodeMinorV{-interactive}
    

  • Using Jython string

    AdminTask.getNodeMinorV('[-interactive]')
    

getNodePlatformOS

The getNodePlatformOS command returns the operating system name for a node that you specify. None

  • Parameters:

    - nodeName

    The name of the node associated with the metadata you want this command to return.

  • Returns: The operating system name of the node that you specified.

Batch mode example usage:

  • Using Jacl

    $AdminTask getNodePlatformOS {-nodeName node1}
    

  • Using Jython string

    AdminTask.getNodePlatformOS('[-nodeName node1]')
    

Interactive mode example usage:

  • Using Jacl

    $AdminTask getNodePlatformOS {-interactive}
    

  • Using Jython string

    AdminTask.getNodePlatformOS ('[-interactive]')
    

getNodeSysplexName

The getNodeSysplexName command returns the sysplex name for a node that you specify. None

  • Parameters:

    - nodeName

    The name of the node associated with the metadata you want this command to return.

  • Returns: The sysplex name of the given node.

Batch mode example usage:

  • Using Jacl

    $AdminTask getNodeSysplexName {-nodeName node1}
    

  • Using Jython string

    AdminTask.getNodeSysplexName('[-nodeName node1]')
    

Interactive mode example usage:

  • Using Jacl

    $AdminTask getNodeSysplexName {-interactive}
    

  • Using Jython string

    AdminTask.getNodeSysplexName ('[-interactive]')
    

isNodeZOS The isNodeZOS command tests if a node that you specify is running on the z/OS platform. This command does not apply to distributed platforms or to WebSphere Application Server-Express. None

  • Parameters:

    - nodeName

    The name of the node associated with the metadata you want this command to return.

  • Returns: A true value if the node operating system is z/OS. A false value if the node operating system is not z/OS.

Batch mode example usage:

  • Using Jacl

    $AdminTask isNodeZOS {-nodeName node1}
    

  • Using Jython string

    AdminTask.isNodeZOS('[-nodeName node1]')
    

Interactive mode example usage:

  • Using Jacl

    $AdminTask isNodeZOS {-interactive}
    

  • Using Jython string

    AdminTask.isNodeZOS ('[-interactive]')
    


Related tasks
Using the AdminTask object for scripted administration Related reference
Commands for the AdminTask object

 



 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.