Professional Documents
Culture Documents
1 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Have you ever needed to know what a remote device thinks the value of a metric is? HTGexplainswhat the Simple
NetworkManagementProtocol (SNMP) is and how can you use it to monitor network devices.
Image byistargazer
Overview
The Simple NetworkManagementprotocol (SNMP)was created to give a common protocol foundation that network
administrators can expect their devices manufacturers will use to exposedierentaspects ofthe product.Informationsuch
as CPU load, routing tables, and network trac statistics, among many others, can all be accessedremotelywith SNMP. One
can also use SNMP to set congurations on devices that support it, but that isbeyondthe scope of this guide.
The read in/out from SNMP is done using a Community string. As the administrator, it is your job to set this string. Some
examples on how to do this follow below.
Once connected to the device, you need to pull it forinformationusing OIDs.DierentOIDs givedierent pieces
ofinformation, and whilein this guide we will be focusing on network trac, you are encouragedto explore this world
further.We will explain how to get the mysteriousOIDs below.
Authorsramblings
Ive started using this nifty way of viewing the routers info, way back in the rst days of my DD-WRT studies.Nowadays, if i
dont have it? I just feelblind. I simply cannot stress howvaluableit is, when a user complainsabout the network speed, to
be able to glance over what the border router says is theutilizationand quickly resolve the issue.
12/04/2016 22:48
2 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Thisutilityhas twodrawbacks:
1. It is aimed to show networkbandwidth, so is not suited forretrievingother SNMPinformation.
2. It doesnt give an option to save/open conguration les.
If the above limitations are an issue, read on to one of the other options.
Download and install using the regular Next -> Next -> Finishprocedure and open the program.
You should be presented with a wizard as shown below.Fill in the target devices IP and community information and click
Next.
The program will pull the device for its interfaces and show them in afriendlyformatted,colorized, and name enumerated
list.
Choose the interfaces you wish to monitor (multiple selection is possible with CTRL) and click Next.
12/04/2016 22:48
3 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
In the example above, weve selected two interfaces called DSL wan1 & ATM wan2. You can accept thedefaultsettings
and click Launch Monitor.
Graph windows as the above one, should open up and start to show trac information with a 5 second (congurable)
refresh interval.
Note about the refresh interval: The realadvantageof this program is that, of all the programs Ive come across, this was the
only one that tells you if your refresh interval is too short.During the past week, Ive had
thedistinctpleasureofdebugginga problem with SNMP readouts, as it seems some devices cant (or simplywont)
updatetheirstatistics more then X times/sec (7 for Juniper devices). This program was the only one that told me that my
refresh interval was too quick, which explained why I was getting wonky results.
Unless you still need to enable SNMP on the target device (see below), you are DONE.
Rejoice and be on your merryway :)
12/04/2016 22:48
4 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Click on the Select a R/W SNMP Credential dropdown list and click on Create/Edit.
Fill in theinformationrequired for your target devices (mainly thecommunitystring) and save.
12/04/2016 22:48
5 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Once you do that, the bottom half of the program window should populate withinformationpulled from the device like the
below picture.
Clicking on one of the lines should pop-up a monitor window like the one below.
In the next window, one can see the OIDs for the incoming/outgoing trac.
12/04/2016 22:48
6 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
In the next window, you need to input the OIDs as you got them from some other method (at least two in this guide).
12/04/2016 22:48
7 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
If all went well, the main window should ll withinformationand look like the below.
12/04/2016 22:48
8 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Once you see a segment that you want to read, select it and click on Start.
For example, to obtain the same interfaceinformation we got using the programs above,browseto:iso -> org -> dod ->
internet -> mgmt -> mib-2 -> interfaces -> ifTable -> ifEntry ->ifDescr and click Start
The bottom half of the window now shows the Names given to the interfaces on the target device. To get the trac OIDs,
note the number of the interface (in our example, wan2=interface7) and continue to the ifInOctets &
ifOutOctetssubtrees.
They are located at:iso -> org->dod->internet->mgmt.mib-2->interfaces->ifTable->ifEntry->ifInOctets.
12/04/2016 22:48
9 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Click on the Interface you want to monitor trac for and note the OID from the bottom left part of the window.
You are now ready to take the OIDs youve collected to one of the monitoring programs above.
Once enabled, you will be presented with thedetailsthat you may change. It is important that you note what RO
community you are using. The default is public, but you may change this to any other value that you wish. Save and apply
the changes.
On Fortigate (FortiOS)
Assuming a fairly recent version of FortiOS (v4 and above), in the main window expand the Cong pane and select SNMP.
12/04/2016 22:48
10 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Fill in theinformationsuch as communityname, the range of IPs that are allowed to access it, and from what interface.
Once done, Click OK at the bottom of the page to save your settings.
You also need to enable theinterfaceyouwantto read the information from, for SNMP trac. To do this, go to Cong ->
Network.
12/04/2016 22:48
11 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Click on Add.
Fill in the Community name of your choice and select the Authorizationtype.
12/04/2016 22:48
12 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Click Add.
This will enable you to add a new Community string as shown below.
Fill in the desired name and click OK all the way back.
12/04/2016 22:48
13 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
On Windows
It is possible to activate SNMP on windows, it is justrarelyused or even talked about (looking right at you, MS
certications). You will need to install the service rst.
Install the service by going to Programs and Features.
Scroll to nd the Simple NetworkManagementProtocol(SNMP). Check its checkbox and click OK for it to be installed.
12/04/2016 22:48
14 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
12/04/2016 22:48
15 of 15
http://www.howtogeek.com/141135/it-geek-monitor-network-devices-w...
Fill in the desired community name and click Add and OK for the settings to take aect.
Note: You may need to change otherpropertiesto enable remote machines to get the readout, but that isbeyondthe scope
of this guide.
Thats it, you should be all set to graph your networksinformation, and you are encouraged to explore what the SNMP
protocol can oer youbeyondthe scope of this guide, such as: using MIBs and traps. Just remember thesummarizingquote
from below
We are all the sum of our tears. Too little and the ground is not fertile, and nothing can grow there. Too much, the best of
us is washed away. (Babylon 5 gkar)
Aviad Raviv, is an agile IT implementer that has reached the level of "Bankai"
and is now working on incorporating the "hollow" side.
Published 05/16/13
12/04/2016 22:48