Running your new monitoring applications

 

Overview

Follow these steps to run your monitoring applications.

  1. Obtain the pmi.jar and pmiclient.jar files. The pmi.jar and pmiclient.jar files are required for client applications using Performance Monitoring Infrastructure (PMI) client APIs. The pmi.jar and pmiclient.jar files are distributed with WebSphere Application Server and are also a part of the Java thin client package. You can get these JAR files from either a WebSphere Application Server installation or a Java Thin Application Client installation. You also need the other JAR files in the Java Thin Application Client installation to run a PMI application.

  2. Use a PMI client API to write your own application.

  3. Compile the newly-written PMI application and place it on the classpath.

  4. Run the application with the following script:

    call "%~dp0setupCmdLine.bat"
    
    set WAS_CP=%WAS_HOME%\properties
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\pmi.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\pmiclient.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\ras.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\admin.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\wasjmx.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\j2ee.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\soap.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\soap-sec.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\nls.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\wsexception.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\ws-config-common.jar
    set WAS_CP=%WAS_CP%;%WAS_HOME%\lib\namingclient.jar
    
    %JAVA_HOME%\bin\java "%CLIENTSOAP%" "%CLIENTSAS%" "-Dws.ext.dirs=%WAS_EXT_DIRS%"
    %DEBUGOPTS% -classpath "%WAS_CP%" com.ibm.websphere.pmi.PmiClientTest host name 
    [port] [connectorType]
    
    

Related concepts
Thin application clients
Related reference
Performance Monitoring Infrastructure client package