Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Use the wsadmin scripting AdminTask object for scripted administration


Invoke an administrative command in batch mode using wsadmin scripting

Use AdminTask commands to invoke an administrative command in batch mode.

This topic describes how to invoke an administrative command in batch mode using wsadmin.sh.

To invoke an administrative command in interactive mode, see the topic on invoking a command in interactive mode.


Procedure

  1. Invoke the AdminTask object commands interactively, in a script, or use the wsadmin -c command from an operating system command prompt.

    See the topic on starting the wsadmin scripting client.

  2. Issue one of the following commands:

    • If an administrative command does not have a target object and an argument, use the following command:

      ### Jacl

      $AdminTask commandName
      

      ### Jython

      AdminTask.commandName()
      

    • If an administrative command includes a target object but does not include any arguments or steps, use the following command:

      ### Jacl

      $AdminTask commandName targetObject
      

      ### Jython

      AdminTask.commandName(targetObject)
      

    • If an administrative command includes an argument or a step but does not include a target object, use the following command:

      ### Jacl

      $AdminTask commandName options
      

      ### Jython

      AdminTask.commandName(options)
      

    • If an administrative command includes a target object, and arguments or steps:

      ### Jacl

      $AdminTask commandName targetObject options
      

      ### Jython

      AdminTask.commandName(targetObject, options)
      


Example


Invoke an administrative command in interactive mode using wsadmin.sh
Start the wsadmin scripting client using wsadmin.sh

+

Search Tips   |   Advanced Search