I firstly import SNMPv2-MIB, SNMPv2-SMI, SNMPv2-TC, SNMPv2-TM, and then UPS-MIB

I use the command: zenmib -run UPS-MIB and it loads it ok.  I next use smidump 
to get the following.  If you have any idea how to fix this, it would be great. 
 It's funny i can import this mib into browsers without a problem...


[EMAIL PROTECTED]:/usr/local/zenoss/share/mibs/site$ smidump -fpython  -p 
"/usr/local/zenoss/share/mibs/ietf/SNMPv2-SMI" -p
"/usr/local/zenoss/share/mibs/ietf/SNMPv2-TC" -p 
"/usr/local/zenoss/share/mibs/ietf/SNMPv2-CONF" "UPS-MIB.MIB"
UPS-MIB.MIB:23: revision for last update is missing
UPS-MIB.MIB:25: macro `TEXTUAL-CONVENTION' has not been imported from module 
`SNMPv2-TC'
UPS-MIB.MIB:32: macro `TEXTUAL-CONVENTION' has not been imported from module 
`SNMPv2-TC'
UPS-MIB.MIB:794: range limit exceeds underlying basetype
UPS-MIB.MIB:794: range limits must be `lower-bound .. upper-bound'
UPS-MIB.MIB:803: range limit exceeds underlying basetype
UPS-MIB.MIB:803: range limits must be `lower-bound .. upper-bound'
UPS-MIB.MIB:23: unknown object identifier label `mib-2'
UPS-MIB.MIB:962: object `upsAlarmId' of notification `upsTrapAlarmEntryAdded' 
must not be `not-accessible'
UPS-MIB.MIB:969: object `upsAlarmId' of notification `upsTrapAlarmEntryRemoved' 
must not be `not-accessible'
UPS-MIB.MIB:1017: named number `normal(2)' illegal in sub-type
UPS-MIB.MIB:1017: named number `battery(4)' illegal in sub-type
UPS-MIB.MIB:1079: named number `normal(2)' illegal in sub-type
UPS-MIB.MIB:1079: named number `battery(4)' illegal in sub-type
UPS-MIB.MIB:1147: named number `normal(2)' illegal in sub-type
UPS-MIB.MIB:1147: named number `battery(4)' illegal in sub-type
smidump: module `UPS-MIB.MIB' contains errors, expect flawed output
# python version 1.0                                            DO NOT EDIT
#
# Generated by smidump version 0.4.5:
#
#   smidump -f python UPS-MIB

FILENAME = "UPS-MIB.MIB"

MIB = {
    "moduleName" : "UPS-MIB",

    "UPS-MIB" : {
        "nodetype" : "module",
        "language" : "SMIv2",
        "organization" :
            """IETF UPS MIB Working Group""",
        "contact" :
            """        Jeffrey D. Case""",
        "description" :
            """The MIB module to describe Uninterruptible Power""",
        "revisions" : (
            {
                "date" : "1994-02-23 00:00",
                "description" :
                    """[Revision added by libsmi due to a LAST-UPDATED 
clause.]""",
            },
        ),
        "identity node" : "upsMIB",
    },

    "imports" : (
        {"module" : "SNMPv2-SMI", "name" : "MODULE-IDENTITY"},
        {"module" : "SNMPv2-SMI", "name" : "OBJECT-TYPE"},
        {"module" : "SNMPv2-SMI", "name" : "NOTIFICATION-TYPE"},
        {"module" : "SNMPv2-SMI", "name" : "OBJECT-IDENTITY"},
        {"module" : "SNMPv2-SMI", "name" : "Counter32"},
        {"module" : "SNMPv2-SMI", "name" : "Gauge32"},
        {"module" : "SNMPv2-SMI", "name" : "Integer32"},
        {"module" : "SNMPv2-TC", "name" : "DisplayString"},
        {"module" : "SNMPv2-TC", "name" : "TimeStamp"},
        {"module" : "SNMPv2-TC", "name" : "TimeInterval"},
        {"module" : "SNMPv2-TC", "name" : "TestAndIncr"},
        {"module" : "SNMPv2-TC", "name" : "AutonomousType"},
        {"module" : "SNMPv2-CONF", "name" : "MODULE-COMPLIANCE"},
        {"module" : "SNMPv2-CONF", "name" : "OBJECT-GROUP"},
    ),

    "typedefs" : {
        "PositiveInteger" : {
            "basetype" : "Integer32",
            "status" : "current",
            "range" : {
                "min" : "1",
                "max" : "2147483647"
            },
            "format" : "d",
            "description" :
                """This data type is a non-zero and non-negative value.""",
        },
        "NonNegativeInteger" : {
            "basetype" : "Integer32",
            "status" : "current",
            "range" : {
                "min" : "0",
                "max" : "2147483647"
            },
            "format" : "d",
            "description" :
                """This data type is a non-negative value.""",
        },
    }, # typedefs

}
[EMAIL PROTECTED]:/usr/local/zenoss/share/mibs/site$




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=15369#15369

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to