241
Parameters
exception
: Monitors the specified process for exceptional events. EAA executes the policy when an
exception occurs to the monitored process.
restart
: Monitors the specified process for restart events. EAA executes the policy when the
monitored process restarts.
shutdown
: Monitors the specified process for shutdown events. EAA executes the policy when the
monitored process is shut down.
start
: Monitors the specified process for start events. EAA executes the policy when the monitored
process starts.
name
process-name
: Specifies a user-mode process by its name. The process can be one that is
running or not running.
instance
instance-id
: Specifies a process instance ID in the range of 0 to 4294967295. The instance
ID can be one that has not been created yet. If an instance is specified, EAA only monitors the
process instance. If you do not specify an instance, EAA monitors all instances of the process.
slot
slot-number
: Specifies a card by its slot number. If you do not specify a card, the policy applies
to all cards. (In standalone mode.)
chassis
chassis-number
: Specifies an IRF member device by its member ID by its virtual chassis
number. If you do not specify a member device, the policy applies to all IRF member devices. (In IRF
mode.)
chassis
chassis-number
slot
slot-number
: Specifies a card on an IRF member device. The
chassis-number
argument represents the member ID of the IRF member device. The
slot-number
argument represents the slot number of the card. If you do not specify a card, the policy applies to all
cards. (In IRF mode.)
slot
slot-number
: Specifies a card by its slot number. If you do not specify a card, the policy applies
to all cards. (In IRF mode.)
Usage guidelines
Use process event monitor policies to monitor process state changes. These changes can result
from manual operations or automatic system operations.
You can configure only one event for a monitor policy. If the monitor policy already contains an event,
the new event replaces the old event.
Examples
# Configure a CLI-defined policy to monitor all instances of the process
snmpd
for restart events.
<Sysname>system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] event process restart name snmpd
event snmp oid
Use
event snmp oid
to configure an SNMP event for a CLI-defined monitor policy.
Use
undo event
to delete the event in a CLI-defined monitor policy.
Syntax
event snmp
oid
oid
monitor-obj
{
get
|
next
}
start-op
start-op
start-val
start-val
restart-op
restart-op
restart-val
restart-val
[
interval
interval
]
undo event
Default
No SNMP events are configured.