238
mdc-admin
Parameters
slot
slot-number
: Specifies a card by its slot number. (In standalone 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. (In IRF mode.)
subslot
subslot-number
: Specifies a subcard by its subslot number. If you do not specify a subcard,
EAA monitors all subcards on the specified card for card swapping events. In the current software
version, the device does not support this option.
Usage guidelines
Use hotplug event monitor policies to monitor cards for card swapping performed while the device is
operating.
If you do not specify the remove or insert event, the hotplug event monitor policy monitors cards for
both events.
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
# (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
# (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
Default
No interface events are configured.
Views
CLI-defined policy view
Predefined user roles
network-admin
mdc-admin