Re: snmp_parse_oid gives Unknown Object Identifier when run from a webui

ramnarasimha prasad <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi does anyone faced the same problem. When a snmp command is called from a web browser, the application is giving the Unknown Object Identifier. Some where I read that we need to configure the snmp.conf file for application specific. Ean some one help me in configuring application specific snmp.conf file.
 
Thanks and Regards,
BRN Prasad.


________________________________
 From: ramnarasimha prasad <[email protected]>
To: "[email protected]" <[email protected]>; "[email protected]" <[email protected]> 
Sent: Wednesday, May 15, 2013 5:50 PM
Subject: snmp_parse_oid gives Unknown Object Identifier when run from a webui
 


Hi Dave and Others,

I am working using net-snmp in our linux (TexasInstruments beaglebone distribution which is have net-snmp) based project and we have created our MIB files and stub files for supporting those OID get/set functionalities. We are able to get/set from the command prompt from both local system as well as the remote system.

We are developing a webui (web User interface) for our system. To interface this webui, I have written a cgi script file in which I am reading the commands sent from webui and processing both get/set commands with oids. When I am running the cgi script from my hyperterminal, I am getting /setting the oids properly. But when I send the command from webui, I am getting the error message "Unknown Object Identifier" in the snmp_parse_oid function. If i give the oid with full sub string (like .1.3.6.1.4.1.128.5.1.37.2.13), it works fine. Can some help me to over come this problem. 

My strong guess is, when i run the command from the webui like "<ipaddress>/cgi-bin/snmp.cgi?snmpget name.2", the system is unable to fine the MIB for parsing the oids. I have read about the snmp.conf which is specific to application configurations where we can set mibdirs, mibfile and others. Even I tried to create this config file and copied under ~/.snmp/snmp.conf and also /etc/snmp/snmp.conf. I have also copied my MIB file in all possible locations like "/usr/local/share/snmp/mibs/", "/usr/libs/cgi-bin" and some other locations.

Can you please help me for over coming with this problem.

Thanks in Advance.
 
Thanks and Regards,
BRN Prasad.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

_______________________________________________
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.