199
Step
Command
Remarks
5.
Configure the actions
to take when the
event occurs.
•
Configure a CLI action:
action number
cli command-line
•
(In standalone mode.) Configure a
reboot action:
action number reboot
[
slot
slot-number
[
subslot
subslot-number
] ]
•
(In IRF mode.) Configure a reboot
action:
action number reboot
[
chassis
chassis-number
[
slot
slot-number
[
subslot
subslot-number
] ] ]
•
Configure an active/standby
switchover action:
action number switchover
•
Configure a logging action:
action syslog priority priority
facility
local-number
msg
msg-body
By default, a monitor policy does
not contain any actions.
Repeat this step to add a
maximum of 232 actions to the
policy.
When you define an action, you
can specify a value or specify a
variable name in
$variable_name
format for an
argument.
By default, the device does not
support the
subslot
subslot-number
option in the
action reboot
command.
6.
(Optional.) Assign a
user role to the policy.
user-role role-name
By default, a monitor policy
contains user roles that its
creator had at the time of policy
creation.
A monitor policy supports a
maximum of 64 valid user roles.
User roles added after this limit
is reached do not take effect.
An EAA policy cannot have both
the
security-audit
user role and
any other user roles. Any
previously assigned user roles
are automatically removed when
you assign the
security-audit
user role to the policy. The
previously assigned
security-audit
user role is
automatically removed when you
assign any other user roles to
the policy.
7.
(Optional.) Configure
the policy runtime.
running-time time
The default runtime is 20
seconds.
8.
Enable the policy.
commit
By default, CLI-defined policies
are not enabled.
A CLI-defined policy can take
effect only after you perform this
step.
Configuring a monitor policy by using Tcl
Step
Command
Remarks
1.
Edit a Tcl script file
(see
N/A
The supported Tcl version is 8.5.8.
2.
Download the file to
the device by using
FTP or TFTP.
N/A
For more information about using FTP
and TFTP, see
Fundamentals
Configuration Guide
.