198
Step
Command
Remarks
4.
Configure an event in
the policy.
•
Configure a CLI event:
event cli
{
async
[
skip
] |
sync
}
mode
{
execute
|
help
|
tab
}
pattern
regular-exp
•
(In standalone mode.) Configure a
hotplug event:
event hotplug
[
insert
|
remove
]
slot
slot-number
[
subslot
subslot-number
]
•
(In IRF mode.) Configure a hotplug
event:
event hotplug
[
insert
|
remove
]
chassis
chassis-number
slot
slot-number
[
subslot
subslot-number
]
•
Configure an interface event:
event interface
interface-type
interface-number
monitor-obj
monitor-obj
start-op
start-op
start-val
start-val restart-op
restart-op restart-val restart-val
[
interval interval
]
•
(In standalone mode.) Configure a
process event:
event process
{
exception
|
restart
|
shutdown
|
start
}
[
name
process-name
[
instance
instance-id
] ]
[
slot
slot-number
]
•
(In IRF mode.) Configure a process
event:
event process
{
exception
|
restart
|
shutdown
|
start
}
[
name
process-name
[
instance
instance-id
] ]
[
chassis
chassis-number
[
slot
slot-number
] ]
•
Configure an SNMP event:
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
]
•
Configure an SNMP-Notification
event:
event snmp
-
notification oid
oid
oid-val
oid-val
op
op
[
drop
]
•
Configure a Syslog event:
event syslog priority
{
priority | all
}
msg
msg occurs times period
period
•
Configure a track event:
event track track-list state
{ negative
|
positive
}
[
suppress-time
suppress-time
]
By default, a monitor policy does
not contain an event.
You can configure only one
event in a monitor policy. If the
monitor policy already contains
an event, the new event
overrides the old event.
By default, the device does not
support the
subslot
subslot-number
option in the
event hotplug
command.