Re: [RESOLUTION, Part 2] Re: culprits found! --enable-ipv6, --enable-mini-agent & --with-mib-modules='host'; re: bug [995021] "OS X agent dies in nlist"

2004-08-20 Thread OpenMacNews
AND, the inclusion of "mibII/tcpTable mibII/udpTable", per a successful configure ... - Net-SNMP configuration summary: - Net-SNMP Version:

[RESOLUTION, Part 1] Re: culprits found! --enable-ipv6, --enable-mini-agent & --with-mib-modules='host'; re: bug [995021] "OS X agent dies in nlist"

2004-08-20 Thread OpenMacNews
Once thing I'd be wary of is having the version of net-snmp that ships with Mac OS X (5.0.8, I believe), installed at the same time as your own version of 5.1.2. If the 5.1.2 version is loading the 5.0.8 share libraries, that would be bad. since it's Friday, and my Margarita is calling ... I decide

Re: AgentX broken

2004-08-20 Thread Coders
On Fri, 20 Aug 2004 19:35:09 -0700 Steve wrote: SF> Don't I see a memory leak here? =:-O I did mention it was a temporary fix, didn't I? Lame excuse, but it's the best one I've got. At least I didn't check it in! For the memory conscious: SF> > +char *type_list; SF>char *ty

Re: AgentX broken

2004-08-20 Thread Coders
On Thu, 19 Aug 2004 23:52:18 +0200 Magnus wrote: MF> I have no registrations for MF> type:agentx:snmpd,file:/tmp/snmp-test-1-22664/snmpd.conf MF> MF> which I read as to mean that there are no handlers for "agentx:snmpd" so it MF> seems as if the use of multiple config reader classes is somewhat br

Re: I hate pointers. I really do.

2004-08-20 Thread Coders
On Fri, 20 Aug 2004 15:38:50 -0600 Bruce wrote: BS> *bursts into tears* There, there Bruce. You are doing very well. No need to cry. BS> void BS> sol_get_swapinfo(int *totalP, int *userP) BS> { BS> ... BS> *totalP = ainfo.ani_max; BS> *usedP = ainfo.ani_resv; BS> } BS> * BS

Re: Debian: snmpd cannot handle 64 bit interface counters

2004-08-20 Thread Richard Mortimer
I did a bit of investigation on the issue and came up with the following patch. It uses the C99 macro SCNuMAX to get the appropriate scan specifier for uintmax_t. How does that look? Patch tested on debian sparc and debian i386 with kernel 2.4.2[56] --- net-snmp-5.1.1.orig/agent/mibgroup/mibII/in

Re: culprits found! --enable-ipv6, --enable-mini-agent & --with-mib-modules='host'; re: bug [995021] "OS X agent dies in nlist"

2004-08-20 Thread Coders
On Fri, 20 Aug 2004 15:55:30 -0700 OpenMacNews wrote: O> currently: OSX 10.3.5 + XCode 1.5 update is installed, with further updates O> as well ... I'm not sure what version of XCode I have.. I'll try updating to 10.3.5... These are the tools that I have different versions of: O> % glibtool --ve

Re: culprits found! --enable-ipv6, --enable-mini-agent & --with-mib-modules='host'; re: bug [995021] "OS X agent dies in nlist"

2004-08-20 Thread Coders
On Thu, 22 Jul 2004 16:41:21 -0700 OpenMacNews wrote: O> in reference to bug [995021] "OS X agent dies in nlist", wherein the crash O> referenced is: O> O> i've found the following (undoubtedly, not exhaustive): O> O> (1) "--enable-mini-agent" is required for the binary to successfully launch, O>

I hate pointers. I really do.

2004-08-20 Thread Bruce Shaw
/* compile with cc sysinfo.c -lkstat */ #include #include #include #include I'm working on updating some of HOST-RESOURCES-MIB, UCD-SNMP-MIB and a few other places so that it follows Sun standards. Sun recommends using kstat to retrieve kernel information instead of doing it the hard way. THA

RE: IPv6 transport vs IPv4 access control

2004-08-20 Thread Fong Tsui
Sorry forget the patch. Here it is. -Original Message- From: Fong Tsui Sent: Friday, August 20, 2004 1:50 PM To: '[EMAIL PROTECTED]' Subject: IPv6 transport vs IPv4 access control Hi, greetings, Currently if snmpd agent is launched on IPv6 transport, both IPv6 and IPv4 addresses can a

IPv6 transport vs IPv4 access control

2004-08-20 Thread Fong Tsui
Hi, greetings, Currently if snmpd agent is launched on IPv6 transport, both IPv6 and IPv4 addresses can access it. However, access control in snmpd.conf distinguishes between IPv6 (eg. rwcommunity6) and IPv4(eg. rwcommunity). If snmpd is launched IPv6, for IPv4 access, access control needs to b

Re: Hosts.allow/hosts.deny relates to snmpd

2004-08-20 Thread Coders
On Tue, 17 Aug 2004 12:25:03 +0100 Dave wrote: DS> Looking at the code, the main problem seems to be that the DS> libwrap rules are basically intended for IP-based transports DS> only, but are actually being applied regardless. DS> DS> I've just applied a patch to the main development code which s

Re: snmpd crash on adding row to table

2004-08-20 Thread Coders
On Fri, 23 Jul 2004 10:53:19 +0800 Anupama wrote: AQ> The second problem was the fact that snmpd would not start at some times AQ> - saw the log it gives udp 161 error - but when I do a ps I dont see any AQ> snmpd running - and I dont think I have any other process which uses AQ> that port numbe

Re: How to extend my trap

2004-08-20 Thread 李 曙歌
Thanks Dave   ft my English ,my last question is If i want agent sent my own trap,what should i do first,second ...   this afternoon i do sometest , i found that   first,If u want to sent v1 trap,u just need to set trap=6 and type=any num you want,the work to recongnize the trap is t

Re: return value of snmpset

2004-08-20 Thread Sanjib Nath
Thanks for your information Dave. With regards, Sanjib. Dave Shield wrote: I am looking into snmpd.conf file. By any chance, is it possible thru "pass MIBOID EXEC"? No. The response to a SET request will have the same varbind list as the SET request itself.This cannot be changed. That's the w

Re: return value of snmpset

2004-08-20 Thread Dave Shield
> I am looking into snmpd.conf file. By any chance, is it possible thru > "pass MIBOID EXEC"? No. The response to a SET request will have the same varbind list as the SET request itself.This cannot be changed. That's the way SNMP works. Full Stop. Dave

Re: return value of snmpset

2004-08-20 Thread Sanjib Nath
Hi Dave, Thanks a lot for your response. I am looking into snmpd.conf file. By any chance, is it possible thru "pass MIBOID EXEC"? With regards, Sanjib. Dave Shield wrote: [ Quoted, due to problems sending the original message to the mailing list.] Is there any way to change the

Re: return value of snmpset

2004-08-20 Thread Dave Shield
[ Quoted, due to problems sending the original message to the mailing list.] > > Is there any way to change the return value of snmpset request? > > > > For a particular object I need to return YES if set success, otherwise > > NO. e.g. (if snmpset succeed) > > > > $ snmpset -v

Re: How to extend my trap

2004-08-20 Thread Dave Shield
> I have read the example.c and example.h an know how to sent trap, > but that means you need to get or set some OID first, then trap send. Nope. You are mixing up two issues here. Firstly there is the question of *how* to send a trap - what code uou need to write. The purpose of 'example.c' is

Re: snmptrapd ain't working

2004-08-20 Thread Dave Shield
> Sadly something went wrong in that process but on the other hand there > were a few minor changes I had to do as well so here is a new patch > that is to be applied on top of the tree as of today. OK - Done. Dave --- SF.Net email is sponso

Re: snmptrapd ain't working

2004-08-20 Thread Magnus Fromreide
On Thu, Aug 19, 2004 at 10:24:09AM +0100, Dave Shield wrote: > > Thanks for that. > The patch has been applied to the CVS code tree. > Thanks for applying the patch. Sadly something went wrong in that process but on the other hand there were a few minor changes I had to do as well so here is a n

How to extend my trap

2004-08-20 Thread 李 曙歌
hello developer    I am a student in ShanDong University in China.I have read many code and net-snmp   and i am very happy I can extend my own MIB to the agent,but now i have some question   about trap.   I have read the example.c and example.h an know how to sent trap ,but that means you

Re: AgentX broken

2004-08-20 Thread Magnus Fromreide
On Thu, Aug 19, 2004 at 10:18:42AM +0100, Dave Shield wrote: > > Oops! > OK - this has now been added to the standard agent_includes.h file, > so should be picked up by all agent-related code files. > > I've also tweaked the Makefile to handle all the agent_module header files > appropriately, so