Issuing the all keyword supersedes privilege levels that were previously set without the all keyword.
In the following example, the snmp-server-community command is set to level 7, and the snmp keyword is set to level 6. The privilege level of the snmp keyword does not override the snmp-server community setting, because both of these commands are set without the all keyword.
- host1(config)#privilege configure level 7
snmp-server community
- host1(config)#privilege configure level 6
snmp
All snmp commands are then changed to level 5 with the all keyword.
- host1(config)#privilege configure all level
5 snmp
The show configuration output displays all snmp commands at level 5, superseding the existing level 6 setting. The snmp-server community command is still present in the show configuration output, but it is ineffective.
- host1#show config category management cli
command-privileges
- privilege configure level 7 snmp-server community
- privilege configure all level 5 snmp-server