Skip to content

Instantly share code, notes, and snippets.

@ww9rivers
Created November 28, 2016 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ww9rivers/ddd018627445ba676b52c13b8e979f26 to your computer and use it in GitHub Desktop.
Save ww9rivers/ddd018627445ba676b52c13b8e979f26 to your computer and use it in GitHub Desktop.
# PySNMP SMI module. Autogenerated from smidump -f python AFCOMFG-TMM-MIB
# by libsmi2pysnmp-0.1.3 at Wed Nov 23 14:19:30 2016,
# Python version sys.version_info(major=2, minor=7, micro=12, releaselevel='final', serial=0)
# Imports
( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
( ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint")
( Bits, Integer32, MibIdentifier, MibScalar, TimeTicks, enterprises, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Integer32", "MibIdentifier", "MibScalar", "TimeTicks", "enterprises")
# Objects
afco = MibIdentifier((1, 3, 6, 1, 4, 1, 29660))
TMM = MibIdentifier((1, 3, 6, 1, 4, 1, 29660, 2))
TMMData = MibIdentifier((1, 3, 6, 1, 4, 1, 29660, 2, 3))
Temperature1 = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 1), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 9999))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Temperature1.setDescription("Cabinet temperature at Location 1 (Top Center) measured in tenths of degrees Fahrenheit.")
Temperature2 = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 2), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 9999))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Temperature2.setDescription("Cabinet temperature at Location 2 (Front Top) measured in tenths of degrees Fahrenheit.")
Temperature3 = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 3), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 9999))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Temperature3.setDescription("Cabinet temperature at Location 3 (Front Middle) measured in tenths of degrees Fahrenheit.")
Temperature4 = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 4), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 9999))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Temperature4.setDescription("Cabinet temperature at Location 4 (Front Bottom) measured in tenths of degrees Fahrenheit.")
Temperature5 = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 5), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 9999))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Temperature5.setDescription("Cabinet temperature at Location 5 (Bottom Center) measured in tenths of degrees Fahrenheit.")
Temperature6 = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 6), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 9999))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Temperature6.setDescription("Cabinet temperature at Location 6 (Back Bottom) measured in tenths of degrees Fahrenheit.")
Temperature7 = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 7), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 9999))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Temperature7.setDescription("Cabinet temperature at Location 7 (Back Middle) measured in tenths of degrees Fahrenheit.")
Temperature8 = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 8), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 9999))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Temperature8.setDescription("Cabinet temperature at Location 8 (Top Center) measured in tenths of degrees Fahrenheit.")
TempSetPoint = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 9), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 9999))).setMaxAccess("readwrite")
if mibBuilder.loadTexts:
TempSetPoint.setDescription("Cabinet temperature control Set Point in tenths of degrees Fahrenheit")
TempAlarm = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 10), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
TempAlarm.setDescription("Cabinet temperature alarm: 1 if greater than 6 degrees above setpoint, 0 for normal")
Power1Alarm = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 11), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Power1Alarm.setDescription("Cabinet primary power alarm: 1 for power loss, 0 for normal")
Power2Alarm = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 12), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Power2Alarm.setDescription("Cabinet secondary power alarm: 1 for power loss, 0 for normal")
SummaryAlarm = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 13), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
SummaryAlarm.setDescription("Cabinet alarm summary: 1 if overtemperature or power 1 or power 2 alarms exist, 0 for normal")
MuteAlarm = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 14), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 777))).setMaxAccess("readwrite")
if mibBuilder.loadTexts:
MuteAlarm.setDescription("Cabinet Mute Alarm (send 777 to Mute, Reset the board to clear)")
FanStatus = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 15), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
FanStatus.setDescription("Relative Fan Speed STOP:0/SLOWEST:1/SLOW:2/MIDSLOW:3/MID:4/FAST:5/VERYFAST:6")
Door1Status = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 16), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Door1Status.setDescription("Status of Door 1 1=Open 0=Closed")
Door2Status = MibScalar((1, 3, 6, 1, 4, 1, 29660, 2, 3, 17), Integer().subtype(subtypeSpec=ValueSizeConstraint(0, 1))).setMaxAccess("readonly")
if mibBuilder.loadTexts:
Door2Status.setDescription("Status of Door 2 1=Open 0=Closed")
# Augmentions
# Exports
# Objects
mibBuilder.exportSymbols("AFCOMFG-TMM-MIB", afco=afco, TMM=TMM, TMMData=TMMData)
mibBuilder.exportSymbols("AFCOMFG-TMM-MIB", Temperature1=Temperature1, Temperature2=Temperature2, Temperature3=Temperature3, Temperature4=Temperature4, Temperature5=Temperature5, Temperature6=Temperature6, Temperature7=Temperature7, Temperature8=Temperature8)
mibBuilder.exportSymbols("AFCOMFG-TMM-MIB", TempSetPoint=TempSetPoint, TempAlarm=TempAlarm, Power1Alarm=Power1Alarm, Power2Alarm=Power2Alarm, SummaryAlarm=SummaryAlarm, MuteAlarm=MuteAlarm, FanStatus=FanStatus, Door1Status=Door1Status, Door2Status=Door2Status)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment