Re: Study net-snmp source code

2010-11-08 Thread Dave Shield
On 8 November 2010 06:06, Queenie de Melo queenie...@gmail.com wrote: i too would like to understand the flow and study the source code of net-snmp. That's a bit vague. What exactly are you interested in? Client applications? The SNMP agent (in broad terms)? The processing of an individual

net-snmp-5.x.x.exe silent install problem

2010-11-08 Thread Angelo Höngens
A silent install on net-snmp on Windows (Win2008R2 in this case) works fine (using the /S switch), but there's a problem with the shortcuts. The shortcuts ('Net-SNMP help', 'README' and 'Uninstall') end up in the root of the 'programs' folder, instead of in the subfolder 'Net-SNMP'. I'm

Re: AES: Unknown Object Identifier (Sub-id not found: mib-2 - AES) error thrown while doing a snmpwalk with AES encryption

2010-11-08 Thread Dave Shield
On 8 November 2010 03:59, saurabh shukla coolsaurabh@gmail.com wrote: Please look into the matter and help me out. slocum: snmpwalk -v 3 -u myusr -a MD5 -A cisco1234 x AES -X cisco1234 You've missed the hyphen before the '-x AES' option. This is confusing the snmpwalk command. Dave

Re: Successfully imported certificates fail with error finding client identity keys

2010-11-08 Thread Bart Van Assche
On Sat, Nov 6, 2010 at 2:07 AM, James Martin james.mar...@securecommconsulting.com wrote: I am testing a DTLS snmp server using net-snmp version 5.6 on windows under cygwin as the client. I have several certificates that I have imported successfully using net-snmp-cert –t friendly name

Re: AES: Unknown Object Identifier (Sub-id not found: mib-2 - AES) error thrown while doing a snmpwalk with AES encryption

2010-11-08 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 8

SNMP Broadcast

2010-11-08 Thread Martin Townsend
Hi, I'm trying to use SNMP broadcast packets to perform device discovery. I'm using version 5.5 which has limited support for broadcast. Has anyone managed to get this working as my initial attempt doesn't see any replies when I know there should be at least 3 devices that should reply.

Segmentation fault calling usm_parse_create_usmUser() - malloc returns invalid address 0xFF00

2010-11-08 Thread Nik Colman
Effectively my code is calling usm_parse_create_usmUser() and a segmentation fault is reported. Stepping into the usm_parse_create_usmUser code in gdb, I find that the malloc call when processing the '-e' flag and engine id within in snmpv3.c is returning 0xFF00. This is clearly having a knock

Re: AES: Unknown Object Identifier (Sub-id not found: mib-2 - AES) error thrown while doing a snmpwalk with AES encryption

2010-11-08 Thread saurabh shukla
Thanks for the info Dave. I think net-snmp version 5.6 is the latest . My Solaris Machine is running SunOS 5.8 . can I install 5.6 on this machine. Thanks, Saurabh On Mon, Nov 8, 2010 at 7:59 PM, Dave Shield d.t.shi...@liverpool.ac.ukwrote: On 8 November 2010 14:21, saurabh shukla

what to specify in an AgentX IndexAllocate request?

2010-11-08 Thread Fulko Hew
I'm in the process of implementing an AgentX library (in native Perl), and I've gotten to the point of implementing the IndexAllocate PDU/function. It specifies that you can provide a varbind list of 'index names and values requested for allocation'. Unfortunately this description is a little

Adding with-openssl option doubled the snmpd file size

2010-11-08 Thread Naama Bar Menachem
The size of snmpd file was ~5.2M After adding with-openssl option the size of the file had almost doubled - to 10M How can I reduce it? Naaama Bar-Menachem Software Engineer, RD T: +972-9788-9737 | M: +972-57-641-1810 | F: +972-9-958-9731 | naama.barmenac...@novelsat.com

how to get integer from exec/extend shell command?

2010-11-08 Thread Ernest Beinrohr
Hi, i have a simple script which always returns and integer, I have it in my snmpd.conf as exec test1 /bin/test.sh and also as extend test1 /bin/test.sh. Unfortunately, none of there returns an integer with the value from the script. Only a string. Is is somehow possible to get an integer?

Re: how to get integer from exec/extend shell command?

2010-11-08 Thread Raphaël 'SurcouF' Bordet
Le lundi 08 novembre 2010 à 21:12 +0100, Ernest Beinrohr a écrit : Hi, i have a simple script which always returns and integer, I have it in my snmpd.conf as exec test1 /bin/test.sh and also as extend test1 /bin/test.sh. Unfortunately, none of there returns an integer with the value from the

Re: what to specify in an AgentX IndexAllocate request?

2010-11-08 Thread Fulko Hew
On 11/8/10, Fulko Hew fulko@gmail.com wrote: I'm in the process of implementing an AgentX library (in native Perl), and I've gotten to the point of implementing the IndexAllocate PDU/function. It specifies that you can provide a varbind list of 'index names and values requested for

Re: how to get integer from exec/extend shell command?

2010-11-08 Thread Ernest Beinrohr
On 08.11.2010 21:39, Raphaël 'SurcouF' Bordet wrote: Le lundi 08 novembre 2010 à 21:12 +0100, Ernest Beinrohr a écrit : Hi, i have a simple script which always returns and integer, I have it in my snmpd.conf as exec test1 /bin/test.sh and also as extend test1 /bin/test.sh. Unfortunately, none

Re: ubuntu-10.10's snmpget doesn't understand MIB names (Unknown Object Identifier)

2010-11-08 Thread raf
Dave Shield wrote: On 8 November 2010 01:10, raf s...@raf.org wrote: i've just upgraded to ubuntu-10.10 and its snmpget (v5.4.3) doesn't understand MIB names:  $ ls -lasp /usr/share/mibs/netsnmp  total 160   4 drwxr-xr-x 2 root root  4096 2010-11-08 10:35 ./   4 drwxr-xr-x 3 root

Re: ubuntu-10.10's snmpget doesn't understand MIB names (Unknown Object Identifier)

2010-11-08 Thread Thomas Anders
raf wrote: i've just upgraded to ubuntu-10.10 and its snmpget (v5.4.3) doesn't understand MIB names: Debian-based distros have stopped shipping IETF MIB files for legal reasons. However, there's a new snmp-mibs-downloader package (http://packages.ubuntu.com/maverick/snmp-mibs-downloader) to

Re: ubuntu-10.10's snmpget doesn't understand MIB names (Unknown Object Identifier)

2010-11-08 Thread raf
Thomas Anders wrote: raf wrote: i've just upgraded to ubuntu-10.10 and its snmpget (v5.4.3) doesn't understand MIB names: Debian-based distros have stopped shipping IETF MIB files for legal reasons. However, there's a new snmp-mibs-downloader package

Re: ubuntu-10.10's snmpget doesn't understand MIB names (Unknown Object Identifier)

2010-11-08 Thread Reinhold Kainhofer
Am Dienstag, 9. November 2010, um 00:45:54 schrieb Thomas Anders: raf wrote: i've just upgraded to ubuntu-10.10 and its snmpget (v5.4.3) doesn't understand MIB names: Debian-based distros have stopped shipping IETF MIB files for legal reasons. However, there's a new snmp-mibs-downloader

Re: ubuntu-10.10's snmpget doesn't understand MIB names (Unknown Object Identifier)

2010-11-08 Thread raf
Reinhold Kainhofer wrote: Am Dienstag, 9. November 2010, um 00:45:54 schrieb Thomas Anders: raf wrote: i've just upgraded to ubuntu-10.10 and its snmpget (v5.4.3) doesn't understand MIB names: Debian-based distros have stopped shipping IETF MIB files for legal reasons. However,

Ways to retrive ip address from cisco routers decimal or hexadecimal.

2010-11-08 Thread Manish Pohnekar
Hi All I have one query we are using the net-snmp library and receiving the agent information from cisco router we are getting IP address in hexadecimal format as well as in decimal value in corresponfing ascii character in 4 character lenghth. but not sure when returens hexadecimal or decimal