Mini SNMP Daemon

Utilities and tools for networking, routers, setup etc
Post Reply
pcourtney
Novice
Novice
Posts: 26
Joined: Mon Jan 18, 2010 4:41 pm

Mini SNMP Daemon

Post by pcourtney » Mon Jan 18, 2010 7:50 pm

there have been good reports of this "mini snmp daemon" working on AR7 based routers over at dd-wrt

they have fixed the memory leak problem and it is written using C or C++, so very small and maybe worth a second look

it would be great if SNMP worked with your firmware, then we could monitor hundreds of routers using Cacti, which is a front end to the RRDTool http://www.cacti.net/what_is_cacti.php
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: Mini SNMP Daemon

Post by mstombs » Mon Jan 18, 2010 9:07 pm

dd-wrt doesn't run on AR7 routers, but it does run on mipsel devices with a linux 2.4 kernel so 'should' be compilable with the appropriate toolchains.

Do you have any specific references?

Is this the same program being discussed in OpenWRT?

https://forum.openwrt.org/viewtopic.php?pid=91234

which has small source here:-

http://members.aon.at/linuxfreak/linux/
pcourtney
Novice
Novice
Posts: 26
Joined: Mon Jan 18, 2010 4:41 pm

Re: Mini SNMP Daemon

Post by pcourtney » Mon Jan 18, 2010 11:20 pm

> Is this the same program being discussed in OpenWRT?

yes - that's the one

I probably meant OpenWRT not dd-wrt - sorry !
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: Mini SNMP Daemon

Post by thechief » Mon Jan 18, 2010 11:47 pm

The code is straightforward to compile. The question is whether it will work.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
pcourtney
Novice
Novice
Posts: 26
Joined: Mon Jan 18, 2010 4:41 pm

Re: Mini SNMP Daemon

Post by pcourtney » Tue Jan 19, 2010 12:34 am

I hope so Chief, it would put to bed the queries about snmp not working I guess !
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: Mini SNMP Daemon

Post by thechief » Tue Jan 19, 2010 11:25 am

Well, it is certainly using far less memory than the original (less than half), and it hasn't crashed the router (yet). But whether it is doing anything else is anyone's guess, since I have no idea as to how to test its functionality.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: Mini SNMP Daemon

Post by mstombs » Tue Jan 19, 2010 12:14 pm

Does it take same command args as the built-in?

There is snmpwalk for command line Linux.
pcourtney
Novice
Novice
Posts: 26
Joined: Mon Jan 18, 2010 4:41 pm

Re: Mini SNMP Daemon

Post by pcourtney » Tue Jan 19, 2010 12:28 pm

this may throw some light on obtaining ADSL line stats from an snmp enabled router

http://www.geekball.net/linksys/LinksysSNMP.html

and this I read through as well

http://sites.google.com/site/ske1fr/usi ... outerstats
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: Mini SNMP Daemon

Post by thechief » Tue Jan 19, 2010 1:57 pm

Well, it seems to work - somewhat. From what I can see (assuming my understanding is correct) its functionality is very restricted. It most certainly cannot provide the kind of detailed information that the websites you mention are talking about.

See the attached. As you will see, the snmpd from RT v2.92 seems to provide far more than mini_snmp. But I may of course be missing something. Perhaps the data from the original snmp is useless - or, at least, we know that leaving it on will eventually crash the router. But is mini_snmp not just as useless?

Conclusion? I am not sure that there any point in changing the snmp binary to mini_snmp - but I am open to suggestions on the issue.
Attachments
snmp-probe.jpg
screenshot from snmp-probe
snmp-mibbrowse.jpg
screenshot from mibbrowse
snmp-test_293-beta_log.txt
Log of mini_snmp (by snmp-test)
(1.06 KiB) Downloaded 434 times
snmp-test_292_log.txt
Comparison - log of snmp from RT v2.92 (by snmp-test)
(11.03 KiB) Downloaded 419 times
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: Mini SNMP Daemon

Post by thechief » Tue Jan 19, 2010 4:15 pm

mstombs wrote:Does it take same command args as the built-in?
The built-in command takes no arguments, it appears. With this one, you have to supply all sorts of arguments (e.g., the interfaces, and other parameters that the built-in version seems to take from the mtd3 config (or some other communication with the core logic?)). So this is far from a drop-in replacement.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
pcourtney
Novice
Novice
Posts: 26
Joined: Mon Jan 18, 2010 4:41 pm

Re: Mini SNMP Daemon

Post by pcourtney » Tue Jan 19, 2010 7:15 pm

I have asked one of my techies to host a Cacti MIB Browser

http://www.unleashnetworks.com/resource ... owser.html

ideally we need to find out if anyone has a TI AR7 MIB we can use, then the following info becomes available when you poll the router :

the Aztech DSL60xx AR7 based routers also use the TI Standard Based Management SNMP v1,v2, v2c Agent with MIB II groups http://focus.ti.com/pdfs/bcg/ar7_nsp_prod_brief.pdf

Down sync
Up sync
SNRM
Attenuation
HEC/CRC
FEC (RS errors)
LoF, LoS, LoP

as does the Safecom SWAMR-54108 and Netgear DG834G v2 and v3 (AR7 chipset) I'm told they can provide a bit more info :

Up Sync
SNRM
Attenuation
HEC/CRC
FEC (RS errors)
LoF, LoS, LoP
ES/SES
UAS
SF Errors

all this can be neatly displayed on a remote web server a bit like this
http://www.furiousfrog.com/ADSLStats/adsl.html

the ADSL Line MIB (RFC 2662) is here
http://tools.ietf.org/html/rfc2662

and the ADSL Line Extension MIB (RFC 3440
http://www.rfc-archive.org/getrfc.php?rfc=3440
Last edited by pcourtney on Tue Jan 19, 2010 8:43 pm, edited 1 time in total.
pcourtney
Novice
Novice
Posts: 26
Joined: Mon Jan 18, 2010 4:41 pm

Re: Mini SNMP Daemon

Post by pcourtney » Tue Jan 19, 2010 7:37 pm

the Netgears have an undocumented snmp screen at http://192.168.0.1/snmp.htm

Chief, what routers do you have up and running at the moment, do you know if any of them have MIB's written for them ??
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: Mini SNMP Daemon

Post by thechief » Tue Jan 19, 2010 11:46 pm

pcourtney wrote:Chief, what routers do you have up and running at the moment, do you know if any of them have MIB's written for them ??
I have all sorts of routers - but they are all running the same snmpd (RT firmware). I am not aware of any MIBs other than what is internal to the snmpd binary.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
pcourtney
Novice
Novice
Posts: 26
Joined: Mon Jan 18, 2010 4:41 pm

Re: Mini SNMP Daemon

Post by pcourtney » Thu Jan 21, 2010 2:28 pm

does this help
http://www.emnico.com/mib/mibsearch.php ... NE-EXT-MIB

also at the very bottom of this page is some interesting info
http://shadow.sentry.org/~trev/dsl50x.html

# SNMP RFC1213 MIB information for the DSL-500 and DSL-504.
# D-Link's proprietary SNMP MIB information for the DSL-500 and DSL-504

this page is useful as an overview of how d-link go about snmp
http://enc.com.au/docs/dsl300snmp.html
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: Mini SNMP Daemon

Post by thechief » Thu Jan 21, 2010 2:53 pm

Sorry, but all this is goobledegook to me. FWIW, I am not convinced that mini_snmp is up to it.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
Post Reply