# Simple Network Management Protocol (SNMP)

# URL

frinx-snmp:snmp/interfaces/interface=

# OPENCONFIG YANG

YANG models

{
    "interface": [
        {
            "interface-id": "",
            "config": {
                "interface-id": "",
                "enabled-trap-for-event": [
                    {
                        "event-name": "frinx-event-types:LINK_UP_DOWN"
                        "enabled": true/false            
                    }
                ]
            }
        }
    ]
}

# URL

frinx-snmp:snmp/views/view=

# OPENCONFIG YANG

{
    "frinx-snmp:view": [
        {
            "name": "",
            "config": {
                "name": "",
                "mib": [
                    {
                        "name": "",
                        "inclusion": "included|excluded"
                    }
                ]
            }
        }
    ]
}

# URL

frinx-snmp:snmp/communities/community=

# OPENCONFIG YANG

{
    "frinx-snmp:community": [
        {
            "name": "",
            "config": {
                "name": "",
                "access-list": "",
                "access": "ro|rw",
                "view": ""
            }
        }
    ]
}

# OS Configuration Commands

# Cisco IOS Classic (15.2(4)S5) / XE (15.3(3)S2)

# CLI

snmp-server view   
snmp-server community  view   
# Unit

Link to github : ios-unit

# Cisco IOS XR 5.3.4

# CLI

By default enabled on all interfaces. To disable, use:

snmp-server interface  
 notification linkupdown disable

To enable disabled interfaces use:

snmp-server interface  
 no notification linkupdown disable

enabled:true is a conversion of snmp set enabled

enabled:false is a conversion of snmp set disabled

# Unit

Link to github : xr-unit

# Junos 17.3R1.10

# CLI

set interfaces  traps
# Unit

Link to github : junos-unit