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"
_
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
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
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
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,
armTrap->abcOid);
> > SOCK_CLEANUP;
> > return(1);
> > }
> > ...
> > ...
> > ...
> > }
> >
> >
> > -Original Message-
> > From: dave.shi...@googlemail.com [mailto:dav
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:
> {
> if (!snmp_parse_oid(alarmTrap->abcOid, name, &name_length)) {
> printf("\nerror situation\n\n");
> snmp_perror(alarmTrap->abcOid);
> SOCK_CLEANUP;
> return(1);
> }
> ...
> ...
> ...
> }
>
>
> -O