mib. Once you. have those TR2056

1|Page TR2056‐ T Monitorring the PM315 or TR‐W WMX WiM MAX CPE E series wi s ith SNMP P The Ba asics of SN NMP Simple Netw work Manage ement Protoc c...
Author: Rosamond Tyler
2 downloads 2 Views 536KB Size
1|Page

TR2056‐ T Monitorring the PM315 or TR‐W WMX WiM MAX CPE E series wi s ith SNMP P The Ba asics of SN NMP Simple Netw work Manage ement Protoc col) is a prottocol used to o monitor de evices on a SNMP (S network. It is generally used by network n adm ministrators to o check the status of the eir network a and to help th hem track do own the roott of any issue es that may occur. To usse SNMP yo ou need a SNMP-enabled devic ce, a compu uter with SNM MP installed and the MIB B (Managem ment Informa ation hich holds th he OID's (Ob bject IDentifiers) that you ur devices w will respond tto. OID's are e Base) wh really wh hat every SN NMP user cherishes, they y are what a allow you to find your de evices uptime e, name, firrmware version, etherne et port status s, and that's jjust to name e a few thing gs it can find d! So, let's move on to the t fun part getting SNM MP working w with your Wiireless unit. Remember,, there's th hree things we w are going g to need to make this w work: ™ A dev vice connecte ed to the network that su upports SNM MP. (Any PM M315 or TR-WMX series CPE) ™ A com mputer that has h SNMP in nstalled. You u will also wa ant to eitherr disable you ur firewa all or open po ort 161 so yo our SNMP q queries can g go through. For the sake e of this tu utorial we are e going to us se Net-SNM MP, mostly be ecause it's rrelatively eassy to install, its free, it does d its job well, w and it iss available o on almost evvery OS dows, Linux, Mac OSX). You can ge t it from the Net-SNMP Homepage. (Wind Please note the as a of version 5.5 Net-SN MP no longe er produces binaries forr ows. The la ast Binary ve erion for Win ndows can b be found at Windo http:///sourceforg ge.net/proje ects/net-snm mp/files/nett-snmp%20b binaries/5.5 5binaries/ ™

The MIB. When you y downloa ad Net-SNM MP (or any otther SNMP a agent) it will 2.11 MIB and MIB 2, wh hich is one of the MIB tha at devices w will come with the 802 w need the se three MIB B files, which can be respond to. Additionally you will ces, includin g the Tranze eo Support ssite. downlloaded from many sourc 004 MIBS: 802.16-20 WMAN-DE EV-MIB-11-3 30.mib WMAN-IF--MIB-11-30.mib WMAN-PR RI-MIB-11-30.mib

Once you u have those e three thing gs continue on o to the nexxt section.

TR2056 - Monitoring the PM315 or TR-WMX X WiMAX CP PE series wiith SNMP 20/01/2011

2|Page

SNMP on the TR R‐6000, T TR‐600, TR R‐CPQ an nd TR‐5a series Un nits All these units share a common interface and setup of S SNMP. First, connect the e unit to yourr network and a login to the web inte erface. Then n browse to tthe Adminis strative setttings page, n near the botto om of which you y will see SNMP para ameter settiings. The community string g is somethiing only used in SNMP vversion 1 an nd it acts as a sort of password d for the dev vice. The Re ead Commun nity allows re ead access to SNMP pa arameters. S So if you put together a SNMP query with the Rea ad Commun nities ID, thatt query will h have read access to o the device. SNMP sim mply checks to t see that th he queries C Community N Name match hes the Devic ces Community Name and a it assigns s read/write access dep pending on w which Comm munity it matche es. You will notice n that th here is no Write W Commu unity. This is by design sso you can o only retrieve data d from the e device, no ot write to it. Syslocattion and Syscontact re eport the loca ation of the d device and w who to conta act regarding g the unit. Usin ng the admin nistrator of th he device wo ould be a go ood idea for the contact name while the location should s be th he actual location of the device. Leave these parame eters at defau ult for now. Start S a comm mand promp pt (Start Men nu > Run > cmd). Yo ou should en nd up with so omething loo oking like thiis:

From herre, we need to constructt an SNMP command. c W We know we're using the e default setttings NMP protoccol. This leavves us with the and that Trazeo units s only respond to version 1 of the SN following command: snmpget -c public -v - 1 ipaddress sysupti ime

TR2056 - Monitoring the PM315 or TR-WMX X WiMAX CP PE series wiith SNMP 20/01/2011

3|Page

snmpget - Tells snm mp to go thro ough the MIB B and get the e sysuptime OID. -c - is the e community y name the unit u is set to.. -v - is the e version of the SNMP protocol p to us se. ipaddres ss - is the ad ddress of the e unit to be polled. p If you typ pe this comm mand into the e command prompt it wiill return the following:

This OID D tells us how w long the sy ystem has been up for, w which in thiss case is 34 minutes and d 32 etup on your system and seconds.. If you get a similar resu ult, congratu ulations, SNM MP is now se you have e successfully used it!

TR2056 - Monitoring the PM315 or TR-WMX X WiMAX CP PE series wiith SNMP 20/01/2011

4|Page

Walkin ng the En tire SNM P Tree m of the OID's O that the e device willl respond to , perform an n SNMP walkk on it. This To see more command is very sim milar to snmp pget: snmpwalk k -c public -v 1 ipaddress

snmpwa alk - Tells sn nmp to go thrrough the MIB and poll e each OID. Doing thiis on the unit from the prrevious exam mple we see e:

TR2056 - Monitoring the PM315 or TR-WMX X WiMAX CP PE series wiith SNMP 20/01/2011

5|Page

From this s we can see e that “Dryw w's Test Box”” is a TR-6 ru unning 2.0.1 11 version firrmware with a 5 dbi external antenna. We can also a see the three interfa aces on the device: IF-MIB::ifDescr.1 = STRING: WiFi802.11b - Wireless IF-MIB::ifDescr.2 = STRING: Ethernet0 – Port A IF-MIB::ifDescr.3 = STRING: Ethernet1 - Port B

The MTU U (Maximum Transmission Unit) for each interfa ce: IF-MIB::ifMtu.1 = INTEGER: I 1500 IF-MIB::ifMtu.2 = INTEGER: I 1500 IF-MIB::ifMtu.3 = INTEGER: I 1500

The spee ed of each in nterface: IF-MIB::ifSpeed.1 = Gauge32: 11000000 - 11 mbps - W Wireless IF-MIB::ifSpeed.2 = Gauge32: 100000000 - 100 mbps - Port A IF-MIB::ifSpeed.3 = Gauge32: 0 - Port B disabled

The mac c addresses of the interfa aces: IF-MIB::ifPhysAddre ess.1 = STRING: 0:60:b b3:5e:d:6b IF-MIB::ifPhysAddre ess.2 = STRING: 0:60:b b3:5e:d:6b IF-MIB::ifPhysAddre ess.3 = STRING: 0:60:b b3:5e:d:6b

We can check c wheth her a interfac ce is active: IF-MIB::ifOperStatu us.1 = INTEGER: down(2 2) - Wireles ss IF-MIB::ifOperStatu us.2 = INTEGER: up(1) - Port A IF-MIB::ifOperStatu us.3 = INTEGER: down(2 2) - Port B

From the ere we can also a determin ne the data in i and out on n various intterfaces: IF-MIB::ifInOctets. .1 = Wrong Type (shoul ld be Counte er32): INTE EGER: 20790 IF-MIB::ifInOctets. .2 = Wrong Type (shoul ld be Counte er32): INTE EGER: 3264 IF-MIB::ifInOctets. .3 = Wrong Type (shoul ld be Counte er32): INTE EGER: 0 IF-MIB::ifOutOctets s.1 = Wrong Type (shou uld be Count ter32): INT TEGER: 87165 5 IF-MIB::ifOutOctets s.2 = Wrong Type (shou uld be Count ter32): INT TEGER: 5002 IF-MIB::ifOutOctets s.3 = Wrong Type (shou uld be Count ter32): INT TEGER: 0

The data a in and out is represente ed by a 64 bit b counter in nstead of the e normal 32 bit counter ffor SNMP 1.. This was used because e of the high h amount of data that the ese units usually pass. TR2056 - Monitoring the PM315 or TR-WMX X WiMAX CP PE series wiith SNMP 20/01/2011

6|Page

Counters s wrap aroun nd or reset when w they hit their upperr limit and th he 32 bit cou unter generally used for SNMP versiion 1 would often loop back b to zero quickly. Mosst graphing p programs wiill not have an issue with th he 64 bit cou unter.

How to  Check RSSSI via SNM MP get  C:>snmpg get -v2c -c< .1.3.6.1.2 2.1.10.184.1 1.2.1.2.1.8.3.1 C:>SNMPv v2-SMI::tran nsmission.184.1.2.1.2.1.8.3.1 = I INTEGER: 58 8

)

Many M SNMP clients can not n handle a negative nu umber. The e RSSI is nu umber is

reporrted prior to the t Relative e number to avoid a errors . Therefore e to get the R RSSI you ne eed to subtract 123 frrom this num mber, which in this case will result in -65dBm R RSSI

How to  Check CIN NR via SN MP get  C:\>snmp pget -v2c -c c public 64.114.87.174 4 .1.3.6.1.2 2.1.10.184.1.2.1.2.1 .6.3.1 SNMPv2-S SMI::transmi ission.184.1.2.1.2.1.6 6.3.1 = INTE EGER: 36

)

To T get an acc curate CINR R, you need to t subtract 1 0 from this n number, to g get 26dB CIN NR

Now thatt we have se een all the th hings that SN NMP can retturn it's easyy to understa and why you u would wa ant to monito or your netw work with it. Although A you u could go and write you ur own scriptt to get OID's s and graph them for you u there have e been manyy great soluttions alreadyy created su uch as: MRTG G, Cacti, Intermapper an nd Solarwind ds. So there you have it.. A basic ove erview on SN NMP and ho ow to configu ure your devvice to use SNMP.

TR2056 - Monitoring the PM315 or TR-WMX X WiMAX CP PE series wiith SNMP 20/01/2011

Suggest Documents