308
action reboot
Use
action reboot
to add a reboot action to a monitor policy.
Use
undo action
to remove an action.
Syntax
action number reboot
[
slot
slot-number
[
subslot
subslot-number
] ]
undo action number
Default
Monitor policies do not contain any actions.
Views
CLI-defined policy view
Predefined user roles
network-admin
Parameters
number
: Specifies an action ID in the range of 0 to 231.
slot slot-number
: Specifies an IRF member device by its member ID. If you do not specify a member
device, this command reboots all IRF member devices.
subslot
subslot-number
: Specifies a card by its slot number. If you do not specify a card, this
command reboots all cards.
Usage guidelines
You can configure a series of actions to be executed in response to the event specified in a monitor
policy.
EAA executes the actions in ascending order of action IDs. When you add actions to a policy, you
must make sure the execution order is correct.
The reboot action configured with this command reboots devices or cards without saving the running
configuration. If you want to save the running configuration, use the
action cli
command to configure
reboot actions.
When you define an action, you can choose to specify a value or specify a variable name for an
argument. For more information about using EAA environment variables, see "
."
Examples
# Configure an action for the CLI-defined policy
test
to reboot IRF member device 1.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] action 3 reboot slot 1
action switchover
Use
action switchover
to add an active/standby switchover action to a monitor policy.
Use
undo action
to remove an action.
Syntax
action number switchover
undo action number