- 11 Sep 2023
- 4 Minutes to read
- Print
- DarkLight
- PDF
WebLogic
- Updated on 11 Sep 2023
- 4 Minutes to read
- Print
- DarkLight
- PDF
Variables %WEBLOGIC_HOME% and $WEBLOGIC_HOME used throughout this article refer to the root directory where WebLogic Server is installed in Windows and Linux operating systems respectively. Some sample values are provided below:
- %WEBLOGIC_HOME% - D:\Oracle\Middleware\Oracle_Home
- $WEBLOGIC_HOME - /opt/Oracle/Middleware/Oracle_Home
Windows
Pre-requisites
If the WebLogic Console is not accessible, use the below commands to start it:
- At the command prompt, execute the below command as Administrator
%WEBLOGIC_HOME%\user_projects\domains\<application_domain>\bin\startWeblogic.cmd
- Log in to WebLogic Console with valid credentials
Auto Instrumentation
This section describes the steps involved when Auto-Instrumentation method is opted for Probe installation
- Log in to WebLogic Console with valid credentials
- Select the application to be instrumented from the list:
- Navigate to Domain Structure > Deployments > <Application Name> in the left navigation pane
- Click on the required Application in the right panel
- Associated JVM Instance
- Navigate to Domain Structure > Deployments > <Application Name> in the left navigation pane
- Click Targets in the right pane for JVM information
- Application Deployment Folder:
- Log in to the WebLogic host
- Navigate to the directory: %WEBLOGIC_HOME%\user_projects\domains\<application_domain>\servers\<Managed Server Name>\stage
- Example: D:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Virsec-Inst1\stage
- Start Up Script File Path:
- Log in to the WebLogic host
- Navigate to the directory: %WEBLOGIC_HOME%\user_projects\domains\<application_domain>\bin\startNodeManager.cmd
- Example: D:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\bin\startNodeManager.cmd
Manual Instrumentation
This section describes the steps involved when Auto-Instrumentation method is not possible for Probe installation. (Cluster Mode Deployment)
- Log in to WebLogic Console with valid credentials
- Navigate to Domain Structure > Machines > <Machine Name> in the left navigation pane
- Navigate to Monitoring > Node Manager Status in the left navigation pane
- Verify whether the Node Manager is runningNOTENode Manager is used to start/stop the targeted WebLogic Instance from WebLogic Admin console
- If the Node Manager status is inactive, use the below command to start it on the Virtual Machine where WebLogic is installed
%WEBLOGIC_HOME%\user_projects\domains\<application_domain>\bin\startNodeManager.cmd
IAE-Java Instrumentation
- Navigate to Environment > Servers > Control > <application_instance> in the left navigation pane
- If the Instance is running, Click Shutdown > Force Shutdown Now to stop the instance
- Navigate to Environment > Servers > Summary of Servers > Server > Server Start tab
- Provide the below values in 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 Lock & Edit on the top left panel to enable the field
- Click Activate Changes
- Navigate to Environment > Servers > Control. Select the Probe and click Start to start the WebLogic Instance
- Application Deployment Folder:
- Log in to the WebLogic host
- Navigate to the directory: %WEBLOGIC_HOME%\user_projects\domains\<application_domain>\servers\<Managed Server Name>\stage
- Example: D:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Virsec-Inst1\stage
- 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 WebLogic Console is not accessible, start it using the below commands:
- At the command prompt, execute the below command as Administrator
$WEBLOGIC_HOME/user_projects/domains/<<application_domain>>/bin/startWeblogic.sh
- Log in to WebLogic Console with valid credentials
Auto Instrumentation
This section describes the steps involved when Auto-Instrumentation method is opted for Probe installation
- Log in to WebLogic Console with valid credentials
- Select the application to be instrumented from the list:
- Navigate to Domain Structure > Deployments > <Application Name> in the left navigation pane
- Click on the required Application in the right panel
- Associated JVM Instance
- Navigate to Domain Structure > Deployments > <Application Name> in the left navigation pane
- Click Targets in the right pane for JVM information
- Application Deployment Folder:
- Log in to the WebLogic host
- Navigate to the directory: $WEBLOGIC_HOME/user_projects/domains/<application_domain>/servers/<Managed Server Name>/stage
- Example: /opt/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/Virsec-Inst1/stage
- Start Up Script File Path:
- Log in to the WebLogic host
- Navigate to the directory: $WEBLOGIC_HOME/user_projects/domains/<application_domain>/bin/startNodeManager.sh
- Example: /opt/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/startNodeManager.sh
Manual Instrumentation
This section describes the steps involved when Auto-Instrumentation method is not possible for Probe installation. (Cluster Mode Deployment)
- Log in to WebLogic Console with valid credentials
- Navigate to Domain Structure > Machines > <Machine Name> in the left navigation pane
- Navigate to Monitoring > Node Manager Status in the left navigation pane
- Verify whether the Node Manager is runningNOTENode Manager is used to start/stop the targeted WebLogic Instance from WebLogic Admin console
- If the Node Manager status is inactive, use the below command to start it on the Virtual Machine where WebLogic is installed
$WEBLOGIC_HOME/user_projects/domains/<application_domain>/bin/startNodeManager.sh
IAE-Java Instrumentation
- Navigate to Environment > Servers > Control > <application_instance> in the left navigation pane
- If the Instance is running, Click Shutdown > Force Shutdown Now to stop the instance
- Navigate to Environment > Servers > Summary of Servers > Server > Server Start tab
- Provide the below values in 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=<AppCollectiveID>
- Click Lock & Edit on the top left panel to enable the field
- Click Activate Changes
- Navigate to Environment > Servers > Control. Select the Probe and click Start to start the WebLogic Instance
- Application Deployment Folder:
- Log in to the WebLogic host
- Navigate to the directory: $WEBLOGIC_HOME/user_projects/domains/<application_domain>/servers/<Managed Server Name>/stage
- Example: /opt/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/servers/Virsec-Inst1/stage
- 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