Operating Systems: i5/OS
             Personalize the table of contents and search results

 

Specifying running objects using the wsadmin tool

 

Use scripting and the wsadmin tool to specify running objects. Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.

 

Overview

Perform the following steps to specify running objects:

 

Procedure

  1. Obtain the configuration ID with one of the following ways:

  2. If there are more than one running objects returned from the queryNames command, the objects are returned in a list syntax. One simple way to retrieve a single element from the list is to use the lindex command in Jacl and split command in Jython. The following example retrieves the first running object from the server list:

    For other ways to manipulate the list and then perform pattern matching to look for a specified configuration object, refer to the Jacl syntax.

 

Results

You can now use the running object in with other AdminControl commands that require an object name as a parameter.


}
ObjectName, Attribute, and AttributeList classes

 

Related tasks


Using the AdminControl object for scripted administration

 

Related Reference


Commands for the AdminControl object