blogs.wti.com

blogs.wti.com

WTI – Western Telematic Inc.

blogs.wti.com RSS Feed
 
 
 
 

SNMPing with the MPC

One of the more common questions is how to get the status of our Remote Rebooters and Console Boxes. Your questions are about to be answered.

First you will need a few things, to make things easier I am using Linux (Yea, I know that sounds like an oxymoron), you will need the Net-SNMP programs for Linux, the MIB files pertaining to the WTI products and last but not least access to a WTI MPC unit (you can use our public one, its SNMP v3, that’s how confident we are on how secure it is, the SNMP is set for read only so you can read parameters not set them, I said we are confident not crazy).

For Our test I am using

1. Ubuntu version 8.04: (http://www.ubuntu.com/GetUbuntu/download)

2. Net-SNMP programs here: http://www.net-snmp.org/download.html

3. WTI MIB Files here : ftp://wtiftp.wti.com/pub/TechSupport/Firmware/MPC1/v1.51/WTI-MPC-MIB.txt

4. WTI MPC you can access is here: mpc.wti.com

 

After you have installed the Net-SNMP programs you need to copy the WTI MIB files to the mibs directory on your Linux computer (usually here /usr/share/snmp/mibs), or

find ./ -name mibs

should find it for you if you have trouble locating it.

after all this, its a piece of cake, from the Linux command prompt try entering these commands to see if the MPC is answering:

snmpget -v3 -a md5 -l AuthnoPriv -u super321 -A super321 -c public mpc.wti.com WTI-MPC-MIB::environmentTables.environmentUnitTable.environmentUnitEntry.environmentUnitTemperature.1

 

This should give back something like the following output

WTI-MPC-MIB::environmentUnitTemperature.1 = INTEGER: 71

Telling you the MPC ambient temperature is 71 degree Fahrenheit.

If you get this output:

WTI-MPC-MIB::userName.1 = No Such Object available on this agent at this OID

This means snmpget could not find the WTI specific MIBS, the WTI MIB file is in the wrong location.

 

If you want to grab a bunch of information from the MPC we can walk the SNMP tables, to do this issue this command:

snmpwalk -v 3 -a md5 -l AuthnoPriv -u super321 -A super321 -c snmpmyoffice mpc.wti.com WTI-MPC-MIB::environmentTables.environmentUnitTable.environmentUnitEntry

 

OUTPUT for this will be something similar to this:

WTI-MPC-MIB::environmentUnitName.1 = STRING: LOCAL
WTI-MPC-MIB::environmentUnitName.2 = STRING: AUX1
WTI-MPC-MIB::environmentUnitName.3 = STRING: AUX2
WTI-MPC-MIB::environmentUnitName.4 = STRING: AUX3
WTI-MPC-MIB::environmentUnitTemperature.1 = INTEGER: 69
WTI-MPC-MIB::environmentUnitTemperature.2 = INTEGER: 0
WTI-MPC-MIB::environmentUnitTemperature.3 = INTEGER: 0
WTI-MPC-MIB::environmentUnitTemperature.4 = INTEGER: 0
WTI-MPC-MIB::environmentUnitCurrentA.1 = INTEGER: 16
WTI-MPC-MIB::environmentUnitCurrentA.2 = INTEGER: 0
WTI-MPC-MIB::environmentUnitCurrentA.3 = INTEGER: 0
WTI-MPC-MIB::environmentUnitCurrentA.4 = INTEGER: 0
WTI-MPC-MIB::environmentUnitVoltageA.1 = INTEGER: 121
WTI-MPC-MIB::environmentUnitVoltageA.2 = INTEGER: 0
WTI-MPC-MIB::environmentUnitVoltageA.3 = INTEGER: 0
WTI-MPC-MIB::environmentUnitVoltageA.4 = INTEGER: 0
WTI-MPC-MIB::environmentUnitPowerA.1 = INTEGER: 193
WTI-MPC-MIB::environmentUnitPowerA.2 = INTEGER: 0
WTI-MPC-MIB::environmentUnitPowerA.3 = INTEGER: 0
WTI-MPC-MIB::environmentUnitPowerA.4 = INTEGER: 0
WTI-MPC-MIB::environmentUnitCurrentB.1 = INTEGER: 0
WTI-MPC-MIB::environmentUnitCurrentB.2 = INTEGER: 0
WTI-MPC-MIB::environmentUnitCurrentB.3 = INTEGER: 0
WTI-MPC-MIB::environmentUnitCurrentB.4 = INTEGER: 0
WTI-MPC-MIB::environmentUnitVoltageB.1 = INTEGER: 0
WTI-MPC-MIB::environmentUnitVoltageB.2 = INTEGER: 0
WTI-MPC-MIB::environmentUnitVoltageB.3 = INTEGER: 0
WTI-MPC-MIB::environmentUnitVoltageB.4 = INTEGER: 0
WTI-MPC-MIB::environmentUnitPowerB.1 = INTEGER: 0
WTI-MPC-MIB::environmentUnitPowerB.2 = INTEGER: 0
WTI-MPC-MIB::environmentUnitPowerB.3 = INTEGER: 0
WTI-MPC-MIB::environmentUnitPowerB.4 = INTEGER: 0

 

This will basically walk the environment tree for the MPC, giving back voltage, current, power and temperature.

That was easy, if you want to look at all the parameters available to you please open up the WTI-MPC-MIB.txt, it will list all the latest and greatest commands that you can issue.

 

Later.

Post to Twitter

Leave a Reply

Twitter links powered by Tweet This v1.8.3, a WordPress plugin for Twitter.