327
slot
slot-number: Specifies a card by its slot number. If you do not specify a card, the policy applies
to all cards. (Distributed devices in standalone mode.)
slot
slot-number: Specifies an IRF member device by its member ID. If you do not specify a member
device, the policy applies to all IRF member devices. (Centralized devices 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. (Distributed devices in IRF mode.)
chassis
chassis-number: Specifies an IRF member device by its member ID. If you do not specify a
member device, the policy applies to all IRF member devices. (Distributed 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 on the specified member device. (Distributed devices 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 event is configured.
Views
CLI-defined policy view
Predefined user roles
network-admin