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 the applications, environment, web services, resources, and security configurations. Follow these shortcuts to get started quickly with popular tasks.
The % character is a special character used by the Microsoft Windows operating systems. If we 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
- Use one or more % characters as part of the value for a parameter
We 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, to use was%admin as the value of the -password parameter, specify the following command:
wsadmin.bat -username wsadmin -password was%%admin
instead of:
wsadmin.bat -username wsadmin -password was%admin gotcha
Use scripting to configure web services policy sets
Use scripting to create secure sessions between clients and services
Use scripting to configure application servers
Use scripting to manage application servers
Use scripting to update applications
Use scripting to administer communication with web servers (plug-ins)
Use scripting to balance workloads by clustering application servers
Use scripting to administer HTTP sessions
Use scripting to provide access to relational databases (JDBC resources)
Use scripting to provide access to messaging resources (default messaging provider)
Use scripting to secure applications and their environments
Related concepts
Overview: Administering
Related tasks
Use the script library to automate the application serving environment