Configuring SNMP on Devices Running Junos OS
The following sections contain information about basic SNMP configuration and a few examples on configuring the basic SNMP operations on devices running Junos OS:
- Configuring Basic Settings for SNMP Version 1 and 2
- Configuring Basic Settings for SNMPv3
- Configuring System Name, Location, Description, and Contact Information
Configuring Basic Settings for SNMP Version 1 and 2
By default, SNMP is not enabled on devices running Junos OS. To enable SNMP on devices running Junos OS, include the community public statement at the [edit snmp] hierarchy level.
Enabling SNMP Version 1 and 2 Get and GetNext Operations
A community defined as public grants access to all MIB data to any client.
To enable SNMP version 1 and 2 Set operations on the device, you must include the following statements at the [edit snmp] hierarchy level:
Enabling SNMP Version 1 and 2 Set Operations
The following example shows the basic minimum configuration for SNMP version 1 and 2 traps on a device:
Configuring SNMP Version 1 and 2 Traps
Configuring Basic Settings for SNMPv3
The following example shows the minimum SNMPv3 configuration for enabling Get, GetNext, and Set operations on a device (note that the following configuration has authentication set to MD5 and privacy to none):
Enabling SNMPv3 Get, GetNext, and Set Operations
The following example shows the basic configuration for SNMPv3 informs on a device (the following example has authentication and privacy set to none):
Configuring SNMPv3 Informs
You can convert the SNMPv3 informs to traps by setting the value of the type statement at the [edit snmp v3 notify N1_all_tl1_informs] hierarchy level to trap as shown in the following example:
Converting Informs to Traps
Configuring System Name, Location, Description, and Contact Information
The Junos OS enables you to include the location of the system, administrative contact information, and a brief description of the system in the SNMP configuration. Always ensure that you keep the name, location, contact, and description information configured and updated for all your devices that are managed by SNMP.
The following example shows a typical system location, description, and contact information configuration:
![]() | Tip: Use quotation marks to enclose the system name, contact, location, and description information that contain spaces. |
Related Topics
- Configuring Options on Managed Devices for Better SNMP Response Time
- Managing Traps and Informs
- Monitoring SNMP Activity and Tracking Problems That Affect SNMP Performance on a Device Running Junos OS
- Optimizing the Network Management System Configuration for the Best Results
- Understanding SNMP Implementation in Junos OS
- Using the Enterprise-Specific Utility MIB to Enhance SNMP Coverage
Hide Navigation Pane
Show Navigation Pane
Download
SHA1
