Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread cnelson
> ... > > But there's an easy way to tell - comment out this particular test, > > and recompile. Does that fix the problem? > > I modified the test to match my poor Boolean transformation. > Obviously, that wasn't right. I'll try now to just remove it. I changed the complex, hyper-negated tes

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread cnelson
> > I think I found the problem. Around line 998 of snmplib/snmp_api.c, > > there is a recent addition of: > > > >#if !defined(DISABLE_SNMPV1) || !defined(DISABLE_SNMPV2C) > > > > which DeMorgan tells us is really: > > > >#if defined(DISABLE_SNMPV1) && defined(DISABLE_SNMPV2C) > > > E

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread Users
On Wed, 27 Oct 2004 08:43:10 -0400 [EMAIL PROTECTED] wrote: CRC>#if !defined(DISABLE_SNMPV1) || !defined(DISABLE_SNMPV2C) CRC> CRC> which DeMorgan tells us is really: CRC> CRC>#if defined(DISABLE_SNMPV1) && defined(DISABLE_SNMPV2C) CRC> CRC> and if I read the code around it properly, thi

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread Dave Shield
> I think I found the problem. Around line 998 of snmplib/snmp_api.c, > there is a recent addition of: > >#if !defined(DISABLE_SNMPV1) || !defined(DISABLE_SNMPV2C) > > which DeMorgan tells us is really: > >#if defined(DISABLE_SNMPV1) && defined(DISABLE_SNMPV2C) Err no. Surely DeM

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread cnelson
> ... > So, snmp_open() appears to not be copying the community string. > How come? I'll look into it a bit shortly. I think I found the problem. Around line 998 of snmplib/snmp_api.c, there is a recent addition of: #if !defined(DISABLE_SNMPV1) || !defined(DISABLE_SNMPV2C) which DeMorgan

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread cnelson
> ... > More particularly, the dump begins: > > 30 5B // request sequence > 02 01 01// version = SNMPv2c > 04 00 // community = "" > A0 54 // GET PDU > > > So the request is being sent with an empty community string > (hence it's not suprising that the agent is

Re: Possible problem with authorization in 5.2.rc1

2004-10-27 Thread Dave Shield
RS> ... [turn on packet dump and] you should be able to RS> see if a packet goes out, if the agent receives it, RS> if the agent sends a response and if the app receives it. CN> Sending 93 bytes to UDP: [127.0.0.1]:161 CN> : 30 5B 02 01 01 04 00 A0 54 02 04 77 0B 12 D2 02 RS> Note th

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread Users
On Tue, 26 Oct 2004 12:07:10 -0400 [EMAIL PROTECTED] wrote: CRC> > ... you should be able to CRC> > see if a packet goes out, if the agent receives it, if the agent sends a CRC> > response and if the app receives it. CRC> CRC> Thanks. CRC> My client logs: CRC> CRC> CRC> Sending 93 bytes to UDP

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread cnelson
Well, I've come full circle. I think I've confirmed that I have an authorization problem. - snmpget on the local host times out just as my client application does - When the client times out, there's a note in the log that it tried (and failed, but that's another issue) to send an authorizatio

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread cnelson
> ... you should be able to > see if a packet goes out, if the agent receives it, if the agent sends a > response and if the app receives it. Thanks. My client logs: Sending 93 bytes to UDP: [127.0.0.1]:161 : 30 5B 02 01 01 04 00 A0 54 02 04 77 0B 12 D2 020[..T..w 0016: 01 0

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread Users
On Tue, 26 Oct 2004 10:40:38 -0400 [EMAIL PROTECTED] wrote: CRC> Since snmp_synch_response() is giving me a timeout, I'm guessing that it's CRC> something about my connection setup that's broken: that I'm not finding CRC> the agent or the timeout is too short for the agent to respond or... Does CR

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread cnelson
Of course, when I said, "snmpget()", I meant, "snmp_synch_response()". - Original Message - From: [EMAIL PROTECTED] Date: Tuesday, October 26, 2004 9:44 am Subject: Re: Possible problem with authorization in 5.2.rc1 > > On Tue, 26 Oct 2004 08:15:44 -0400 [EMAIL

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread cnelson
> Of course, when I said, "snmpget()", I meant, "snmp_synch_response()". Since snmp_synch_response() is giving me a timeout, I'm guessing that it's something about my connection setup that's broken: that I'm not finding the agent or the timeout is too short for the agent to respond or... Does t

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread cnelson
> On Tue, 26 Oct 2004 08:15:44 -0400 [EMAIL PROTECTED] wrote: > CRC> The "local" system is an embedded system with few resources. > > Does it have dns services? eg, can it look up localhost to get > 127.0.0.1? Try > putting the actual IP address in the com2sec line, instead of > localhost. I re

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread Users
On Tue, 26 Oct 2004 08:15:44 -0400 [EMAIL PROTECTED] wrote: CRC> The "local" system is an embedded system with few resources. Does it have dns services? eg, can it look up localhost to get 127.0.0.1? Try putting the actual IP address in the com2sec line, instead of localhost. -- Robert Story; N

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread cnelson
> > I can use snmpget on another system to read, for example, > > system.sysDescr.0 but on-node, when I try to use the config > > community to get values, snmp_get() times out. > > What if you try with "snmpget" on that same node (not from a remote > system)?If you run essentially the same comma

Re: Possible problem with authorization in 5.2.rc1

2004-10-26 Thread Dave Shield
> I can use snmpget on another system to read, for example, > system.sysDescr.0 but on-node, when I try to use the config > community to get values, snmp_get() times out. What if you try with "snmpget" on that same node (not from a remote system)? If you run essentially the same command locally:

Re: Possible problem with authorization in 5.2.rc1

2004-10-25 Thread Users
On Mon, 25 Oct 2004 12:20:22 -0400 [EMAIL PROTECTED] wrote: CRC> I'm trying to see if Bug 1016849 CRC> (https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1016849&gro CRC> up_id=12694) is still in 5.2. I recently found a similar problem in the data_table code, but a quick peek at the i

Re: Possible problem with authorization in 5.2.rc1

2004-10-25 Thread cnelson
> On Mon, 25 Oct 2004 12:20:22 -0400 [EMAIL PROTECTED] wrote: > ... > CRC> I've installed 45.2.rc1 > > Oooo, ooo, I want a ride in your time machine! I can't wait to see > what release 45 looks like!! :-P Darn! That was supposed to be a company secret. > CRC> ss = snmp_open(&session);

Possible problem with authorization in 5.2.rc1

2004-10-25 Thread cnelson
I'm trying to see if Bug 1016849 (https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1016849&group_id=12694) is still in 5.2. I've installed 45.2.rc1 and I'm having unrelated problems which are preventing me from validating the bug. My /usr/share/snmp/snmpd.conf (which works with 5.1