Commands (wsadmin scripting)

Look up a scripting object or command class to find details about its command syntax.

Tip: Read the following tips before using the topics and the commands.
  • If you are using a SOAP connection, a command can take longer to complete than the specified SOAP timeout value. Although the command continues to run until it is finished, you might see the exception java.net.SocketTimeoutException: Read timed out. To prevent this exception, set a higher value for the com.ibm.SOAP.requestTimeout property in the profile_root/properties/soap.client.props file.
  • Some wsadmin commands return multiple lines of information. If you are using Jython and the command output is not formatted appropriately, add the print statement before the command, as shown in the following example.
    print AdminTask.BPMShowSnapshot('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -containerTrackAcronym Main]')
  • Use the following command to get detailed help on a particular command:
    print AdminTask.help('command_name')
  • Many of the command reference pages contain examples. Because these are examples, they often show the use of explicit values for things like user names, passwords, and server names. Be sure to use the appropriate values for your environment when running these commands.
  • If you are not connecting to the default profile, use the -profileName profile_name option.
  • After running the command, save your changes to the master configuration using AdminConfig.save().