snmp_parse_oid error

2009-04-06 Thread Tanisha Kashyap
Hi, The snmp_parse_oid function is giving me the following error: : Unknown Object Identifier (Sub-id not found: (top) -> ) I have hardcoded the oids in my code. What could be reason for this? Thanks "No task is so humble that it does not offer an outlet for individuality" _

Re: snmp_parse_oid error

2009-04-06 Thread Dave Shield
2009/4/6 Tanisha Kashyap : > The snmp_parse_oid function is giving me the following error: > > : Unknown Object Identifier (Sub-id not found: (top) -> ) Have you installed the MIB files? Otherwise, we'd really need to see the exact code that you are using. Simply saying that a routine is throwi

RE: snmp_parse_oid error

2009-04-06 Thread Tanisha Kashyap
ve Shield Sent: Monday, April 06, 2009 5:50 PM To: Tanisha Kashyap Cc: net-snmp-users@lists.sourceforge.net Subject: Re: snmp_parse_oid error 2009/4/6 Tanisha Kashyap : > The snmp_parse_oid function is giving me the following error: > > : Unknown Object Identifier (Sub-id not found: (t

Re: snmp_parse_oid error

2009-04-06 Thread Dave Shield
2009/4/6 Tanisha Kashyap : > I have the MIB file at the default location. Which is where? > The basic skeleton of the code is: I'm sorry - but I'm not prepared to waste my time looking at "basic skeleton" code. There's too much information that you're not providing. >        if (!snmp_parse_o

RE: snmp_parse_oid error

2009-04-06 Thread Harendra Pratap Singh
id); > SOCK_CLEANUP; > return(1); > } > ... > ... > ... > } > > > -Original Message- > From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On > Behalf Of Dave Shield > Sent: Monday, April 06,

RE: snmp_parse_oid error

2009-04-08 Thread Harendra Pratap Singh
armTrap->abcOid); > > SOCK_CLEANUP; > > return(1); > > } > > ... > > ... > > ... > > } > > > > > > -Original Message- > > From: dave.shi...@googlemail.com [mailto:dav

Re: snmp_parse_oid error

2009-04-08 Thread Dave Shield
2009/4/8 Harendra Pratap Singh : > If i run "snmpwalk -v 1 -c public localhost system" at the snmp box I get > the results what expect. But when I run at for remote system. snmpwalk -v 1 > -c public 192.168.1.36 system on the web-01 box, with 192.168.1.36 the IP > address of the web-01 box, i get:

Re: snmp_parse_oid error

2009-04-08 Thread Pranesh Kulkarni
> { > if (!snmp_parse_oid(alarmTrap->abcOid, name, &name_length)) { > printf("\nerror situation\n\n"); > snmp_perror(alarmTrap->abcOid); > SOCK_CLEANUP; > return(1); > } > ... > ... > ... > } > > > -O