Monitoring Program msprot
You can use program msprot
to monitor the message server at operating system level. The program connects to the message server and records all logons, logoffs, and status changes of the logged-on application server instances.
Program msprot
can also be integrated in separate scripts for checking the message server. The program returns the following return values:
Value |
Meaning |
|---|---|
|
The program has run without errors |
|
Missing or invalid parameters in the command line |
|
The host name, on which the message server is running ( |
|
The service name of the message server ( |
|
The logon to the message server has failed: Either incorrect connection data was entered or the message server is currently not running. |
|
A request (to receive changes in the server list) to the message server failed: The message server has been terminated or there is a network problem. |
|
The list could not be fetched from the message server. The message server has been terminated or there is a network problem. |
|
Connection to the message server has been broken The message server has been terminated or there is a network problem. |
For more information about possible errors see file dev_msprot
.
You can fetch program msprot
from the Service Marketplace. The program can also be used with message servers from older releases.
When you enter parameter msprot, you get a list of possible options:
|
When you call msprot
enter the necessary information to connect to the message server. You now have the following options:
Enter SID details (option name=<SID>); the necessary information (host name and service) are fetched from the profile files of the Web AS instance.
Enter profile file details (option name=<SID>); the necessary information are also fetched from the profile files of the Web AS instance.
Directly enter the name of host and service or the port number of the message server (option -mshost host -msserv service).
If you do not specify an additional option, program msprot
connects to the message server and records all logons, logoffs, and status changes of the Web AS instances. There is an example further below.
The columns have the following meaning:
Column INFO
means the type of information to follow.
LIST
is the application servers that are displayed after msprot
starts.
ADD
or SUB
means that an application server has been added or taken away, while msprot
was running.
MOD
means a session change of the application server, for example from STARTING
to RUNNING
.
The other columns are the same as in Overview of SAP Application Server (SM51)
(AS ABAP transaction SM51
): Instance name, host name, dispatcher port, status, and the services provided.
Parameter |
Meaning |
|---|---|
-t |
Displays the current time |
-l |
The program terminates once the server list has been displayed. |
-a |
Additional display of the port number |
-n <secs> |
Maximum period of time for the network calls (default value is blocking) |
-k <secs> |
After the specified number of seconds has passed a message is sent to the message server. This means you can check whether the message server is still running. The default is that no such messages are sent to the message server. |
-r <secs> |
The program terminates after the specified number of seconds. The default is for the program to run until an error occurs. This is usually if the message server terminates. |
TRACE=2 |
With this option you can increase the trace level (for analyzing problems). You can find more details in file |
You enter msprot name=<SID> and receive the following output that continues to be displayed.
|
First the current list of application server instances are displayed; here this is two instances. Then the application server with the name ls0301_BIN_98
logs on to the message server and changes its internal status (that is, it sends its IP address to the message server and changes its status from STARTING
to RUNNING
). Finally, this application server terminates and logs off from the message server.