forked from etingof/pysnmp
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
7,066 additions
and
2,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,90 @@ | |
# ASN.1 source http://mibs.pysnmp.com:80/asn1/PYSNMP-MIB | ||
# Produced by pysmi-0.1.3 at Mon Apr 17 11:46:02 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) | ||
# Using Python version 3.4.2 (v3.4.2:ab2c023a9432, Oct 5 2014, 20:42:22) | ||
# | ||
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") | ||
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") | ||
SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion") | ||
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") | ||
ModuleIdentity, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, NotificationType, IpAddress, MibIdentifier, Unsigned32, Counter32, ObjectIdentity, Counter64, Bits, Integer32, enterprises, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "NotificationType", "IpAddress", "MibIdentifier", "Unsigned32", "Counter32", "ObjectIdentity", "Counter64", "Bits", "Integer32", "enterprises", "TimeTicks") | ||
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") | ||
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols( | ||
"ASN1", "Integer", "OctetString", "ObjectIdentifier" | ||
) | ||
(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") | ||
( | ||
SingleValueConstraint, | ||
ValueRangeConstraint, | ||
ConstraintsIntersection, | ||
ValueSizeConstraint, | ||
ConstraintsUnion, | ||
) = mibBuilder.importSymbols( | ||
"ASN1-REFINEMENT", | ||
"SingleValueConstraint", | ||
"ValueRangeConstraint", | ||
"ConstraintsIntersection", | ||
"ValueSizeConstraint", | ||
"ConstraintsUnion", | ||
) | ||
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols( | ||
"SNMPv2-CONF", "NotificationGroup", "ModuleCompliance" | ||
) | ||
( | ||
ModuleIdentity, | ||
iso, | ||
MibScalar, | ||
MibTable, | ||
MibTableRow, | ||
MibTableColumn, | ||
Gauge32, | ||
NotificationType, | ||
IpAddress, | ||
MibIdentifier, | ||
Unsigned32, | ||
Counter32, | ||
ObjectIdentity, | ||
Counter64, | ||
Bits, | ||
Integer32, | ||
enterprises, | ||
TimeTicks, | ||
) = mibBuilder.importSymbols( | ||
"SNMPv2-SMI", | ||
"ModuleIdentity", | ||
"iso", | ||
"MibScalar", | ||
"MibTable", | ||
"MibTableRow", | ||
"MibTableColumn", | ||
"Gauge32", | ||
"NotificationType", | ||
"IpAddress", | ||
"MibIdentifier", | ||
"Unsigned32", | ||
"Counter32", | ||
"ObjectIdentity", | ||
"Counter64", | ||
"Bits", | ||
"Integer32", | ||
"enterprises", | ||
"TimeTicks", | ||
) | ||
TextualConvention, DisplayString = mibBuilder.importSymbols( | ||
"SNMPv2-TC", "TextualConvention", "DisplayString" | ||
) | ||
pysnmp = ModuleIdentity((1, 3, 6, 1, 4, 1, 20408)) | ||
if mibBuilder.loadTexts: pysnmp.setRevisions(('2017-04-14 00:00', '2005-05-14 00:00',)) | ||
if mibBuilder.loadTexts: pysnmp.setLastUpdated('201704140000Z') | ||
if mibBuilder.loadTexts: pysnmp.setOrganization('The PySNMP Project') | ||
if mibBuilder.loadTexts: pysnmp.setContactInfo('E-mail: Lex Li <[email protected]> GitHub: https://github.com/lextudio/pysnmp') | ||
if mibBuilder.loadTexts: pysnmp.setDescription('PySNMP top-level MIB tree infrastructure') | ||
if mibBuilder.loadTexts: | ||
pysnmp.setRevisions( | ||
( | ||
"2017-04-14 00:00", | ||
"2005-05-14 00:00", | ||
) | ||
) | ||
if mibBuilder.loadTexts: | ||
pysnmp.setLastUpdated("201704140000Z") | ||
if mibBuilder.loadTexts: | ||
pysnmp.setOrganization("The PySNMP Project") | ||
if mibBuilder.loadTexts: | ||
pysnmp.setContactInfo( | ||
"E-mail: Lex Li <[email protected]> GitHub: https://github.com/lextudio/pysnmp" | ||
) | ||
if mibBuilder.loadTexts: | ||
pysnmp.setDescription("PySNMP top-level MIB tree infrastructure") | ||
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)) | ||
|
@@ -35,4 +105,21 @@ | |
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", pysnmpCompliances=pysnmpCompliances, pysnmpObjects=pysnmpObjects, pysnmpNotificationPrefix=pysnmpNotificationPrefix, pysnmpModuleIDs=pysnmpModuleIDs, pysnmpGroups=pysnmpGroups, pysnmpNotificationObjects=pysnmpNotificationObjects, pysnmp=pysnmp, pysnmpExperimental=pysnmpExperimental, pysnmpNotifications=pysnmpNotifications, PYSNMP_MODULE_ID=pysnmp, pysnmpEnumerations=pysnmpEnumerations, pysnmpDomains=pysnmpDomains, pysnmpAgentOIDs=pysnmpAgentOIDs, pysnmpConformance=pysnmpConformance, pysnmpExamples=pysnmpExamples) | ||
mibBuilder.exportSymbols( | ||
"PYSNMP-MIB", | ||
pysnmpCompliances=pysnmpCompliances, | ||
pysnmpObjects=pysnmpObjects, | ||
pysnmpNotificationPrefix=pysnmpNotificationPrefix, | ||
pysnmpModuleIDs=pysnmpModuleIDs, | ||
pysnmpGroups=pysnmpGroups, | ||
pysnmpNotificationObjects=pysnmpNotificationObjects, | ||
pysnmp=pysnmp, | ||
pysnmpExperimental=pysnmpExperimental, | ||
pysnmpNotifications=pysnmpNotifications, | ||
PYSNMP_MODULE_ID=pysnmp, | ||
pysnmpEnumerations=pysnmpEnumerations, | ||
pysnmpDomains=pysnmpDomains, | ||
pysnmpAgentOIDs=pysnmpAgentOIDs, | ||
pysnmpConformance=pysnmpConformance, | ||
pysnmpExamples=pysnmpExamples, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,35 +8,136 @@ | |
# ASN.1 source http://mibs.pysnmp.com:80/asn1/PYSNMP-SOURCE-MIB | ||
# Produced by pysmi-0.1.3 at Mon Apr 17 11:46:02 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) | ||
# Using Python version 3.4.2 (v3.4.2:ab2c023a9432, Oct 5 2014, 20:42:22) | ||
# | ||
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") | ||
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") | ||
SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion") | ||
pysnmpModuleIDs, = mibBuilder.importSymbols("PYSNMP-MIB", "pysnmpModuleIDs") | ||
snmpTargetAddrEntry, = mibBuilder.importSymbols("SNMP-TARGET-MIB", "snmpTargetAddrEntry") | ||
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") | ||
ModuleIdentity, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, NotificationType, IpAddress, MibIdentifier, Unsigned32, Counter32, ObjectIdentity, Counter64, Bits, Integer32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "NotificationType", "IpAddress", "MibIdentifier", "Unsigned32", "Counter32", "ObjectIdentity", "Counter64", "Bits", "Integer32", "TimeTicks") | ||
TextualConvention, DisplayString, TAddress = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "TAddress") | ||
Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols( | ||
"ASN1", "Integer", "OctetString", "ObjectIdentifier" | ||
) | ||
(NamedValues,) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") | ||
( | ||
SingleValueConstraint, | ||
ValueRangeConstraint, | ||
ConstraintsIntersection, | ||
ValueSizeConstraint, | ||
ConstraintsUnion, | ||
) = mibBuilder.importSymbols( | ||
"ASN1-REFINEMENT", | ||
"SingleValueConstraint", | ||
"ValueRangeConstraint", | ||
"ConstraintsIntersection", | ||
"ValueSizeConstraint", | ||
"ConstraintsUnion", | ||
) | ||
(pysnmpModuleIDs,) = mibBuilder.importSymbols("PYSNMP-MIB", "pysnmpModuleIDs") | ||
(snmpTargetAddrEntry,) = mibBuilder.importSymbols( | ||
"SNMP-TARGET-MIB", "snmpTargetAddrEntry" | ||
) | ||
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols( | ||
"SNMPv2-CONF", "NotificationGroup", "ModuleCompliance" | ||
) | ||
( | ||
ModuleIdentity, | ||
iso, | ||
MibScalar, | ||
MibTable, | ||
MibTableRow, | ||
MibTableColumn, | ||
Gauge32, | ||
NotificationType, | ||
IpAddress, | ||
MibIdentifier, | ||
Unsigned32, | ||
Counter32, | ||
ObjectIdentity, | ||
Counter64, | ||
Bits, | ||
Integer32, | ||
TimeTicks, | ||
) = mibBuilder.importSymbols( | ||
"SNMPv2-SMI", | ||
"ModuleIdentity", | ||
"iso", | ||
"MibScalar", | ||
"MibTable", | ||
"MibTableRow", | ||
"MibTableColumn", | ||
"Gauge32", | ||
"NotificationType", | ||
"IpAddress", | ||
"MibIdentifier", | ||
"Unsigned32", | ||
"Counter32", | ||
"ObjectIdentity", | ||
"Counter64", | ||
"Bits", | ||
"Integer32", | ||
"TimeTicks", | ||
) | ||
TextualConvention, DisplayString, TAddress = mibBuilder.importSymbols( | ||
"SNMPv2-TC", "TextualConvention", "DisplayString", "TAddress" | ||
) | ||
pysnmpSourceMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8)) | ||
if mibBuilder.loadTexts: pysnmpSourceMIB.setRevisions(('2017-04-14 00:00', '2015-01-16 00:00',)) | ||
if mibBuilder.loadTexts: pysnmpSourceMIB.setLastUpdated('201704140000Z') | ||
if mibBuilder.loadTexts: pysnmpSourceMIB.setOrganization('The PySNMP Project') | ||
if mibBuilder.loadTexts: pysnmpSourceMIB.setContactInfo('E-mail: Lex Li <[email protected]> GitHub: https://github.com/lextudio/pysnmp') | ||
if mibBuilder.loadTexts: pysnmpSourceMIB.setDescription('This MIB module defines implementation specific objects that provide variable source transport endpoints feature to SNMP Engine and Standard SNMP Applications.') | ||
if mibBuilder.loadTexts: | ||
pysnmpSourceMIB.setRevisions( | ||
( | ||
"2017-04-14 00:00", | ||
"2015-01-16 00:00", | ||
) | ||
) | ||
if mibBuilder.loadTexts: | ||
pysnmpSourceMIB.setLastUpdated("201704140000Z") | ||
if mibBuilder.loadTexts: | ||
pysnmpSourceMIB.setOrganization("The PySNMP Project") | ||
if mibBuilder.loadTexts: | ||
pysnmpSourceMIB.setContactInfo( | ||
"E-mail: Lex Li <[email protected]> GitHub: https://github.com/lextudio/pysnmp" | ||
) | ||
if mibBuilder.loadTexts: | ||
pysnmpSourceMIB.setDescription( | ||
"This MIB module defines implementation specific objects that provide variable source transport endpoints feature to SNMP Engine and Standard SNMP 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.setStatus('current') | ||
if mibBuilder.loadTexts: snmpSourceAddrTable.setDescription('A table of transport addresses to be used as a source in the generation of SNMP messages. This table contains additional objects for the SNMP-TRANSPORT-ADDRESS::snmpSourceAddressTable.') | ||
snmpSourceAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 1, 1, 1), ) | ||
snmpSourceAddrTable = MibTable( | ||
(1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 1, 1), | ||
) | ||
if mibBuilder.loadTexts: | ||
snmpSourceAddrTable.setStatus("current") | ||
if mibBuilder.loadTexts: | ||
snmpSourceAddrTable.setDescription( | ||
"A table of transport addresses to be used as a source in the generation of SNMP messages. This table contains additional 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.setStatus('current') | ||
if mibBuilder.loadTexts: snmpSourceAddrEntry.setDescription('A transport address to be used as a source in the generation of SNMP operations. An entry containing additional management information 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.setStatus('current') | ||
if mibBuilder.loadTexts: snmpSourceAddrTAddress.setDescription('This object contains a transport address. The format of this address depends on the value of the snmpSourceAddrTDomain object.') | ||
if mibBuilder.loadTexts: | ||
snmpSourceAddrEntry.setStatus("current") | ||
if mibBuilder.loadTexts: | ||
snmpSourceAddrEntry.setDescription( | ||
"A transport address to be used as a source in the generation of SNMP operations. An entry containing additional management information applicable to a particular target." | ||
) | ||
snmpSourceAddrTAddress = MibTableColumn( | ||
(1, 3, 6, 1, 4, 1, 20408, 3, 1, 8, 1, 1, 1, 1), TAddress() | ||
).setMaxAccess("read-create") | ||
if mibBuilder.loadTexts: | ||
snmpSourceAddrTAddress.setStatus("current") | ||
if mibBuilder.loadTexts: | ||
snmpSourceAddrTAddress.setDescription( | ||
"This object contains a transport address. The format of this address depends on the value of the 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", pysnmpSourceMIBConformance=pysnmpSourceMIBConformance, pysnmpSourceMIB=pysnmpSourceMIB, snmpSourceAddrTable=snmpSourceAddrTable, snmpSourceAddrEntry=snmpSourceAddrEntry, pysnmpSourceMIBGroups=pysnmpSourceMIBGroups, PYSNMP_MODULE_ID=pysnmpSourceMIB, snmpSourceAddrTAddress=snmpSourceAddrTAddress, pysnmpSourceMIBObjects=pysnmpSourceMIBObjects, pysnmpSourceMIBCompliances=pysnmpSourceMIBCompliances) | ||
mibBuilder.exportSymbols( | ||
"PYSNMP-SOURCE-MIB", | ||
pysnmpSourceMIBConformance=pysnmpSourceMIBConformance, | ||
pysnmpSourceMIB=pysnmpSourceMIB, | ||
snmpSourceAddrTable=snmpSourceAddrTable, | ||
snmpSourceAddrEntry=snmpSourceAddrEntry, | ||
pysnmpSourceMIBGroups=pysnmpSourceMIBGroups, | ||
PYSNMP_MODULE_ID=pysnmpSourceMIB, | ||
snmpSourceAddrTAddress=snmpSourceAddrTAddress, | ||
pysnmpSourceMIBObjects=pysnmpSourceMIBObjects, | ||
pysnmpSourceMIBCompliances=pysnmpSourceMIBCompliances, | ||
) |
Oops, something went wrong.