summaryrefslogtreecommitdiff
path: root/pysnmp/smi/mibs/SNMP-MPD-MIB.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-02-17 11:58:32 +0100
committerGitHub <noreply@github.com>2019-02-17 11:58:32 +0100
commit5ac020f1fc7dfa8b42cabe3023d0e94fdc634dd2 (patch)
tree4850ae0ad0cac7fc622a00393c3d8f299c6956a2 /pysnmp/smi/mibs/SNMP-MPD-MIB.py
parent7a8838eeaf2a94a4ee8d309f2091a4fde13e5afc (diff)
downloadpysnmp-git-5ac020f1fc7dfa8b42cabe3023d0e94fdc634dd2.tar.gz
PEP-8 included MIB modules (#243)
The base Pythonized MIBs being shipped with pysnmp have been rebuilt with the latest pysmi mainly for the purpose of making them PEP-8 compliant.
Diffstat (limited to 'pysnmp/smi/mibs/SNMP-MPD-MIB.py')
-rw-r--r--pysnmp/smi/mibs/SNMP-MPD-MIB.py270
1 files changed, 233 insertions, 37 deletions
diff --git a/pysnmp/smi/mibs/SNMP-MPD-MIB.py b/pysnmp/smi/mibs/SNMP-MPD-MIB.py
index 14798100..c4418a2d 100644
--- a/pysnmp/smi/mibs/SNMP-MPD-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-MPD-MIB.py
@@ -4,42 +4,238 @@
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
-#
-# PySNMP MIB module SNMP-MPD-MIB (http://snmplabs.com/pysnmp)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/SNMP-MPD-MIB
-# Produced by pysmi-0.1.3 at Tue Apr 18 00:17:00 2017
-# On host grommit.local platform Darwin version 16.4.0 by user ilya
-# Using Python version 3.4.2 (v3.4.2:ab2c023a9432, Oct 5 2014, 20:42:22)
+# Produced by pysmi-0.4.0 at Sat Feb 16 12:09:00 2019
#
-OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
-NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
-SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
-NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
-iso, Counter32, Unsigned32, Gauge32, MibIdentifier, TimeTicks, NotificationType, ObjectIdentity, Bits, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Counter64, IpAddress, snmpModules = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Counter32", "Unsigned32", "Gauge32", "MibIdentifier", "TimeTicks", "NotificationType", "ObjectIdentity", "Bits", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Counter64", "IpAddress", "snmpModules")
-DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
-snmpMPDMIB = ModuleIdentity((1, 3, 6, 1, 6, 3, 11))
-if mibBuilder.loadTexts: snmpMPDMIB.setRevisions(('1999-05-04 16:36', '1997-09-30 00:00',))
-if mibBuilder.loadTexts: snmpMPDMIB.setLastUpdated('9905041636Z')
-if mibBuilder.loadTexts: snmpMPDMIB.setOrganization('SNMPv3 Working Group')
-if mibBuilder.loadTexts: snmpMPDMIB.setContactInfo('WG-EMail: snmpv3@lists.tislabs.com Subscribe: majordomo@lists.tislabs.com In message body: subscribe snmpv3 Chair: Russ Mundy TIS Labs at Network Associates postal: 3060 Washington Road Glenwood, MD 21738 USA EMail: mundy@tislabs.com phone: +1 301-854-6889 Co-editor: Jeffrey Case SNMP Research, Inc. postal: 3001 Kimberlin Heights Road Knoxville, TN 37920-9716 USA EMail: case@snmp.com phone: +1 423-573-1434 Co-editor Dave Harrington Cabletron Systems, Inc. postal: Post Office Box 5005 MailStop: Durham 35 Industrial Way Rochester, NH 03867-5005 USA EMail: dbh@ctron.com phone: +1 603-337-7357 Co-editor: Randy Presuhn BMC Software, Inc. postal: 965 Stewart Drive Sunnyvale, CA 94086 USA EMail: randy_presuhn@bmc.com phone: +1 408-616-3100 Co-editor: Bert Wijnen IBM T. J. Watson Research postal: Schagen 33 3461 GL Linschoten Netherlands EMail: wijnen@vnet.ibm.com phone: +31 348-432-794 ')
-if mibBuilder.loadTexts: snmpMPDMIB.setDescription('The MIB for Message Processing and Dispatching')
-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.setStatus('current')
-if mibBuilder.loadTexts: snmpUnknownSecurityModels.setDescription('The total number of packets received by the SNMP engine which were dropped because they referenced a securityModel that was not known to or supported by the SNMP engine. ')
-snmpInvalidMsgs = MibScalar((1, 3, 6, 1, 6, 3, 11, 2, 1, 2), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpInvalidMsgs.setStatus('current')
-if mibBuilder.loadTexts: snmpInvalidMsgs.setDescription('The total number of packets received by the SNMP engine which were dropped because there were invalid or inconsistent components in the SNMP message. ')
-snmpUnknownPDUHandlers = MibScalar((1, 3, 6, 1, 6, 3, 11, 2, 1, 3), Counter32()).setMaxAccess("readonly")
-if mibBuilder.loadTexts: snmpUnknownPDUHandlers.setStatus('current')
-if mibBuilder.loadTexts: snmpUnknownPDUHandlers.setDescription('The total number of packets received by the SNMP engine which were dropped because the PDU contained in the packet could not be passed to an application responsible for handling the pduType, e.g. no SNMP application had registered for the proper combination of the contextEngineID and the pduType. ')
-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 implement the SNMP-MPD-MIB. ')
-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 monitoring of the SNMP Message Processing and Dispatching process. ')
-mibBuilder.exportSymbols("SNMP-MPD-MIB", snmpMPDMIBGroups=snmpMPDMIBGroups, PYSNMP_MODULE_ID=snmpMPDMIB, snmpMPDMIBConformance=snmpMPDMIBConformance, snmpMPDMIBCompliances=snmpMPDMIBCompliances, snmpUnknownPDUHandlers=snmpUnknownPDUHandlers, snmpMPDGroup=snmpMPDGroup, snmpMPDMIB=snmpMPDMIB, snmpInvalidMsgs=snmpInvalidMsgs, snmpMPDCompliance=snmpMPDCompliance, snmpMPDMIBObjects=snmpMPDMIBObjects, snmpMPDAdmin=snmpMPDAdmin, snmpMPDStats=snmpMPDStats, snmpUnknownSecurityModels=snmpUnknownSecurityModels)
+if 'mibBuilder' not in globals():
+ import sys
+
+ sys.stderr.write(__doc__)
+ sys.exit(1)
+
+(Integer,
+ OctetString,
+ ObjectIdentifier) = mibBuilder.importSymbols(
+ "ASN1",
+ "Integer",
+ "OctetString",
+ "ObjectIdentifier")
+
+(NamedValues,) = mibBuilder.importSymbols(
+ "ASN1-ENUMERATION",
+ "NamedValues")
+
+(ConstraintsIntersection,
+ SingleValueConstraint,
+ ValueRangeConstraint,
+ ValueSizeConstraint,
+ ConstraintsUnion) = mibBuilder.importSymbols(
+ "ASN1-REFINEMENT",
+ "ConstraintsIntersection",
+ "SingleValueConstraint",
+ "ValueRangeConstraint",
+ "ValueSizeConstraint",
+ "ConstraintsUnion")
+
+# Import SMI symbols from the MIBs this MIB depends on
+
+(ObjectGroup,
+ ModuleCompliance,
+ NotificationGroup) = mibBuilder.importSymbols(
+ "SNMPv2-CONF",
+ "ObjectGroup",
+ "ModuleCompliance",
+ "NotificationGroup")
+
+(ObjectIdentity,
+ Unsigned32,
+ snmpModules,
+ Bits,
+ MibIdentifier,
+ Counter32,
+ IpAddress,
+ Gauge32,
+ ModuleIdentity,
+ Integer32,
+ MibScalar,
+ MibTable,
+ MibTableRow,
+ MibTableColumn,
+ NotificationType,
+ iso,
+ TimeTicks,
+ Counter64) = mibBuilder.importSymbols(
+ "SNMPv2-SMI",
+ "ObjectIdentity",
+ "Unsigned32",
+ "snmpModules",
+ "Bits",
+ "MibIdentifier",
+ "Counter32",
+ "IpAddress",
+ "Gauge32",
+ "ModuleIdentity",
+ "Integer32",
+ "MibScalar",
+ "MibTable",
+ "MibTableRow",
+ "MibTableColumn",
+ "NotificationType",
+ "iso",
+ "TimeTicks",
+ "Counter64")
+
+(TextualConvention,
+ DisplayString) = mibBuilder.importSymbols(
+ "SNMPv2-TC",
+ "TextualConvention",
+ "DisplayString")
+
+snmpMPDMIB = ModuleIdentity(
+ (1, 3, 6, 1, 6, 3, 11)
+)
+snmpMPDMIB.setRevisions(
+ ("2002-10-14 00:00",
+ "1999-05-04 16:36",
+ "1997-09-30 00:00")
+)
+snmpMPDMIB.setLastUpdated("200210140000Z")
+if mibBuilder.loadTexts:
+ snmpMPDMIB.setOrganization("""\
+SNMPv3 Working Group
+""")
+snmpMPDMIB.setContactInfo("""\
+WG-EMail: snmpv3@lists.tislabs.com Subscribe: snmpv3-request@lists.tislabs.com
+Co-Chair: Russ Mundy Network Associates Laboratories postal: 15204 Omega Drive,
+Suite 300 Rockville, MD 20850-4601 USA EMail: mundy@tislabs.com phone: +1
+301-947-7107 Co-Chair & Co-editor: David Harrington Enterasys Networks postal:
+35 Industrial Way P. O. Box 5005 Rochester NH 03866-5005 USA EMail:
+dbh@enterasys.com phone: +1 603-337-2614 Co-editor: Jeffrey Case SNMP Research,
+Inc. postal: 3001 Kimberlin Heights Road Knoxville, TN 37920-9716 USA EMail:
+case@snmp.com phone: +1 423-573-1434 Co-editor: Randy Presuhn BMC Software,
+Inc. postal: 2141 North First Street San Jose, CA 95131 USA EMail:
+randy_presuhn@bmc.com phone: +1 408-546-1006 Co-editor: Bert Wijnen Lucent
+Technologies postal: Schagen 33 3461 GL Linschoten Netherlands EMail:
+bwijnen@lucent.com phone: +31 348-680-485
+""")
+if mibBuilder.loadTexts:
+ snmpMPDMIB.setDescription("""\
+The MIB for Message Processing and Dispatching Copyright (C) The Internet
+Society (2002). This version of this MIB module is part of RFC 3412; see the
+RFC itself for full legal notices.
+""")
+
+_SnmpMPDAdmin_ObjectIdentity = ObjectIdentity
+snmpMPDAdmin = _SnmpMPDAdmin_ObjectIdentity(
+ (1, 3, 6, 1, 6, 3, 11, 1)
+)
+_SnmpMPDMIBObjects_ObjectIdentity = ObjectIdentity
+snmpMPDMIBObjects = _SnmpMPDMIBObjects_ObjectIdentity(
+ (1, 3, 6, 1, 6, 3, 11, 2)
+)
+_SnmpMPDStats_ObjectIdentity = ObjectIdentity
+snmpMPDStats = _SnmpMPDStats_ObjectIdentity(
+ (1, 3, 6, 1, 6, 3, 11, 2, 1)
+)
+_SnmpUnknownSecurityModels_Type = Counter32
+_SnmpUnknownSecurityModels_Object = MibScalar
+snmpUnknownSecurityModels = _SnmpUnknownSecurityModels_Object(
+ (1, 3, 6, 1, 6, 3, 11, 2, 1, 1),
+ _SnmpUnknownSecurityModels_Type()
+)
+snmpUnknownSecurityModels.setMaxAccess("read-only")
+if mibBuilder.loadTexts:
+ snmpUnknownSecurityModels.setStatus("current")
+if mibBuilder.loadTexts:
+ snmpUnknownSecurityModels.setDescription("""\
+The total number of packets received by the SNMP engine which were dropped
+because they referenced a securityModel that was not known to or supported by
+the SNMP engine.
+""")
+_SnmpInvalidMsgs_Type = Counter32
+_SnmpInvalidMsgs_Object = MibScalar
+snmpInvalidMsgs = _SnmpInvalidMsgs_Object(
+ (1, 3, 6, 1, 6, 3, 11, 2, 1, 2),
+ _SnmpInvalidMsgs_Type()
+)
+snmpInvalidMsgs.setMaxAccess("read-only")
+if mibBuilder.loadTexts:
+ snmpInvalidMsgs.setStatus("current")
+if mibBuilder.loadTexts:
+ snmpInvalidMsgs.setDescription("""\
+The total number of packets received by the SNMP engine which were dropped
+because there were invalid or inconsistent components in the SNMP message.
+""")
+_SnmpUnknownPDUHandlers_Type = Counter32
+_SnmpUnknownPDUHandlers_Object = MibScalar
+snmpUnknownPDUHandlers = _SnmpUnknownPDUHandlers_Object(
+ (1, 3, 6, 1, 6, 3, 11, 2, 1, 3),
+ _SnmpUnknownPDUHandlers_Type()
+)
+snmpUnknownPDUHandlers.setMaxAccess("read-only")
+if mibBuilder.loadTexts:
+ snmpUnknownPDUHandlers.setStatus("current")
+if mibBuilder.loadTexts:
+ snmpUnknownPDUHandlers.setDescription("""\
+The total number of packets received by the SNMP engine which were dropped
+because the PDU contained in the packet could not be passed to an application
+responsible for handling the pduType, e.g. no SNMP application had registered
+for the proper combination of the contextEngineID and the pduType.
+""")
+_SnmpMPDMIBConformance_ObjectIdentity = ObjectIdentity
+snmpMPDMIBConformance = _SnmpMPDMIBConformance_ObjectIdentity(
+ (1, 3, 6, 1, 6, 3, 11, 3)
+)
+_SnmpMPDMIBCompliances_ObjectIdentity = ObjectIdentity
+snmpMPDMIBCompliances = _SnmpMPDMIBCompliances_ObjectIdentity(
+ (1, 3, 6, 1, 6, 3, 11, 3, 1)
+)
+_SnmpMPDMIBGroups_ObjectIdentity = ObjectIdentity
+snmpMPDMIBGroups = _SnmpMPDMIBGroups_ObjectIdentity(
+ (1, 3, 6, 1, 6, 3, 11, 3, 2)
+)
+
+snmpMPDGroup = ObjectGroup(
+ (1, 3, 6, 1, 6, 3, 11, 3, 2, 1)
+)
+snmpMPDGroup.setObjects(
+ *(("SNMP-MPD-MIB", "snmpUnknownSecurityModels"),
+ ("SNMP-MPD-MIB", "snmpInvalidMsgs"),
+ ("SNMP-MPD-MIB", "snmpUnknownPDUHandlers"))
+)
+if mibBuilder.loadTexts:
+ snmpMPDGroup.setStatus("current")
+if mibBuilder.loadTexts:
+ snmpMPDGroup.setDescription("""\
+A collection of objects providing for remote monitoring of the SNMP Message
+Processing and Dispatching process.
+""")
+
+
+snmpMPDCompliance = ModuleCompliance(
+ (1, 3, 6, 1, 6, 3, 11, 3, 1, 1)
+)
+if mibBuilder.loadTexts:
+ snmpMPDCompliance.setStatus(
+ "current"
+ )
+if mibBuilder.loadTexts:
+ snmpMPDCompliance.setDescription("""\
+The compliance statement for SNMP entities which implement the SNMP-MPD-MIB.
+""")
+
+mibBuilder.exportSymbols(
+ "SNMP-MPD-MIB",
+ **{"snmpMPDMIB": snmpMPDMIB,
+ "snmpMPDAdmin": snmpMPDAdmin,
+ "snmpMPDMIBObjects": snmpMPDMIBObjects,
+ "snmpMPDStats": snmpMPDStats,
+ "snmpUnknownSecurityModels": snmpUnknownSecurityModels,
+ "snmpInvalidMsgs": snmpInvalidMsgs,
+ "snmpUnknownPDUHandlers": snmpUnknownPDUHandlers,
+ "snmpMPDMIBConformance": snmpMPDMIBConformance,
+ "snmpMPDMIBCompliances": snmpMPDMIBCompliances,
+ "snmpMPDCompliance": snmpMPDCompliance,
+ "snmpMPDMIBGroups": snmpMPDMIBGroups,
+ "snmpMPDGroup": snmpMPDGroup}
+)