cisco IOS XE 17.16.x — Configuring SNMP

configure terminal logging history debugging logging snmp-trap emergencies logging snmp-trap alerts logging snmp-trap critical logging snmp-trap errors logging snmp-trap warnings logging snmp-trap notifications logging snmp-trap informational logging snmp-trap debugging ! snmp-server community public RW snmp-server trap link ietf snmp-server enable traps snmp authentication linkdown linkup snmp-server enable traps syslog snmp-server manager exit Step 2 After NETCONF-YANG starts, enable SNMP Trap support by sending the following RPC message to the NETCONF-YANG port. Example:

version="1.0" encoding="utf-8"?> xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> xmlns="http://cisco.com/yang/cisco-self-mgmt"> xmlns="http://cisco.com/yang/cisco-ia"> 1.3.6.1.4.1.9.9.41.2.0.1 1.3.6.1.6.3.1.1.5.3 1.3.6.1.6.3.1.1.5.4 Step 3 Send the following RPC message to the NETCONF-YANG port to save the running configuration to the startup configuration. Example: version="1.0" encoding="utf-8"?> xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id=""> xmlns:cisco-ia="http://cisco.com/yang/cisco-ia"/> Model-Driven Programmability Configuring SNMP Programmability Configuration Guide, Cisco IOS XE 17.16.x 184