
138 D
OMINION
SX I
NSTALLATION AND
O
PERATIONS
M
ANUAL
ampresponse
}
ampresponse
}
set ports 1
set noOfPorts 2
initEvents
#Main loop starts here...
while { 1>0 } {
cpuUtil
$ports
ampdelay
$intr
set
rval
[ListenCmds]
if { $rval == 1} {
delEvents
unset $ports
unset $noOfPorts
unset $thr
unset $intr
unset $mailid
break
}
incr ports 1
if { $ports > $noOfPorts } {
set ports 1
}
}
Script Function Description:
It is required to monitor CPU usage of user process running on several HP-UX machines through RS232 console
connections. This TCL script will monitor the use through the well-known
vmstat
functionality given by HP-UX.
When CPU utilization has surpassed the given limit, this script will trigger an event that notifies the subscribed users
via e-mail. The user is allowed to input the threshold limit or the frequency through his/her own commands (This
example use THR and INTR respectively).
Key programming points:
•
Use
ampclear
to remove all history information for a port
•
Use
ampread
with “\n” as terminator since the script has to read each line to find out the user process utilization
that is on the 10
th
line.
•
Use
amptriggerevent
to trigger a user-defined event
event.alarm.cpu
. The event may not begin with “amp,” as
that namespace is reserved for system-generated events. A user may subscribe to events related only to one
server by designating which server they are interested in. For example, a user may subscribe to
event.alarm.cpu.2
to receive a notification when cpu utilization on server 2 is measuring above 10 %.
•
The event will be sent only if the user who requests the notification is properly subscribed in the Notification
subscription list.
Summary of Contents for Dominion SX16
Page 1: ...Installation and Operations Manual SX16 SX32...
Page 2: ...This page intentionally left blank...
Page 4: ...This page intentionally left blank...
Page 6: ...This page intentionally left blank...
Page 10: ...iv TABLE OF CONTENTS...
Page 14: ...viii TABLE OF FIGURES...
Page 24: ...10 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 30: ...16 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 82: ...68 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 84: ...70 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 86: ...72 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 88: ...74 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 102: ...88 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 114: ...100 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 120: ...106 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 132: ...118 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 158: ...144 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...
Page 161: ...APPENDIX K TECHNICAL FAQS 147 DSX 0A E 255 60 2000...
Page 162: ...148 DOMINION SX INSTALLATION AND OPERATIONS MANUAL...