tools for validating mib implementation

2010-06-11 Thread Joao Ferreira gmail
Hello all, how do I validate a given mib module implementation ? I have a mib with objects and notifications. I've implemented it. Now... I need to be sure I have no miss-alignments between MIB and agent... errors... bad practices... warnings... thank you Joao --

Re: tools for validating mib implementation

2010-06-11 Thread Wes Hardaker
> On Fri, 11 Jun 2010 09:03:41 +0100, Joao Ferreira gmail > said: JF> how do I validate a given mib module implementation ? The best thing to do is test it. You can look in the "testing" directory for some examples of tests we've used in order to test the tools at a large scale. How y

Re: hooking to handlers chain defined inside net-snmp mibgroups

2010-06-11 Thread Wes Hardaker
> On Thu, 10 Jun 2010 16:24:11 +0300 (IDT), "Asaf Ohaion" > said: AO> I need to inject my custom handler to inetCidrRouteTable, but its AO> mib_handler is not global, how can I do it ? You can actually do it with the 'injectHandler' configuration token. See the snmpd.conf manual page fo

Re: How to register v5.4.1 agent on IPv6 addresses?

2010-06-11 Thread Wes Hardaker
> On Thu, 10 Jun 2010 17:38:25 -0400, "Ron Rader" > said: RR> C:\Temp>ping6 fe80::209:edff:fe00:16c9%5 RR> Pinging fe80::209:edff:fe00:16c9 RR> from fe80::214:22ff:fe33:8177%5 with 32 bytes of data: RR> Reply from fe80::209:edff:fe00:16c9%5: bytes=32 time=1ms RR> Reply from fe80::209:e

Re: need a help

2010-06-11 Thread Wes Hardaker
> On Thu, 10 Jun 2010 16:35:19 +0530, gunsnroses said: g> (1) I need to modfy linkUpDownNotifications backend. I am working on switch g> port interfaces, and to get to know the true state of an interface I need to g> run a binary for each interface. So, I have to get to know the exact part of

Re: Reg : snmpset problem in my model mib

2010-06-11 Thread Wes Hardaker
> On Thu, 10 Jun 2010 12:42:09 +0530, Thazhai Arasan > said: TA> I have created my own mib with READ-WRITE access. After that i create the TA> template code & compiled it. Then i put it into my board. But only snmpget TA> is working, snmpset is not working. I cant set the values through

RE: How to register v5.4.1 agent on IPv6 addresses?

2010-06-11 Thread Ron Rader
Hi Wes, thanks for the response. > From: Wes Hardaker [mailto:harda...@users.sourceforge.net] > Can you try something like 'udp6:[fe80::209:edff:fe00:16c9]:161' and see > if that works? I put the following line in my snmpd.conf: agentaddress udp6:[fe80::209:edff:fe00:16c9]:161 and received

RE: How to register v5.4.1 agent on IPv6 addresses?

2010-06-11 Thread Ron Rader
Me: > agentaddress udp:161 udp6:161 > > I think the snmpd.conf man page may be off, since it seems to include > a comment delimiter in the agentaddress description. "commA" delimiter! The information contained in this message may be privileged and confidential and protected from disclosu

RE: How to register v5.4.1 agent on IPv6 addresses?

2010-06-11 Thread Ron Rader
Me: > UPDATE: oh man, I just tried the following line and the agent seemed > to take it (snmpd appears to be running, no errors at restart), but I > have not yet tried any SNMP traffic on IPv6: > > agentaddress udp:161 udp6:161 OK, when the agent is running on that agentaddress line, it gen

Re: need a help

2010-06-11 Thread Dave Shield
> g> (3) Also, I have to monitor if any of the usage in these partitions crosses > g> 96%. Can I do another monitor with dskPath in sanmpd.conf withe the above > g> where it is tracking for 90%? How? > > No, unfortunately it's a single warning level. It's a single warning level per "disk" directiv

RE: How to register v5.4.1 agent on IPv6 addresses?

2010-06-11 Thread Ron Rader
Switching gears for a minute, is there any way to use IPv6 addresses for trap recipients? I've tried the following but both forms result in snmpd errors: trapsess -v 3 -u user -l authNoPriv -a MD5 -A userpw fe80::214:22ff:fe33:8177 trapsess -v 3 -u user -l authNoPriv -a MD5 -A userpw udp6:[fe8

Re: thread safe question

2010-06-11 Thread Kathy McLeod
Hi - I thought the exceptions do not apply to my plugins, but then I remembered the case where the cache load/unload code can be running when a handler is called, and vice-versa. I have posted the problems this caused for me earlier. Is this something you plan to fix in the main agent (the is a

RE: How to register v5.4.1 agent on IPv6 addresses?

2010-06-11 Thread Ron Rader
Perhaps I'm going about this all wrong. It is possible that our kernel supports IPv6, but that we don't include dependencies that net-snmp relies upon to configure IPv6. So, when a net-snmp module encounters "udp6" in configuration, what does it do with the token? Process internally, hand of

snmpd loops (mremap)

2010-06-11 Thread hongtao zhang
I'm running Debian etch on an x86_64 box, I get the following problem with net-snmp 5.2.3-7etch4, mremap(0x2b26c4b0, 1353191424, 1353199616, MREMAP_MAYMOVE) = 0x2b26c4b0 mremap(0x2b26c4b0, 1353199616, 1353207808, MREMAP_MAYMOVE) = 0x2b26c4b0 mremap(0x2b26c4b0, 1353207808, 13532