+

Search Tips   |   Advanced Search

Get started with wsadmin scripting

The WebSphere Application Server wsadmin tool provides the ability to run scripts. The wsadmin tool supports a full range of product administrative activities.

The wsadmin tool does not apply to the Liberty profile.

The wsadmin tool supports two scripting languages: Jacl and Jython. Five objects are available when you use scripts:

The scripts use these objects to communicate with MBeans that run in WebSphere Application Server processes. MBeans are Java objects that represent JMX resources. JMX is an optional package addition to Java 2 Platform Standard Edition (J2SE). JMX is a technology that provides a simple and standard way to manage Java objects.

Important: Some wsadmin scripts, including the AdminApp install, AdminApp update, and some AdminTask commands, require that the user ID under which the server is running must have read permission to the files created by the user running wsadmin scripting. For example, if the application server is running under user1, but you are running wsadmin scripting under user2, you might encounter exceptions involving a temporary directory. When user2 runs wsadmin scripting to deploy an application, a temporary directory for the EAR file is created. However, when the application server attempts to read and unzip the EAR file as user1, the process fails. It is not recommended set the umask value of the user running wsadmin scripting to 022 or 023 to work around this issue. This approach makes all of the files created by the user readable by other users. To resolve this issue, consider the following approaches based on the administrative policies:

To perform a task , first perform the following steps:

  1. Choose a scripting language. The wsadmin tool only supports Jacl and Jython scripting languages. Jacl is the language specified by default. To use the Jython scripting language, use the -lang option or specify it in the wsadmin.properties file.

  2. Start the wsadmin scripting client interactively, as an individual command, in a script, or in a profile.


What to do next

Before you perform any task , make sure that you are familiar with the following concepts:

Optionally, we can customize the scripting environment. For more information, see Administrative properties for .

After you become familiar with the scripting concepts, choose a scripting language, and start the scripting client, you are ready to perform tasks .


Subtopics


Related concepts

  • Use wsadmin scripting with JMX
  • WebSphere Application Server configuration model
  • Use wsadmin scripting with Jacl
  • Use wsadmin scripting with Jython


    Related tasks

  • Use the wsadmin scripting objects
  • Start the wsadmin scripting client
  • Restricting remote access
  • Use wsadmin scripting

  • wsadmin scripting tool
  • Administrative properties for
  • Scripting and command line reference material


    Related information:

    IBM Jacl to Jython Conversion Assistant
    WebSphere Application Server Administration Using Jython