WAS v8.5 > Script the application serving environment (wsadmin)Use wsadmin scripting
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 to perform the same tasks that we can perform using the dmgr console.
Restriction: The wsadmin tool does not apply to the Liberty profile. See Administer the Liberty profile instead.
The following list highlights the topics and tasks available with scripting:
- Get started with scripting
Provides an introduction to WAS scripting and information about using wsadmin. Topics include information about the scripting languages and the scripting objects, and instructions for starting wsadmin.- Use the script library to automate the application serving environment
Provides a set of Jython script procedures that automate the most common application server administration functions. For example, we can use the script library to easily configure servers, applications, mail settings, resources, nodes, business-level applications, clusters, authorization groups, and more. We can run each script procedure individually, or combine several procedures to develop new scripts.- Deploy applications
Provides instructions for deploying and uninstalling applications. For example, stand-alone Java archive files and web archive files, the dmgr console, remote EAR file, 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 Java virtual machine, 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 we use to manage servers. For example, stopping nodes, starting and stopping servers, querying a server state, starting a listener port, and so on.- Configure security
Includes security tasks, for example, enabling and disabling administrative security, enabling and disabling Java 2 security, and so on.- 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 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.- Troubleshooting
Provides information about how to troubleshoot using scripting. For example, tracing, thread dumps, profiles, and so on.- Scripting reference material
Includes all of the reference material related to scripting. Topics include the syntax for wsadmin and for the administrative command framework, explanations and examples for all of the scripting object commands, the scripting properties, and so on.
Subtopics
- Get started with wsadmin scripting
Scripting is a non-graphical alternative used to manage WAS.- Use the script library to automate the application serving environment using wsadmin.sh
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.- Administer applications using wsadmin.sh
We can use administrative scripts and wsadmin to install, uninstall, and manage applications.- Manage deployed applications using wsadmin.sh
Use these topics to learn more about managing deployed applications with wsadmin and scripting.- Configure servers with scripting
We can use wsadmin to configure application servers in the environment. An application server configuration provides settings that control how an application server provides services for running applications and their components.- Set up intermediary services using scripting
Use wsadmin and the Jython scripting language to configure intermediary services, such as web servers, and proxy servers.- Manage servers and nodes with scripting
Use wsadmin to administer your administrative architecture and runtime settings.- Configure security with scripting
We can configure security with scripting and wsadmin.- Configure data access with wsadmin scripting
Use these topics to learn about using wsadmin.sh to configure data access.- Configure messaging with wsadmin scripting
Use these topics to learn about configuring messaging with wsadmin. We can configure the message listener service, Java Messaging Service settings, queue and connection factories, and WebSphere MQ settings.- Configure mail, URLs, and resource environment entries with wsadmin scripting
Use scripting to configure mail, URLs, and resource environment entries.- Configure web services applications using wsadmin.sh
We can use the wsadmin scripting tool to complete the several tasks for a web services application.- Use the Administration Thin Client
With the Administration Thin Client, we can run wsadmin or a standalone administrative Java program with only a couple of JAR files. This reduces the amount of time that it takes for wsadmin to start and improved performance. This information should be used to set up JMX client programs.- Troubleshooting with scripting
Use these topics to learn more about troubleshooting with scripting.- Scripting and command line reference material using wsadmin.sh
Use this topic to locate wsadmin tool commands for the AdminTask, AdminControl, AdminConfig, and AdminApp scripting objects. This topic also provides a pointer to command line commands and options.