Setting Up SNMP on Juniper Switches

Setting Up SNMP on Juniper Switches

August 16, 2019, Author: Taylor

This is a pretty easy process, but is critical for the long term management of our networking infrastructure. In order to setup SNMP on the Junipers, these are the steps that must be followed. Use the information contained within this tutorial as well so that all devices have the same SNMP settings.

  1. Log into the switch VIA SSH/Console/Telnet/etc…
  1. Once logged in, enter the command line interface by typing CLI  and hitting enter.
  1. At the prompt, type configure

Follow the remainder of the steps and you should have no problems setting up SNMP on the Junipers.

  1. Edit the SNMP protocol by entering this command at the prompt: edit snmp
  1. We need to setup a community name, since this is a standard SNMP setup we will use public. 

Set community publicauthorization read-only

  1. We now need to create a client list for access to the SNMP community.

Set client-listlist0 10.10.10.0/24

Set community public client-list-name list0

  1. Next, we specify all addresses that are blocked from accessing the SNMP community. (NOTE – Replace the subnets with your own networks subnets)

Set community public clients 10.10.105.0/24 restrict

Set community public clients 10.10.88.0/22 restrict

Set community public clients 10.10.20.0/22 restrict

Set community public clients 10.10.30.0/24 restrict

Set community public clients 10.10.48.0/22 restrict

Set community public clients 10.10.60.0/22 restrict

Set community public clients 10.10.136.0/22 restrict

  1. Lastly, you will need to setup a trap group… which will need to be done prior to when we go live with a monitoring option.

Set trap-group “group-name” destination-port 155 targets X.X.X.X

NOTE: You do not need to use the destination-port command if you are using the default port of 162.

Comments (0)