How do I use wsadmin commands to administer applications and their environments?

The wsadmin tool is a command-line interface that provides the ability to automate common tasks using Jacl or Jython scripts. The AdminTask, AdminApp, AdminControl, AdminConfig, and Help objects provide many commands and options that allow you to write and customize scripts to administer your applications, environment, web services, resources, and security configurations. Follow these shortcuts to get started quickly with popular tasks.

Avoid trouble: The % character is a special character that is used by the Microsoft Windows operating systems. If you are running on a Microsoft Windows operating system, and you are:
  • Invoking a command or .bat file, such as stopServer.bat from the profile_root directory, and the command or .bat file contains a call to a .bat file in the installation_root directory and
  • Using one or more % characters as part of the value for a parameter

You must use two % characters (%%) for each % character contained in the parameter value to prevent the % characters that are part of the parameter value from being consumed by the operating system.

For example, if you want to use was%admin as the value of the -password parameter, you must specify the following command:

wsadmin.bat -username wsadmin -password was%%admin

instead of:

wsadmin.bat -username wsadmin -password was%admin

Use policy sets to simplify and centrally manage settings for your web service Quality of Service configurations.Use scripting to configure web services policy sets

Configure the trust service to manage token providers and endpoint token configurations.Use scripting to create secure sessions between clients and services

Configure application server settings that control how an application server provides services for running enterprise applications and their components.Use scripting to configure application servers

Create, configure, and operate application server processes.Use scripting to manage application servers

Update deployed applications or modules using wsadmin scripting. Learn about hot deployment and dynamic reloading.Use scripting to update applications

The product enables supported web servers to pass requests to the application server, for applications running on the application server. Use scripting to administer communication with web servers (plug-ins)

To monitor application servers and manage the workloads of servers, use server clusters and cluster members provided by the Network Deployment product.Use scripting to balance workloads by clustering application servers

Configure the service that the product provides for managing HTTP sessions: Session Manager.Use scripting to administer HTTP sessions

Configure data sources that applications use to access the data from databases.Use scripting to provide access to relational databases (JDBC resources)

Implement a messaging provider. A messaging provider enables use of the Java Messaging Service (JMS) and other message resources in the product.Use scripting to provide access to messaging resources (default messaging provider)

Secure communications, create SSL configurations, and configure security certificate settings.Use scripting to secure applications and their environments