323
(Centralized devices in IRF mode.) After you configure the event, the monitor policy is triggered
when the member device joins or leaves the IRF fabric, or when a subcard is inserted in or removed
from the specified subcard slot. If you do not specify the
insert
or
remove
keyword, EAA monitors
the member device for joining or leaving the IRF fabric and the subcard slot for subcard
hot-swapping.
(Distributed devices.) After you configure the event, the monitor policy is triggered when a card is
inserted in or removed from the specified slot. If you do not specify the
insert
or
remove
keyword,
EAA monitors the card slot for both removal and insert actions.
You can configure only one event entry for a monitor policy. If the monitor policy already contains an
event entry, the new event entry replaces the old event entry.
Examples
# (Centralized devices in standalone mode.) Configure a CLI-defined policy to monitor slot 2 for
subcard swapping.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] event hotplug slot 2
# (Distributed devices in standalone mode.) Configure a CLI-defined policy to monitor the card in slot
2 for card swapping.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] event hotplug slot 2
# (Centralized devices in IRF mode.) Configure a CLI-defined policy to monitor the cards on IRF
member device 2 for card swapping.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] event hotplug slot 2
# (Distributed devices in IRF mode.) Configure a CLI-defined policy to monitor the card in slot 2 of
IRF member device 1 for card swapping.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] event hotplug chassis 1 slot 2
event interface
Use
event interface
to configure an interface event for a CLI-defined monitor policy.
Use
undo event
to delete the event in a CLI-defined monitor policy.
Syntax
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
]
undo event