Re: snmp_parse_oid error

Pranesh Kulkarni <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
It may be firewall issue
OR
access-control issue
add  your remote system ip address in snmpd.conf  and check once again


On Wed, Apr 8, 2009 at 6:09 PM, Harendra Pratap Singh <
[email protected]> wrote:

>  Hi All,
>
> 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:
> "Timeout: No Response from 192.168.1.36"
>
>
> Thanks,
> Harendra
>
>
> On Mon, 2009-04-06 at 18:27, Harendra Pratap Singh wrote:
>
> *Hi Tanisha,
>
> As for as I know the oids are copied as an array of oid as follows.
> static oid abcOid[] = { 1, 3, 6, 1, 4, 1, xxx, 3, 1, 1};
>
> But I am not too sure.  This is how I have done it.
>
> Thanks,
> Harendra*
> *"No task is so humble that it does not offer an outlet for individuality"
> *
>
> On Mon, 2009-04-06 at 17:57, Tanisha Kashyap wrote:
>
> I have the MIB file at the default location.
>
> The basic skeleton of the code is:
>
> Int main()
> {
>         t_Trap alarmTrap;
>
>         strcpy(alarmTrap.abcOid,".1.3.6.1.4.1.xxx.3.1.1" );
>       strcpy(alarmTrap.defOid,".1.3.6.1.4.1.xxx.3.1.2.1" );
>       strcpy(alarmTrap.klmOid,".1.3.6.1.4.1.xxx.3.1.2.2" );
>
>         parse_data(xxx, &alarmTrap,xxx);
> }
>
> Parse_data(xxx, t_Trap* alarmTrap,xxx)
> {
> ....
> ....
> ...
>
> Sendtrap(xxx,&alarmTrap,xxx);
> }
>
> Sendtrap(xxx,t_Trap* alarmTrap,xxx)
> {
>         if (!snmp_parse_oid(alarmTrap->abcOid, name, &name_length)) {
>                 printf("\nerror situation\n\n");
>                 snmp_perror(alarmTrap->abcOid);
>                 SOCK_CLEANUP;
>                 return(1);
>             }
> ...
> ...
> ...
> }
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
> Sent: Monday, April 06, 2009 5:50 PM
> To: Tanisha Kashyap
> Cc: [email protected]
> Subject: Re: snmp_parse_oid error
>
> 2009/4/6 Tanisha Kashyap <[email protected]>:
> > 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 throwing an error isn't a lot of help.
>
> Dave
>
> "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Net-snmp-users mailing [email protected]
> Please see the following page to unsubscribe or change other options:
>
> *https://lists.sourceforge.net/lists/listinfo/net-snmp-users*<https://lists.sourceforge.net/lists/listinfo/net-snmp-users>
>
> --
>
> Harendra Pratap Singh | Sr. Software Engineer | GlobalLogic Inc.
> The Global Product Development Leader
> USA | INDIA | UKRAINE | CHINA
> Office: +91-120-434-2000 x 2969
> Fax: +91-120-258-5721www.globallogic.com
>
> InfoWorld Award Winner for Agile Innovation
>
> Backed by Sequoia, NEA and New Atlantic Ventures (part of the DFJ
> network), GlobalLogic partners with emerging and established technology
> companies to help them accelerate great products to market. GlobalLogic
> has developed a unique model that combines distributed Agile
> methods, innovative open source-based tools, and global teams of
> world-class engineers to dramatically shorten product development
> cycles.  GlobalLogic has ongoing partnerships with more than 140
> technology companies and has completed over 800 major product
> releases over the past six years, including 300 in the last 12 months
> with a better than 95% on-time delivery.  Headquartered in Vienna,
> Virginia, GlobalLogic has global development centers in the US, India,
> China and Ukraine. By leveraging its InfoWorld award-winning method and
> platform, GlobalLogic Velocity™, its global facilities and world-class
> engineers, clients gain rapid time-to-market, improved quality and
> reduced development expense.
>
> Disclaimer:http://www.globallogic.com/email_disclaimer.txt
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.