Hello!
I am a graduate student at the University of Texas at Dallas, working on a
project which involves:
1. Using Net-SNMP
2. Adding a new MIB file
(http://www.mibsearch.com/vendors/Enterasys%20Networks%20Inc./mibview/UPS2-MIB)
3. Writing a web application to extract information (ex: upsSerialNumber,
upsBatteryCapacity, upsBatteryVoltage etc) using SNMP backend
My development platform is an Arch Linux computer with net-snmp installed.
Followed directions from : https://wiki.archlinux.org/index.php/snmpd
For adding a new MIB file, I followed instructions from here:
http://net-snmp.sourceforge.net/tutorial/tutorial-5/commands/mib-options.html
Thus I have copied the mib file into the following locations:
/root/.snmp/mibs
/usr/share/snmp/mibs
However I cannot seem to be able to get it to work.
When I perform the following operation, this is what I am getting
[root@alarm mibs]# snmptranslate -m +ups2-mib.txt -IR upsSerialNumber
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ups2-mib.txt): At line 0 in (none)
Unknown object identifier: upsSerialNumber
I also tried the following:
[root@alarm mibs]# export MIBS=+ups2-mib.txt
[root@alarm mibs]# snmptranslate -m +ups2-mib.txt -IR upsSerialNumber
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ups2-mib.txt): At line 0 in (none)
Unknown object identifier: upsSerialNumber
[root@alarm mibs]# echo "mibs +ups2-mib.txt" >>$HOME/.snmp/snmp.conf
[root@alarm mibs]# snmptranslate -m +ups2-mib.txt -IR upsSerialNumber
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ups2-mib.txt): At line 0 in (none)
Unknown object identifier: upsSerialNumber
What could possibly be going wrong?
Srayan Guhathakurta.
GSM# 469.888.1792
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders