summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2016-04-03 23:32:16 +0200
committerIlya Etingof <etingof@gmail.com>2016-04-03 23:32:16 +0200
commitfe5249877550349a60fcdfbf0ed0d6ae20a48675 (patch)
treeeac82b93d6912e1880e553f0214794c315928cfc
parent6cd2de39a8452c29eeeed99afc0b425291143ebd (diff)
downloadpysnmp-git-fe5249877550349a60fcdfbf0ed0d6ae20a48675.tar.gz
pep8 reformatted
-rw-r--r--pysnmp/smi/mibs/PYSNMP-MIB.py43
-rw-r--r--pysnmp/smi/mibs/PYSNMP-SOURCE-MIB.py56
-rw-r--r--pysnmp/smi/mibs/PYSNMP-USM-MIB.py137
-rw-r--r--pysnmp/smi/mibs/RFC1158-MIB.py5
-rw-r--r--pysnmp/smi/mibs/RFC1213-MIB.py59
-rw-r--r--pysnmp/smi/mibs/SNMP-COMMUNITY-MIB.py180
-rw-r--r--pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py137
-rw-r--r--pysnmp/smi/mibs/SNMP-MPD-MIB.py72
-rw-r--r--pysnmp/smi/mibs/SNMP-NOTIFICATION-MIB.py226
-rw-r--r--pysnmp/smi/mibs/SNMP-PROXY-MIB.py140
-rw-r--r--pysnmp/smi/mibs/SNMP-TARGET-MIB.py245
-rw-r--r--pysnmp/smi/mibs/SNMP-USER-BASED-SM-3DES-MIB.py45
-rw-r--r--pysnmp/smi/mibs/SNMP-USER-BASED-SM-MIB.py227
-rw-r--r--pysnmp/smi/mibs/SNMP-USM-AES-MIB.py44
-rw-r--r--pysnmp/smi/mibs/SNMP-VIEW-BASED-ACM-MIB.py284
-rw-r--r--pysnmp/smi/mibs/SNMPv2-CONF.py25
-rw-r--r--pysnmp/smi/mibs/SNMPv2-MIB.py377
-rw-r--r--pysnmp/smi/mibs/SNMPv2-SMI.py268
-rw-r--r--pysnmp/smi/mibs/SNMPv2-TC.py81
-rw-r--r--pysnmp/smi/mibs/SNMPv2-TM.py28
-rw-r--r--pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py189
-rw-r--r--pysnmp/smi/mibs/instances/__PYSNMP-USM-MIB.py6
-rw-r--r--pysnmp/smi/mibs/instances/__SNMP-FRAMEWORK-MIB.py13
-rw-r--r--pysnmp/smi/mibs/instances/__SNMP-MPD-MIB.py11
-rw-r--r--pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py4
-rw-r--r--pysnmp/smi/mibs/instances/__SNMP-USER-BASED-SM-MIB.py29
-rw-r--r--pysnmp/smi/mibs/instances/__SNMP-VIEW-BASED-ACM-MIB.py2
-rw-r--r--pysnmp/smi/mibs/instances/__SNMPv2-MIB.py89
28 files changed, 2182 insertions, 840 deletions
diff --git a/pysnmp/smi/mibs/PYSNMP-MIB.py b/pysnmp/smi/mibs/PYSNMP-MIB.py
index 745c36d5..374f40eb 100644
--- a/pysnmp/smi/mibs/PYSNMP-MIB.py
+++ b/pysnmp/smi/mibs/PYSNMP-MIB.py
@@ -10,17 +10,31 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, enterprises, iso, Gauge32, ModuleIdentity, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "enterprises", "iso", "Gauge32", "ModuleIdentity", "ObjectIdentity", "Bits", "Counter32")
-( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(NotificationGroup, ModuleCompliance,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, enterprises, iso, Gauge32, ModuleIdentity, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "enterprises", "iso", "Gauge32", "ModuleIdentity",
+ "ObjectIdentity", "Bits", "Counter32")
+(DisplayString, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
pysnmp = ModuleIdentity((1, 3, 6, 1, 4, 1, 20408)).setRevisions(("2005-05-14 00:00",))
-if mibBuilder.loadTexts: pysnmp.setLastUpdated('200505140000Z')
-if mibBuilder.loadTexts: pysnmp.setOrganization('pysnmp.sf.net')
-if mibBuilder.loadTexts: pysnmp.setContactInfo('email: ilya@glas.net')
-if mibBuilder.loadTexts: pysnmp.setDescription('Top-level infrastructure of the PySNMP project enterprise MIB tree')
+if mibBuilder.loadTexts:
+ pysnmp.setLastUpdated('200505140000Z')
+if mibBuilder.loadTexts:
+ pysnmp.setOrganization('pysnmp.sf.net')
+if mibBuilder.loadTexts:
+ pysnmp.setContactInfo('email: ilya@glas.net')
+if mibBuilder.loadTexts:
+ pysnmp.setDescription('Top-level infrastructure of the PySNMP project enterprise MIB tree')
pysnmpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 1))
pysnmpExamples = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 2))
pysnmpEnumerations = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3))
@@ -34,4 +48,11 @@ pysnmpNotificationObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 4, 1))
pysnmpConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 5))
pysnmpCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 5, 1))
pysnmpGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 5, 2))
-mibBuilder.exportSymbols("PYSNMP-MIB", pysnmpAgentOIDs=pysnmpAgentOIDs, pysnmpNotificationPrefix=pysnmpNotificationPrefix, pysnmpModuleIDs=pysnmpModuleIDs, pysnmpGroups=pysnmpGroups, pysnmpCompliances=pysnmpCompliances, pysnmp=pysnmp, PYSNMP_MODULE_ID=pysnmp, pysnmpNotificationObjects=pysnmpNotificationObjects, pysnmpExamples=pysnmpExamples, pysnmpConformance=pysnmpConformance, pysnmpObjects=pysnmpObjects, pysnmpEnumerations=pysnmpEnumerations, pysnmpDomains=pysnmpDomains, pysnmpExperimental=pysnmpExperimental, pysnmpNotifications=pysnmpNotifications)
+mibBuilder.exportSymbols("PYSNMP-MIB", pysnmpAgentOIDs=pysnmpAgentOIDs,
+ pysnmpNotificationPrefix=pysnmpNotificationPrefix, pysnmpModuleIDs=pysnmpModuleIDs,
+ pysnmpGroups=pysnmpGroups, pysnmpCompliances=pysnmpCompliances, pysnmp=pysnmp,
+ PYSNMP_MODULE_ID=pysnmp, pysnmpNotificationObjects=pysnmpNotificationObjects,
+ pysnmpExamples=pysnmpExamples, pysnmpConformance=pysnmpConformance,
+ pysnmpObjects=pysnmpObjects, pysnmpEnumerations=pysnmpEnumerations,
+ pysnmpDomains=pysnmpDomains, pysnmpExperimental=pysnmpExperimental,
+ pysnmpNotifications=pysnmpNotifications)
diff --git a/pysnmp/smi/mibs/PYSNMP-SOURCE-MIB.py b/pysnmp/smi/mibs/PYSNMP-SOURCE-MIB.py
index 2b13b391..715ff181 100644
--- a/pysnmp/smi/mibs/PYSNMP-SOURCE-MIB.py
+++ b/pysnmp/smi/mibs/PYSNMP-SOURCE-MIB.py
@@ -10,29 +10,51 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( pysnmpModuleIDs, ) = mibBuilder.importSymbols("PYSNMP-MIB", "pysnmpModuleIDs")
-( snmpTargetAddrEntry, ) = mibBuilder.importSymbols("SNMP-TARGET-MIB", "snmpTargetAddrEntry")
-( NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "iso", "ObjectIdentity", "Bits", "Counter32")
-( DisplayString, TAddress, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TAddress", "TextualConvention")
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(pysnmpModuleIDs,) = mibBuilder.importSymbols("PYSNMP-MIB", "pysnmpModuleIDs")
+(snmpTargetAddrEntry,) = mibBuilder.importSymbols("SNMP-TARGET-MIB", "snmpTargetAddrEntry")
+(NotificationGroup, ModuleCompliance,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, ModuleIdentity, Gauge32, iso, ObjectIdentity, Bits, Counter32,) = mibBuilder.importSymbols(
+ "SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType",
+ "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "iso",
+ "ObjectIdentity", "Bits", "Counter32")
+(DisplayString, TAddress, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TAddress",
+ "TextualConvention")
pysnmpSourceMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8)).setRevisions(("2015-01-16 00:00",))
-if mibBuilder.loadTexts: pysnmpSourceMIB.setLastUpdated('201501160000Z')
-if mibBuilder.loadTexts: pysnmpSourceMIB.setOrganization('SNMP Laboratories')
-if mibBuilder.loadTexts: pysnmpSourceMIB.setContactInfo('E-mail: info@snmplabs.com\n Subscribe: pysnmp-users-request@lists.sourceforge.net')
-if mibBuilder.loadTexts: pysnmpSourceMIB.setDescription('This MIB module defines implementation specific objects\n\t that provide variable source transport endpoints feature to\n SNMP Engine and Applications.')
+if mibBuilder.loadTexts:
+ pysnmpSourceMIB.setLastUpdated('201501160000Z')
+if mibBuilder.loadTexts:
+ pysnmpSourceMIB.setOrganization('SNMP Laboratories')
+if mibBuilder.loadTexts:
+ pysnmpSourceMIB.setContactInfo('E-mail: info@snmplabs.com\n Subscribe: pysnmp-users-request@lists.sourceforge.net')
+if mibBuilder.loadTexts:
+ pysnmpSourceMIB.setDescription('This MIB module defines implementation specific objects\n\t that provide variable source transport endpoints feature to\n SNMP Engine and Applications.')
pysnmpSourceMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 1))
pysnmpSourceMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 2))
snmpSourceAddrTable = MibTable((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 1, 1), )
-if mibBuilder.loadTexts: snmpSourceAddrTable.setDescription('A table of transport addresses to be used as a source in the\n generation of SNMP messages. This table contains additional\n objects for the SNMP-TRANSPORT-ADDRESS::snmpSourceAddressTable.')
+if mibBuilder.loadTexts:
+ snmpSourceAddrTable.setDescription('A table of transport addresses to be used as a source in the\n generation of SNMP messages. This table contains additional\n objects for the SNMP-TRANSPORT-ADDRESS::snmpSourceAddressTable.')
snmpSourceAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 1, 1, 1), )
snmpTargetAddrEntry.registerAugmentions(("PYSNMP-SOURCE-MIB", "snmpSourceAddrEntry"))
snmpSourceAddrEntry.setIndexNames(*snmpTargetAddrEntry.getIndexNames())
-if mibBuilder.loadTexts: snmpSourceAddrEntry.setDescription('A transport address to be used as a source in the generation\n of SNMP operations.\n\n An entry containing additional management information\n applicable to a particular target.')
-snmpSourceAddrTAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 1, 1, 1, 1), TAddress()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpSourceAddrTAddress.setDescription('This object contains a transport address. The format of\n this address depends on the value of the\n snmpSourceAddrTDomain object.')
+if mibBuilder.loadTexts:
+ snmpSourceAddrEntry.setDescription('A transport address to be used as a source in the generation\n of SNMP operations.\n\n An entry containing additional management information\n applicable to a particular target.')
+snmpSourceAddrTAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 1, 1, 1, 1), TAddress()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpSourceAddrTAddress.setDescription('This object contains a transport address. The format of\n this address depends on the value of the\n snmpSourceAddrTDomain object.')
pysnmpSourceMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 2, 1))
pysnmpSourceMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 2, 2))
-mibBuilder.exportSymbols("PYSNMP-SOURCE-MIB", snmpSourceAddrTAddress=snmpSourceAddrTAddress, pysnmpSourceMIBGroups=pysnmpSourceMIBGroups, pysnmpSourceMIB=pysnmpSourceMIB, pysnmpSourceMIBConformance=pysnmpSourceMIBConformance, snmpSourceAddrTable=snmpSourceAddrTable, pysnmpSourceMIBCompliances=pysnmpSourceMIBCompliances, PYSNMP_MODULE_ID=pysnmpSourceMIB, pysnmpSourceMIBObjects=pysnmpSourceMIBObjects, snmpSourceAddrEntry=snmpSourceAddrEntry)
+mibBuilder.exportSymbols("PYSNMP-SOURCE-MIB", snmpSourceAddrTAddress=snmpSourceAddrTAddress,
+ pysnmpSourceMIBGroups=pysnmpSourceMIBGroups, pysnmpSourceMIB=pysnmpSourceMIB,
+ pysnmpSourceMIBConformance=pysnmpSourceMIBConformance, snmpSourceAddrTable=snmpSourceAddrTable,
+ pysnmpSourceMIBCompliances=pysnmpSourceMIBCompliances, PYSNMP_MODULE_ID=pysnmpSourceMIB,
+ pysnmpSourceMIBObjects=pysnmpSourceMIBObjects, snmpSourceAddrEntry=snmpSourceAddrEntry)
diff --git a/pysnmp/smi/mibs/PYSNMP-USM-MIB.py b/pysnmp/smi/mibs/PYSNMP-USM-MIB.py
index 457d8916..bca52a90 100644
--- a/pysnmp/smi/mibs/PYSNMP-USM-MIB.py
+++ b/pysnmp/smi/mibs/PYSNMP-USM-MIB.py
@@ -10,54 +10,113 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( pysnmpModuleIDs, ) = mibBuilder.importSymbols("PYSNMP-MIB", "pysnmpModuleIDs")
-( SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
-( usmUserEntry, ) = mibBuilder.importSymbols("SNMP-USER-BASED-SM-MIB", "usmUserEntry")
-( NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "iso", "ObjectIdentity", "Bits", "Counter32")
-( DisplayString, RowStatus, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention")
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(pysnmpModuleIDs,) = mibBuilder.importSymbols("PYSNMP-MIB", "pysnmpModuleIDs")
+(SnmpAdminString,) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
+(usmUserEntry,) = mibBuilder.importSymbols("SNMP-USER-BASED-SM-MIB", "usmUserEntry")
+(NotificationGroup, ModuleCompliance,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, ModuleIdentity, Gauge32, iso, ObjectIdentity, Bits, Counter32,) = mibBuilder.importSymbols(
+ "SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType",
+ "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "iso",
+ "ObjectIdentity", "Bits", "Counter32")
+(DisplayString, RowStatus, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus",
+ "TextualConvention")
pysnmpUsmMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1)).setRevisions(("2005-05-14 00:00",))
-if mibBuilder.loadTexts: pysnmpUsmMIB.setLastUpdated('200505140000Z')
-if mibBuilder.loadTexts: pysnmpUsmMIB.setOrganization('The PySNMP project')
-if mibBuilder.loadTexts: pysnmpUsmMIB.setContactInfo('E-mail: ilya@glas.net\n Subscribe: pysnmp-users-request@lists.sourceforge.net')
-if mibBuilder.loadTexts: pysnmpUsmMIB.setDescription('This MIB module defines objects specific to User\n Security Model (USM) implementation at PySNMP.')
+if mibBuilder.loadTexts:
+ pysnmpUsmMIB.setLastUpdated('200505140000Z')
+if mibBuilder.loadTexts:
+ pysnmpUsmMIB.setOrganization('The PySNMP project')
+if mibBuilder.loadTexts:
+ pysnmpUsmMIB.setContactInfo('E-mail: ilya@glas.net\n Subscribe: pysnmp-users-request@lists.sourceforge.net')
+if mibBuilder.loadTexts:
+ pysnmpUsmMIB.setDescription('This MIB module defines objects specific to User\n Security Model (USM) implementation at PySNMP.')
pysnmpUsmMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1))
pysnmpUsmMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 2))
pysnmpUsmCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 1))
-pysnmpUsmDiscoverable = MibScalar((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1,)).clone(namedValues=NamedValues(("notDiscoverable", 0), ("discoverable", 1),)).clone('discoverable')).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: pysnmpUsmDiscoverable.setDescription('Whether SNMP engine would support its discovery by\n responding to unknown clients.')
-pysnmpUsmDiscovery = MibScalar((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1,)).clone(namedValues=NamedValues(("doNotDiscover", 0), ("doDiscover", 1),)).clone('doDiscover')).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: pysnmpUsmDiscovery.setDescription('Whether SNMP engine would try to figure out the EngineIDs\n of its peers by sending discover requests.')
+pysnmpUsmDiscoverable = MibScalar((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 1, 1),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, )).clone(
+ namedValues=NamedValues(("notDiscoverable", 0), ("discoverable", 1), )).clone(
+ 'discoverable')).setMaxAccess("readwrite")
+if mibBuilder.loadTexts:
+ pysnmpUsmDiscoverable.setDescription('Whether SNMP engine would support its discovery by\n responding to unknown clients.')
+pysnmpUsmDiscovery = MibScalar((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 1, 2),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(0, 1, )).clone(
+ namedValues=NamedValues(("doNotDiscover", 0), ("doDiscover", 1), )).clone(
+ 'doDiscover')).setMaxAccess("readwrite")
+if mibBuilder.loadTexts:
+ pysnmpUsmDiscovery.setDescription('Whether SNMP engine would try to figure out the EngineIDs\n of its peers by sending discover requests.')
pysnmpUsmUser = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3))
pysnmpUsmSecretTable = MibTable((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2), )
-if mibBuilder.loadTexts: pysnmpUsmSecretTable.setDescription("The table of USM users passphrases configured in the SNMP \n engine's Local Configuration Datastore (LCD).")
-pysnmpUsmSecretEntry = MibTableRow((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1), ).setIndexNames((1, "PYSNMP-USM-MIB", "pysnmpUsmSecretUserName"))
-if mibBuilder.loadTexts: pysnmpUsmSecretEntry.setDescription('Information about a particular USM user credentials.')
-pysnmpUsmSecretUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
-if mibBuilder.loadTexts: pysnmpUsmSecretUserName.setDescription('The username string for which a row in this table\n represents a configuration.')
-pysnmpUsmSecretAuthKey = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1, 2), OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(subtypeSpec=ValueSizeConstraint(8,65535)))
-if mibBuilder.loadTexts: pysnmpUsmSecretAuthKey.setDescription("User's authentication passphrase used for localized key generation.")
-pysnmpUsmSecretPrivKey = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1, 3), OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(subtypeSpec=ValueSizeConstraint(8,65535)))
-if mibBuilder.loadTexts: pysnmpUsmSecretPrivKey.setDescription("User's encryption passphrase used for localized key generation.")
-pysnmpUsmSecretStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1, 4), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: pysnmpUsmSecretStatus.setDescription('Table status')
+if mibBuilder.loadTexts:
+ pysnmpUsmSecretTable.setDescription("The table of USM users passphrases configured in the SNMP \n engine's Local Configuration Datastore (LCD).")
+pysnmpUsmSecretEntry = MibTableRow((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1), ).setIndexNames(
+ (1, "PYSNMP-USM-MIB", "pysnmpUsmSecretUserName"))
+if mibBuilder.loadTexts:
+ pysnmpUsmSecretEntry.setDescription('Information about a particular USM user credentials.')
+pysnmpUsmSecretUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1, 1),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
+if mibBuilder.loadTexts:
+ pysnmpUsmSecretUserName.setDescription('The username string for which a row in this table\n represents a configuration.')
+pysnmpUsmSecretAuthKey = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1, 2),
+ OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(
+ subtypeSpec=ValueSizeConstraint(8, 65535)))
+if mibBuilder.loadTexts:
+ pysnmpUsmSecretAuthKey.setDescription("User's authentication passphrase used for localized key generation.")
+pysnmpUsmSecretPrivKey = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1, 3),
+ OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(
+ subtypeSpec=ValueSizeConstraint(8, 65535)))
+if mibBuilder.loadTexts:
+ pysnmpUsmSecretPrivKey.setDescription("User's encryption passphrase used for localized key generation.")
+pysnmpUsmSecretStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 2, 1, 4), RowStatus()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ pysnmpUsmSecretStatus.setDescription('Table status')
pysnmpUsmKeyTable = MibTable((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3), )
-if mibBuilder.loadTexts: pysnmpUsmKeyTable.setDescription("The table of USM users localized keys configured in the \n SNMP engine's Local Configuration Datastore (LCD).")
+if mibBuilder.loadTexts:
+ pysnmpUsmKeyTable.setDescription("The table of USM users localized keys configured in the \n SNMP engine's Local Configuration Datastore (LCD).")
pysnmpUsmKeyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3, 1), )
usmUserEntry.registerAugmentions(("PYSNMP-USM-MIB", "pysnmpUsmKeyEntry"))
pysnmpUsmKeyEntry.setIndexNames(*usmUserEntry.getIndexNames())
-if mibBuilder.loadTexts: pysnmpUsmKeyEntry.setDescription('Information about a particular USM user credentials.')
-pysnmpUsmKeyAuthLocalized = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3, 1, 1), OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(subtypeSpec=ValueSizeConstraint(8,32)))
-if mibBuilder.loadTexts: pysnmpUsmKeyAuthLocalized.setDescription("User's localized key used for authentication.")
-pysnmpUsmKeyPrivLocalized = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3, 1, 2), OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(subtypeSpec=ValueSizeConstraint(8,32)))
-if mibBuilder.loadTexts: pysnmpUsmKeyPrivLocalized.setDescription("User's localized key used for encryption.")
-pysnmpUsmKeyAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3, 1, 3), OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(subtypeSpec=ValueSizeConstraint(8,32)))
-if mibBuilder.loadTexts: pysnmpUsmKeyAuth.setDescription("User's non-localized key used for authentication.")
-pysnmpUsmKeyPriv = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3, 1, 4), OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(subtypeSpec=ValueSizeConstraint(8,32)))
-if mibBuilder.loadTexts: pysnmpUsmKeyPriv.setDescription("User's non-localized key used for encryption.")
+if mibBuilder.loadTexts:
+ pysnmpUsmKeyEntry.setDescription('Information about a particular USM user credentials.')
+pysnmpUsmKeyAuthLocalized = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3, 1, 1),
+ OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(
+ subtypeSpec=ValueSizeConstraint(8, 32)))
+if mibBuilder.loadTexts:
+ pysnmpUsmKeyAuthLocalized.setDescription("User's localized key used for authentication.")
+pysnmpUsmKeyPrivLocalized = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3, 1, 2),
+ OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(
+ subtypeSpec=ValueSizeConstraint(8, 32)))
+if mibBuilder.loadTexts:
+ pysnmpUsmKeyPrivLocalized.setDescription("User's localized key used for encryption.")
+pysnmpUsmKeyAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3, 1, 3),
+ OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(
+ subtypeSpec=ValueSizeConstraint(8, 32)))
+if mibBuilder.loadTexts:
+ pysnmpUsmKeyAuth.setDescription("User's non-localized key used for authentication.")
+pysnmpUsmKeyPriv = MibTableColumn((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 1, 3, 1, 4),
+ OctetString('\x00\x00\x00\x00\x00\x00\x00\x00').subtype(
+ subtypeSpec=ValueSizeConstraint(8, 32)))
+if mibBuilder.loadTexts:
+ pysnmpUsmKeyPriv.setDescription("User's non-localized key used for encryption.")
pysnmpUsmMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 2, 1))
pysnmpUsmMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 20408, 3, 1, 1, 2, 2))
-mibBuilder.exportSymbols("PYSNMP-USM-MIB", pysnmpUsmCfg=pysnmpUsmCfg, PYSNMP_MODULE_ID=pysnmpUsmMIB, pysnmpUsmKeyAuthLocalized=pysnmpUsmKeyAuthLocalized, pysnmpUsmKeyTable=pysnmpUsmKeyTable, pysnmpUsmDiscovery=pysnmpUsmDiscovery, pysnmpUsmMIBCompliances=pysnmpUsmMIBCompliances, pysnmpUsmSecretAuthKey=pysnmpUsmSecretAuthKey, pysnmpUsmSecretStatus=pysnmpUsmSecretStatus, pysnmpUsmKeyPrivLocalized=pysnmpUsmKeyPrivLocalized, pysnmpUsmKeyEntry=pysnmpUsmKeyEntry, pysnmpUsmKeyPriv=pysnmpUsmKeyPriv, pysnmpUsmSecretTable=pysnmpUsmSecretTable, pysnmpUsmUser=pysnmpUsmUser, pysnmpUsmMIBGroups=pysnmpUsmMIBGroups, pysnmpUsmMIB=pysnmpUsmMIB, pysnmpUsmSecretEntry=pysnmpUsmSecretEntry, pysnmpUsmDiscoverable=pysnmpUsmDiscoverable, pysnmpUsmMIBObjects=pysnmpUsmMIBObjects, pysnmpUsmSecretUserName=pysnmpUsmSecretUserName, pysnmpUsmSecretPrivKey=pysnmpUsmSecretPrivKey, pysnmpUsmKeyAuth=pysnmpUsmKeyAuth, pysnmpUsmMIBConformance=pysnmpUsmMIBConformance)
+mibBuilder.exportSymbols("PYSNMP-USM-MIB", pysnmpUsmCfg=pysnmpUsmCfg, PYSNMP_MODULE_ID=pysnmpUsmMIB,
+ pysnmpUsmKeyAuthLocalized=pysnmpUsmKeyAuthLocalized, pysnmpUsmKeyTable=pysnmpUsmKeyTable,
+ pysnmpUsmDiscovery=pysnmpUsmDiscovery, pysnmpUsmMIBCompliances=pysnmpUsmMIBCompliances,
+ pysnmpUsmSecretAuthKey=pysnmpUsmSecretAuthKey, pysnmpUsmSecretStatus=pysnmpUsmSecretStatus,
+ pysnmpUsmKeyPrivLocalized=pysnmpUsmKeyPrivLocalized, pysnmpUsmKeyEntry=pysnmpUsmKeyEntry,
+ pysnmpUsmKeyPriv=pysnmpUsmKeyPriv, pysnmpUsmSecretTable=pysnmpUsmSecretTable,
+ pysnmpUsmUser=pysnmpUsmUser, pysnmpUsmMIBGroups=pysnmpUsmMIBGroups, pysnmpUsmMIB=pysnmpUsmMIB,
+ pysnmpUsmSecretEntry=pysnmpUsmSecretEntry, pysnmpUsmDiscoverable=pysnmpUsmDiscoverable,
+ pysnmpUsmMIBObjects=pysnmpUsmMIBObjects, pysnmpUsmSecretUserName=pysnmpUsmSecretUserName,
+ pysnmpUsmSecretPrivKey=pysnmpUsmSecretPrivKey, pysnmpUsmKeyAuth=pysnmpUsmKeyAuth,
+ pysnmpUsmMIBConformance=pysnmpUsmMIBConformance)
diff --git a/pysnmp/smi/mibs/RFC1158-MIB.py b/pysnmp/smi/mibs/RFC1158-MIB.py
index 053544cc..b813e780 100644
--- a/pysnmp/smi/mibs/RFC1158-MIB.py
+++ b/pysnmp/smi/mibs/RFC1158-MIB.py
@@ -8,7 +8,10 @@
# It is a stripped version of MIB that contains only symbols that is
# unique to SMIv1 and have no analogues in SMIv2
#
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, iso, Gauge32, MibIdentifier, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "iso", "Gauge32", "MibIdentifier", "Bits", "Counter32")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, iso, Gauge32, MibIdentifier, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "TimeTicks", "iso", "Gauge32", "MibIdentifier", "Bits",
+ "Counter32")
snmpInBadTypes = MibScalar((1, 3, 6, 1, 2, 1, 11, 7), Counter32()).setMaxAccess("readonly")
snmpOutReadOnlys = MibScalar((1, 3, 6, 1, 2, 1, 11, 23), Counter32()).setMaxAccess("readonly")
mibBuilder.exportSymbols("RFC1158-MIB", snmpOutReadOnlys=snmpOutReadOnlys, snmpInBadTypes=snmpInBadTypes)
diff --git a/pysnmp/smi/mibs/RFC1213-MIB.py b/pysnmp/smi/mibs/RFC1213-MIB.py
index 448fbfdf..21e30eaf 100644
--- a/pysnmp/smi/mibs/RFC1213-MIB.py
+++ b/pysnmp/smi/mibs/RFC1213-MIB.py
@@ -8,11 +8,18 @@
# It is a stripped version of MIB that contains only symbols that is
# unique to SMIv1 and have no analogues in SMIv2
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, mib_2, IpAddress, TimeTicks, iso, Gauge32, MibIdentifier, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "mib-2", "IpAddress", "TimeTicks", "iso", "Gauge32", "MibIdentifier", "Bits", "Counter32")
-( DisplayString, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString")
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, mib_2, IpAddress, TimeTicks, iso, Gauge32, MibIdentifier,
+ Bits, Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "mib-2", "IpAddress", "TimeTicks", "iso", "Gauge32",
+ "MibIdentifier", "Bits", "Counter32")
+(DisplayString,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString")
at = MibIdentifier((1, 3, 6, 1, 2, 1, 3))
ip = MibIdentifier((1, 3, 6, 1, 2, 1, 4))
egp = MibIdentifier((1, 3, 6, 1, 2, 1, 8))
@@ -30,8 +37,15 @@ ipRouteMetric2 = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 4), Integer32()).se
ipRouteMetric3 = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 5), Integer32()).setMaxAccess("readwrite")
ipRouteMetric4 = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 6), Integer32()).setMaxAccess("readwrite")
ipRouteNextHop = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 7), IpAddress()).setMaxAccess("readwrite")
-ipRouteType = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 8), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4,)).clone(namedValues=NamedValues(("other", 1), ("invalid", 2), ("direct", 3), ("indirect", 4),))).setMaxAccess("readwrite")
-ipRouteProto = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 9), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,)).clone(namedValues=NamedValues(("other", 1), ("local", 2), ("netmgmt", 3), ("icmp", 4), ("egp", 5), ("ggp", 6), ("hello", 7), ("rip", 8), ("is-is", 9), ("es-is", 10), ("ciscoIgrp", 11), ("bbnSpfIgp", 12), ("ospf", 13), ("bgp", 14),))).setMaxAccess("readonly")
+ipRouteType = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 8),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, )).clone(
+ namedValues=NamedValues(("other", 1), ("invalid", 2), ("direct", 3),
+ ("indirect", 4), ))).setMaxAccess("readwrite")
+ipRouteProto = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 9), Integer32().subtype(
+ subtypeSpec=SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, )).clone(
+ namedValues=NamedValues(("other", 1), ("local", 2), ("netmgmt", 3), ("icmp", 4), ("egp", 5), ("ggp", 6),
+ ("hello", 7), ("rip", 8), ("is-is", 9), ("es-is", 10), ("ciscoIgrp", 11), ("bbnSpfIgp", 12),
+ ("ospf", 13), ("bgp", 14), ))).setMaxAccess("readonly")
ipRouteAge = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 10), Integer32()).setMaxAccess("readwrite")
ipRouteMask = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 11), IpAddress()).setMaxAccess("readwrite")
ipRouteMetric5 = MibTableColumn((1, 3, 6, 1, 2, 1, 4, 21, 1, 12), Integer32()).setMaxAccess("readwrite")
@@ -43,7 +57,10 @@ egpOutMsgs = MibScalar((1, 3, 6, 1, 2, 1, 8, 3), Counter32()).setMaxAccess("read
egpOutErrors = MibScalar((1, 3, 6, 1, 2, 1, 8, 4), Counter32()).setMaxAccess("readonly")
egpNeighTable = MibTable((1, 3, 6, 1, 2, 1, 8, 5), )
egpNeighEntry = MibTableRow((1, 3, 6, 1, 2, 1, 8, 5, 1), ).setIndexNames((0, "RFC1213-MIB", "egpNeighAddr"))
-egpNeighState = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 1), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, 5,)).clone(namedValues=NamedValues(("idle", 1), ("acquisition", 2), ("down", 3), ("up", 4), ("cease", 5),))).setMaxAccess("readonly")
+egpNeighState = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 1),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, 5, )).clone(
+ namedValues=NamedValues(("idle", 1), ("acquisition", 2), ("down", 3), ("up", 4),
+ ("cease", 5), ))).setMaxAccess("readonly")
egpNeighAddr = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 2), IpAddress()).setMaxAccess("readonly")
egpNeighAs = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 3), Integer32()).setMaxAccess("readonly")
egpNeighInMsgs = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 4), Counter32()).setMaxAccess("readonly")
@@ -56,7 +73,27 @@ egpNeighStateUps = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 10), Counter32()).
egpNeighStateDowns = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 11), Counter32()).setMaxAccess("readonly")
egpNeighIntervalHello = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 12), Integer32()).setMaxAccess("readonly")
egpNeighIntervalPoll = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 13), Integer32()).setMaxAccess("readonly")
-egpNeighMode = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 14), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("active", 1), ("passive", 2),))).setMaxAccess("readonly")
-egpNeighEventTrigger = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 15), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("start", 1), ("stop", 2),))).setMaxAccess("readwrite")
+egpNeighMode = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 14),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, )).clone(
+ namedValues=NamedValues(("active", 1), ("passive", 2), ))).setMaxAccess("readonly")
+egpNeighEventTrigger = MibTableColumn((1, 3, 6, 1, 2, 1, 8, 5, 1, 15),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, )).clone(
+ namedValues=NamedValues(("start", 1), ("stop", 2), ))).setMaxAccess(
+ "readwrite")
egpAs = MibScalar((1, 3, 6, 1, 2, 1, 8, 6), Integer32()).setMaxAccess("readonly")
-mibBuilder.exportSymbols("RFC1213-MIB", atPhysAddress=atPhysAddress, egpNeighMode=egpNeighMode, egpOutMsgs=egpOutMsgs, ipRouteAge=ipRouteAge, ipRouteEntry=ipRouteEntry, egpNeighStateUps=egpNeighStateUps, ipRouteInfo=ipRouteInfo, ipRoutingDiscards=ipRoutingDiscards, egpInErrors=egpInErrors, egpOutErrors=egpOutErrors, ipRouteTable=ipRouteTable, egpNeighEventTrigger=egpNeighEventTrigger, egpNeighTable=egpNeighTable, ipRouteProto=ipRouteProto, egpNeighStateDowns=egpNeighStateDowns, ipRouteNextHop=ipRouteNextHop, ipRouteMetric3=ipRouteMetric3, ipRouteMetric4=ipRouteMetric4, ipRouteDest=ipRouteDest, ipRouteMetric2=ipRouteMetric2, egpNeighState=egpNeighState, atNetAddress=atNetAddress, egpNeighOutErrs=egpNeighOutErrs, ipRouteIfIndex=ipRouteIfIndex, atIfIndex=atIfIndex, ipRouteMask=ipRouteMask, ipRouteMetric5=ipRouteMetric5, ipRouteType=ipRouteType, egpNeighIntervalPoll=egpNeighIntervalPoll, egpNeighIntervalHello=egpNeighIntervalHello, atTable=atTable, ipRouteMetric1=ipRouteMetric1, egpNeighInErrMsgs=egpNeighInErrMsgs, egpNeighInErrs=egpNeighInErrs, egpAs=egpAs, egpNeighAddr=egpNeighAddr, egpNeighEntry=egpNeighEntry, egpNeighOutErrMsgs=egpNeighOutErrMsgs, at=at, atEntry=atEntry, egpNeighOutMsgs=egpNeighOutMsgs, egpNeighInMsgs=egpNeighInMsgs, egpInMsgs=egpInMsgs, egpNeighAs=egpNeighAs, egp=egp)
+mibBuilder.exportSymbols("RFC1213-MIB", atPhysAddress=atPhysAddress, egpNeighMode=egpNeighMode, egpOutMsgs=egpOutMsgs,
+ ipRouteAge=ipRouteAge, ipRouteEntry=ipRouteEntry, egpNeighStateUps=egpNeighStateUps,
+ ipRouteInfo=ipRouteInfo, ipRoutingDiscards=ipRoutingDiscards, egpInErrors=egpInErrors,
+ egpOutErrors=egpOutErrors, ipRouteTable=ipRouteTable,
+ egpNeighEventTrigger=egpNeighEventTrigger, egpNeighTable=egpNeighTable,
+ ipRouteProto=ipRouteProto, egpNeighStateDowns=egpNeighStateDowns,
+ ipRouteNextHop=ipRouteNextHop, ipRouteMetric3=ipRouteMetric3, ipRouteMetric4=ipRouteMetric4,
+ ipRouteDest=ipRouteDest, ipRouteMetric2=ipRouteMetric2, egpNeighState=egpNeighState,
+ atNetAddress=atNetAddress, egpNeighOutErrs=egpNeighOutErrs, ipRouteIfIndex=ipRouteIfIndex,
+ atIfIndex=atIfIndex, ipRouteMask=ipRouteMask, ipRouteMetric5=ipRouteMetric5,
+ ipRouteType=ipRouteType, egpNeighIntervalPoll=egpNeighIntervalPoll,
+ egpNeighIntervalHello=egpNeighIntervalHello, atTable=atTable, ipRouteMetric1=ipRouteMetric1,
+ egpNeighInErrMsgs=egpNeighInErrMsgs, egpNeighInErrs=egpNeighInErrs, egpAs=egpAs,
+ egpNeighAddr=egpNeighAddr, egpNeighEntry=egpNeighEntry, egpNeighOutErrMsgs=egpNeighOutErrMsgs,
+ at=at, atEntry=atEntry, egpNeighOutMsgs=egpNeighOutMsgs, egpNeighInMsgs=egpNeighInMsgs,
+ egpInMsgs=egpInMsgs, egpNeighAs=egpNeighAs, egp=egp)
diff --git a/pysnmp/smi/mibs/SNMP-COMMUNITY-MIB.py b/pysnmp/smi/mibs/SNMP-COMMUNITY-MIB.py
index 54e80eb5..b424475d 100644
--- a/pysnmp/smi/mibs/SNMP-COMMUNITY-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-COMMUNITY-MIB.py
@@ -10,63 +10,153 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( SnmpAdminString, SnmpEngineID, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString", "SnmpEngineID")
-( snmpTargetAddrEntry, SnmpTagValue, ) = mibBuilder.importSymbols("SNMP-TARGET-MIB", "snmpTargetAddrEntry", "SnmpTagValue")
-( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, Bits, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, IpAddress, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "Bits", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso", "ObjectIdentity", "IpAddress", "Counter32")
-( StorageType, DisplayString, RowStatus, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "StorageType", "DisplayString", "RowStatus", "TextualConvention")
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(SnmpAdminString, SnmpEngineID,) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString", "SnmpEngineID")
+(snmpTargetAddrEntry, SnmpTagValue,) = mibBuilder.importSymbols("SNMP-TARGET-MIB", "snmpTargetAddrEntry",
+ "SnmpTagValue")
+(NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance", "ObjectGroup")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, Bits, TimeTicks,
+ Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, IpAddress,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "Bits", "TimeTicks",
+ "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso",
+ "ObjectIdentity", "IpAddress", "Counter32")
+(StorageType, DisplayString, RowStatus, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "StorageType",
+ "DisplayString", "RowStatus",
+ "TextualConvention")
snmpCommunityMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 18)).setRevisions(("2000-03-06 00:00", "1999-05-13 00:00",))
-if mibBuilder.loadTexts: snmpCommunityMIB.setLastUpdated('200003060000Z')
-if mibBuilder.loadTexts: snmpCommunityMIB.setOrganization('SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpCommunityMIB.setContactInfo('WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In msg body: subscribe snmpv3\n\n Chair: Russ Mundy\n TIS Labs at Network Associates\n Postal: 3060 Washington Rd\n Glenwood MD 21738\n USA\n Email: mundy@tislabs.com\n Phone: +1-301-854-6889\n\n Co-editor: Rob Frye\n CoSine Communications\n Postal: 1200 Bridge Parkway\n Redwood City, CA 94065\n USA\n E-mail: rfrye@cosinecom.com\n Phone: +1 703 725 1130\n\n Co-editor: David B. Levi\n Nortel Networks\n Postal: 3505 Kesterwood Drive\n Knoxville, TN 37918\n E-mail: dlevi@nortelnetworks.com\n Phone: +1 423 686 0432\n\n Co-editor: Shawn A. Routhier\n Integrated Systems Inc.\n Postal: 333 North Ave 4th Floor\n Wakefield, MA 01880\n E-mail: sar@epilogue.com\n Phone: +1 781 245 0804\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n Postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n Email: bwijnen@lucent.com\n Phone: +31-348-407-775\n ')
-if mibBuilder.loadTexts: snmpCommunityMIB.setDescription('This MIB module defines objects to help support coexistence\n between SNMPv1, SNMPv2c, and SNMPv3.')
+if mibBuilder.loadTexts:
+ snmpCommunityMIB.setLastUpdated('200003060000Z')
+if mibBuilder.loadTexts:
+ snmpCommunityMIB.setOrganization('SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpCommunityMIB.setContactInfo(
+ 'WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In msg body: subscribe snmpv3\n\n Chair: Russ Mundy\n TIS Labs at Network Associates\n Postal: 3060 Washington Rd\n Glenwood MD 21738\n USA\n Email: mundy@tislabs.com\n Phone: +1-301-854-6889\n\n Co-editor: Rob Frye\n CoSine Communications\n Postal: 1200 Bridge Parkway\n Redwood City, CA 94065\n USA\n E-mail: rfrye@cosinecom.com\n Phone: +1 703 725 1130\n\n Co-editor: David B. Levi\n Nortel Networks\n Postal: 3505 Kesterwood Drive\n Knoxville, TN 37918\n E-mail: dlevi@nortelnetworks.com\n Phone: +1 423 686 0432\n\n Co-editor: Shawn A. Routhier\n Integrated Systems Inc.\n Postal: 333 North Ave 4th Floor\n Wakefield, MA 01880\n E-mail: sar@epilogue.com\n Phone: +1 781 245 0804\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n Postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n Email: bwijnen@lucent.com\n Phone: +31-348-407-775\n ')
+if mibBuilder.loadTexts:
+ snmpCommunityMIB.setDescription(
+ 'This MIB module defines objects to help support coexistence\n between SNMPv1, SNMPv2c, and SNMPv3.')
snmpCommunityMIBObjects = MibIdentifier((1, 3, 6, 1, 6, 3, 18, 1))
snmpCommunityMIBConformance = MibIdentifier((1, 3, 6, 1, 6, 3, 18, 2))
snmpCommunityTable = MibTable((1, 3, 6, 1, 6, 3, 18, 1, 1), )
-if mibBuilder.loadTexts: snmpCommunityTable.setDescription("The table of community strings configured in the SNMP\n engine's Local Configuration Datastore (LCD).")
-snmpCommunityEntry = MibTableRow((1, 3, 6, 1, 6, 3, 18, 1, 1, 1), ).setIndexNames((1, "SNMP-COMMUNITY-MIB", "snmpCommunityIndex"))
-if mibBuilder.loadTexts: snmpCommunityEntry.setDescription('Information about a particular community string.')
-snmpCommunityIndex = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
-if mibBuilder.loadTexts: snmpCommunityIndex.setDescription('The unique index value of a row in this table.')
+if mibBuilder.loadTexts:
+ snmpCommunityTable.setDescription(
+ "The table of community strings configured in the SNMP\n engine's Local Configuration Datastore (LCD).")
+snmpCommunityEntry = MibTableRow((1, 3, 6, 1, 6, 3, 18, 1, 1, 1), ).setIndexNames(
+ (1, "SNMP-COMMUNITY-MIB", "snmpCommunityIndex"))
+if mibBuilder.loadTexts:
+ snmpCommunityEntry.setDescription('Information about a particular community string.')
+snmpCommunityIndex = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 1),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
+if mibBuilder.loadTexts:
+ snmpCommunityIndex.setDescription('The unique index value of a row in this table.')
snmpCommunityName = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 2), OctetString()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpCommunityName.setDescription('The community string for which a row in this table\n represents a configuration.')
-snmpCommunitySecurityName = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32))).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpCommunitySecurityName.setDescription('A human readable string representing the corresponding\n value of snmpCommunityName in a Security Model\n independent format.')
-snmpCommunityContextEngineID = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4), SnmpEngineID()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpCommunityContextEngineID.setDescription('The contextEngineID indicating the location of the\n context in which management information is accessed\n when using the community string specified by the\n corresponding instance of snmpCommunityName.\n\n The default value is the snmpEngineID of the entity in\n which this object is instantiated.')
-snmpCommunityContextName = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32)).clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpCommunityContextName.setDescription('The context in which management information is accessed\n when using the community string specified by the corresponding\n instance of snmpCommunityName.')
-snmpCommunityTransportTag = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6), SnmpTagValue().clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpCommunityTransportTag.setDescription('This object specifies a set of transport endpoints\n from which a command responder application will accept\n management requests. If a management request containing\n this community is received on a transport endpoint other\n than the transport endpoints identified by this object,\n the request is deemed unauthentic.\n\n The transports identified by this object are specified\n\n in the snmpTargetAddrTable. Entries in that table\n whose snmpTargetAddrTagList contains this tag value\n are identified.\n\n If the value of this object has zero-length, transport\n endpoints are not checked when authenticating messages\n containing this community string.')
+if mibBuilder.loadTexts:
+ snmpCommunityName.setDescription(
+ 'The community string for which a row in this table\n represents a configuration.')
+snmpCommunitySecurityName = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 3), SnmpAdminString().subtype(
+ subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpCommunitySecurityName.setDescription(
+ 'A human readable string representing the corresponding\n value of snmpCommunityName in a Security Model\n independent format.')
+snmpCommunityContextEngineID = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 4), SnmpEngineID()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpCommunityContextEngineID.setDescription(
+ 'The contextEngineID indicating the location of the\n context in which management information is accessed\n when using the community string specified by the\n corresponding instance of snmpCommunityName.\n\n The default value is the snmpEngineID of the entity in\n which this object is instantiated.')
+snmpCommunityContextName = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 5),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone(
+ hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpCommunityContextName.setDescription(
+ 'The context in which management information is accessed\n when using the community string specified by the corresponding\n instance of snmpCommunityName.')
+snmpCommunityTransportTag = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 6),
+ SnmpTagValue().clone(hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpCommunityTransportTag.setDescription(
+ 'This object specifies a set of transport endpoints\n from which a command responder application will accept\n management requests. If a management request containing\n this community is received on a transport endpoint other\n than the transport endpoints identified by this object,\n the request is deemed unauthentic.\n\n The transports identified by this object are specified\n\n in the snmpTargetAddrTable. Entries in that table\n whose snmpTargetAddrTagList contains this tag value\n are identified.\n\n If the value of this object has zero-length, transport\n endpoints are not checked when authenticating messages\n containing this community string.')
snmpCommunityStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 7), StorageType()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpCommunityStorageType.setDescription("The storage type for this conceptual row in the\n snmpCommunityTable. Conceptual rows having the value\n 'permanent' need not allow write-access to any\n columnar object in the row.")
+if mibBuilder.loadTexts:
+ snmpCommunityStorageType.setDescription(
+ "The storage type for this conceptual row in the\n snmpCommunityTable. Conceptual rows having the value\n 'permanent' need not allow write-access to any\n columnar object in the row.")
snmpCommunityStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 1, 1, 8), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpCommunityStatus.setDescription('The status of this conceptual row in the snmpCommunityTable.\n\n An entry in this table is not qualified for activation\n until instances of all corresponding columns have been\n initialized, either through default values, or through\n Set operations. The snmpCommunityName and\n snmpCommunitySecurityName objects must be explicitly set.\n\n There is no restriction on setting columns in this table\n when the value of snmpCommunityStatus is active(1).')
+if mibBuilder.loadTexts:
+ snmpCommunityStatus.setDescription(
+ 'The status of this conceptual row in the snmpCommunityTable.\n\n An entry in this table is not qualified for activation\n until instances of all corresponding columns have been\n initialized, either through default values, or through\n Set operations. The snmpCommunityName and\n snmpCommunitySecurityName objects must be explicitly set.\n\n There is no restriction on setting columns in this table\n when the value of snmpCommunityStatus is active(1).')
snmpTargetAddrExtTable = MibTable((1, 3, 6, 1, 6, 3, 18, 1, 2), )
-if mibBuilder.loadTexts: snmpTargetAddrExtTable.setDescription('The table of mask and mms values associated with the\n\n snmpTargetAddrTable.\n\n The snmpTargetAddrExtTable augments the\n snmpTargetAddrTable with a transport address mask value\n and a maximum message size value. The transport address\n mask allows entries in the snmpTargetAddrTable to define\n a set of addresses instead of just a single address.\n The maximum message size value allows the maximum\n message size of another SNMP entity to be configured for\n use in SNMPv1 (and SNMPv2c) transactions, where the\n message format does not specify a maximum message size.')
+if mibBuilder.loadTexts:
+ snmpTargetAddrExtTable.setDescription(
+ 'The table of mask and mms values associated with the\n\n snmpTargetAddrTable.\n\n The snmpTargetAddrExtTable augments the\n snmpTargetAddrTable with a transport address mask value\n and a maximum message size value. The transport address\n mask allows entries in the snmpTargetAddrTable to define\n a set of addresses instead of just a single address.\n The maximum message size value allows the maximum\n message size of another SNMP entity to be configured for\n use in SNMPv1 (and SNMPv2c) transactions, where the\n message format does not specify a maximum message size.')
snmpTargetAddrExtEntry = MibTableRow((1, 3, 6, 1, 6, 3, 18, 1, 2, 1), )
snmpTargetAddrEntry.registerAugmentions(("SNMP-COMMUNITY-MIB", "snmpTargetAddrExtEntry"))
snmpTargetAddrExtEntry.setIndexNames(*snmpTargetAddrEntry.getIndexNames())
-if mibBuilder.loadTexts: snmpTargetAddrExtEntry.setDescription('Information about a particular mask and mms value.')
-snmpTargetAddrTMask = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 2, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,255)).clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrTMask.setDescription('The mask value associated with an entry in the\n snmpTargetAddrTable. The value of this object must\n have the same length as the corresponding instance of\n snmpTargetAddrTAddress, or must have length 0. An\n attempt to set it to any other value will result in\n an inconsistentValue error.\n\n The value of this object allows an entry in the\n snmpTargetAddrTable to specify multiple addresses.\n The mask value is used to select which bits of\n a transport address must match bits of the corresponding\n instance of snmpTargetAddrTAddress, in order for the\n transport address to match a particular entry in the\n snmpTargetAddrTable. Bits which are 1 in the mask\n value indicate bits in the transport address which\n must match bits in the snmpTargetAddrTAddress value.\n\n Bits which are 0 in the mask indicate bits in the\n transport address which need not match. If the\n length of the mask is 0, the mask should be treated\n as if all its bits were 1 and its length were equal\n to the length of the corresponding value of\n snmpTargetAddrTable.\n\n This object may not be modified while the value of the\n corresponding instance of snmpTargetAddrRowStatus is\n active(1). An attempt to set this object in this case\n will result in an inconsistentValue error.')
-snmpTargetAddrMMS = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0,0),ValueRangeConstraint(484,2147483647),)).clone(484)).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrMMS.setDescription('The maximum message size value associated with an entry\n in the snmpTargetAddrTable.')
+if mibBuilder.loadTexts:
+ snmpTargetAddrExtEntry.setDescription('Information about a particular mask and mms value.')
+snmpTargetAddrTMask = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 2, 1, 1),
+ OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255)).clone(
+ hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetAddrTMask.setDescription(
+ 'The mask value associated with an entry in the\n snmpTargetAddrTable. The value of this object must\n have the same length as the corresponding instance of\n snmpTargetAddrTAddress, or must have length 0. An\n attempt to set it to any other value will result in\n an inconsistentValue error.\n\n The value of this object allows an entry in the\n snmpTargetAddrTable to specify multiple addresses.\n The mask value is used to select which bits of\n a transport address must match bits of the corresponding\n instance of snmpTargetAddrTAddress, in order for the\n transport address to match a particular entry in the\n snmpTargetAddrTable. Bits which are 1 in the mask\n value indicate bits in the transport address which\n must match bits in the snmpTargetAddrTAddress value.\n\n Bits which are 0 in the mask indicate bits in the\n transport address which need not match. If the\n length of the mask is 0, the mask should be treated\n as if all its bits were 1 and its length were equal\n to the length of the corresponding value of\n snmpTargetAddrTable.\n\n This object may not be modified while the value of the\n corresponding instance of snmpTargetAddrRowStatus is\n active(1). An attempt to set this object in this case\n will result in an inconsistentValue error.')
+snmpTargetAddrMMS = MibTableColumn((1, 3, 6, 1, 6, 3, 18, 1, 2, 1, 2), Integer32().subtype(
+ subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(484, 2147483647), )).clone(
+ 484)).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetAddrMMS.setDescription(
+ 'The maximum message size value associated with an entry\n in the snmpTargetAddrTable.')
snmpTrapAddress = MibScalar((1, 3, 6, 1, 6, 3, 18, 1, 3), IpAddress()).setMaxAccess("accessiblefornotify")
-if mibBuilder.loadTexts: snmpTrapAddress.setDescription('The value of the agent-addr field of a Trap PDU which\n is forwarded by a proxy forwarder application using\n an SNMP version other than SNMPv1. The value of this\n object SHOULD contain the value of the agent-addr field\n from the original Trap PDU as generated by an SNMPv1\n agent.')
+if mibBuilder.loadTexts:
+ snmpTrapAddress.setDescription(
+ 'The value of the agent-addr field of a Trap PDU which\n is forwarded by a proxy forwarder application using\n an SNMP version other than SNMPv1. The value of this\n object SHOULD contain the value of the agent-addr field\n from the original Trap PDU as generated by an SNMPv1\n agent.')
snmpTrapCommunity = MibScalar((1, 3, 6, 1, 6, 3, 18, 1, 4), OctetString()).setMaxAccess("accessiblefornotify")
-if mibBuilder.loadTexts: snmpTrapCommunity.setDescription('The value of the community string field of an SNMPv1\n message containing a Trap PDU which is forwarded by a\n a proxy forwarder application using an SNMP version\n other than SNMPv1. The value of this object SHOULD\n contain the value of the community string field from\n the original SNMPv1 message containing a Trap PDU as\n generated by an SNMPv1 agent.')
+if mibBuilder.loadTexts:
+ snmpTrapCommunity.setDescription(
+ 'The value of the community string field of an SNMPv1\n message containing a Trap PDU which is forwarded by a\n a proxy forwarder application using an SNMP version\n other than SNMPv1. The value of this object SHOULD\n contain the value of the community string field from\n the original SNMPv1 message containing a Trap PDU as\n generated by an SNMPv1 agent.')
snmpCommunityMIBCompliances = MibIdentifier((1, 3, 6, 1, 6, 3, 18, 2, 1))
snmpCommunityMIBGroups = MibIdentifier((1, 3, 6, 1, 6, 3, 18, 2, 2))
-snmpCommunityMIBCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 18, 2, 1, 1)).setObjects(*(("SNMP-COMMUNITY-MIB", "snmpCommunityGroup"),))
-if mibBuilder.loadTexts: snmpCommunityMIBCompliance.setDescription('The compliance statement for SNMP engines which\n implement the SNMP-COMMUNITY-MIB.')
-snmpProxyTrapForwardCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 18, 2, 1, 2)).setObjects(*(("SNMP-COMMUNITY-MIB", "snmpProxyTrapForwardGroup"),))
-if mibBuilder.loadTexts: snmpProxyTrapForwardCompliance.setDescription('The compliance statement for SNMP engines which\n contain a proxy forwarding application which is\n capable of forwarding SNMPv1 traps using SNMPv2c\n or SNMPv3.')
-snmpCommunityGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 18, 2, 2, 1)).setObjects(*(("SNMP-COMMUNITY-MIB", "snmpCommunityName"), ("SNMP-COMMUNITY-MIB", "snmpCommunitySecurityName"), ("SNMP-COMMUNITY-MIB", "snmpCommunityContextEngineID"), ("SNMP-COMMUNITY-MIB", "snmpCommunityContextName"), ("SNMP-COMMUNITY-MIB", "snmpCommunityTransportTag"), ("SNMP-COMMUNITY-MIB", "snmpCommunityStorageType"), ("SNMP-COMMUNITY-MIB", "snmpCommunityStatus"), ("SNMP-COMMUNITY-MIB", "snmpTargetAddrTMask"), ("SNMP-COMMUNITY-MIB", "snmpTargetAddrMMS"),))
-if mibBuilder.loadTexts: snmpCommunityGroup.setDescription('A collection of objects providing for configuration\n of community strings for SNMPv1 (and SNMPv2c) usage.')
-snmpProxyTrapForwardGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 18, 2, 2, 3)).setObjects(*(("SNMP-COMMUNITY-MIB", "snmpTrapAddress"), ("SNMP-COMMUNITY-MIB", "snmpTrapCommunity"),))
-if mibBuilder.loadTexts: snmpProxyTrapForwardGroup.setDescription('Objects which are used by proxy forwarding applications\n when translating traps between SNMP versions. These are\n used to preserve SNMPv1-specific information when\n\n translating to SNMPv2c or SNMPv3.')
-mibBuilder.exportSymbols("SNMP-COMMUNITY-MIB", snmpCommunityContextName=snmpCommunityContextName, snmpCommunityMIBConformance=snmpCommunityMIBConformance, snmpCommunityName=snmpCommunityName, PYSNMP_MODULE_ID=snmpCommunityMIB, snmpCommunityMIBCompliance=snmpCommunityMIBCompliance, snmpCommunityContextEngineID=snmpCommunityContextEngineID, snmpCommunityEntry=snmpCommunityEntry, snmpCommunityMIBGroups=snmpCommunityMIBGroups, snmpCommunityMIB=snmpCommunityMIB, snmpCommunitySecurityName=snmpCommunitySecurityName, snmpProxyTrapForwardCompliance=snmpProxyTrapForwardCompliance, snmpCommunityTransportTag=snmpCommunityTransportTag, snmpTargetAddrExtTable=snmpTargetAddrExtTable, snmpCommunityMIBObjects=snmpCommunityMIBObjects, snmpTrapAddress=snmpTrapAddress, snmpCommunityMIBCompliances=snmpCommunityMIBCompliances, snmpCommunityIndex=snmpCommunityIndex, snmpCommunityGroup=snmpCommunityGroup, snmpTrapCommunity=snmpTrapCommunity, snmpCommunityStorageType=snmpCommunityStorageType, snmpTargetAddrTMask=snmpTargetAddrTMask, snmpCommunityTable=snmpCommunityTable, snmpTargetAddrExtEntry=snmpTargetAddrExtEntry, snmpCommunityStatus=snmpCommunityStatus, snmpProxyTrapForwardGroup=snmpProxyTrapForwardGroup, snmpTargetAddrMMS=snmpTargetAddrMMS)
+snmpCommunityMIBCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 18, 2, 1, 1)).setObjects(
+ *(("SNMP-COMMUNITY-MIB", "snmpCommunityGroup"),))
+if mibBuilder.loadTexts:
+ snmpCommunityMIBCompliance.setDescription(
+ 'The compliance statement for SNMP engines which\n implement the SNMP-COMMUNITY-MIB.')
+snmpProxyTrapForwardCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 18, 2, 1, 2)).setObjects(
+ *(("SNMP-COMMUNITY-MIB", "snmpProxyTrapForwardGroup"),))
+if mibBuilder.loadTexts:
+ snmpProxyTrapForwardCompliance.setDescription(
+ 'The compliance statement for SNMP engines which\n contain a proxy forwarding application which is\n capable of forwarding SNMPv1 traps using SNMPv2c\n or SNMPv3.')
+snmpCommunityGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 18, 2, 2, 1)).setObjects(
+ *(("SNMP-COMMUNITY-MIB", "snmpCommunityName"), ("SNMP-COMMUNITY-MIB", "snmpCommunitySecurityName"),
+ ("SNMP-COMMUNITY-MIB", "snmpCommunityContextEngineID"), ("SNMP-COMMUNITY-MIB", "snmpCommunityContextName"),
+ ("SNMP-COMMUNITY-MIB", "snmpCommunityTransportTag"), ("SNMP-COMMUNITY-MIB", "snmpCommunityStorageType"),
+ ("SNMP-COMMUNITY-MIB", "snmpCommunityStatus"), ("SNMP-COMMUNITY-MIB", "snmpTargetAddrTMask"),
+ ("SNMP-COMMUNITY-MIB", "snmpTargetAddrMMS"))
+)
+if mibBuilder.loadTexts:
+ snmpCommunityGroup.setDescription(
+ 'A collection of objects providing for configuration\n of community strings for SNMPv1 (and SNMPv2c) usage.')
+snmpProxyTrapForwardGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 18, 2, 2, 3)).setObjects(
+ *(("SNMP-COMMUNITY-MIB", "snmpTrapAddress"), ("SNMP-COMMUNITY-MIB", "snmpTrapCommunity"),))
+if mibBuilder.loadTexts:
+ snmpProxyTrapForwardGroup.setDescription(
+ 'Objects which are used by proxy forwarding applications\n when translating traps between SNMP versions. These are\n used to preserve SNMPv1-specific information when\n\n translating to SNMPv2c or SNMPv3.')
+mibBuilder.exportSymbols("SNMP-COMMUNITY-MIB", snmpCommunityContextName=snmpCommunityContextName,
+ snmpCommunityMIBConformance=snmpCommunityMIBConformance, snmpCommunityName=snmpCommunityName,
+ PYSNMP_MODULE_ID=snmpCommunityMIB, snmpCommunityMIBCompliance=snmpCommunityMIBCompliance,
+ snmpCommunityContextEngineID=snmpCommunityContextEngineID,
+ snmpCommunityEntry=snmpCommunityEntry, snmpCommunityMIBGroups=snmpCommunityMIBGroups,
+ snmpCommunityMIB=snmpCommunityMIB, snmpCommunitySecurityName=snmpCommunitySecurityName,
+ snmpProxyTrapForwardCompliance=snmpProxyTrapForwardCompliance,
+ snmpCommunityTransportTag=snmpCommunityTransportTag,
+ snmpTargetAddrExtTable=snmpTargetAddrExtTable, snmpCommunityMIBObjects=snmpCommunityMIBObjects,
+ snmpTrapAddress=snmpTrapAddress, snmpCommunityMIBCompliances=snmpCommunityMIBCompliances,
+ snmpCommunityIndex=snmpCommunityIndex, snmpCommunityGroup=snmpCommunityGroup,
+ snmpTrapCommunity=snmpTrapCommunity, snmpCommunityStorageType=snmpCommunityStorageType,
+ snmpTargetAddrTMask=snmpTargetAddrTMask, snmpCommunityTable=snmpCommunityTable,
+ snmpTargetAddrExtEntry=snmpTargetAddrExtEntry, snmpCommunityStatus=snmpCommunityStatus,
+ snmpProxyTrapForwardGroup=snmpProxyTrapForwardGroup, snmpTargetAddrMMS=snmpTargetAddrMMS)
diff --git a/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py b/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py
index 1cd65fcd..83536a9c 100644
--- a/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py
@@ -10,24 +10,43 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso", "ObjectIdentity", "Bits", "Counter32")
-( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
+import time
+
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance", "ObjectGroup")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso",
+ "ObjectIdentity", "Bits", "Counter32")
+(DisplayString, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
try:
import os
except ImportError:
pass
-import time
-snmpFrameworkMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 10)).setRevisions(("2002-10-14 00:00", "1999-01-19 00:00", "1997-11-20 00:00",))
-if mibBuilder.loadTexts: snmpFrameworkMIB.setLastUpdated('200210140000Z')
-if mibBuilder.loadTexts: snmpFrameworkMIB.setOrganization('SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpFrameworkMIB.setContactInfo('WG-EMail: snmpv3@lists.tislabs.com\n Subscribe: snmpv3-request@lists.tislabs.com\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n phone: +1 301-947-7107\n\n Co-Chair &\n Co-editor: David Harrington\n Enterasys Networks\n postal: 35 Industrial Way\n P. O. Box 5005\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n phone: +1 603-337-2614\n\n Co-editor: Randy Presuhn\n BMC Software, Inc.\n postal: 2141 North First Street\n San Jose, California 95131\n USA\n EMail: randy_presuhn@bmc.com\n phone: +1 408-546-1006\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n\n EMail: bwijnen@lucent.com\n phone: +31 348-680-485\n ')
-if mibBuilder.loadTexts: snmpFrameworkMIB.setDescription('The SNMP Management Architecture MIB\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3411;\n see the RFC itself for full legal notices.\n ')
+snmpFrameworkMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 10)).setRevisions(
+ ("2002-10-14 00:00", "1999-01-19 00:00", "1997-11-20 00:00",))
+if mibBuilder.loadTexts:
+ snmpFrameworkMIB.setLastUpdated('200210140000Z')
+if mibBuilder.loadTexts:
+ snmpFrameworkMIB.setOrganization('SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpFrameworkMIB.setContactInfo(
+ 'WG-EMail: snmpv3@lists.tislabs.com\n Subscribe: snmpv3-request@lists.tislabs.com\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n phone: +1 301-947-7107\n\n Co-Chair &\n Co-editor: David Harrington\n Enterasys Networks\n postal: 35 Industrial Way\n P. O. Box 5005\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n phone: +1 603-337-2614\n\n Co-editor: Randy Presuhn\n BMC Software, Inc.\n postal: 2141 North First Street\n San Jose, California 95131\n USA\n EMail: randy_presuhn@bmc.com\n phone: +1 408-546-1006\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n\n EMail: bwijnen@lucent.com\n phone: +31 348-680-485\n ')
+if mibBuilder.loadTexts:
+ snmpFrameworkMIB.setDescription(
+ 'The SNMP Management Architecture MIB\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3411;\n see the RFC itself for full legal notices.\n ')
+
#
# WARNING: some of the classes below are manually implemented
@@ -35,65 +54,105 @@ if mibBuilder.loadTexts: snmpFrameworkMIB.setDescription('The SNMP Management Ar
class SnmpAdminString(TextualConvention, OctetString):
displayHint = "255t"
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(0,255)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255)
encoding = 'utf-8'
-
+
+
class SnmpEngineID(TextualConvention, OctetString):
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(5,32)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(5, 32)
defaultValue = [128, 0, 79, 184, 5]
try:
# Attempt to base engine ID on local system name and properties
- defaultValue += [ ord(x) for x in os.uname()[1][:16] ]
- except:
+ defaultValue += [ord(x) for x in os.uname()[1][:16]]
+ except Exception:
pass
try:
# Attempt to base engine ID on PID
- defaultValue += [ os.getpid() >> 8 & 0xff, os.getpid() & 0xff ]
- except:
+ defaultValue += [os.getpid() >> 8 & 0xff, os.getpid() & 0xff]
+ except Exception:
pass
# add pseudo-random text ID
- defaultValue += [ id(defaultValue) >> 8 & 0xff, id(defaultValue) & 0xff ]
+ defaultValue += [id(defaultValue) >> 8 & 0xff, id(defaultValue) & 0xff]
defaultValue = OctetString(defaultValue).asOctets()
+
class SnmpEngineTime(Integer32):
def clone(self, value=None, tagSet=None, subtypeSpec=None):
if value is None:
try:
value = time.time() - self
- except:
+ except Exception:
pass
return Integer32.clone(self, value, tagSet, subtypeSpec)
+
class SnmpSecurityModel(Integer32, TextualConvention):
- subtypeSpec = Integer32.subtypeSpec+ValueRangeConstraint(0,2147483647)
+ subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 2147483647)
+
class SnmpMessageProcessingModel(Integer32, TextualConvention):
- subtypeSpec = Integer32.subtypeSpec+ValueRangeConstraint(0,2147483647)
+ subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 2147483647)
+
class SnmpSecurityLevel(Integer32, TextualConvention):
- subtypeSpec = Integer32.subtypeSpec+SingleValueConstraint(1, 2, 3,)
- namedValues = NamedValues(("noAuthNoPriv", 1), ("authNoPriv", 2), ("authPriv", 3),)
+ subtypeSpec = Integer32.subtypeSpec + SingleValueConstraint(1, 2, 3, )
+ namedValues = NamedValues(("noAuthNoPriv", 1), ("authNoPriv", 2), ("authPriv", 3), )
+
snmpFrameworkAdmin = MibIdentifier((1, 3, 6, 1, 6, 3, 10, 1))
snmpFrameworkMIBObjects = MibIdentifier((1, 3, 6, 1, 6, 3, 10, 2))
snmpFrameworkMIBConformance = MibIdentifier((1, 3, 6, 1, 6, 3, 10, 3))
snmpEngine = MibIdentifier((1, 3, 6, 1, 6, 3, 10, 2, 1))
snmpEngineID = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 1), SnmpEngineID()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpEngineID.setDescription("An SNMP engine's administratively-unique identifier.\n\n This information SHOULD be stored in non-volatile\n storage so that it remains constant across\n re-initializations of the SNMP engine.\n ")
-snmpEngineBoots = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,2147483647))).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpEngineBoots.setDescription('The number of times that the SNMP engine has\n (re-)initialized itself since snmpEngineID\n was last configured.\n ')
-snmpEngineTime = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 3), SnmpEngineTime().subtype(subtypeSpec=ValueRangeConstraint(0,2147483647))).setUnits('seconds').setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpEngineTime.setDescription("The number of seconds since the value of\n the snmpEngineBoots object last changed.\n When incrementing this object's value would\n cause it to exceed its maximum,\n snmpEngineBoots is incremented as if a\n re-initialization had occurred, and this\n object's value consequently reverts to zero.\n ")
-snmpEngineMaxMessageSize = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(484,2147483647))).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpEngineMaxMessageSize.setDescription('The maximum length in octets of an SNMP message\n which this SNMP engine can send or receive and\n process, determined as the minimum of the maximum\n message size values supported among all of the\n transports available to and supported by the engine.\n ')
+if mibBuilder.loadTexts:
+ snmpEngineID.setDescription(
+ "An SNMP engine's administratively-unique identifier.\n\n This information SHOULD be stored in non-volatile\n storage so that it remains constant across\n re-initializations of the SNMP engine.\n ")
+snmpEngineBoots = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 2),
+ Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess(
+ "readonly")
+if mibBuilder.loadTexts:
+ snmpEngineBoots.setDescription(
+ 'The number of times that the SNMP engine has\n (re-)initialized itself since snmpEngineID\n was last configured.\n ')
+snmpEngineTime = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 3),
+ SnmpEngineTime().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setUnits(
+ 'seconds').setMaxAccess("readonly")
+if mibBuilder.loadTexts:
+ snmpEngineTime.setDescription(
+ "The number of seconds since the value of\n the snmpEngineBoots object last changed.\n When incrementing this object's value would\n cause it to exceed its maximum,\n snmpEngineBoots is incremented as if a\n re-initialization had occurred, and this\n object's value consequently reverts to zero.\n ")
+snmpEngineMaxMessageSize = MibScalar((1, 3, 6, 1, 6, 3, 10, 2, 1, 4), Integer32().subtype(
+ subtypeSpec=ValueRangeConstraint(484, 2147483647))).setMaxAccess("readonly")
+if mibBuilder.loadTexts:
+ snmpEngineMaxMessageSize.setDescription(
+ 'The maximum length in octets of an SNMP message\n which this SNMP engine can send or receive and\n process, determined as the minimum of the maximum\n message size values supported among all of the\n transports available to and supported by the engine.\n ')
snmpAuthProtocols = ObjectIdentity((1, 3, 6, 1, 6, 3, 10, 1, 1))
-if mibBuilder.loadTexts: snmpAuthProtocols.setDescription('Registration point for standards-track\n authentication protocols used in SNMP Management\n Frameworks.\n ')
+if mibBuilder.loadTexts:
+ snmpAuthProtocols.setDescription(
+ 'Registration point for standards-track\n authentication protocols used in SNMP Management\n Frameworks.\n ')
snmpPrivProtocols = ObjectIdentity((1, 3, 6, 1, 6, 3, 10, 1, 2))
-if mibBuilder.loadTexts: snmpPrivProtocols.setDescription('Registration point for standards-track privacy\n protocols used in SNMP Management Frameworks.\n ')
+if mibBuilder.loadTexts:
+ snmpPrivProtocols.setDescription(
+ 'Registration point for standards-track privacy\n protocols used in SNMP Management Frameworks.\n ')
snmpFrameworkMIBCompliances = MibIdentifier((1, 3, 6, 1, 6, 3, 10, 3, 1))
snmpFrameworkMIBGroups = MibIdentifier((1, 3, 6, 1, 6, 3, 10, 3, 2))
-snmpFrameworkMIBCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 10, 3, 1, 1)).setObjects(*(("SNMP-FRAMEWORK-MIB", "snmpEngineGroup"),))
-if mibBuilder.loadTexts: snmpFrameworkMIBCompliance.setDescription('The compliance statement for SNMP engines which\n implement the SNMP Management Framework MIB.\n ')
-snmpEngineGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 10, 3, 2, 1)).setObjects(*(("SNMP-FRAMEWORK-MIB", "snmpEngineID"), ("SNMP-FRAMEWORK-MIB", "snmpEngineBoots"), ("SNMP-FRAMEWORK-MIB", "snmpEngineTime"), ("SNMP-FRAMEWORK-MIB", "snmpEngineMaxMessageSize"),))
-if mibBuilder.loadTexts: snmpEngineGroup.setDescription('A collection of objects for identifying and\n determining the configuration and current timeliness\n\n values of an SNMP engine.\n ')
-mibBuilder.exportSymbols("SNMP-FRAMEWORK-MIB", snmpPrivProtocols=snmpPrivProtocols, snmpEngine=snmpEngine, snmpEngineMaxMessageSize=snmpEngineMaxMessageSize, snmpAuthProtocols=snmpAuthProtocols, PYSNMP_MODULE_ID=snmpFrameworkMIB, snmpFrameworkMIBConformance=snmpFrameworkMIBConformance, snmpEngineGroup=snmpEngineGroup, SnmpAdminString=SnmpAdminString, snmpEngineID=snmpEngineID, snmpFrameworkAdmin=snmpFrameworkAdmin, snmpFrameworkMIBObjects=snmpFrameworkMIBObjects, SnmpSecurityLevel=SnmpSecurityLevel, snmpFrameworkMIBCompliance=snmpFrameworkMIBCompliance, snmpFrameworkMIBGroups=snmpFrameworkMIBGroups, snmpFrameworkMIB=snmpFrameworkMIB, snmpFrameworkMIBCompliances=snmpFrameworkMIBCompliances, SnmpEngineID=SnmpEngineID, snmpEngineBoots=snmpEngineBoots, SnmpSecurityModel=SnmpSecurityModel, SnmpMessageProcessingModel=SnmpMessageProcessingModel, snmpEngineTime=snmpEngineTime)
+snmpFrameworkMIBCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 10, 3, 1, 1)).setObjects(
+ *(("SNMP-FRAMEWORK-MIB", "snmpEngineGroup"),))
+if mibBuilder.loadTexts:
+ snmpFrameworkMIBCompliance.setDescription(
+ 'The compliance statement for SNMP engines which\n implement the SNMP Management Framework MIB.\n ')
+snmpEngineGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 10, 3, 2, 1)).setObjects(
+ *(("SNMP-FRAMEWORK-MIB", "snmpEngineID"), ("SNMP-FRAMEWORK-MIB", "snmpEngineBoots"),
+ ("SNMP-FRAMEWORK-MIB", "snmpEngineTime"), ("SNMP-FRAMEWORK-MIB", "snmpEngineMaxMessageSize"))
+)
+if mibBuilder.loadTexts:
+ snmpEngineGroup.setDescription(
+ 'A collection of objects for identifying and\n determining the configuration and current timeliness\n\n values of an SNMP engine.\n ')
+mibBuilder.exportSymbols("SNMP-FRAMEWORK-MIB", snmpPrivProtocols=snmpPrivProtocols, snmpEngine=snmpEngine,
+ snmpEngineMaxMessageSize=snmpEngineMaxMessageSize, snmpAuthProtocols=snmpAuthProtocols,
+ PYSNMP_MODULE_ID=snmpFrameworkMIB, snmpFrameworkMIBConformance=snmpFrameworkMIBConformance,
+ snmpEngineGroup=snmpEngineGroup, SnmpAdminString=SnmpAdminString, snmpEngineID=snmpEngineID,
+ snmpFrameworkAdmin=snmpFrameworkAdmin, snmpFrameworkMIBObjects=snmpFrameworkMIBObjects,
+ SnmpSecurityLevel=SnmpSecurityLevel, snmpFrameworkMIBCompliance=snmpFrameworkMIBCompliance,
+ snmpFrameworkMIBGroups=snmpFrameworkMIBGroups, snmpFrameworkMIB=snmpFrameworkMIB,
+ snmpFrameworkMIBCompliances=snmpFrameworkMIBCompliances, SnmpEngineID=SnmpEngineID,
+ snmpEngineBoots=snmpEngineBoots, SnmpSecurityModel=SnmpSecurityModel,
+ SnmpMessageProcessingModel=SnmpMessageProcessingModel, snmpEngineTime=snmpEngineTime)
diff --git a/pysnmp/smi/mibs/SNMP-MPD-MIB.py b/pysnmp/smi/mibs/SNMP-MPD-MIB.py
index c2286743..ea73eacd 100644
--- a/pysnmp/smi/mibs/SNMP-MPD-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-MPD-MIB.py
@@ -10,31 +10,67 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso", "ObjectIdentity", "Bits", "Counter32")
-( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
-snmpMPDMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 11)).setRevisions(("2002-10-14 00:00", "1999-05-04 16:36", "1997-09-30 00:00",))
-if mibBuilder.loadTexts: snmpMPDMIB.setLastUpdated('200210140000Z')
-if mibBuilder.loadTexts: snmpMPDMIB.setOrganization('SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpMPDMIB.setContactInfo('WG-EMail: snmpv3@lists.tislabs.com\n Subscribe: snmpv3-request@lists.tislabs.com\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n\n EMail: mundy@tislabs.com\n phone: +1 301-947-7107\n\n Co-Chair &\n Co-editor: David Harrington\n Enterasys Networks\n postal: 35 Industrial Way\n P. O. Box 5005\n Rochester NH 03866-5005\n USA\n EMail: dbh@enterasys.com\n phone: +1 603-337-2614\n\n Co-editor: Jeffrey Case\n SNMP Research, Inc.\n postal: 3001 Kimberlin Heights Road\n Knoxville, TN 37920-9716\n USA\n EMail: case@snmp.com\n phone: +1 423-573-1434\n\n Co-editor: Randy Presuhn\n BMC Software, Inc.\n postal: 2141 North First Street\n San Jose, CA 95131\n USA\n EMail: randy_presuhn@bmc.com\n phone: +1 408-546-1006\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n EMail: bwijnen@lucent.com\n phone: +31 348-680-485\n ')
-if mibBuilder.loadTexts: snmpMPDMIB.setDescription('The MIB for Message Processing and Dispatching\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3412;\n see the RFC itself for full legal notices.\n ')
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance", "ObjectGroup")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso",
+ "ObjectIdentity", "Bits", "Counter32")
+(DisplayString, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
+snmpMPDMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 11)).setRevisions(
+ ("2002-10-14 00:00", "1999-05-04 16:36", "1997-09-30 00:00",))
+if mibBuilder.loadTexts:
+ snmpMPDMIB.setLastUpdated('200210140000Z')
+if mibBuilder.loadTexts:
+ snmpMPDMIB.setOrganization('SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpMPDMIB.setContactInfo(
+ 'WG-EMail: snmpv3@lists.tislabs.com\n Subscribe: snmpv3-request@lists.tislabs.com\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n\n EMail: mundy@tislabs.com\n phone: +1 301-947-7107\n\n Co-Chair &\n Co-editor: David Harrington\n Enterasys Networks\n postal: 35 Industrial Way\n P. O. Box 5005\n Rochester NH 03866-5005\n USA\n EMail: dbh@enterasys.com\n phone: +1 603-337-2614\n\n Co-editor: Jeffrey Case\n SNMP Research, Inc.\n postal: 3001 Kimberlin Heights Road\n Knoxville, TN 37920-9716\n USA\n EMail: case@snmp.com\n phone: +1 423-573-1434\n\n Co-editor: Randy Presuhn\n BMC Software, Inc.\n postal: 2141 North First Street\n San Jose, CA 95131\n USA\n EMail: randy_presuhn@bmc.com\n phone: +1 408-546-1006\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n EMail: bwijnen@lucent.com\n phone: +31 348-680-485\n ')
+if mibBuilder.loadTexts:
+ snmpMPDMIB.setDescription(
+ 'The MIB for Message Processing and Dispatching\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3412;\n see the RFC itself for full legal notices.\n ')
snmpMPDAdmin = MibIdentifier((1, 3, 6, 1, 6, 3, 11, 1))
snmpMPDMIBObjects = MibIdentifier((1, 3, 6, 1, 6, 3, 11, 2))
snmpMPDMIBConformance = MibIdentifier((1, 3, 6, 1, 6, 3, 11, 3))
snmpMPDStats = MibIdentifier((1, 3, 6, 1, 6, 3, 11, 2, 1))
snmpUnknownSecurityModels = MibScalar((1, 3, 6, 1, 6, 3, 11, 2, 1, 1), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpUnknownSecurityModels.setDescription('The total number of packets received by the SNMP\n engine which were dropped because they referenced a\n securityModel that was not known to or supported by\n the SNMP engine.\n ')
+if mibBuilder.loadTexts:
+ snmpUnknownSecurityModels.setDescription(
+ 'The total number of packets received by the SNMP\n engine which were dropped because they referenced a\n securityModel that was not known to or supported by\n the SNMP engine.\n ')
snmpInvalidMsgs = MibScalar((1, 3, 6, 1, 6, 3, 11, 2, 1, 2), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInvalidMsgs.setDescription('The total number of packets received by the SNMP\n engine which were dropped because there were invalid\n or inconsistent components in the SNMP message.\n ')
+if mibBuilder.loadTexts:
+ snmpInvalidMsgs.setDescription(
+ 'The total number of packets received by the SNMP\n engine which were dropped because there were invalid\n or inconsistent components in the SNMP message.\n ')
snmpUnknownPDUHandlers = MibScalar((1, 3, 6, 1, 6, 3, 11, 2, 1, 3), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpUnknownPDUHandlers.setDescription('The total number of packets received by the SNMP\n engine which were dropped because the PDU contained\n in the packet could not be passed to an application\n responsible for handling the pduType, e.g. no SNMP\n application had registered for the proper\n combination of the contextEngineID and the pduType.\n ')
+if mibBuilder.loadTexts:
+ snmpUnknownPDUHandlers.setDescription(
+ 'The total number of packets received by the SNMP\n engine which were dropped because the PDU contained\n in the packet could not be passed to an application\n responsible for handling the pduType, e.g. no SNMP\n application had registered for the proper\n combination of the contextEngineID and the pduType.\n ')
snmpMPDMIBCompliances = MibIdentifier((1, 3, 6, 1, 6, 3, 11, 3, 1))
snmpMPDMIBGroups = MibIdentifier((1, 3, 6, 1, 6, 3, 11, 3, 2))
snmpMPDCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 11, 3, 1, 1)).setObjects(*(("SNMP-MPD-MIB", "snmpMPDGroup"),))
-if mibBuilder.loadTexts: snmpMPDCompliance.setDescription('The compliance statement for SNMP entities which\n implement the SNMP-MPD-MIB.\n ')
-snmpMPDGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 11, 3, 2, 1)).setObjects(*(("SNMP-MPD-MIB", "snmpUnknownSecurityModels"), ("SNMP-MPD-MIB", "snmpInvalidMsgs"), ("SNMP-MPD-MIB", "snmpUnknownPDUHandlers"),))
-if mibBuilder.loadTexts: snmpMPDGroup.setDescription('A collection of objects providing for remote\n monitoring of the SNMP Message Processing and\n Dispatching process.\n ')
-mibBuilder.exportSymbols("SNMP-MPD-MIB", snmpMPDMIBObjects=snmpMPDMIBObjects, snmpMPDMIBCompliances=snmpMPDMIBCompliances, snmpMPDCompliance=snmpMPDCompliance, snmpMPDMIBGroups=snmpMPDMIBGroups, snmpMPDMIB=snmpMPDMIB, snmpMPDAdmin=snmpMPDAdmin, snmpInvalidMsgs=snmpInvalidMsgs, PYSNMP_MODULE_ID=snmpMPDMIB, snmpMPDStats=snmpMPDStats, snmpMPDMIBConformance=snmpMPDMIBConformance, snmpUnknownSecurityModels=snmpUnknownSecurityModels, snmpMPDGroup=snmpMPDGroup, snmpUnknownPDUHandlers=snmpUnknownPDUHandlers)
+if mibBuilder.loadTexts:
+ snmpMPDCompliance.setDescription(
+ 'The compliance statement for SNMP entities which\n implement the SNMP-MPD-MIB.\n ')
+snmpMPDGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 11, 3, 2, 1)).setObjects(
+ *(("SNMP-MPD-MIB", "snmpUnknownSecurityModels"), ("SNMP-MPD-MIB", "snmpInvalidMsgs"),
+ ("SNMP-MPD-MIB", "snmpUnknownPDUHandlers"))
+)
+if mibBuilder.loadTexts:
+ snmpMPDGroup.setDescription(
+ 'A collection of objects providing for remote\n monitoring of the SNMP Message Processing and\n Dispatching process.\n ')
+mibBuilder.exportSymbols("SNMP-MPD-MIB", snmpMPDMIBObjects=snmpMPDMIBObjects,
+ snmpMPDMIBCompliances=snmpMPDMIBCompliances, snmpMPDCompliance=snmpMPDCompliance,
+ snmpMPDMIBGroups=snmpMPDMIBGroups, snmpMPDMIB=snmpMPDMIB, snmpMPDAdmin=snmpMPDAdmin,
+ snmpInvalidMsgs=snmpInvalidMsgs, PYSNMP_MODULE_ID=snmpMPDMIB, snmpMPDStats=snmpMPDStats,
+ snmpMPDMIBConformance=snmpMPDMIBConformance,
+ snmpUnknownSecurityModels=snmpUnknownSecurityModels, snmpMPDGroup=snmpMPDGroup,
+ snmpUnknownPDUHandlers=snmpUnknownPDUHandlers)
diff --git a/pysnmp/smi/mibs/SNMP-NOTIFICATION-MIB.py b/pysnmp/smi/mibs/SNMP-NOTIFICATION-MIB.py
index 9b440b29..a7098b2f 100644
--- a/pysnmp/smi/mibs/SNMP-NOTIFICATION-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-NOTIFICATION-MIB.py
@@ -10,69 +10,185 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
-( snmpTargetParamsName, SnmpTagValue, ) = mibBuilder.importSymbols("SNMP-TARGET-MIB", "snmpTargetParamsName", "SnmpTagValue")
-( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso", "ObjectIdentity", "Bits", "Counter32")
-( StorageType, DisplayString, RowStatus, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "StorageType", "DisplayString", "RowStatus", "TextualConvention")
-snmpNotificationMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 13)).setRevisions(("2002-10-14 00:00", "1998-08-04 00:00", "1997-07-14 00:00",))
-if mibBuilder.loadTexts: snmpNotificationMIB.setLastUpdated('200210140000Z')
-if mibBuilder.loadTexts: snmpNotificationMIB.setOrganization('IETF SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpNotificationMIB.setContactInfo('WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In message body: subscribe snmpv3\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n Postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n Phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor: David B. Levi\n Nortel Networks\n Postal: 3505 Kesterwood Drive\n Knoxville, Tennessee 37918\n EMail: dlevi@nortelnetworks.com\n Phone: +1 865 686 0432\n\n Co-editor: Paul Meyer\n Secure Computing Corporation\n Postal: 2675 Long Lake Road\n Roseville, Minnesota 55113\n EMail: paul_meyer@securecomputing.com\n Phone: +1 651 628 1592\n\n Co-editor: Bob Stewart\n Retired')
-if mibBuilder.loadTexts: snmpNotificationMIB.setDescription('This MIB module defines MIB objects which provide\n mechanisms to remotely configure the parameters\n used by an SNMP entity for the generation of\n notifications.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3413;\n see the RFC itself for full legal notices.\n ')
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(SnmpAdminString,) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
+(snmpTargetParamsName, SnmpTagValue,) = mibBuilder.importSymbols("SNMP-TARGET-MIB", "snmpTargetParamsName",
+ "SnmpTagValue")
+(NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance", "ObjectGroup")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso",
+ "ObjectIdentity", "Bits", "Counter32")
+(StorageType, DisplayString, RowStatus, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "StorageType",
+ "DisplayString", "RowStatus",
+ "TextualConvention")
+snmpNotificationMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 13)).setRevisions(
+ ("2002-10-14 00:00", "1998-08-04 00:00", "1997-07-14 00:00",))
+if mibBuilder.loadTexts:
+ snmpNotificationMIB.setLastUpdated('200210140000Z')
+if mibBuilder.loadTexts:
+ snmpNotificationMIB.setOrganization('IETF SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpNotificationMIB.setContactInfo(
+ 'WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In message body: subscribe snmpv3\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n Postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n Phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor: David B. Levi\n Nortel Networks\n Postal: 3505 Kesterwood Drive\n Knoxville, Tennessee 37918\n EMail: dlevi@nortelnetworks.com\n Phone: +1 865 686 0432\n\n Co-editor: Paul Meyer\n Secure Computing Corporation\n Postal: 2675 Long Lake Road\n Roseville, Minnesota 55113\n EMail: paul_meyer@securecomputing.com\n Phone: +1 651 628 1592\n\n Co-editor: Bob Stewart\n Retired')
+if mibBuilder.loadTexts:
+ snmpNotificationMIB.setDescription(
+ 'This MIB module defines MIB objects which provide\n mechanisms to remotely configure the parameters\n used by an SNMP entity for the generation of\n notifications.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3413;\n see the RFC itself for full legal notices.\n ')
snmpNotifyObjects = MibIdentifier((1, 3, 6, 1, 6, 3, 13, 1))
snmpNotifyConformance = MibIdentifier((1, 3, 6, 1, 6, 3, 13, 3))
snmpNotifyTable = MibTable((1, 3, 6, 1, 6, 3, 13, 1, 1), )
-if mibBuilder.loadTexts: snmpNotifyTable.setDescription('This table is used to select management targets which should\n receive notifications, as well as the type of notification\n which should be sent to each selected management target.')
-snmpNotifyEntry = MibTableRow((1, 3, 6, 1, 6, 3, 13, 1, 1, 1), ).setIndexNames((1, "SNMP-NOTIFICATION-MIB", "snmpNotifyName"))
-if mibBuilder.loadTexts: snmpNotifyEntry.setDescription('An entry in this table selects a set of management targets\n which should receive notifications, as well as the type of\n\n notification which should be sent to each selected\n management target.\n\n Entries in the snmpNotifyTable are created and\n deleted using the snmpNotifyRowStatus object.')
-snmpNotifyName = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
-if mibBuilder.loadTexts: snmpNotifyName.setDescription('The locally arbitrary, but unique identifier associated\n with this snmpNotifyEntry.')
+if mibBuilder.loadTexts:
+ snmpNotifyTable.setDescription(
+ 'This table is used to select management targets which should\n receive notifications, as well as the type of notification\n which should be sent to each selected management target.')
+snmpNotifyEntry = MibTableRow((1, 3, 6, 1, 6, 3, 13, 1, 1, 1), ).setIndexNames(
+ (1, "SNMP-NOTIFICATION-MIB", "snmpNotifyName"))
+if mibBuilder.loadTexts:
+ snmpNotifyEntry.setDescription(
+ 'An entry in this table selects a set of management targets\n which should receive notifications, as well as the type of\n\n notification which should be sent to each selected\n management target.\n\n Entries in the snmpNotifyTable are created and\n deleted using the snmpNotifyRowStatus object.')
+snmpNotifyName = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 1, 1, 1),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
+if mibBuilder.loadTexts:
+ snmpNotifyName.setDescription(
+ 'The locally arbitrary, but unique identifier associated\n with this snmpNotifyEntry.')
snmpNotifyTag = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 1, 1, 2), SnmpTagValue()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyTag.setDescription('This object contains a single tag value which is used\n to select entries in the snmpTargetAddrTable. Any entry\n in the snmpTargetAddrTable which contains a tag value\n which is equal to the value of an instance of this\n object is selected. If this object contains a value\n of zero length, no entries are selected.')
-snmpNotifyType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("trap", 1), ("inform", 2),)).clone('trap')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyType.setDescription('This object determines the type of notification to\n\n be generated for entries in the snmpTargetAddrTable\n selected by the corresponding instance of\n snmpNotifyTag. This value is only used when\n generating notifications, and is ignored when\n using the snmpTargetAddrTable for other purposes.\n\n If the value of this object is trap(1), then any\n messages generated for selected rows will contain\n Unconfirmed-Class PDUs.\n\n If the value of this object is inform(2), then any\n messages generated for selected rows will contain\n Confirmed-Class PDUs.\n\n Note that if an SNMP entity only supports\n generation of Unconfirmed-Class PDUs (and not\n Confirmed-Class PDUs), then this object may be\n read-only.')
-snmpNotifyStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 1, 1, 4), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyStorageType.setDescription("The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
+if mibBuilder.loadTexts:
+ snmpNotifyTag.setDescription(
+ 'This object contains a single tag value which is used\n to select entries in the snmpTargetAddrTable. Any entry\n in the snmpTargetAddrTable which contains a tag value\n which is equal to the value of an instance of this\n object is selected. If this object contains a value\n of zero length, no entries are selected.')
+snmpNotifyType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 1, 1, 3),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, )).clone(
+ namedValues=NamedValues(("trap", 1), ("inform", 2), )).clone('trap')).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpNotifyType.setDescription(
+ 'This object determines the type of notification to\n\n be generated for entries in the snmpTargetAddrTable\n selected by the corresponding instance of\n snmpNotifyTag. This value is only used when\n generating notifications, and is ignored when\n using the snmpTargetAddrTable for other purposes.\n\n If the value of this object is trap(1), then any\n messages generated for selected rows will contain\n Unconfirmed-Class PDUs.\n\n If the value of this object is inform(2), then any\n messages generated for selected rows will contain\n Confirmed-Class PDUs.\n\n Note that if an SNMP entity only supports\n generation of Unconfirmed-Class PDUs (and not\n Confirmed-Class PDUs), then this object may be\n read-only.')
+snmpNotifyStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 1, 1, 4),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpNotifyStorageType.setDescription(
+ "The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
snmpNotifyRowStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 1, 1, 5), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyRowStatus.setDescription('The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).')
+if mibBuilder.loadTexts:
+ snmpNotifyRowStatus.setDescription(
+ 'The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).')
snmpNotifyFilterProfileTable = MibTable((1, 3, 6, 1, 6, 3, 13, 1, 2), )
-if mibBuilder.loadTexts: snmpNotifyFilterProfileTable.setDescription('This table is used to associate a notification filter\n profile with a particular set of target parameters.')
-snmpNotifyFilterProfileEntry = MibTableRow((1, 3, 6, 1, 6, 3, 13, 1, 2, 1), ).setIndexNames((1, "SNMP-TARGET-MIB", "snmpTargetParamsName"))
-if mibBuilder.loadTexts: snmpNotifyFilterProfileEntry.setDescription('An entry in this table indicates the name of the filter\n profile to be used when generating notifications using\n the corresponding entry in the snmpTargetParamsTable.\n\n Entries in the snmpNotifyFilterProfileTable are created\n and deleted using the snmpNotifyFilterProfileRowStatus\n object.')
-snmpNotifyFilterProfileName = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32))).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyFilterProfileName.setDescription('The name of the filter profile to be used when generating\n notifications using the corresponding entry in the\n snmpTargetAddrTable.')
-snmpNotifyFilterProfileStorType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 2, 1, 2), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyFilterProfileStorType.setDescription("The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
-snmpNotifyFilterProfileRowStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 2, 1, 3), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyFilterProfileRowStatus.setDescription("The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n corresponding instance of the\n snmpNotifyFilterProfileRowStatus column is 'notReady'.\n\n In particular, a newly created row cannot be made\n active until the corresponding instance of\n snmpNotifyFilterProfileName has been set.")
+if mibBuilder.loadTexts:
+ snmpNotifyFilterProfileTable.setDescription(
+ 'This table is used to associate a notification filter\n profile with a particular set of target parameters.')
+snmpNotifyFilterProfileEntry = MibTableRow((1, 3, 6, 1, 6, 3, 13, 1, 2, 1), ).setIndexNames(
+ (1, "SNMP-TARGET-MIB", "snmpTargetParamsName"))
+if mibBuilder.loadTexts:
+ snmpNotifyFilterProfileEntry.setDescription(
+ 'An entry in this table indicates the name of the filter\n profile to be used when generating notifications using\n the corresponding entry in the snmpTargetParamsTable.\n\n Entries in the snmpNotifyFilterProfileTable are created\n and deleted using the snmpNotifyFilterProfileRowStatus\n object.')
+snmpNotifyFilterProfileName = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 2, 1, 1), SnmpAdminString().subtype(
+ subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpNotifyFilterProfileName.setDescription(
+ 'The name of the filter profile to be used when generating\n notifications using the corresponding entry in the\n snmpTargetAddrTable.')
+snmpNotifyFilterProfileStorType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 2, 1, 2),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpNotifyFilterProfileStorType.setDescription(
+ "The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
+snmpNotifyFilterProfileRowStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 2, 1, 3), RowStatus()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpNotifyFilterProfileRowStatus.setDescription(
+ "The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n corresponding instance of the\n snmpNotifyFilterProfileRowStatus column is 'notReady'.\n\n In particular, a newly created row cannot be made\n active until the corresponding instance of\n snmpNotifyFilterProfileName has been set.")
snmpNotifyFilterTable = MibTable((1, 3, 6, 1, 6, 3, 13, 1, 3), )
-if mibBuilder.loadTexts: snmpNotifyFilterTable.setDescription('The table of filter profiles. Filter profiles are used\n to determine whether particular management targets should\n receive particular notifications.\n\n When a notification is generated, it must be compared\n with the filters associated with each management target\n which is configured to receive notifications, in order to\n determine whether it may be sent to each such management\n target.\n\n A more complete discussion of notification filtering\n can be found in section 6. of [SNMP-APPL].')
-snmpNotifyFilterEntry = MibTableRow((1, 3, 6, 1, 6, 3, 13, 1, 3, 1), ).setIndexNames((0, "SNMP-NOTIFICATION-MIB", "snmpNotifyFilterProfileName"), (1, "SNMP-NOTIFICATION-MIB", "snmpNotifyFilterSubtree"))
-if mibBuilder.loadTexts: snmpNotifyFilterEntry.setDescription('An element of a filter profile.\n\n Entries in the snmpNotifyFilterTable are created and\n deleted using the snmpNotifyFilterRowStatus object.')
+if mibBuilder.loadTexts:
+ snmpNotifyFilterTable.setDescription(
+ 'The table of filter profiles. Filter profiles are used\n to determine whether particular management targets should\n receive particular notifications.\n\n When a notification is generated, it must be compared\n with the filters associated with each management target\n which is configured to receive notifications, in order to\n determine whether it may be sent to each such management\n target.\n\n A more complete discussion of notification filtering\n can be found in section 6. of [SNMP-APPL].')
+snmpNotifyFilterEntry = MibTableRow((1, 3, 6, 1, 6, 3, 13, 1, 3, 1), ).setIndexNames(
+ (0, "SNMP-NOTIFICATION-MIB", "snmpNotifyFilterProfileName"),
+ (1, "SNMP-NOTIFICATION-MIB", "snmpNotifyFilterSubtree"))
+if mibBuilder.loadTexts:
+ snmpNotifyFilterEntry.setDescription(
+ 'An element of a filter profile.\n\n Entries in the snmpNotifyFilterTable are created and\n deleted using the snmpNotifyFilterRowStatus object.')
snmpNotifyFilterSubtree = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 3, 1, 1), ObjectIdentifier())
-if mibBuilder.loadTexts: snmpNotifyFilterSubtree.setDescription('The MIB subtree which, when combined with the corresponding\n instance of snmpNotifyFilterMask, defines a family of\n subtrees which are included in or excluded from the\n filter profile.')
-snmpNotifyFilterMask = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,16)).clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyFilterMask.setDescription("The bit mask which, in combination with the corresponding\n instance of snmpNotifyFilterSubtree, defines a family of\n subtrees which are included in or excluded from the\n filter profile.\n\n Each bit of this bit mask corresponds to a\n sub-identifier of snmpNotifyFilterSubtree, with the\n most significant bit of the i-th octet of this octet\n string value (extended if necessary, see below)\n corresponding to the (8*i - 7)-th sub-identifier, and\n the least significant bit of the i-th octet of this\n octet string corresponding to the (8*i)-th\n sub-identifier, where i is in the range 1 through 16.\n\n Each bit of this bit mask specifies whether or not\n the corresponding sub-identifiers must match when\n determining if an OBJECT IDENTIFIER matches this\n family of filter subtrees; a '1' indicates that an\n exact match must occur; a '0' indicates 'wild card',\n i.e., any sub-identifier value matches.\n\n Thus, the OBJECT IDENTIFIER X of an object instance\n is contained in a family of filter subtrees if, for\n each sub-identifier of the value of\n snmpNotifyFilterSubtree, either:\n\n the i-th bit of snmpNotifyFilterMask is 0, or\n\n the i-th sub-identifier of X is equal to the i-th\n sub-identifier of the value of\n snmpNotifyFilterSubtree.\n\n If the value of this bit mask is M bits long and\n there are more than M sub-identifiers in the\n corresponding instance of snmpNotifyFilterSubtree,\n then the bit mask is extended with 1's to be the\n required length.\n\n Note that when the value of this object is the\n zero-length string, this extension rule results in\n a mask of all-1's being used (i.e., no 'wild card'),\n and the family of filter subtrees is the one\n subtree uniquely identified by the corresponding\n instance of snmpNotifyFilterSubtree.")
-snmpNotifyFilterType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("included", 1), ("excluded", 2),)).clone('included')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyFilterType.setDescription('This object indicates whether the family of filter subtrees\n defined by this entry are included in or excluded from a\n filter. A more detailed discussion of the use of this\n object can be found in section 6. of [SNMP-APPL].')
-snmpNotifyFilterStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 3, 1, 4), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyFilterStorageType.setDescription("The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n\n allow write-access to any columnar objects in the row.")
+if mibBuilder.loadTexts:
+ snmpNotifyFilterSubtree.setDescription(
+ 'The MIB subtree which, when combined with the corresponding\n instance of snmpNotifyFilterMask, defines a family of\n subtrees which are included in or excluded from the\n filter profile.')
+snmpNotifyFilterMask = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 3, 1, 2),
+ OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone(
+ hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpNotifyFilterMask.setDescription(
+ "The bit mask which, in combination with the corresponding\n instance of snmpNotifyFilterSubtree, defines a family of\n subtrees which are included in or excluded from the\n filter profile.\n\n Each bit of this bit mask corresponds to a\n sub-identifier of snmpNotifyFilterSubtree, with the\n most significant bit of the i-th octet of this octet\n string value (extended if necessary, see below)\n corresponding to the (8*i - 7)-th sub-identifier, and\n the least significant bit of the i-th octet of this\n octet string corresponding to the (8*i)-th\n sub-identifier, where i is in the range 1 through 16.\n\n Each bit of this bit mask specifies whether or not\n the corresponding sub-identifiers must match when\n determining if an OBJECT IDENTIFIER matches this\n family of filter subtrees; a '1' indicates that an\n exact match must occur; a '0' indicates 'wild card',\n i.e., any sub-identifier value matches.\n\n Thus, the OBJECT IDENTIFIER X of an object instance\n is contained in a family of filter subtrees if, for\n each sub-identifier of the value of\n snmpNotifyFilterSubtree, either:\n\n the i-th bit of snmpNotifyFilterMask is 0, or\n\n the i-th sub-identifier of X is equal to the i-th\n sub-identifier of the value of\n snmpNotifyFilterSubtree.\n\n If the value of this bit mask is M bits long and\n there are more than M sub-identifiers in the\n corresponding instance of snmpNotifyFilterSubtree,\n then the bit mask is extended with 1's to be the\n required length.\n\n Note that when the value of this object is the\n zero-length string, this extension rule results in\n a mask of all-1's being used (i.e., no 'wild card'),\n and the family of filter subtrees is the one\n subtree uniquely identified by the corresponding\n instance of snmpNotifyFilterSubtree.")
+snmpNotifyFilterType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 3, 1, 3),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, )).clone(
+ namedValues=NamedValues(("included", 1), ("excluded", 2), )).clone(
+ 'included')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpNotifyFilterType.setDescription(
+ 'This object indicates whether the family of filter subtrees\n defined by this entry are included in or excluded from a\n filter. A more detailed discussion of the use of this\n object can be found in section 6. of [SNMP-APPL].')
+snmpNotifyFilterStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 3, 1, 4),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpNotifyFilterStorageType.setDescription(
+ "The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n\n allow write-access to any columnar objects in the row.")
snmpNotifyFilterRowStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 13, 1, 3, 1, 5), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpNotifyFilterRowStatus.setDescription('The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).')
+if mibBuilder.loadTexts:
+ snmpNotifyFilterRowStatus.setDescription(
+ 'The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).')
snmpNotifyCompliances = MibIdentifier((1, 3, 6, 1, 6, 3, 13, 3, 1))
snmpNotifyGroups = MibIdentifier((1, 3, 6, 1, 6, 3, 13, 3, 2))
-snmpNotifyBasicCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 13, 3, 1, 1)).setObjects(*(("SNMP-TARGET-MIB", "snmpTargetBasicGroup"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyGroup"),))
-if mibBuilder.loadTexts: snmpNotifyBasicCompliance.setDescription('The compliance statement for minimal SNMP entities which\n implement only SNMP Unconfirmed-Class notifications and\n read-create operations on only the snmpTargetAddrTable.')
-snmpNotifyBasicFiltersCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 13, 3, 1, 2)).setObjects(*(("SNMP-TARGET-MIB", "snmpTargetBasicGroup"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyGroup"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterGroup"),))
-if mibBuilder.loadTexts: snmpNotifyBasicFiltersCompliance.setDescription('The compliance statement for SNMP entities which implement\n SNMP Unconfirmed-Class notifications with filtering, and\n read-create operations on all related tables.')
-snmpNotifyFullCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 13, 3, 1, 3)).setObjects(*(("SNMP-TARGET-MIB", "snmpTargetBasicGroup"), ("SNMP-TARGET-MIB", "snmpTargetResponseGroup"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyGroup"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterGroup"),))
-if mibBuilder.loadTexts: snmpNotifyFullCompliance.setDescription('The compliance statement for SNMP entities which either\n implement only SNMP Confirmed-Class notifications, or both\n SNMP Unconfirmed-Class and Confirmed-Class notifications,\n plus filtering and read-create operations on all related\n tables.')
-snmpNotifyGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 13, 3, 2, 1)).setObjects(*(("SNMP-NOTIFICATION-MIB", "snmpNotifyTag"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyType"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyStorageType"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyRowStatus"),))
-if mibBuilder.loadTexts: snmpNotifyGroup.setDescription('A collection of objects for selecting which management\n targets are used for generating notifications, and the\n type of notification to be generated for each selected\n management target.')
-snmpNotifyFilterGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 13, 3, 2, 2)).setObjects(*(("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterProfileName"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterProfileStorType"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterProfileRowStatus"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterMask"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterType"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterStorageType"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterRowStatus"),))
-if mibBuilder.loadTexts: snmpNotifyFilterGroup.setDescription('A collection of objects providing remote configuration\n of notification filters.')
-mibBuilder.exportSymbols("SNMP-NOTIFICATION-MIB", snmpNotifyBasicCompliance=snmpNotifyBasicCompliance, snmpNotifyEntry=snmpNotifyEntry, snmpNotifyFilterType=snmpNotifyFilterType, snmpNotifyConformance=snmpNotifyConformance, snmpNotifyFilterGroup=snmpNotifyFilterGroup, snmpNotifyFilterTable=snmpNotifyFilterTable, PYSNMP_MODULE_ID=snmpNotificationMIB, snmpNotifyFilterMask=snmpNotifyFilterMask, snmpNotifyFullCompliance=snmpNotifyFullCompliance, snmpNotifyFilterProfileEntry=snmpNotifyFilterProfileEntry, snmpNotifyFilterProfileRowStatus=snmpNotifyFilterProfileRowStatus, snmpNotifyFilterProfileStorType=snmpNotifyFilterProfileStorType, snmpNotifyFilterRowStatus=snmpNotifyFilterRowStatus, snmpNotifyBasicFiltersCompliance=snmpNotifyBasicFiltersCompliance, snmpNotifyFilterProfileTable=snmpNotifyFilterProfileTable, snmpNotifyType=snmpNotifyType, snmpNotifyTag=snmpNotifyTag, snmpNotifyName=snmpNotifyName, snmpNotifyObjects=snmpNotifyObjects, snmpNotifyGroup=snmpNotifyGroup, snmpNotifyGroups=snmpNotifyGroups, snmpNotifyRowStatus=snmpNotifyRowStatus, snmpNotifyFilterProfileName=snmpNotifyFilterProfileName, snmpNotificationMIB=snmpNotificationMIB, snmpNotifyFilterSubtree=snmpNotifyFilterSubtree, snmpNotifyStorageType=snmpNotifyStorageType, snmpNotifyCompliances=snmpNotifyCompliances, snmpNotifyFilterStorageType=snmpNotifyFilterStorageType, snmpNotifyFilterEntry=snmpNotifyFilterEntry, snmpNotifyTable=snmpNotifyTable)
+snmpNotifyBasicCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 13, 3, 1, 1)).setObjects(
+ *(("SNMP-TARGET-MIB", "snmpTargetBasicGroup"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyGroup"),))
+if mibBuilder.loadTexts:
+ snmpNotifyBasicCompliance.setDescription(
+ 'The compliance statement for minimal SNMP entities which\n implement only SNMP Unconfirmed-Class notifications and\n read-create operations on only the snmpTargetAddrTable.')
+snmpNotifyBasicFiltersCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 13, 3, 1, 2)).setObjects(*(
+ ("SNMP-TARGET-MIB", "snmpTargetBasicGroup"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyGroup"),
+ ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterGroup"),))
+if mibBuilder.loadTexts:
+ snmpNotifyBasicFiltersCompliance.setDescription(
+ 'The compliance statement for SNMP entities which implement\n SNMP Unconfirmed-Class notifications with filtering, and\n read-create operations on all related tables.')
+snmpNotifyFullCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 13, 3, 1, 3)).setObjects(*(
+ ("SNMP-TARGET-MIB", "snmpTargetBasicGroup"), ("SNMP-TARGET-MIB", "snmpTargetResponseGroup"),
+ ("SNMP-NOTIFICATION-MIB", "snmpNotifyGroup"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterGroup"),))
+if mibBuilder.loadTexts:
+ snmpNotifyFullCompliance.setDescription(
+ 'The compliance statement for SNMP entities which either\n implement only SNMP Confirmed-Class notifications, or both\n SNMP Unconfirmed-Class and Confirmed-Class notifications,\n plus filtering and read-create operations on all related\n tables.')
+snmpNotifyGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 13, 3, 2, 1)).setObjects(*(
+ ("SNMP-NOTIFICATION-MIB", "snmpNotifyTag"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyType"),
+ ("SNMP-NOTIFICATION-MIB", "snmpNotifyStorageType"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyRowStatus"),))
+if mibBuilder.loadTexts:
+ snmpNotifyGroup.setDescription(
+ 'A collection of objects for selecting which management\n targets are used for generating notifications, and the\n type of notification to be generated for each selected\n management target.')
+snmpNotifyFilterGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 13, 3, 2, 2)).setObjects(*(
+ ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterProfileName"),
+ ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterProfileStorType"),
+ ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterProfileRowStatus"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterMask"),
+ ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterType"), ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterStorageType"),
+ ("SNMP-NOTIFICATION-MIB", "snmpNotifyFilterRowStatus"),))
+if mibBuilder.loadTexts:
+ snmpNotifyFilterGroup.setDescription(
+ 'A collection of objects providing remote configuration\n of notification filters.')
+mibBuilder.exportSymbols("SNMP-NOTIFICATION-MIB", snmpNotifyBasicCompliance=snmpNotifyBasicCompliance,
+ snmpNotifyEntry=snmpNotifyEntry, snmpNotifyFilterType=snmpNotifyFilterType,
+ snmpNotifyConformance=snmpNotifyConformance, snmpNotifyFilterGroup=snmpNotifyFilterGroup,
+ snmpNotifyFilterTable=snmpNotifyFilterTable, PYSNMP_MODULE_ID=snmpNotificationMIB,
+ snmpNotifyFilterMask=snmpNotifyFilterMask, snmpNotifyFullCompliance=snmpNotifyFullCompliance,
+ snmpNotifyFilterProfileEntry=snmpNotifyFilterProfileEntry,
+ snmpNotifyFilterProfileRowStatus=snmpNotifyFilterProfileRowStatus,
+ snmpNotifyFilterProfileStorType=snmpNotifyFilterProfileStorType,
+ snmpNotifyFilterRowStatus=snmpNotifyFilterRowStatus,
+ snmpNotifyBasicFiltersCompliance=snmpNotifyBasicFiltersCompliance,
+ snmpNotifyFilterProfileTable=snmpNotifyFilterProfileTable, snmpNotifyType=snmpNotifyType,
+ snmpNotifyTag=snmpNotifyTag, snmpNotifyName=snmpNotifyName,
+ snmpNotifyObjects=snmpNotifyObjects, snmpNotifyGroup=snmpNotifyGroup,
+ snmpNotifyGroups=snmpNotifyGroups, snmpNotifyRowStatus=snmpNotifyRowStatus,
+ snmpNotifyFilterProfileName=snmpNotifyFilterProfileName,
+ snmpNotificationMIB=snmpNotificationMIB, snmpNotifyFilterSubtree=snmpNotifyFilterSubtree,
+ snmpNotifyStorageType=snmpNotifyStorageType, snmpNotifyCompliances=snmpNotifyCompliances,
+ snmpNotifyFilterStorageType=snmpNotifyFilterStorageType,
+ snmpNotifyFilterEntry=snmpNotifyFilterEntry, snmpNotifyTable=snmpNotifyTable)
diff --git a/pysnmp/smi/mibs/SNMP-PROXY-MIB.py b/pysnmp/smi/mibs/SNMP-PROXY-MIB.py
index 5c7997d5..f4992e83 100644
--- a/pysnmp/smi/mibs/SNMP-PROXY-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-PROXY-MIB.py
@@ -10,47 +10,117 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( SnmpEngineID, SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpEngineID", "SnmpAdminString")
-( SnmpTagValue, ) = mibBuilder.importSymbols("SNMP-TARGET-MIB", "SnmpTagValue")
-( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso", "ObjectIdentity", "Bits", "Counter32")
-( StorageType, DisplayString, RowStatus, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "StorageType", "DisplayString", "RowStatus", "TextualConvention")
-snmpProxyMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 14)).setRevisions(("2002-10-14 00:00", "1998-08-04 00:00", "1997-07-14 00:00",))
-if mibBuilder.loadTexts: snmpProxyMIB.setLastUpdated('200210140000Z')
-if mibBuilder.loadTexts: snmpProxyMIB.setOrganization('IETF SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpProxyMIB.setContactInfo('WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In message body: subscribe snmpv3\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n Postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n Phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor: David B. Levi\n Nortel Networks\n Postal: 3505 Kesterwood Drive\n Knoxville, Tennessee 37918\n EMail: dlevi@nortelnetworks.com\n Phone: +1 865 686 0432\n\n Co-editor: Paul Meyer\n Secure Computing Corporation\n Postal: 2675 Long Lake Road\n Roseville, Minnesota 55113\n EMail: paul_meyer@securecomputing.com\n Phone: +1 651 628 1592\n\n Co-editor: Bob Stewart\n Retired')
-if mibBuilder.loadTexts: snmpProxyMIB.setDescription('This MIB module defines MIB objects which provide\n mechanisms to remotely configure the parameters\n used by a proxy forwarding application.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3413;\n see the RFC itself for full legal notices.\n ')
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(SnmpEngineID, SnmpAdminString,) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpEngineID", "SnmpAdminString")
+(SnmpTagValue,) = mibBuilder.importSymbols("SNMP-TARGET-MIB", "SnmpTagValue")
+(NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance", "ObjectGroup")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso",
+ "ObjectIdentity", "Bits", "Counter32")
+(StorageType, DisplayString, RowStatus, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "StorageType",
+ "DisplayString", "RowStatus",
+ "TextualConvention")
+snmpProxyMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 14)).setRevisions(
+ ("2002-10-14 00:00", "1998-08-04 00:00", "1997-07-14 00:00",))
+if mibBuilder.loadTexts:
+ snmpProxyMIB.setLastUpdated('200210140000Z')
+if mibBuilder.loadTexts:
+ snmpProxyMIB.setOrganization('IETF SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpProxyMIB.setContactInfo(
+ 'WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In message body: subscribe snmpv3\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n Postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n Phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor: David B. Levi\n Nortel Networks\n Postal: 3505 Kesterwood Drive\n Knoxville, Tennessee 37918\n EMail: dlevi@nortelnetworks.com\n Phone: +1 865 686 0432\n\n Co-editor: Paul Meyer\n Secure Computing Corporation\n Postal: 2675 Long Lake Road\n Roseville, Minnesota 55113\n EMail: paul_meyer@securecomputing.com\n Phone: +1 651 628 1592\n\n Co-editor: Bob Stewart\n Retired')
+if mibBuilder.loadTexts:
+ snmpProxyMIB.setDescription(
+ 'This MIB module defines MIB objects which provide\n mechanisms to remotely configure the parameters\n used by a proxy forwarding application.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3413;\n see the RFC itself for full legal notices.\n ')
snmpProxyObjects = MibIdentifier((1, 3, 6, 1, 6, 3, 14, 1))
snmpProxyConformance = MibIdentifier((1, 3, 6, 1, 6, 3, 14, 3))
snmpProxyTable = MibTable((1, 3, 6, 1, 6, 3, 14, 1, 2), )
-if mibBuilder.loadTexts: snmpProxyTable.setDescription('The table of translation parameters used by proxy forwarder\n applications for forwarding SNMP messages.')
+if mibBuilder.loadTexts:
+ snmpProxyTable.setDescription(
+ 'The table of translation parameters used by proxy forwarder\n applications for forwarding SNMP messages.')
snmpProxyEntry = MibTableRow((1, 3, 6, 1, 6, 3, 14, 1, 2, 1), ).setIndexNames((1, "SNMP-PROXY-MIB", "snmpProxyName"))
-if mibBuilder.loadTexts: snmpProxyEntry.setDescription('A set of translation parameters used by a proxy forwarder\n application for forwarding SNMP messages.\n\n Entries in the snmpProxyTable are created and deleted\n using the snmpProxyRowStatus object.')
-snmpProxyName = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
-if mibBuilder.loadTexts: snmpProxyName.setDescription('The locally arbitrary, but unique identifier associated\n with this snmpProxyEntry.')
-snmpProxyType = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4,)).clone(namedValues=NamedValues(("read", 1), ("write", 2), ("trap", 3), ("inform", 4),))).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpProxyType.setDescription('The type of message that may be forwarded using\n the translation parameters defined by this entry.')
+if mibBuilder.loadTexts:
+ snmpProxyEntry.setDescription(
+ 'A set of translation parameters used by a proxy forwarder\n application for forwarding SNMP messages.\n\n Entries in the snmpProxyTable are created and deleted\n using the snmpProxyRowStatus object.')
+snmpProxyName = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 1),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
+if mibBuilder.loadTexts:
+ snmpProxyName.setDescription(
+ 'The locally arbitrary, but unique identifier associated\n with this snmpProxyEntry.')
+snmpProxyType = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 2),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, 3, 4, )).clone(
+ namedValues=NamedValues(("read", 1), ("write", 2), ("trap", 3),
+ ("inform", 4), ))).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpProxyType.setDescription(
+ 'The type of message that may be forwarded using\n the translation parameters defined by this entry.')
snmpProxyContextEngineID = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 3), SnmpEngineID()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpProxyContextEngineID.setDescription('The contextEngineID contained in messages that\n may be forwarded using the translation parameters\n defined by this entry.')
+if mibBuilder.loadTexts:
+ snmpProxyContextEngineID.setDescription(
+ 'The contextEngineID contained in messages that\n may be forwarded using the translation parameters\n defined by this entry.')
snmpProxyContextName = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 4), SnmpAdminString()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpProxyContextName.setDescription('The contextName contained in messages that may be\n forwarded using the translation parameters defined\n by this entry.\n\n This object is optional, and if not supported, the\n contextName contained in a message is ignored when\n selecting an entry in the snmpProxyTable.')
-snmpProxyTargetParamsIn = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 5), SnmpAdminString()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpProxyTargetParamsIn.setDescription('This object selects an entry in the snmpTargetParamsTable.\n The selected entry is used to determine which row of the\n snmpProxyTable to use for forwarding received messages.')
-snmpProxySingleTargetOut = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 6), SnmpAdminString()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpProxySingleTargetOut.setDescription('This object selects a management target defined in the\n snmpTargetAddrTable (in the SNMP-TARGET-MIB). The\n selected target is defined by an entry in the\n snmpTargetAddrTable whose index value (snmpTargetAddrName)\n is equal to this object.\n\n This object is only used when selection of a single\n target is required (i.e. when forwarding an incoming\n read or write request).')
-snmpProxyMultipleTargetOut = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 7), SnmpTagValue()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpProxyMultipleTargetOut.setDescription('This object selects a set of management targets defined\n in the snmpTargetAddrTable (in the SNMP-TARGET-MIB).\n\n This object is only used when selection of multiple\n targets is required (i.e. when forwarding an incoming\n notification).')
-snmpProxyStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 8), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpProxyStorageType.setDescription("The storage type of this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
+if mibBuilder.loadTexts:
+ snmpProxyContextName.setDescription(
+ 'The contextName contained in messages that may be\n forwarded using the translation parameters defined\n by this entry.\n\n This object is optional, and if not supported, the\n contextName contained in a message is ignored when\n selecting an entry in the snmpProxyTable.')
+snmpProxyTargetParamsIn = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 5), SnmpAdminString()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpProxyTargetParamsIn.setDescription(
+ 'This object selects an entry in the snmpTargetParamsTable.\n The selected entry is used to determine which row of the\n snmpProxyTable to use for forwarding received messages.')
+snmpProxySingleTargetOut = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 6), SnmpAdminString()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpProxySingleTargetOut.setDescription(
+ 'This object selects a management target defined in the\n snmpTargetAddrTable (in the SNMP-TARGET-MIB). The\n selected target is defined by an entry in the\n snmpTargetAddrTable whose index value (snmpTargetAddrName)\n is equal to this object.\n\n This object is only used when selection of a single\n target is required (i.e. when forwarding an incoming\n read or write request).')
+snmpProxyMultipleTargetOut = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 7), SnmpTagValue()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpProxyMultipleTargetOut.setDescription(
+ 'This object selects a set of management targets defined\n in the snmpTargetAddrTable (in the SNMP-TARGET-MIB).\n\n This object is only used when selection of multiple\n targets is required (i.e. when forwarding an incoming\n notification).')
+snmpProxyStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 8),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpProxyStorageType.setDescription(
+ "The storage type of this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
snmpProxyRowStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 14, 1, 2, 1, 9), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpProxyRowStatus.setDescription('The status of this conceptual row.\n\n To create a row in this table, a manager must\n\n set this object to either createAndGo(4) or\n createAndWait(5).\n\n The following objects may not be modified while the\n value of this object is active(1):\n - snmpProxyType\n - snmpProxyContextEngineID\n - snmpProxyContextName\n - snmpProxyTargetParamsIn\n - snmpProxySingleTargetOut\n - snmpProxyMultipleTargetOut')
+if mibBuilder.loadTexts:
+ snmpProxyRowStatus.setDescription(
+ 'The status of this conceptual row.\n\n To create a row in this table, a manager must\n\n set this object to either createAndGo(4) or\n createAndWait(5).\n\n The following objects may not be modified while the\n value of this object is active(1):\n - snmpProxyType\n - snmpProxyContextEngineID\n - snmpProxyContextName\n - snmpProxyTargetParamsIn\n - snmpProxySingleTargetOut\n - snmpProxyMultipleTargetOut')
snmpProxyCompliances = MibIdentifier((1, 3, 6, 1, 6, 3, 14, 3, 1))
snmpProxyGroups = MibIdentifier((1, 3, 6, 1, 6, 3, 14, 3, 2))
-snmpProxyCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 14, 3, 1, 1)).setObjects(*(("SNMP-TARGET-MIB", "snmpTargetBasicGroup"), ("SNMP-TARGET-MIB", "snmpTargetResponseGroup"), ("SNMP-PROXY-MIB", "snmpProxyGroup"),))
-if mibBuilder.loadTexts: snmpProxyCompliance.setDescription('The compliance statement for SNMP entities which include\n a proxy forwarding application.')
-snmpProxyGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 14, 3, 2, 3)).setObjects(*(("SNMP-PROXY-MIB", "snmpProxyType"), ("SNMP-PROXY-MIB", "snmpProxyContextEngineID"), ("SNMP-PROXY-MIB", "snmpProxyContextName"), ("SNMP-PROXY-MIB", "snmpProxyTargetParamsIn"), ("SNMP-PROXY-MIB", "snmpProxySingleTargetOut"), ("SNMP-PROXY-MIB", "snmpProxyMultipleTargetOut"), ("SNMP-PROXY-MIB", "snmpProxyStorageType"), ("SNMP-PROXY-MIB", "snmpProxyRowStatus"),))
-if mibBuilder.loadTexts: snmpProxyGroup.setDescription('A collection of objects providing remote configuration of\n management target translation parameters for use by\n proxy forwarder applications.')
-mibBuilder.exportSymbols("SNMP-PROXY-MIB", snmpProxyMIB=snmpProxyMIB, snmpProxyEntry=snmpProxyEntry, snmpProxyContextEngineID=snmpProxyContextEngineID, snmpProxyStorageType=snmpProxyStorageType, snmpProxyCompliance=snmpProxyCompliance, PYSNMP_MODULE_ID=snmpProxyMIB, snmpProxyMultipleTargetOut=snmpProxyMultipleTargetOut, snmpProxyTargetParamsIn=snmpProxyTargetParamsIn, snmpProxyTable=snmpProxyTable, snmpProxyObjects=snmpProxyObjects, snmpProxyType=snmpProxyType, snmpProxyCompliances=snmpProxyCompliances, snmpProxyContextName=snmpProxyContextName, snmpProxyGroups=snmpProxyGroups, snmpProxyConformance=snmpProxyConformance, snmpProxyRowStatus=snmpProxyRowStatus, snmpProxyGroup=snmpProxyGroup, snmpProxyName=snmpProxyName, snmpProxySingleTargetOut=snmpProxySingleTargetOut)
+snmpProxyCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 14, 3, 1, 1)).setObjects(
+ *(("SNMP-TARGET-MIB", "snmpTargetBasicGroup"), ("SNMP-TARGET-MIB", "snmpTargetResponseGroup"),
+ ("SNMP-PROXY-MIB", "snmpProxyGroup"))
+)
+if mibBuilder.loadTexts:
+ snmpProxyCompliance.setDescription(
+ 'The compliance statement for SNMP entities which include\n a proxy forwarding application.')
+snmpProxyGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 14, 3, 2, 3)).setObjects(
+ *(("SNMP-PROXY-MIB", "snmpProxyType"), ("SNMP-PROXY-MIB", "snmpProxyContextEngineID"),
+ ("SNMP-PROXY-MIB", "snmpProxyContextName"), ("SNMP-PROXY-MIB", "snmpProxyTargetParamsIn"),
+ ("SNMP-PROXY-MIB", "snmpProxySingleTargetOut"), ("SNMP-PROXY-MIB", "snmpProxyMultipleTargetOut"),
+ ("SNMP-PROXY-MIB", "snmpProxyStorageType"), ("SNMP-PROXY-MIB", "snmpProxyRowStatus"))
+)
+if mibBuilder.loadTexts:
+ snmpProxyGroup.setDescription(
+ 'A collection of objects providing remote configuration of\n management target translation parameters for use by\n proxy forwarder applications.')
+mibBuilder.exportSymbols("SNMP-PROXY-MIB", snmpProxyMIB=snmpProxyMIB, snmpProxyEntry=snmpProxyEntry,
+ snmpProxyContextEngineID=snmpProxyContextEngineID, snmpProxyStorageType=snmpProxyStorageType,
+ snmpProxyCompliance=snmpProxyCompliance, PYSNMP_MODULE_ID=snmpProxyMIB,
+ snmpProxyMultipleTargetOut=snmpProxyMultipleTargetOut,
+ snmpProxyTargetParamsIn=snmpProxyTargetParamsIn, snmpProxyTable=snmpProxyTable,
+ snmpProxyObjects=snmpProxyObjects, snmpProxyType=snmpProxyType,
+ snmpProxyCompliances=snmpProxyCompliances, snmpProxyContextName=snmpProxyContextName,
+ snmpProxyGroups=snmpProxyGroups, snmpProxyConformance=snmpProxyConformance,
+ snmpProxyRowStatus=snmpProxyRowStatus, snmpProxyGroup=snmpProxyGroup,
+ snmpProxyName=snmpProxyName, snmpProxySingleTargetOut=snmpProxySingleTargetOut)
diff --git a/pysnmp/smi/mibs/SNMP-TARGET-MIB.py b/pysnmp/smi/mibs/SNMP-TARGET-MIB.py
index ee53e118..8bb80ebd 100644
--- a/pysnmp/smi/mibs/SNMP-TARGET-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-TARGET-MIB.py
@@ -10,13 +10,27 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( SnmpSecurityModel, SnmpMessageProcessingModel, SnmpSecurityLevel, SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpSecurityModel", "SnmpMessageProcessingModel", "SnmpSecurityLevel", "SnmpAdminString")
-( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, iso, Gauge32, snmpModules, ModuleIdentity, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "iso", "Gauge32", "snmpModules", "ModuleIdentity", "ObjectIdentity", "Bits", "Counter32")
-( TimeInterval, TextualConvention, StorageType, TestAndIncr, RowStatus, DisplayString, TAddress, TDomain, ) = mibBuilder.importSymbols("SNMPv2-TC", "TimeInterval", "TextualConvention", "StorageType", "TestAndIncr", "RowStatus", "DisplayString", "TAddress", "TDomain")
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(SnmpSecurityModel, SnmpMessageProcessingModel, SnmpSecurityLevel, SnmpAdminString,) = mibBuilder.importSymbols(
+ "SNMP-FRAMEWORK-MIB", "SnmpSecurityModel", "SnmpMessageProcessingModel", "SnmpSecurityLevel", "SnmpAdminString")
+(NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance", "ObjectGroup")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, iso, Gauge32, snmpModules, ModuleIdentity, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "iso", "Gauge32", "snmpModules", "ModuleIdentity",
+ "ObjectIdentity", "Bits", "Counter32")
+(TimeInterval, TextualConvention, StorageType, TestAndIncr, RowStatus, DisplayString, TAddress,
+ TDomain,) = mibBuilder.importSymbols("SNMPv2-TC", "TimeInterval", "TextualConvention", "StorageType", "TestAndIncr",
+ "RowStatus", "DisplayString", "TAddress", "TDomain")
+
#
# WARNING: some of the classes below are manually implemented
@@ -24,9 +38,10 @@
class SnmpTagList(TextualConvention, OctetString):
displayHint = "255t"
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(0,255)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255)
encoding = 'utf-8'
_delimiters = (' ', '\n', '\t', '\t')
+
def prettyIn(self, value):
inDelim = True
for v in str(value):
@@ -39,12 +54,14 @@ class SnmpTagList(TextualConvention, OctetString):
if value and inDelim:
raise error.SmiError('Dangling delimiter not allowed in tag list %r' % value)
return OctetString.prettyIn(self, value)
-
+
+
class SnmpTagValue(TextualConvention, OctetString):
displayHint = "255t"
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(0,255)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255)
encoding = 'utf-8'
_delimiters = (' ', '\n', '\t', '\t')
+
def prettyIn(self, value):
for v in str(value):
if v in self._delimiters:
@@ -52,67 +69,175 @@ class SnmpTagValue(TextualConvention, OctetString):
return OctetString.prettyIn(self, value)
-snmpTargetMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 12)).setRevisions(("2002-10-14 00:00", "1998-08-04 00:00", "1997-07-14 00:00",))
-if mibBuilder.loadTexts: snmpTargetMIB.setLastUpdated('200210140000Z')
-if mibBuilder.loadTexts: snmpTargetMIB.setOrganization('IETF SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpTargetMIB.setContactInfo('WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In message body: subscribe snmpv3\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n Postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n Phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor: David B. Levi\n Nortel Networks\n Postal: 3505 Kesterwood Drive\n Knoxville, Tennessee 37918\n EMail: dlevi@nortelnetworks.com\n Phone: +1 865 686 0432\n\n Co-editor: Paul Meyer\n Secure Computing Corporation\n Postal: 2675 Long Lake Road\n\n Roseville, Minnesota 55113\n EMail: paul_meyer@securecomputing.com\n Phone: +1 651 628 1592\n\n Co-editor: Bob Stewart\n Retired')
-if mibBuilder.loadTexts: snmpTargetMIB.setDescription('This MIB module defines MIB objects which provide\n mechanisms to remotely configure the parameters used\n by an SNMP entity for the generation of SNMP messages.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3413;\n see the RFC itself for full legal notices.\n ')
+snmpTargetMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 12)).setRevisions(
+ ("2002-10-14 00:00", "1998-08-04 00:00", "1997-07-14 00:00",))
+if mibBuilder.loadTexts:
+ snmpTargetMIB.setLastUpdated('200210140000Z')
+if mibBuilder.loadTexts:
+ snmpTargetMIB.setOrganization('IETF SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpTargetMIB.setContactInfo(
+ 'WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In message body: subscribe snmpv3\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n Postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n Phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor: David B. Levi\n Nortel Networks\n Postal: 3505 Kesterwood Drive\n Knoxville, Tennessee 37918\n EMail: dlevi@nortelnetworks.com\n Phone: +1 865 686 0432\n\n Co-editor: Paul Meyer\n Secure Computing Corporation\n Postal: 2675 Long Lake Road\n\n Roseville, Minnesota 55113\n EMail: paul_meyer@securecomputing.com\n Phone: +1 651 628 1592\n\n Co-editor: Bob Stewart\n Retired')
+if mibBuilder.loadTexts:
+ snmpTargetMIB.setDescription(
+ 'This MIB module defines MIB objects which provide\n mechanisms to remotely configure the parameters used\n by an SNMP entity for the generation of SNMP messages.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3413;\n see the RFC itself for full legal notices.\n ')
snmpTargetObjects = MibIdentifier((1, 3, 6, 1, 6, 3, 12, 1))
snmpTargetConformance = MibIdentifier((1, 3, 6, 1, 6, 3, 12, 3))
snmpTargetSpinLock = MibScalar((1, 3, 6, 1, 6, 3, 12, 1, 1), TestAndIncr()).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: snmpTargetSpinLock.setDescription('This object is used to facilitate modification of table\n entries in the SNMP-TARGET-MIB module by multiple\n managers. In particular, it is useful when modifying\n the value of the snmpTargetAddrTagList object.\n\n The procedure for modifying the snmpTargetAddrTagList\n object is as follows:\n\n 1. Retrieve the value of snmpTargetSpinLock and\n of snmpTargetAddrTagList.\n\n 2. Generate a new value for snmpTargetAddrTagList.\n\n 3. Set the value of snmpTargetSpinLock to the\n retrieved value, and the value of\n snmpTargetAddrTagList to the new value. If\n the set fails for the snmpTargetSpinLock\n object, go back to step 1.')
+if mibBuilder.loadTexts:
+ snmpTargetSpinLock.setDescription(
+ 'This object is used to facilitate modification of table\n entries in the SNMP-TARGET-MIB module by multiple\n managers. In particular, it is useful when modifying\n the value of the snmpTargetAddrTagList object.\n\n The procedure for modifying the snmpTargetAddrTagList\n object is as follows:\n\n 1. Retrieve the value of snmpTargetSpinLock and\n of snmpTargetAddrTagList.\n\n 2. Generate a new value for snmpTargetAddrTagList.\n\n 3. Set the value of snmpTargetSpinLock to the\n retrieved value, and the value of\n snmpTargetAddrTagList to the new value. If\n the set fails for the snmpTargetSpinLock\n object, go back to step 1.')
snmpTargetAddrTable = MibTable((1, 3, 6, 1, 6, 3, 12, 1, 2), )
-if mibBuilder.loadTexts: snmpTargetAddrTable.setDescription('A table of transport addresses to be used in the generation\n of SNMP messages.')
-snmpTargetAddrEntry = MibTableRow((1, 3, 6, 1, 6, 3, 12, 1, 2, 1), ).setIndexNames((1, "SNMP-TARGET-MIB", "snmpTargetAddrName"))
-if mibBuilder.loadTexts: snmpTargetAddrEntry.setDescription('A transport address to be used in the generation\n of SNMP operations.\n\n Entries in the snmpTargetAddrTable are created and\n deleted using the snmpTargetAddrRowStatus object.')
-snmpTargetAddrName = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
-if mibBuilder.loadTexts: snmpTargetAddrName.setDescription('The locally arbitrary, but unique identifier associated\n with this snmpTargetAddrEntry.')
+if mibBuilder.loadTexts:
+ snmpTargetAddrTable.setDescription(
+ 'A table of transport addresses to be used in the generation\n of SNMP messages.')
+snmpTargetAddrEntry = MibTableRow((1, 3, 6, 1, 6, 3, 12, 1, 2, 1), ).setIndexNames(
+ (1, "SNMP-TARGET-MIB", "snmpTargetAddrName"))
+if mibBuilder.loadTexts:
+ snmpTargetAddrEntry.setDescription(
+ 'A transport address to be used in the generation\n of SNMP operations.\n\n Entries in the snmpTargetAddrTable are created and\n deleted using the snmpTargetAddrRowStatus object.')
+snmpTargetAddrName = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 1),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
+if mibBuilder.loadTexts:
+ snmpTargetAddrName.setDescription(
+ 'The locally arbitrary, but unique identifier associated\n with this snmpTargetAddrEntry.')
snmpTargetAddrTDomain = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 2), TDomain()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrTDomain.setDescription('This object indicates the transport type of the address\n contained in the snmpTargetAddrTAddress object.')
+if mibBuilder.loadTexts:
+ snmpTargetAddrTDomain.setDescription(
+ 'This object indicates the transport type of the address\n contained in the snmpTargetAddrTAddress object.')
snmpTargetAddrTAddress = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 3), TAddress()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrTAddress.setDescription('This object contains a transport address. The format of\n this address depends on the value of the\n snmpTargetAddrTDomain object.')
-snmpTargetAddrTimeout = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 4), TimeInterval().clone(1500)).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrTimeout.setDescription('This object should reflect the expected maximum round\n trip time for communicating with the transport address\n defined by this row. When a message is sent to this\n address, and a response (if one is expected) is not\n received within this time period, an implementation\n may assume that the response will not be delivered.\n\n Note that the time interval that an application waits\n for a response may actually be derived from the value\n of this object. The method for deriving the actual time\n interval is implementation dependent. One such method\n is to derive the expected round trip time based on a\n particular retransmission algorithm and on the number\n of timeouts which have occurred. The type of message may\n also be considered when deriving expected round trip\n times for retransmissions. For example, if a message is\n being sent with a securityLevel that indicates both\n\n authentication and privacy, the derived value may be\n increased to compensate for extra processing time spent\n during authentication and encryption processing.')
-snmpTargetAddrRetryCount = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,255)).clone(3)).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrRetryCount.setDescription('This object specifies a default number of retries to be\n attempted when a response is not received for a generated\n message. An application may provide its own retry count,\n in which case the value of this object is ignored.')
+if mibBuilder.loadTexts:
+ snmpTargetAddrTAddress.setDescription(
+ 'This object contains a transport address. The format of\n this address depends on the value of the\n snmpTargetAddrTDomain object.')
+snmpTargetAddrTimeout = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 4), TimeInterval().clone(1500)).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetAddrTimeout.setDescription(
+ 'This object should reflect the expected maximum round\n trip time for communicating with the transport address\n defined by this row. When a message is sent to this\n address, and a response (if one is expected) is not\n received within this time period, an implementation\n may assume that the response will not be delivered.\n\n Note that the time interval that an application waits\n for a response may actually be derived from the value\n of this object. The method for deriving the actual time\n interval is implementation dependent. One such method\n is to derive the expected round trip time based on a\n particular retransmission algorithm and on the number\n of timeouts which have occurred. The type of message may\n also be considered when deriving expected round trip\n times for retransmissions. For example, if a message is\n being sent with a securityLevel that indicates both\n\n authentication and privacy, the derived value may be\n increased to compensate for extra processing time spent\n during authentication and encryption processing.')
+snmpTargetAddrRetryCount = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 5),
+ Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(
+ 3)).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetAddrRetryCount.setDescription(
+ 'This object specifies a default number of retries to be\n attempted when a response is not received for a generated\n message. An application may provide its own retry count,\n in which case the value of this object is ignored.')
snmpTargetAddrTagList = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 6), SnmpTagList()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrTagList.setDescription('This object contains a list of tag values which are\n used to select target addresses for a particular\n operation.')
-snmpTargetAddrParams = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 7), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32))).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrParams.setDescription('The value of this object identifies an entry in the\n snmpTargetParamsTable. The identified entry\n contains SNMP parameters to be used when generating\n messages to be sent to this transport address.')
-snmpTargetAddrStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 8), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrStorageType.setDescription("The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
+if mibBuilder.loadTexts:
+ snmpTargetAddrTagList.setDescription(
+ 'This object contains a list of tag values which are\n used to select target addresses for a particular\n operation.')
+snmpTargetAddrParams = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 7),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetAddrParams.setDescription(
+ 'The value of this object identifies an entry in the\n snmpTargetParamsTable. The identified entry\n contains SNMP parameters to be used when generating\n messages to be sent to this transport address.')
+snmpTargetAddrStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 8),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetAddrStorageType.setDescription(
+ "The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
snmpTargetAddrRowStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 2, 1, 9), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetAddrRowStatus.setDescription("The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n corresponding instance of the snmpTargetAddrRowStatus\n column is 'notReady'.\n\n In particular, a newly created row cannot be made\n active until the corresponding instances of\n snmpTargetAddrTDomain, snmpTargetAddrTAddress, and\n snmpTargetAddrParams have all been set.\n\n The following objects may not be modified while the\n value of this object is active(1):\n - snmpTargetAddrTDomain\n - snmpTargetAddrTAddress\n An attempt to set these objects while the value of\n snmpTargetAddrRowStatus is active(1) will result in\n an inconsistentValue error.")
+if mibBuilder.loadTexts:
+ snmpTargetAddrRowStatus.setDescription(
+ "The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n corresponding instance of the snmpTargetAddrRowStatus\n column is 'notReady'.\n\n In particular, a newly created row cannot be made\n active until the corresponding instances of\n snmpTargetAddrTDomain, snmpTargetAddrTAddress, and\n snmpTargetAddrParams have all been set.\n\n The following objects may not be modified while the\n value of this object is active(1):\n - snmpTargetAddrTDomain\n - snmpTargetAddrTAddress\n An attempt to set these objects while the value of\n snmpTargetAddrRowStatus is active(1) will result in\n an inconsistentValue error.")
snmpTargetParamsTable = MibTable((1, 3, 6, 1, 6, 3, 12, 1, 3), )
-if mibBuilder.loadTexts: snmpTargetParamsTable.setDescription('A table of SNMP target information to be used\n in the generation of SNMP messages.')
-snmpTargetParamsEntry = MibTableRow((1, 3, 6, 1, 6, 3, 12, 1, 3, 1), ).setIndexNames((1, "SNMP-TARGET-MIB", "snmpTargetParamsName"))
-if mibBuilder.loadTexts: snmpTargetParamsEntry.setDescription('A set of SNMP target information.\n\n Entries in the snmpTargetParamsTable are created and\n deleted using the snmpTargetParamsRowStatus object.')
-snmpTargetParamsName = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
-if mibBuilder.loadTexts: snmpTargetParamsName.setDescription('The locally arbitrary, but unique identifier associated\n with this snmpTargetParamsEntry.')
-snmpTargetParamsMPModel = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 2), SnmpMessageProcessingModel()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetParamsMPModel.setDescription('The Message Processing Model to be used when generating\n SNMP messages using this entry.')
-snmpTargetParamsSecurityModel = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 3), SnmpSecurityModel().subtype(subtypeSpec=ValueRangeConstraint(1,2147483647))).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetParamsSecurityModel.setDescription('The Security Model to be used when generating SNMP\n messages using this entry. An implementation may\n choose to return an inconsistentValue error if an\n attempt is made to set this variable to a value\n for a security model which the implementation does\n not support.')
-snmpTargetParamsSecurityName = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 4), SnmpAdminString()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetParamsSecurityName.setDescription('The securityName which identifies the Principal on\n whose behalf SNMP messages will be generated using\n this entry.')
-snmpTargetParamsSecurityLevel = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 5), SnmpSecurityLevel()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetParamsSecurityLevel.setDescription('The Level of Security to be used when generating\n SNMP messages using this entry.')
-snmpTargetParamsStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 6), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetParamsStorageType.setDescription("The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
+if mibBuilder.loadTexts:
+ snmpTargetParamsTable.setDescription(
+ 'A table of SNMP target information to be used\n in the generation of SNMP messages.')
+snmpTargetParamsEntry = MibTableRow((1, 3, 6, 1, 6, 3, 12, 1, 3, 1), ).setIndexNames(
+ (1, "SNMP-TARGET-MIB", "snmpTargetParamsName"))
+if mibBuilder.loadTexts:
+ snmpTargetParamsEntry.setDescription(
+ 'A set of SNMP target information.\n\n Entries in the snmpTargetParamsTable are created and\n deleted using the snmpTargetParamsRowStatus object.')
+snmpTargetParamsName = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 1),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
+if mibBuilder.loadTexts:
+ snmpTargetParamsName.setDescription(
+ 'The locally arbitrary, but unique identifier associated\n with this snmpTargetParamsEntry.')
+snmpTargetParamsMPModel = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 2), SnmpMessageProcessingModel()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetParamsMPModel.setDescription(
+ 'The Message Processing Model to be used when generating\n SNMP messages using this entry.')
+snmpTargetParamsSecurityModel = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 3), SnmpSecurityModel().subtype(
+ subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetParamsSecurityModel.setDescription(
+ 'The Security Model to be used when generating SNMP\n messages using this entry. An implementation may\n choose to return an inconsistentValue error if an\n attempt is made to set this variable to a value\n for a security model which the implementation does\n not support.')
+snmpTargetParamsSecurityName = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 4), SnmpAdminString()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetParamsSecurityName.setDescription(
+ 'The securityName which identifies the Principal on\n whose behalf SNMP messages will be generated using\n this entry.')
+snmpTargetParamsSecurityLevel = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 5), SnmpSecurityLevel()).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetParamsSecurityLevel.setDescription(
+ 'The Level of Security to be used when generating\n SNMP messages using this entry.')
+snmpTargetParamsStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 6),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ snmpTargetParamsStorageType.setDescription(
+ "The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.")
snmpTargetParamsRowStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 12, 1, 3, 1, 7), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: snmpTargetParamsRowStatus.setDescription("The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n corresponding instance of the snmpTargetParamsRowStatus\n column is 'notReady'.\n\n In particular, a newly created row cannot be made\n active until the corresponding\n snmpTargetParamsMPModel,\n snmpTargetParamsSecurityModel,\n snmpTargetParamsSecurityName,\n and snmpTargetParamsSecurityLevel have all been set.\n\n The following objects may not be modified while the\n value of this object is active(1):\n - snmpTargetParamsMPModel\n - snmpTargetParamsSecurityModel\n - snmpTargetParamsSecurityName\n - snmpTargetParamsSecurityLevel\n An attempt to set these objects while the value of\n snmpTargetParamsRowStatus is active(1) will result in\n an inconsistentValue error.")
+if mibBuilder.loadTexts:
+ snmpTargetParamsRowStatus.setDescription(
+ "The status of this conceptual row.\n\n To create a row in this table, a manager must\n set this object to either createAndGo(4) or\n createAndWait(5).\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n corresponding instance of the snmpTargetParamsRowStatus\n column is 'notReady'.\n\n In particular, a newly created row cannot be made\n active until the corresponding\n snmpTargetParamsMPModel,\n snmpTargetParamsSecurityModel,\n snmpTargetParamsSecurityName,\n and snmpTargetParamsSecurityLevel have all been set.\n\n The following objects may not be modified while the\n value of this object is active(1):\n - snmpTargetParamsMPModel\n - snmpTargetParamsSecurityModel\n - snmpTargetParamsSecurityName\n - snmpTargetParamsSecurityLevel\n An attempt to set these objects while the value of\n snmpTargetParamsRowStatus is active(1) will result in\n an inconsistentValue error.")
snmpUnavailableContexts = MibScalar((1, 3, 6, 1, 6, 3, 12, 1, 4), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpUnavailableContexts.setDescription('The total number of packets received by the SNMP\n engine which were dropped because the context\n contained in the message was unavailable.')
+if mibBuilder.loadTexts:
+ snmpUnavailableContexts.setDescription(
+ 'The total number of packets received by the SNMP\n engine which were dropped because the context\n contained in the message was unavailable.')
snmpUnknownContexts = MibScalar((1, 3, 6, 1, 6, 3, 12, 1, 5), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpUnknownContexts.setDescription('The total number of packets received by the SNMP\n engine which were dropped because the context\n contained in the message was unknown.')
+if mibBuilder.loadTexts:
+ snmpUnknownContexts.setDescription(
+ 'The total number of packets received by the SNMP\n engine which were dropped because the context\n contained in the message was unknown.')
snmpTargetCompliances = MibIdentifier((1, 3, 6, 1, 6, 3, 12, 3, 1))
snmpTargetGroups = MibIdentifier((1, 3, 6, 1, 6, 3, 12, 3, 2))
-snmpTargetCommandResponderCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 12, 3, 1, 1)).setObjects(*(("SNMP-TARGET-MIB", "snmpTargetCommandResponderGroup"),))
-if mibBuilder.loadTexts: snmpTargetCommandResponderCompliance.setDescription('The compliance statement for SNMP entities which include\n a command responder application.')
-snmpTargetBasicGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 12, 3, 2, 1)).setObjects(*(("SNMP-TARGET-MIB", "snmpTargetSpinLock"), ("SNMP-TARGET-MIB", "snmpTargetAddrTDomain"), ("SNMP-TARGET-MIB", "snmpTargetAddrTAddress"), ("SNMP-TARGET-MIB", "snmpTargetAddrTagList"), ("SNMP-TARGET-MIB", "snmpTargetAddrParams"), ("SNMP-TARGET-MIB", "snmpTargetAddrStorageType"), ("SNMP-TARGET-MIB", "snmpTargetAddrRowStatus"), ("SNMP-TARGET-MIB", "snmpTargetParamsMPModel"), ("SNMP-TARGET-MIB", "snmpTargetParamsSecurityModel"), ("SNMP-TARGET-MIB", "snmpTargetParamsSecurityName"), ("SNMP-TARGET-MIB", "snmpTargetParamsSecurityLevel"), ("SNMP-TARGET-MIB", "snmpTargetParamsStorageType"), ("SNMP-TARGET-MIB", "snmpTargetParamsRowStatus"),))
-if mibBuilder.loadTexts: snmpTargetBasicGroup.setDescription('A collection of objects providing basic remote\n configuration of management targets.')
-snmpTargetResponseGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 12, 3, 2, 2)).setObjects(*(("SNMP-TARGET-MIB", "snmpTargetAddrTimeout"), ("SNMP-TARGET-MIB", "snmpTargetAddrRetryCount"),))
-if mibBuilder.loadTexts: snmpTargetResponseGroup.setDescription('A collection of objects providing remote configuration\n of management targets for applications which generate\n SNMP messages for which a response message would be\n expected.')
-snmpTargetCommandResponderGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 12, 3, 2, 3)).setObjects(*(("SNMP-TARGET-MIB", "snmpUnavailableContexts"), ("SNMP-TARGET-MIB", "snmpUnknownContexts"),))
-if mibBuilder.loadTexts: snmpTargetCommandResponderGroup.setDescription('A collection of objects required for command responder\n applications, used for counting error conditions.')
-mibBuilder.exportSymbols("SNMP-TARGET-MIB", snmpTargetAddrTAddress=snmpTargetAddrTAddress, snmpTargetAddrStorageType=snmpTargetAddrStorageType, snmpTargetParamsName=snmpTargetParamsName, snmpTargetParamsRowStatus=snmpTargetParamsRowStatus, snmpTargetCommandResponderCompliance=snmpTargetCommandResponderCompliance, snmpTargetAddrTagList=snmpTargetAddrTagList, snmpTargetObjects=snmpTargetObjects, snmpTargetAddrTable=snmpTargetAddrTable, PYSNMP_MODULE_ID=snmpTargetMIB, snmpTargetGroups=snmpTargetGroups, snmpTargetAddrTDomain=snmpTargetAddrTDomain, snmpUnavailableContexts=snmpUnavailableContexts, snmpTargetParamsStorageType=snmpTargetParamsStorageType, snmpTargetParamsSecurityModel=snmpTargetParamsSecurityModel, snmpTargetMIB=snmpTargetMIB, snmpTargetAddrRowStatus=snmpTargetAddrRowStatus, snmpTargetCompliances=snmpTargetCompliances, snmpTargetParamsSecurityLevel=snmpTargetParamsSecurityLevel, snmpTargetResponseGroup=snmpTargetResponseGroup, snmpTargetCommandResponderGroup=snmpTargetCommandResponderGroup, snmpTargetAddrTimeout=snmpTargetAddrTimeout, snmpTargetAddrEntry=snmpTargetAddrEntry, snmpTargetParamsEntry=snmpTargetParamsEntry, snmpTargetAddrName=snmpTargetAddrName, snmpTargetAddrParams=snmpTargetAddrParams, snmpUnknownContexts=snmpUnknownContexts, snmpTargetParamsSecurityName=snmpTargetParamsSecurityName, snmpTargetConformance=snmpTargetConformance, SnmpTagList=SnmpTagList, snmpTargetSpinLock=snmpTargetSpinLock, SnmpTagValue=SnmpTagValue, snmpTargetParamsMPModel=snmpTargetParamsMPModel, snmpTargetParamsTable=snmpTargetParamsTable, snmpTargetBasicGroup=snmpTargetBasicGroup, snmpTargetAddrRetryCount=snmpTargetAddrRetryCount)
+snmpTargetCommandResponderCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 12, 3, 1, 1)).setObjects(
+ *(("SNMP-TARGET-MIB", "snmpTargetCommandResponderGroup"),))
+if mibBuilder.loadTexts:
+ snmpTargetCommandResponderCompliance.setDescription(
+ 'The compliance statement for SNMP entities which include\n a command responder application.')
+snmpTargetBasicGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 12, 3, 2, 1)).setObjects(
+ *(("SNMP-TARGET-MIB", "snmpTargetSpinLock"), ("SNMP-TARGET-MIB", "snmpTargetAddrTDomain"),
+ ("SNMP-TARGET-MIB", "snmpTargetAddrTAddress"), ("SNMP-TARGET-MIB", "snmpTargetAddrTagList"),
+ ("SNMP-TARGET-MIB", "snmpTargetAddrParams"), ("SNMP-TARGET-MIB", "snmpTargetAddrStorageType"),
+ ("SNMP-TARGET-MIB", "snmpTargetAddrRowStatus"), ("SNMP-TARGET-MIB", "snmpTargetParamsMPModel"),
+ ("SNMP-TARGET-MIB", "snmpTargetParamsSecurityModel"), ("SNMP-TARGET-MIB", "snmpTargetParamsSecurityName"),
+ ("SNMP-TARGET-MIB", "snmpTargetParamsSecurityLevel"), ("SNMP-TARGET-MIB", "snmpTargetParamsStorageType"),
+ ("SNMP-TARGET-MIB", "snmpTargetParamsRowStatus"))
+)
+if mibBuilder.loadTexts:
+ snmpTargetBasicGroup.setDescription(
+ 'A collection of objects providing basic remote\n configuration of management targets.')
+snmpTargetResponseGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 12, 3, 2, 2)).setObjects(
+ *(("SNMP-TARGET-MIB", "snmpTargetAddrTimeout"), ("SNMP-TARGET-MIB", "snmpTargetAddrRetryCount"),))
+if mibBuilder.loadTexts:
+ snmpTargetResponseGroup.setDescription(
+ 'A collection of objects providing remote configuration\n of management targets for applications which generate\n SNMP messages for which a response message would be\n expected.')
+snmpTargetCommandResponderGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 12, 3, 2, 3)).setObjects(
+ *(("SNMP-TARGET-MIB", "snmpUnavailableContexts"), ("SNMP-TARGET-MIB", "snmpUnknownContexts"),))
+if mibBuilder.loadTexts:
+ snmpTargetCommandResponderGroup.setDescription(
+ 'A collection of objects required for command responder\n applications, used for counting error conditions.')
+mibBuilder.exportSymbols("SNMP-TARGET-MIB", snmpTargetAddrTAddress=snmpTargetAddrTAddress,
+ snmpTargetAddrStorageType=snmpTargetAddrStorageType, snmpTargetParamsName=snmpTargetParamsName,
+ snmpTargetParamsRowStatus=snmpTargetParamsRowStatus,
+ snmpTargetCommandResponderCompliance=snmpTargetCommandResponderCompliance,
+ snmpTargetAddrTagList=snmpTargetAddrTagList, snmpTargetObjects=snmpTargetObjects,
+ snmpTargetAddrTable=snmpTargetAddrTable, PYSNMP_MODULE_ID=snmpTargetMIB,
+ snmpTargetGroups=snmpTargetGroups, snmpTargetAddrTDomain=snmpTargetAddrTDomain,
+ snmpUnavailableContexts=snmpUnavailableContexts,
+ snmpTargetParamsStorageType=snmpTargetParamsStorageType,
+ snmpTargetParamsSecurityModel=snmpTargetParamsSecurityModel, snmpTargetMIB=snmpTargetMIB,
+ snmpTargetAddrRowStatus=snmpTargetAddrRowStatus, snmpTargetCompliances=snmpTargetCompliances,
+ snmpTargetParamsSecurityLevel=snmpTargetParamsSecurityLevel,
+ snmpTargetResponseGroup=snmpTargetResponseGroup,
+ snmpTargetCommandResponderGroup=snmpTargetCommandResponderGroup,
+ snmpTargetAddrTimeout=snmpTargetAddrTimeout, snmpTargetAddrEntry=snmpTargetAddrEntry,
+ snmpTargetParamsEntry=snmpTargetParamsEntry, snmpTargetAddrName=snmpTargetAddrName,
+ snmpTargetAddrParams=snmpTargetAddrParams, snmpUnknownContexts=snmpUnknownContexts,
+ snmpTargetParamsSecurityName=snmpTargetParamsSecurityName,
+ snmpTargetConformance=snmpTargetConformance, SnmpTagList=SnmpTagList,
+ snmpTargetSpinLock=snmpTargetSpinLock, SnmpTagValue=SnmpTagValue,
+ snmpTargetParamsMPModel=snmpTargetParamsMPModel, snmpTargetParamsTable=snmpTargetParamsTable,
+ snmpTargetBasicGroup=snmpTargetBasicGroup, snmpTargetAddrRetryCount=snmpTargetAddrRetryCount)
diff --git a/pysnmp/smi/mibs/SNMP-USER-BASED-SM-3DES-MIB.py b/pysnmp/smi/mibs/SNMP-USER-BASED-SM-3DES-MIB.py
index 270c48a1..f62b3e45 100644
--- a/pysnmp/smi/mibs/SNMP-USER-BASED-SM-3DES-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-USER-BASED-SM-3DES-MIB.py
@@ -10,18 +10,37 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( snmpPrivProtocols, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "snmpPrivProtocols")
-( NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, iso, Gauge32, snmpModules, ModuleIdentity, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "iso", "Gauge32", "snmpModules", "ModuleIdentity", "ObjectIdentity", "Bits", "Counter32")
-( DisplayString, TextualConvention, AutonomousType, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "AutonomousType")
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(snmpPrivProtocols,) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "snmpPrivProtocols")
+(NotificationGroup, ModuleCompliance,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, iso, Gauge32, snmpModules, ModuleIdentity, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "iso", "Gauge32", "snmpModules", "ModuleIdentity",
+ "ObjectIdentity", "Bits", "Counter32")
+(DisplayString, TextualConvention, AutonomousType,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString",
+ "TextualConvention", "AutonomousType")
snmpUsmMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 15)).setRevisions(("1999-10-06 00:00",))
-if mibBuilder.loadTexts: snmpUsmMIB.setLastUpdated('9910060000Z')
-if mibBuilder.loadTexts: snmpUsmMIB.setOrganization('SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpUsmMIB.setContactInfo('WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In msg body: subscribe snmpv3\n\n Chair: Russ Mundy\n NAI Labs\n postal: 3060 Washington Rd\n Glenwood MD 21738\n USA\n email: mundy@tislabs.com\n phone: +1-443-259-2307\n\n Co-editor: David Reeder\n NAI Labs\n postal: 3060 Washington Road (Route 97)\n Glenwood, MD 21738\n USA\n email: dreeder@tislabs.com\n phone: +1-443-259-2348\n\n Co-editor: Olafur Gudmundsson\n NAI Labs\n postal: 3060 Washington Road (Route 97)\n Glenwood, MD 21738\n USA\n email: ogud@tislabs.com\n phone: +1-443-259-2389\n ')
-if mibBuilder.loadTexts: snmpUsmMIB.setDescription("Extension to the SNMP User-based Security Model\n to support Triple-DES EDE in 'Outside' CBC\n (cipher-block chaining) Mode.\n ")
+if mibBuilder.loadTexts:
+ snmpUsmMIB.setLastUpdated('9910060000Z')
+if mibBuilder.loadTexts:
+ snmpUsmMIB.setOrganization('SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpUsmMIB.setContactInfo(
+ 'WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In msg body: subscribe snmpv3\n\n Chair: Russ Mundy\n NAI Labs\n postal: 3060 Washington Rd\n Glenwood MD 21738\n USA\n email: mundy@tislabs.com\n phone: +1-443-259-2307\n\n Co-editor: David Reeder\n NAI Labs\n postal: 3060 Washington Road (Route 97)\n Glenwood, MD 21738\n USA\n email: dreeder@tislabs.com\n phone: +1-443-259-2348\n\n Co-editor: Olafur Gudmundsson\n NAI Labs\n postal: 3060 Washington Road (Route 97)\n Glenwood, MD 21738\n USA\n email: ogud@tislabs.com\n phone: +1-443-259-2389\n ')
+if mibBuilder.loadTexts:
+ snmpUsmMIB.setDescription(
+ "Extension to the SNMP User-based Security Model\n to support Triple-DES EDE in 'Outside' CBC\n (cipher-block chaining) Mode.\n ")
usm3DESEDEPrivProtocol = ObjectIdentity((1, 3, 6, 1, 6, 3, 10, 1, 2, 3))
-if mibBuilder.loadTexts: usm3DESEDEPrivProtocol.setDescription('The 3DES-EDE Symmetric Encryption Protocol.')
-mibBuilder.exportSymbols("SNMP-USER-BASED-SM-3DES-MIB", snmpUsmMIB=snmpUsmMIB, usm3DESEDEPrivProtocol=usm3DESEDEPrivProtocol, PYSNMP_MODULE_ID=snmpUsmMIB)
+if mibBuilder.loadTexts:
+ usm3DESEDEPrivProtocol.setDescription('The 3DES-EDE Symmetric Encryption Protocol.')
+mibBuilder.exportSymbols("SNMP-USER-BASED-SM-3DES-MIB", snmpUsmMIB=snmpUsmMIB,
+ usm3DESEDEPrivProtocol=usm3DESEDEPrivProtocol, PYSNMP_MODULE_ID=snmpUsmMIB)
diff --git a/pysnmp/smi/mibs/SNMP-USER-BASED-SM-MIB.py b/pysnmp/smi/mibs/SNMP-USER-BASED-SM-MIB.py
index 716620d1..c295b4d1 100644
--- a/pysnmp/smi/mibs/SNMP-USER-BASED-SM-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-USER-BASED-SM-MIB.py
@@ -10,83 +10,202 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( SnmpAdminString, snmpPrivProtocols, snmpAuthProtocols, SnmpEngineID, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString", "snmpPrivProtocols", "snmpAuthProtocols", "SnmpEngineID")
-( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso", "ObjectIdentity", "Bits", "Counter32")
-( TextualConvention, AutonomousType, StorageType, TestAndIncr, RowStatus, DisplayString, RowPointer, ) = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "AutonomousType", "StorageType", "TestAndIncr", "RowStatus", "DisplayString", "RowPointer")
-snmpUsmMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 15)).setRevisions(("2002-10-16 00:00", "1999-01-20 00:00", "1997-11-20 00:00",))
-if mibBuilder.loadTexts: snmpUsmMIB.setLastUpdated('200210160000Z')
-if mibBuilder.loadTexts: snmpUsmMIB.setOrganization('SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpUsmMIB.setContactInfo('WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In msg body: subscribe snmpv3\n\n Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n email: mundy@tislabs.com\n\n phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor Uri Blumenthal\n Lucent Technologies\n postal: 67 Whippany Rd.\n Whippany, NJ 07981\n USA\n email: uri@lucent.com\n phone: +1-973-386-2163\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n email: bwijnen@lucent.com\n phone: +31-348-480-685\n ')
-if mibBuilder.loadTexts: snmpUsmMIB.setDescription('The management information definitions for the\n SNMP User-based Security Model.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3414;\n see the RFC itself for full legal notices.\n ')
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(SnmpAdminString, snmpPrivProtocols, snmpAuthProtocols, SnmpEngineID,) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB",
+ "SnmpAdminString",
+ "snmpPrivProtocols",
+ "snmpAuthProtocols",
+ "SnmpEngineID")
+(NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance", "ObjectGroup")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso",
+ "ObjectIdentity", "Bits", "Counter32")
+(TextualConvention, AutonomousType, StorageType, TestAndIncr, RowStatus, DisplayString,
+ RowPointer,) = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "AutonomousType", "StorageType",
+ "TestAndIncr", "RowStatus", "DisplayString", "RowPointer")
+snmpUsmMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 15)).setRevisions(
+ ("2002-10-16 00:00", "1999-01-20 00:00", "1997-11-20 00:00",))
+if mibBuilder.loadTexts:
+ snmpUsmMIB.setLastUpdated('200210160000Z')
+if mibBuilder.loadTexts:
+ snmpUsmMIB.setOrganization('SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpUsmMIB.setContactInfo(
+ 'WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In msg body: subscribe snmpv3\n\n Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n email: mundy@tislabs.com\n\n phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor Uri Blumenthal\n Lucent Technologies\n postal: 67 Whippany Rd.\n Whippany, NJ 07981\n USA\n email: uri@lucent.com\n phone: +1-973-386-2163\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n email: bwijnen@lucent.com\n phone: +31-348-480-685\n ')
+if mibBuilder.loadTexts:
+ snmpUsmMIB.setDescription(
+ 'The management information definitions for the\n SNMP User-based Security Model.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3414;\n see the RFC itself for full legal notices.\n ')
usmMIBObjects = MibIdentifier((1, 3, 6, 1, 6, 3, 15, 1))
usmMIBConformance = MibIdentifier((1, 3, 6, 1, 6, 3, 15, 2))
usmNoAuthProtocol = ObjectIdentity((1, 3, 6, 1, 6, 3, 10, 1, 1, 1))
-if mibBuilder.loadTexts: usmNoAuthProtocol.setDescription('No Authentication Protocol.')
+if mibBuilder.loadTexts:
+ usmNoAuthProtocol.setDescription('No Authentication Protocol.')
usmHMACMD5AuthProtocol = ObjectIdentity((1, 3, 6, 1, 6, 3, 10, 1, 1, 2))
-if mibBuilder.loadTexts: usmHMACMD5AuthProtocol.setDescription('The HMAC-MD5-96 Digest Authentication Protocol.')
+if mibBuilder.loadTexts:
+ usmHMACMD5AuthProtocol.setDescription('The HMAC-MD5-96 Digest Authentication Protocol.')
usmHMACSHAAuthProtocol = ObjectIdentity((1, 3, 6, 1, 6, 3, 10, 1, 1, 3))
-if mibBuilder.loadTexts: usmHMACSHAAuthProtocol.setDescription('The HMAC-SHA-96 Digest Authentication Protocol.')
+if mibBuilder.loadTexts:
+ usmHMACSHAAuthProtocol.setDescription('The HMAC-SHA-96 Digest Authentication Protocol.')
usmNoPrivProtocol = ObjectIdentity((1, 3, 6, 1, 6, 3, 10, 1, 2, 1))
-if mibBuilder.loadTexts: usmNoPrivProtocol.setDescription('No Privacy Protocol.')
+if mibBuilder.loadTexts:
+ usmNoPrivProtocol.setDescription('No Privacy Protocol.')
usmDESPrivProtocol = ObjectIdentity((1, 3, 6, 1, 6, 3, 10, 1, 2, 2))
-if mibBuilder.loadTexts: usmDESPrivProtocol.setDescription('The CBC-DES Symmetric Encryption Protocol.')
+if mibBuilder.loadTexts:
+ usmDESPrivProtocol.setDescription('The CBC-DES Symmetric Encryption Protocol.')
+
+
class KeyChange(OctetString, TextualConvention):
pass
+
usmStats = MibIdentifier((1, 3, 6, 1, 6, 3, 15, 1, 1))
usmStatsUnsupportedSecLevels = MibScalar((1, 3, 6, 1, 6, 3, 15, 1, 1, 1), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: usmStatsUnsupportedSecLevels.setDescription('The total number of packets received by the SNMP\n engine which were dropped because they requested a\n securityLevel that was unknown to the SNMP engine\n or otherwise unavailable.\n ')
+if mibBuilder.loadTexts:
+ usmStatsUnsupportedSecLevels.setDescription(
+ 'The total number of packets received by the SNMP\n engine which were dropped because they requested a\n securityLevel that was unknown to the SNMP engine\n or otherwise unavailable.\n ')
usmStatsNotInTimeWindows = MibScalar((1, 3, 6, 1, 6, 3, 15, 1, 1, 2), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: usmStatsNotInTimeWindows.setDescription("The total number of packets received by the SNMP\n engine which were dropped because they appeared\n outside of the authoritative SNMP engine's window.\n ")
+if mibBuilder.loadTexts:
+ usmStatsNotInTimeWindows.setDescription(
+ "The total number of packets received by the SNMP\n engine which were dropped because they appeared\n outside of the authoritative SNMP engine's window.\n ")
usmStatsUnknownUserNames = MibScalar((1, 3, 6, 1, 6, 3, 15, 1, 1, 3), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: usmStatsUnknownUserNames.setDescription('The total number of packets received by the SNMP\n engine which were dropped because they referenced a\n user that was not known to the SNMP engine.\n ')
+if mibBuilder.loadTexts:
+ usmStatsUnknownUserNames.setDescription(
+ 'The total number of packets received by the SNMP\n engine which were dropped because they referenced a\n user that was not known to the SNMP engine.\n ')
usmStatsUnknownEngineIDs = MibScalar((1, 3, 6, 1, 6, 3, 15, 1, 1, 4), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: usmStatsUnknownEngineIDs.setDescription('The total number of packets received by the SNMP\n engine which were dropped because they referenced an\n snmpEngineID that was not known to the SNMP engine.\n ')
+if mibBuilder.loadTexts:
+ usmStatsUnknownEngineIDs.setDescription(
+ 'The total number of packets received by the SNMP\n engine which were dropped because they referenced an\n snmpEngineID that was not known to the SNMP engine.\n ')
usmStatsWrongDigests = MibScalar((1, 3, 6, 1, 6, 3, 15, 1, 1, 5), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: usmStatsWrongDigests.setDescription("The total number of packets received by the SNMP\n engine which were dropped because they didn't\n contain the expected digest value.\n ")
+if mibBuilder.loadTexts:
+ usmStatsWrongDigests.setDescription(
+ "The total number of packets received by the SNMP\n engine which were dropped because they didn't\n contain the expected digest value.\n ")
usmStatsDecryptionErrors = MibScalar((1, 3, 6, 1, 6, 3, 15, 1, 1, 6), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: usmStatsDecryptionErrors.setDescription('The total number of packets received by the SNMP\n engine which were dropped because they could not be\n decrypted.\n ')
+if mibBuilder.loadTexts:
+ usmStatsDecryptionErrors.setDescription(
+ 'The total number of packets received by the SNMP\n engine which were dropped because they could not be\n decrypted.\n ')
usmUser = MibIdentifier((1, 3, 6, 1, 6, 3, 15, 1, 2))
usmUserSpinLock = MibScalar((1, 3, 6, 1, 6, 3, 15, 1, 2, 1), TestAndIncr()).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: usmUserSpinLock.setDescription('An advisory lock used to allow several cooperating\n Command Generator Applications to coordinate their\n use of facilities to alter secrets in the\n usmUserTable.\n ')
+if mibBuilder.loadTexts:
+ usmUserSpinLock.setDescription(
+ 'An advisory lock used to allow several cooperating\n Command Generator Applications to coordinate their\n use of facilities to alter secrets in the\n usmUserTable.\n ')
usmUserTable = MibTable((1, 3, 6, 1, 6, 3, 15, 1, 2, 2), )
-if mibBuilder.loadTexts: usmUserTable.setDescription("The table of users configured in the SNMP engine's\n Local Configuration Datastore (LCD).\n\n To create a new user (i.e., to instantiate a new\n conceptual row in this table), it is recommended to\n follow this procedure:\n\n 1) GET(usmUserSpinLock.0) and save in sValue.\n\n 2) SET(usmUserSpinLock.0=sValue,\n usmUserCloneFrom=templateUser,\n usmUserStatus=createAndWait)\n You should use a template user to clone from\n which has the proper auth/priv protocol defined.\n\n If the new user is to use privacy:\n\n 3) generate the keyChange value based on the secret\n privKey of the clone-from user and the secret key\n to be used for the new user. Let us call this\n pkcValue.\n 4) GET(usmUserSpinLock.0) and save in sValue.\n 5) SET(usmUserSpinLock.0=sValue,\n usmUserPrivKeyChange=pkcValue\n usmUserPublic=randomValue1)\n 6) GET(usmUserPulic) and check it has randomValue1.\n If not, repeat steps 4-6.\n\n If the new user will never use privacy:\n\n 7) SET(usmUserPrivProtocol=usmNoPrivProtocol)\n\n If the new user is to use authentication:\n\n 8) generate the keyChange value based on the secret\n authKey of the clone-from user and the secret key\n to be used for the new user. Let us call this\n akcValue.\n 9) GET(usmUserSpinLock.0) and save in sValue.\n 10) SET(usmUserSpinLock.0=sValue,\n usmUserAuthKeyChange=akcValue\n usmUserPublic=randomValue2)\n 11) GET(usmUserPulic) and check it has randomValue2.\n If not, repeat steps 9-11.\n\n If the new user will never use authentication:\n\n 12) SET(usmUserAuthProtocol=usmNoAuthProtocol)\n\n Finally, activate the new user:\n\n 13) SET(usmUserStatus=active)\n\n The new user should now be available and ready to be\n used for SNMPv3 communication. Note however that access\n to MIB data must be provided via configuration of the\n SNMP-VIEW-BASED-ACM-MIB.\n\n The use of usmUserSpinlock is to avoid conflicts with\n another SNMP command generator application which may\n also be acting on the usmUserTable.\n ")
-usmUserEntry = MibTableRow((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1), ).setIndexNames((0, "SNMP-USER-BASED-SM-MIB", "usmUserEngineID"), (0, "SNMP-USER-BASED-SM-MIB", "usmUserName"))
-if mibBuilder.loadTexts: usmUserEntry.setDescription("A user configured in the SNMP engine's Local\n Configuration Datastore (LCD) for the User-based\n Security Model.\n ")
+if mibBuilder.loadTexts:
+ usmUserTable.setDescription(
+ "The table of users configured in the SNMP engine's\n Local Configuration Datastore (LCD).\n\n To create a new user (i.e., to instantiate a new\n conceptual row in this table), it is recommended to\n follow this procedure:\n\n 1) GET(usmUserSpinLock.0) and save in sValue.\n\n 2) SET(usmUserSpinLock.0=sValue,\n usmUserCloneFrom=templateUser,\n usmUserStatus=createAndWait)\n You should use a template user to clone from\n which has the proper auth/priv protocol defined.\n\n If the new user is to use privacy:\n\n 3) generate the keyChange value based on the secret\n privKey of the clone-from user and the secret key\n to be used for the new user. Let us call this\n pkcValue.\n 4) GET(usmUserSpinLock.0) and save in sValue.\n 5) SET(usmUserSpinLock.0=sValue,\n usmUserPrivKeyChange=pkcValue\n usmUserPublic=randomValue1)\n 6) GET(usmUserPulic) and check it has randomValue1.\n If not, repeat steps 4-6.\n\n If the new user will never use privacy:\n\n 7) SET(usmUserPrivProtocol=usmNoPrivProtocol)\n\n If the new user is to use authentication:\n\n 8) generate the keyChange value based on the secret\n authKey of the clone-from user and the secret key\n to be used for the new user. Let us call this\n akcValue.\n 9) GET(usmUserSpinLock.0) and save in sValue.\n 10) SET(usmUserSpinLock.0=sValue,\n usmUserAuthKeyChange=akcValue\n usmUserPublic=randomValue2)\n 11) GET(usmUserPulic) and check it has randomValue2.\n If not, repeat steps 9-11.\n\n If the new user will never use authentication:\n\n 12) SET(usmUserAuthProtocol=usmNoAuthProtocol)\n\n Finally, activate the new user:\n\n 13) SET(usmUserStatus=active)\n\n The new user should now be available and ready to be\n used for SNMPv3 communication. Note however that access\n to MIB data must be provided via configuration of the\n SNMP-VIEW-BASED-ACM-MIB.\n\n The use of usmUserSpinlock is to avoid conflicts with\n another SNMP command generator application which may\n also be acting on the usmUserTable.\n ")
+usmUserEntry = MibTableRow((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1), ).setIndexNames(
+ (0, "SNMP-USER-BASED-SM-MIB", "usmUserEngineID"), (0, "SNMP-USER-BASED-SM-MIB", "usmUserName"))
+if mibBuilder.loadTexts:
+ usmUserEntry.setDescription(
+ "A user configured in the SNMP engine's Local\n Configuration Datastore (LCD) for the User-based\n Security Model.\n ")
usmUserEngineID = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 1), SnmpEngineID())
-if mibBuilder.loadTexts: usmUserEngineID.setDescription("An SNMP engine's administratively-unique identifier.\n\n In a simple agent, this value is always that agent's\n own snmpEngineID value.\n\n The value can also take the value of the snmpEngineID\n of a remote SNMP engine with which this user can\n communicate.\n ")
-usmUserName = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
-if mibBuilder.loadTexts: usmUserName.setDescription('A human readable string representing the name of\n the user.\n\n This is the (User-based Security) Model dependent\n security ID.\n ')
+if mibBuilder.loadTexts:
+ usmUserEngineID.setDescription(
+ "An SNMP engine's administratively-unique identifier.\n\n In a simple agent, this value is always that agent's\n own snmpEngineID value.\n\n The value can also take the value of the snmpEngineID\n of a remote SNMP engine with which this user can\n communicate.\n ")
+usmUserName = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 2),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
+if mibBuilder.loadTexts:
+ usmUserName.setDescription(
+ 'A human readable string representing the name of\n the user.\n\n This is the (User-based Security) Model dependent\n security ID.\n ')
usmUserSecurityName = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 3), SnmpAdminString()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: usmUserSecurityName.setDescription('A human readable string representing the user in\n Security Model independent format.\n\n The default transformation of the User-based Security\n Model dependent security ID to the securityName and\n vice versa is the identity function so that the\n securityName is the same as the userName.\n ')
+if mibBuilder.loadTexts:
+ usmUserSecurityName.setDescription(
+ 'A human readable string representing the user in\n Security Model independent format.\n\n The default transformation of the User-based Security\n Model dependent security ID to the securityName and\n vice versa is the identity function so that the\n securityName is the same as the userName.\n ')
usmUserCloneFrom = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 4), RowPointer()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserCloneFrom.setDescription("A pointer to another conceptual row in this\n usmUserTable. The user in this other conceptual\n row is called the clone-from user.\n\n When a new user is created (i.e., a new conceptual\n row is instantiated in this table), the privacy and\n authentication parameters of the new user must be\n cloned from its clone-from user. These parameters are:\n - authentication protocol (usmUserAuthProtocol)\n - privacy protocol (usmUserPrivProtocol)\n They will be copied regardless of what the current\n value is.\n\n Cloning also causes the initial values of the secret\n authentication key (authKey) and the secret encryption\n\n key (privKey) of the new user to be set to the same\n values as the corresponding secrets of the clone-from\n user to allow the KeyChange process to occur as\n required during user creation.\n\n The first time an instance of this object is set by\n a management operation (either at or after its\n instantiation), the cloning process is invoked.\n Subsequent writes are successful but invoke no\n action to be taken by the receiver.\n The cloning process fails with an 'inconsistentName'\n error if the conceptual row representing the\n clone-from user does not exist or is not in an active\n state when the cloning process is invoked.\n\n When this object is read, the ZeroDotZero OID\n is returned.\n ")
-usmUserAuthProtocol = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 5), AutonomousType().clone((1, 3, 6, 1, 6, 3, 10, 1, 1, 1))).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserAuthProtocol.setDescription("An indication of whether messages sent on behalf of\n this user to/from the SNMP engine identified by\n usmUserEngineID, can be authenticated, and if so,\n the type of authentication protocol which is used.\n\n An instance of this object is created concurrently\n with the creation of any other object instance for\n the same user (i.e., as part of the processing of\n the set operation which creates the first object\n instance in the same conceptual row).\n\n If an initial set operation (i.e. at row creation time)\n tries to set a value for an unknown or unsupported\n protocol, then a 'wrongValue' error must be returned.\n\n The value will be overwritten/set when a set operation\n is performed on the corresponding instance of\n usmUserCloneFrom.\n\n Once instantiated, the value of such an instance of\n this object can only be changed via a set operation to\n the value of the usmNoAuthProtocol.\n\n If a set operation tries to change the value of an\n\n existing instance of this object to any value other\n than usmNoAuthProtocol, then an 'inconsistentValue'\n error must be returned.\n\n If a set operation tries to set the value to the\n usmNoAuthProtocol while the usmUserPrivProtocol value\n in the same row is not equal to usmNoPrivProtocol,\n then an 'inconsistentValue' error must be returned.\n That means that an SNMP command generator application\n must first ensure that the usmUserPrivProtocol is set\n to the usmNoPrivProtocol value before it can set\n the usmUserAuthProtocol value to usmNoAuthProtocol.\n ")
-usmUserAuthKeyChange = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 6), KeyChange().clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserAuthKeyChange.setDescription("An object, which when modified, causes the secret\n authentication key used for messages sent on behalf\n of this user to/from the SNMP engine identified by\n usmUserEngineID, to be modified via a one-way\n function.\n\n The associated protocol is the usmUserAuthProtocol.\n The associated secret key is the user's secret\n authentication key (authKey). The associated hash\n algorithm is the algorithm used by the user's\n usmUserAuthProtocol.\n\n When creating a new user, it is an 'inconsistentName'\n error for a set operation to refer to this object\n unless it is previously or concurrently initialized\n through a set operation on the corresponding instance\n of usmUserCloneFrom.\n\n When the value of the corresponding usmUserAuthProtocol\n is usmNoAuthProtocol, then a set is successful, but\n effectively is a no-op.\n\n When this object is read, the zero-length (empty)\n string is returned.\n\n The recommended way to do a key change is as follows:\n\n 1) GET(usmUserSpinLock.0) and save in sValue.\n 2) generate the keyChange value based on the old\n (existing) secret key and the new secret key,\n let us call this kcValue.\n\n If you do the key change on behalf of another user:\n\n 3) SET(usmUserSpinLock.0=sValue,\n usmUserAuthKeyChange=kcValue\n usmUserPublic=randomValue)\n\n If you do the key change for yourself:\n\n 4) SET(usmUserSpinLock.0=sValue,\n usmUserOwnAuthKeyChange=kcValue\n usmUserPublic=randomValue)\n\n If you get a response with error-status of noError,\n then the SET succeeded and the new key is active.\n If you do not get a response, then you can issue a\n GET(usmUserPublic) and check if the value is equal\n to the randomValue you did send in the SET. If so, then\n the key change succeeded and the new key is active\n (probably the response got lost). If not, then the SET\n request probably never reached the target and so you\n can start over with the procedure above.\n ")
-usmUserOwnAuthKeyChange = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 7), KeyChange().clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserOwnAuthKeyChange.setDescription("Behaves exactly as usmUserAuthKeyChange, with one\n notable difference: in order for the set operation\n to succeed, the usmUserName of the operation\n requester must match the usmUserName that\n indexes the row which is targeted by this\n operation.\n In addition, the USM security model must be\n used for this operation.\n\n The idea here is that access to this column can be\n public, since it will only allow a user to change\n his own secret authentication key (authKey).\n Note that this can only be done once the row is active.\n\n When a set is received and the usmUserName of the\n requester is not the same as the umsUserName that\n indexes the row which is targeted by this operation,\n then a 'noAccess' error must be returned.\n\n When a set is received and the security model in use\n is not USM, then a 'noAccess' error must be returned.\n ")
-usmUserPrivProtocol = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 8), AutonomousType().clone((1, 3, 6, 1, 6, 3, 10, 1, 2, 1))).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserPrivProtocol.setDescription("An indication of whether messages sent on behalf of\n this user to/from the SNMP engine identified by\n usmUserEngineID, can be protected from disclosure,\n and if so, the type of privacy protocol which is used.\n\n An instance of this object is created concurrently\n with the creation of any other object instance for\n the same user (i.e., as part of the processing of\n the set operation which creates the first object\n instance in the same conceptual row).\n\n If an initial set operation (i.e. at row creation time)\n tries to set a value for an unknown or unsupported\n protocol, then a 'wrongValue' error must be returned.\n\n The value will be overwritten/set when a set operation\n is performed on the corresponding instance of\n usmUserCloneFrom.\n\n Once instantiated, the value of such an instance of\n this object can only be changed via a set operation to\n the value of the usmNoPrivProtocol.\n\n If a set operation tries to change the value of an\n existing instance of this object to any value other\n than usmNoPrivProtocol, then an 'inconsistentValue'\n error must be returned.\n\n Note that if any privacy protocol is used, then you\n must also use an authentication protocol. In other\n words, if usmUserPrivProtocol is set to anything else\n than usmNoPrivProtocol, then the corresponding instance\n of usmUserAuthProtocol cannot have a value of\n\n usmNoAuthProtocol. If it does, then an\n 'inconsistentValue' error must be returned.\n ")
-usmUserPrivKeyChange = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 9), KeyChange().clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserPrivKeyChange.setDescription("An object, which when modified, causes the secret\n encryption key used for messages sent on behalf\n of this user to/from the SNMP engine identified by\n usmUserEngineID, to be modified via a one-way\n function.\n\n The associated protocol is the usmUserPrivProtocol.\n The associated secret key is the user's secret\n privacy key (privKey). The associated hash\n algorithm is the algorithm used by the user's\n usmUserAuthProtocol.\n\n When creating a new user, it is an 'inconsistentName'\n error for a set operation to refer to this object\n unless it is previously or concurrently initialized\n through a set operation on the corresponding instance\n of usmUserCloneFrom.\n\n When the value of the corresponding usmUserPrivProtocol\n is usmNoPrivProtocol, then a set is successful, but\n effectively is a no-op.\n\n When this object is read, the zero-length (empty)\n string is returned.\n See the description clause of usmUserAuthKeyChange for\n a recommended procedure to do a key change.\n ")
-usmUserOwnPrivKeyChange = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 10), KeyChange().clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserOwnPrivKeyChange.setDescription("Behaves exactly as usmUserPrivKeyChange, with one\n notable difference: in order for the Set operation\n to succeed, the usmUserName of the operation\n requester must match the usmUserName that indexes\n\n the row which is targeted by this operation.\n In addition, the USM security model must be\n used for this operation.\n\n The idea here is that access to this column can be\n public, since it will only allow a user to change\n his own secret privacy key (privKey).\n Note that this can only be done once the row is active.\n\n When a set is received and the usmUserName of the\n requester is not the same as the umsUserName that\n indexes the row which is targeted by this operation,\n then a 'noAccess' error must be returned.\n\n When a set is received and the security model in use\n is not USM, then a 'noAccess' error must be returned.\n ")
-usmUserPublic = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,32)).clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserPublic.setDescription("A publicly-readable value which can be written as part\n of the procedure for changing a user's secret\n authentication and/or privacy key, and later read to\n determine whether the change of the secret was\n effected.\n ")
-usmUserStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 12), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserStorageType.setDescription("The storage type for this conceptual row.\n\n Conceptual rows having the value 'permanent' must\n allow write-access at a minimum to:\n\n - usmUserAuthKeyChange, usmUserOwnAuthKeyChange\n and usmUserPublic for a user who employs\n authentication, and\n - usmUserPrivKeyChange, usmUserOwnPrivKeyChange\n and usmUserPublic for a user who employs\n privacy.\n\n Note that any user who employs authentication or\n privacy must allow its secret(s) to be updated and\n thus cannot be 'readOnly'.\n\n If an initial set operation tries to set the value to\n 'readOnly' for a user who employs authentication or\n privacy, then an 'inconsistentValue' error must be\n returned. Note that if the value has been previously\n set (implicit or explicit) to any value, then the rules\n as defined in the StorageType Textual Convention apply.\n\n It is an implementation issue to decide if a SET for\n a readOnly or permanent row is accepted at all. In some\n contexts this may make sense, in others it may not. If\n a SET for a readOnly or permanent row is not accepted\n at all, then a 'wrongValue' error must be returned.\n ")
+if mibBuilder.loadTexts:
+ usmUserCloneFrom.setDescription(
+ "A pointer to another conceptual row in this\n usmUserTable. The user in this other conceptual\n row is called the clone-from user.\n\n When a new user is created (i.e., a new conceptual\n row is instantiated in this table), the privacy and\n authentication parameters of the new user must be\n cloned from its clone-from user. These parameters are:\n - authentication protocol (usmUserAuthProtocol)\n - privacy protocol (usmUserPrivProtocol)\n They will be copied regardless of what the current\n value is.\n\n Cloning also causes the initial values of the secret\n authentication key (authKey) and the secret encryption\n\n key (privKey) of the new user to be set to the same\n values as the corresponding secrets of the clone-from\n user to allow the KeyChange process to occur as\n required during user creation.\n\n The first time an instance of this object is set by\n a management operation (either at or after its\n instantiation), the cloning process is invoked.\n Subsequent writes are successful but invoke no\n action to be taken by the receiver.\n The cloning process fails with an 'inconsistentName'\n error if the conceptual row representing the\n clone-from user does not exist or is not in an active\n state when the cloning process is invoked.\n\n When this object is read, the ZeroDotZero OID\n is returned.\n ")
+usmUserAuthProtocol = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 5),
+ AutonomousType().clone((1, 3, 6, 1, 6, 3, 10, 1, 1, 1))).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ usmUserAuthProtocol.setDescription(
+ "An indication of whether messages sent on behalf of\n this user to/from the SNMP engine identified by\n usmUserEngineID, can be authenticated, and if so,\n the type of authentication protocol which is used.\n\n An instance of this object is created concurrently\n with the creation of any other object instance for\n the same user (i.e., as part of the processing of\n the set operation which creates the first object\n instance in the same conceptual row).\n\n If an initial set operation (i.e. at row creation time)\n tries to set a value for an unknown or unsupported\n protocol, then a 'wrongValue' error must be returned.\n\n The value will be overwritten/set when a set operation\n is performed on the corresponding instance of\n usmUserCloneFrom.\n\n Once instantiated, the value of such an instance of\n this object can only be changed via a set operation to\n the value of the usmNoAuthProtocol.\n\n If a set operation tries to change the value of an\n\n existing instance of this object to any value other\n than usmNoAuthProtocol, then an 'inconsistentValue'\n error must be returned.\n\n If a set operation tries to set the value to the\n usmNoAuthProtocol while the usmUserPrivProtocol value\n in the same row is not equal to usmNoPrivProtocol,\n then an 'inconsistentValue' error must be returned.\n That means that an SNMP command generator application\n must first ensure that the usmUserPrivProtocol is set\n to the usmNoPrivProtocol value before it can set\n the usmUserAuthProtocol value to usmNoAuthProtocol.\n ")
+usmUserAuthKeyChange = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 6),
+ KeyChange().clone(hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ usmUserAuthKeyChange.setDescription(
+ "An object, which when modified, causes the secret\n authentication key used for messages sent on behalf\n of this user to/from the SNMP engine identified by\n usmUserEngineID, to be modified via a one-way\n function.\n\n The associated protocol is the usmUserAuthProtocol.\n The associated secret key is the user's secret\n authentication key (authKey). The associated hash\n algorithm is the algorithm used by the user's\n usmUserAuthProtocol.\n\n When creating a new user, it is an 'inconsistentName'\n error for a set operation to refer to this object\n unless it is previously or concurrently initialized\n through a set operation on the corresponding instance\n of usmUserCloneFrom.\n\n When the value of the corresponding usmUserAuthProtocol\n is usmNoAuthProtocol, then a set is successful, but\n effectively is a no-op.\n\n When this object is read, the zero-length (empty)\n string is returned.\n\n The recommended way to do a key change is as follows:\n\n 1) GET(usmUserSpinLock.0) and save in sValue.\n 2) generate the keyChange value based on the old\n (existing) secret key and the new secret key,\n let us call this kcValue.\n\n If you do the key change on behalf of another user:\n\n 3) SET(usmUserSpinLock.0=sValue,\n usmUserAuthKeyChange=kcValue\n usmUserPublic=randomValue)\n\n If you do the key change for yourself:\n\n 4) SET(usmUserSpinLock.0=sValue,\n usmUserOwnAuthKeyChange=kcValue\n usmUserPublic=randomValue)\n\n If you get a response with error-status of noError,\n then the SET succeeded and the new key is active.\n If you do not get a response, then you can issue a\n GET(usmUserPublic) and check if the value is equal\n to the randomValue you did send in the SET. If so, then\n the key change succeeded and the new key is active\n (probably the response got lost). If not, then the SET\n request probably never reached the target and so you\n can start over with the procedure above.\n ")
+usmUserOwnAuthKeyChange = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 7),
+ KeyChange().clone(hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ usmUserOwnAuthKeyChange.setDescription(
+ "Behaves exactly as usmUserAuthKeyChange, with one\n notable difference: in order for the set operation\n to succeed, the usmUserName of the operation\n requester must match the usmUserName that\n indexes the row which is targeted by this\n operation.\n In addition, the USM security model must be\n used for this operation.\n\n The idea here is that access to this column can be\n public, since it will only allow a user to change\n his own secret authentication key (authKey).\n Note that this can only be done once the row is active.\n\n When a set is received and the usmUserName of the\n requester is not the same as the umsUserName that\n indexes the row which is targeted by this operation,\n then a 'noAccess' error must be returned.\n\n When a set is received and the security model in use\n is not USM, then a 'noAccess' error must be returned.\n ")
+usmUserPrivProtocol = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 8),
+ AutonomousType().clone((1, 3, 6, 1, 6, 3, 10, 1, 2, 1))).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ usmUserPrivProtocol.setDescription(
+ "An indication of whether messages sent on behalf of\n this user to/from the SNMP engine identified by\n usmUserEngineID, can be protected from disclosure,\n and if so, the type of privacy protocol which is used.\n\n An instance of this object is created concurrently\n with the creation of any other object instance for\n the same user (i.e., as part of the processing of\n the set operation which creates the first object\n instance in the same conceptual row).\n\n If an initial set operation (i.e. at row creation time)\n tries to set a value for an unknown or unsupported\n protocol, then a 'wrongValue' error must be returned.\n\n The value will be overwritten/set when a set operation\n is performed on the corresponding instance of\n usmUserCloneFrom.\n\n Once instantiated, the value of such an instance of\n this object can only be changed via a set operation to\n the value of the usmNoPrivProtocol.\n\n If a set operation tries to change the value of an\n existing instance of this object to any value other\n than usmNoPrivProtocol, then an 'inconsistentValue'\n error must be returned.\n\n Note that if any privacy protocol is used, then you\n must also use an authentication protocol. In other\n words, if usmUserPrivProtocol is set to anything else\n than usmNoPrivProtocol, then the corresponding instance\n of usmUserAuthProtocol cannot have a value of\n\n usmNoAuthProtocol. If it does, then an\n 'inconsistentValue' error must be returned.\n ")
+usmUserPrivKeyChange = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 9),
+ KeyChange().clone(hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ usmUserPrivKeyChange.setDescription(
+ "An object, which when modified, causes the secret\n encryption key used for messages sent on behalf\n of this user to/from the SNMP engine identified by\n usmUserEngineID, to be modified via a one-way\n function.\n\n The associated protocol is the usmUserPrivProtocol.\n The associated secret key is the user's secret\n privacy key (privKey). The associated hash\n algorithm is the algorithm used by the user's\n usmUserAuthProtocol.\n\n When creating a new user, it is an 'inconsistentName'\n error for a set operation to refer to this object\n unless it is previously or concurrently initialized\n through a set operation on the corresponding instance\n of usmUserCloneFrom.\n\n When the value of the corresponding usmUserPrivProtocol\n is usmNoPrivProtocol, then a set is successful, but\n effectively is a no-op.\n\n When this object is read, the zero-length (empty)\n string is returned.\n See the description clause of usmUserAuthKeyChange for\n a recommended procedure to do a key change.\n ")
+usmUserOwnPrivKeyChange = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 10),
+ KeyChange().clone(hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ usmUserOwnPrivKeyChange.setDescription(
+ "Behaves exactly as usmUserPrivKeyChange, with one\n notable difference: in order for the Set operation\n to succeed, the usmUserName of the operation\n requester must match the usmUserName that indexes\n\n the row which is targeted by this operation.\n In addition, the USM security model must be\n used for this operation.\n\n The idea here is that access to this column can be\n public, since it will only allow a user to change\n his own secret privacy key (privKey).\n Note that this can only be done once the row is active.\n\n When a set is received and the usmUserName of the\n requester is not the same as the umsUserName that\n indexes the row which is targeted by this operation,\n then a 'noAccess' error must be returned.\n\n When a set is received and the security model in use\n is not USM, then a 'noAccess' error must be returned.\n ")
+usmUserPublic = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 11),
+ OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone(
+ hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ usmUserPublic.setDescription(
+ "A publicly-readable value which can be written as part\n of the procedure for changing a user's secret\n authentication and/or privacy key, and later read to\n determine whether the change of the secret was\n effected.\n ")
+usmUserStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 12),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ usmUserStorageType.setDescription(
+ "The storage type for this conceptual row.\n\n Conceptual rows having the value 'permanent' must\n allow write-access at a minimum to:\n\n - usmUserAuthKeyChange, usmUserOwnAuthKeyChange\n and usmUserPublic for a user who employs\n authentication, and\n - usmUserPrivKeyChange, usmUserOwnPrivKeyChange\n and usmUserPublic for a user who employs\n privacy.\n\n Note that any user who employs authentication or\n privacy must allow its secret(s) to be updated and\n thus cannot be 'readOnly'.\n\n If an initial set operation tries to set the value to\n 'readOnly' for a user who employs authentication or\n privacy, then an 'inconsistentValue' error must be\n returned. Note that if the value has been previously\n set (implicit or explicit) to any value, then the rules\n as defined in the StorageType Textual Convention apply.\n\n It is an implementation issue to decide if a SET for\n a readOnly or permanent row is accepted at all. In some\n contexts this may make sense, in others it may not. If\n a SET for a readOnly or permanent row is not accepted\n at all, then a 'wrongValue' error must be returned.\n ")
usmUserStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 15, 1, 2, 2, 1, 13), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: usmUserStatus.setDescription("The status of this conceptual row.\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n corresponding instance of the usmUserStatus column\n is 'notReady'.\n\n In particular, a newly created row for a user who\n employs authentication, cannot be made active until the\n corresponding usmUserCloneFrom and usmUserAuthKeyChange\n have been set.\n\n Further, a newly created row for a user who also\n employs privacy, cannot be made active until the\n usmUserPrivKeyChange has been set.\n\n The RowStatus TC [RFC2579] requires that this\n DESCRIPTION clause states under which circumstances\n other objects in this row can be modified:\n\n The value of this object has no effect on whether\n other objects in this conceptual row can be modified,\n except for usmUserOwnAuthKeyChange and\n usmUserOwnPrivKeyChange. For these 2 objects, the\n\n value of usmUserStatus MUST be active.\n ")
+if mibBuilder.loadTexts:
+ usmUserStatus.setDescription(
+ "The status of this conceptual row.\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n corresponding instance of the usmUserStatus column\n is 'notReady'.\n\n In particular, a newly created row for a user who\n employs authentication, cannot be made active until the\n corresponding usmUserCloneFrom and usmUserAuthKeyChange\n have been set.\n\n Further, a newly created row for a user who also\n employs privacy, cannot be made active until the\n usmUserPrivKeyChange has been set.\n\n The RowStatus TC [RFC2579] requires that this\n DESCRIPTION clause states under which circumstances\n other objects in this row can be modified:\n\n The value of this object has no effect on whether\n other objects in this conceptual row can be modified,\n except for usmUserOwnAuthKeyChange and\n usmUserOwnPrivKeyChange. For these 2 objects, the\n\n value of usmUserStatus MUST be active.\n ")
usmMIBCompliances = MibIdentifier((1, 3, 6, 1, 6, 3, 15, 2, 1))
usmMIBGroups = MibIdentifier((1, 3, 6, 1, 6, 3, 15, 2, 2))
-usmMIBCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 15, 2, 1, 1)).setObjects(*(("SNMP-USER-BASED-SM-MIB", "usmMIBBasicGroup"),))
-if mibBuilder.loadTexts: usmMIBCompliance.setDescription('The compliance statement for SNMP engines which\n implement the SNMP-USER-BASED-SM-MIB.\n ')
-usmMIBBasicGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 15, 2, 2, 1)).setObjects(*(("SNMP-USER-BASED-SM-MIB", "usmStatsUnsupportedSecLevels"), ("SNMP-USER-BASED-SM-MIB", "usmStatsNotInTimeWindows"), ("SNMP-USER-BASED-SM-MIB", "usmStatsUnknownUserNames"), ("SNMP-USER-BASED-SM-MIB", "usmStatsUnknownEngineIDs"), ("SNMP-USER-BASED-SM-MIB", "usmStatsWrongDigests"), ("SNMP-USER-BASED-SM-MIB", "usmStatsDecryptionErrors"), ("SNMP-USER-BASED-SM-MIB", "usmUserSpinLock"), ("SNMP-USER-BASED-SM-MIB", "usmUserSecurityName"), ("SNMP-USER-BASED-SM-MIB", "usmUserCloneFrom"), ("SNMP-USER-BASED-SM-MIB", "usmUserAuthProtocol"), ("SNMP-USER-BASED-SM-MIB", "usmUserAuthKeyChange"), ("SNMP-USER-BASED-SM-MIB", "usmUserOwnAuthKeyChange"), ("SNMP-USER-BASED-SM-MIB", "usmUserPrivProtocol"), ("SNMP-USER-BASED-SM-MIB", "usmUserPrivKeyChange"), ("SNMP-USER-BASED-SM-MIB", "usmUserOwnPrivKeyChange"), ("SNMP-USER-BASED-SM-MIB", "usmUserPublic"), ("SNMP-USER-BASED-SM-MIB", "usmUserStorageType"), ("SNMP-USER-BASED-SM-MIB", "usmUserStatus"),))
-if mibBuilder.loadTexts: usmMIBBasicGroup.setDescription('A collection of objects providing for configuration\n of an SNMP engine which implements the SNMP\n User-based Security Model.\n ')
-mibBuilder.exportSymbols("SNMP-USER-BASED-SM-MIB", usmUserOwnPrivKeyChange=usmUserOwnPrivKeyChange, usmUser=usmUser, usmStatsUnsupportedSecLevels=usmStatsUnsupportedSecLevels, usmHMACSHAAuthProtocol=usmHMACSHAAuthProtocol, snmpUsmMIB=snmpUsmMIB, usmMIBConformance=usmMIBConformance, usmUserCloneFrom=usmUserCloneFrom, usmUserSecurityName=usmUserSecurityName, usmUserTable=usmUserTable, usmNoAuthProtocol=usmNoAuthProtocol, usmNoPrivProtocol=usmNoPrivProtocol, usmUserEntry=usmUserEntry, usmUserAuthProtocol=usmUserAuthProtocol, usmUserStatus=usmUserStatus, usmUserEngineID=usmUserEngineID, usmUserAuthKeyChange=usmUserAuthKeyChange, usmDESPrivProtocol=usmDESPrivProtocol, usmUserPrivProtocol=usmUserPrivProtocol, usmUserStorageType=usmUserStorageType, usmUserPublic=usmUserPublic, usmStatsWrongDigests=usmStatsWrongDigests, usmMIBGroups=usmMIBGroups, usmStats=usmStats, usmStatsNotInTimeWindows=usmStatsNotInTimeWindows, PYSNMP_MODULE_ID=snmpUsmMIB, usmMIBCompliance=usmMIBCompliance, usmStatsUnknownUserNames=usmStatsUnknownUserNames, usmStatsUnknownEngineIDs=usmStatsUnknownEngineIDs, usmMIBCompliances=usmMIBCompliances, KeyChange=KeyChange, usmMIBObjects=usmMIBObjects, usmUserName=usmUserName, usmUserOwnAuthKeyChange=usmUserOwnAuthKeyChange, usmHMACMD5AuthProtocol=usmHMACMD5AuthProtocol, usmMIBBasicGroup=usmMIBBasicGroup, usmStatsDecryptionErrors=usmStatsDecryptionErrors, usmUserSpinLock=usmUserSpinLock, usmUserPrivKeyChange=usmUserPrivKeyChange)
+usmMIBCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 15, 2, 1, 1)).setObjects(
+ *(("SNMP-USER-BASED-SM-MIB", "usmMIBBasicGroup"),))
+if mibBuilder.loadTexts:
+ usmMIBCompliance.setDescription(
+ 'The compliance statement for SNMP engines which\n implement the SNMP-USER-BASED-SM-MIB.\n ')
+usmMIBBasicGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 15, 2, 2, 1)).setObjects(
+ *(("SNMP-USER-BASED-SM-MIB", "usmStatsUnsupportedSecLevels"), ("SNMP-USER-BASED-SM-MIB", "usmStatsNotInTimeWindows"),
+ ("SNMP-USER-BASED-SM-MIB", "usmStatsUnknownUserNames"), ("SNMP-USER-BASED-SM-MIB", "usmStatsUnknownEngineIDs"),
+ ("SNMP-USER-BASED-SM-MIB", "usmStatsWrongDigests"), ("SNMP-USER-BASED-SM-MIB", "usmStatsDecryptionErrors"),
+ ("SNMP-USER-BASED-SM-MIB", "usmUserSpinLock"), ("SNMP-USER-BASED-SM-MIB", "usmUserSecurityName"),
+ ("SNMP-USER-BASED-SM-MIB", "usmUserCloneFrom"), ("SNMP-USER-BASED-SM-MIB", "usmUserAuthProtocol"),
+ ("SNMP-USER-BASED-SM-MIB", "usmUserAuthKeyChange"), ("SNMP-USER-BASED-SM-MIB", "usmUserOwnAuthKeyChange"),
+ ("SNMP-USER-BASED-SM-MIB", "usmUserPrivProtocol"), ("SNMP-USER-BASED-SM-MIB", "usmUserPrivKeyChange"),
+ ("SNMP-USER-BASED-SM-MIB", "usmUserOwnPrivKeyChange"), ("SNMP-USER-BASED-SM-MIB", "usmUserPublic"),
+ ("SNMP-USER-BASED-SM-MIB", "usmUserStorageType"), ("SNMP-USER-BASED-SM-MIB", "usmUserStatus"))
+)
+if mibBuilder.loadTexts:
+ usmMIBBasicGroup.setDescription(
+ 'A collection of objects providing for configuration\n of an SNMP engine which implements the SNMP\n User-based Security Model.\n ')
+mibBuilder.exportSymbols("SNMP-USER-BASED-SM-MIB", usmUserOwnPrivKeyChange=usmUserOwnPrivKeyChange, usmUser=usmUser,
+ usmStatsUnsupportedSecLevels=usmStatsUnsupportedSecLevels,
+ usmHMACSHAAuthProtocol=usmHMACSHAAuthProtocol, snmpUsmMIB=snmpUsmMIB,
+ usmMIBConformance=usmMIBConformance, usmUserCloneFrom=usmUserCloneFrom,
+ usmUserSecurityName=usmUserSecurityName, usmUserTable=usmUserTable,
+ usmNoAuthProtocol=usmNoAuthProtocol, usmNoPrivProtocol=usmNoPrivProtocol,
+ usmUserEntry=usmUserEntry, usmUserAuthProtocol=usmUserAuthProtocol,
+ usmUserStatus=usmUserStatus, usmUserEngineID=usmUserEngineID,
+ usmUserAuthKeyChange=usmUserAuthKeyChange, usmDESPrivProtocol=usmDESPrivProtocol,
+ usmUserPrivProtocol=usmUserPrivProtocol, usmUserStorageType=usmUserStorageType,
+ usmUserPublic=usmUserPublic, usmStatsWrongDigests=usmStatsWrongDigests,
+ usmMIBGroups=usmMIBGroups, usmStats=usmStats,
+ usmStatsNotInTimeWindows=usmStatsNotInTimeWindows, PYSNMP_MODULE_ID=snmpUsmMIB,
+ usmMIBCompliance=usmMIBCompliance, usmStatsUnknownUserNames=usmStatsUnknownUserNames,
+ usmStatsUnknownEngineIDs=usmStatsUnknownEngineIDs, usmMIBCompliances=usmMIBCompliances,
+ KeyChange=KeyChange, usmMIBObjects=usmMIBObjects, usmUserName=usmUserName,
+ usmUserOwnAuthKeyChange=usmUserOwnAuthKeyChange, usmHMACMD5AuthProtocol=usmHMACMD5AuthProtocol,
+ usmMIBBasicGroup=usmMIBBasicGroup, usmStatsDecryptionErrors=usmStatsDecryptionErrors,
+ usmUserSpinLock=usmUserSpinLock, usmUserPrivKeyChange=usmUserPrivKeyChange)
diff --git a/pysnmp/smi/mibs/SNMP-USM-AES-MIB.py b/pysnmp/smi/mibs/SNMP-USM-AES-MIB.py
index c4b6dfa5..8f37a9e8 100644
--- a/pysnmp/smi/mibs/SNMP-USM-AES-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-USM-AES-MIB.py
@@ -10,18 +10,36 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( snmpPrivProtocols, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "snmpPrivProtocols")
-( NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, iso, Gauge32, snmpModules, ModuleIdentity, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "iso", "Gauge32", "snmpModules", "ModuleIdentity", "ObjectIdentity", "Bits", "Counter32")
-( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(snmpPrivProtocols,) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "snmpPrivProtocols")
+(NotificationGroup, ModuleCompliance,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, iso, Gauge32, snmpModules, ModuleIdentity, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "iso", "Gauge32", "snmpModules", "ModuleIdentity",
+ "ObjectIdentity", "Bits", "Counter32")
+(DisplayString, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
snmpUsmAesMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 20)).setRevisions(("2004-06-14 00:00",))
-if mibBuilder.loadTexts: snmpUsmAesMIB.setLastUpdated('200406140000Z')
-if mibBuilder.loadTexts: snmpUsmAesMIB.setOrganization('IETF')
-if mibBuilder.loadTexts: snmpUsmAesMIB.setContactInfo('Uri Blumenthal\n Lucent Technologies / Bell Labs\n 67 Whippany Rd.\n 14D-318\n Whippany, NJ 07981, USA\n 973-386-2163\n uri@bell-labs.com\n\n Fabio Maino\n Andiamo Systems, Inc.\n 375 East Tasman Drive\n San Jose, CA 95134, USA\n 408-853-7530\n fmaino@andiamo.com\n\n Keith McCloghrie\n Cisco Systems, Inc.\n 170 West Tasman Drive\n San Jose, CA 95134-1706, USA\n\n 408-526-5260\n kzm@cisco.com')
-if mibBuilder.loadTexts: snmpUsmAesMIB.setDescription("Definitions of Object Identities needed for\n the use of AES by SNMP's User-based Security\n Model.\n\n Copyright (C) The Internet Society (2004).\n\n This version of this MIB module is part of RFC 3826;\n see the RFC itself for full legal notices.\n Supplementary information may be available on\n http://www.ietf.org/copyrights/ianamib.html.")
+if mibBuilder.loadTexts:
+ snmpUsmAesMIB.setLastUpdated('200406140000Z')
+if mibBuilder.loadTexts:
+ snmpUsmAesMIB.setOrganization('IETF')
+if mibBuilder.loadTexts:
+ snmpUsmAesMIB.setContactInfo(
+ 'Uri Blumenthal\n Lucent Technologies / Bell Labs\n 67 Whippany Rd.\n 14D-318\n Whippany, NJ 07981, USA\n 973-386-2163\n uri@bell-labs.com\n\n Fabio Maino\n Andiamo Systems, Inc.\n 375 East Tasman Drive\n San Jose, CA 95134, USA\n 408-853-7530\n fmaino@andiamo.com\n\n Keith McCloghrie\n Cisco Systems, Inc.\n 170 West Tasman Drive\n San Jose, CA 95134-1706, USA\n\n 408-526-5260\n kzm@cisco.com')
+if mibBuilder.loadTexts:
+ snmpUsmAesMIB.setDescription(
+ "Definitions of Object Identities needed for\n the use of AES by SNMP's User-based Security\n Model.\n\n Copyright (C) The Internet Society (2004).\n\n This version of this MIB module is part of RFC 3826;\n see the RFC itself for full legal notices.\n Supplementary information may be available on\n http://www.ietf.org/copyrights/ianamib.html.")
usmAesCfb128Protocol = ObjectIdentity((1, 3, 6, 1, 6, 3, 10, 1, 2, 4))
-if mibBuilder.loadTexts: usmAesCfb128Protocol.setDescription('The CFB128-AES-128 Privacy Protocol.')
-mibBuilder.exportSymbols("SNMP-USM-AES-MIB", usmAesCfb128Protocol=usmAesCfb128Protocol, snmpUsmAesMIB=snmpUsmAesMIB, PYSNMP_MODULE_ID=snmpUsmAesMIB)
+if mibBuilder.loadTexts:
+ usmAesCfb128Protocol.setDescription('The CFB128-AES-128 Privacy Protocol.')
+mibBuilder.exportSymbols("SNMP-USM-AES-MIB", usmAesCfb128Protocol=usmAesCfb128Protocol, snmpUsmAesMIB=snmpUsmAesMIB,
+ PYSNMP_MODULE_ID=snmpUsmAesMIB)
diff --git a/pysnmp/smi/mibs/SNMP-VIEW-BASED-ACM-MIB.py b/pysnmp/smi/mibs/SNMP-VIEW-BASED-ACM-MIB.py
index cc29df7b..5ebc7376 100644
--- a/pysnmp/smi/mibs/SNMP-VIEW-BASED-ACM-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-VIEW-BASED-ACM-MIB.py
@@ -10,85 +10,237 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( SnmpSecurityModel, SnmpAdminString, SnmpSecurityLevel, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpSecurityModel", "SnmpAdminString", "SnmpSecurityLevel")
-( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso", "ObjectIdentity", "Bits", "Counter32")
-( StorageType, DisplayString, RowStatus, TextualConvention, TestAndIncr, ) = mibBuilder.importSymbols("SNMPv2-TC", "StorageType", "DisplayString", "RowStatus", "TextualConvention", "TestAndIncr")
-snmpVacmMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 16)).setRevisions(("2002-10-16 00:00", "1999-01-20 00:00", "1997-11-20 00:00",))
-if mibBuilder.loadTexts: snmpVacmMIB.setLastUpdated('200210160000Z')
-if mibBuilder.loadTexts: snmpVacmMIB.setOrganization('SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpVacmMIB.setContactInfo('WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In message body: subscribe snmpv3\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n email: mundy@tislabs.com\n phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n email: bwijnen@lucent.com\n phone: +31-348-480-685\n\n Co-editor: Randy Presuhn\n BMC Software, Inc.\n\n postal: 2141 North First Street\n San Jose, CA 95131\n USA\n email: randy_presuhn@bmc.com\n phone: +1 408-546-1006\n\n Co-editor: Keith McCloghrie\n Cisco Systems, Inc.\n postal: 170 West Tasman Drive\n San Jose, CA 95134-1706\n USA\n email: kzm@cisco.com\n phone: +1-408-526-5260\n ')
-if mibBuilder.loadTexts: snmpVacmMIB.setDescription('The management information definitions for the\n View-based Access Control Model for SNMP.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3415;\n see the RFC itself for full legal notices.\n ')
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(SnmpSecurityModel, SnmpAdminString, SnmpSecurityLevel,) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB",
+ "SnmpSecurityModel",
+ "SnmpAdminString",
+ "SnmpSecurityLevel")
+(NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance", "ObjectGroup")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, IpAddress, TimeTicks,
+ Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "IpAddress", "TimeTicks",
+ "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso",
+ "ObjectIdentity", "Bits", "Counter32")
+(StorageType, DisplayString, RowStatus, TextualConvention, TestAndIncr,) = mibBuilder.importSymbols("SNMPv2-TC",
+ "StorageType",
+ "DisplayString",
+ "RowStatus",
+ "TextualConvention",
+ "TestAndIncr")
+snmpVacmMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 16)).setRevisions(
+ ("2002-10-16 00:00", "1999-01-20 00:00", "1997-11-20 00:00",))
+if mibBuilder.loadTexts:
+ snmpVacmMIB.setLastUpdated('200210160000Z')
+if mibBuilder.loadTexts:
+ snmpVacmMIB.setOrganization('SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpVacmMIB.setContactInfo(
+ 'WG-email: snmpv3@lists.tislabs.com\n Subscribe: majordomo@lists.tislabs.com\n In message body: subscribe snmpv3\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n email: mundy@tislabs.com\n phone: +1 301-947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n Postal: 35 Industrial Way\n P. O. Box 5004\n Rochester, New Hampshire 03866-5005\n USA\n EMail: dbh@enterasys.com\n Phone: +1 603-337-2614\n\n Co-editor: Bert Wijnen\n Lucent Technologies\n postal: Schagen 33\n 3461 GL Linschoten\n Netherlands\n email: bwijnen@lucent.com\n phone: +31-348-480-685\n\n Co-editor: Randy Presuhn\n BMC Software, Inc.\n\n postal: 2141 North First Street\n San Jose, CA 95131\n USA\n email: randy_presuhn@bmc.com\n phone: +1 408-546-1006\n\n Co-editor: Keith McCloghrie\n Cisco Systems, Inc.\n postal: 170 West Tasman Drive\n San Jose, CA 95134-1706\n USA\n email: kzm@cisco.com\n phone: +1-408-526-5260\n ')
+if mibBuilder.loadTexts:
+ snmpVacmMIB.setDescription(
+ 'The management information definitions for the\n View-based Access Control Model for SNMP.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3415;\n see the RFC itself for full legal notices.\n ')
vacmMIBObjects = MibIdentifier((1, 3, 6, 1, 6, 3, 16, 1))
vacmMIBConformance = MibIdentifier((1, 3, 6, 1, 6, 3, 16, 2))
vacmContextTable = MibTable((1, 3, 6, 1, 6, 3, 16, 1, 1), )
-if mibBuilder.loadTexts: vacmContextTable.setDescription('The table of locally available contexts.\n\n This table provides information to SNMP Command\n\n Generator applications so that they can properly\n configure the vacmAccessTable to control access to\n all contexts at the SNMP entity.\n\n This table may change dynamically if the SNMP entity\n allows that contexts are added/deleted dynamically\n (for instance when its configuration changes). Such\n changes would happen only if the management\n instrumentation at that SNMP entity recognizes more\n (or fewer) contexts.\n\n The presence of entries in this table and of entries\n in the vacmAccessTable are independent. That is, a\n context identified by an entry in this table is not\n necessarily referenced by any entries in the\n vacmAccessTable; and the context(s) referenced by an\n entry in the vacmAccessTable does not necessarily\n currently exist and thus need not be identified by an\n entry in this table.\n\n This table must be made accessible via the default\n context so that Command Responder applications have\n a standard way of retrieving the information.\n\n This table is read-only. It cannot be configured via\n SNMP.\n ')
-vacmContextEntry = MibTableRow((1, 3, 6, 1, 6, 3, 16, 1, 1, 1), ).setIndexNames((0, "SNMP-VIEW-BASED-ACM-MIB", "vacmContextName"))
-if mibBuilder.loadTexts: vacmContextEntry.setDescription('Information about a particular context.')
-vacmContextName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32))).setMaxAccess("readonly")
-if mibBuilder.loadTexts: vacmContextName.setDescription('A human readable name identifying a particular\n context at a particular SNMP entity.\n\n The empty contextName (zero length) represents the\n default context.\n ')
+if mibBuilder.loadTexts:
+ vacmContextTable.setDescription(
+ 'The table of locally available contexts.\n\n This table provides information to SNMP Command\n\n Generator applications so that they can properly\n configure the vacmAccessTable to control access to\n all contexts at the SNMP entity.\n\n This table may change dynamically if the SNMP entity\n allows that contexts are added/deleted dynamically\n (for instance when its configuration changes). Such\n changes would happen only if the management\n instrumentation at that SNMP entity recognizes more\n (or fewer) contexts.\n\n The presence of entries in this table and of entries\n in the vacmAccessTable are independent. That is, a\n context identified by an entry in this table is not\n necessarily referenced by any entries in the\n vacmAccessTable; and the context(s) referenced by an\n entry in the vacmAccessTable does not necessarily\n currently exist and thus need not be identified by an\n entry in this table.\n\n This table must be made accessible via the default\n context so that Command Responder applications have\n a standard way of retrieving the information.\n\n This table is read-only. It cannot be configured via\n SNMP.\n ')
+vacmContextEntry = MibTableRow((1, 3, 6, 1, 6, 3, 16, 1, 1, 1), ).setIndexNames(
+ (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmContextName"))
+if mibBuilder.loadTexts:
+ vacmContextEntry.setDescription('Information about a particular context.')
+vacmContextName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 1, 1, 1),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess(
+ "readonly")
+if mibBuilder.loadTexts:
+ vacmContextName.setDescription(
+ 'A human readable name identifying a particular\n context at a particular SNMP entity.\n\n The empty contextName (zero length) represents the\n default context.\n ')
vacmSecurityToGroupTable = MibTable((1, 3, 6, 1, 6, 3, 16, 1, 2), )
-if mibBuilder.loadTexts: vacmSecurityToGroupTable.setDescription('This table maps a combination of securityModel and\n securityName into a groupName which is used to define\n an access control policy for a group of principals.\n ')
-vacmSecurityToGroupEntry = MibTableRow((1, 3, 6, 1, 6, 3, 16, 1, 2, 1), ).setIndexNames((0, "SNMP-VIEW-BASED-ACM-MIB", "vacmSecurityModel"), (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmSecurityName"))
-if mibBuilder.loadTexts: vacmSecurityToGroupEntry.setDescription('An entry in this table maps the combination of a\n securityModel and securityName into a groupName.\n ')
-vacmSecurityModel = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 2, 1, 1), SnmpSecurityModel().subtype(subtypeSpec=ValueRangeConstraint(1,2147483647)))
-if mibBuilder.loadTexts: vacmSecurityModel.setDescription("The Security Model, by which the vacmSecurityName\n referenced by this entry is provided.\n\n Note, this object may not take the 'any' (0) value.\n ")
-vacmSecurityName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 2, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
-if mibBuilder.loadTexts: vacmSecurityName.setDescription('The securityName for the principal, represented in a\n Security Model independent format, which is mapped by\n this entry to a groupName.\n ')
-vacmGroupName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 2, 1, 3), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32))).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmGroupName.setDescription('The name of the group to which this entry (e.g., the\n combination of securityModel and securityName)\n belongs.\n\n This groupName is used as index into the\n vacmAccessTable to select an access control policy.\n However, a value in this table does not imply that an\n instance with the value exists in table vacmAccesTable.\n ')
-vacmSecurityToGroupStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 2, 1, 4), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmSecurityToGroupStorageType.setDescription("The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.\n ")
+if mibBuilder.loadTexts:
+ vacmSecurityToGroupTable.setDescription(
+ 'This table maps a combination of securityModel and\n securityName into a groupName which is used to define\n an access control policy for a group of principals.\n ')
+vacmSecurityToGroupEntry = MibTableRow((1, 3, 6, 1, 6, 3, 16, 1, 2, 1), ).setIndexNames(
+ (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmSecurityModel"), (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmSecurityName"))
+if mibBuilder.loadTexts:
+ vacmSecurityToGroupEntry.setDescription(
+ 'An entry in this table maps the combination of a\n securityModel and securityName into a groupName.\n ')
+vacmSecurityModel = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 2, 1, 1),
+ SnmpSecurityModel().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
+if mibBuilder.loadTexts:
+ vacmSecurityModel.setDescription(
+ "The Security Model, by which the vacmSecurityName\n referenced by this entry is provided.\n\n Note, this object may not take the 'any' (0) value.\n ")
+vacmSecurityName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 2, 1, 2),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
+if mibBuilder.loadTexts:
+ vacmSecurityName.setDescription(
+ 'The securityName for the principal, represented in a\n Security Model independent format, which is mapped by\n this entry to a groupName.\n ')
+vacmGroupName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 2, 1, 3),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess(
+ "readcreate")
+if mibBuilder.loadTexts:
+ vacmGroupName.setDescription(
+ 'The name of the group to which this entry (e.g., the\n combination of securityModel and securityName)\n belongs.\n\n This groupName is used as index into the\n vacmAccessTable to select an access control policy.\n However, a value in this table does not imply that an\n instance with the value exists in table vacmAccesTable.\n ')
+vacmSecurityToGroupStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 2, 1, 4),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ vacmSecurityToGroupStorageType.setDescription(
+ "The storage type for this conceptual row.\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.\n ")
vacmSecurityToGroupStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 2, 1, 5), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmSecurityToGroupStatus.setDescription("The status of this conceptual row.\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n\n corresponding instance of the vacmSecurityToGroupStatus\n column is 'notReady'.\n\n In particular, a newly created row cannot be made\n active until a value has been set for vacmGroupName.\n\n The RowStatus TC [RFC2579] requires that this\n DESCRIPTION clause states under which circumstances\n other objects in this row can be modified:\n\n The value of this object has no effect on whether\n other objects in this conceptual row can be modified.\n ")
+if mibBuilder.loadTexts:
+ vacmSecurityToGroupStatus.setDescription(
+ "The status of this conceptual row.\n\n Until instances of all corresponding columns are\n appropriately configured, the value of the\n\n corresponding instance of the vacmSecurityToGroupStatus\n column is 'notReady'.\n\n In particular, a newly created row cannot be made\n active until a value has been set for vacmGroupName.\n\n The RowStatus TC [RFC2579] requires that this\n DESCRIPTION clause states under which circumstances\n other objects in this row can be modified:\n\n The value of this object has no effect on whether\n other objects in this conceptual row can be modified.\n ")
vacmAccessTable = MibTable((1, 3, 6, 1, 6, 3, 16, 1, 4), )
-if mibBuilder.loadTexts: vacmAccessTable.setDescription("The table of access rights for groups.\n\n Each entry is indexed by a groupName, a contextPrefix,\n a securityModel and a securityLevel. To determine\n whether access is allowed, one entry from this table\n needs to be selected and the proper viewName from that\n entry must be used for access control checking.\n\n To select the proper entry, follow these steps:\n\n 1) the set of possible matches is formed by the\n intersection of the following sets of entries:\n\n the set of entries with identical vacmGroupName\n the union of these two sets:\n - the set with identical vacmAccessContextPrefix\n - the set of entries with vacmAccessContextMatch\n value of 'prefix' and matching\n vacmAccessContextPrefix\n intersected with the union of these two sets:\n - the set of entries with identical\n vacmSecurityModel\n - the set of entries with vacmSecurityModel\n value of 'any'\n intersected with the set of entries with\n vacmAccessSecurityLevel value less than or equal\n to the requested securityLevel\n\n 2) if this set has only one member, we're done\n otherwise, it comes down to deciding how to weight\n the preferences between ContextPrefixes,\n SecurityModels, and SecurityLevels as follows:\n a) if the subset of entries with securityModel\n matching the securityModel in the message is\n not empty, then discard the rest.\n b) if the subset of entries with\n vacmAccessContextPrefix matching the contextName\n in the message is not empty,\n then discard the rest\n c) discard all entries with ContextPrefixes shorter\n than the longest one remaining in the set\n d) select the entry with the highest securityLevel\n\n Please note that for securityLevel noAuthNoPriv, all\n groups are really equivalent since the assumption that\n the securityName has been authenticated does not hold.\n ")
-vacmAccessEntry = MibTableRow((1, 3, 6, 1, 6, 3, 16, 1, 4, 1), ).setIndexNames((0, "SNMP-VIEW-BASED-ACM-MIB", "vacmGroupName"), (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmAccessContextPrefix"), (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmAccessSecurityModel"), (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmAccessSecurityLevel"))
-if mibBuilder.loadTexts: vacmAccessEntry.setDescription('An access right configured in the Local Configuration\n Datastore (LCD) authorizing access to an SNMP context.\n\n Entries in this table can use an instance value for\n object vacmGroupName even if no entry in table\n vacmAccessSecurityToGroupTable has a corresponding\n value for object vacmGroupName.\n ')
-vacmAccessContextPrefix = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32)))
-if mibBuilder.loadTexts: vacmAccessContextPrefix.setDescription("In order to gain the access rights allowed by this\n conceptual row, a contextName must match exactly\n (if the value of vacmAccessContextMatch is 'exact')\n or partially (if the value of vacmAccessContextMatch\n is 'prefix') to the value of the instance of this\n object.\n ")
+if mibBuilder.loadTexts:
+ vacmAccessTable.setDescription(
+ "The table of access rights for groups.\n\n Each entry is indexed by a groupName, a contextPrefix,\n a securityModel and a securityLevel. To determine\n whether access is allowed, one entry from this table\n needs to be selected and the proper viewName from that\n entry must be used for access control checking.\n\n To select the proper entry, follow these steps:\n\n 1) the set of possible matches is formed by the\n intersection of the following sets of entries:\n\n the set of entries with identical vacmGroupName\n the union of these two sets:\n - the set with identical vacmAccessContextPrefix\n - the set of entries with vacmAccessContextMatch\n value of 'prefix' and matching\n vacmAccessContextPrefix\n intersected with the union of these two sets:\n - the set of entries with identical\n vacmSecurityModel\n - the set of entries with vacmSecurityModel\n value of 'any'\n intersected with the set of entries with\n vacmAccessSecurityLevel value less than or equal\n to the requested securityLevel\n\n 2) if this set has only one member, we're done\n otherwise, it comes down to deciding how to weight\n the preferences between ContextPrefixes,\n SecurityModels, and SecurityLevels as follows:\n a) if the subset of entries with securityModel\n matching the securityModel in the message is\n not empty, then discard the rest.\n b) if the subset of entries with\n vacmAccessContextPrefix matching the contextName\n in the message is not empty,\n then discard the rest\n c) discard all entries with ContextPrefixes shorter\n than the longest one remaining in the set\n d) select the entry with the highest securityLevel\n\n Please note that for securityLevel noAuthNoPriv, all\n groups are really equivalent since the assumption that\n the securityName has been authenticated does not hold.\n ")
+vacmAccessEntry = MibTableRow((1, 3, 6, 1, 6, 3, 16, 1, 4, 1), ).setIndexNames(
+ (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmGroupName"), (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmAccessContextPrefix"),
+ (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmAccessSecurityModel"),
+ (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmAccessSecurityLevel"))
+if mibBuilder.loadTexts:
+ vacmAccessEntry.setDescription(
+ 'An access right configured in the Local Configuration\n Datastore (LCD) authorizing access to an SNMP context.\n\n Entries in this table can use an instance value for\n object vacmGroupName even if no entry in table\n vacmAccessSecurityToGroupTable has a corresponding\n value for object vacmGroupName.\n ')
+vacmAccessContextPrefix = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 1),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)))
+if mibBuilder.loadTexts:
+ vacmAccessContextPrefix.setDescription(
+ "In order to gain the access rights allowed by this\n conceptual row, a contextName must match exactly\n (if the value of vacmAccessContextMatch is 'exact')\n or partially (if the value of vacmAccessContextMatch\n is 'prefix') to the value of the instance of this\n object.\n ")
vacmAccessSecurityModel = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 2), SnmpSecurityModel())
-if mibBuilder.loadTexts: vacmAccessSecurityModel.setDescription('In order to gain the access rights allowed by this\n conceptual row, this securityModel must be in use.\n ')
+if mibBuilder.loadTexts:
+ vacmAccessSecurityModel.setDescription(
+ 'In order to gain the access rights allowed by this\n conceptual row, this securityModel must be in use.\n ')
vacmAccessSecurityLevel = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 3), SnmpSecurityLevel())
-if mibBuilder.loadTexts: vacmAccessSecurityLevel.setDescription('The minimum level of security required in order to\n gain the access rights allowed by this conceptual\n row. A securityLevel of noAuthNoPriv is less than\n authNoPriv which in turn is less than authPriv.\n\n If multiple entries are equally indexed except for\n this vacmAccessSecurityLevel index, then the entry\n which has the highest value for\n vacmAccessSecurityLevel is selected.\n ')
-vacmAccessContextMatch = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("exact", 1), ("prefix", 2),)).clone('exact')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmAccessContextMatch.setDescription('If the value of this object is exact(1), then all\n rows where the contextName exactly matches\n vacmAccessContextPrefix are selected.\n\n If the value of this object is prefix(2), then all\n rows where the contextName whose starting octets\n exactly match vacmAccessContextPrefix are selected.\n This allows for a simple form of wildcarding.\n ')
-vacmAccessReadViewName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 5), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32)).clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmAccessReadViewName.setDescription('The value of an instance of this object identifies\n the MIB view of the SNMP context to which this\n conceptual row authorizes read access.\n\n The identified MIB view is that one for which the\n vacmViewTreeFamilyViewName has the same value as the\n instance of this object; if the value is the empty\n string or if there is no active MIB view having this\n value of vacmViewTreeFamilyViewName, then no access\n is granted.\n ')
-vacmAccessWriteViewName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 6), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32)).clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmAccessWriteViewName.setDescription('The value of an instance of this object identifies\n the MIB view of the SNMP context to which this\n conceptual row authorizes write access.\n\n The identified MIB view is that one for which the\n vacmViewTreeFamilyViewName has the same value as the\n instance of this object; if the value is the empty\n string or if there is no active MIB view having this\n value of vacmViewTreeFamilyViewName, then no access\n is granted.\n ')
-vacmAccessNotifyViewName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 7), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32)).clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmAccessNotifyViewName.setDescription('The value of an instance of this object identifies\n the MIB view of the SNMP context to which this\n conceptual row authorizes access for notifications.\n\n The identified MIB view is that one for which the\n vacmViewTreeFamilyViewName has the same value as the\n instance of this object; if the value is the empty\n string or if there is no active MIB view having this\n value of vacmViewTreeFamilyViewName, then no access\n is granted.\n ')
-vacmAccessStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 8), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmAccessStorageType.setDescription("The storage type for this conceptual row.\n\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.\n ")
+if mibBuilder.loadTexts:
+ vacmAccessSecurityLevel.setDescription(
+ 'The minimum level of security required in order to\n gain the access rights allowed by this conceptual\n row. A securityLevel of noAuthNoPriv is less than\n authNoPriv which in turn is less than authPriv.\n\n If multiple entries are equally indexed except for\n this vacmAccessSecurityLevel index, then the entry\n which has the highest value for\n vacmAccessSecurityLevel is selected.\n ')
+vacmAccessContextMatch = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 4),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, )).clone(
+ namedValues=NamedValues(("exact", 1), ("prefix", 2), )).clone(
+ 'exact')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ vacmAccessContextMatch.setDescription(
+ 'If the value of this object is exact(1), then all\n rows where the contextName exactly matches\n vacmAccessContextPrefix are selected.\n\n If the value of this object is prefix(2), then all\n rows where the contextName whose starting octets\n exactly match vacmAccessContextPrefix are selected.\n This allows for a simple form of wildcarding.\n ')
+vacmAccessReadViewName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 5),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone(
+ hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ vacmAccessReadViewName.setDescription(
+ 'The value of an instance of this object identifies\n the MIB view of the SNMP context to which this\n conceptual row authorizes read access.\n\n The identified MIB view is that one for which the\n vacmViewTreeFamilyViewName has the same value as the\n instance of this object; if the value is the empty\n string or if there is no active MIB view having this\n value of vacmViewTreeFamilyViewName, then no access\n is granted.\n ')
+vacmAccessWriteViewName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 6),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone(
+ hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ vacmAccessWriteViewName.setDescription(
+ 'The value of an instance of this object identifies\n the MIB view of the SNMP context to which this\n conceptual row authorizes write access.\n\n The identified MIB view is that one for which the\n vacmViewTreeFamilyViewName has the same value as the\n instance of this object; if the value is the empty\n string or if there is no active MIB view having this\n value of vacmViewTreeFamilyViewName, then no access\n is granted.\n ')
+vacmAccessNotifyViewName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 7),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone(
+ hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ vacmAccessNotifyViewName.setDescription(
+ 'The value of an instance of this object identifies\n the MIB view of the SNMP context to which this\n conceptual row authorizes access for notifications.\n\n The identified MIB view is that one for which the\n vacmViewTreeFamilyViewName has the same value as the\n instance of this object; if the value is the empty\n string or if there is no active MIB view having this\n value of vacmViewTreeFamilyViewName, then no access\n is granted.\n ')
+vacmAccessStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 8),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ vacmAccessStorageType.setDescription(
+ "The storage type for this conceptual row.\n\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.\n ")
vacmAccessStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 4, 1, 9), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmAccessStatus.setDescription('The status of this conceptual row.\n\n The RowStatus TC [RFC2579] requires that this\n DESCRIPTION clause states under which circumstances\n other objects in this row can be modified:\n\n The value of this object has no effect on whether\n other objects in this conceptual row can be modified.\n ')
+if mibBuilder.loadTexts:
+ vacmAccessStatus.setDescription(
+ 'The status of this conceptual row.\n\n The RowStatus TC [RFC2579] requires that this\n DESCRIPTION clause states under which circumstances\n other objects in this row can be modified:\n\n The value of this object has no effect on whether\n other objects in this conceptual row can be modified.\n ')
vacmMIBViews = MibIdentifier((1, 3, 6, 1, 6, 3, 16, 1, 5))
vacmViewSpinLock = MibScalar((1, 3, 6, 1, 6, 3, 16, 1, 5, 1), TestAndIncr()).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: vacmViewSpinLock.setDescription("An advisory lock used to allow cooperating SNMP\n Command Generator applications to coordinate their\n use of the Set operation in creating or modifying\n views.\n\n When creating a new view or altering an existing\n view, it is important to understand the potential\n interactions with other uses of the view. The\n vacmViewSpinLock should be retrieved. The name of\n the view to be created should be determined to be\n unique by the SNMP Command Generator application by\n consulting the vacmViewTreeFamilyTable. Finally,\n the named view may be created (Set), including the\n advisory lock.\n If another SNMP Command Generator application has\n altered the views in the meantime, then the spin\n lock's value will have changed, and so this creation\n will fail because it will specify the wrong value for\n the spin lock.\n\n Since this is an advisory lock, the use of this lock\n is not enforced.\n ")
+if mibBuilder.loadTexts:
+ vacmViewSpinLock.setDescription(
+ "An advisory lock used to allow cooperating SNMP\n Command Generator applications to coordinate their\n use of the Set operation in creating or modifying\n views.\n\n When creating a new view or altering an existing\n view, it is important to understand the potential\n interactions with other uses of the view. The\n vacmViewSpinLock should be retrieved. The name of\n the view to be created should be determined to be\n unique by the SNMP Command Generator application by\n consulting the vacmViewTreeFamilyTable. Finally,\n the named view may be created (Set), including the\n advisory lock.\n If another SNMP Command Generator application has\n altered the views in the meantime, then the spin\n lock's value will have changed, and so this creation\n will fail because it will specify the wrong value for\n the spin lock.\n\n Since this is an advisory lock, the use of this lock\n is not enforced.\n ")
vacmViewTreeFamilyTable = MibTable((1, 3, 6, 1, 6, 3, 16, 1, 5, 2), )
-if mibBuilder.loadTexts: vacmViewTreeFamilyTable.setDescription("Locally held information about families of subtrees\n within MIB views.\n\n Each MIB view is defined by two sets of view subtrees:\n - the included view subtrees, and\n - the excluded view subtrees.\n Every such view subtree, both the included and the\n\n excluded ones, is defined in this table.\n\n To determine if a particular object instance is in\n a particular MIB view, compare the object instance's\n OBJECT IDENTIFIER with each of the MIB view's active\n entries in this table. If none match, then the\n object instance is not in the MIB view. If one or\n more match, then the object instance is included in,\n or excluded from, the MIB view according to the\n value of vacmViewTreeFamilyType in the entry whose\n value of vacmViewTreeFamilySubtree has the most\n sub-identifiers. If multiple entries match and have\n the same number of sub-identifiers (when wildcarding\n is specified with the value of vacmViewTreeFamilyMask),\n then the lexicographically greatest instance of\n vacmViewTreeFamilyType determines the inclusion or\n exclusion.\n\n An object instance's OBJECT IDENTIFIER X matches an\n active entry in this table when the number of\n sub-identifiers in X is at least as many as in the\n value of vacmViewTreeFamilySubtree for the entry,\n and each sub-identifier in the value of\n vacmViewTreeFamilySubtree matches its corresponding\n sub-identifier in X. Two sub-identifiers match\n either if the corresponding bit of the value of\n vacmViewTreeFamilyMask for the entry is zero (the\n 'wild card' value), or if they are equal.\n\n A 'family' of subtrees is the set of subtrees defined\n by a particular combination of values of\n vacmViewTreeFamilySubtree and vacmViewTreeFamilyMask.\n\n In the case where no 'wild card' is defined in the\n vacmViewTreeFamilyMask, the family of subtrees reduces\n to a single subtree.\n\n When creating or changing MIB views, an SNMP Command\n Generator application should utilize the\n vacmViewSpinLock to try to avoid collisions. See\n DESCRIPTION clause of vacmViewSpinLock.\n\n When creating MIB views, it is strongly advised that\n first the 'excluded' vacmViewTreeFamilyEntries are\n created and then the 'included' entries.\n\n When deleting MIB views, it is strongly advised that\n first the 'included' vacmViewTreeFamilyEntries are\n\n deleted and then the 'excluded' entries.\n\n If a create for an entry for instance-level access\n control is received and the implementation does not\n support instance-level granularity, then an\n inconsistentName error must be returned.\n ")
-vacmViewTreeFamilyEntry = MibTableRow((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1), ).setIndexNames((0, "SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyViewName"), (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilySubtree"))
-if mibBuilder.loadTexts: vacmViewTreeFamilyEntry.setDescription("Information on a particular family of view subtrees\n included in or excluded from a particular SNMP\n context's MIB view.\n\n Implementations must not restrict the number of\n families of view subtrees for a given MIB view,\n except as dictated by resource constraints on the\n overall number of entries in the\n vacmViewTreeFamilyTable.\n\n If no conceptual rows exist in this table for a given\n MIB view (viewName), that view may be thought of as\n consisting of the empty set of view subtrees.\n ")
-vacmViewTreeFamilyViewName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
-if mibBuilder.loadTexts: vacmViewTreeFamilyViewName.setDescription('The human readable name for a family of view subtrees.\n ')
+if mibBuilder.loadTexts:
+ vacmViewTreeFamilyTable.setDescription(
+ "Locally held information about families of subtrees\n within MIB views.\n\n Each MIB view is defined by two sets of view subtrees:\n - the included view subtrees, and\n - the excluded view subtrees.\n Every such view subtree, both the included and the\n\n excluded ones, is defined in this table.\n\n To determine if a particular object instance is in\n a particular MIB view, compare the object instance's\n OBJECT IDENTIFIER with each of the MIB view's active\n entries in this table. If none match, then the\n object instance is not in the MIB view. If one or\n more match, then the object instance is included in,\n or excluded from, the MIB view according to the\n value of vacmViewTreeFamilyType in the entry whose\n value of vacmViewTreeFamilySubtree has the most\n sub-identifiers. If multiple entries match and have\n the same number of sub-identifiers (when wildcarding\n is specified with the value of vacmViewTreeFamilyMask),\n then the lexicographically greatest instance of\n vacmViewTreeFamilyType determines the inclusion or\n exclusion.\n\n An object instance's OBJECT IDENTIFIER X matches an\n active entry in this table when the number of\n sub-identifiers in X is at least as many as in the\n value of vacmViewTreeFamilySubtree for the entry,\n and each sub-identifier in the value of\n vacmViewTreeFamilySubtree matches its corresponding\n sub-identifier in X. Two sub-identifiers match\n either if the corresponding bit of the value of\n vacmViewTreeFamilyMask for the entry is zero (the\n 'wild card' value), or if they are equal.\n\n A 'family' of subtrees is the set of subtrees defined\n by a particular combination of values of\n vacmViewTreeFamilySubtree and vacmViewTreeFamilyMask.\n\n In the case where no 'wild card' is defined in the\n vacmViewTreeFamilyMask, the family of subtrees reduces\n to a single subtree.\n\n When creating or changing MIB views, an SNMP Command\n Generator application should utilize the\n vacmViewSpinLock to try to avoid collisions. See\n DESCRIPTION clause of vacmViewSpinLock.\n\n When creating MIB views, it is strongly advised that\n first the 'excluded' vacmViewTreeFamilyEntries are\n created and then the 'included' entries.\n\n When deleting MIB views, it is strongly advised that\n first the 'included' vacmViewTreeFamilyEntries are\n\n deleted and then the 'excluded' entries.\n\n If a create for an entry for instance-level access\n control is received and the implementation does not\n support instance-level granularity, then an\n inconsistentName error must be returned.\n ")
+vacmViewTreeFamilyEntry = MibTableRow((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1), ).setIndexNames(
+ (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyViewName"),
+ (0, "SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilySubtree"))
+if mibBuilder.loadTexts:
+ vacmViewTreeFamilyEntry.setDescription(
+ "Information on a particular family of view subtrees\n included in or excluded from a particular SNMP\n context's MIB view.\n\n Implementations must not restrict the number of\n families of view subtrees for a given MIB view,\n except as dictated by resource constraints on the\n overall number of entries in the\n vacmViewTreeFamilyTable.\n\n If no conceptual rows exist in this table for a given\n MIB view (viewName), that view may be thought of as\n consisting of the empty set of view subtrees.\n ")
+vacmViewTreeFamilyViewName = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 1),
+ SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
+if mibBuilder.loadTexts:
+ vacmViewTreeFamilyViewName.setDescription(
+ 'The human readable name for a family of view subtrees.\n ')
vacmViewTreeFamilySubtree = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 2), ObjectIdentifier())
-if mibBuilder.loadTexts: vacmViewTreeFamilySubtree.setDescription('The MIB subtree which when combined with the\n corresponding instance of vacmViewTreeFamilyMask\n defines a family of view subtrees.\n ')
-vacmViewTreeFamilyMask = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,16)).clone(hexValue="")).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmViewTreeFamilyMask.setDescription("The bit mask which, in combination with the\n corresponding instance of vacmViewTreeFamilySubtree,\n defines a family of view subtrees.\n\n Each bit of this bit mask corresponds to a\n sub-identifier of vacmViewTreeFamilySubtree, with the\n most significant bit of the i-th octet of this octet\n string value (extended if necessary, see below)\n corresponding to the (8*i - 7)-th sub-identifier, and\n the least significant bit of the i-th octet of this\n octet string corresponding to the (8*i)-th\n sub-identifier, where i is in the range 1 through 16.\n\n Each bit of this bit mask specifies whether or not\n the corresponding sub-identifiers must match when\n determining if an OBJECT IDENTIFIER is in this\n family of view subtrees; a '1' indicates that an\n exact match must occur; a '0' indicates 'wild card',\n i.e., any sub-identifier value matches.\n\n Thus, the OBJECT IDENTIFIER X of an object instance\n is contained in a family of view subtrees if, for\n each sub-identifier of the value of\n vacmViewTreeFamilySubtree, either:\n\n the i-th bit of vacmViewTreeFamilyMask is 0, or\n\n the i-th sub-identifier of X is equal to the i-th\n sub-identifier of the value of\n vacmViewTreeFamilySubtree.\n\n If the value of this bit mask is M bits long and\n\n there are more than M sub-identifiers in the\n corresponding instance of vacmViewTreeFamilySubtree,\n then the bit mask is extended with 1's to be the\n required length.\n\n Note that when the value of this object is the\n zero-length string, this extension rule results in\n a mask of all-1's being used (i.e., no 'wild card'),\n and the family of view subtrees is the one view\n subtree uniquely identified by the corresponding\n instance of vacmViewTreeFamilySubtree.\n\n Note that masks of length greater than zero length\n do not need to be supported. In this case this\n object is made read-only.\n ")
-vacmViewTreeFamilyType = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 4), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("included", 1), ("excluded", 2),)).clone('included')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmViewTreeFamilyType.setDescription('Indicates whether the corresponding instances of\n vacmViewTreeFamilySubtree and vacmViewTreeFamilyMask\n define a family of view subtrees which is included in\n or excluded from the MIB view.\n ')
-vacmViewTreeFamilyStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 5), StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmViewTreeFamilyStorageType.setDescription("The storage type for this conceptual row.\n\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.\n ")
+if mibBuilder.loadTexts:
+ vacmViewTreeFamilySubtree.setDescription(
+ 'The MIB subtree which when combined with the\n corresponding instance of vacmViewTreeFamilyMask\n defines a family of view subtrees.\n ')
+vacmViewTreeFamilyMask = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 3),
+ OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16)).clone(
+ hexValue="")).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ vacmViewTreeFamilyMask.setDescription(
+ "The bit mask which, in combination with the\n corresponding instance of vacmViewTreeFamilySubtree,\n defines a family of view subtrees.\n\n Each bit of this bit mask corresponds to a\n sub-identifier of vacmViewTreeFamilySubtree, with the\n most significant bit of the i-th octet of this octet\n string value (extended if necessary, see below)\n corresponding to the (8*i - 7)-th sub-identifier, and\n the least significant bit of the i-th octet of this\n octet string corresponding to the (8*i)-th\n sub-identifier, where i is in the range 1 through 16.\n\n Each bit of this bit mask specifies whether or not\n the corresponding sub-identifiers must match when\n determining if an OBJECT IDENTIFIER is in this\n family of view subtrees; a '1' indicates that an\n exact match must occur; a '0' indicates 'wild card',\n i.e., any sub-identifier value matches.\n\n Thus, the OBJECT IDENTIFIER X of an object instance\n is contained in a family of view subtrees if, for\n each sub-identifier of the value of\n vacmViewTreeFamilySubtree, either:\n\n the i-th bit of vacmViewTreeFamilyMask is 0, or\n\n the i-th sub-identifier of X is equal to the i-th\n sub-identifier of the value of\n vacmViewTreeFamilySubtree.\n\n If the value of this bit mask is M bits long and\n\n there are more than M sub-identifiers in the\n corresponding instance of vacmViewTreeFamilySubtree,\n then the bit mask is extended with 1's to be the\n required length.\n\n Note that when the value of this object is the\n zero-length string, this extension rule results in\n a mask of all-1's being used (i.e., no 'wild card'),\n and the family of view subtrees is the one view\n subtree uniquely identified by the corresponding\n instance of vacmViewTreeFamilySubtree.\n\n Note that masks of length greater than zero length\n do not need to be supported. In this case this\n object is made read-only.\n ")
+vacmViewTreeFamilyType = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 4),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, )).clone(
+ namedValues=NamedValues(("included", 1), ("excluded", 2), )).clone(
+ 'included')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ vacmViewTreeFamilyType.setDescription(
+ 'Indicates whether the corresponding instances of\n vacmViewTreeFamilySubtree and vacmViewTreeFamilyMask\n define a family of view subtrees which is included in\n or excluded from the MIB view.\n ')
+vacmViewTreeFamilyStorageType = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 5),
+ StorageType().clone('nonVolatile')).setMaxAccess("readcreate")
+if mibBuilder.loadTexts:
+ vacmViewTreeFamilyStorageType.setDescription(
+ "The storage type for this conceptual row.\n\n Conceptual rows having the value 'permanent' need not\n allow write-access to any columnar objects in the row.\n ")
vacmViewTreeFamilyStatus = MibTableColumn((1, 3, 6, 1, 6, 3, 16, 1, 5, 2, 1, 6), RowStatus()).setMaxAccess("readcreate")
-if mibBuilder.loadTexts: vacmViewTreeFamilyStatus.setDescription('The status of this conceptual row.\n\n The RowStatus TC [RFC2579] requires that this\n DESCRIPTION clause states under which circumstances\n other objects in this row can be modified:\n\n The value of this object has no effect on whether\n other objects in this conceptual row can be modified.\n ')
+if mibBuilder.loadTexts:
+ vacmViewTreeFamilyStatus.setDescription(
+ 'The status of this conceptual row.\n\n The RowStatus TC [RFC2579] requires that this\n DESCRIPTION clause states under which circumstances\n other objects in this row can be modified:\n\n The value of this object has no effect on whether\n other objects in this conceptual row can be modified.\n ')
vacmMIBCompliances = MibIdentifier((1, 3, 6, 1, 6, 3, 16, 2, 1))
vacmMIBGroups = MibIdentifier((1, 3, 6, 1, 6, 3, 16, 2, 2))
-vacmMIBCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 16, 2, 1, 1)).setObjects(*(("SNMP-VIEW-BASED-ACM-MIB", "vacmBasicGroup"),))
-if mibBuilder.loadTexts: vacmMIBCompliance.setDescription('The compliance statement for SNMP engines which\n implement the SNMP View-based Access Control Model\n configuration MIB.\n ')
-vacmBasicGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 16, 2, 2, 1)).setObjects(*(("SNMP-VIEW-BASED-ACM-MIB", "vacmContextName"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmGroupName"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmSecurityToGroupStorageType"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmSecurityToGroupStatus"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessContextMatch"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessReadViewName"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessWriteViewName"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessNotifyViewName"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessStorageType"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessStatus"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewSpinLock"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyMask"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyType"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyStorageType"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyStatus"),))
-if mibBuilder.loadTexts: vacmBasicGroup.setDescription('A collection of objects providing for remote\n configuration of an SNMP engine which implements\n\n the SNMP View-based Access Control Model.\n ')
-mibBuilder.exportSymbols("SNMP-VIEW-BASED-ACM-MIB", vacmMIBObjects=vacmMIBObjects, vacmSecurityName=vacmSecurityName, vacmViewTreeFamilyMask=vacmViewTreeFamilyMask, vacmSecurityToGroupStorageType=vacmSecurityToGroupStorageType, vacmAccessContextMatch=vacmAccessContextMatch, vacmContextEntry=vacmContextEntry, vacmSecurityModel=vacmSecurityModel, vacmAccessReadViewName=vacmAccessReadViewName, snmpVacmMIB=snmpVacmMIB, vacmViewTreeFamilyEntry=vacmViewTreeFamilyEntry, vacmSecurityToGroupStatus=vacmSecurityToGroupStatus, vacmMIBCompliances=vacmMIBCompliances, vacmContextName=vacmContextName, vacmAccessTable=vacmAccessTable, vacmViewTreeFamilyTable=vacmViewTreeFamilyTable, vacmSecurityToGroupEntry=vacmSecurityToGroupEntry, vacmContextTable=vacmContextTable, vacmMIBGroups=vacmMIBGroups, vacmViewSpinLock=vacmViewSpinLock, vacmViewTreeFamilySubtree=vacmViewTreeFamilySubtree, vacmMIBCompliance=vacmMIBCompliance, vacmGroupName=vacmGroupName, vacmAccessWriteViewName=vacmAccessWriteViewName, vacmBasicGroup=vacmBasicGroup, vacmAccessStorageType=vacmAccessStorageType, vacmSecurityToGroupTable=vacmSecurityToGroupTable, vacmAccessContextPrefix=vacmAccessContextPrefix, vacmAccessSecurityModel=vacmAccessSecurityModel, vacmAccessEntry=vacmAccessEntry, vacmAccessSecurityLevel=vacmAccessSecurityLevel, vacmAccessNotifyViewName=vacmAccessNotifyViewName, PYSNMP_MODULE_ID=snmpVacmMIB, vacmMIBViews=vacmMIBViews, vacmViewTreeFamilyStorageType=vacmViewTreeFamilyStorageType, vacmAccessStatus=vacmAccessStatus, vacmViewTreeFamilyType=vacmViewTreeFamilyType, vacmViewTreeFamilyViewName=vacmViewTreeFamilyViewName, vacmMIBConformance=vacmMIBConformance, vacmViewTreeFamilyStatus=vacmViewTreeFamilyStatus)
+vacmMIBCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 16, 2, 1, 1)).setObjects(
+ *(("SNMP-VIEW-BASED-ACM-MIB", "vacmBasicGroup"),))
+if mibBuilder.loadTexts:
+ vacmMIBCompliance.setDescription(
+ 'The compliance statement for SNMP engines which\n implement the SNMP View-based Access Control Model\n configuration MIB.\n ')
+vacmBasicGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 16, 2, 2, 1)).setObjects(
+ *(("SNMP-VIEW-BASED-ACM-MIB", "vacmContextName"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmGroupName"),
+ ("SNMP-VIEW-BASED-ACM-MIB", "vacmSecurityToGroupStorageType"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmSecurityToGroupStatus"),
+ ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessContextMatch"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessReadViewName"),
+ ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessWriteViewName"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessNotifyViewName"),
+ ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessStorageType"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmAccessStatus"),
+ ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewSpinLock"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyMask"),
+ ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyType"), ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyStorageType"),
+ ("SNMP-VIEW-BASED-ACM-MIB", "vacmViewTreeFamilyStatus"))
+)
+if mibBuilder.loadTexts:
+ vacmBasicGroup.setDescription(
+ 'A collection of objects providing for remote\n configuration of an SNMP engine which implements\n\n the SNMP View-based Access Control Model.\n ')
+mibBuilder.exportSymbols("SNMP-VIEW-BASED-ACM-MIB", vacmMIBObjects=vacmMIBObjects, vacmSecurityName=vacmSecurityName,
+ vacmViewTreeFamilyMask=vacmViewTreeFamilyMask,
+ vacmSecurityToGroupStorageType=vacmSecurityToGroupStorageType,
+ vacmAccessContextMatch=vacmAccessContextMatch, vacmContextEntry=vacmContextEntry,
+ vacmSecurityModel=vacmSecurityModel, vacmAccessReadViewName=vacmAccessReadViewName,
+ snmpVacmMIB=snmpVacmMIB, vacmViewTreeFamilyEntry=vacmViewTreeFamilyEntry,
+ vacmSecurityToGroupStatus=vacmSecurityToGroupStatus, vacmMIBCompliances=vacmMIBCompliances,
+ vacmContextName=vacmContextName, vacmAccessTable=vacmAccessTable,
+ vacmViewTreeFamilyTable=vacmViewTreeFamilyTable,
+ vacmSecurityToGroupEntry=vacmSecurityToGroupEntry, vacmContextTable=vacmContextTable,
+ vacmMIBGroups=vacmMIBGroups, vacmViewSpinLock=vacmViewSpinLock,
+ vacmViewTreeFamilySubtree=vacmViewTreeFamilySubtree, vacmMIBCompliance=vacmMIBCompliance,
+ vacmGroupName=vacmGroupName, vacmAccessWriteViewName=vacmAccessWriteViewName,
+ vacmBasicGroup=vacmBasicGroup, vacmAccessStorageType=vacmAccessStorageType,
+ vacmSecurityToGroupTable=vacmSecurityToGroupTable,
+ vacmAccessContextPrefix=vacmAccessContextPrefix,
+ vacmAccessSecurityModel=vacmAccessSecurityModel, vacmAccessEntry=vacmAccessEntry,
+ vacmAccessSecurityLevel=vacmAccessSecurityLevel,
+ vacmAccessNotifyViewName=vacmAccessNotifyViewName, PYSNMP_MODULE_ID=snmpVacmMIB,
+ vacmMIBViews=vacmMIBViews, vacmViewTreeFamilyStorageType=vacmViewTreeFamilyStorageType,
+ vacmAccessStatus=vacmAccessStatus, vacmViewTreeFamilyType=vacmViewTreeFamilyType,
+ vacmViewTreeFamilyViewName=vacmViewTreeFamilyViewName, vacmMIBConformance=vacmMIBConformance,
+ vacmViewTreeFamilyStatus=vacmViewTreeFamilyStatus)
diff --git a/pysnmp/smi/mibs/SNMPv2-CONF.py b/pysnmp/smi/mibs/SNMPv2-CONF.py
index 902c21f2..6a2ab8ed 100644
--- a/pysnmp/smi/mibs/SNMPv2-CONF.py
+++ b/pysnmp/smi/mibs/SNMPv2-CONF.py
@@ -6,7 +6,11 @@
#
MibNode, = mibBuilder.importSymbols('SNMPv2-SMI', 'MibNode')
+
class ObjectGroup(MibNode):
+ objects = ()
+ description = ''
+
def getObjects(self):
return getattr(self, 'objects', ())
@@ -26,9 +30,13 @@ class ObjectGroup(MibNode):
OBJECT-GROUP\n\
OBJECTS { %s }\n\
DESCRIPTION \"%s\"\
-' % (', '.join([ x for x in self.getObjects() ]), self.getDescription())
+' % (', '.join([x for x in self.getObjects()]), self.getDescription())
+
class NotificationGroup(MibNode):
+ objects = ()
+ description = ''
+
def getObjects(self):
return getattr(self, 'objects', ())
@@ -48,9 +56,13 @@ class NotificationGroup(MibNode):
NOTIFICATION-GROUP\n\
NOTIFICATIONS { %s }\n\
DESCRIPTION \"%s\"\
-' % (', '.join([ x for x in self.getObjects() ]), self.getDescription())
+' % (', '.join([x for x in self.getObjects()]), self.getDescription())
+
class ModuleCompliance(MibNode):
+ objects = ()
+ description = ''
+
def getObjects(self):
return getattr(self, 'objects', ())
@@ -70,9 +82,12 @@ class ModuleCompliance(MibNode):
MODULE-COMPLIANCE\n\
OBJECT { %s } \n\
DESCRIPTION \"%s\"\n\
-' % (', '.join([ x for x in self.getObjects() ]), self.getDescription())
+' % (', '.join([x for x in self.getObjects()]), self.getDescription())
+
class AgentCapabilities(MibNode):
+ description = ''
+
def getDescription(self):
return getattr(self, 'description', '')
@@ -86,4 +101,6 @@ AGENT-CAPABILITIES\n\
DESCRIPTION \"%s\"\n\
' % self.getDescription()
-mibBuilder.exportSymbols('SNMPv2-CONF', ObjectGroup=ObjectGroup, NotificationGroup=NotificationGroup, ModuleCompliance=ModuleCompliance, AgentCapabilities=AgentCapabilities)
+
+mibBuilder.exportSymbols('SNMPv2-CONF', ObjectGroup=ObjectGroup, NotificationGroup=NotificationGroup,
+ ModuleCompliance=ModuleCompliance, AgentCapabilities=AgentCapabilities)
diff --git a/pysnmp/smi/mibs/SNMPv2-MIB.py b/pysnmp/smi/mibs/SNMPv2-MIB.py
index 27f1d2b5..c2e250d7 100644
--- a/pysnmp/smi/mibs/SNMPv2-MIB.py
+++ b/pysnmp/smi/mibs/SNMPv2-MIB.py
@@ -10,144 +10,345 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, mib_2, IpAddress, TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "mib-2", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32", "snmpModules", "iso", "ObjectIdentity", "Bits", "Counter32")
-( DisplayString, TimeStamp, TextualConvention, TestAndIncr, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "TextualConvention", "TestAndIncr")
-snmpMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 1)).setRevisions(("2002-10-16 00:00", "1995-11-09 00:00", "1993-04-01 00:00",))
-if mibBuilder.loadTexts: snmpMIB.setLastUpdated('200210160000Z')
-if mibBuilder.loadTexts: snmpMIB.setOrganization('IETF SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpMIB.setContactInfo('WG-EMail: snmpv3@lists.tislabs.com\n Subscribe: snmpv3-request@lists.tislabs.com\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n phone: +1 301 947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n postal: 35 Industrial Way\n P. O. Box 5005\n Rochester, NH 03866-5005\n USA\n EMail: dbh@enterasys.com\n phone: +1 603 337-2614\n\n Editor: Randy Presuhn\n BMC Software, Inc.\n postal: 2141 North First Street\n San Jose, CA 95131\n USA\n EMail: randy_presuhn@bmc.com\n phone: +1 408 546-1006')
-if mibBuilder.loadTexts: snmpMIB.setDescription('The MIB module for SNMP entities.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3418;\n see the RFC itself for full legal notices.\n ')
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(NotificationGroup, ModuleCompliance, ObjectGroup,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance", "ObjectGroup")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, mib_2, IpAddress,
+ TimeTicks, Counter64, Unsigned32, ModuleIdentity, Gauge32, snmpModules, iso, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "mib-2", "IpAddress",
+ "TimeTicks", "Counter64", "Unsigned32", "ModuleIdentity", "Gauge32",
+ "snmpModules", "iso", "ObjectIdentity", "Bits", "Counter32")
+(DisplayString, TimeStamp, TextualConvention, TestAndIncr,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString",
+ "TimeStamp", "TextualConvention",
+ "TestAndIncr")
+snmpMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 1)).setRevisions(
+ ("2002-10-16 00:00", "1995-11-09 00:00", "1993-04-01 00:00",))
+if mibBuilder.loadTexts:
+ snmpMIB.setLastUpdated('200210160000Z')
+if mibBuilder.loadTexts:
+ snmpMIB.setOrganization('IETF SNMPv3 Working Group')
+if mibBuilder.loadTexts:
+ snmpMIB.setContactInfo(
+ 'WG-EMail: snmpv3@lists.tislabs.com\n Subscribe: snmpv3-request@lists.tislabs.com\n\n Co-Chair: Russ Mundy\n Network Associates Laboratories\n postal: 15204 Omega Drive, Suite 300\n Rockville, MD 20850-4601\n USA\n EMail: mundy@tislabs.com\n phone: +1 301 947-7107\n\n Co-Chair: David Harrington\n Enterasys Networks\n postal: 35 Industrial Way\n P. O. Box 5005\n Rochester, NH 03866-5005\n USA\n EMail: dbh@enterasys.com\n phone: +1 603 337-2614\n\n Editor: Randy Presuhn\n BMC Software, Inc.\n postal: 2141 North First Street\n San Jose, CA 95131\n USA\n EMail: randy_presuhn@bmc.com\n phone: +1 408 546-1006')
+if mibBuilder.loadTexts:
+ snmpMIB.setDescription(
+ 'The MIB module for SNMP entities.\n\n Copyright (C) The Internet Society (2002). This\n version of this MIB module is part of RFC 3418;\n see the RFC itself for full legal notices.\n ')
snmpMIBObjects = MibIdentifier((1, 3, 6, 1, 6, 3, 1, 1))
system = MibIdentifier((1, 3, 6, 1, 2, 1, 1))
-sysDescr = MibScalar((1, 3, 6, 1, 2, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0,255))).setMaxAccess("readonly")
-if mibBuilder.loadTexts: sysDescr.setDescription("A textual description of the entity. This value should\n include the full name and version identification of\n the system's hardware type, software operating-system,\n and networking software.")
+sysDescr = MibScalar((1, 3, 6, 1, 2, 1, 1, 1),
+ DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
+if mibBuilder.loadTexts:
+ sysDescr.setDescription(
+ "A textual description of the entity. This value should\n include the full name and version identification of\n the system's hardware type, software operating-system,\n and networking software.")
sysObjectID = MibScalar((1, 3, 6, 1, 2, 1, 1, 2), ObjectIdentifier()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: sysObjectID.setDescription("The vendor's authoritative identification of the\n network management subsystem contained in the entity.\n This value is allocated within the SMI enterprises\n subtree (1.3.6.1.4.1) and provides an easy and\n unambiguous means for determining `what kind of box' is\n being managed. For example, if vendor `Flintstones,\n Inc.' was assigned the subtree 1.3.6.1.4.1.424242,\n it could assign the identifier 1.3.6.1.4.1.424242.1.1\n to its `Fred Router'.")
+if mibBuilder.loadTexts:
+ sysObjectID.setDescription(
+ "The vendor's authoritative identification of the\n network management subsystem contained in the entity.\n This value is allocated within the SMI enterprises\n subtree (1.3.6.1.4.1) and provides an easy and\n unambiguous means for determining `what kind of box' is\n being managed. For example, if vendor `Flintstones,\n Inc.' was assigned the subtree 1.3.6.1.4.1.424242,\n it could assign the identifier 1.3.6.1.4.1.424242.1.1\n to its `Fred Router'.")
sysUpTime = MibScalar((1, 3, 6, 1, 2, 1, 1, 3), TimeTicks()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: sysUpTime.setDescription('The time (in hundredths of a second) since the\n network management portion of the system was last\n re-initialized.')
-sysContact = MibScalar((1, 3, 6, 1, 2, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0,255))).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: sysContact.setDescription('The textual identification of the contact person for\n this managed node, together with information on how\n to contact this person. If no contact information is\n known, the value is the zero-length string.')
-sysName = MibScalar((1, 3, 6, 1, 2, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0,255))).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: sysName.setDescription("An administratively-assigned name for this managed\n node. By convention, this is the node's fully-qualified\n domain name. If the name is unknown, the value is\n the zero-length string.")
-sysLocation = MibScalar((1, 3, 6, 1, 2, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0,255))).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: sysLocation.setDescription("The physical location of this node (e.g., 'telephone\n closet, 3rd floor'). If the location is unknown, the\n value is the zero-length string.")
-sysServices = MibScalar((1, 3, 6, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,127))).setMaxAccess("readonly")
-if mibBuilder.loadTexts: sysServices.setDescription('A value which indicates the set of services that this\n entity may potentially offer. The value is a sum.\n\n This sum initially takes the value zero. Then, for\n each layer, L, in the range 1 through 7, that this node\n performs transactions for, 2 raised to (L - 1) is added\n to the sum. For example, a node which performs only\n routing functions would have a value of 4 (2^(3-1)).\n In contrast, a node which is a host offering application\n services would have a value of 72 (2^(4-1) + 2^(7-1)).\n Note that in the context of the Internet suite of\n protocols, values should be calculated accordingly:\n\n layer functionality\n 1 physical (e.g., repeaters)\n 2 datalink/subnetwork (e.g., bridges)\n 3 internet (e.g., supports the IP)\n 4 end-to-end (e.g., supports the TCP)\n 7 applications (e.g., supports the SMTP)\n\n For systems including OSI protocols, layers 5 and 6\n may also be counted.')
+if mibBuilder.loadTexts:
+ sysUpTime.setDescription(
+ 'The time (in hundredths of a second) since the\n network management portion of the system was last\n re-initialized.')
+sysContact = MibScalar((1, 3, 6, 1, 2, 1, 1, 4),
+ DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
+if mibBuilder.loadTexts:
+ sysContact.setDescription(
+ 'The textual identification of the contact person for\n this managed node, together with information on how\n to contact this person. If no contact information is\n known, the value is the zero-length string.')
+sysName = MibScalar((1, 3, 6, 1, 2, 1, 1, 5),
+ DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
+if mibBuilder.loadTexts:
+ sysName.setDescription(
+ "An administratively-assigned name for this managed\n node. By convention, this is the node's fully-qualified\n domain name. If the name is unknown, the value is\n the zero-length string.")
+sysLocation = MibScalar((1, 3, 6, 1, 2, 1, 1, 6),
+ DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite")
+if mibBuilder.loadTexts:
+ sysLocation.setDescription(
+ "The physical location of this node (e.g., 'telephone\n closet, 3rd floor'). If the location is unknown, the\n value is the zero-length string.")
+sysServices = MibScalar((1, 3, 6, 1, 2, 1, 1, 7),
+ Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 127))).setMaxAccess("readonly")
+if mibBuilder.loadTexts:
+ sysServices.setDescription(
+ 'A value which indicates the set of services that this\n entity may potentially offer. The value is a sum.\n\n This sum initially takes the value zero. Then, for\n each layer, L, in the range 1 through 7, that this node\n performs transactions for, 2 raised to (L - 1) is added\n to the sum. For example, a node which performs only\n routing functions would have a value of 4 (2^(3-1)).\n In contrast, a node which is a host offering application\n services would have a value of 72 (2^(4-1) + 2^(7-1)).\n Note that in the context of the Internet suite of\n protocols, values should be calculated accordingly:\n\n layer functionality\n 1 physical (e.g., repeaters)\n 2 datalink/subnetwork (e.g., bridges)\n 3 internet (e.g., supports the IP)\n 4 end-to-end (e.g., supports the TCP)\n 7 applications (e.g., supports the SMTP)\n\n For systems including OSI protocols, layers 5 and 6\n may also be counted.')
sysORLastChange = MibScalar((1, 3, 6, 1, 2, 1, 1, 8), TimeStamp()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: sysORLastChange.setDescription('The value of sysUpTime at the time of the most recent\n change in state or value of any instance of sysORID.')
+if mibBuilder.loadTexts:
+ sysORLastChange.setDescription(
+ 'The value of sysUpTime at the time of the most recent\n change in state or value of any instance of sysORID.')
sysORTable = MibTable((1, 3, 6, 1, 2, 1, 1, 9), )
-if mibBuilder.loadTexts: sysORTable.setDescription('The (conceptual) table listing the capabilities of\n the local SNMP application acting as a command\n responder with respect to various MIB modules.\n SNMP entities having dynamically-configurable support\n of MIB modules will have a dynamically-varying number\n of conceptual rows.')
+if mibBuilder.loadTexts:
+ sysORTable.setDescription(
+ 'The (conceptual) table listing the capabilities of\n the local SNMP application acting as a command\n responder with respect to various MIB modules.\n SNMP entities having dynamically-configurable support\n of MIB modules will have a dynamically-varying number\n of conceptual rows.')
sysOREntry = MibTableRow((1, 3, 6, 1, 2, 1, 1, 9, 1), ).setIndexNames((0, "SNMPv2-MIB", "sysORIndex"))
-if mibBuilder.loadTexts: sysOREntry.setDescription('An entry (conceptual row) in the sysORTable.')
-sysORIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 1, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1,2147483647)))
-if mibBuilder.loadTexts: sysORIndex.setDescription('The auxiliary variable used for identifying instances\n of the columnar objects in the sysORTable.')
+if mibBuilder.loadTexts:
+ sysOREntry.setDescription('An entry (conceptual row) in the sysORTable.')
+sysORIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 1, 9, 1, 1),
+ Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
+if mibBuilder.loadTexts:
+ sysORIndex.setDescription(
+ 'The auxiliary variable used for identifying instances\n of the columnar objects in the sysORTable.')
sysORID = MibTableColumn((1, 3, 6, 1, 2, 1, 1, 9, 1, 2), ObjectIdentifier()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: sysORID.setDescription('An authoritative identification of a capabilities\n statement with respect to various MIB modules supported\n by the local SNMP application acting as a command\n responder.')
+if mibBuilder.loadTexts:
+ sysORID.setDescription(
+ 'An authoritative identification of a capabilities\n statement with respect to various MIB modules supported\n by the local SNMP application acting as a command\n responder.')
sysORDescr = MibTableColumn((1, 3, 6, 1, 2, 1, 1, 9, 1, 3), DisplayString()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: sysORDescr.setDescription('A textual description of the capabilities identified\n by the corresponding instance of sysORID.')
+if mibBuilder.loadTexts:
+ sysORDescr.setDescription(
+ 'A textual description of the capabilities identified\n by the corresponding instance of sysORID.')
sysORUpTime = MibTableColumn((1, 3, 6, 1, 2, 1, 1, 9, 1, 4), TimeStamp()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: sysORUpTime.setDescription('The value of sysUpTime at the time this conceptual\n row was last instantiated.')
+if mibBuilder.loadTexts:
+ sysORUpTime.setDescription(
+ 'The value of sysUpTime at the time this conceptual\n row was last instantiated.')
snmp = MibIdentifier((1, 3, 6, 1, 2, 1, 11))
snmpInPkts = MibScalar((1, 3, 6, 1, 2, 1, 11, 1), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInPkts.setDescription('The total number of messages delivered to the SNMP\n entity from the transport service.')
+if mibBuilder.loadTexts:
+ snmpInPkts.setDescription(
+ 'The total number of messages delivered to the SNMP\n entity from the transport service.')
snmpInBadVersions = MibScalar((1, 3, 6, 1, 2, 1, 11, 3), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInBadVersions.setDescription('The total number of SNMP messages which were delivered\n to the SNMP entity and were for an unsupported SNMP\n version.')
+if mibBuilder.loadTexts:
+ snmpInBadVersions.setDescription(
+ 'The total number of SNMP messages which were delivered\n to the SNMP entity and were for an unsupported SNMP\n version.')
snmpInBadCommunityNames = MibScalar((1, 3, 6, 1, 2, 1, 11, 4), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInBadCommunityNames.setDescription('The total number of community-based SNMP messages (for\n example, SNMPv1) delivered to the SNMP entity which\n used an SNMP community name not known to said entity.\n Also, implementations which authenticate community-based\n SNMP messages using check(s) in addition to matching\n the community name (for example, by also checking\n whether the message originated from a transport address\n allowed to use a specified community name) MAY include\n in this value the number of messages which failed the\n additional check(s). It is strongly RECOMMENDED that\n\n the documentation for any security model which is used\n to authenticate community-based SNMP messages specify\n the precise conditions that contribute to this value.')
+if mibBuilder.loadTexts:
+ snmpInBadCommunityNames.setDescription(
+ 'The total number of community-based SNMP messages (for\n example, SNMPv1) delivered to the SNMP entity which\n used an SNMP community name not known to said entity.\n Also, implementations which authenticate community-based\n SNMP messages using check(s) in addition to matching\n the community name (for example, by also checking\n whether the message originated from a transport address\n allowed to use a specified community name) MAY include\n in this value the number of messages which failed the\n additional check(s). It is strongly RECOMMENDED that\n\n the documentation for any security model which is used\n to authenticate community-based SNMP messages specify\n the precise conditions that contribute to this value.')
snmpInBadCommunityUses = MibScalar((1, 3, 6, 1, 2, 1, 11, 5), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInBadCommunityUses.setDescription('The total number of community-based SNMP messages (for\n example, SNMPv1) delivered to the SNMP entity which\n represented an SNMP operation that was not allowed for\n the SNMP community named in the message. The precise\n conditions under which this counter is incremented\n (if at all) depend on how the SNMP entity implements\n its access control mechanism and how its applications\n interact with that access control mechanism. It is\n strongly RECOMMENDED that the documentation for any\n access control mechanism which is used to control access\n to and visibility of MIB instrumentation specify the\n precise conditions that contribute to this value.')
+if mibBuilder.loadTexts:
+ snmpInBadCommunityUses.setDescription(
+ 'The total number of community-based SNMP messages (for\n example, SNMPv1) delivered to the SNMP entity which\n represented an SNMP operation that was not allowed for\n the SNMP community named in the message. The precise\n conditions under which this counter is incremented\n (if at all) depend on how the SNMP entity implements\n its access control mechanism and how its applications\n interact with that access control mechanism. It is\n strongly RECOMMENDED that the documentation for any\n access control mechanism which is used to control access\n to and visibility of MIB instrumentation specify the\n precise conditions that contribute to this value.')
snmpInASNParseErrs = MibScalar((1, 3, 6, 1, 2, 1, 11, 6), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInASNParseErrs.setDescription('The total number of ASN.1 or BER errors encountered by\n the SNMP entity when decoding received SNMP messages.')
-snmpEnableAuthenTraps = MibScalar((1, 3, 6, 1, 2, 1, 11, 30), Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2,)).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2),))).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: snmpEnableAuthenTraps.setDescription('Indicates whether the SNMP entity is permitted to\n generate authenticationFailure traps. The value of this\n object overrides any configuration information; as such,\n it provides a means whereby all authenticationFailure\n traps may be disabled.\n\n Note that it is strongly recommended that this object\n be stored in non-volatile memory so that it remains\n constant across re-initializations of the network\n management system.')
+if mibBuilder.loadTexts:
+ snmpInASNParseErrs.setDescription(
+ 'The total number of ASN.1 or BER errors encountered by\n the SNMP entity when decoding received SNMP messages.')
+snmpEnableAuthenTraps = MibScalar((1, 3, 6, 1, 2, 1, 11, 30),
+ Integer32().subtype(subtypeSpec=SingleValueConstraint(1, 2, )).clone(
+ namedValues=NamedValues(("enabled", 1), ("disabled", 2), ))).setMaxAccess(
+ "readwrite")
+if mibBuilder.loadTexts:
+ snmpEnableAuthenTraps.setDescription(
+ 'Indicates whether the SNMP entity is permitted to\n generate authenticationFailure traps. The value of this\n object overrides any configuration information; as such,\n it provides a means whereby all authenticationFailure\n traps may be disabled.\n\n Note that it is strongly recommended that this object\n be stored in non-volatile memory so that it remains\n constant across re-initializations of the network\n management system.')
snmpSilentDrops = MibScalar((1, 3, 6, 1, 2, 1, 11, 31), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpSilentDrops.setDescription('The total number of Confirmed Class PDUs (such as\n GetRequest-PDUs, GetNextRequest-PDUs,\n GetBulkRequest-PDUs, SetRequest-PDUs, and\n InformRequest-PDUs) delivered to the SNMP entity which\n were silently dropped because the size of a reply\n containing an alternate Response Class PDU (such as a\n Response-PDU) with an empty variable-bindings field\n was greater than either a local constraint or the\n maximum message size associated with the originator of\n the request.')
+if mibBuilder.loadTexts:
+ snmpSilentDrops.setDescription(
+ 'The total number of Confirmed Class PDUs (such as\n GetRequest-PDUs, GetNextRequest-PDUs,\n GetBulkRequest-PDUs, SetRequest-PDUs, and\n InformRequest-PDUs) delivered to the SNMP entity which\n were silently dropped because the size of a reply\n containing an alternate Response Class PDU (such as a\n Response-PDU) with an empty variable-bindings field\n was greater than either a local constraint or the\n maximum message size associated with the originator of\n the request.')
snmpProxyDrops = MibScalar((1, 3, 6, 1, 2, 1, 11, 32), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpProxyDrops.setDescription('The total number of Confirmed Class PDUs\n (such as GetRequest-PDUs, GetNextRequest-PDUs,\n GetBulkRequest-PDUs, SetRequest-PDUs, and\n InformRequest-PDUs) delivered to the SNMP entity which\n were silently dropped because the transmission of\n the (possibly translated) message to a proxy target\n failed in a manner (other than a time-out) such that\n no Response Class PDU (such as a Response-PDU) could\n be returned.')
+if mibBuilder.loadTexts:
+ snmpProxyDrops.setDescription(
+ 'The total number of Confirmed Class PDUs\n (such as GetRequest-PDUs, GetNextRequest-PDUs,\n GetBulkRequest-PDUs, SetRequest-PDUs, and\n InformRequest-PDUs) delivered to the SNMP entity which\n were silently dropped because the transmission of\n the (possibly translated) message to a proxy target\n failed in a manner (other than a time-out) such that\n no Response Class PDU (such as a Response-PDU) could\n be returned.')
snmpTrap = MibIdentifier((1, 3, 6, 1, 6, 3, 1, 1, 4))
snmpTrapOID = MibScalar((1, 3, 6, 1, 6, 3, 1, 1, 4, 1), ObjectIdentifier()).setMaxAccess("accessiblefornotify")
-if mibBuilder.loadTexts: snmpTrapOID.setDescription('The authoritative identification of the notification\n currently being sent. This variable occurs as\n the second varbind in every SNMPv2-Trap-PDU and\n InformRequest-PDU.')
+if mibBuilder.loadTexts:
+ snmpTrapOID.setDescription(
+ 'The authoritative identification of the notification\n currently being sent. This variable occurs as\n the second varbind in every SNMPv2-Trap-PDU and\n InformRequest-PDU.')
snmpTrapEnterprise = MibScalar((1, 3, 6, 1, 6, 3, 1, 1, 4, 3), ObjectIdentifier()).setMaxAccess("accessiblefornotify")
-if mibBuilder.loadTexts: snmpTrapEnterprise.setDescription('The authoritative identification of the enterprise\n associated with the trap currently being sent. When an\n SNMP proxy agent is mapping an RFC1157 Trap-PDU\n into a SNMPv2-Trap-PDU, this variable occurs as the\n last varbind.')
+if mibBuilder.loadTexts:
+ snmpTrapEnterprise.setDescription(
+ 'The authoritative identification of the enterprise\n associated with the trap currently being sent. When an\n SNMP proxy agent is mapping an RFC1157 Trap-PDU\n into a SNMPv2-Trap-PDU, this variable occurs as the\n last varbind.')
snmpTraps = MibIdentifier((1, 3, 6, 1, 6, 3, 1, 1, 5))
coldStart = NotificationType((1, 3, 6, 1, 6, 3, 1, 1, 5, 1)).setObjects(*())
-if mibBuilder.loadTexts: coldStart.setDescription('A coldStart trap signifies that the SNMP entity,\n supporting a notification originator application, is\n reinitializing itself and that its configuration may\n have been altered.')
+if mibBuilder.loadTexts:
+ coldStart.setDescription(
+ 'A coldStart trap signifies that the SNMP entity,\n supporting a notification originator application, is\n reinitializing itself and that its configuration may\n have been altered.')
warmStart = NotificationType((1, 3, 6, 1, 6, 3, 1, 1, 5, 2)).setObjects(*())
-if mibBuilder.loadTexts: warmStart.setDescription('A warmStart trap signifies that the SNMP entity,\n supporting a notification originator application,\n is reinitializing itself such that its configuration\n is unaltered.')
+if mibBuilder.loadTexts:
+ warmStart.setDescription(
+ 'A warmStart trap signifies that the SNMP entity,\n supporting a notification originator application,\n is reinitializing itself such that its configuration\n is unaltered.')
authenticationFailure = NotificationType((1, 3, 6, 1, 6, 3, 1, 1, 5, 5)).setObjects(*())
-if mibBuilder.loadTexts: authenticationFailure.setDescription('An authenticationFailure trap signifies that the SNMP\n entity has received a protocol message that is not\n properly authenticated. While all implementations\n of SNMP entities MAY be capable of generating this\n trap, the snmpEnableAuthenTraps object indicates\n whether this trap will be generated.')
+if mibBuilder.loadTexts:
+ authenticationFailure.setDescription(
+ 'An authenticationFailure trap signifies that the SNMP\n entity has received a protocol message that is not\n properly authenticated. While all implementations\n of SNMP entities MAY be capable of generating this\n trap, the snmpEnableAuthenTraps object indicates\n whether this trap will be generated.')
snmpSet = MibIdentifier((1, 3, 6, 1, 6, 3, 1, 1, 6))
snmpSetSerialNo = MibScalar((1, 3, 6, 1, 6, 3, 1, 1, 6, 1), TestAndIncr()).setMaxAccess("readwrite")
-if mibBuilder.loadTexts: snmpSetSerialNo.setDescription('An advisory lock used to allow several cooperating\n command generator applications to coordinate their\n use of the SNMP set operation.\n\n This object is used for coarse-grain coordination.\n To achieve fine-grain coordination, one or more similar\n objects might be defined within each MIB group, as\n appropriate.')
+if mibBuilder.loadTexts:
+ snmpSetSerialNo.setDescription(
+ 'An advisory lock used to allow several cooperating\n command generator applications to coordinate their\n use of the SNMP set operation.\n\n This object is used for coarse-grain coordination.\n To achieve fine-grain coordination, one or more similar\n objects might be defined within each MIB group, as\n appropriate.')
snmpMIBConformance = MibIdentifier((1, 3, 6, 1, 6, 3, 1, 2))
snmpMIBCompliances = MibIdentifier((1, 3, 6, 1, 6, 3, 1, 2, 1))
snmpMIBGroups = MibIdentifier((1, 3, 6, 1, 6, 3, 1, 2, 2))
-snmpBasicCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 1, 2, 1, 2)).setObjects(*(("SNMPv2-MIB", "snmpGroup"), ("SNMPv2-MIB", "snmpSetGroup"), ("SNMPv2-MIB", "systemGroup"), ("SNMPv2-MIB", "snmpBasicNotificationsGroup"), ("SNMPv2-MIB", "snmpCommunityGroup"),))
-if mibBuilder.loadTexts: snmpBasicCompliance.setDescription('The compliance statement for SNMPv2 entities which\n implement the SNMPv2 MIB.\n\n This compliance statement is replaced by\n snmpBasicComplianceRev2.')
-snmpBasicComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 6, 3, 1, 2, 1, 3)).setObjects(*(("SNMPv2-MIB", "snmpGroup"), ("SNMPv2-MIB", "snmpSetGroup"), ("SNMPv2-MIB", "systemGroup"), ("SNMPv2-MIB", "snmpBasicNotificationsGroup"), ("SNMPv2-MIB", "snmpCommunityGroup"), ("SNMPv2-MIB", "snmpWarmStartNotificationGroup"),))
-if mibBuilder.loadTexts: snmpBasicComplianceRev2.setDescription('The compliance statement for SNMP entities which\n implement this MIB module.')
-snmpGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 8)).setObjects(*(("SNMPv2-MIB", "snmpInPkts"), ("SNMPv2-MIB", "snmpInBadVersions"), ("SNMPv2-MIB", "snmpInASNParseErrs"), ("SNMPv2-MIB", "snmpSilentDrops"), ("SNMPv2-MIB", "snmpProxyDrops"), ("SNMPv2-MIB", "snmpEnableAuthenTraps"),))
-if mibBuilder.loadTexts: snmpGroup.setDescription('A collection of objects providing basic instrumentation\n and control of an SNMP entity.')
-snmpCommunityGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 9)).setObjects(*(("SNMPv2-MIB", "snmpInBadCommunityNames"), ("SNMPv2-MIB", "snmpInBadCommunityUses"),))
-if mibBuilder.loadTexts: snmpCommunityGroup.setDescription('A collection of objects providing basic instrumentation\n of a SNMP entity which supports community-based\n authentication.')
+snmpBasicCompliance = ModuleCompliance((1, 3, 6, 1, 6, 3, 1, 2, 1, 2)).setObjects(
+ *(("SNMPv2-MIB", "snmpGroup"), ("SNMPv2-MIB", "snmpSetGroup"), ("SNMPv2-MIB", "systemGroup"),
+ ("SNMPv2-MIB", "snmpBasicNotificationsGroup"), ("SNMPv2-MIB", "snmpCommunityGroup"))
+)
+if mibBuilder.loadTexts:
+ snmpBasicCompliance.setDescription(
+ 'The compliance statement for SNMPv2 entities which\n implement the SNMPv2 MIB.\n\n This compliance statement is replaced by\n snmpBasicComplianceRev2.')
+snmpBasicComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 6, 3, 1, 2, 1, 3)).setObjects(
+ *(("SNMPv2-MIB", "snmpGroup"), ("SNMPv2-MIB", "snmpSetGroup"), ("SNMPv2-MIB", "systemGroup"),
+ ("SNMPv2-MIB", "snmpBasicNotificationsGroup"), ("SNMPv2-MIB", "snmpCommunityGroup"),
+ ("SNMPv2-MIB", "snmpWarmStartNotificationGroup"))
+)
+if mibBuilder.loadTexts:
+ snmpBasicComplianceRev2.setDescription(
+ 'The compliance statement for SNMP entities which\n implement this MIB module.')
+snmpGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 8)).setObjects(
+ *(("SNMPv2-MIB", "snmpInPkts"), ("SNMPv2-MIB", "snmpInBadVersions"), ("SNMPv2-MIB", "snmpInASNParseErrs"),
+ ("SNMPv2-MIB", "snmpSilentDrops"), ("SNMPv2-MIB", "snmpProxyDrops"), ("SNMPv2-MIB", "snmpEnableAuthenTraps"))
+)
+if mibBuilder.loadTexts:
+ snmpGroup.setDescription(
+ 'A collection of objects providing basic instrumentation\n and control of an SNMP entity.')
+snmpCommunityGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 9)).setObjects(
+ *(("SNMPv2-MIB", "snmpInBadCommunityNames"), ("SNMPv2-MIB", "snmpInBadCommunityUses"),))
+if mibBuilder.loadTexts:
+ snmpCommunityGroup.setDescription(
+ 'A collection of objects providing basic instrumentation\n of a SNMP entity which supports community-based\n authentication.')
snmpSetGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 5)).setObjects(*(("SNMPv2-MIB", "snmpSetSerialNo"),))
-if mibBuilder.loadTexts: snmpSetGroup.setDescription('A collection of objects which allow several cooperating\n command generator applications to coordinate their\n use of the set operation.')
-systemGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 6)).setObjects(*(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysObjectID"), ("SNMPv2-MIB", "sysUpTime"), ("SNMPv2-MIB", "sysContact"), ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysServices"), ("SNMPv2-MIB", "sysORLastChange"), ("SNMPv2-MIB", "sysORID"), ("SNMPv2-MIB", "sysORUpTime"), ("SNMPv2-MIB", "sysORDescr"),))
-if mibBuilder.loadTexts: systemGroup.setDescription('The system group defines objects which are common to all\n managed systems.')
-snmpBasicNotificationsGroup = NotificationGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 7)).setObjects(*(("SNMPv2-MIB", "coldStart"), ("SNMPv2-MIB", "authenticationFailure"),))
-if mibBuilder.loadTexts: snmpBasicNotificationsGroup.setDescription('The basic notifications implemented by an SNMP entity\n supporting command responder applications.')
-snmpWarmStartNotificationGroup = NotificationGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 11)).setObjects(*(("SNMPv2-MIB", "warmStart"),))
-if mibBuilder.loadTexts: snmpWarmStartNotificationGroup.setDescription('An additional notification for an SNMP entity supporting\n command responder applications, if it is able to reinitialize\n itself such that its configuration is unaltered.')
-snmpNotificationGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 12)).setObjects(*(("SNMPv2-MIB", "snmpTrapOID"), ("SNMPv2-MIB", "snmpTrapEnterprise"),))
-if mibBuilder.loadTexts: snmpNotificationGroup.setDescription('These objects are required for entities\n which support notification originator applications.')
+if mibBuilder.loadTexts:
+ snmpSetGroup.setDescription(
+ 'A collection of objects which allow several cooperating\n command generator applications to coordinate their\n use of the set operation.')
+systemGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 6)).setObjects(
+ *(("SNMPv2-MIB", "sysDescr"), ("SNMPv2-MIB", "sysObjectID"), ("SNMPv2-MIB", "sysUpTime"), ("SNMPv2-MIB", "sysContact"),
+ ("SNMPv2-MIB", "sysName"), ("SNMPv2-MIB", "sysLocation"), ("SNMPv2-MIB", "sysServices"),
+ ("SNMPv2-MIB", "sysORLastChange"), ("SNMPv2-MIB", "sysORID"), ("SNMPv2-MIB", "sysORUpTime"),
+ ("SNMPv2-MIB", "sysORDescr"))
+)
+if mibBuilder.loadTexts:
+ systemGroup.setDescription('The system group defines objects which are common to all\n managed systems.')
+snmpBasicNotificationsGroup = NotificationGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 7)).setObjects(
+ *(("SNMPv2-MIB", "coldStart"), ("SNMPv2-MIB", "authenticationFailure"),))
+if mibBuilder.loadTexts:
+ snmpBasicNotificationsGroup.setDescription(
+ 'The basic notifications implemented by an SNMP entity\n supporting command responder applications.')
+snmpWarmStartNotificationGroup = NotificationGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 11)).setObjects(
+ *(("SNMPv2-MIB", "warmStart"),))
+if mibBuilder.loadTexts:
+ snmpWarmStartNotificationGroup.setDescription(
+ 'An additional notification for an SNMP entity supporting\n command responder applications, if it is able to reinitialize\n itself such that its configuration is unaltered.')
+snmpNotificationGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 12)).setObjects(
+ *(("SNMPv2-MIB", "snmpTrapOID"), ("SNMPv2-MIB", "snmpTrapEnterprise"),))
+if mibBuilder.loadTexts:
+ snmpNotificationGroup.setDescription(
+ 'These objects are required for entities\n which support notification originator applications.')
snmpOutPkts = MibScalar((1, 3, 6, 1, 2, 1, 11, 2), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutPkts.setDescription('The total number of SNMP Messages which were\n passed from the SNMP protocol entity to the\n transport service.')
+if mibBuilder.loadTexts:
+ snmpOutPkts.setDescription(
+ 'The total number of SNMP Messages which were\n passed from the SNMP protocol entity to the\n transport service.')
snmpInTooBigs = MibScalar((1, 3, 6, 1, 2, 1, 11, 8), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInTooBigs.setDescription("The total number of SNMP PDUs which were\n delivered to the SNMP protocol entity and for\n which the value of the error-status field was\n `tooBig'.")
+if mibBuilder.loadTexts:
+ snmpInTooBigs.setDescription(
+ "The total number of SNMP PDUs which were\n delivered to the SNMP protocol entity and for\n which the value of the error-status field was\n `tooBig'.")
snmpInNoSuchNames = MibScalar((1, 3, 6, 1, 2, 1, 11, 9), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInNoSuchNames.setDescription("The total number of SNMP PDUs which were\n delivered to the SNMP protocol entity and for\n which the value of the error-status field was\n `noSuchName'.")
+if mibBuilder.loadTexts:
+ snmpInNoSuchNames.setDescription(
+ "The total number of SNMP PDUs which were\n delivered to the SNMP protocol entity and for\n which the value of the error-status field was\n `noSuchName'.")
snmpInBadValues = MibScalar((1, 3, 6, 1, 2, 1, 11, 10), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInBadValues.setDescription("The total number of SNMP PDUs which were\n delivered to the SNMP protocol entity and for\n which the value of the error-status field was\n `badValue'.")
+if mibBuilder.loadTexts:
+ snmpInBadValues.setDescription(
+ "The total number of SNMP PDUs which were\n delivered to the SNMP protocol entity and for\n which the value of the error-status field was\n `badValue'.")
snmpInReadOnlys = MibScalar((1, 3, 6, 1, 2, 1, 11, 11), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInReadOnlys.setDescription("The total number valid SNMP PDUs which were delivered\n to the SNMP protocol entity and for which the value\n of the error-status field was `readOnly'. It should\n be noted that it is a protocol error to generate an\n SNMP PDU which contains the value `readOnly' in the\n error-status field, as such this object is provided\n as a means of detecting incorrect implementations of\n the SNMP.")
+if mibBuilder.loadTexts:
+ snmpInReadOnlys.setDescription(
+ "The total number valid SNMP PDUs which were delivered\n to the SNMP protocol entity and for which the value\n of the error-status field was `readOnly'. It should\n be noted that it is a protocol error to generate an\n SNMP PDU which contains the value `readOnly' in the\n error-status field, as such this object is provided\n as a means of detecting incorrect implementations of\n the SNMP.")
snmpInGenErrs = MibScalar((1, 3, 6, 1, 2, 1, 11, 12), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInGenErrs.setDescription("The total number of SNMP PDUs which were delivered\n to the SNMP protocol entity and for which the value\n of the error-status field was `genErr'.")
+if mibBuilder.loadTexts:
+ snmpInGenErrs.setDescription(
+ "The total number of SNMP PDUs which were delivered\n to the SNMP protocol entity and for which the value\n of the error-status field was `genErr'.")
snmpInTotalReqVars = MibScalar((1, 3, 6, 1, 2, 1, 11, 13), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInTotalReqVars.setDescription('The total number of MIB objects which have been\n retrieved successfully by the SNMP protocol entity\n as the result of receiving valid SNMP Get-Request\n and Get-Next PDUs.')
+if mibBuilder.loadTexts:
+ snmpInTotalReqVars.setDescription(
+ 'The total number of MIB objects which have been\n retrieved successfully by the SNMP protocol entity\n as the result of receiving valid SNMP Get-Request\n and Get-Next PDUs.')
snmpInTotalSetVars = MibScalar((1, 3, 6, 1, 2, 1, 11, 14), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInTotalSetVars.setDescription('The total number of MIB objects which have been\n altered successfully by the SNMP protocol entity as\n the result of receiving valid SNMP Set-Request PDUs.')
+if mibBuilder.loadTexts:
+ snmpInTotalSetVars.setDescription(
+ 'The total number of MIB objects which have been\n altered successfully by the SNMP protocol entity as\n the result of receiving valid SNMP Set-Request PDUs.')
snmpInGetRequests = MibScalar((1, 3, 6, 1, 2, 1, 11, 15), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInGetRequests.setDescription('The total number of SNMP Get-Request PDUs which\n have been accepted and processed by the SNMP\n protocol entity.')
+if mibBuilder.loadTexts:
+ snmpInGetRequests.setDescription(
+ 'The total number of SNMP Get-Request PDUs which\n have been accepted and processed by the SNMP\n protocol entity.')
snmpInGetNexts = MibScalar((1, 3, 6, 1, 2, 1, 11, 16), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInGetNexts.setDescription('The total number of SNMP Get-Next PDUs which have been\n accepted and processed by the SNMP protocol entity.')
+if mibBuilder.loadTexts:
+ snmpInGetNexts.setDescription(
+ 'The total number of SNMP Get-Next PDUs which have been\n accepted and processed by the SNMP protocol entity.')
snmpInSetRequests = MibScalar((1, 3, 6, 1, 2, 1, 11, 17), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInSetRequests.setDescription('The total number of SNMP Set-Request PDUs which\n have been accepted and processed by the SNMP protocol\n entity.')
+if mibBuilder.loadTexts:
+ snmpInSetRequests.setDescription(
+ 'The total number of SNMP Set-Request PDUs which\n have been accepted and processed by the SNMP protocol\n entity.')
snmpInGetResponses = MibScalar((1, 3, 6, 1, 2, 1, 11, 18), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInGetResponses.setDescription('The total number of SNMP Get-Response PDUs which\n have been accepted and processed by the SNMP protocol\n entity.')
+if mibBuilder.loadTexts:
+ snmpInGetResponses.setDescription(
+ 'The total number of SNMP Get-Response PDUs which\n have been accepted and processed by the SNMP protocol\n entity.')
snmpInTraps = MibScalar((1, 3, 6, 1, 2, 1, 11, 19), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInTraps.setDescription('The total number of SNMP Trap PDUs which have been\n accepted and processed by the SNMP protocol entity.')
+if mibBuilder.loadTexts:
+ snmpInTraps.setDescription(
+ 'The total number of SNMP Trap PDUs which have been\n accepted and processed by the SNMP protocol entity.')
snmpOutTooBigs = MibScalar((1, 3, 6, 1, 2, 1, 11, 20), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutTooBigs.setDescription("The total number of SNMP PDUs which were generated\n by the SNMP protocol entity and for which the value\n of the error-status field was `tooBig.'")
+if mibBuilder.loadTexts:
+ snmpOutTooBigs.setDescription(
+ "The total number of SNMP PDUs which were generated\n by the SNMP protocol entity and for which the value\n of the error-status field was `tooBig.'")
snmpOutNoSuchNames = MibScalar((1, 3, 6, 1, 2, 1, 11, 21), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutNoSuchNames.setDescription("The total number of SNMP PDUs which were generated\n by the SNMP protocol entity and for which the value\n of the error-status was `noSuchName'.")
+if mibBuilder.loadTexts:
+ snmpOutNoSuchNames.setDescription(
+ "The total number of SNMP PDUs which were generated\n by the SNMP protocol entity and for which the value\n of the error-status was `noSuchName'.")
snmpOutBadValues = MibScalar((1, 3, 6, 1, 2, 1, 11, 22), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutBadValues.setDescription("The total number of SNMP PDUs which were generated\n by the SNMP protocol entity and for which the value\n of the error-status field was `badValue'.")
+if mibBuilder.loadTexts:
+ snmpOutBadValues.setDescription(
+ "The total number of SNMP PDUs which were generated\n by the SNMP protocol entity and for which the value\n of the error-status field was `badValue'.")
snmpOutGenErrs = MibScalar((1, 3, 6, 1, 2, 1, 11, 24), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutGenErrs.setDescription("The total number of SNMP PDUs which were generated\n by the SNMP protocol entity and for which the value\n of the error-status field was `genErr'.")
+if mibBuilder.loadTexts:
+ snmpOutGenErrs.setDescription(
+ "The total number of SNMP PDUs which were generated\n by the SNMP protocol entity and for which the value\n of the error-status field was `genErr'.")
snmpOutGetRequests = MibScalar((1, 3, 6, 1, 2, 1, 11, 25), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutGetRequests.setDescription('The total number of SNMP Get-Request PDUs which\n have been generated by the SNMP protocol entity.')
+if mibBuilder.loadTexts:
+ snmpOutGetRequests.setDescription(
+ 'The total number of SNMP Get-Request PDUs which\n have been generated by the SNMP protocol entity.')
snmpOutGetNexts = MibScalar((1, 3, 6, 1, 2, 1, 11, 26), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutGetNexts.setDescription('The total number of SNMP Get-Next PDUs which have\n been generated by the SNMP protocol entity.')
+if mibBuilder.loadTexts:
+ snmpOutGetNexts.setDescription(
+ 'The total number of SNMP Get-Next PDUs which have\n been generated by the SNMP protocol entity.')
snmpOutSetRequests = MibScalar((1, 3, 6, 1, 2, 1, 11, 27), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutSetRequests.setDescription('The total number of SNMP Set-Request PDUs which\n have been generated by the SNMP protocol entity.')
+if mibBuilder.loadTexts:
+ snmpOutSetRequests.setDescription(
+ 'The total number of SNMP Set-Request PDUs which\n have been generated by the SNMP protocol entity.')
snmpOutGetResponses = MibScalar((1, 3, 6, 1, 2, 1, 11, 28), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutGetResponses.setDescription('The total number of SNMP Get-Response PDUs which\n have been generated by the SNMP protocol entity.')
+if mibBuilder.loadTexts:
+ snmpOutGetResponses.setDescription(
+ 'The total number of SNMP Get-Response PDUs which\n have been generated by the SNMP protocol entity.')
snmpOutTraps = MibScalar((1, 3, 6, 1, 2, 1, 11, 29), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpOutTraps.setDescription('The total number of SNMP Trap PDUs which have\n been generated by the SNMP protocol entity.')
-snmpObsoleteGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 10)).setObjects(*(("SNMPv2-MIB", "snmpOutPkts"), ("SNMPv2-MIB", "snmpInTooBigs"), ("SNMPv2-MIB", "snmpInNoSuchNames"), ("SNMPv2-MIB", "snmpInBadValues"), ("SNMPv2-MIB", "snmpInReadOnlys"), ("SNMPv2-MIB", "snmpInGenErrs"), ("SNMPv2-MIB", "snmpInTotalReqVars"), ("SNMPv2-MIB", "snmpInTotalSetVars"), ("SNMPv2-MIB", "snmpInGetRequests"), ("SNMPv2-MIB", "snmpInGetNexts"), ("SNMPv2-MIB", "snmpInSetRequests"), ("SNMPv2-MIB", "snmpInGetResponses"), ("SNMPv2-MIB", "snmpInTraps"), ("SNMPv2-MIB", "snmpOutTooBigs"), ("SNMPv2-MIB", "snmpOutNoSuchNames"), ("SNMPv2-MIB", "snmpOutBadValues"), ("SNMPv2-MIB", "snmpOutGenErrs"), ("SNMPv2-MIB", "snmpOutGetRequests"), ("SNMPv2-MIB", "snmpOutGetNexts"), ("SNMPv2-MIB", "snmpOutSetRequests"), ("SNMPv2-MIB", "snmpOutGetResponses"), ("SNMPv2-MIB", "snmpOutTraps"),))
-if mibBuilder.loadTexts: snmpObsoleteGroup.setDescription('A collection of objects from RFC 1213 made obsolete\n by this MIB module.')
-mibBuilder.exportSymbols("SNMPv2-MIB", snmpMIBGroups=snmpMIBGroups, snmpSetGroup=snmpSetGroup, snmpInTraps=snmpInTraps, sysOREntry=sysOREntry, snmpOutPkts=snmpOutPkts, snmpInTotalSetVars=snmpInTotalSetVars, snmpInGetNexts=snmpInGetNexts, sysLocation=sysLocation, snmpBasicNotificationsGroup=snmpBasicNotificationsGroup, snmpOutTooBigs=snmpOutTooBigs, systemGroup=systemGroup, snmpMIB=snmpMIB, snmpInSetRequests=snmpInSetRequests, snmpInBadVersions=snmpInBadVersions, snmpTrapEnterprise=snmpTrapEnterprise, sysName=sysName, snmpTrapOID=snmpTrapOID, snmpOutNoSuchNames=snmpOutNoSuchNames, snmpInReadOnlys=snmpInReadOnlys, snmpOutGetResponses=snmpOutGetResponses, snmpWarmStartNotificationGroup=snmpWarmStartNotificationGroup, warmStart=warmStart, sysUpTime=sysUpTime, snmpCommunityGroup=snmpCommunityGroup, snmpInTotalReqVars=snmpInTotalReqVars, sysORLastChange=sysORLastChange, snmpOutGetNexts=snmpOutGetNexts, snmpOutGetRequests=snmpOutGetRequests, snmpInBadCommunityUses=snmpInBadCommunityUses, snmpMIBCompliances=snmpMIBCompliances, snmpTrap=snmpTrap, PYSNMP_MODULE_ID=snmpMIB, coldStart=coldStart, authenticationFailure=authenticationFailure, snmpInGenErrs=snmpInGenErrs, snmpInGetRequests=snmpInGetRequests, snmpOutTraps=snmpOutTraps, snmpOutGenErrs=snmpOutGenErrs, snmpProxyDrops=snmpProxyDrops, snmpSet=snmpSet, snmpMIBObjects=snmpMIBObjects, sysContact=sysContact, snmpOutBadValues=snmpOutBadValues, sysServices=sysServices, snmpTraps=snmpTraps, sysObjectID=sysObjectID, snmpOutSetRequests=snmpOutSetRequests, snmpInNoSuchNames=snmpInNoSuchNames, snmpObsoleteGroup=snmpObsoleteGroup, sysDescr=sysDescr, snmpMIBConformance=snmpMIBConformance, snmpInPkts=snmpInPkts, snmpGroup=snmpGroup, snmpBasicCompliance=snmpBasicCompliance, snmpInBadCommunityNames=snmpInBadCommunityNames, system=system, sysORUpTime=sysORUpTime, snmpBasicComplianceRev2=snmpBasicComplianceRev2, sysORTable=sysORTable, snmpInBadValues=snmpInBadValues, sysORDescr=sysORDescr, sysORIndex=sysORIndex, snmpSetSerialNo=snmpSetSerialNo, sysORID=sysORID, snmpInGetResponses=snmpInGetResponses, snmp=snmp, snmpInTooBigs=snmpInTooBigs, snmpInASNParseErrs=snmpInASNParseErrs, snmpEnableAuthenTraps=snmpEnableAuthenTraps, snmpNotificationGroup=snmpNotificationGroup, snmpSilentDrops=snmpSilentDrops)
+if mibBuilder.loadTexts:
+ snmpOutTraps.setDescription(
+ 'The total number of SNMP Trap PDUs which have\n been generated by the SNMP protocol entity.')
+snmpObsoleteGroup = ObjectGroup((1, 3, 6, 1, 6, 3, 1, 2, 2, 10)).setObjects(
+ *(("SNMPv2-MIB", "snmpOutPkts"), ("SNMPv2-MIB", "snmpInTooBigs"), ("SNMPv2-MIB", "snmpInNoSuchNames"),
+ ("SNMPv2-MIB", "snmpInBadValues"), ("SNMPv2-MIB", "snmpInReadOnlys"), ("SNMPv2-MIB", "snmpInGenErrs"),
+ ("SNMPv2-MIB", "snmpInTotalReqVars"), ("SNMPv2-MIB", "snmpInTotalSetVars"), ("SNMPv2-MIB", "snmpInGetRequests"),
+ ("SNMPv2-MIB", "snmpInGetNexts"), ("SNMPv2-MIB", "snmpInSetRequests"), ("SNMPv2-MIB", "snmpInGetResponses"),
+ ("SNMPv2-MIB", "snmpInTraps"), ("SNMPv2-MIB", "snmpOutTooBigs"), ("SNMPv2-MIB", "snmpOutNoSuchNames"),
+ ("SNMPv2-MIB", "snmpOutBadValues"), ("SNMPv2-MIB", "snmpOutGenErrs"), ("SNMPv2-MIB", "snmpOutGetRequests"),
+ ("SNMPv2-MIB", "snmpOutGetNexts"), ("SNMPv2-MIB", "snmpOutSetRequests"), ("SNMPv2-MIB", "snmpOutGetResponses"),
+ ("SNMPv2-MIB", "snmpOutTraps"))
+)
+if mibBuilder.loadTexts:
+ snmpObsoleteGroup.setDescription(
+ 'A collection of objects from RFC 1213 made obsolete\n by this MIB module.')
+mibBuilder.exportSymbols("SNMPv2-MIB", snmpMIBGroups=snmpMIBGroups, snmpSetGroup=snmpSetGroup, snmpInTraps=snmpInTraps,
+ sysOREntry=sysOREntry, snmpOutPkts=snmpOutPkts, snmpInTotalSetVars=snmpInTotalSetVars,
+ snmpInGetNexts=snmpInGetNexts, sysLocation=sysLocation,
+ snmpBasicNotificationsGroup=snmpBasicNotificationsGroup, snmpOutTooBigs=snmpOutTooBigs,
+ systemGroup=systemGroup, snmpMIB=snmpMIB, snmpInSetRequests=snmpInSetRequests,
+ snmpInBadVersions=snmpInBadVersions, snmpTrapEnterprise=snmpTrapEnterprise, sysName=sysName,
+ snmpTrapOID=snmpTrapOID, snmpOutNoSuchNames=snmpOutNoSuchNames,
+ snmpInReadOnlys=snmpInReadOnlys, snmpOutGetResponses=snmpOutGetResponses,
+ snmpWarmStartNotificationGroup=snmpWarmStartNotificationGroup, warmStart=warmStart,
+ sysUpTime=sysUpTime, snmpCommunityGroup=snmpCommunityGroup,
+ snmpInTotalReqVars=snmpInTotalReqVars, sysORLastChange=sysORLastChange,
+ snmpOutGetNexts=snmpOutGetNexts, snmpOutGetRequests=snmpOutGetRequests,
+ snmpInBadCommunityUses=snmpInBadCommunityUses, snmpMIBCompliances=snmpMIBCompliances,
+ snmpTrap=snmpTrap, PYSNMP_MODULE_ID=snmpMIB, coldStart=coldStart,
+ authenticationFailure=authenticationFailure, snmpInGenErrs=snmpInGenErrs,
+ snmpInGetRequests=snmpInGetRequests, snmpOutTraps=snmpOutTraps, snmpOutGenErrs=snmpOutGenErrs,
+ snmpProxyDrops=snmpProxyDrops, snmpSet=snmpSet, snmpMIBObjects=snmpMIBObjects,
+ sysContact=sysContact, snmpOutBadValues=snmpOutBadValues, sysServices=sysServices,
+ snmpTraps=snmpTraps, sysObjectID=sysObjectID, snmpOutSetRequests=snmpOutSetRequests,
+ snmpInNoSuchNames=snmpInNoSuchNames, snmpObsoleteGroup=snmpObsoleteGroup, sysDescr=sysDescr,
+ snmpMIBConformance=snmpMIBConformance, snmpInPkts=snmpInPkts, snmpGroup=snmpGroup,
+ snmpBasicCompliance=snmpBasicCompliance, snmpInBadCommunityNames=snmpInBadCommunityNames,
+ system=system, sysORUpTime=sysORUpTime, snmpBasicComplianceRev2=snmpBasicComplianceRev2,
+ sysORTable=sysORTable, snmpInBadValues=snmpInBadValues, sysORDescr=sysORDescr,
+ sysORIndex=sysORIndex, snmpSetSerialNo=snmpSetSerialNo, sysORID=sysORID,
+ snmpInGetResponses=snmpInGetResponses, snmp=snmp, snmpInTooBigs=snmpInTooBigs,
+ snmpInASNParseErrs=snmpInASNParseErrs, snmpEnableAuthenTraps=snmpEnableAuthenTraps,
+ snmpNotificationGroup=snmpNotificationGroup, snmpSilentDrops=snmpSilentDrops)
diff --git a/pysnmp/smi/mibs/SNMPv2-SMI.py b/pysnmp/smi/mibs/SNMPv2-SMI.py
index 08f84b82..39ae6fd9 100644
--- a/pysnmp/smi/mibs/SNMPv2-SMI.py
+++ b/pysnmp/smi/mibs/SNMPv2-SMI.py
@@ -18,9 +18,9 @@ Integer, ObjectIdentifier = mibBuilder.importSymbols(
(ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint,
ValueRangeConstraint, ValueSizeConstraint) = mibBuilder.importSymbols(
- "ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion",
- "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint"
- )
+ "ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion",
+ "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint"
+)
# syntax of objects
@@ -35,13 +35,16 @@ TimeTicks = rfc1902.TimeTicks
Opaque = rfc1902.Opaque
Counter64 = rfc1902.Counter64
+
class ExtUTCTime(OctetString):
- subtypeSpec = OctetString.subtypeSpec+ConstraintsUnion(ValueSizeConstraint(11, 11), ValueSizeConstraint(13, 13))
+ subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(11, 11), ValueSizeConstraint(13, 13))
+
# MIB tree foundation class
class MibNode:
label = ''
+
def __init__(self, name):
self.name = name
@@ -66,139 +69,162 @@ class MibNode:
myClone.label = self.label
return myClone
+
# definitions for information modules
class ModuleIdentity(MibNode):
+ lastUpdated = ''
+ organization = ''
+ contactInfo = ''
+ description = ''
+ revisions = ()
+
def getLastUpdated(self):
- return getattr(self, 'lastUpdated', '')
+ return self.lastUpdated
def setLastUpdated(self, v):
self.lastUpdated = v
return self
def getOrganization(self):
- return getattr(self, 'organization', '')
+ return self.organization
def setOrganization(self, v):
self.organization = v
return self
def getContactInfo(self):
- return getattr(self, 'contactInfo', '')
+ return self.contactInfo
def setContactInfo(self, v):
self.contactInfo = v
return self
def getDescription(self):
- return getattr(self, 'description', '')
+ return self.description
def setDescription(self, v):
self.description = v
return self
def getRevisions(self):
- return getattr(self, 'revisions', ())
+ return self.revisions
def setRevisions(self, args):
self.revisions = args
return self
def asn1Print(self):
- return '\
-MODULE-IDENTITY\n\
- LAST-UPDATED %s\n\
- ORGANIZATION \"%s\"\n\
- CONTACT-INFO \"%s\"\n\
- DESCRIPTION \"%s\"\n\
- %s\
-' % (self.getLastUpdated(),
- self.getOrganization(),
- self.getContactInfo(),
- self.getDescription(),
- ''.join(["REVISION \"%s\"\n" % x for x in self.getRevisions()]))
+ return """\
+MODULE-IDENTITY
+ LAST-UPDATED %s
+ ORGANIZATION "%s"
+ CONTACT-INFO "%s"
+ DESCRIPTION "%s"
+ %s""" % (self.getLastUpdated(),
+ self.getOrganization(),
+ self.getContactInfo(),
+ self.getDescription(),
+ ''.join(["REVISION \"%s\"\n" % x for x in self.getRevisions()]))
+
class ObjectIdentity(MibNode):
+ status = 'current'
+ description = ''
+ reference = ''
+
def getStatus(self):
- return getattr(self, 'status', 'current')
+ return self.status
def setStatus(self, v):
self.status = v
return self
def getDescription(self):
- return getattr(self, 'description', '')
+ return self.description
def setDescription(self, v):
self.description = v
return self
def getReference(self):
- return getattr(self, 'reference', '')
+ return self.reference
def setReference(self, v):
self.reference = v
return self
def asn1Print(self):
- return '\
-OBJECT-IDENTITY\n\
- STATUS %s\n\
- DESCRIPTION \"%s\"\n\
- REFERENCE \"%s\"\
-' % (self.getStatus(),
- self.getDescription(),
- self.getReference())
+ return """\
+OBJECT-IDENTITY
+ STATUS %s
+ DESCRIPTION "%s"
+ REFERENCE "%s" """ % (self.getStatus(),
+ self.getDescription(),
+ self.getReference())
+
# definition for objects
class NotificationType(MibNode):
+ objects = ()
+ status = 'current'
+ description = ''
+ revisions = ()
+
def getObjects(self):
- return getattr(self, 'objects', ())
+ return self.objects
def setObjects(self, *args):
self.objects = args
return self
def getStatus(self):
- return getattr(self, 'status', 'current')
+ return self.status
def setStatus(self, v):
self.status = v
return self
def getDescription(self):
- return getattr(self, 'description', '')
+ return self.description
def setDescription(self, v):
self.description = v
return self
def getRevisions(self):
- return getattr(self, 'revisions', ())
+ return self.revisions
def setRevisions(self, args):
self.revisions = args
return self
def asn1Print(self):
- return '\
-NOTIFICATION-TYPE\n\
- OBJECTS { %s }\n\
- STATUS %s\n\
- DESCRIPTION \"%s\"\n\
- %s\
-' % (', '.join([x for x in self.getObjects()]),
- self.getStatus(),
- self.getDescription(),
- ''.join(["REVISION \"%s\"\n" % x for x in self.getRevisions()]))
+ return """\
+NOTIFICATION-TYPE
+ OBJECTS { %s }
+ STATUS %s
+ DESCRIPTION "%s"
+ %s""" % (', '.join([x for x in self.getObjects()]),
+ self.getStatus(),
+ self.getDescription(),
+ ''.join(["REVISION \"%s\"\n" % x for x in self.getRevisions()]))
+
class MibIdentifier(MibNode):
- def asn1Print(self):
+ @staticmethod
+ def asn1Print():
return 'OBJECT IDENTIFIER'
+
class ObjectType(MibNode):
- maxAccess = None
+ units = ''
+ maxAccess = 'not-accessible'
+ status = 'current'
+ description = ''
+ reference = ''
+
def __init__(self, name, syntax=None):
MibNode.__init__(self, name)
self.syntax = syntax
@@ -235,59 +261,60 @@ class ObjectType(MibNode):
return self
def getUnits(self):
- return getattr(self, 'units', '')
+ return self.units
def setUnits(self, v):
self.units = v
return self
def getMaxAccess(self):
- return getattr(self, 'maxAccess', 'not-accessible')
+ return self.maxAccess
def setMaxAccess(self, v):
self.maxAccess = v
return self
def getStatus(self):
- return getattr(self, 'status', 'current')
+ return self.status
def setStatus(self, v):
self.status = v
return self
def getDescription(self):
- return getattr(self, 'description', '')
+ return self.description
def setDescription(self, v):
self.description = v
return self
def getReference(self):
- return getattr(self, 'reference', '')
+ return self.reference
def setReference(self, v):
self.reference = v
return self
def asn1Print(self):
- return '\
-OBJECT-TYPE\n\
- SYNTAX %s\n\
- UNITS \"%s\"\n\
- MAX-ACCESS %s\n\
- STATUS %s\n\
- DESCRIPTION \"%s\"\n\
- REFERENCE \"%s\"\
-' % (self.getSyntax().__class__.__name__,
- self.getUnits(),
- self.getMaxAccess(),
- self.getStatus(),
- self.getDescription(),
- self.getReference())
+ return """
+OBJECT-TYPE
+ SYNTAX %s
+ UNITS "%s"
+ MAX-ACCESS %s
+ STATUS %s
+ DESCRIPTION "%s"
+ REFERENCE "%s" """ % (self.getSyntax().__class__.__name__,
+ self.getUnits(),
+ self.getMaxAccess(),
+ self.getStatus(),
+ self.getDescription(),
+ self.getReference())
+
class MibTree(ObjectType):
- branchVersionId = 0 # cnanges on tree structure change
+ branchVersionId = 0 # cnanges on tree structure change
maxAccess = 'not-accessible'
+
def __init__(self, name, syntax=None):
ObjectType.__init__(self, name, syntax)
self._vars = OidOrderedDict()
@@ -299,8 +326,8 @@ class MibTree(ObjectType):
for subTree in subTrees:
if subTree.name in self._vars:
raise error.SmiError(
- 'MIB subtree %s already registered at %s' % (subTree.name, self)
- )
+ 'MIB subtree %s already registered at %s' % (subTree.name, self)
+ )
self._vars[subTree.name] = subTree
def unregisterSubtrees(self, *names):
@@ -309,9 +336,9 @@ class MibTree(ObjectType):
# This may fail if you fill a table by exporting MibScalarInstances
# but later drop them through SNMP.
if name not in self._vars:
- raise error.SmiError(
- 'MIB subtree %s not registered at %s' % (name, self)
- )
+ raise error.SmiError(
+ 'MIB subtree %s not registered at %s' % (name, self)
+ )
del self._vars[name]
#
@@ -335,6 +362,8 @@ class MibTree(ObjectType):
# Start from the beginning
if self._vars:
first = list(self._vars.keys())[0]
+ else:
+ first = ()
if self._vars and name < first:
return self._vars[first]
else:
@@ -375,13 +404,13 @@ class MibTree(ObjectType):
if acFun:
if self.maxAccess not in ('readonly',
'readwrite', 'readcreate') or \
- acFun(name, self.syntax, idx, 'read', acCtx):
+ acFun(name, self.syntax, idx, 'read', acCtx):
raise error.NoAccessError(idx=idx, name=name)
else:
try:
node = self.getBranch(name, idx)
except (error.NoSuchInstanceError, error.NoSuchObjectError):
- return # missing object is not an error here
+ return # missing object is not an error here
else:
node.readTest(name, val, idx, acInfo)
@@ -463,7 +492,7 @@ class MibTree(ObjectType):
# Make sure variable is writable
if acFun:
if self.maxAccess not in ('readwrite', 'readcreate') or \
- acFun(name, self.syntax, idx, 'write', acCtx):
+ acFun(name, self.syntax, idx, 'write', acCtx):
raise error.NotWritableError(idx=idx, name=name)
else:
node = self.getBranch(name, idx)
@@ -479,6 +508,7 @@ class MibTree(ObjectType):
def writeUndo(self, name, val, idx, acInfo):
self.getBranch(name, idx).writeUndo(name, val, idx, acInfo)
+
class MibScalar(MibTree):
"""Scalar MIB variable. Implements access control checking."""
maxAccess = 'readonly'
@@ -565,12 +595,14 @@ class MibScalar(MibTree):
raise error.NoAccessError(idx=idx, name=name)
if acFun:
if self.maxAccess not in ('readwrite', 'readcreate') or \
- acFun(name, self.syntax, idx, 'write', acCtx):
+ acFun(name, self.syntax, idx, 'write', acCtx):
raise error.NotWritableError(idx=idx, name=name)
MibTree.writeTest(self, name, val, idx, acInfo)
+
class MibScalarInstance(MibTree):
"""Scalar MIB variable instance. Implements read/write operations."""
+
def __init__(self, typeName, instId, syntax):
MibTree.__init__(self, typeName + instId, syntax)
self.typeName = typeName
@@ -581,6 +613,7 @@ class MibScalarInstance(MibTree):
# Managed object value access methods
#
+ # noinspection PyUnusedLocal
def getValue(self, name, idx):
debug.logger & debug.flagIns and debug.logger('getValue: returning %r for %s' % (self.syntax, self.name))
return self.syntax.clone()
@@ -593,7 +626,8 @@ class MibScalarInstance(MibTree):
return self.syntax.clone(value)
except PyAsn1Error:
exc_t, exc_v, exc_tb = sys.exc_info()
- debug.logger & debug.flagIns and debug.logger('setValue: %s=%r failed with traceback %s' % (self.name, value, traceback.format_exception(exc_t, exc_v, exc_tb)))
+ debug.logger & debug.flagIns and debug.logger('setValue: %s=%r failed with traceback %s' % (
+ self.name, value, traceback.format_exception(exc_t, exc_v, exc_tb)))
if isinstance(exc_v, error.TableRowManagement):
raise exc_v
else:
@@ -655,6 +689,7 @@ class MibScalarInstance(MibTree):
# Write operation: two-phase commit
+ # noinspection PyAttributeOutsideInit
def writeTest(self, name, val, idx, acInfo):
# Make sure write's allowed
if name == self.name:
@@ -678,12 +713,14 @@ class MibScalarInstance(MibTree):
# Commit new value
self.syntax = self.__newSyntax
+ # noinspection PyAttributeOutsideInit
def writeCleanup(self, name, val, idx, acInfo):
self.branchVersionId += 1
debug.logger & debug.flagIns and debug.logger('writeCleanup: %s=%r' % (name, val))
# Drop previous value
self.__newSyntax = self.__oldSyntax = None
+ # noinspection PyAttributeOutsideInit
def writeUndo(self, name, val, idx, acInfo):
# Revive previous value
self.syntax = self.__oldSyntax
@@ -693,6 +730,7 @@ class MibScalarInstance(MibTree):
# Create operation
+ # noinspection PyUnusedLocal,PyAttributeOutsideInit
def createTest(self, name, val, idx, acInfo):
if name == self.name:
try:
@@ -723,6 +761,7 @@ class MibScalarInstance(MibTree):
# Destroy operation
+ # noinspection PyUnusedLocal,PyAttributeOutsideInit
def destroyTest(self, name, val, idx, acInfo):
if name == self.name:
try:
@@ -734,20 +773,24 @@ class MibScalarInstance(MibTree):
self.__newSyntax = why['syntax']
else:
raise error.NoSuchInstanceError(idx=idx, name=name)
+
def destroyCommit(self, name, val, idx, acInfo):
pass
+ # noinspection PyUnusedLocal
def destroyCleanup(self, name, val, idx, acInfo):
self.branchVersionId += 1
def destroyUndo(self, name, val, idx, acInfo):
pass
+
# Conceptual table classes
class MibTableColumn(MibScalar):
"""MIB table column. Manages a set of column instance variables"""
protoInstance = MibScalarInstance
+
def __init__(self, name, syntax):
MibScalar.__init__(self, name, syntax)
self.__createdInstances = {}
@@ -780,8 +823,9 @@ class MibTableColumn(MibScalar):
raise error.NoAccessError(idx=idx, name=name)
if acFun:
if val is not None and self.maxAccess != 'readcreate' or \
- acFun(name, self.syntax, idx, 'write', acCtx):
- debug.logger & debug.flagACL and debug.logger('createTest: %s=%r %s at %s' % (name, val, self.maxAccess, self.name))
+ acFun(name, self.syntax, idx, 'write', acCtx):
+ debug.logger & debug.flagACL and debug.logger(
+ 'createTest: %s=%r %s at %s' % (name, val, self.maxAccess, self.name))
raise error.NoCreationError(idx=idx, name=name)
# Create instances if either it does not yet exist (row creation)
# or a value is passed (multiple OIDs in SET PDU)
@@ -794,14 +838,14 @@ class MibTableColumn(MibScalar):
def createCommit(self, name, val, idx, acInfo):
# Commit new instance value
- if name in self._vars: # XXX
+ if name in self._vars: # XXX
if name in self.__createdInstances:
self._vars[name].createCommit(name, val, idx, acInfo)
return
self.__createdInstances[name].createCommit(name, val, idx, acInfo)
# ...commit new column instance
self._vars[name], self.__createdInstances[name] = \
- self.__createdInstances[name], self._vars.get(name)
+ self.__createdInstances[name], self._vars.get(name)
def createCleanup(self, name, val, idx, acInfo):
# Drop previous column instance
@@ -842,7 +886,7 @@ class MibTableColumn(MibScalar):
return
if acFun:
if val is not None and self.maxAccess != 'readcreate' or \
- acFun(name, self.syntax, idx, 'write', acCtx):
+ acFun(name, self.syntax, idx, 'write', acCtx):
raise error.NoAccessError(idx=idx, name=name)
self._vars[name].destroyTest(name, val, idx, acInfo)
@@ -888,17 +932,18 @@ class MibTableColumn(MibScalar):
self.__rowOpWanted[name] = error.RowDestructionWanted()
self.destroyTest(name, val, idx, acInfo)
if name in self.__rowOpWanted:
- debug.logger & debug.flagIns and debug.logger('%s flagged by %s=%r, exception %s' % (self.__rowOpWanted[name], name, val, sys.exc_info()[1]))
+ debug.logger & debug.flagIns and debug.logger(
+ '%s flagged by %s=%r, exception %s' % (self.__rowOpWanted[name], name, val, sys.exc_info()[1]))
raise self.__rowOpWanted[name]
def __delegateWrite(self, subAction, name, val, idx, acInfo):
if name not in self.__rowOpWanted:
- getattr(MibScalar, 'write'+subAction)(self, name, val, idx, acInfo)
+ getattr(MibScalar, 'write' + subAction)(self, name, val, idx, acInfo)
return
if isinstance(self.__rowOpWanted[name], error.RowCreationWanted):
- getattr(self, 'create'+subAction)(name, val, idx, acInfo)
+ getattr(self, 'create' + subAction)(name, val, idx, acInfo)
if isinstance(self.__rowOpWanted[name], error.RowDestructionWanted):
- getattr(self, 'destroy'+subAction)(name, val, idx, acInfo)
+ getattr(self, 'destroy' + subAction)(name, val, idx, acInfo)
def writeCommit(self, name, val, idx, acInfo):
self.__delegateWrite('Commit', name, val, idx, acInfo)
@@ -924,10 +969,12 @@ class MibTableColumn(MibScalar):
debug.logger & debug.flagIns and debug.logger('%s dropped by %s=%r' % (e, name, val))
raise e
+
class MibTableRow(MibTree):
"""MIB table row (SMI 'Entry'). Manages a set of table columns.
Implements row creation/destruction.
"""
+
def __init__(self, name):
MibTree.__init__(self, name)
self.__idToIdxCache = cache.Cache()
@@ -963,21 +1010,22 @@ class MibTableRow(MibTree):
l = obj.getFixedLength()
return obj.clone(value[:l]), value[l:]
else:
- return obj.clone(value[1:value[0]+1]), value[value[0]+1:]
+ return obj.clone(value[1:value[0] + 1]), value[value[0] + 1:]
elif baseTag == self.__oidBaseTag:
if impliedFlag:
return obj.clone(value), ()
else:
- return obj.clone(value[1:value[0]+1]), value[value[0]+1:]
+ return obj.clone(value[1:value[0] + 1]), value[value[0] + 1:]
# rfc2578, 7.1
elif baseTag == self.__bitsBaseTag:
- return obj.clone(value[1:value[0]+1]), value[value[0]+1:]
+ return obj.clone(value[1:value[0] + 1]), value[value[0] + 1:]
else:
raise error.SmiError('Unknown value type for index %r' % (obj,))
def getAsName(self, obj, impliedFlag=None):
baseTag = obj.getTagSet().getBaseTag()
if baseTag == self.__intBaseTag:
+ # noinspection PyRedundantParentheses
return (int(obj),)
elif self.__ipaddrTagSet.isSuperTagSetOf(obj.getTagSet()):
return obj.asNumbers()
@@ -994,7 +1042,7 @@ class MibTableRow(MibTree):
return (len(self.name),) + tuple(obj)
# rfc2578, 7.1
elif baseTag == self.__bitsBaseTag:
- return (len(obj),) + obj.asNumbers()
+ return (len(obj),) + obj.asNumbers()
else:
raise error.SmiError('Unknown value type for index %r' % (obj,))
@@ -1002,7 +1050,7 @@ class MibTableRow(MibTree):
def announceManagementEvent(self, action, name, val, idx, acInfo):
# Convert OID suffix into index vals
- instId = name[len(self.name)+1:]
+ instId = name[len(self.name) + 1:]
baseIndices = []
for impliedFlag, modName, symName in self.indexNames:
mibObj, = mibBuilder.importSymbols(modName, symName)
@@ -1036,15 +1084,15 @@ class MibTableRow(MibTree):
newSuffix = newSuffix + self.getAsName(syntax, impliedFlag)
if newSuffix:
- debug.logger & debug.flagIns and debug.logger('receiveManagementEvent %s for suffix %s' % (action, newSuffix))
+ debug.logger & debug.flagIns and debug.logger(
+ 'receiveManagementEvent %s for suffix %s' % (action, newSuffix))
self.__manageColumns(action, (), newSuffix, val, idx, acInfo)
def registerAugmentions(self, *names):
for modName, symName in names:
if (modName, symName) in self.augmentingRows:
raise error.SmiError(
- 'Row %s already augmented by %s::%s' % \
- (self.name, modName, symName)
+ 'Row %s already augmented by %s::%s' % (self.name, modName, symName)
)
self.augmentingRows[(modName, symName)] = 1
return self
@@ -1078,24 +1126,25 @@ class MibTableRow(MibTree):
else:
getattr(var, action)(name + nameSuffix, val, idx, acInfo)
- debug.logger & debug.flagIns and debug.logger('__manageColumns: action %s name %s suffix %s %svalue %r' % (action, name, nameSuffix, name in indexVals and "index " or "", indexVals.get(name, val)))
+ debug.logger & debug.flagIns and debug.logger('__manageColumns: action %s name %s suffix %s %svalue %r' % (
+ action, name, nameSuffix, name in indexVals and "index " or "", indexVals.get(name, val)))
def __delegate(self, subAction, name, val, idx, acInfo):
# Relay operation request to column, expect row operation request.
rowIsActive = False
try:
- getattr(self.getBranch(name, idx), 'write'+subAction)(
+ getattr(self.getBranch(name, idx), 'write' + subAction)(
name, val, idx, acInfo
)
except error.RowCreationWanted:
self.__manageColumns(
- 'create'+subAction, name[:len(self.name)+1],
- name[len(self.name)+1:], None, idx, acInfo
+ 'create' + subAction, name[:len(self.name) + 1],
+ name[len(self.name) + 1:], None, idx, acInfo
)
self.announceManagementEvent(
- 'create'+subAction, name, None, idx, acInfo
+ 'create' + subAction, name, None, idx, acInfo
)
# watch for RowStatus == 'stActive'
@@ -1103,12 +1152,12 @@ class MibTableRow(MibTree):
except error.RowDestructionWanted:
self.__manageColumns(
- 'destroy'+subAction, name[:len(self.name)+1],
- name[len(self.name)+1:], None, idx, acInfo
+ 'destroy' + subAction, name[:len(self.name) + 1],
+ name[len(self.name) + 1:], None, idx, acInfo
)
self.announceManagementEvent(
- 'destroy'+subAction, name, None, idx, acInfo
+ 'destroy' + subAction, name, None, idx, acInfo
)
return rowIsActive
@@ -1120,7 +1169,7 @@ class MibTableRow(MibTree):
rowIsActive = self.__delegate('Commit', name, val, idx, acInfo)
if rowIsActive:
for mibNode in self._vars.values():
- colNode = mibNode.getNode(mibNode.name + name[len(self.name)+1:])
+ colNode = mibNode.getNode(mibNode.name + name[len(self.name) + 1:])
if not colNode.syntax.hasValue():
raise error.InconsistentValueError(msg='Row consistency check failed for %r' % colNode)
@@ -1148,7 +1197,7 @@ class MibTableRow(MibTree):
for impliedFlag, modName, symName in self.indexNames:
mibObj, = mibBuilder.importSymbols(modName, symName)
syntax, instId = self.setFromName(mibObj.syntax, instId, impliedFlag)
- indices.append(syntax) # to avoid cyclic refs
+ indices.append(syntax) # to avoid cyclic refs
if instId:
raise error.SmiError(
'Excessive instance identifier sub-OIDs left at %s: %s' %
@@ -1173,7 +1222,7 @@ class MibTableRow(MibTree):
)
else:
break
- idx = idx + 1
+ idx += 1
self.__idxToIdCache[indices] = instId
return instId
@@ -1193,11 +1242,14 @@ class MibTableRow(MibTree):
return tuple(instNames)
+
class MibTable(MibTree):
"""MIB table. Manages a set of TableRow's"""
+
def __init__(self, name):
MibTree.__init__(self, name)
+
zeroDotZero = ObjectIdentity((0, 0))
# OID tree
@@ -1218,8 +1270,8 @@ security = MibIdentifier(internet.name + (5,))
snmpV2 = MibIdentifier(internet.name + (6,))
snmpDomains = MibIdentifier(snmpV2.name + (1,))
-snmpProxys = MibIdentifier(snmpV2.name +(2,))
-snmpModules = MibIdentifier(snmpV2.name +(3,))
+snmpProxys = MibIdentifier(snmpV2.name + (2,))
+snmpModules = MibIdentifier(snmpV2.name + (3,))
mibBuilder.exportSymbols(
'SNMPv2-SMI', MibNode=MibNode,
diff --git a/pysnmp/smi/mibs/SNMPv2-TC.py b/pysnmp/smi/mibs/SNMPv2-TC.py
index 81f67f8d..8c7e3118 100644
--- a/pysnmp/smi/mibs/SNMPv2-TC.py
+++ b/pysnmp/smi/mibs/SNMPv2-TC.py
@@ -17,14 +17,15 @@ NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
(ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint,
ValueRangeConstraint, ValueSizeConstraint) = mibBuilder.importSymbols(
- "ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion",
- "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint"
- )
+ "ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion",
+ "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint"
+)
Counter32, Unsigned32, TimeTicks, Counter64 = mibBuilder.importSymbols(
'SNMPv2-SMI', 'Counter32', 'Unsigned32', 'TimeTicks', 'Counter64'
)
+
class TextualConvention:
displayHint = ''
status = 'current'
@@ -38,6 +39,7 @@ class TextualConvention:
__counter64 = Counter64()
__octetString = OctetString()
__objectIdentifier = ObjectIdentifier()
+
def getDisplayHint(self):
return self.displayHint
@@ -69,7 +71,7 @@ class TextualConvention:
return '0x%x' % value
elif t == 'd':
try:
- return '%.*f' % (int(f), float(value)/pow(10, int(f)))
+ return '%.*f' % (int(f), float(value) / pow(10, int(f)))
except Exception:
raise SmiError(
'float num evaluation error: %s' % sys.exc_info()[1]
@@ -80,13 +82,13 @@ class TextualConvention:
v = value
r = ['B']
while v:
- r.insert(0, '%d' % (v&0x01))
- v = v>>1
+ r.insert(0, '%d' % (v & 0x01))
+ v >>= 1
return ''.join(r)
else:
raise SmiError(
'Unsupported numeric type spec: %s' % t
- )
+ )
elif self.displayHint and self.__octetString.isSuperTypeOf(self):
r = ''
v = self.__class__(value).asOctets()
@@ -145,7 +147,7 @@ class TextualConvention:
n = 0
vv = v[:octetLength]
while vv:
- n = n << 8
+ n <<= 8
try:
n |= octets.oct2int(vv[0])
vv = vv[1:]
@@ -162,7 +164,7 @@ class TextualConvention:
r += '%d' % n
else:
raise SmiError(
- 'Unsupported display format char: %s' % \
+ 'Unsupported display format char: %s' %
displayFormat
)
if v and repeatTerminator:
@@ -172,10 +174,10 @@ class TextualConvention:
r += displaySep
if not d:
d = self.displayHint
-# if d:
-# raise SmiError(
-# 'Unparsed display hint left: %s' % d
-# )
+ # if d:
+ # raise SmiError(
+ # 'Unparsed display hint left: %s' % d
+ # )
return r
elif self.__objectIdentifier.isSuperTypeOf(self):
return self.__objectIdentifier.prettyOut(value)
@@ -184,7 +186,8 @@ class TextualConvention:
else:
return str(value)
-# elif self.bits:
+
+# elif self.bits:
# try:
# return self.bits[value]
# except Exception:
@@ -198,57 +201,69 @@ class TextualConvention:
# return str(value)
class DisplayString(TextualConvention, OctetString):
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(0,255)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255)
displayHint = "255a"
+
class PhysAddress(TextualConvention, OctetString):
displayHint = "1x:"
+
class MacAddress(TextualConvention, OctetString):
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(6,6)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6)
displayHint = "1x:"
fixedLength = 6
+
class TruthValue(Integer, TextualConvention):
- subtypeSpec = Integer.subtypeSpec+SingleValueConstraint(1, 2)
+ subtypeSpec = Integer.subtypeSpec + SingleValueConstraint(1, 2)
namedValues = NamedValues(('true', 1), ('false', 2))
+
class TestAndIncr(Integer, TextualConvention):
- subtypeSpec = Integer.subtypeSpec+ValueRangeConstraint(0, 2147483647)
+ subtypeSpec = Integer.subtypeSpec + ValueRangeConstraint(0, 2147483647)
defaultValue = 0
+
def setValue(self, value):
if value is not None:
if value != self:
raise InconsistentValueError()
- value = value + 1
+ value += 1
if value > 2147483646:
value = 0
return self.clone(self, value)
+
class AutonomousType(ObjectIdentifier, TextualConvention):
pass
+
class InstancePointer(ObjectIdentifier, TextualConvention):
status = 'obsolete'
+
class VariablePointer(ObjectIdentifier, TextualConvention):
pass
+
class RowPointer(ObjectIdentifier, TextualConvention):
pass
+
class RowStatus(Integer, TextualConvention):
"""A special kind of scalar MIB variable responsible for
MIB table row creation/destruction.
"""
- subtypeSpec = Integer.subtypeSpec+SingleValueConstraint(0, 1, 2, 3, 4, 5, 6)
+ subtypeSpec = Integer.subtypeSpec + SingleValueConstraint(0, 1, 2, 3, 4, 5, 6)
namedValues = NamedValues(
('notExists', 0), ('active', 1), ('notInService', 2), ('notReady', 3),
('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)
)
# Known row states
- stNotExists, stActive, stNotInService, stNotReady, \
- stCreateAndGo, stCreateAndWait, stDestroy = list(range(7))
+ (stNotExists, stActive, stNotInService,
+ stNotReady, stCreateAndGo, stCreateAndWait,
+ stDestroy) = list(range(7))
+
# States transition matrix (see RFC-1903)
stateMatrix = {
# (new-state, current-state) -> (error, new-state)
@@ -292,38 +307,48 @@ class RowStatus(Integer, TextualConvention):
)
newState = self.clone(newState)
- debug.logger & debug.flagIns and debug.logger('RowStatus state change from %r to %r produced new state %r, error indication %r' % (self, value, newState, excValue))
+ debug.logger & debug.flagIns and debug.logger(
+ 'RowStatus state change from %r to %r produced new state %r, error indication %r' % (
+ self, value, newState, excValue))
if excValue is not None:
excValue = excValue(
- msg='Exception at row state transition from %r to %r yields state %r and exception' % (self, value, newState), syntax=newState
+ msg='Exception at row state transition from %r to %r yields state %r and exception' % (
+ self, value, newState), syntax=newState
)
raise excValue
return newState
+
class TimeStamp(TimeTicks, TextualConvention):
pass
+
class TimeInterval(Integer, TextualConvention):
- subtypeSpec = Integer.subtypeSpec+ValueRangeConstraint(0, 2147483647)
+ subtypeSpec = Integer.subtypeSpec + ValueRangeConstraint(0, 2147483647)
+
class DateAndTime(TextualConvention, OctetString):
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(8, 11)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 11)
displayHint = "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
+
class StorageType(Integer, TextualConvention):
- subtypeSpec = Integer.subtypeSpec+SingleValueConstraint(1, 2, 3, 4, 5)
+ subtypeSpec = Integer.subtypeSpec + SingleValueConstraint(1, 2, 3, 4, 5)
namedValues = NamedValues(
('other', 1), ('volatile', 2), ('nonVolatile', 3),
('permanent', 4), ('readOnly', 5)
)
+
class TDomain(ObjectIdentifier, TextualConvention):
pass
+
class TAddress(OctetString, TextualConvention):
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(1, 255)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 255)
+
mibBuilder.exportSymbols(
'SNMPv2-TC', TextualConvention=TextualConvention,
diff --git a/pysnmp/smi/mibs/SNMPv2-TM.py b/pysnmp/smi/mibs/SNMPv2-TM.py
index 3c5cf6a4..fd00d6c4 100644
--- a/pysnmp/smi/mibs/SNMPv2-TM.py
+++ b/pysnmp/smi/mibs/SNMPv2-TM.py
@@ -8,20 +8,25 @@ try:
from socket import inet_ntop, inet_pton, AF_INET
except ImportError:
from socket import inet_ntoa, inet_aton, AF_INET
+
inet_ntop = lambda x, y: inet_ntoa(y)
inet_pton = lambda x, y: inet_aton(y)
from pyasn1.compat.octets import int2oct, oct2int
(OctetString,) = mibBuilder.importSymbols('ASN1', 'OctetString')
-(ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint")
-(ModuleIdentity, MibIdentifier, ObjectIdentity, snmpModules, snmpDomains, snmpProxys) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'MibIdentifier', 'ObjectIdentity', 'snmpModules', 'snmpDomains', 'snmpProxys')
+(ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint,
+ ValueSizeConstraint) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion",
+ "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint")
+(ModuleIdentity, MibIdentifier, ObjectIdentity, snmpModules, snmpDomains, snmpProxys) = mibBuilder.importSymbols(
+ 'SNMPv2-SMI', 'ModuleIdentity', 'MibIdentifier', 'ObjectIdentity', 'snmpModules', 'snmpDomains', 'snmpProxys')
(TextualConvention,) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention')
snmpv2tm = ModuleIdentity(snmpModules.name + (19,)).setRevisions(("2002-10-16 00:00",))
snmpUDPDomain = ObjectIdentity(snmpDomains.name + (1,))
+
class SnmpUDPAddress(TextualConvention, OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6)
displayHint = "1d.1d.1d.1d/2d"
@@ -29,9 +34,7 @@ class SnmpUDPAddress(TextualConvention, OctetString):
def prettyIn(self, value):
if isinstance(value, tuple):
# Wild hack -- need to implement TextualConvention.prettyIn
- value = inet_pton(AF_INET, value[0]) + \
- int2oct((value[1] >> 8) & 0xff) + \
- int2oct(value[1] & 0xff)
+ value = inet_pton(AF_INET, value[0]) + int2oct((value[1] >> 8) & 0xff) + int2oct(value[1] & 0xff)
return OctetString.prettyIn(self, value)
# Socket address syntax coercion
@@ -43,25 +46,32 @@ class SnmpUDPAddress(TextualConvention, OctetString):
oct2int(v[4]) << 8 | oct2int(v[5])
)
return self.__tuple_value[i]
-
+
+
snmpCLNSDomain = ObjectIdentity(snmpDomains.name + (2,))
snmpCONSDomain = ObjectIdentity(snmpDomains.name + (3,))
+
class SnmpOSIAddress(TextualConvention, OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 85)
displayHint = "*1x:/1x:"
-
+
+
snmpDDPDomain = ObjectIdentity(snmpDomains.name + (4,))
+
class SnmpNBPAddress(OctetString, TextualConvention):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(3, 99)
-
+
+
snmpIPXDomain = ObjectIdentity(snmpDomains.name + (5,))
+
class SnmpIPXAddress(TextualConvention, OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(12, 12)
displayHint = "4x.1x:1x:1x:1x:1x:1x.2d"
+
rfc1157Proxy = MibIdentifier(snmpProxys.name + (1,))
rfc1157Domain = MibIdentifier(rfc1157Proxy.name + (1,))
@@ -76,4 +86,4 @@ mibBuilder.exportSymbols(
SnmpNBPAddress=SnmpNBPAddress, snmpIPXDomain=snmpIPXDomain,
SnmpIPXAddress=SnmpIPXAddress, rfc1157Proxy=rfc1157Proxy,
rfc1157Domain=rfc1157Domain
- )
+)
diff --git a/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py b/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
index d792ca87..f9aafc4e 100644
--- a/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
+++ b/pysnmp/smi/mibs/TRANSPORT-ADDRESS-MIB.py
@@ -10,12 +10,6 @@
# On host grommit.local platform Darwin version 14.4.0 by user ilya
# Using Python version 2.7.6 (default, Sep 9 2014, 15:04:36)
#
-( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
-( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-( ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
-( NotificationGroup, ModuleCompliance, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
-( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, mib_2, IpAddress, TimeTicks, Counter64, Unsigned32, iso, Gauge32, ModuleIdentity, ObjectIdentity, Bits, Counter32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "MibIdentifier", "mib-2", "IpAddress", "TimeTicks", "Counter64", "Unsigned32", "iso", "Gauge32", "ModuleIdentity", "ObjectIdentity", "Bits", "Counter32")
-( DisplayString, TextualConvention, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
#
# WARNING: some of the classes below are manually implemented
@@ -35,29 +29,31 @@ else:
if sys.platform != "win32":
from socket import inet_ntoa, inet_aton
- inet_ntop = lambda x,y: inet_ntoa(y)
- inet_pton = lambda x,y: inet_aton(y)
+
+ inet_ntop = lambda x, y: inet_ntoa(y)
+ inet_pton = lambda x, y: inet_aton(y)
has_ipv6 = False
elif has_ipv6:
- import struct # The case of old Python at old Windows
+ import struct # The case of old Python at old Windows
+
def inet_pton(address_family, ip_string):
if address_family == socket.AF_INET:
return inet_aton(ip_string)
elif address_family != socket.AF_INET6:
raise socket.error(
- 'Unknown address family %s' % (address_family,)
- )
+ 'Unknown address family %s' % (address_family,)
+ )
groups = ip_string.split(":")
spaces = groups.count('')
if '.' in groups[-1]:
- groups[-1:] = [ "%x" % (x) for x in struct.unpack("!HH", inet_aton(groups[-1])) ]
+ groups[-1:] = ["%x" % x for x in struct.unpack("!HH", inet_aton(groups[-1]))]
if spaces == 1:
idx = groups.index('')
- groups[idx:idx+1] = ['0'] * (8 - len(groups) + 1)
+ groups[idx:idx + 1] = ['0'] * (8 - len(groups) + 1)
elif spaces == 2:
zeros = ['0'] * (8 - len(groups) + 2)
if ip_string.startswith('::'):
@@ -66,7 +62,7 @@ else:
groups[-2:] = zeros
else:
raise socket.error(
- 'Invalid IPv6 address: "%s"' % (ip_string,)
+ 'Invalid IPv6 address: "%s"' % (ip_string,)
)
elif spaces == 3:
if ip_string != '::':
@@ -76,10 +72,10 @@ else:
return '\x00' * 16
elif spaces > 3:
raise socket.error(
- 'Invalid IPv6 address: "%s"' % (ip_string,)
+ 'Invalid IPv6 address: "%s"' % (ip_string,)
)
- groups = [ t for t in [ int(t, 16) for t in groups ] if t & 0xFFFF == t ]
+ groups = [t for t in [int(t, 16) for t in groups] if t & 0xFFFF == t]
if len(groups) != 8:
raise socket.error(
@@ -88,6 +84,7 @@ else:
return struct.pack('!8H', *groups)
+
def inet_ntop(address_family, packed_ip):
if address_family == socket.AF_INET:
return inet_ntop(packed_ip)
@@ -133,65 +130,128 @@ else:
return ':'.join([f(x) for x in groups])
+
+(Integer, ObjectIdentifier, OctetString,) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier",
+ "OctetString")
+(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
+(ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint,
+ ValueRangeConstraint,) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint",
+ "ConstraintsIntersection", "ValueSizeConstraint",
+ "ValueRangeConstraint")
+(NotificationGroup, ModuleCompliance,) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup",
+ "ModuleCompliance")
+(Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, MibIdentifier, mib_2, IpAddress,
+ TimeTicks, Counter64, Unsigned32, iso, Gauge32, ModuleIdentity, ObjectIdentity, Bits,
+ Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow",
+ "MibTableColumn", "NotificationType", "MibIdentifier", "mib-2", "IpAddress",
+ "TimeTicks", "Counter64", "Unsigned32", "iso", "Gauge32", "ModuleIdentity",
+ "ObjectIdentity", "Bits", "Counter32")
+(DisplayString, TextualConvention,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
+
transportAddressMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 100)).setRevisions(("2002-11-01 00:00",))
-if mibBuilder.loadTexts: transportAddressMIB.setLastUpdated('200211010000Z')
-if mibBuilder.loadTexts: transportAddressMIB.setOrganization('IETF Operations and Management Area')
-if mibBuilder.loadTexts: transportAddressMIB.setContactInfo('Juergen Schoenwaelder (Editor)\n TU Braunschweig\n Bueltenweg 74/75\n 38106 Braunschweig, Germany\n\n Phone: +49 531 391-3289\n EMail: schoenw@ibr.cs.tu-bs.de\n\n Send comments to <mibs@ops.ietf.org>.')
-if mibBuilder.loadTexts: transportAddressMIB.setDescription('This MIB module provides commonly used transport\n address definitions.\n\n Copyright (C) The Internet Society (2002). This version of\n this MIB module is part of RFC 3419; see the RFC itself for\n full legal notices.')
+if mibBuilder.loadTexts:
+ transportAddressMIB.setLastUpdated('200211010000Z')
+if mibBuilder.loadTexts:
+ transportAddressMIB.setOrganization('IETF Operations and Management Area')
+if mibBuilder.loadTexts:
+ transportAddressMIB.setContactInfo(
+ 'Juergen Schoenwaelder (Editor)\n TU Braunschweig\n Bueltenweg 74/75\n 38106 Braunschweig, Germany\n\n Phone: +49 531 391-3289\n EMail: schoenw@ibr.cs.tu-bs.de\n\n Send comments to <mibs@ops.ietf.org>.')
+if mibBuilder.loadTexts:
+ transportAddressMIB.setDescription(
+ 'This MIB module provides commonly used transport\n address definitions.\n\n Copyright (C) The Internet Society (2002). This version of\n this MIB module is part of RFC 3419; see the RFC itself for\n full legal notices.')
transportDomains = MibIdentifier((1, 3, 6, 1, 2, 1, 100, 1))
transportDomainUdpIpv4 = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 1))
-if mibBuilder.loadTexts: transportDomainUdpIpv4.setDescription('The UDP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4 for\n global IPv4 addresses.')
+if mibBuilder.loadTexts:
+ transportDomainUdpIpv4.setDescription(
+ 'The UDP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4 for\n global IPv4 addresses.')
transportDomainUdpIpv6 = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 2))
-if mibBuilder.loadTexts: transportDomainUdpIpv6.setDescription('The UDP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6 for\n global IPv6 addresses.')
+if mibBuilder.loadTexts:
+ transportDomainUdpIpv6.setDescription(
+ 'The UDP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6 for\n global IPv6 addresses.')
transportDomainUdpIpv4z = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 3))
-if mibBuilder.loadTexts: transportDomainUdpIpv4z.setDescription('The UDP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4z for\n scoped IPv4 addresses with a zone index.')
+if mibBuilder.loadTexts:
+ transportDomainUdpIpv4z.setDescription(
+ 'The UDP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4z for\n scoped IPv4 addresses with a zone index.')
transportDomainUdpIpv6z = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 4))
-if mibBuilder.loadTexts: transportDomainUdpIpv6z.setDescription('The UDP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6z for\n scoped IPv6 addresses with a zone index.')
+if mibBuilder.loadTexts:
+ transportDomainUdpIpv6z.setDescription(
+ 'The UDP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6z for\n scoped IPv6 addresses with a zone index.')
transportDomainTcpIpv4 = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 5))
-if mibBuilder.loadTexts: transportDomainTcpIpv4.setDescription('The TCP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4 for\n global IPv4 addresses.')
+if mibBuilder.loadTexts:
+ transportDomainTcpIpv4.setDescription(
+ 'The TCP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4 for\n global IPv4 addresses.')
transportDomainTcpIpv6 = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 6))
-if mibBuilder.loadTexts: transportDomainTcpIpv6.setDescription('The TCP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6 for\n global IPv6 addresses.')
+if mibBuilder.loadTexts:
+ transportDomainTcpIpv6.setDescription(
+ 'The TCP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6 for\n global IPv6 addresses.')
transportDomainTcpIpv4z = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 7))
-if mibBuilder.loadTexts: transportDomainTcpIpv4z.setDescription('The TCP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4z for\n scoped IPv4 addresses with a zone index.')
+if mibBuilder.loadTexts:
+ transportDomainTcpIpv4z.setDescription(
+ 'The TCP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4z for\n scoped IPv4 addresses with a zone index.')
transportDomainTcpIpv6z = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 8))
-if mibBuilder.loadTexts: transportDomainTcpIpv6z.setDescription('The TCP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6z for\n scoped IPv6 addresses with a zone index.')
+if mibBuilder.loadTexts:
+ transportDomainTcpIpv6z.setDescription(
+ 'The TCP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6z for\n scoped IPv6 addresses with a zone index.')
transportDomainSctpIpv4 = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 9))
-if mibBuilder.loadTexts: transportDomainSctpIpv4.setDescription('The SCTP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4 for\n global IPv4 addresses. This transport domain usually\n represents the primary address on multihomed SCTP\n endpoints.')
+if mibBuilder.loadTexts:
+ transportDomainSctpIpv4.setDescription(
+ 'The SCTP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4 for\n global IPv4 addresses. This transport domain usually\n represents the primary address on multihomed SCTP\n endpoints.')
transportDomainSctpIpv6 = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 10))
-if mibBuilder.loadTexts: transportDomainSctpIpv6.setDescription('The SCTP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6 for\n global IPv6 addresses. This transport domain usually\n represents the primary address on multihomed SCTP\n endpoints.')
+if mibBuilder.loadTexts:
+ transportDomainSctpIpv6.setDescription(
+ 'The SCTP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6 for\n global IPv6 addresses. This transport domain usually\n represents the primary address on multihomed SCTP\n endpoints.')
transportDomainSctpIpv4z = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 11))
-if mibBuilder.loadTexts: transportDomainSctpIpv4z.setDescription('The SCTP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4z for\n scoped IPv4 addresses with a zone index. This transport\n domain usually represents the primary address on\n multihomed SCTP endpoints.')
+if mibBuilder.loadTexts:
+ transportDomainSctpIpv4z.setDescription(
+ 'The SCTP over IPv4 transport domain. The corresponding\n transport address is of type TransportAddressIPv4z for\n scoped IPv4 addresses with a zone index. This transport\n domain usually represents the primary address on\n multihomed SCTP endpoints.')
transportDomainSctpIpv6z = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 12))
-if mibBuilder.loadTexts: transportDomainSctpIpv6z.setDescription('The SCTP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6z for\n scoped IPv6 addresses with a zone index. This transport\n domain usually represents the primary address on\n multihomed SCTP endpoints.')
+if mibBuilder.loadTexts:
+ transportDomainSctpIpv6z.setDescription(
+ 'The SCTP over IPv6 transport domain. The corresponding\n transport address is of type TransportAddressIPv6z for\n scoped IPv6 addresses with a zone index. This transport\n domain usually represents the primary address on\n multihomed SCTP endpoints.')
transportDomainLocal = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 13))
-if mibBuilder.loadTexts: transportDomainLocal.setDescription('The Posix Local IPC transport domain. The corresponding\n transport address is of type TransportAddressLocal.\n\n The Posix Local IPC transport domain incorporates the\n well-known UNIX domain sockets.')
+if mibBuilder.loadTexts:
+ transportDomainLocal.setDescription(
+ 'The Posix Local IPC transport domain. The corresponding\n transport address is of type TransportAddressLocal.\n\n The Posix Local IPC transport domain incorporates the\n well-known UNIX domain sockets.')
transportDomainUdpDns = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 14))
-if mibBuilder.loadTexts: transportDomainUdpDns.setDescription('The UDP transport domain using fully qualified domain\n names. The corresponding transport address is of type\n TransportAddressDns.')
+if mibBuilder.loadTexts:
+ transportDomainUdpDns.setDescription(
+ 'The UDP transport domain using fully qualified domain\n names. The corresponding transport address is of type\n TransportAddressDns.')
transportDomainTcpDns = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 15))
-if mibBuilder.loadTexts: transportDomainTcpDns.setDescription('The TCP transport domain using fully qualified domain\n names. The corresponding transport address is of type\n TransportAddressDns.')
+if mibBuilder.loadTexts:
+ transportDomainTcpDns.setDescription(
+ 'The TCP transport domain using fully qualified domain\n names. The corresponding transport address is of type\n TransportAddressDns.')
transportDomainSctpDns = ObjectIdentity((1, 3, 6, 1, 2, 1, 100, 1, 16))
-if mibBuilder.loadTexts: transportDomainSctpDns.setDescription('The SCTP transport domain using fully qualified domain\n names. The corresponding transport address is of type\n TransportAddressDns.')
+if mibBuilder.loadTexts:
+ transportDomainSctpDns.setDescription(
+ 'The SCTP transport domain using fully qualified domain\n names. The corresponding transport address is of type\n TransportAddressDns.')
+
+
class TransportDomain(ObjectIdentifier, TextualConvention):
pass
+
class TransportAddressType(Integer32, TextualConvention):
- subtypeSpec = Integer32.subtypeSpec+SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,)
- namedValues = NamedValues(("unknown", 0), ("udpIpv4", 1), ("udpIpv6", 2), ("udpIpv4z", 3), ("udpIpv6z", 4), ("tcpIpv4", 5), ("tcpIpv6", 6), ("tcpIpv4z", 7), ("tcpIpv6z", 8), ("sctpIpv4", 9), ("sctpIpv6", 10), ("sctpIpv4z", 11), ("sctpIpv6z", 12), ("local", 13), ("udpDns", 14), ("tcpDns", 15), ("sctpDns", 16),)
+ subtypeSpec = Integer32.subtypeSpec + SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 16, )
+ namedValues = NamedValues(("unknown", 0), ("udpIpv4", 1), ("udpIpv6", 2), ("udpIpv4z", 3), ("udpIpv6z", 4),
+ ("tcpIpv4", 5), ("tcpIpv6", 6), ("tcpIpv4z", 7), ("tcpIpv6z", 8), ("sctpIpv4", 9),
+ ("sctpIpv6", 10), ("sctpIpv4z", 11), ("sctpIpv6z", 12), ("local", 13), ("udpDns", 14),
+ ("tcpDns", 15), ("sctpDns", 16), )
+
class TransportAddress(OctetString, TextualConvention):
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(0,255)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255)
+
class TransportAddressIPv4(TextualConvention, OctetString):
displayHint = "1d.1d.1d.1d:2d"
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(6,6)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6)
fixedLength = 6
-
+
def prettyIn(self, value):
if isinstance(value, tuple):
# Wild hack -- need to implement TextualConvention.prettyIn
- value = inet_pton(socket.AF_INET, value[0]) + \
- int2oct((value[1] >> 8) & 0xff) + \
- int2oct(value[1] & 0xff)
+ value = inet_pton(socket.AF_INET, value[0]) + int2oct((value[1] >> 8) & 0xff) + int2oct(value[1] & 0xff)
return OctetString.prettyIn(self, value)
# Socket address syntax coercion
@@ -203,19 +263,18 @@ class TransportAddressIPv4(TextualConvention, OctetString):
oct2int(v[4]) << 8 | oct2int(v[5]),
)
return self.__tuple_value[i]
-
+
+
class TransportAddressIPv6(TextualConvention, OctetString):
displayHint = "0a[2x:2x:2x:2x:2x:2x:2x:2x]0a:2d"
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(18,18)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(18, 18)
fixedLength = 18
def prettyIn(self, value):
if not has_ipv6:
raise error.PySnmpError('IPv6 not supported by platform')
if isinstance(value, tuple):
- value = inet_pton(socket.AF_INET6, value[0]) + \
- int2oct((value[1] >> 8) & 0xff) + \
- int2oct(value[1] & 0xff)
+ value = inet_pton(socket.AF_INET6, value[0]) + int2oct((value[1] >> 8) & 0xff) + int2oct(value[1] & 0xff)
return OctetString.prettyIn(self, value)
# Socket address syntax coercion
@@ -231,22 +290,42 @@ class TransportAddressIPv6(TextualConvention, OctetString):
0) # scopeid
return self.__tuple_value[i]
+
class TransportAddressIPv4z(OctetString, TextualConvention):
displayHint = '1d.1d.1d.1d%4d:2d'
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(10,10)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(10, 10)
fixedLength = 10
+
class TransportAddressIPv6z(OctetString, TextualConvention):
displayHint = '0a[2x:2x:2x:2x:2x:2x:2x:2x%4d]0a:2d'
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(22,22)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(22, 22)
fixedLength = 22
+
class TransportAddressLocal(OctetString, TextualConvention):
displayHint = '1a'
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(1,255)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 255)
+
class TransportAddressDns(OctetString, TextualConvention):
displayHint = '1a'
- subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(1,255)
-
-mibBuilder.exportSymbols("TRANSPORT-ADDRESS-MIB", transportDomainTcpIpv4=transportDomainTcpIpv4, transportDomainTcpIpv6z=transportDomainTcpIpv6z, transportDomainLocal=transportDomainLocal, transportDomainSctpIpv4=transportDomainSctpIpv4, transportDomainTcpDns=transportDomainTcpDns, TransportAddressIPv6=TransportAddressIPv6, TransportAddressType=TransportAddressType, transportDomains=transportDomains, transportDomainUdpIpv6=transportDomainUdpIpv6, transportDomainUdpIpv6z=transportDomainUdpIpv6z, PYSNMP_MODULE_ID=transportAddressMIB, TransportAddressIPv4=TransportAddressIPv4, transportDomainSctpIpv6z=transportDomainSctpIpv6z, TransportDomain=TransportDomain, transportDomainUdpIpv4=transportDomainUdpIpv4, transportDomainTcpIpv4z=transportDomainTcpIpv4z, transportDomainSctpIpv4z=transportDomainSctpIpv4z, transportDomainSctpIpv6=transportDomainSctpIpv6, TransportAddressDns=TransportAddressDns, TransportAddress=TransportAddress, transportAddressMIB=transportAddressMIB, TransportAddressLocal=TransportAddressLocal, transportDomainUdpIpv4z=transportDomainUdpIpv4z, TransportAddressIPv6z=TransportAddressIPv6z, transportDomainTcpIpv6=transportDomainTcpIpv6, transportDomainUdpDns=transportDomainUdpDns, TransportAddressIPv4z=TransportAddressIPv4z, transportDomainSctpDns=transportDomainSctpDns)
+ subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 255)
+
+
+mibBuilder.exportSymbols("TRANSPORT-ADDRESS-MIB", transportDomainTcpIpv4=transportDomainTcpIpv4,
+ transportDomainTcpIpv6z=transportDomainTcpIpv6z, transportDomainLocal=transportDomainLocal,
+ transportDomainSctpIpv4=transportDomainSctpIpv4, transportDomainTcpDns=transportDomainTcpDns,
+ TransportAddressIPv6=TransportAddressIPv6, TransportAddressType=TransportAddressType,
+ transportDomains=transportDomains, transportDomainUdpIpv6=transportDomainUdpIpv6,
+ transportDomainUdpIpv6z=transportDomainUdpIpv6z, PYSNMP_MODULE_ID=transportAddressMIB,
+ TransportAddressIPv4=TransportAddressIPv4, transportDomainSctpIpv6z=transportDomainSctpIpv6z,
+ TransportDomain=TransportDomain, transportDomainUdpIpv4=transportDomainUdpIpv4,
+ transportDomainTcpIpv4z=transportDomainTcpIpv4z,
+ transportDomainSctpIpv4z=transportDomainSctpIpv4z,
+ transportDomainSctpIpv6=transportDomainSctpIpv6, TransportAddressDns=TransportAddressDns,
+ TransportAddress=TransportAddress, transportAddressMIB=transportAddressMIB,
+ TransportAddressLocal=TransportAddressLocal, transportDomainUdpIpv4z=transportDomainUdpIpv4z,
+ TransportAddressIPv6z=TransportAddressIPv6z, transportDomainTcpIpv6=transportDomainTcpIpv6,
+ transportDomainUdpDns=transportDomainUdpDns, TransportAddressIPv4z=TransportAddressIPv4z,
+ transportDomainSctpDns=transportDomainSctpDns)
diff --git a/pysnmp/smi/mibs/instances/__PYSNMP-USM-MIB.py b/pysnmp/smi/mibs/instances/__PYSNMP-USM-MIB.py
index cd8d7a38..94c02e6b 100644
--- a/pysnmp/smi/mibs/instances/__PYSNMP-USM-MIB.py
+++ b/pysnmp/smi/mibs/instances/__PYSNMP-USM-MIB.py
@@ -7,7 +7,7 @@
MibScalarInstance, = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalarInstance')
(pysnmpUsmDiscoverable,
- pysnmpUsmDiscovery ) = mibBuilder.importSymbols(
+ pysnmpUsmDiscovery) = mibBuilder.importSymbols(
'PYSNMP-USM-MIB',
'pysnmpUsmDiscoverable',
'pysnmpUsmDiscovery'
@@ -18,6 +18,6 @@ __pysnmpUsmDiscovery = MibScalarInstance(pysnmpUsmDiscovery.name, (0,), pysnmpUs
mibBuilder.exportSymbols(
"__PYSNMP-USM-MIB",
- pysnmpUsmDiscoverable = __pysnmpUsmDiscoverable,
- pysnmpUsmDiscovery = __pysnmpUsmDiscovery
+ pysnmpUsmDiscoverable=__pysnmpUsmDiscoverable,
+ pysnmpUsmDiscovery=__pysnmpUsmDiscovery
)
diff --git a/pysnmp/smi/mibs/instances/__SNMP-FRAMEWORK-MIB.py b/pysnmp/smi/mibs/instances/__SNMP-FRAMEWORK-MIB.py
index 2fd3b495..2f878359 100644
--- a/pysnmp/smi/mibs/instances/__SNMP-FRAMEWORK-MIB.py
+++ b/pysnmp/smi/mibs/instances/__SNMP-FRAMEWORK-MIB.py
@@ -11,7 +11,7 @@ MibScalarInstance, = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalarInstance')
(snmpEngineID,
snmpEngineBoots,
snmpEngineTime,
- snmpEngineMaxMessageSize ) = mibBuilder.importSymbols(
+ snmpEngineMaxMessageSize) = mibBuilder.importSymbols(
'SNMP-FRAMEWORK-MIB',
'snmpEngineID',
'snmpEngineBoots',
@@ -22,12 +22,13 @@ MibScalarInstance, = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalarInstance')
__snmpEngineID = MibScalarInstance(snmpEngineID.name, (0,), snmpEngineID.syntax)
__snmpEngineBoots = MibScalarInstance(snmpEngineBoots.name, (0,), snmpEngineBoots.syntax.clone(1))
__snmpEngineTime = MibScalarInstance(snmpEngineTime.name, (0,), snmpEngineTime.syntax.clone(int(time.time())))
-__snmpEngineMaxMessageSize = MibScalarInstance(snmpEngineMaxMessageSize.name, (0,), snmpEngineMaxMessageSize.syntax.clone(4096))
+__snmpEngineMaxMessageSize = MibScalarInstance(snmpEngineMaxMessageSize.name, (0,),
+ snmpEngineMaxMessageSize.syntax.clone(4096))
mibBuilder.exportSymbols(
'__SNMP-FRAMEWORK-MIB',
- snmpEngineID = __snmpEngineID,
- snmpEngineBoots = __snmpEngineBoots,
- snmpEngineTime = __snmpEngineTime,
- snmpEngineMaxMessageSize = __snmpEngineMaxMessageSize
+ snmpEngineID=__snmpEngineID,
+ snmpEngineBoots=__snmpEngineBoots,
+ snmpEngineTime=__snmpEngineTime,
+ snmpEngineMaxMessageSize=__snmpEngineMaxMessageSize
)
diff --git a/pysnmp/smi/mibs/instances/__SNMP-MPD-MIB.py b/pysnmp/smi/mibs/instances/__SNMP-MPD-MIB.py
index b11efda5..98a3009b 100644
--- a/pysnmp/smi/mibs/instances/__SNMP-MPD-MIB.py
+++ b/pysnmp/smi/mibs/instances/__SNMP-MPD-MIB.py
@@ -8,20 +8,21 @@ MibScalarInstance, = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalarInstance')
(snmpUnknownSecurityModels,
snmpInvalidMsgs,
- snmpUnknownPDUHandlers ) = mibBuilder.importSymbols(
+ snmpUnknownPDUHandlers) = mibBuilder.importSymbols(
'SNMP-MPD-MIB',
'snmpUnknownSecurityModels',
'snmpInvalidMsgs',
'snmpUnknownPDUHandlers',
)
-__snmpUnknownSecurityModels = MibScalarInstance(snmpUnknownSecurityModels.name, (0,), snmpUnknownSecurityModels.syntax.clone(0))
+__snmpUnknownSecurityModels = MibScalarInstance(snmpUnknownSecurityModels.name, (0,),
+ snmpUnknownSecurityModels.syntax.clone(0))
__snmpInvalidMsgs = MibScalarInstance(snmpInvalidMsgs.name, (0,), snmpInvalidMsgs.syntax.clone(0))
__snmpUnknownPDUHandlers = MibScalarInstance(snmpUnknownPDUHandlers.name, (0,), snmpUnknownPDUHandlers.syntax.clone(0))
mibBuilder.exportSymbols(
'__SNMP-MPD-MIB',
- snmpUnknownSecurityModels = __snmpUnknownSecurityModels,
- snmpInvalidMsgs = __snmpInvalidMsgs,
- snmpUnknownPDUHandlers = __snmpUnknownPDUHandlers
+ snmpUnknownSecurityModels=__snmpUnknownSecurityModels,
+ snmpInvalidMsgs=__snmpInvalidMsgs,
+ snmpUnknownPDUHandlers=__snmpUnknownPDUHandlers
)
diff --git a/pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py b/pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py
index 90d477d2..38bb9d7f 100644
--- a/pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py
+++ b/pysnmp/smi/mibs/instances/__SNMP-TARGET-MIB.py
@@ -19,7 +19,8 @@ MibScalarInstance, = mibBuilder.importSymbols(
)
__snmpTargetSpinLock = MibScalarInstance(snmpTargetSpinLock.name, (0,), snmpTargetSpinLock.syntax.clone(0))
-__snmpUnavailableContexts = MibScalarInstance(snmpUnavailableContexts.name, (0,), snmpUnavailableContexts.syntax.clone(0))
+__snmpUnavailableContexts = MibScalarInstance(snmpUnavailableContexts.name, (0,),
+ snmpUnavailableContexts.syntax.clone(0))
__snmpUnknownContexts = MibScalarInstance(snmpUnknownContexts.name, (0,), snmpUnknownContexts.syntax.clone(0))
mibBuilder.exportSymbols(
@@ -28,4 +29,3 @@ mibBuilder.exportSymbols(
snmpUnavailableContexts=__snmpUnavailableContexts,
snmpUnknownContexts=__snmpUnknownContexts
)
-
diff --git a/pysnmp/smi/mibs/instances/__SNMP-USER-BASED-SM-MIB.py b/pysnmp/smi/mibs/instances/__SNMP-USER-BASED-SM-MIB.py
index 5747e289..21f550fa 100644
--- a/pysnmp/smi/mibs/instances/__SNMP-USER-BASED-SM-MIB.py
+++ b/pysnmp/smi/mibs/instances/__SNMP-USER-BASED-SM-MIB.py
@@ -23,21 +23,26 @@ MibScalarInstance, = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalarInstance')
'usmUserSpinLock'
)
-__usmStatsUnsupportedSecLevels = MibScalarInstance(usmStatsUnsupportedSecLevels.name, (0,), usmStatsUnsupportedSecLevels.syntax.clone(0))
-__usmStatsNotInTimeWindows = MibScalarInstance(usmStatsNotInTimeWindows.name, (0,), usmStatsNotInTimeWindows.syntax.clone(0))
-__usmStatsUnknownUserNames = MibScalarInstance(usmStatsUnknownUserNames.name, (0,), usmStatsUnknownUserNames.syntax.clone(0))
-__usmStatsUnknownEngineIDs = MibScalarInstance(usmStatsUnknownEngineIDs.name, (0,), usmStatsUnknownEngineIDs.syntax.clone(0))
+__usmStatsUnsupportedSecLevels = MibScalarInstance(usmStatsUnsupportedSecLevels.name, (0,),
+ usmStatsUnsupportedSecLevels.syntax.clone(0))
+__usmStatsNotInTimeWindows = MibScalarInstance(usmStatsNotInTimeWindows.name, (0,),
+ usmStatsNotInTimeWindows.syntax.clone(0))
+__usmStatsUnknownUserNames = MibScalarInstance(usmStatsUnknownUserNames.name, (0,),
+ usmStatsUnknownUserNames.syntax.clone(0))
+__usmStatsUnknownEngineIDs = MibScalarInstance(usmStatsUnknownEngineIDs.name, (0,),
+ usmStatsUnknownEngineIDs.syntax.clone(0))
__usmStatsWrongDigests = MibScalarInstance(usmStatsWrongDigests.name, (0,), usmStatsWrongDigests.syntax.clone(0))
-__usmStatsDecryptionErrors = MibScalarInstance(usmStatsDecryptionErrors.name, (0,), usmStatsDecryptionErrors.syntax.clone(0))
+__usmStatsDecryptionErrors = MibScalarInstance(usmStatsDecryptionErrors.name, (0,),
+ usmStatsDecryptionErrors.syntax.clone(0))
__usmUserSpinLock = MibScalarInstance(usmUserSpinLock.name, (0,), usmUserSpinLock.syntax.clone(0))
mibBuilder.exportSymbols(
'__SNMP-USER-BASED-SM-MIB',
- usmStatsUnsupportedSecLevels = __usmStatsUnsupportedSecLevels,
- usmStatsNotInTimeWindows = __usmStatsNotInTimeWindows,
- usmStatsUnknownUserNames = __usmStatsUnknownUserNames,
- usmStatsUnknownEngineIDs = __usmStatsUnknownEngineIDs,
- usmStatsWrongDigests = __usmStatsWrongDigests,
- usmStatsDecryptionErrors = __usmStatsDecryptionErrors,
- usmUserSpinLock = __usmUserSpinLock
+ usmStatsUnsupportedSecLevels=__usmStatsUnsupportedSecLevels,
+ usmStatsNotInTimeWindows=__usmStatsNotInTimeWindows,
+ usmStatsUnknownUserNames=__usmStatsUnknownUserNames,
+ usmStatsUnknownEngineIDs=__usmStatsUnknownEngineIDs,
+ usmStatsWrongDigests=__usmStatsWrongDigests,
+ usmStatsDecryptionErrors=__usmStatsDecryptionErrors,
+ usmUserSpinLock=__usmUserSpinLock
)
diff --git a/pysnmp/smi/mibs/instances/__SNMP-VIEW-BASED-ACM-MIB.py b/pysnmp/smi/mibs/instances/__SNMP-VIEW-BASED-ACM-MIB.py
index 03e63b81..b2465e01 100644
--- a/pysnmp/smi/mibs/instances/__SNMP-VIEW-BASED-ACM-MIB.py
+++ b/pysnmp/smi/mibs/instances/__SNMP-VIEW-BASED-ACM-MIB.py
@@ -12,5 +12,5 @@ __vacmViewSpinLock = MibScalarInstance(vacmViewSpinLock.name, (0,), vacmViewSpin
mibBuilder.exportSymbols(
"__SNMP-VIEW-BASED-ACM-MIB",
- vacmViewSpinLock = __vacmViewSpinLock
+ vacmViewSpinLock=__vacmViewSpinLock
)
diff --git a/pysnmp/smi/mibs/instances/__SNMPv2-MIB.py b/pysnmp/smi/mibs/instances/__SNMPv2-MIB.py
index fdadbfe5..758f1c77 100644
--- a/pysnmp/smi/mibs/instances/__SNMPv2-MIB.py
+++ b/pysnmp/smi/mibs/instances/__SNMPv2-MIB.py
@@ -96,16 +96,20 @@ from pysnmp import __version__
'snmpSetSerialNo'
)
-__sysDescr = MibScalarInstance(sysDescr.name, (0,), sysDescr.syntax.clone("PySNMP engine version %s, Python %s" % (__version__, version.replace('\n', ' ').replace('\r', ' '))))
-__sysObjectID = MibScalarInstance(sysObjectID.name, (0,), sysObjectID.syntax.clone((1,3,6,1,4,1,20408)))
+__sysDescr = MibScalarInstance(sysDescr.name, (0,), sysDescr.syntax.clone(
+ "PySNMP engine version %s, Python %s" % (__version__, version.replace('\n', ' ').replace('\r', ' '))))
+__sysObjectID = MibScalarInstance(sysObjectID.name, (0,), sysObjectID.syntax.clone((1, 3, 6, 1, 4, 1, 20408)))
+
class SysUpTime(TimeTicks):
createdAt = time()
+
def clone(self, **kwargs):
if 'value' not in kwargs:
- kwargs['value'] = int((time()-self.createdAt)*100)
+ kwargs['value'] = int((time() - self.createdAt) * 100)
return TimeTicks.clone(self, **kwargs)
+
__sysUpTime = MibScalarInstance(sysUpTime.name, (0,), SysUpTime(0))
__sysContact = MibScalarInstance(sysContact.name, (0,), sysContact.syntax.clone(''))
__sysName = MibScalarInstance(sysName.name, (0,), sysName.syntax.clone(''))
@@ -115,7 +119,8 @@ __sysORLastChange = MibScalarInstance(sysORLastChange.name, (0,), sysORLastChang
__snmpInPkts = MibScalarInstance(snmpInPkts.name, (0,), snmpInPkts.syntax.clone(0))
__snmpOutPkts = MibScalarInstance(snmpOutPkts.name, (0,), snmpOutPkts.syntax.clone(0))
__snmpInBadVersions = MibScalarInstance(snmpInBadVersions.name, (0,), snmpInBadVersions.syntax.clone(0))
-__snmpInBadCommunityNames = MibScalarInstance(snmpInBadCommunityNames.name, (0,), snmpInBadCommunityNames.syntax.clone(0))
+__snmpInBadCommunityNames = MibScalarInstance(snmpInBadCommunityNames.name, (0,),
+ snmpInBadCommunityNames.syntax.clone(0))
__snmpInBadCommunityUses = MibScalarInstance(snmpInBadCommunityUses.name, (0,), snmpInBadCommunityUses.syntax.clone(0))
__snmpInASNParseErrs = MibScalarInstance(snmpInASNParseErrs.name, (0,), snmpInASNParseErrs.syntax.clone(0))
__snmpInTooBigs = MibScalarInstance(snmpInTooBigs.name, (0,), snmpInTooBigs.syntax.clone(0))
@@ -145,42 +150,42 @@ __snmpSetSerialNo = MibScalarInstance(snmpSetSerialNo.name, (0,), snmpSetSerialN
mibBuilder.exportSymbols(
"__SNMPv2-MIB",
- sysDescr = __sysDescr,
- sysObjectID = __sysObjectID,
- sysUpTime = __sysUpTime,
- sysContact = __sysContact,
- sysName = __sysName,
- sysLocation = __sysLocation,
- sysServices = __sysServices,
- sysORLastChange = __sysORLastChange,
- snmpInPkts = __snmpInPkts,
- snmpOutPkts = __snmpOutPkts,
- snmpInBadVersions = __snmpInBadVersions,
- snmpInBadCommunityNames = __snmpInBadCommunityNames,
- snmpInBadCommunityUses = __snmpInBadCommunityUses,
- snmpInASNParseErrs = __snmpInASNParseErrs,
- snmpInTooBigs = __snmpInTooBigs,
- snmpInNoSuchNames = __snmpInNoSuchNames,
- snmpInBadValues = __snmpInBadValues,
- snmpInReadOnlys = __snmpInReadOnlys,
- snmpInGenErrs = __snmpInGenErrs,
- snmpInTotalReqVars = __snmpInTotalReqVars,
- snmpInTotalSetVars = __snmpInTotalSetVars,
- snmpInGetRequests = __snmpInGetRequests,
- snmpInGetNexts = __snmpInGetNexts,
- snmpInSetRequests = __snmpInSetRequests,
- snmpInGetResponses = __snmpInGetResponses,
- snmpInTraps = __snmpInTraps,
- snmpOutTooBigs = __snmpOutTooBigs,
- snmpOutNoSuchNames = __snmpOutNoSuchNames,
- snmpOutBadValues = __snmpOutBadValues,
- snmpOutGenErrs = __snmpOutGenErrs,
- snmpOutSetRequests = __snmpOutSetRequests,
- snmpOutGetResponses = __snmpOutGetResponses,
- snmpOutTraps = __snmpOutTraps,
- snmpEnableAuthenTraps = __snmpEnableAuthenTraps,
- snmpSilentDrops = __snmpSilentDrops,
- snmpProxyDrops = __snmpProxyDrops,
- snmpTrapOID = __snmpTrapOID,
- snmpSetSerialNo = __snmpSetSerialNo
+ sysDescr=__sysDescr,
+ sysObjectID=__sysObjectID,
+ sysUpTime=__sysUpTime,
+ sysContact=__sysContact,
+ sysName=__sysName,
+ sysLocation=__sysLocation,
+ sysServices=__sysServices,
+ sysORLastChange=__sysORLastChange,
+ snmpInPkts=__snmpInPkts,
+ snmpOutPkts=__snmpOutPkts,
+ snmpInBadVersions=__snmpInBadVersions,
+ snmpInBadCommunityNames=__snmpInBadCommunityNames,
+ snmpInBadCommunityUses=__snmpInBadCommunityUses,
+ snmpInASNParseErrs=__snmpInASNParseErrs,
+ snmpInTooBigs=__snmpInTooBigs,
+ snmpInNoSuchNames=__snmpInNoSuchNames,
+ snmpInBadValues=__snmpInBadValues,
+ snmpInReadOnlys=__snmpInReadOnlys,
+ snmpInGenErrs=__snmpInGenErrs,
+ snmpInTotalReqVars=__snmpInTotalReqVars,
+ snmpInTotalSetVars=__snmpInTotalSetVars,
+ snmpInGetRequests=__snmpInGetRequests,
+ snmpInGetNexts=__snmpInGetNexts,
+ snmpInSetRequests=__snmpInSetRequests,
+ snmpInGetResponses=__snmpInGetResponses,
+ snmpInTraps=__snmpInTraps,
+ snmpOutTooBigs=__snmpOutTooBigs,
+ snmpOutNoSuchNames=__snmpOutNoSuchNames,
+ snmpOutBadValues=__snmpOutBadValues,
+ snmpOutGenErrs=__snmpOutGenErrs,
+ snmpOutSetRequests=__snmpOutSetRequests,
+ snmpOutGetResponses=__snmpOutGetResponses,
+ snmpOutTraps=__snmpOutTraps,
+ snmpEnableAuthenTraps=__snmpEnableAuthenTraps,
+ snmpSilentDrops=__snmpSilentDrops,
+ snmpProxyDrops=__snmpProxyDrops,
+ snmpTrapOID=__snmpTrapOID,
+ snmpSetSerialNo=__snmpSetSerialNo
)