Introduction: Administrative scripting (wsadmin)
The WebSphere administrative (wsadmin) scripting program is a powerful, non-graphical command interpreter environment enabling you to run administrative operations in a scripting language.
The wsadmin tool is intended for production environments and unattended operations. We can use wsadmin.sh to perform the same tasks that we can perform using the console.
The following list highlights the topics and tasks available :
- Get started
Provides an introduction to WebSphere Application Server scripting and information about . Topics include information about the scripting languages and the scripting objects, and instructions for starting wsadmin.sh.
- Use the Jython script library
The script library provides Jython script procedures to assist in automating the environment. Use the sample scripts to manage applications, resources, servers, nodes, and clusters. We can also use the script procedures as examples to learn the Jython syntax.
- Deploy applications
Provides instructions for deploying and uninstalling applications. For example, stand-alone Java archive files and WAR files, the console, remote EAR files, file transfer applications, and so on.
- Manage deployed applications
Includes tasks that you perform after the application is deployed. For example, starting and stopping applications, checking status, modifying listener address ports, querying application state, configuring a shared library, and so on.
- Configure servers
Provides instructions for configuring servers, such as creating a server, modifying and restarting the server, configuring the JVM, disabling a component, disabling a service, and so on.
- Configure connections to web servers
Includes topics such as regenerating the plug-in, creating new virtual host templates, modifying virtual hosts, and so on.
- Manage servers
Includes tasks that you use to manage servers. For example, stopping nodes, starting and stopping servers, querying a server state, starting a listener port, and so on.
- Clustering servers
Includes topics about clusters, such as creating clusters, creating cluster members, querying a cluster state, removing clusters, and so on.
- Configure security
Includes security tasks such as enabling and disabling security.
- Configure data access
Includes topics such as configuring a Java DataBase Connectivity (JDBC) provider, defining a data source, configuring connection pools, and so on.
- Configure messaging
Includes topics about messaging, such as Java Message Service (JMS) connection, JMS provider, WebSphere queue connection factory, MQ topics, and so on.
- Configure mail, URLs, and resource environment entries
Includes topics such as mail providers, mail sessions, protocols, resource environment providers, referenceables, URL providers, URLs, and so on.
- Dynamic caching
Includes caching topics, for example, creating, viewing and modifying a cache instance.
Provides information about how to troubleshoot . For example, tracing, thread dumps, profiles, and so on.
- Obtaining product information
Includes tasks such as querying the product identification.
- Scripting reference material
Includes all of the reference material related to scripting. Topics include the syntax for wsadmin.sh and for the administrative command framework, explanations and examples for all of the scripting object commands, the scripting properties, and so on.
Use wsadmin scripting