Regarding netsnmp authpriv settings from c program

2011-08-03 Thread Ravi Kumar Kodam
hi all, I did the following settings for authpriv user from program. (Iam sending the code also) when iam compiling and running the following code iam getting the error like snmpget: Unsupported security level. Please help me why this error is coming. Iam not getting how to debug it. if(

Re: Fixing autoconf, et all for BSDs

2011-08-03 Thread Garrett Cooper
On Wed, Jul 6, 2011 at 3:20 PM, Garrett Cooper wrote: > Hi, >    As part of the a work project, I've tasked myself to upgrade > net-snmp from an older version to a newer version. One of the things > that has occurred recently on FreeBSD is the netinet, et all headers > have been shuffled, which ha

Re: perl/TrapReceiver/const-*.inc in git

2011-08-03 Thread Wes Hardaker
> On Wed, 3 Aug 2011 21:07:19 +0200, Bart Van Assche > said: BVA> One of the virtual machines here runs CentOS 4. Is that old enough BVA> ? Certainly should be. Does it compile without those files already existing on that machine? -- Wes Hardaker Please mail all replies to net-snmp-co

Re: perl/TrapReceiver/const-*.inc in git

2011-08-03 Thread Bart Van Assche
On Wed, Aug 3, 2011 at 9:03 PM, Wes Hardaker wrote: > > On Wed, 03 Aug 2011 19:02:03 +0200, Thomas Anders < > [email protected]> said: > > TA> perl/TrapReceiver/const-c.inc > TA> and perl/TrapReceiver/const-xs.inc > >> > >> Those files *aren't* in the net-snmp git repsository. > >

Re: perl/TrapReceiver/const-*.inc in git

2011-08-03 Thread Wes Hardaker
> On Wed, 03 Aug 2011 19:02:03 +0200, Thomas Anders > said: TA> perl/TrapReceiver/const-c.inc TA> and perl/TrapReceiver/const-xs.inc >> >> Those files *aren't* in the net-snmp git repsository. TA> Maybe because Bart has already removed them? :-) Ah, I'm catching up on history. I t

Re: how can I display the oid as string value?

2011-08-03 Thread Wes Hardaker
> On Wed, 3 Aug 2011 19:16:48 +0100, Dave Shield > said: DS> On 3 August 2011 16:18, Wes Hardaker wrote: >> Specifically, the Net-SNMP code will only display a string in the OID if >> the MIB definition is properly set up to match the table's indexes and >> contains the same set of inde

Re: how can I display the oid as string value?

2011-08-03 Thread Dave Shield
On 3 August 2011 16:18, Wes Hardaker wrote: > Specifically, the Net-SNMP code will only display a string in the OID if > the MIB definition is properly set up to match the table's indexes and > contains the same set of indexes (and one of which is the string in question). Which it didn't/wasn't

Re: net-snmp makefile infrastructure "assumptions"

2011-08-03 Thread Garrett Cooper
On Wed, Aug 3, 2011 at 10:16 AM, Garrett Cooper wrote: > Hi, >    1. A number of the Makefiles use the ".SUFFIXES" GNU make > directive; this breaks make clean with all variants of make, sans GNU > make. Correction. It turns out that BSD make sets RM to rm, whereas GNU make sets it to rm -f, so t

net-snmp makefile infrastructure "assumptions"

2011-08-03 Thread Garrett Cooper
Hi, 1. A number of the Makefiles use the ".SUFFIXES" GNU make directive; this breaks make clean with all variants of make, sans GNU make. 2. ExtUtils::MakeMaker hardcodes ${MAKE} -> make (this isn't necessarily true, and definitely doesn't work when I build with gmake on FreeBSD). I'll

Re: perl/TrapReceiver/const-*.inc in git

2011-08-03 Thread Thomas Anders
Wes Hardaker wrote: > TA> perl/TrapReceiver/const-c.inc > TA> and perl/TrapReceiver/const-xs.inc > > Those files *aren't* in the net-snmp git repsository. Maybe because Bart has already removed them? :-) http://net-snmp.git.sourceforge.net/git/gitweb.cgi?p=net-snmp/net-snmp;a=commit;h=31a3a2a

Re: bogus perl/NetSNMP.xs breaks the build

2011-08-03 Thread Wes Hardaker
> On Sun, 31 Jul 2011 07:57:56 +0100, Dave Shield > said: DS> On 31 July 2011 00:02, Thomas Anders wrote: >> However, some systems (e.g. all AIX systems I've tried) dislike that trick >> and fail to build with a linker error like: >> >> ld: 0711-319 WARNING: Exported symbol not defined

Re: net-snmp 5.7 perl 'bulkwalk' method still broken?

2011-08-03 Thread Wes Hardaker
> On Wed, 27 Jul 2011 17:06:42 -0400, said: > I apologize for posting to this list if it is not the correct place to > post. I have submitted a bug report here Turns out the reason part 2 wasn't applied is because it doesn't work (IE, doesn't compile). -- Wes Hardaker Please mail all replie

Re: Net-SNMP, MSG_NOSIGNAL and MSG_DONTWAIT

2011-08-03 Thread Wes Hardaker
> On Sun, 31 Jul 2011 09:04:42 +0200, Bart Van Assche > said: BVA> - As far as I know setting MSG_NOSIGNAL only makes sense for stream BVA> (connected) sockets and not for UDP sockets, so it should be fine to remove BVA> all uses of MSG_NOSIGNAL in snmplib/transports/snmpUDPBaseDomain.c.

changing permissions on AGENT_DIRECTORY_MODE?

2011-08-03 Thread Robert Story
The current AGENT_DIRECTORY_MODE, which is used to create the persistent directory if it doesn't exist, is 0700. This was also used when creating the MIB and cert index directories, meaning that if snmpd is run as root, regular users can't get to the indexes. I'd like to make a few changes: 1) c

Re: net-snmp 5.7 perl 'bulkwalk' method still broken?

2011-08-03 Thread Wes Hardaker
> On Wed, 27 Jul 2011 17:06:42 -0400, said: > I apologize for posting to this list if it is not the correct place to > post. I have submitted a bug report here It looks like one part of the patch from the original patch is no longer in the code. If a 'make test' comes out ok, I'll commit it

Re: perl/TrapReceiver/const-*.inc in git

2011-08-03 Thread Wes Hardaker
> On Mon, 01 Aug 2011 13:27:01 +0200, Thomas Anders > said: TA> Building Net-SNMP with Perl enabled always modifies the following git TA> source files: TA> perl/TrapReceiver/const-c.inc TA> and perl/TrapReceiver/const-xs.inc Those files *aren't* in the net-snmp git repsository. In fa

Re: RFC 1089: SNMP over Ethernet

2011-08-03 Thread Wes Hardaker
> On Mon, 1 Aug 2011 14:13:09 -0600, Brad Huntting > said: BH> Does anyone know of an implementation of RFC 1089: SNMP over (raw) Ethernet? BH> I have a device with variables that need to be manipulated prior to setting BH> the IP address. It shouldn't be really really hard to add a ne

Re: How to test transport SSH with net-snmpV5.7?

2011-08-03 Thread Wes Hardaker
> On Tue, 2 Aug 2011 00:08:30 +0200, Claus Klein > said: CK> But the net-snmp documentation is really pure about the SSH transport CK> domain! Please post a patch to fix it! Right now, you're right it's limited to just this in snmpd.conf: SNMPv3 over SSH Support To use SSH

Re: net-snmp 64-bit build for net-snmp 5.7

2011-08-03 Thread Wes Hardaker
> On Tue, 2 Aug 2011 08:40:18 -0700, "Singh, Vinay" > said: SV> At appears that by default net-snmp is built for 32-bit. Has SV> anyone tried building it for 64-bit (equivalent to passing -maix64 to SV> gcc compiler)? Is there any option on 'configure' to force it a 64-bit SV> build? A

Re: net-snmp 64-bit build for net-snmp 5.7

2011-08-03 Thread Wes Hardaker
> On Tue, 2 Aug 2011 08:40:18 -0700, "Singh, Vinay" > said: SV> At appears that by default net-snmp is built for 32-bit. Has anyone SV> tried building it for 64-bit (equivalent to passing -maix64 to gcc SV> compiler)? Is there any option on 'configure' to force it a 64-bit SV> build? Th

Re: snmpd: ERR: Received broken packet. Closing session.

2011-08-03 Thread Wes Hardaker
> On Tue, 2 Aug 2011 23:25:26 +0530, Ravi Kumar said: RK> localhost: snmpd: ERR: Received broken packet. Closing session. RK> AgentX: read, connection (sock 18) closed: length is zero That comes from here: if (pdulen > MAX_PACKET_LENGTH) { /* * I

Re: how can I display the oid as string value?

2011-08-03 Thread Wes Hardaker
> On Wed, 3 Aug 2011 10:20:25 +0100, Dave Shield > said: >> but while doing snmpwalk I am not getting them as String >> snmpwalk -v2c -c public -Oa localhost:11161 1.3.6.1.4.1.11456 >> ABC-MIB::messageType.0.3.65.70.77.98374.98374.4 = STRING: "AFM" DS> What does the MIB definition look

Re: net-snmp 5.7 on AIX and HP-UX

2011-08-03 Thread Wes Hardaker
> On Wed, 3 Aug 2011 08:02:19 -0400, Robert Story > said: RS> On Tue, 2 Aug 2011 09:50:26 -0700 Vinay wrote: SV> Can you please be more specific on how to get this patch as I am not SV> familiar with GIT. Is therea hyperlink with list of patches for 5.7? I SV> have seen other patches on

Re: net-snmpV5.7 dyld: Symbol not found: _init_iquery

2011-08-03 Thread Wes Hardaker
> On Wed, 3 Aug 2011 11:02:17 -0400, Robert Story > said: RS> I'm not sure if this will be the final fix, but it should get you RS> going in the meantime... The right fix will be to determine which module is needing iquery that wasn't marked with netsnmp_feature_require(iquery). -- Wes

Re: net-snmpV5.7 dyld: Symbol not found: _init_iquery

2011-08-03 Thread Robert Story
On Wed, 27 Jul 2011 22:55:54 +0200 Claus wrote: CK> I get errors while starting the agent: CK> [...snip...] CK> dyld: lazy symbol binding failed: Symbol not found: _init_iquery CK>Referenced from: /Users/clausklein/Workspace/c/net-snmp-build/ CK> agent/.libs/libnetsnmpagent.30.dylib CK>Exp

Re: Issue with /usr/sfw/sbin/snmpd

2011-08-03 Thread Robert Story
On Thu, 28 Jul 2011 00:25:34 +0700 Vikas wrote: VJ> Dear Sir, VJ> I am getting below error, VJ> VJ> bash-3.00# /usr/sfw/sbin/snmpd -L VJ> dlopen failed: ld.so.1: snmpd: fatal: /usr/sfw/lib/libseaProxy.so: wrong ELF VJ> class: ELFCLASS32 VJ> dlopen failed: ld.so.1: snmpd: fatal: /usr/sfw/lib/libsea

Re: net-snmp 5.7 on AIX and HP-UX

2011-08-03 Thread Robert Story
On Tue, 2 Aug 2011 09:50:26 -0700 Vinay wrote: SV> Can you please be more specific on how to get this patch as I am not SV> familiar with GIT. Is therea hyperlink with list of patches for 5.7? I SV> have seen other patches on the download page, but not V5-7. I think he was suggesting that you use

Re: Agent Reporting usmStatsNotInTimeWindows

2011-08-03 Thread Robert Story
On Thu, 28 Jul 2011 15:30:03 -0400 Doug wrote: DM> WH> The SNMPv3 specifications say that a running manager should allow its DM> WH> notion of an agents clock values to go forward, but not backward.  Thus, DM> WH> we're doing what we're supposed to do: we won't accept *older* values DM> WH> than wh

Re: how can I display the oid as string value?

2011-08-03 Thread Dave Shield
On 3 August 2011 06:44, sujata patra wrote: > I like to display the OID as string. So instead of integer I have chosen some > char* > as the key > but while doing snmpwalk I am not getting them as String > snmpwalk -v2c -c public -Oa localhost:11161 1.3.6.1.4.1.11456 > ABC-MIB::messageType.0.3.6