This article describes the CLI clear command options not included with clear command privileges.
clear
When creating a user with clear privileges, some clear commands are not allowed.
For example, the clear permissions include the following:
snmp
system
Clear privileges do not include:
clear logs
clear lacp
clear services
clear security
clear passive-monitoring
clear unified-edge
This situation occurs in all Junos OS versions on all devices, and is an expected behavior.
In order to allow the missing clear options, you can add them by running the clear services with the following commands:
lab@juniper# set system login class clear-privilege allow-configuration "clear services"lab@juniper# set system login class clear-privilege confallow-commands "clear services"
[edit system login]
+ class clear-privilege {
+ permissions clear;
+ }[edit system login]
+ user clear-user {
+ class clear-privilege;
+ authentication {
+ encrypted-password "$ABC123"; ## SECRET-DATA
lab-admin@Juniper# show system login class clear-privilegepermissions clear;lab-admin@Juniper# show system login
user clear-user {
uid 2028;
class clear-privilege;authentication {
encrypted-password "$ABC123"; ## SECRET-DATA