- lslpp -L | grep rsct
#
/usr/sbin/rsct/bin/rmcctrl -z -stop
daemon
#
/usr/sbin/rsct/bin/rmcctrl -A -start
daemon
- lssrc -g rsct
pwat1uxsd01:/tmp
# lssrc -g rsct
Subsystem
|
Group
|
PID
|
Status
|
ctrmc
|
rsct
|
434322
|
Active /usr/sbin/rsct/bin/rmcd
|
ctcas rsct inoperative
Ctcas
is a security subsystem, in charge of authentication in the cluster, /usr/sbin/rsct/bin/ctcasd
pwat1uxsd01:/tmp
# grep ctrmc /etc/inittab
ctrmc:2:once:/usr/bin/startsrc -s ctrmc >
/dev/console 2>&1
- lssrc -g rsct_rm
- lsrsrc -l IBM.Host
- lsrsrc -s 'Mount == "true"' IBM.FileSystem Name PercentTotUsed - list fs %
Creation mkrsrc
Display lsrsrc, lsrsrcdef, and lsactdef
Modification chrsrc
Deletion rmrsrc
Refresh refrsrc
pwat1uxsd01:/tmp
# lsrsrc
class_name
"IBM.Association"
"IBM.ATMDevice"
"IBM.AuditLog"
"IBM.AuditLogTemplate"
"IBM.Condition"
"IBM.EthernetDevice"
"IBM.EventResponse"
"IBM.FDDIDevice"
"IBM.Host"
"IBM.FileSystem"
"IBM.PagingDevice"
"IBM.PhysicalVolume"
"IBM.Processor"
"IBM.Program"
"IBM.TokenRingDevice"
"IBM.Sensor"
"IBM.ManagedNode"
"IBM.NodeGroup"
"IBM.Sfp"
"IBM.ServiceEvent"
"IBM.ManagementServer"
"IBM.NodeAuthenticate"
"IBM.NetworkInterface"
"IBM.DmsCtrl"
"IBM.NodeHwCtrl"
"IBM.HwCtrlPoint"
"IBM.HostPublic"
"IBM.DRM"
"IBM.WLM"
"IBM.DeviceHwCtrl"
"IBM.DeviceGroup"
"IBM.LPAR"
"IBM.MNNetworkInterface"
"IBM.LPCommands"
"IBM.HwSecKey"
ERRM commands
Display lscondition, lsresponse, and lscondresp
Creation mkcondition, mkresponse, and
mkcondresp
Modification chcondition and chresponse
Removal rmcondition, rmresponse, and rmcondresp
Activation startcondresp and stopcondresp
1. Monitor filesystems:
HOST=`/usr/bin/hostname`
mkcondition
-c "/tmp space used" -s '""' "File system space used
> 90% on $HOST"
mkresponse
-c "E-mail root anytime" "E-mail to Admin"
chresponse
-a -n "E-mail to Admin" -s "/usr/sbin/rsct/bin/notifyevent xxx@xxx.com" -e b -r -1 "E-mail to Admin"
chresponse
-p -n "E-mail root" "E-mail to Admin"
mkcondresp
"File system space used > 90% on $HOST" "E-mail to Admin"
mkcondresp
"File system space used > 90% on $HOST" "Log event
anytime"
startcondresp
"File system space used > 90% on $HOST"
lscondition
"File system space used > 90% on $HOST"
lsresponse
"E-mail to Admin"
lscondresp
To
disable it, run:
stopcondresp
"File system space used > 90% on $HOST"

2. Monitor CPU usage:
HOST=`/usr/bin/hostname`
mkcondition
-c "Processor user time" "Processor user time > %80 on
$HOST"
mkcondresp
"Processor user time > %80 on $HOST" "E-mail to AIX
Admin"
mkcondresp
"Processor user time > %80 on $HOST" "Log event anytime"
startcondresp
"Processor user time > %80 on $HOST"
lscondition
"Processor user time > %80 on $HOST"
lscondresp
Sample to create:
mkresponse
-n "E-mail to ESS Admin" -s "/usr/sbin/rsct/bin/notifyevent xxx@xxx.com" -e b -r -1 "E-mail to Admin"
mkcondresp
"File system space used" "E-mail to Admin"
mkcondresp
"File system space used" "Log event anytime"
mkcondresp
"Inetd daemon state" "E-mail to Admin"
startcondresp
"File system space used"
startcondresp
"Inetd daemon state"
I realize that this is almost three years old, but I found it quite valuable today.
ReplyDeleteThanks.