About this Article
This article provides VSP application instrumentation steps for IBM WebSphere application aerver and provides the steps to determine the values of deployment folder and start-up script path required during application configuration on CMS.
Variables %WAS_HOME% and $WAS_HOME used throughout this article refer to the root directory where WebSphere Server is installed in Windows and Linux operating systems respectively.
Some sample values are provided below:
- %WAS_HOME% - D:\IBM\WebSphere\AppServer
- $WAS_HOME - /opt/WAS/WebSphere/AppServer
NOTE
Refrain from using auto-instrumentation with WebSphere. Opt for manual instrumentation
Windows
Pre-requisites
If the WebSphere Admin Server is not running, start the Admin Server using the procedures mentioned below:
- At the command prompt, execute the below command as Administrator
%WAS_HOME%\profiles\Dmgr01\bin\startManager.bat - Log in to IBM WebSphere Admin Server console with valid credentials
Auto Instrumentation
- Select the application to be instrumented from the list:
- Navigate to Applications > Application Types > WebSphere enterprise applications in the left navigation pane
- Click on the required Application in the right panel
- Associated JVM Instance
- Navigate to Applications > Application Types > WebSphere enterprise applications in the left navigation pane
- Click on the required Application in the right panel
- Click Target specific application status to get JVM information
- Navigate to System Administration > Nodes in the left navigation pane. The Hostname where WebSphere instances are running is displayed
- Application Deployment Folder:
- Log in to the WebSphere host
- Navigate to the directory: %WAS_HOME%\profiles\<ProfileName>\installedApps\<Cell Name>
- Example: D:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\Dmgr01Cell01
- Start Up Script File Path:
- Log in to the WebSphere host
- Navigate to the directory: %WAS_HOME%\profiles\<ProfileName>\config\cells\<Cell Name>\nodes\<Node Name>\servers\<Server Name>\server.xml
- Example: D:\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\Dmgr01Cell01\nodes\AppSrv01Node01\servers\server1\server.xml
Manual Instrumentation
- Log in to IBM WebSphere Admin Server console with valid credentials
- Navigate to System Administration > Node agents in the left navigation pane
- Verify whether the Node Agent is running
- If the agent Is not running, execute the below command:
%WAS_HOME%\profiles\AppSrv01\bin\startNode.bat - Navigate to Servers > Server Types > WebSphere application Servers > <Application_Instance> in the left navigation pane
- If the Instance is running, Click Stop to stop the instance
IAE-Java Instrumentation
- Navigate to Servers > Server Types > WebSphere application Servers > Application servers > <Server Name> > Process Definition > Java Virtual Machine in the left navigation pane
- Add the below JVM argument to Generic JVM arguments field. Ensure that <AppCollectiveID> mentioned below is replaced with the App Collective ID in the CMS Application Configuration section
-javaagent:c:\PROGRA~2\Virsec\virsec-web-mem\iae-java\instrumentation.jar -Dvirsec_appcontextpath=<App.CollectiveID> - Click Apply > Review
- Select the option Synchronize changes with Nodes. Click Save
- Navigate to Servers > Server Types > WebSphere application Servers > <Probe> in the left navigation pane
- Click Start to start the target WebSphere Server Instance
- Application Deployment Folder:
- Log in to the WebSphere host
- Navigate to the directory: %WAS_HOME%\profiles\<ProfileName>\installedApps\<Cell Name>
- Example: D:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\Dmgr01Cell01
- Start Up Script File Path:
- As the VSP-JVM arguments are configured manually, create a dummy file and provide the file path as Start Up Script File Path in the CMS
Linux
Pre-requisites
If the WebSphere Admin Server is not running, start the Admin Server using the procedure mentioned below:
- At the command prompt, execute the below command as Administrator
$WAS_HOME/profiles/Dmgr01/bin/startManager.sh - Log in to IBM WebSphere Admin Server console with valid credentials
Auto Instrumentation
- Select the application to be instrumented from the list:
- Navigate to Applications > Application Types > WebSphere enterprise applications in the left navigation pane
- Click on the required Application in the right panel
- Associated JVM Instance
- Navigate to Applications > Application Types > WebSphere enterprise applications in the left navigation pane
- Click on the required Application in the right panel
- Click Target specific application status to get JVM information
- Navigate to System Administration > Nodes in the left navigation pane. The Hostname where WebSphere instances are running is displayed
- Application Deployment Folder:
- Log in to the WebSphere host
- Navigate to the directory: $WAS_HOME/profiles/<ProfileName>/installedApps/<Cell Name>
- Example: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Dmgr01Cell01
- Start Up Script File Path:
- Log in to the WebSphere host
- Navigate to the directory: $WAS_HOME/profiles/<ProfileName>/config/cells/<Cell Name>/nodes/<Node Name>/servers/<Server Name>/server.xml
- Example: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/Dmgr01Cell01/nodes/AppSrv01Node01/servers/server1/server.xml
Manual Instrumentation
- Log in to IBM WebSphere Admin Server console with valid credentials
- Navigate to System Administration > Node agents in the left navigation pane
- Verify whether the Node Agent is running
- If the agent Is not running, execute the below command:
$WAS_HOME/profiles/AppSrv01/bin/startNode.sh - Navigate to Servers > Server Types > WebSphere application Servers > <Application_Instance> in the left navigation pane
- If the Instance is running, Click Stop to stop the instance
IAE-Java Instrumentation
- Navigate to Servers > Server Types > WebSphere application Servers > Application servers > <Server Name> > Process Definition > Java Virtual Machine in the left navigation pane
- Add the below JVM argument to Generic JVM arguments field. Ensure that <AppCollectiveID> mentioned below is replaced with the App Collective ID in the CMS Application Configuration section
-javaagent:/opt/virsec-web-mem/iae-java/instrumentation.jar - Dvirsec_appcontextpath=<App.CollectiveID> - Click Apply > Review
- Select the option Synchronize changes with Nodes. Click Save
- Navigate to Servers > Server Types > WebSphere application Servers > > <Probe> in the left navigation pane
- Click Start to start the target WebSphere Server Instance
- Application Deployment Folder:
- Log in to the WebSphere host
- Navigate to the directory: $WAS_HOME/profiles/<ProfileName>/installedApps/<Cell Name>
- Example: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Dmgr01Cell01
- Start Up Script File Path:
- As the VSP-JVM arguments are configured manually, create a dummy file and provide the file path as Start Up Script File Path in the CMS