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

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d

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