Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring SNMP on JDM

date_range 24-Nov-23

There are several SNMP-enabled components in NFX (JDM, hypervisor, and so on). This topic discusses the SNMP implementation of JDM and hypervisor. For JCP, see the Junos documentation. On the NFX250 platform, JDM plays the role of the SNMP agent and at the same time it acts as an SNMP proxy for the hypervisor (host OS). When SNMP is configured in JDM, hypervisor also takes the same SNMP configuration. By default, SNMP is disabled on disaggregated Junos OS platforms. To enable SNMP , you must include the SNMP configuration statements at the [edit snmp] hierarchy level. This section describes:

Configuring SNMP Community

To configure SNMP community:

Specify a name for the SNMP community:
content_copy zoom_out_map
user@jdm# set snmp community community

Configuring SNMP System Parameters

To configure SNMP system parameters:

  1. Set the system name:
    content_copy zoom_out_map
    user@jdm# set snmp name name
  2. Enter a description for the system being managed:
    content_copy zoom_out_map
    user@jdm# set snmp description description
  3. Specify the location of the system:
    content_copy zoom_out_map
    user@jdm# set snmp location location
  4. Specify the name of the contact person:
    content_copy zoom_out_map
    user@jdm# set snmp contact contact

Configuring SNMP v3

In contrast to SNMP version 1 (SNMPv1) and SNMP version 2 (SNMPv2), SNMP version 3 (SNMPv3) supports authentication and encryption. SNMPv3 uses the user-based security model (USM) for message security and the view-based access control model (VACM) for access control. USM specifies authentication and encryption. VACM specifies access-control rules. To configure local engine information for the user-based security model (USM) with Secure Hash Algorithm (SHA) as the authentication type for the SNMPv3 user, enter the command:

content_copy zoom_out_map
user@jdm# set snmp v3 usm local-engine user username authentication-sha authentication-password authentication-password

To configure local engine information for the USM with MD5 as the authentication type for the SNMPv3 user, enter the command:

content_copy zoom_out_map
user@jdm# set snmp v3 usm local-engine user username authentication-md5 authentication-password authentication-password

Configuring SNMP Traps

To configure SNMP traps, create a named group of hosts to receive the specified trap notifications. At least one trap group must be configured for SNMP traps to be sent:

content_copy zoom_out_map
user@jdm# set snmp trap-group group-name targets address

Querying SNMP MIBs

The NFX 250 platform supports querying SNMP MIBs on both, the JDM and the hypervisor. NFX MIBS are read-only, which means that the values can be read from the MIB but cannot be configured using SNMP.

The commands below are the queries on SNMP v1, SNMP v2 and SNMP v3. :

content_copy zoom_out_map
user@SNMP_server# snmpwalk -v 1 -c community-name jdm_ip-address oid
content_copy zoom_out_map
user@jdm# snmpwalk -v 2 -c community-name ip-address oid
content_copy zoom_out_map
user@jdm# snmpwalk -v3 -u username  -l authNoPriv -a SHA -A password ip-address oid

To query the hypervisor, you need to provide an additional context name, which is the user name appended by -host:

content_copy zoom_out_map
user@jdm# snmpwalk -v 1 -c community-name-host ip-address oid
content_copy zoom_out_map
user@jdm# snmpwalk -v 2 -c community-name-host ip-address oid
content_copy zoom_out_map
user@jdm# snmpwalk -v3 -u username-host  -l authNoPriv -a SHA -A password ip-address oid

You can query libvirt MIBs only as a host:

content_copy zoom_out_map
user@jdm# snmpwalk -v 2c -c community-name-host ip-address oid

Managing Traps

The agent sends traps to notify the manager of significant events that occur on the device. To configure traps:

content_copy zoom_out_map
user@jdm# set snmp trap-group group-name targets ip-address

JDM traps are assigned the context jdm, and hypervisor traps are assigned the context host.

footer-navigation