WebSphere Enterprise Service Bus, Version 6.2.0 Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows


Accessing command assistance from the administrative console

Use command assistance to see wsadmin scripting commands that correspond to actions in the administrative console. Seeing the commands can help you develop the command-line tools needed to administer the server from the wsadmin utility.

Before you begin

Before using command assistance, do the following:

About this task

Using command assistance, you can view wsadmin scripting commands in the Jython language for the last action run in many pages in the administrative console.

If a command assistance link is listed in the help portlet, wsadmin commands exist for the last console action you completed, and command assistance is available for that action.

Examples of actions include a click on a button or a click on a link in the navigation bar, collection page, or detail page. Editing a form is not a user action and is not captured by command assistance.

The wsadmin scripting commands display in the Jython language in a secondary window. If you perform an administrative action after you launch the Administrative Scripting Commands window, the window automatically refreshes the command list to reflect the most recent console action.

When command assistance is unavailable in the help portlet: Some console actions do not have wsadmin commands directly associated with them. When the help portlet on the right side of the administrative console page does not have a command assistance link in it, no command assistance data is available for the last console action.

To use command assistance in the console, perform the following steps.

Procedure
  1. Optional: Set console preferences to capture command assistance data in a log file, as follows:
    1. Click System Administration > Console Preferences to open the Preferences page.
    2. Select Log command assistance commands.
  2. Optional: Set console preferences to allow command assistance to emit Java Management Extensions (JMX) notifications, as follows:
    1. Click System Administration > Console Preferences to open the Preferences page.
    2. Select Enable command assistance notifications to emit websphere.command.assistance.jython.user_name notifications.
  3. Navigate to the console page you want to use with command assistance.
  4. Click View administrative scripting command for last action from the Help portlet on the right side of the page. The Administrative Scripting Commands window opens and displays the Jython for the related wsadmin scripting command.
  5. Optional: View the description of a specific wsadmin command by placing your cursor over the command to display hover help.

Results

You have viewed wsadmin scripting commands from the administrative console, optionally logged the commands to a file, and optionally allowed command assistance to emit JMX notifications.

What to do next

You can use the information provided by command assistance when creating wsadmin scripts to automate administrative tasks.

task Task topic

Terms of use | Feedback


Timestamp icon Last updated: 21 June 2010


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wesb620.doc/doc/tadm_access_cmdassist.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).