Configuring SNMP on Juniper MX

For example, I will configure SNMP on Juniper MX204.

Let’s go to the configuration mode:

configure

Let’s move on to configuring snmp:

edit snmp

Let’s specify the community (instead of IXNFO.COM) and the IP address of the snmp client (in my case, the Zabbix server):

set community IXNFO.COM clients 192.168.5.5/32 authorization read-only

You can also execute the command from the main configuration mode:

set snmp community IXNFO.COM clients 192.168.5.5/32 authorization read-only

If there are many SNMP client IP addresses, then create a list and indicate it when adding community:

set client-list list0 192.168.3.0/24
set client-list list0 192.168.5.5/32
set community IXNFO.COM client-list-name list0 authorization read-only

If necessary, we will indicate the rest of the data to the device:

set name "ixnfo.com"
set description "TEST"
set location "TEST"
set contact "admin@ixnfo.com"

Let’s check the added SNMP configuration:

show

Let’s check the configuration and apply:

commit check
commit

After that SNMP v2 should work.

You can delete the entered command or community like this:

delete community IXNFO.COM
delete community IXNFO.COM clients 192.168.5.5/32

Or just restore the previous configuration:

rollback ?
rollback 0

Let’s exit the snmp hierarchy and check the snmp configuration again:

exit
show snmp
show | match snmp | display set

See also my article:
SNMP OID and MIB for interfaces

Leave a comment

Leave a Reply