Configuring SNMP

SR Linux supports SNMPv2, which allows SNMP clients to read information about the system for device monitoring. The MIB file that covers the supported OIDs is packaged with each release.

To configure the SNMP server, use the system snmp command.

SNMP server configuration

In the following example, an SNMP server is running within the mgmt and default network-instances, and the configuration specifies the IP addresses where the device listens for SNMP client connections:

--{ candidate shared default }--[  ]--
# info system snmp
    system {
        snmp {
            community test1 
            network-instance mgmt {
                admin-state enable
                source-address [
                    1.1.1.1
                ]
            }
            network-instance default {
                admin-state enable
                source-address [
                    3.3.3.3
                ]
            }
        }
    }