cisco IOS XE 17.16.x — Providing Privilege Access to Use NETCONF

Providing Privilege Access to Use NETCONF To start working with NETCONF APIs, you must be a user with privilege level 15. SUMMARY STEPS 1. enable 2. configure terminal 3. username name privilege level password password 4. aaa new-model 5. aaa authentication login default local 6. aaa authorization exec default local 7. end DETAILED STEPS Procedure Model-Driven Programmability Providing Privilege Access to Use NETCONF Command or Action Purpose Step 1 enable Example: Device# enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode.

Step 3 username name privilege level password password Example: Device(config)# username example-name privilege 15 password example password _ Establishes a user name-based authentication system. Configure the following keywords: • privilege level: Sets the privilege level for the user. For the NETCONF protocol, it must be 15. • password password: Sets a password to access the CLI view. Step 4 aaa new-model Example: Device(config)# aaa new-model (Optional) Enables authorisation, authentication, and accounting (AAA). If the aaa new-model command is configured, AAA authentication and authorization is required. Step 5 aaa authentication login default local Example:

Device(config)# aaa authentication login default local Sets the login authentication to use the local username database. Note Prior to Cisco IOS XE Cupertino 17.9.1, only the default AAA authentication login method is supported for the NETCONF protocol. From Cisco IOS XE Cupertino 17.9.1, named method-list is supported. Programmability Configuration Guide, Cisco IOS XE 17.16.x 181