Skip carousel.This document describes how to configure NETCONF/YANG on Cisco IOS XE 16.x based Platforms. Documents Similar To Visual Hub Users Guide. To play a DVD image on Mac OS X without burning it. VisualHub for windows, Windows Media Player 11.0, Windows Media Player 11, Amacsoft iPad iPhone iPod to PC Transfer 2.1 VisualHubUsersGuide Adobe Flash I Pod VisualHub Users Guide.
![]() Adobe Flash Player 10.12.2 Software And HardwareThis is the device that is configured and from which data (show command output) is being collected from via NETCONF/YANG.A laptop (Apple MacBook Pro running macOS Sierra 10.12.2 and Google Chrome browser) is used as the NETCONF Client. Components UsedThe information in this document is based on these software and hardware versions:In this example a stand alone WS-C3850-12X48U switch running Cisco IOS-XE 16.3.3 is used as the NETCONF server. Note: No prior experience with NETCONF, YANG, or Python scripting is required in order to use this document. Supports HiDPI display Adobe Flash Player 10 software required to export SWF.Since the data models are standards based the same procedure can be used to configure or collect data from non-Cisco devices as well which makes them ideal for customers that support multiple vendors. Background Information Data Models - Programmatic and Standards Based Configuration and MonitoringData models provide an alternate and centralized way to configure Cisco devices (instead of using the Cisco Command Line Interface (CLI) or Simple Network Management Protocol (SNMP)) and to collect operational data (show commands) from Cisco devices. If your network is live, make sure that you understand the potential impact of any command. All of the devices used in this document started with a cleared (default) configuration. It is the device creating the YANG formatted requests that are sent to the Catalyst 3850 via NETCONF RPC (Remote Proceedure Call) messages to configure and collect data from the Catalyst 3850.The information in this document was created from the devices in a specific lab environment.Several applications are available that can be run on a centralized management platform (for example a laptop) to create these configuration and operational data requests.There are both standard (common) YANG data models that apply to all vendors (for example, a request to disable or shut down an ethernet interface should be identical for both Cisco and non-Cisco devices) as well as device (native, vendor specific) data models that facilitate configuring or collecting operational data associated with proprietary vendor features. It has a structured format similar to a computer program that is human readable. Yet Another Next Generation (YANG) Data Modeling Language (RFC 6020)YANG is a standards based data modeling language used to create device configuration requests or the requests for operational (show command) data. Some NETCONF operations include get, get-config, edit-config, and rpc. It uses Secure Shell (SSH) as the transport layer across network devices. NETCONF uses a simple Remote Procedure Call (RPF) based mechanism to facilitate communication between a client (centralized management platform script or application) and a server (Cisco switch or router). It provides transaction based services such as aborting the entire configuration request when a portion of that configuration request fails. A client (centralized management platform) registers to receive the NETCONF notification stream from a server (Catalyst 3850) and send a specific subscription RPC (see section 3 of “Configuring the Centralized Management Platform (Laptop)”). Additional (Optional) Configuration to Allow NETCONF/YANG Syslog and SNMP Event MonitoringThese snmp-server configurations must be present in order to enable the generation of NETCONF notifications (RFC 5277 - ) for Syslog messages and for any configured SNMP traps to also generate NETCONF notifications.Note that while these are the minimum required, additional “snmp-server enable” entries might be present as well. Aaa new-modelAaa authorization exec default local -> Required for NETCONF-SSH connectivity and edit-config operations 2. You can also expand this to use AAA with a TACACS+ or RADIUS configuration but this is beyond the scope of this example. If it is desired to enable AAA ( authentication, authorization, and accounting) by configuring "aaa new-model" then the following configuration is also required at a minimum. It may take up to 90 seconds to initializeUsername cisco1 privilege 15 password 0 cisco1 -> Username/password used for NETCONF-SSH accessNote: This is the complete configuration required on the Catalyst 3850 to support NETCONF/YANG Data Modeling but it assumes that "no aaa new-model" is configured globally (the default) as well. To disable generating SNMP trap notifications use this CLI “no netconf-yang cisco-ia snmp-trap-control global-forwarding”. Notification generation for SNMP traps is enabled by default. In IOS-XE 16.3.1 software a maximum of 10 SNMP traps can be configured to generate NETCONF notifications but this restriction will be removed in a future release. Logging history debugging -> required for the generation of any NETCONF notification messages for SyslogLogging snmp-trap emergencies -> configure 1 or more of the following to control which levels of Syslog messages are returned as notificationsFor SNMP traps, this configuration is required to generate NETCONF notifications. A configurable community is supported on 16.5.1 and later.Netconf-yang cisco-ia snmp-community-string -> Configure the same community string to enable SNMP MIB access for both NETCONF and RESTCONF.Snmp-server trap link ietf -> enable traps for IETF link up/downSnmp-server enable traps snmp authentication linkdown linkup -> enable traps for link up/downSnmp-server enable traps syslog -> enable traps for Syslog so notifications will be generatedSnmp-server manager -> enable snmp-serverFor Syslog, this configuration must be present for the Data Model Interface (DMI) on the Catalyst 3850 to have the ability to generate NETCONF notifications defined in RFC 5277 when Syslog messages are generated by IOSd on the Catalyst 3850. 3850-1# show running-configIp route vrf Mgmt-vrf 0.0.0.0 0.0.0.0 172.16.167.161Interface IP-Address OK? Method Status ProtocolGigabitEthernet0/0 172.16.167.175 YES DHCP up upGigabitEthernet1/0/1 unassigned YES manual up upGigabitEthernet1/0/2 unassigned YES unset up upGigabitEthernet1/0/3 unassigned YES unset down downGigabitEthernet1/0/4 unassigned YES unset down downGigabitEthernet1/0/5 unassigned YES unset down down Verify NETCONF/YANG on the Catalyst 38501. Alternate configurations can be used on the Catalyst 3850 as long as the laptop can reach the Catalyst 3850 on the Network. Dynamic Host Configuration Protocol (DHCP) has been used to assign IP address 172.16.167.175 to this interface. Network Connectivity Configuration of the Catalyst 3850 Used in this ExampleThe Catalyst 3850 management interface GigabitEthernet0/0 is used to connect to the network and to the centralized management platform (a laptop will be used) in this example. Free download mackeeper for mac os xIn this example, a laptop (Apple MacBook Pro running macOS Sierra 10.12.2) is used that has network access to the Catalyst 3850. 3850-1# show platform software yang-management processThe next steps are performed from the centralized management platform.
0 Comments
Leave a Reply. |
AuthorJason ArchivesCategories |