Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring Access Privileges for Operational Mode Commands

The following example shows how to configure access privileges for different login classes for individual operational mode commands:

[edit]
system {# This login class has operator privileges and the additional ability
# to reboot the router.
login {# This login class has operator privileges and the additional ability to reboot the # router or switch.class operator-and-boot {permissions [ clear network reset trace view ];allow-commands "request system reboot";}# This login class has operator privileges but can't use any commands beginning # with “set” .# This login class has operator privileges
# but cannot use any commands beginning with “set”
class operator-no-set {permissions [ clear network reset trace view ];deny-commands "^set";}
# This login class has operator privileges and can install software but not view # BGP information, and can issue the show route command, without specifying # commands or arguments under it.class operator-and-install-but-no-bgp {permissions [ clear network reset trace view ];allow-commands "(request system software add)|(show route$)";deny-commands "show bgp";}}
}

Published: 2013-08-15