Adding SNMP to Juniper EX2300-C

Most of the Juniper switches are now cloud ready and have been integrated as part of the Mist/Juniper Wired Assurance into Mist Dashboard. There are still some features that are not configurable via web interface and require some good old CLI. Cool thing is that you can simply add the needed CLI commands to either the Org template or Site level template and push them out to all the switches.

SNMP configuration is one of the configuration option that needs to be done via CLI. I have a Juniper EX2300-C switch in my lab and I used the following process to setup basic SNMP v2.

set snmp community testmist authorization read-only clients 192.168.20.103 (create read only community and allow only from one IP)
set snmp contact ~Ali~615-123-4567
set snmp location ~MyHome~

From the “Network” and then “Switch Configuration” screen, switch template for a specific site can be updated.

Pick the site you want to make changes to

In the next screen simply check the box, “Override Configuration Template” to override the Org template if any. Next I simply entered my SNMP commands and clicked on save.

Once the configuration syncs SNMP can be tested. I also verified SNMP config from the switch.

Using the following command on my Mac, I was able to pull SNMP data:
snmpwalk -c testmist -v 2c 192.168.10.105

SNMPv2-MIB::sysDescr.0 = STRING: Juniper Networks, Inc. ex2300-c-12p Ethernet Switch, kernel JUNOS 18.2R3-S4.1, Build date: 2020-04-17 04:24:32 UTC Copyright (c) 1996-2020 Juniper Networks, Inc.
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (303152426) 35 days, 2:05:24.26
SNMPv2-MIB::sysContact.0 = STRING: ~Ali~615-123-4567
SNMPv2-MIB::sysName.0 = STRING: ali-mist-lab00-sw00
SNMPv2-MIB::sysLocation.0 = STRING: ~MyHome~
SNMPv2-MIB::sysServices.0 = INTEGER: 6
IF-MIB::ifNumber.0 = INTEGER: 57
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
|
|
|
IF-MIB::ifDescr.4 = STRING: lsi
IF-MIB::ifDescr.5 = STRING: dsc
IF-MIB::ifDescr.6 = STRING: lo0
IF-MIB::ifDescr.7 = STRING: tap
IF-MIB::ifDescr.8 = STRING: gre
IF-MIB::ifDescr.9 = STRING: ipip
IF-MIB::ifDescr.10 = STRING: pime
IF-MIB::ifDescr.11 = STRING: pimd
IF-MIB::ifDescr.12 = STRING: mtun
IF-MIB::ifDescr.22 = STRING: lo0.16385
IF-MIB::ifDescr.33 = STRING: me0
IF-MIB::ifDescr.34 = STRING: me0.0
IF-MIB::ifDescr.35 = STRING: vme
IF-MIB::ifDescr.36 = STRING: vme.0
IF-MIB::ifDescr.37 = STRING: bme0
IF-MIB::ifDescr.220 = STRING: bme0.0
IF-MIB::ifDescr.501 = STRING: cbp0
IF-MIB::ifDescr.502 = STRING: esi
IF-MIB::ifDescr.503 = STRING: irb
IF-MIB::ifDescr.504 = STRING: pip0
IF-MIB::ifDescr.505 = STRING: vtep
IF-MIB::ifDescr.506 = STRING: jsrv
IF-MIB::ifDescr.507 = STRING: jsrv.1
IF-MIB::ifDescr.508 = STRING: irb.0
IF-MIB::ifDescr.509 = STRING: pfh-0/0/0
IF-MIB::ifDescr.510 = STRING: pfe-0/0/0
IF-MIB::ifDescr.511 = STRING: pfe-0/0/0.16383
IF-MIB::ifDescr.512 = STRING: pfh-0/0/0.16383
IF-MIB::ifDescr.513 = STRING: pfh-0/0/0.16384
IF-MIB::ifDescr.514 = STRING: ge-0/0/0
IF-MIB::ifDescr.515 = STRING: ge-0/0/1
IF-MIB::ifDescr.516 = STRING: ge-0/0/2
IF-MIB::ifDescr.517 = STRING: ge-0/0/3
IF-MIB::ifDescr.518 = STRING: ge-0/0/4
IF-MIB::ifDescr.519 = STRING: ge-0/0/5
IF-MIB::ifDescr.520 = STRING: ge-0/0/0.0
IF-MIB::ifDescr.521 = STRING: ge-0/0/1.0
IF-MIB::ifDescr.522 = STRING: ge-0/0/2.0
IF-MIB::ifDescr.523 = STRING: ge-0/0/3.0
IF-MIB::ifDescr.524 = STRING: ge-0/0/4.0
IF-MIB::ifDescr.525 = STRING: ge-0/0/5.0
IF-MIB::ifDescr.526 = STRING: ge-0/0/6
IF-MIB::ifDescr.527 = STRING: ge-0/0/7
IF-MIB::ifDescr.528 = STRING: ge-0/0/8
IF-MIB::ifDescr.529 = STRING: ge-0/0/6.0
IF-MIB::ifDescr.530 = STRING: ge-0/0/7.0
IF-MIB::ifDescr.531 = STRING: ge-0/0/8.0
IF-MIB::ifDescr.532 = STRING: ge-0/0/9
IF-MIB::ifDescr.533 = STRING: ge-0/0/10
IF-MIB::ifDescr.534 = STRING: ge-0/0/11
IF-MIB::ifDescr.535 = STRING: ge-0/0/9.0
IF-MIB::ifDescr.536 = STRING: ge-0/0/10.0
IF-MIB::ifDescr.537 = STRING: ge-0/0/11.0
IF-MIB::ifDescr.538 = STRING: irb.10
IF-MIB::ifDescr.539 = STRING: irb.1
IF-MIB::ifDescr.540 = STRING: irb.20
IF-MIB::ifDescr.541 = STRING: irb.30

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

WordPress SEO