Snmp

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
cyzoonic

Snmp

Post by cyzoonic »

Hi,

I’m trying to add my snmp device (Linksys WAP11) to cacti but I’m having problems. One problem is that snmpwalk does not work on my device for some reason. Since cacti can’t determine the correct interfaces I’m trying to manually enter the information into the DB. I’m how ever not sure what each part of the table is supposed to be and how the information is supposed to be stored.

Here is what I can figure out:

ID: MySQL ID no input required
Description: Description of device eg. WAP11
Type: ???
Speed: in mbit but not sure what it is used for
InterfaceNumber: part of the oid?
HostID: corresponding host ID in MySQL table
HardwareAddress: MAC address but in what format? 00:00:00… or 00-00-??? What is it used for?
AdminStatus:??
IPAddress: IP address of snmp device.

I need to pass the following to the device to get the stats for the Ethernet port or the wireless port:

One is Ethernet and the other is wireless:

snmpget -Oq 192.168.1.1 public enterprises.410.1.1.7.1.0

snmpget -Oq 192.168.1.1 public enterprises.410.1.1.7.2.0

I have a custom MIB file loaded for the WAP11.

Any suggestions on what I can do?

Thanks

-Stefan
stefan@techdroid.com
Guest

Post by Guest »

cyzoonic

Post by cyzoonic »

The iformation on the page doesn't help much. I need to know how cacti passes the commands.

-Stefan
ericr
Posts: 18
Joined: Wed May 15, 2002 4:30 pm

Re: Snmp

Post by ericr »

cyzoonic wrote:Hi,

I’m trying to add my snmp device (Linksys WAP11) to cacti but I’m having problems. One problem is that snmpwalk does not work on my device for some reason. Since cacti can’t determine the correct interfaces I’m trying to manually enter the information into the DB. I’m how ever not sure what each part of the table is supposed to be and how the information is supposed to be stored.
*replies to old post he found searching the forum*

This is actually due to the fact that the LinkSys WAP11's SNMP implementation is non-standard and silly. (I'm fairly certain this also applies to any other wireless AP based on the Atmel chipset, like the D-Link DWL-900AP, SMC2655W, or the Netgear ME102). All of the ethernet/wireless statistics are returned from a single OID in the form of a string of hex values that must be converted to integers.

I found the following Perl script online when searching for information on this topic. (It actually uses the snmpget utility).

http://www.azeotrope.org/mrtg/getwapstats.pl

Call it with a command-line as follows to get ifInOctects and ifOutOctets (in that order):

`/path/to/getwapstats.pl wap-ip-addr 0`

Be sure to edit it and modify the community name appropriately. You'll also have to modify the command-line parameters for 'snmpget' in the script if you're using Net-Snmp 5.0.

. . it sure would have been nice if Atmel would have included this information in the MIB file they provide.

Good luck.
Eric Reeves
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests