SUMMARY STEPS 1. iosp_client -f netconf_enable guestshell port-number 2. iosp_client -f netconf_enable_passwordless guestshell username 3. iosp_client -f netconf_disable guestshell 4. iosp_client -f netconf_disable_passwordless guestshell username DETAILED STEPS Procedure Example Accessing the Python Interpreter Python can be used interactively or Python scripts can be run in the Guest Shell. Use the guestshell run python command to launch the Python interpreter in Guest Shell and open the Python terminal. Note In releases prior to Cisco IOS XE Amsterdam 17.3.1, Python V2 is the default. Python V3 is supported in Cisco IOS XE Amsterdam 17.1.1, and Cisco IOS XE Amsterdam 17.2.1.
In Cisco IOS XE Amsterdam 17.3.1 and later releases, Python V3 is the default. Guest Shell Accessing the Python Interpreter Command or Action Purpose Step 1 iosp client -f netconf enable guestshell port-number _ _ Example: Guest Shell: iosp client -f netconf enable _ _ guestshell 3 Configures the netconf-yang ssh local-vrf guestshell command, and blocks connections until NETCONF-YANG is up and running. Step 2 iosp client -f netconf enable passwordless guestshell _ _ _ username Example: Guest Shell: iosp client -f netconf enable _ _ guestshell guestshell Creates the SSH keys required for Guest Shell access. Step 3 iosp client -f netconf disable guestshell _ _ Example: GuestShell:
iosp client -f netconf disable _ _ guestshell Removes access to NETCONF from within the Guest Shell. • NETCONF-YANG configuration will still exist. To shut down NETCONF-YANG use the no netconf-yang command. Step 4 iosp client -f netconf disable passwordless guestshell _ _ _ username Example: Guest Shell: iosp client -f _ netconf disable passwordless guestshell guestshell _ _ Removes the access keys for the specified user. • NETCONF access is still enabled for the user; however the user will have to use a password to connect to NETCONF. Guest Shell 20