+

Search Tips   |   Advanced Search

Commands for the Help object

We can use the Jython or Jacl scripting languages to find general help and dynamic online information about the currently running MBeans with wsadmin.sh. Use the Help object as an aid in writing and running scripts with the AdminControl object.

The following commands are available for the Help object:


AdminApp

Use the AdminApp command to view a summary of each available method for the AdminApp object.

Target object None.

Required parameters

None.

Optional parameters

None.

Sample output

WASX7095I: The AdminApp object allows application objects to be manipulated -- this includes installing, uninstalling, editing, and listing.  Most of the commands supported by AdminApp operate in two modes: the default mode is one in which AdminApp communicates with the product to accomplish its tasks.  A local mode is also possible, in which no server communication takes place.  The local mode of operation is invoked by bringing up the scripting client with no server connected using the command line "-conntype NONE" option or setting the  "com.ibm.ws.scripting.connectionType=NONE" property in the wsadmin.properties.
 The following commands are supported by AdminApp; more detailed information  about each of these commands is available using the "help" command of AdminApp and  supplying the name of the command as an argument.
 deleteUserAndGroupEntries  Deletes all the user/group information for all the roles and all  the username/password information for RunAs roles for a given application.
 edit Edit the properties of an application  editInteractive Edit the properties of an application interactively
 export Export application to a file  exportDDL Export DDL from application to a directory  help Show help information  install Installs an application, given a file name and an option string.
 installInteractive Installs an application in interactive mode, given a file name  and an option string.
 isAppReady Checks whether the application is ready to be run  list List all installed applications, either all applications or applications on a given target scope.   listModules List the modules in a specified application  options Shows the options available, either for a given file, or in general.
 publishWSDL Publish WSDL files for a given application  taskInfo Shows detailed information pertaining to a given installation task for a given file  uninstall Uninstalls an application, given an application name and an option string  updateAccessIDs Updates the user/group binding information with accessID from user  registry for a given application  view View an application or module, given an application or module name

Examples


AdminConfig

Use the AdminConfig command to view a summary of each available method for the AdminConfig object.

Target object None.

Required parameters

None.

Optional parameters

None.

Sample output

Examples


AdminControl

Use the AdminControl command to view a summary of the help commands and ways to invoke an administrative command.

Target object None.

Required parameters

None.

Optional parameters

None.

Sample output

Examples


AdminTask

Use the AdminTask command to view a summary of help commands and ways to invoke an administrative command with the AdminTask object.

Target object None.

Required parameters

None.

Optional parameters

None.

Sample output

WASX8001I: The AdminTask object enables the available administrative commands. AdminTask commands  operate in two modes: the default mode is one whichAdminTask communicates with the product to accomplish its task. A local mode  is also available in which no server communication takes place. The local mode of operation is invoked by  bringing up the scripting client using the command line "-conntype NONE" option or setting the "com.ibm.ws.scripting.connectiontype=NONE" property in wsadmin.properties file.
 The number of administrative commands varies and depends on the  product installation. Use the following help  commands to obtain a list of supported commands and their parameters:
 help -commands        list all the administrative commands
help -commandGroups     list all the administrative command groups
help commandName       display detailed information for the specified command help commandName stepName  display detailed information for the specified step belonging to the specified command help commandGroupName    display detailed information for the specified command group
 There are various flavors to invoke an administrative  command. They are  commandName invokes an administrative command that does not require any argument.
 commandName targetObject invokes an admin command with the target object string, for example,  the configuration object name of a resource adapter. The expected target object varies with the  administrative command invoked.   Use help command to get information on the target object of an administrative command.
 commandName  options invokes an administrative command with the specified option strings. This invocation  syntax is used to invoke an administrative command that does not require a target object.   It is also used to enter interactive mode if "-interactive" mode is included in the options string.
 commandName targetObject options invokes an administrative command with the specified target object  and options strings.   If "-interactive" is included in the options string, then interactive mode is entered.  The target object and options strings vary depending on the admin command invoked.  Use help command to get information on the target object and options.

Examples


all

Use the all command to view a summary of the information that the MBean defines by name.

Target object None.

Required parameters

MBean name

Specifies the object name that represents the MBean of interest. (String)

Optional parameters

None.

Sample output

Name: WebSphere:cell=pongo,name=TraceService,mbeanIdentifier=cells/pongo/nodes/pongo/servers/server1/
server.xml#TraceService_1,type=TraceService,node=pongo,process=server1
Description: null Class name: javax.management.modelmbean.RequiredModelMBean
 Attribute                       Type                            Access ringBufferSize                  int                             RW
traceSpecification              java.lang.String                RW
 Operation
int getRingBufferSize()
void setRingBufferSize(int)
java.lang.String getTraceSpecification()
void setTraceState(java.lang.String)
void appendTraceString(java.lang.String)
void dumpRingBuffer(java.lang.String)
void clearRingBuffer()
[Ljava.lang.String; listAllRegisteredComponents()
[Ljava.lang.String; listAllRegisteredGroups()
[Ljava.lang.String; listComponentsInGroup
(java.lang.String)
[Lcom.ibm.websphere.ras.TraceElementState;  getTracedComponents()
[Lcom.ibm.websphere.ras.TraceElementState;  getTracedGroups()
java.lang.String getTraceSpecification(java.
lang.String)
void processDumpString(java.lang.String)
void checkTraceString(java.lang.String)
void setTraceOutputToFile(java.lang.String,  int, int, java.lang.String)
void setTraceOutputToRingBuffer(int, java.
lang.String)
java.lang.String rolloverLogFileImmediate
(java.lang.String, java.lang.String)
 
Notifications
jmx.attribute.changed
 Constructors

Examples


attributes

Use the attributes command to view a summary of all the attributes that the MBean defines by name. If we provide the MBean name parameter, the command displays information about the attributes, operations, constructors, description, notifications, and classname of the specified MBean. If we specify the MBean name and attribute name, the command displays information about the specified attribute for the specified MBean.

Target object None.

Required parameters

MBean name

Specifies the object name that represents the MBean of interest. (String)

Optional parameters

attribute name

Attribute of interest. (String)

Sample output

Examples


classname

Use the classname command to view a class name that the MBean defines by name.

Target object None.

Required parameters

MBean name

Specifies the object name that represents the MBean of interest. (String)

Optional parameters

None.

Sample output

Examples


constructors

Use the constructors command to view a summary of all of the constructors that the MBean defines by name.

Target object None.

Required parameters

MBean name

Specifies the object name that represents the MBean of interest. (String)

Optional parameters

None.

Sample output

Examples


description

Use the description command to view a description that the MBean defines by name.

Target object None.

Required parameters

MBean name

Specifies the object name that represents the MBean of interest. (String)

Optional parameters

None.

Sample output

Examples


help

Use the help command to view a summary of all the available methods for the Help object.

Target object None.

Required parameters

None.

Optional parameters

None.

Sample output

WASX7028I: The Help object has two purposes:
 First, provide general help information for the objects supplied by wsadmin.sh  for scripting: Help, AdminApp, AdminConfig, and AdminControl.
 Second, provide a means to obtain interface information about the MBeans that run in  the system.  For this purpose, a variety of commands are available to get  information about the operations, attributes, and other interface information  about particular MBeans.
 The following commands are supported by Help; more detailed information about  each of these commands is available using the "help" command of Help and by  supplying the name of the command as an argument.
 attributes     given an MBean, returns help for attributes operations     given an MBean, returns help for operations constructors   given an MBean, returns help for constructors
description    given an MBean, returns help for description notifications  given an MBean, returns help for notifications
classname      given an MBean, returns help for class name all            given an MBean, returns help for all the previous help           returns this help text
AdminControl    returns general help text for the AdminControl object AdminConfig    returns general help text for the AdminConfig object AdminApp       returns general help text for the AdminApp object AdminTask      returns general help text (AdminTask) wsadmin        returns general help text for the wsadmin script launcher
message        given a message ID, returns an explanation and a user action 

Examples


message

Use the message command to view information for a message ID.

Target object None.

Required parameters

message ID

Message ID of the message of interest. (String)

Optional parameters

None.

Sample output

Examples


notifications

Use the notifications command to view a summary of all the notifications that the MBean defines by name.

Target object None.

Required parameters

MBean name

Specifies the object name of the MBean of interest. (String)

Optional parameters

None.

Sample output

Examples


operations

Use the operations command with the MBean name parameter to view a summary of all the operations that the MBean defines by name. Specify a value for the MBean name and operation name to display the signature of the operation for the MBean defined by name.

Target object None.

Required parameters

MBean name

Specifies the object name of the MBean of interest. (String)

Optional parameters

operation name

Specifies the operation of interest. (String)

Sample output

The command returns output that is similar to the following example if specified only the MBean name parameter:

Operation
int getRingBufferSize()
void setRingBufferSize(int)
java.lang.String getTraceSpecification()
void setTraceState(java.lang.String)
void appendTraceString(java.lang.String)
void dumpRingBuffer(java.lang.String)
void clearRingBuffer()
[Ljava.lang.String; listAllRegisteredComponents()
[Ljava.lang.String; listAllRegisteredGroups()
[Ljava.lang.String; listComponentsInGroup(java.lang.String)
[Lcom.ibm.websphere.ras.TraceElementState; getTracedComponents()
[Lcom.ibm.websphere.ras.TraceElementState; getTracedGroups()
java.lang.String getTraceSpecification(java.lang.String)
void processDumpString(java.lang.String)
void checkTraceString(java.lang.String)
void setTraceOutputToFile(java.lang.String, int, int, java.lang.String)
void setTraceOutputToRingBuffer(int, java.lang.String)
java.lang.String rolloverLogFileImmediate(java.lang.String, java.lang.String)

The command returns output that is similar to the following example if specified the MBean name and operation name parameters:

void processDumpString(string)
 Description: Write the contents of the Ras  services ring buffer to the specified file.
 Parameters:
 Type         string Name         dumpString
Description  A String in the specified format to process or null.

Examples


Related concepts

  • Help object for scripted administration


    Related tasks

  • Scripting and command line reference material