SM2 operation

Activating user task monitoring

4.5 BS2000 commands for activating user task monitoring

Any user can have SM2 monitor tasks under his/her own ID, provided the SM2 primary administrator has given permission for user task monitoring (by issuing the SM2 statement MODIFY-USER-ADMISSION TASK=*ALLOW. The total number of tasks which can be monitored simultaneously is limited to 16).

Only users who have been assigned the system privilege SW-MONITOR-ADMINIS- TRATION can start or terminate monitoring of any tasks.

Function

The BS2000 command /START-TASK-MEASUREMENT is used to specify the tasks to be included in the monitoring process. The SM2 software monitor then records task-specific monitored data and enters this data in a user-specific file.

In addition to task-specific monitoring data, program counter statistics and SVC statistics on program runs can also be requested.

In the case of program counter statistics for counting commands, the program is interrupted at defined intervals (using a timer) and the address of the next command to be executed and contained in the program counter is transferred to the user-specific SM2 output file (registering the number of times the counter sampled the program).

In the case of SVC statistics, all SVC program macros called during task monitoring are recorded, and SVC numbers and macro addresses are also stored in the SM2 output file.

If the BS2000 command /STOP-TASK-MEASUREMENT is issued or the task is terminated, user task monitoring ends and the user-specific SM2 output file is closed. In addition, withdrawal of the primary SM2 administrator’s permission to monitor tasks (MODIFY- USER-ADMISSION TASK=*INHIBIT) as well as deactivation of SM2 (STOP-SUBSYSTEM SUBSYSTEM-NAME=SM2) will terminate any currently executing task measurement operations.

The product SM2-PA is provided to analyze the SM2 output file generated for user task monitoring (for further information, please refer to the "SM2-PA" manual [8]).

Note

The user-specific SM2 output file can exceed the limit specified for the user by PUBLIC- SPACE-LIMIT in the ADD-USER- or MODIFY-USER-ATTRIBUTES command, even if PUBLIC-SPACE-EXCESS=*NO is specified.

U3585-J-Z125-8-76

189

Page 189
Image 189
Siemens U3585-J-Z125-8-76 1 manual BS2000 commands for activating user task monitoring, Activating user task monitoring