Use the wsadmin scripting objects

 

+

Search Tips   |   Advanced Search

 

Overview

Each of the management objects have commands used to to perform administrative tasks. To use the scripting objects, specify the scripting object, a command, and command parameters.

In the following example, AdminConfig is the scripting object, attributes is the command, and ApplicationServer is the command parameter.

Use Jython:

print AdminConfig.attributes('ApplicationServer')

Use Jacl:

$AdminConfig attributes ApplicationServer

Administrative functions within the appserver are divided into two categories: functions that work with the configuration of appserver installations, and functions that work with the currently running objects on appserver installations. Scripts work with both categories of objects. For example, an appserver is divided into two distinct entities. One entity represents the configuration of the server that resides persistently in a repository on permanent storage.

 

Procedure



Help object for scripted administration
Use the AdminApp object for scripted administration
Use the AdminControl object for scripted administration
Use the AdminConfig object for scripted administration
Use the AdminTask object for scripted administration

 

Related concepts

Jacl

 

Related tasks

Start the wsadmin scripting client