net SNMP OID to String

2010-10-18 Thread Shibu George
Hi Friends, I am new to net snmp. How can I convert string to OID data type? Thanks, Shibu George * Confidentiality Statement/Disclaimer * This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any

Re: SF.net SVN: net-snmp:[19477] trunk/net-snmp

2010-10-18 Thread Robert Story
On Sun, 17 Oct 2010 14:42:27 +0200 Magnus wrote: MF AFAIK neither _STACK nor STACK is portable - only STACK_OF() is. And MF none of the STACK_OF() types is compatible with the sk_num() argument MF type. MF MF Ok. I do not know much about openssl. I think it depends on the version of openssl

Re: net SNMP OID to String

2010-10-18 Thread Robert Story
On Mon, 18 Oct 2010 17:04:06 +0530 Shibu wrote: SG How can I convert string to OID data type? See snmp_parse_oid() in mib_api.h. -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R)

Re: Does anyone have Linux on big-endian hardware?

2010-10-18 Thread Robert Story
On Wed, 13 Oct 2010 13:35:40 +0200 Niels wrote: NB With Linux on x86(_64) hardware I get a bad netmask from the ipCidrRouteTable: NB NB $ snmpwalk -OX localhost:6161 ipCidrRouteTable NB IP-FORWARD-MIB::ipCidrRouteDest[0.0.0.0][0.0.0.0][0][172.18.0.1] = IpAddress: 0.0.0.0 NB

Re: Information about core dump

2010-10-18 Thread Wes Hardaker
On Sat, 16 Oct 2010 12:16:23 +0200, Pierluigi pierluigi.pasqu...@fastwebnet.it said: P In this case the process dies end exit with a core dump error. P Why? It certainly shouldn't do that, but it sounds specific to your particular environment and possibly code. You'll likely need to run

Re: clib_build (Re: SF.net SVN: net-snmp:[19463] branches/V5-6-patches/net-snmp/testing/ fulltests)

2010-10-18 Thread Wes Hardaker
On Fri, 15 Oct 2010 21:20:18 +0200, Bart Van Assche bvanass...@acm.org said: On Fri, 15 Oct 2010 17:09:57 +0200, Bart Van Assche bvanass...@acm.org said: BVA How about the suffix cagentlib for agent library tests ? Sounds fine! BVA See also r19466. Great, thanks! -- Wes Hardaker

Re: uintptr_t and win64

2010-10-18 Thread Wes Hardaker
On Sun, 17 Oct 2010 12:31:35 +0200, Magnus Fromreide ma...@lysator.liu.se said: MF I did that since recent glibc is changed so that only the definitions MF that should be added by each header are inserted when that header is MF included and I wanted to avoid another include. Please do not

Re: clib_build (Re: SF.net SVN: net-snmp:[19463] branches/V5-6-patches/net-snmp/testing/ fulltests)

2010-10-18 Thread Wes Hardaker
On Fri, 15 Oct 2010 23:34:00 +0200, Magnus Fromreide ma...@lysator.liu.se said: Cause it's C silly! If it was perl it'd be pagentlib! ha ha! MF p as in python I suppose? No, see... Those silly python people believe that everything in their world should start with py so we're safe there

Re: SF.net SVN: net-snmp:[19493] trunk/net-snmp

2010-10-18 Thread Wes Hardaker
BV CHANGES: snmplib: Added functions netsnmp_handler_owns_tabreq(), netsnmp_registration_owns_tabreq(), netsnmp_iterator_clone(). Exported netsnmp_table_registration_info_clone(). BV CHANGES: snmplib: Modified netsnmp_iterator_delete_table() such that it frees the table registration

Re: Does anyone have Linux on big-endian hardware?

2010-10-18 Thread Robert Story
On Mon, 18 Oct 2010 11:43:22 -0400 Robert wrote: RS On Wed, 13 Oct 2010 13:35:40 +0200 Niels wrote: RS NB With Linux on x86(_64) hardware I get a bad netmask from the ipCidrRouteTable: RS NB ... RS NB It seems that there is a superflous htonl performed on the netmask in RS NB

lmsensors patch

2010-10-18 Thread maap maap
Hello Team, I was so disapointed when discovered that default net-snmp lmsensors module uses single index for all sensor's entries, even they are placed in different oid tables. Example: iso.3.6.1.4.1.2021.13.16.2.1.1.15 = INTEGER: 15 iso.3.6.1.4.1.2021.13.16.2.1.1.16 = INTEGER: 16

Re: SF.net SVN: net-snmp:[19493] trunk/net-snmp

2010-10-18 Thread Bart Van Assche
On Mon, Oct 18, 2010 at 5:56 PM, Wes Hardaker harda...@users.sourceforge.net wrote: BV CHANGES: snmplib: Added functions netsnmp_handler_owns_tabreq(), netsnmp_registration_owns_tabreq(), netsnmp_iterator_clone(). Exported netsnmp_table_registration_info_clone(). BV CHANGES: snmplib:

Re: Does anyone have Linux on big-endian hardware?

2010-10-18 Thread Niels Baggesen
Den 18-10-2010 18:02, Robert Story skrev: $ route -n |grep vir 192.168.122.0 0.0.0.0 255.255.255.0 U 0 00 virbr0 $ cat /proc/net/route |grep vir virbr0007AA8C000010 0 0 00FF0 0 0 The

RE: Is it safe to make requests such as get from the same subagent process that has registered and handlers the values requested.

2010-10-18 Thread Marc Butler
Thank you Wes, I will implement it as per your suggestion. -Original Message- From: Wes Hardaker [mailto:harda...@users.sourceforge.net] Sent: Friday, October 15, 2010 09:54 To: mbut...@alticast.com Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Is it safe to make requests

Re: net-snmp/session_api.h broken in 5.6?

2010-10-18 Thread Bill Fenner
On Wed, Oct 13, 2010 at 12:16 PM, Wes Hardaker harda...@users.sourceforge.net wrote: BF I updated net-snmp to 5.6, and all of my net-snmp consumers broke.  It BF looks like net-snmp/library/snmp_api.h (included from BF net-snmp/session_api.h accidentally used netsnmp_transport * BF instead of

Re: net-snmp/session_api.h broken in 5.6?

2010-10-18 Thread Bill Fenner
On Wed, Oct 13, 2010 at 12:23 PM, Dave Shield d.t.shi...@liverpool.ac.uk wrote: On 13 October 2010 17:16, Wes Hardaker harda...@users.sourceforge.net wrote: BF I updated net-snmp to 5.6, and all of my net-snmp consumers broke.  It BF looks like net-snmp/library/snmp_api.h (included from BF

how to identify variable 'type' and 'value' from pdu structure

2010-10-18 Thread Renjith R. V.
Hello Team, I have a scenario in which I need to collect traps from some devices in local network and forward the same (after adding some more objects) to some selected destinations. As part of a feasibility to do the same, I have referred snmptrapd program to receive traps and snmptrap program