SNMP v2 in Junos – note 1

SNMP v2

The Simple Network Management Protocol (SNMP) is by far the dominant protocol in network management. This Protocol (SNMP) was designed to be an easily implementable, basic network management tool that could be used to meet network management needs.

There are different versions of SNMP, such as SNMP V1, SNMP V2c, and SNMP V3.

AGENT – It is a software module in the device responsible for maintaining local management information and delivering that information to a manager via SNMP.

MANAGER – SNMP facilitates communication between a managed device (a device with an SNMP agent, e.g., a router) and an SNMP Manager or management application (represents a user of network management)

  • The manager can perform a get (or read) to obtain information from the agent about an attribute of a managed object.
  • The manager can perform a get-next to do the same for the next object in  the tree of objects on the managed device.
  • The manager can perform a get-bulk to obtain information about a group of data from the agent. This is not possible in the case of SNMP V1.
  • The manager can perform a set (or write) to set the value of an attribute of a managed object.
  • The agent can send a trap, or asynchronous notification, to the manager telling it about some event on the managed device.

Sample basic Config

[edit snmp]

root@junos-device# show

community your_private_community_name {

    authorization read-write;

}

 trap-group your_private_community_name {

    version v2;

    categories {

        chassis;

        link;

        routing;

        services;

    }

    targets {

        x.x.x.x;

    }

}

Same Config in ‘set’ commands

set snmp community your_private_community_name authorization read-write
set snmp trap-group your_private_community_name version v2
set snmp trap-group your_private_community_name categories chassis
set snmp trap-group your_private_community_name categories link
set snmp trap-group your_private_community_name categories routing
set snmp trap-group your_private_community_name categories services
set snmp trap-group your_private_community_name targets x.x.x.x

Leave a Reply

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Reject