cisco IOS XE 17.16.x — Sample NACM Configuration

NACM Privilege Level Dependencies If the AAA configuration is configured with no aaa new-model , the privilege level locally configured for the user is used. If the AAA configuration is configured with aaa new-model , the privilege level is determined by the AAA servers associated with the method list aaa authorization exec default . NACM Configuration Management and Persistance The NACM configuration can be modified using NETCONF or RESTCONF. In order for a user to be able to acccess the NCAM configuration, they must have explicit permission to do so, that is, through a NACM rule.

Configuration under the /nacm subtree persists when the copy running-config startup-config EXEC command is issued, or the cisco-ia:save-config RPC is issued. message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> xmlns="http://cisco.com/yang/cisco-ia"/> Note The NACM rules that apply to a NETCONF session are those that are configured in the /nacm subtree at the time of session establishment. Modifying the /nacm subtree has no effect on NETCONF sessions as they are already established. The RPC or the clear netconf-yang session EXEC command can be used to forcibly end an unwanted NETCONF session. See NETCONF Kill Session, on page 174 .

Note Care should be taken when crafting rules to deny access to certain data as the same data may be exposed through multiple YANG modules and data node paths. For example, interface configuration is exposed through both Cisco-IOS-XE-native and ietf-interface . Rules that may apply to one representation of the same underlying data may not apply to other representations of that data. Resetting the NACM Configuration Use the following command to reset the /nacm subtree configuration to the initial configuration (see Initial Operation ). Router#request platform software yang-management nacm reset-config Sample NACM Configuration The examples in this section are for illustrative purposes only.

Note The following is a sample for groups configuration. xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm"> administrators admin root Model-Driven Programmability NACM Privilege Level Dependencies Programmability Configuration Guide, Cisco IOS XE 17.16.x 305