Unable to mib2c the ALARM-MIB
Kavita Raghunathan <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <C7F36D4B.2B07%[email protected]> |
Hello,
The following line is not liked by mib2c: Any idea why?
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,
Integer32, Unsigned32, Gauge32,
TimeTicks, Counter32, Counter64,
IpAddress, Opaque, mib-2,
zeroDotZero
FROM SNMPv2-SMI -- [RFC2578]
1. I download RFC 3877 and used smistrip to create ALARM-MIB
2. I added ALARM-MIB in the /usr/local/share/snmp/mibs
3. I added ALARM-MIB to the environment variable “MIBS”
4. Now I’m running mib2c on it, and I get the error shown below, pointing to the above line.
5. I’ve attached the ALARM-MIB.
[kraghunathan@KavitaSFDev net-snmp-5.5]$ mib2c -c mib2c.mfd.conf ALARM-MIB
Too many imported symbols (alarmClearIndex): At line 841 in /usr/local/share/snmp/mibs/ALARM-MIB
You didn't give mib2c a valid OID to start with. IE, I could not find
any information about the mib node "ALARM-MIB". This could be caused
because you supplied an incorrectly node, or by the MIB that you're
trying to generate code from isn't loaded. To make sure your mib is
loaded, run mib2c using this as an example:
env MIBS="+MY-PERSONAL-MIB" mib2c -c mib2c.mfd.conf ALARM-MIB
You might wish to start by reading the MIB loading tutorial at:
http://www.net-snmp.org/tutorial-5/commands/mib-options.html
And making sure you can get snmptranslate to display information about
your MIB node. Once snmptranslate works, then come back and try mib2c
again.
------------------------------------------------------------------------------
_______________________________________________
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
ALARM-MIB
(application/octet-stream, 37.5 KB) - not displayed