Re: help! how to write subagent?

2009-09-02 Thread Magnus Fromreide
On Wed, 2009-09-02 at 14:56 +0530, ashutosh shanker wrote: > hi, > > i have tried the example given on net-snmp site. but it is giving me > an error message > > generating the tmporary code file: netsnmptmp.12086.c > voidinit_nstAgentSubagentObject(void); > checking for init_nstAge

Possible memory corruption and double free in snmp_agent.c - netsnmp_wrap_up_request()

2009-09-02 Thread Gaash Hazan (gahazan)
Hi codes, I am new to net-snmp. Please understand if I do thing not in the right way. I believe there is an issue at netsnmp_wrap_up_request)). An issue that causes memory corruption and double free. I saw the problem with get sysup time OID at snmpd on net-snmp 5.4.2.1 For the record, uname -

Possible memory corruption and double free in snmp_agent.c - netsnmp_wrap_up_request()

2009-09-02 Thread Gaash Hazan (gahazan)
Hi codes, I am new to net-snmp. Please understand if I do thing not in the right way. I believe there is an issue at netsnmp_wrap_up_request)). An issue that causes memory corruption and double free. I saw the problem with get sysup time OID at snmpd on net-snmp 5.4.2.1 For the record, uname -a

Re: Problem with snmpd daemon

2009-09-02 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. ] 2009/8/2

Re: help regarding Snmptrap

2009-09-02 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. ] 2009/9/

help! how to write subagent?

2009-09-02 Thread ashutosh shanker
hi, i have tried the example given on net-snmp site. but it is giving me an error message generating the tmporary code file: netsnmptmp.12086.c voidinit_nstAgentSubagentObject(void); checking for init_nstAgentSubagentObject in nstAgentSubagentObject.c init_nstAgentSubagentObject(void)

Re: Problem with mib2c.notify.conf

2009-09-02 Thread Dave Shield
2009/9/2 Suresh, Rahul (NSN - IN/Bangalore) : > i've implemented a snmp trap and notification mib . First of all - don't bother with defining a TRAP-TYPE object. SMIv1 is obsolete. Concentrate on SMIv2 - i.e. NOTIFICATIONS. Secondly, I'd strongly suggest that you define an intermediate OBJECT-ID

How to get source ip address of incoming packet

2009-09-02 Thread YoonHo Cheon
Hi, I'd like to get source ip address of incoming snmp packet to log ip address and OID in case set request from remote manager has been successfully done. I found out some answer from searching mailing list of net-snmp-coder group. That is http://www.freesnmp.com/net-snmp/faqs/#packet-ip With t

Re: help regarding Snmptrap

2009-09-02 Thread Dave Shield
2009/9/2 ashutosh shanker : > can sm one tell me how to generate trap for the events happening to the > objects of my MIB. First question - what circumstances should trigger this trap? How should the agent know that a trap is required? A couple of examples would be useful. Dave

Problem with mib2c.notify.conf

2009-09-02 Thread Suresh, Rahul (NSN - IN/Bangalore)
hi, I'm doing a project on net snmp and i'm new to this. i've implemented a snmp trap and notification mib . I used mib2c -c mib2c.notify.conf demonotifs on my node in the notification mib. Now the problem is i'm only getting a .c file but not a .h file. NOTIFICATION-TEST-MIB DEFINITIONS ::= B

Re: [PATCH] RFC: rename MIB to NETSNMP_MIB2_OID

2009-09-02 Thread Dave Shield
2009/9/1 Wes Hardaker : > DS> If nothing else, it [get_node] doesn't even exist if MIB > DS> loading has been disabled! > > read_objid is fairly useless even if it exists. Umm I'm not sure what you mean by that comment. As I see things: With MIB loading enabled, read_objid("system"

Re: [PATCH] RFC: rename MIB to NETSNMP_MIB2_OID

2009-09-02 Thread Jan Safranek
On 09/01/2009 10:54 PM, Wes Hardaker wrote: >> On Tue, 01 Sep 2009 00:28:59 +0200, Thomas >> Anders said: > > TA> Jan Safranek wrote: >>> sure, here is second version of the patch, now with >>> NETSNMP_NO_LEGACY_DEFINITIONS > > TA> +1 (wasn't that easy? :-)) > > That makes 3-0. Go ahea