Using the Command Line Programs icmon and wdispmon
Use
You can monitor and manage both the SAP Web Dispatcher and the Internet Communication Manager (ICM) from the command line program. You use program icmon for the ICM, and wdispmon for the SAP Web Dispatcher.
The most important functions of icmon are described below.
Prerequisites
The SAP Web dispatcher or ICM is running. In the following, <profile> refers to the name of the profile file with which the SAP Web Dispatcher or ICM was started.
You are logged on at operating system level to the computer where the Web dispatcher or ICM is running.
Procedure
If you started program icmon with cmon pf=<profile>, you will see configuration and statistical data of the SAP Web Dispatcher, and a snapshot of the thread activity.
Some of the functions that you may need are described below in brief.
Tracing
The trace file of the SAP Web Dispatcher is called dev_webdisp and is located in the directory of the SAP Web Dispatcher. You can change the trace level using signals or the icmon.
Changing the Trace Level Using Signals
First find out the process ID (PID) of the SAP Web dispatcher. You can then use command kill USR2 <PID des WebDisp> to increase the trace level by one, or kill USR1 <pid> to reduce it. By default, the trace level is set to 1. In Windows you use sapntkill USR2 <pid> or sapntkill USR1 <pid>.
Changing the Trace Level Using icmon
Start icmon with icmon pf=<profile>
To increase the trace level, select +.
To reduce the trace level, select -.
Resetting the Trace File
You can reset the trace file while the system is operating:
-
Start icmon with icmon pf=<profile>
-
Choose m. The main menu appears.
-
Choose m again, and answer the question Do you really want to attach to SAP Web Disp? with y.
-
Choose r (reset trace file).
Maintaining the Authentication File
You can use icmon -a to maintain the authentication file (default: authfile.txt). If you have confirmed or changed the file name, you will see the menu below:
a - add user to set: (see below)
c - change password of existing user in set:
g - change group of existing user in set
x - change client cert data of existing user in set
d - delete user from set
l - list users of set
s - save changes of set to file
q - quit (without saving)
m – menu (go to menu)
User for the Web Administration
If you do not have user for the Web administration interface, you can create one with icmon.