|
| 1 | +# fmt: off |
| 2 | +# flake8: noqa |
| 3 | +# type: ignore |
| 4 | +# |
| 5 | +# PySNMP MIB module NET-SNMP-AGENT-MIB (http://snmplabs.com/pysmi) |
| 6 | +# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NET-SNMP-AGENT-MIB |
| 7 | +# Produced by pysmi-0.3.4 at Mon Apr 29 20:08:13 2019 |
| 8 | +# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 |
| 9 | +# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) |
| 10 | +# |
| 11 | +ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") |
| 12 | +NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") |
| 13 | +ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion") |
| 14 | +netSnmpGroups, netSnmpObjects, netSnmpModuleIDs, netSnmpNotifications = mibBuilder.importSymbols("NET-SNMP-MIB", "netSnmpGroups", "netSnmpObjects", "netSnmpModuleIDs", "netSnmpNotifications") |
| 15 | +SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") |
| 16 | +NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") |
| 17 | +IpAddress, TimeTicks, Gauge32, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, iso, Unsigned32, Integer32, MibIdentifier, Counter64, ModuleIdentity, Counter32, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "TimeTicks", "Gauge32", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "iso", "Unsigned32", "Integer32", "MibIdentifier", "Counter64", "ModuleIdentity", "Counter32", "ObjectIdentity") |
| 18 | +RowStatus, TruthValue, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TruthValue", "DisplayString", "TextualConvention") |
| 19 | +netSnmpAgentMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 8072, 3, 1, 2)) |
| 20 | +netSnmpAgentMIB.setRevisions(('2010-03-17 00:00', '2005-02-07 00:00', '2002-02-09 00:00',)) |
| 21 | +if mibBuilder.loadTexts: netSnmpAgentMIB.setLastUpdated('201003170000Z') |
| 22 | +if mibBuilder.loadTexts: netSnmpAgentMIB.setOrganization('www.net-snmp.org') |
| 23 | +nsVersion = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 1)) |
| 24 | +nsMibRegistry = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 2)) |
| 25 | +nsExtensions = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 3)) |
| 26 | +nsDLMod = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 4)) |
| 27 | +nsCache = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 5)) |
| 28 | +nsErrorHistory = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 6)) |
| 29 | +nsConfiguration = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 7)) |
| 30 | +nsTransactions = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 8)) |
| 31 | +class NetsnmpCacheStatus(TextualConvention, Integer32): |
| 32 | + status = 'current' |
| 33 | + subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) |
| 34 | + namedValues = NamedValues(("enabled", 1), ("disabled", 2), ("empty", 3), ("cached", 4), ("expired", 5)) |
| 35 | + |
| 36 | +nsCacheDefaultTimeout = MibScalar((1, 3, 6, 1, 4, 1, 8072, 1, 5, 1), Integer32().clone(5)).setMaxAccess("readwrite") |
| 37 | +if mibBuilder.loadTexts: nsCacheDefaultTimeout.setStatus('current') |
| 38 | +nsCacheEnabled = MibScalar((1, 3, 6, 1, 4, 1, 8072, 1, 5, 2), TruthValue().clone('true')).setMaxAccess("readwrite") |
| 39 | +if mibBuilder.loadTexts: nsCacheEnabled.setStatus('current') |
| 40 | +nsCacheTable = MibTable((1, 3, 6, 1, 4, 1, 8072, 1, 5, 3), ) |
| 41 | +if mibBuilder.loadTexts: nsCacheTable.setStatus('current') |
| 42 | +nsCacheEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8072, 1, 5, 3, 1), ).setIndexNames((1, "NET-SNMP-AGENT-MIB", "nsCachedOID")) |
| 43 | +if mibBuilder.loadTexts: nsCacheEntry.setStatus('current') |
| 44 | +nsCachedOID = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 5, 3, 1, 1), ObjectIdentifier()) |
| 45 | +if mibBuilder.loadTexts: nsCachedOID.setStatus('current') |
| 46 | +nsCacheTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 5, 3, 1, 2), Integer32()).setMaxAccess("readwrite") |
| 47 | +if mibBuilder.loadTexts: nsCacheTimeout.setStatus('current') |
| 48 | +nsCacheStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 5, 3, 1, 3), NetsnmpCacheStatus()).setMaxAccess("readwrite") |
| 49 | +if mibBuilder.loadTexts: nsCacheStatus.setStatus('current') |
| 50 | +nsConfigDebug = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 7, 1)) |
| 51 | +nsConfigLogging = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 1, 7, 2)) |
| 52 | +nsDebugEnabled = MibScalar((1, 3, 6, 1, 4, 1, 8072, 1, 7, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") |
| 53 | +if mibBuilder.loadTexts: nsDebugEnabled.setStatus('current') |
| 54 | +nsDebugOutputAll = MibScalar((1, 3, 6, 1, 4, 1, 8072, 1, 7, 1, 2), TruthValue().clone('false')).setMaxAccess("readwrite") |
| 55 | +if mibBuilder.loadTexts: nsDebugOutputAll.setStatus('current') |
| 56 | +nsDebugDumpPdu = MibScalar((1, 3, 6, 1, 4, 1, 8072, 1, 7, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") |
| 57 | +if mibBuilder.loadTexts: nsDebugDumpPdu.setStatus('current') |
| 58 | +nsDebugTokenTable = MibTable((1, 3, 6, 1, 4, 1, 8072, 1, 7, 1, 4), ) |
| 59 | +if mibBuilder.loadTexts: nsDebugTokenTable.setStatus('current') |
| 60 | +nsDebugTokenEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8072, 1, 7, 1, 4, 1), ).setIndexNames((1, "NET-SNMP-AGENT-MIB", "nsDebugTokenPrefix")) |
| 61 | +if mibBuilder.loadTexts: nsDebugTokenEntry.setStatus('current') |
| 62 | +nsDebugTokenPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 7, 1, 4, 1, 2), DisplayString()) |
| 63 | +if mibBuilder.loadTexts: nsDebugTokenPrefix.setStatus('current') |
| 64 | +nsDebugTokenStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 7, 1, 4, 1, 4), RowStatus()).setMaxAccess("readcreate") |
| 65 | +if mibBuilder.loadTexts: nsDebugTokenStatus.setStatus('current') |
| 66 | +nsLoggingTable = MibTable((1, 3, 6, 1, 4, 1, 8072, 1, 7, 2, 1), ) |
| 67 | +if mibBuilder.loadTexts: nsLoggingTable.setStatus('current') |
| 68 | +nsLoggingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8072, 1, 7, 2, 1, 1), ).setIndexNames((0, "NET-SNMP-AGENT-MIB", "nsLogLevel"), (1, "NET-SNMP-AGENT-MIB", "nsLogToken")) |
| 69 | +if mibBuilder.loadTexts: nsLoggingEntry.setStatus('current') |
| 70 | +nsLogLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 7, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("emergency", 0), ("alert", 1), ("critical", 2), ("error", 3), ("warning", 4), ("notice", 5), ("info", 6), ("debug", 7)))) |
| 71 | +if mibBuilder.loadTexts: nsLogLevel.setStatus('current') |
| 72 | +nsLogToken = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 7, 2, 1, 1, 2), DisplayString()) |
| 73 | +if mibBuilder.loadTexts: nsLogToken.setStatus('current') |
| 74 | +nsLogType = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 7, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("stdout", 1), ("stderr", 2), ("file", 3), ("syslog", 4), ("callback", 5)))).setMaxAccess("readcreate") |
| 75 | +if mibBuilder.loadTexts: nsLogType.setStatus('current') |
| 76 | +nsLogMaxLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 7, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("emergency", 0), ("alert", 1), ("critical", 2), ("error", 3), ("warning", 4), ("notice", 5), ("info", 6), ("debug", 7))).clone('emergency')).setMaxAccess("readcreate") |
| 77 | +if mibBuilder.loadTexts: nsLogMaxLevel.setStatus('current') |
| 78 | +nsLogStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 7, 2, 1, 1, 5), RowStatus()).setMaxAccess("readcreate") |
| 79 | +if mibBuilder.loadTexts: nsLogStatus.setStatus('current') |
| 80 | +nsTransactionTable = MibTable((1, 3, 6, 1, 4, 1, 8072, 1, 8, 1), ) |
| 81 | +if mibBuilder.loadTexts: nsTransactionTable.setStatus('current') |
| 82 | +nsTransactionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8072, 1, 8, 1, 1), ).setIndexNames((0, "NET-SNMP-AGENT-MIB", "nsTransactionID")) |
| 83 | +if mibBuilder.loadTexts: nsTransactionEntry.setStatus('current') |
| 84 | +nsTransactionID = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 8, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))) |
| 85 | +if mibBuilder.loadTexts: nsTransactionID.setStatus('current') |
| 86 | +nsTransactionMode = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 8, 1, 1, 2), Integer32()).setMaxAccess("readonly") |
| 87 | +if mibBuilder.loadTexts: nsTransactionMode.setStatus('current') |
| 88 | +nsModuleTable = MibTable((1, 3, 6, 1, 4, 1, 8072, 1, 2, 1), ) |
| 89 | +if mibBuilder.loadTexts: nsModuleTable.setStatus('current') |
| 90 | +nsModuleEntry = MibTableRow((1, 3, 6, 1, 4, 1, 8072, 1, 2, 1, 1), ).setIndexNames((0, "NET-SNMP-AGENT-MIB", "nsmContextName"), (0, "NET-SNMP-AGENT-MIB", "nsmRegistrationPoint"), (0, "NET-SNMP-AGENT-MIB", "nsmRegistrationPriority")) |
| 91 | +if mibBuilder.loadTexts: nsModuleEntry.setStatus('current') |
| 92 | +nsmContextName = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 2, 1, 1, 1), SnmpAdminString()) |
| 93 | +if mibBuilder.loadTexts: nsmContextName.setStatus('current') |
| 94 | +nsmRegistrationPoint = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 2, 1, 1, 2), ObjectIdentifier()) |
| 95 | +if mibBuilder.loadTexts: nsmRegistrationPoint.setStatus('current') |
| 96 | +nsmRegistrationPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))) |
| 97 | +if mibBuilder.loadTexts: nsmRegistrationPriority.setStatus('current') |
| 98 | +nsModuleName = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 2, 1, 1, 4), DisplayString()).setMaxAccess("readonly") |
| 99 | +if mibBuilder.loadTexts: nsModuleName.setStatus('current') |
| 100 | +nsModuleModes = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 2, 1, 1, 5), Bits().clone(namedValues=NamedValues(("getAndGetNext", 0), ("set", 1), ("getBulk", 2)))).setMaxAccess("readonly") |
| 101 | +if mibBuilder.loadTexts: nsModuleModes.setStatus('current') |
| 102 | +nsModuleTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 8072, 1, 2, 1, 1, 6), Integer32()).setMaxAccess("readonly") |
| 103 | +if mibBuilder.loadTexts: nsModuleTimeout.setStatus('current') |
| 104 | +nsNotifyStart = NotificationType((1, 3, 6, 1, 4, 1, 8072, 4, 0, 1)) |
| 105 | +if mibBuilder.loadTexts: nsNotifyStart.setStatus('current') |
| 106 | +nsNotifyShutdown = NotificationType((1, 3, 6, 1, 4, 1, 8072, 4, 0, 2)) |
| 107 | +if mibBuilder.loadTexts: nsNotifyShutdown.setStatus('current') |
| 108 | +nsNotifyRestart = NotificationType((1, 3, 6, 1, 4, 1, 8072, 4, 0, 3)) |
| 109 | +if mibBuilder.loadTexts: nsNotifyRestart.setStatus('current') |
| 110 | +nsModuleGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8072, 5, 2, 2)).setObjects(("NET-SNMP-AGENT-MIB", "nsModuleName"), ("NET-SNMP-AGENT-MIB", "nsModuleModes"), ("NET-SNMP-AGENT-MIB", "nsModuleTimeout")) |
| 111 | +if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): |
| 112 | + nsModuleGroup = nsModuleGroup.setStatus('current') |
| 113 | +nsCacheGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8072, 5, 2, 4)).setObjects(("NET-SNMP-AGENT-MIB", "nsCacheDefaultTimeout"), ("NET-SNMP-AGENT-MIB", "nsCacheEnabled"), ("NET-SNMP-AGENT-MIB", "nsCacheTimeout"), ("NET-SNMP-AGENT-MIB", "nsCacheStatus")) |
| 114 | +if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): |
| 115 | + nsCacheGroup = nsCacheGroup.setStatus('current') |
| 116 | +nsConfigGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 8072, 5, 2, 7)) |
| 117 | +nsDebugGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8072, 5, 2, 7, 1)).setObjects(("NET-SNMP-AGENT-MIB", "nsDebugEnabled"), ("NET-SNMP-AGENT-MIB", "nsDebugOutputAll"), ("NET-SNMP-AGENT-MIB", "nsDebugDumpPdu"), ("NET-SNMP-AGENT-MIB", "nsDebugTokenStatus")) |
| 118 | +if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): |
| 119 | + nsDebugGroup = nsDebugGroup.setStatus('current') |
| 120 | +nsLoggingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8072, 5, 2, 7, 2)).setObjects(("NET-SNMP-AGENT-MIB", "nsLogType"), ("NET-SNMP-AGENT-MIB", "nsLogMaxLevel"), ("NET-SNMP-AGENT-MIB", "nsLogStatus")) |
| 121 | +if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): |
| 122 | + nsLoggingGroup = nsLoggingGroup.setStatus('current') |
| 123 | +nsTransactionGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 8072, 5, 2, 8)).setObjects(("NET-SNMP-AGENT-MIB", "nsTransactionMode")) |
| 124 | +if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): |
| 125 | + nsTransactionGroup = nsTransactionGroup.setStatus('current') |
| 126 | +nsAgentNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 8072, 5, 2, 9)).setObjects(("NET-SNMP-AGENT-MIB", "nsNotifyStart"), ("NET-SNMP-AGENT-MIB", "nsNotifyShutdown"), ("NET-SNMP-AGENT-MIB", "nsNotifyRestart")) |
| 127 | +if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): |
| 128 | + nsAgentNotifyGroup = nsAgentNotifyGroup.setStatus('current') |
| 129 | +mibBuilder.exportSymbols("NET-SNMP-AGENT-MIB", nsmContextName=nsmContextName, nsModuleModes=nsModuleModes, nsConfigLogging=nsConfigLogging, nsTransactionTable=nsTransactionTable, nsCacheTable=nsCacheTable, nsCachedOID=nsCachedOID, nsLogToken=nsLogToken, netSnmpAgentMIB=netSnmpAgentMIB, nsLogStatus=nsLogStatus, nsDebugDumpPdu=nsDebugDumpPdu, nsModuleName=nsModuleName, nsCache=nsCache, nsDebugOutputAll=nsDebugOutputAll, nsTransactionEntry=nsTransactionEntry, nsTransactionGroup=nsTransactionGroup, nsNotifyRestart=nsNotifyRestart, nsCacheDefaultTimeout=nsCacheDefaultTimeout, nsTransactionMode=nsTransactionMode, nsCacheStatus=nsCacheStatus, nsNotifyStart=nsNotifyStart, nsExtensions=nsExtensions, nsmRegistrationPoint=nsmRegistrationPoint, nsTransactionID=nsTransactionID, NetsnmpCacheStatus=NetsnmpCacheStatus, nsCacheTimeout=nsCacheTimeout, nsLoggingEntry=nsLoggingEntry, nsMibRegistry=nsMibRegistry, nsmRegistrationPriority=nsmRegistrationPriority, nsModuleTimeout=nsModuleTimeout, nsNotifyShutdown=nsNotifyShutdown, nsDebugTokenEntry=nsDebugTokenEntry, nsModuleTable=nsModuleTable, nsDebugTokenTable=nsDebugTokenTable, nsLoggingTable=nsLoggingTable, nsModuleEntry=nsModuleEntry, nsCacheEntry=nsCacheEntry, nsDebugTokenPrefix=nsDebugTokenPrefix, nsDebugEnabled=nsDebugEnabled, nsVersion=nsVersion, nsLogMaxLevel=nsLogMaxLevel, nsDLMod=nsDLMod, nsConfigDebug=nsConfigDebug, nsModuleGroup=nsModuleGroup, nsCacheEnabled=nsCacheEnabled, nsDebugGroup=nsDebugGroup, nsLoggingGroup=nsLoggingGroup, nsTransactions=nsTransactions, nsCacheGroup=nsCacheGroup, PYSNMP_MODULE_ID=netSnmpAgentMIB, nsDebugTokenStatus=nsDebugTokenStatus, nsConfiguration=nsConfiguration, nsLogType=nsLogType, nsConfigGroups=nsConfigGroups, nsAgentNotifyGroup=nsAgentNotifyGroup, nsLogLevel=nsLogLevel, nsErrorHistory=nsErrorHistory) |
0 commit comments