SM2 operation

Examples

4.7 SM2 monitoring program: examples

Example 1

This simple example illustrates how SM2 is started and stopped again later on.

The following default options are used:

monitoring cycle: 150 seconds

sampling cycle: 800 milliseconds

Reports A (ACTIVITY), M (MEMORY), C (CHANNEL) and D (DEVICE) are output at the terminal in automatic output mode. SM2 is interrupted after some time with the BREAK function (terminal key) and terminated.

/START-SM2

START

.(Output of the reports)

BREAK or [K2]

/INFORM-PROGRAM END

Example 2

In this example, SM2 is started with data output to the SM2 output file. The file is given the default name SM2.hostname.yyyy.mm.dd.sss.nn. The monitoring cycle is preset to 150 seconds and the sampling cycle to 800 milliseconds. The RESPONSETIME monitoring program is started (in accordance with definition 1), and monitors up to 1024 connections. The default options are used for the number of ranges and for the range limits for the response, think, transaction and wait times.

The SM2 user task is then terminated and monitoring continues in the background.

SM2 is called again after some time to terminate the RESPONSETIME monitoring program and close the SM2 output file.

U3585-J-Z125-8-76

199

Page 199
Image 199
Siemens U3585-J-Z125-8-76 1, SM2 monitoring system manual SM2 monitoring program examples, Examples