WAS v8.5 > Script the application serving environment (wsadmin)Use the wsadmin scripting AdminControl object for scripted administration
The AdminControl scripting object is used for operational control. It communicates with MBeans that represent live objects running a WebSphere server process.
It includes commands to query existing running objects and their attributes and invoke operation on the running objects. In addition to the operational commands, the AdminControl object supports commands to query information on the connected server, convenient commands for client tracing, reconnecting to a server, and start and stop server for network deployment environment. Many of the operational commands have two sets of signatures so they can either invoke using string based parameters or using Java Management Extension (JMX) objects as parameters. Depending on the server process to which a scripting client is connected, the number and type of MBeans available varies. When connected to an application server, only MBeans running in that application server are visible.
The following steps provide a general method to manage the cycle of an application:
- Install the application.
- Edit the application.
- Update the application.
- Uninstall the application.
To see a list of all available commands for the AdminControl object:
- See the Commands for the AdminControl object topic.
- We can also use the help command, for example:
Jacl:
$AdminControl help
Jython:
print AdminControl.help()
Subtopics
- ObjectName, Attribute, and AttributeList classes using wsadmin.sh
WAS scripting commands use the underlying JMX classes, ObjectName, Attribute, and AttributeList, to manipulate object names, attributes and attribute lists respectively.- Example: Collecting arguments for the AdminControl object using wsadmin.sh
This example shows how to use multiple arguments with the AdminControl object.- Example: Identifying running objects using wsadmin.sh
Use the AdminControl object to interact with running MBeans.- Specify running objects using wsadmin.sh
Use scripting and wsadmin to specify running objects.- Identify attributes and operations for running objects using wsadmin.sh
We can use scripting to identify attributes and operations for running objects.- Performing operations on running objects using wsadmin.sh
We can use scripting to invoke operations on running objects.- Modify attributes on running objects using wsadmin.sh
Use scripting and wsadmin to modify attributes on running objects.- ObjectName, Attribute, and AttributeList classes using wsadmin.sh
WAS scripting commands use the underlying JMX classes, ObjectName, Attribute, and AttributeList, to manipulate object names, attributes and attribute lists respectively.- Example: Collecting arguments for the AdminControl object using wsadmin.sh
This example shows how to use multiple arguments with the AdminControl object.- Example: Identifying running objects using wsadmin.sh
Use the AdminControl object to interact with running MBeans.- Specify running objects using wsadmin.sh
Use scripting and wsadmin to specify running objects.- Identify attributes and operations for running objects using wsadmin.sh
We can use scripting to identify attributes and operations for running objects.- Performing operations on running objects using wsadmin.sh
We can use scripting to invoke operations on running objects.- Modify attributes on running objects using wsadmin.sh
Use scripting and wsadmin to modify attributes on running objects.
Reference:
Commands for the AdminControl object using wsadmin.sh