Example – HP NonStop G-Series User Manual
Page 407
![background image](/manuals/396922/407/background.png)
Monitoring Hardware Components
Guardian User’s Guide — 425266-001
19 -29
Automating System Monitoring
To create a command file that will automate system monitoring, enter this into an EDIT
file:
After you create this file, enter this at your TACL prompt:
> OBEY SYSCHK
See the example below for an illustration of the display that is sent to your home
terminal when you execute this command file.
Example
To execute the command file SYSCHK to automatically monitor many elements of your
system discussed in this section, enter:
> OBEY SYSCHK
Listings similar to this are sent to your home terminal:
COMMENT THIS IS THE FILE SYSCHK
COMMENT THIS CHECKS ALL DISKS:
SCF STATUS DISK $*
COMMENT THIS CHECKS ALL TAPE DRIVES:
SCF STATUS TAPE $*
COMMENT THIS CHECKS THE SPOOLER COLLECTOR PROCESSES:
SPOOLCOM COLLECT
COMMENT THIS CHECKS THE LINE HANDLERS:
SCF STATUS LINE $*
COMMENT THIS CHECKS THE STATUS OF TMF:
TMFCOM;STATUS TMF
COMMENT THIS CHECKS THE STATUS OF PATHWAY:
PATHCOM $ZVPT;STATUS PATHWAY;STATUS PATHMON
COMMENT THIS IS THE FILE SYSCHK
COMMENT THIS CHECKS ALL DISKS:
SCF STATUS DISK $*
STORAGE - Status DISK \SHARK.$DATA12
LDev Primary Backup Mirror MirrorBackup Primary Backup
PID PID
52 *STARTED STARTED *STARTED STARTED 3,262 2,263
STORAGE - Status DISK \SHARK.$DATA01
LDev Primary Backup Mirror MirrorBackup Primary Backup
PID PID
63 *STARTED STARTED *STARTED STARTED 0,267 1,266
STORAGE - Status DISK \SHARK.$DATA04
LDev Primary Backup Mirror MirrorBackup Primary Backup
PID PID
60 *STARTED STARTED *STARTED STARTED 0,270 1,263
STORAGE - Status DISK \SHARK.$SYSTEM
LDev Primary Backup Mirror MirrorBackup Primary Backup
PID PID
6 *STARTED STARTED STOPPED STOPPED 0,256 1,256