336
Predefined user roles
network-admin
Parameters
time
: Specifies the runtime of the CLI-defined policy, in the range of 0 to 31536000 seconds. If you
specify 0, the policy can run forever until it is manually interrupted.
Usage guidelines
Policy runtime limits the amount of time that the monitor policy can run from the time it is triggered.
When the runtime is reached, the system stops executing the policy even if the execution is not
finished.
This setting prevents an incorrectly defined policy from running permanently to occupy resources.
Examples
# Set the runtime to
60
seconds for the CLI-defined policy
test
.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] running-time 60
user-role
Use
user-role
to assign a user role to a CLI-defined policy.
Use
undo user-role
to remove a user role from a CLI-defined policy.
Syntax
user-role role-name
undo user-role role-name
Default
A monitor policy contains user roles that its creator had at the time of policy creation.
Views
CLI-defined policy view
Predefined user roles
network-admin
Parameters
role-name
: Specifies a user role by its name, a case-sensitive string of 1 to 63 characters.
Usage guidelines
For EAA to execute an action in a monitor policy, you must assign the policy the user role that has
access to the action-specific commands and resources. If EAA lacks access to an action-specific
command or resource, EAA does not perform the action and all the subsequent actions.