content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
"""Exception hierarchy for the zeekscript package.""" class Error(Exception): """Base class for all zeekscript errors.""" class FileError(Error): """System errors while processing script files""" class ParserError(Error): """A hard parsing error, producing no parse tree."""
"""Exception hierarchy for the zeekscript package.""" class Error(Exception): """Base class for all zeekscript errors.""" class Fileerror(Error): """System errors while processing script files""" class Parsererror(Error): """A hard parsing error, producing no parse tree."""
# # PySNMP MIB module ENTERASYS-POWER-ETHERNET-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-POWER-ETHERNET-EXT-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:04:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # 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") etsysModules, = mibBuilder.importSymbols("ENTERASYS-MIB-NAMES", "etsysModules") entPhysicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex") EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus") pethPsePortEntry, pethMainPseEntry = mibBuilder.importSymbols("POWER-ETHERNET-MIB", "pethPsePortEntry", "pethMainPseEntry") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") MibIdentifier, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, ModuleIdentity, ObjectIdentity, Unsigned32, NotificationType, Integer32, Bits, iso, IpAddress, Counter32, Bits, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "ModuleIdentity", "ObjectIdentity", "Unsigned32", "NotificationType", "Integer32", "Bits", "iso", "IpAddress", "Counter32", "Bits", "Gauge32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") etsysPowerEthernetMibExtMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50)) etsysPowerEthernetMibExtMIB.setRevisions(('2009-08-27 20:31', '2005-01-10 16:30', '2004-08-17 22:27',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setRevisionsDescriptions(('Adding objects to support IEEE Std. 802.3at functionality. Changes to etsysPsePortPowerManagementTable: - Increased max etsysPsePortPowerLimit range to 34000. - Added etsysPsePortCapability, etsysPsePortCapabilitySelect, and etsysPsePortDetectionStatus objects.', 'Added the power management functionality.', 'The initial version of this MIB module',)) if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setLastUpdated('200908272031Z') if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setOrganization('Enterasys Networks, Inc') if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setContactInfo('Postal: Enterasys Networks 50 Minuteman Rd. Andover, MA 01810-1008 USA Phone: +1 978 684 1000 E-mail: support@enterasys.com WWW: http://www.enterasys.com') if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setDescription('This MIB module defines a portion of the SNMP MIB under the Enterasys Networks enterprise OID pertaining to the allocation of power in a Pse chassis.') etsysPowerEthernetObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1)) etsysPseChassisPowerAllocation = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 1)) etsysPseSlotPowerAllocation = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2)) etsysPseChassisPowerStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3)) etsysPseSlotPowerManagement = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4)) etsysPsePortPowerManagement = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5)) etsysPsePowerNotification = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 0)) etsysPseChassisPowerAllocationMode = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("auto", 1), ("manual", 2))).clone('auto')).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysPseChassisPowerAllocationMode.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerAllocationMode.setDescription('In auto mode, a Pse Power Management Algorithm handles the allocation of power to all the modules. In manual mode, power is manually allocated to the modules via the etsysPseSlotPowerAllocationTable. The value of etsysPseChassisPowerAllocationAvailable is used to determine the power available for allocation in this chassis in both auto and manual mode. Maintaining the value of this object across agent reboots is REQUIRED.') etsysPseChassisPowerSnmpNotification = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 1, 2), EnabledStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysPseChassisPowerSnmpNotification.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerSnmpNotification.setDescription('The current state of the SNMP Notification functionality for Pse. enabled (1) - The Pse will generate SNMP Notifications for potentially adverse Pse power conditions. The generation of these notifications are NOT dependant upon the state of etsysPseChassisPowerAllocationMode. disabled (2) - The SNMP Notifications defined in this MIB will NOT be generated under any conditions. Agents are not required to generate SNMP Notifications for conditions that exist when this object is set to enabled. Maintaining the value of this object across agent reboots is REQUIRED.') etsysPseChassisPowerAvailableMaximum = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 100)).clone(100)).setUnits('percent').setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysPseChassisPowerAvailableMaximum.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerAvailableMaximum.setDescription('The maximum percentage of power from the Pse Power Supply that this chassis can use. The default value should be 100 percent, meaning the chassis can use all the power detected from Pse Power Supply. Maintaining the value of this object across agent reboots is REQUIRED.') etsysPseSlotPowerAllocationTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2, 1), ) if mibBuilder.loadTexts: etsysPseSlotPowerAllocationTable.setStatus('current') if mibBuilder.loadTexts: etsysPseSlotPowerAllocationTable.setDescription('Power allocation management information for all slots.') etsysPseSlotPowerAllocationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2, 1, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: etsysPseSlotPowerAllocationEntry.setStatus('current') if mibBuilder.loadTexts: etsysPseSlotPowerAllocationEntry.setDescription('Power allocation management information for an entPhysicalEntry that has an entPhysicalClass of container(5) and represents a slot in the chassis that could be occupied by a Pse module.') etsysPseSlotPowerMaximum = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2, 1, 1, 1), Unsigned32()).setUnits('Watts').setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPseSlotPowerMaximum.setStatus('current') if mibBuilder.loadTexts: etsysPseSlotPowerMaximum.setDescription("The maximum power that can be consumed by the module in this slot, based on the module's characteristics. For slots without Pse modules this object MUST return zero.") etsysPseSlotPowerAssigned = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2, 1, 1, 2), Unsigned32()).setUnits('Watts').setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysPseSlotPowerAssigned.setStatus('current') if mibBuilder.loadTexts: etsysPseSlotPowerAssigned.setDescription('The power that will be allocated to this slot in manual mode. In auto mode, this object has no effect. Maintaining the value of this object across agent reboots is REQUIRED.') etsysPseChassisPowerDetected = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 1), Gauge32()).setUnits('Watts').setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPseChassisPowerDetected.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerDetected.setDescription('The total power detected by the chassis from Pse Power Supply.') etsysPseChassisPowerAvailable = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 2), Gauge32()).setUnits('Watts').setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPseChassisPowerAvailable.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerAvailable.setDescription('The total power available for this chassis. This is ( etsysPseChassisPowerDetected * ( etsysPseChassisPowerAvailableMaximum / 100 ) ).') etsysPseChassisPowerConsumable = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 3), Gauge32()).setUnits('Watts').setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPseChassisPowerConsumable.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerConsumable.setDescription('The total power that could be consumed by all of the Pse modules in the chassis. This is the summation of the values of all of the etsysPseSlotPowerMaximum objects.') etsysPseChassisPowerAssigned = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 4), Unsigned32()).setUnits('Watts').setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPseChassisPowerAssigned.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerAssigned.setDescription('The total power assigned to the slots in the chassis. This is the summation of the values of all of the etsysPseSlotPowerAssigned objects.') etsysPseChassisPowerRedundancy = MibScalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("redundant", 1), ("notRedundant", 2), ("notSupported", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPseChassisPowerRedundancy.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerRedundancy.setDescription('Denotes whether or not the Pse power system has redundant capacity.') etsysPseModulePowerManagementTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1), ) if mibBuilder.loadTexts: etsysPseModulePowerManagementTable.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerManagementTable.setDescription('This table augments the pethMainPseTable of the PowerEthernetMIB (rfc3621). It provides objects that are used to budget power.') etsysPseModulePowerManagementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1, 1), ) pethMainPseEntry.registerAugmentions(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseModulePowerManagementEntry")) etsysPseModulePowerManagementEntry.setIndexNames(*pethMainPseEntry.getIndexNames()) if mibBuilder.loadTexts: etsysPseModulePowerManagementEntry.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerManagementEntry.setDescription('A set of objects that display, control, and calculate the power consumption of a PSE.') etsysPseModulePowerMode = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("realtime", 1), ("class", 2))).clone('realtime')).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysPseModulePowerMode.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerMode.setDescription('This object controls the power management of the PSE. It also controls how etsysPseModulePowerClassBudget, etsysPseModulePowerUsage and etsysPsePortPowerLimit are utilized. In realtime mode, the power is managed based on the actual power consumption of the ports. etsysPseModulePowerClassBudget is sum of power consumed by all ports, measured in real-time. The etsysPseModulePowerUsage is ratio of pethMainPseConsumptionPower over pethMainPsePower, expressed in percents. In class mode, the power is managed based on the IEEE 802.3af definition of the class upper limit, except classes 0 & 4 for which the actual power consumption is used. etsysPseModulePowerClassBudget is sum of all ports power according to their class upper bound, except classes 0 & 4 for which the actual power consumption is accounted. The etsysPseModulePowerUsage is ratio of etsysPseModulePowerClassBudget over pethMainPsePower, expressed in percents. The effect of etsysPseModulePowerMode to etsysPsePortPowerLimit is described in etsysPsePortPowerLimit definition. Maintaining the value of this object across agent reboots is REQUIRED.') etsysPseModulePowerClassBudget = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1, 1, 2), Gauge32()).setUnits('Watts').setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPseModulePowerClassBudget.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerClassBudget.setDescription('In class mode, this is sum of all ports power according to their class upper bound, except classes 0 & 4 for which the actual power consumption is accounted. In realtime mode, this is sum of power consumed by all ports, measured in real-time.') etsysPseModulePowerUsage = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('%').setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPseModulePowerUsage.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerUsage.setDescription('In class mode, this is ratio of etsysPseModulePowerClassBudget over pethMainPsePower, expressed in percents. In realtime mode, this is ratio of pethMainPseConsumptionPower over pethMainPsePower, expressed in percents.') etsysPsePortPowerManagementTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1), ) if mibBuilder.loadTexts: etsysPsePortPowerManagementTable.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerManagementTable.setDescription('This table augments the pethPsePortTable of the PowerEthernetMIB (rfc3621). It provides objects that are used to budget power.') etsysPsePortPowerManagementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1), ) pethPsePortEntry.registerAugmentions(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortPowerManagementEntry")) etsysPsePortPowerManagementEntry.setIndexNames(*pethPsePortEntry.getIndexNames()) if mibBuilder.loadTexts: etsysPsePortPowerManagementEntry.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerManagementEntry.setDescription('A set of objects that display and control the power consumption of a PSE, at the port level.') etsysPsePortPowerLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 34000)).clone(15400)).setUnits('milliwatts').setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysPsePortPowerLimit.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerLimit.setDescription("This object sets the maximum power allowed on this port. If the port exceeds its power limit, it will be shut down. This object has effect only when its module is in realtime mode (specified by etsysPseModulePowerMode). In class mode, the power limit of a port is defined by port's class upper bound, according to the IEEE standard selected in etsysPsePortCapabilitySelect.") etsysPsePortPowerUsage = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 2), Gauge32()).setUnits('milliwatts').setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPsePortPowerUsage.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerUsage.setDescription('Actual power consumption measured in real-time.') etsysPsePortPDType = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("legacy", 1), ("ieee8023af", 2), ("other", 3), ("ieee8023", 4), ("ieee8023at", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPsePortPDType.setReference('IEEE Std 802.3af IEEE Std 802.3at') if mibBuilder.loadTexts: etsysPsePortPDType.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPDType.setDescription('Describes the detected PD type on this port. A value of legacy(1) - indicates that the PD is using a capacitive signature, which is pre-IEEE standard. A value of ieee8023af(2)- indicates that the PD is using a resistive signature and is compliant with the IEEE Std 802.3af. A value of other(3) - indicates that the PD type could not be determined. A value of ieee8023(4)- indicates that the PD is using a resistive signature and is compliant with the IEEE Std 802.3af and/or IEEE Std 802.3at specifications. A value of ieee8023at(5)- indicates that the PD is using a resistive signature and is compliant with the IEEE Std 802.3at.') etsysPsePortCapability = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 4), Bits().clone(namedValues=NamedValues(("other", 0), ("ieee8023afCapable", 1), ("ieee8023atCapable", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPsePortCapability.setReference('IEEE Std 802.3af IEEE Std 802.3at') if mibBuilder.loadTexts: etsysPsePortCapability.setStatus('current') if mibBuilder.loadTexts: etsysPsePortCapability.setDescription('This object indicates the IEEE Power over Ethernet standard this port supports.') etsysPsePortCapabilitySelect = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ieee8023af", 1), ("ieee8023at", 2))).clone('ieee8023af')).setMaxAccess("readwrite") if mibBuilder.loadTexts: etsysPsePortCapabilitySelect.setReference('IEEE Std 802.3af IEEE Std 802.3at') if mibBuilder.loadTexts: etsysPsePortCapabilitySelect.setStatus('current') if mibBuilder.loadTexts: etsysPsePortCapabilitySelect.setDescription("This object sets the port's power management capabilities based on the IEEE standard. ieee8023af (1) : IEEE Std 802.3af ieee8023at (2) : IEEE Std 802.3at Attempting to set this value to a capability that is not supported, as indicated by etsysPsePortCapability, will result in an inconsistentValue error.") etsysPsePortDetectionStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("disabled", 1), ("searching", 2), ("deliveringPower", 3), ("fault", 4), ("test", 5), ("otherFault", 6), ("requestingPower", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPsePortDetectionStatus.setStatus('current') if mibBuilder.loadTexts: etsysPsePortDetectionStatus.setDescription("Describes the operational status of the port PD detection. A value of disabled(1)- indicates that the PSE State diagram is in the state DISABLED. A value of deliveringPower(3) - indicates that the PSE State diagram is in the state POWER_ON for a duration greater than tlim max. A value of fault(4) - indicates that the PSE State diagram is in the state TEST_ERROR. A value of test(5) - indicates that the PSE State diagram is in the state TEST_MODE. A value of otherFault(6) - indicates that the PSE State diagram is in the state IDLE due to the variable error_conditions. A value of searching(2)- indicates the PSE State diagram is in a state other than those listed above. A value of requestingPower(7) - indicates the PSE State diagram is in the state IDLE after transitioning from the state POWER_DENIED due to insufficient PSE power being available to satisfy the PD's requirements.") etsysPsePowerSupplyStatusTable = MibTable((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 6), ) if mibBuilder.loadTexts: etsysPsePowerSupplyStatusTable.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyStatusTable.setDescription('Status information for all of the Pse power supply modules.') etsysPsePowerSupplyStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 6, 1), ).setIndexNames((0, "ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerSupplyModuleNumber")) if mibBuilder.loadTexts: etsysPsePowerSupplyStatusEntry.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyStatusEntry.setDescription('Status information for an individual Pse power supply module.') etsysPsePowerSupplyModuleNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 6, 1, 1), Unsigned32()) if mibBuilder.loadTexts: etsysPsePowerSupplyModuleNumber.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyModuleNumber.setDescription("A unique number that identifies the Pse power supply and is relative to the module's physical location.") etsysPsePowerSupplyModuleStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("infoNotAvailable", 1), ("notInstalled", 2), ("installedAndOperating", 3), ("installedAndNotOperating", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: etsysPsePowerSupplyModuleStatus.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyModuleStatus.setDescription("Denotes the power supply's status.") etsysPseChassisPowerRedundant = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 0, 1)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerDetected")) if mibBuilder.loadTexts: etsysPseChassisPowerRedundant.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerRedundant.setDescription('Pse chassis power is in redundant state. At least 500 msec must elapse between notifications being emitted by the same object instance.') etsysPseChassisPowerNonRedundant = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 0, 2)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerDetected")) if mibBuilder.loadTexts: etsysPseChassisPowerNonRedundant.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerNonRedundant.setDescription('Pse chassis power is in non-redundant state. At least 500 msec must elapse between notifications being emitted by the same object instance.') etsysPsePowerSupplyModuleStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 0, 3)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerSupplyModuleStatus")) if mibBuilder.loadTexts: etsysPsePowerSupplyModuleStatusChange.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyModuleStatusChange.setDescription('A Pse Power Supply module has changed state. At least 500 msec must elapse between notifications being emitted by the same object instance.') etsysPsePowerAllocationConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2)) etsysPsePowerAllocationGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1)) etsysPsePowerAllocationCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 2)) etsysPsePowerAllocationControlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 1)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerAllocationMode"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerSnmpNotification"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerAvailableMaximum"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseSlotPowerMaximum"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseSlotPowerAssigned")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysPsePowerAllocationControlGroup = etsysPsePowerAllocationControlGroup.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerAllocationControlGroup.setDescription('Power over Ethernet Power Allocation Control group.') etsysPseChassisPowerStatusGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 2)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerDetected"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerAvailable"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerConsumable"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerAssigned"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerRedundancy"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerSupplyModuleStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysPseChassisPowerStatusGroup = etsysPseChassisPowerStatusGroup.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerStatusGroup.setDescription('Power over Ethernet Power Supply group.') etsysPsePowerNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 3)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerRedundant"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerNonRedundant"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerSupplyModuleStatusChange")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysPsePowerNotificationGroup = etsysPsePowerNotificationGroup.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerNotificationGroup.setDescription('Power over Ethernet Power Redundancy Notifications group.') etsysPseModulePowerManagementGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 4)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseModulePowerMode"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseModulePowerClassBudget"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseModulePowerUsage")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysPseModulePowerManagementGroup = etsysPseModulePowerManagementGroup.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerManagementGroup.setDescription('Power over Ethernet Module Power Budget Management group.') etsysPsePortPowerManagementGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 5)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortPowerLimit"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortPowerUsage"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortPDType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysPsePortPowerManagementGroup = etsysPsePortPowerManagementGroup.setStatus('deprecated') if mibBuilder.loadTexts: etsysPsePortPowerManagementGroup.setDescription('Power over Ethernet Port Power Budget Management group.') etsysPsePortPowerManagementGroupRev2 = ObjectGroup((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 6)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortPowerLimit"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortPowerUsage"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortPDType"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortCapability"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortCapabilitySelect"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortDetectionStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysPsePortPowerManagementGroupRev2 = etsysPsePortPowerManagementGroupRev2.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerManagementGroupRev2.setDescription('Power over Ethernet Port Power Budget Management group.') etsysPsePowerAllocationCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 2, 1)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerAllocationControlGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerStatusGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerNotificationGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysPsePowerAllocationCompliance = etsysPsePowerAllocationCompliance.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerAllocationCompliance.setDescription('The compliance statement for devices that support manual power allocation.') etsysPsePowerAllocationCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 2, 2)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerAllocationControlGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerStatusGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerNotificationGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseModulePowerManagementGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortPowerManagementGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysPsePowerAllocationCompliance2 = etsysPsePowerAllocationCompliance2.setStatus('deprecated') if mibBuilder.loadTexts: etsysPsePowerAllocationCompliance2.setDescription('The compliance statement for devices that support power budgets.') etsysPsePowerAllocationCompliance2Rev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 2, 3)).setObjects(("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerAllocationControlGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseChassisPowerStatusGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePowerNotificationGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPseModulePowerManagementGroup"), ("ENTERASYS-POWER-ETHERNET-EXT-MIB", "etsysPsePortPowerManagementGroupRev2")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsysPsePowerAllocationCompliance2Rev2 = etsysPsePowerAllocationCompliance2Rev2.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerAllocationCompliance2Rev2.setDescription('The compliance statement for devices that support power budgets.') mibBuilder.exportSymbols("ENTERASYS-POWER-ETHERNET-EXT-MIB", etsysPseChassisPowerAvailable=etsysPseChassisPowerAvailable, etsysPseChassisPowerRedundancy=etsysPseChassisPowerRedundancy, etsysPsePortPowerManagementTable=etsysPsePortPowerManagementTable, etsysPseSlotPowerAllocationTable=etsysPseSlotPowerAllocationTable, etsysPseSlotPowerAssigned=etsysPseSlotPowerAssigned, etsysPseModulePowerManagementGroup=etsysPseModulePowerManagementGroup, etsysPowerEthernetMibExtMIB=etsysPowerEthernetMibExtMIB, etsysPseSlotPowerManagement=etsysPseSlotPowerManagement, etsysPseSlotPowerAllocation=etsysPseSlotPowerAllocation, etsysPseModulePowerManagementTable=etsysPseModulePowerManagementTable, etsysPsePortDetectionStatus=etsysPsePortDetectionStatus, etsysPseChassisPowerAssigned=etsysPseChassisPowerAssigned, etsysPsePowerSupplyModuleStatusChange=etsysPsePowerSupplyModuleStatusChange, etsysPsePowerAllocationConformance=etsysPsePowerAllocationConformance, etsysPsePortPDType=etsysPsePortPDType, etsysPsePowerSupplyModuleStatus=etsysPsePowerSupplyModuleStatus, etsysPsePortPowerManagementGroup=etsysPsePortPowerManagementGroup, etsysPsePowerSupplyModuleNumber=etsysPsePowerSupplyModuleNumber, etsysPsePowerAllocationGroups=etsysPsePowerAllocationGroups, etsysPowerEthernetObjects=etsysPowerEthernetObjects, etsysPsePortPowerLimit=etsysPsePortPowerLimit, etsysPsePortPowerManagementEntry=etsysPsePortPowerManagementEntry, etsysPseChassisPowerAllocationMode=etsysPseChassisPowerAllocationMode, etsysPsePowerAllocationCompliance2Rev2=etsysPsePowerAllocationCompliance2Rev2, etsysPseChassisPowerConsumable=etsysPseChassisPowerConsumable, etsysPsePowerSupplyStatusEntry=etsysPsePowerSupplyStatusEntry, etsysPseChassisPowerStatus=etsysPseChassisPowerStatus, etsysPsePowerAllocationControlGroup=etsysPsePowerAllocationControlGroup, etsysPseModulePowerClassBudget=etsysPseModulePowerClassBudget, etsysPsePowerAllocationCompliance2=etsysPsePowerAllocationCompliance2, etsysPseChassisPowerAvailableMaximum=etsysPseChassisPowerAvailableMaximum, etsysPseChassisPowerDetected=etsysPseChassisPowerDetected, etsysPsePortPowerUsage=etsysPsePortPowerUsage, etsysPsePowerSupplyStatusTable=etsysPsePowerSupplyStatusTable, etsysPseChassisPowerNonRedundant=etsysPseChassisPowerNonRedundant, etsysPseChassisPowerAllocation=etsysPseChassisPowerAllocation, etsysPseModulePowerUsage=etsysPseModulePowerUsage, etsysPseSlotPowerMaximum=etsysPseSlotPowerMaximum, etsysPsePowerAllocationCompliances=etsysPsePowerAllocationCompliances, etsysPsePortCapabilitySelect=etsysPsePortCapabilitySelect, etsysPseChassisPowerStatusGroup=etsysPseChassisPowerStatusGroup, etsysPsePowerAllocationCompliance=etsysPsePowerAllocationCompliance, etsysPseModulePowerManagementEntry=etsysPseModulePowerManagementEntry, etsysPsePortCapability=etsysPsePortCapability, etsysPseSlotPowerAllocationEntry=etsysPseSlotPowerAllocationEntry, etsysPsePowerNotification=etsysPsePowerNotification, etsysPseChassisPowerRedundant=etsysPseChassisPowerRedundant, etsysPsePortPowerManagementGroupRev2=etsysPsePortPowerManagementGroupRev2, etsysPseModulePowerMode=etsysPseModulePowerMode, etsysPsePortPowerManagement=etsysPsePortPowerManagement, PYSNMP_MODULE_ID=etsysPowerEthernetMibExtMIB, etsysPseChassisPowerSnmpNotification=etsysPseChassisPowerSnmpNotification, etsysPsePowerNotificationGroup=etsysPsePowerNotificationGroup)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint') (etsys_modules,) = mibBuilder.importSymbols('ENTERASYS-MIB-NAMES', 'etsysModules') (ent_physical_index,) = mibBuilder.importSymbols('ENTITY-MIB', 'entPhysicalIndex') (enabled_status,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'EnabledStatus') (peth_pse_port_entry, peth_main_pse_entry) = mibBuilder.importSymbols('POWER-ETHERNET-MIB', 'pethPsePortEntry', 'pethMainPseEntry') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (mib_identifier, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, module_identity, object_identity, unsigned32, notification_type, integer32, bits, iso, ip_address, counter32, bits, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'ModuleIdentity', 'ObjectIdentity', 'Unsigned32', 'NotificationType', 'Integer32', 'Bits', 'iso', 'IpAddress', 'Counter32', 'Bits', 'Gauge32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') etsys_power_ethernet_mib_ext_mib = module_identity((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50)) etsysPowerEthernetMibExtMIB.setRevisions(('2009-08-27 20:31', '2005-01-10 16:30', '2004-08-17 22:27')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setRevisionsDescriptions(('Adding objects to support IEEE Std. 802.3at functionality. Changes to etsysPsePortPowerManagementTable: - Increased max etsysPsePortPowerLimit range to 34000. - Added etsysPsePortCapability, etsysPsePortCapabilitySelect, and etsysPsePortDetectionStatus objects.', 'Added the power management functionality.', 'The initial version of this MIB module')) if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setLastUpdated('200908272031Z') if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setOrganization('Enterasys Networks, Inc') if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setContactInfo('Postal: Enterasys Networks 50 Minuteman Rd. Andover, MA 01810-1008 USA Phone: +1 978 684 1000 E-mail: support@enterasys.com WWW: http://www.enterasys.com') if mibBuilder.loadTexts: etsysPowerEthernetMibExtMIB.setDescription('This MIB module defines a portion of the SNMP MIB under the Enterasys Networks enterprise OID pertaining to the allocation of power in a Pse chassis.') etsys_power_ethernet_objects = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1)) etsys_pse_chassis_power_allocation = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 1)) etsys_pse_slot_power_allocation = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2)) etsys_pse_chassis_power_status = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3)) etsys_pse_slot_power_management = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4)) etsys_pse_port_power_management = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5)) etsys_pse_power_notification = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 0)) etsys_pse_chassis_power_allocation_mode = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('auto', 1), ('manual', 2))).clone('auto')).setMaxAccess('readwrite') if mibBuilder.loadTexts: etsysPseChassisPowerAllocationMode.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerAllocationMode.setDescription('In auto mode, a Pse Power Management Algorithm handles the allocation of power to all the modules. In manual mode, power is manually allocated to the modules via the etsysPseSlotPowerAllocationTable. The value of etsysPseChassisPowerAllocationAvailable is used to determine the power available for allocation in this chassis in both auto and manual mode. Maintaining the value of this object across agent reboots is REQUIRED.') etsys_pse_chassis_power_snmp_notification = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 1, 2), enabled_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: etsysPseChassisPowerSnmpNotification.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerSnmpNotification.setDescription('The current state of the SNMP Notification functionality for Pse. enabled (1) - The Pse will generate SNMP Notifications for potentially adverse Pse power conditions. The generation of these notifications are NOT dependant upon the state of etsysPseChassisPowerAllocationMode. disabled (2) - The SNMP Notifications defined in this MIB will NOT be generated under any conditions. Agents are not required to generate SNMP Notifications for conditions that exist when this object is set to enabled. Maintaining the value of this object across agent reboots is REQUIRED.') etsys_pse_chassis_power_available_maximum = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 100)).clone(100)).setUnits('percent').setMaxAccess('readwrite') if mibBuilder.loadTexts: etsysPseChassisPowerAvailableMaximum.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerAvailableMaximum.setDescription('The maximum percentage of power from the Pse Power Supply that this chassis can use. The default value should be 100 percent, meaning the chassis can use all the power detected from Pse Power Supply. Maintaining the value of this object across agent reboots is REQUIRED.') etsys_pse_slot_power_allocation_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2, 1)) if mibBuilder.loadTexts: etsysPseSlotPowerAllocationTable.setStatus('current') if mibBuilder.loadTexts: etsysPseSlotPowerAllocationTable.setDescription('Power allocation management information for all slots.') etsys_pse_slot_power_allocation_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2, 1, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: etsysPseSlotPowerAllocationEntry.setStatus('current') if mibBuilder.loadTexts: etsysPseSlotPowerAllocationEntry.setDescription('Power allocation management information for an entPhysicalEntry that has an entPhysicalClass of container(5) and represents a slot in the chassis that could be occupied by a Pse module.') etsys_pse_slot_power_maximum = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2, 1, 1, 1), unsigned32()).setUnits('Watts').setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPseSlotPowerMaximum.setStatus('current') if mibBuilder.loadTexts: etsysPseSlotPowerMaximum.setDescription("The maximum power that can be consumed by the module in this slot, based on the module's characteristics. For slots without Pse modules this object MUST return zero.") etsys_pse_slot_power_assigned = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 2, 1, 1, 2), unsigned32()).setUnits('Watts').setMaxAccess('readwrite') if mibBuilder.loadTexts: etsysPseSlotPowerAssigned.setStatus('current') if mibBuilder.loadTexts: etsysPseSlotPowerAssigned.setDescription('The power that will be allocated to this slot in manual mode. In auto mode, this object has no effect. Maintaining the value of this object across agent reboots is REQUIRED.') etsys_pse_chassis_power_detected = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 1), gauge32()).setUnits('Watts').setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPseChassisPowerDetected.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerDetected.setDescription('The total power detected by the chassis from Pse Power Supply.') etsys_pse_chassis_power_available = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 2), gauge32()).setUnits('Watts').setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPseChassisPowerAvailable.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerAvailable.setDescription('The total power available for this chassis. This is ( etsysPseChassisPowerDetected * ( etsysPseChassisPowerAvailableMaximum / 100 ) ).') etsys_pse_chassis_power_consumable = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 3), gauge32()).setUnits('Watts').setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPseChassisPowerConsumable.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerConsumable.setDescription('The total power that could be consumed by all of the Pse modules in the chassis. This is the summation of the values of all of the etsysPseSlotPowerMaximum objects.') etsys_pse_chassis_power_assigned = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 4), unsigned32()).setUnits('Watts').setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPseChassisPowerAssigned.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerAssigned.setDescription('The total power assigned to the slots in the chassis. This is the summation of the values of all of the etsysPseSlotPowerAssigned objects.') etsys_pse_chassis_power_redundancy = mib_scalar((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('redundant', 1), ('notRedundant', 2), ('notSupported', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPseChassisPowerRedundancy.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerRedundancy.setDescription('Denotes whether or not the Pse power system has redundant capacity.') etsys_pse_module_power_management_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1)) if mibBuilder.loadTexts: etsysPseModulePowerManagementTable.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerManagementTable.setDescription('This table augments the pethMainPseTable of the PowerEthernetMIB (rfc3621). It provides objects that are used to budget power.') etsys_pse_module_power_management_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1, 1)) pethMainPseEntry.registerAugmentions(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseModulePowerManagementEntry')) etsysPseModulePowerManagementEntry.setIndexNames(*pethMainPseEntry.getIndexNames()) if mibBuilder.loadTexts: etsysPseModulePowerManagementEntry.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerManagementEntry.setDescription('A set of objects that display, control, and calculate the power consumption of a PSE.') etsys_pse_module_power_mode = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('realtime', 1), ('class', 2))).clone('realtime')).setMaxAccess('readwrite') if mibBuilder.loadTexts: etsysPseModulePowerMode.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerMode.setDescription('This object controls the power management of the PSE. It also controls how etsysPseModulePowerClassBudget, etsysPseModulePowerUsage and etsysPsePortPowerLimit are utilized. In realtime mode, the power is managed based on the actual power consumption of the ports. etsysPseModulePowerClassBudget is sum of power consumed by all ports, measured in real-time. The etsysPseModulePowerUsage is ratio of pethMainPseConsumptionPower over pethMainPsePower, expressed in percents. In class mode, the power is managed based on the IEEE 802.3af definition of the class upper limit, except classes 0 & 4 for which the actual power consumption is used. etsysPseModulePowerClassBudget is sum of all ports power according to their class upper bound, except classes 0 & 4 for which the actual power consumption is accounted. The etsysPseModulePowerUsage is ratio of etsysPseModulePowerClassBudget over pethMainPsePower, expressed in percents. The effect of etsysPseModulePowerMode to etsysPsePortPowerLimit is described in etsysPsePortPowerLimit definition. Maintaining the value of this object across agent reboots is REQUIRED.') etsys_pse_module_power_class_budget = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1, 1, 2), gauge32()).setUnits('Watts').setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPseModulePowerClassBudget.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerClassBudget.setDescription('In class mode, this is sum of all ports power according to their class upper bound, except classes 0 & 4 for which the actual power consumption is accounted. In realtime mode, this is sum of power consumed by all ports, measured in real-time.') etsys_pse_module_power_usage = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 4, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('%').setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPseModulePowerUsage.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerUsage.setDescription('In class mode, this is ratio of etsysPseModulePowerClassBudget over pethMainPsePower, expressed in percents. In realtime mode, this is ratio of pethMainPseConsumptionPower over pethMainPsePower, expressed in percents.') etsys_pse_port_power_management_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1)) if mibBuilder.loadTexts: etsysPsePortPowerManagementTable.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerManagementTable.setDescription('This table augments the pethPsePortTable of the PowerEthernetMIB (rfc3621). It provides objects that are used to budget power.') etsys_pse_port_power_management_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1)) pethPsePortEntry.registerAugmentions(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortPowerManagementEntry')) etsysPsePortPowerManagementEntry.setIndexNames(*pethPsePortEntry.getIndexNames()) if mibBuilder.loadTexts: etsysPsePortPowerManagementEntry.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerManagementEntry.setDescription('A set of objects that display and control the power consumption of a PSE, at the port level.') etsys_pse_port_power_limit = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 34000)).clone(15400)).setUnits('milliwatts').setMaxAccess('readwrite') if mibBuilder.loadTexts: etsysPsePortPowerLimit.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerLimit.setDescription("This object sets the maximum power allowed on this port. If the port exceeds its power limit, it will be shut down. This object has effect only when its module is in realtime mode (specified by etsysPseModulePowerMode). In class mode, the power limit of a port is defined by port's class upper bound, according to the IEEE standard selected in etsysPsePortCapabilitySelect.") etsys_pse_port_power_usage = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 2), gauge32()).setUnits('milliwatts').setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPsePortPowerUsage.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerUsage.setDescription('Actual power consumption measured in real-time.') etsys_pse_port_pd_type = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('legacy', 1), ('ieee8023af', 2), ('other', 3), ('ieee8023', 4), ('ieee8023at', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPsePortPDType.setReference('IEEE Std 802.3af IEEE Std 802.3at') if mibBuilder.loadTexts: etsysPsePortPDType.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPDType.setDescription('Describes the detected PD type on this port. A value of legacy(1) - indicates that the PD is using a capacitive signature, which is pre-IEEE standard. A value of ieee8023af(2)- indicates that the PD is using a resistive signature and is compliant with the IEEE Std 802.3af. A value of other(3) - indicates that the PD type could not be determined. A value of ieee8023(4)- indicates that the PD is using a resistive signature and is compliant with the IEEE Std 802.3af and/or IEEE Std 802.3at specifications. A value of ieee8023at(5)- indicates that the PD is using a resistive signature and is compliant with the IEEE Std 802.3at.') etsys_pse_port_capability = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 4), bits().clone(namedValues=named_values(('other', 0), ('ieee8023afCapable', 1), ('ieee8023atCapable', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPsePortCapability.setReference('IEEE Std 802.3af IEEE Std 802.3at') if mibBuilder.loadTexts: etsysPsePortCapability.setStatus('current') if mibBuilder.loadTexts: etsysPsePortCapability.setDescription('This object indicates the IEEE Power over Ethernet standard this port supports.') etsys_pse_port_capability_select = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ieee8023af', 1), ('ieee8023at', 2))).clone('ieee8023af')).setMaxAccess('readwrite') if mibBuilder.loadTexts: etsysPsePortCapabilitySelect.setReference('IEEE Std 802.3af IEEE Std 802.3at') if mibBuilder.loadTexts: etsysPsePortCapabilitySelect.setStatus('current') if mibBuilder.loadTexts: etsysPsePortCapabilitySelect.setDescription("This object sets the port's power management capabilities based on the IEEE standard. ieee8023af (1) : IEEE Std 802.3af ieee8023at (2) : IEEE Std 802.3at Attempting to set this value to a capability that is not supported, as indicated by etsysPsePortCapability, will result in an inconsistentValue error.") etsys_pse_port_detection_status = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 5, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('disabled', 1), ('searching', 2), ('deliveringPower', 3), ('fault', 4), ('test', 5), ('otherFault', 6), ('requestingPower', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPsePortDetectionStatus.setStatus('current') if mibBuilder.loadTexts: etsysPsePortDetectionStatus.setDescription("Describes the operational status of the port PD detection. A value of disabled(1)- indicates that the PSE State diagram is in the state DISABLED. A value of deliveringPower(3) - indicates that the PSE State diagram is in the state POWER_ON for a duration greater than tlim max. A value of fault(4) - indicates that the PSE State diagram is in the state TEST_ERROR. A value of test(5) - indicates that the PSE State diagram is in the state TEST_MODE. A value of otherFault(6) - indicates that the PSE State diagram is in the state IDLE due to the variable error_conditions. A value of searching(2)- indicates the PSE State diagram is in a state other than those listed above. A value of requestingPower(7) - indicates the PSE State diagram is in the state IDLE after transitioning from the state POWER_DENIED due to insufficient PSE power being available to satisfy the PD's requirements.") etsys_pse_power_supply_status_table = mib_table((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 6)) if mibBuilder.loadTexts: etsysPsePowerSupplyStatusTable.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyStatusTable.setDescription('Status information for all of the Pse power supply modules.') etsys_pse_power_supply_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 6, 1)).setIndexNames((0, 'ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerSupplyModuleNumber')) if mibBuilder.loadTexts: etsysPsePowerSupplyStatusEntry.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyStatusEntry.setDescription('Status information for an individual Pse power supply module.') etsys_pse_power_supply_module_number = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 6, 1, 1), unsigned32()) if mibBuilder.loadTexts: etsysPsePowerSupplyModuleNumber.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyModuleNumber.setDescription("A unique number that identifies the Pse power supply and is relative to the module's physical location.") etsys_pse_power_supply_module_status = mib_table_column((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 3, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('infoNotAvailable', 1), ('notInstalled', 2), ('installedAndOperating', 3), ('installedAndNotOperating', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: etsysPsePowerSupplyModuleStatus.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyModuleStatus.setDescription("Denotes the power supply's status.") etsys_pse_chassis_power_redundant = notification_type((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 0, 1)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerDetected')) if mibBuilder.loadTexts: etsysPseChassisPowerRedundant.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerRedundant.setDescription('Pse chassis power is in redundant state. At least 500 msec must elapse between notifications being emitted by the same object instance.') etsys_pse_chassis_power_non_redundant = notification_type((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 0, 2)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerDetected')) if mibBuilder.loadTexts: etsysPseChassisPowerNonRedundant.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerNonRedundant.setDescription('Pse chassis power is in non-redundant state. At least 500 msec must elapse between notifications being emitted by the same object instance.') etsys_pse_power_supply_module_status_change = notification_type((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 1, 0, 3)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerSupplyModuleStatus')) if mibBuilder.loadTexts: etsysPsePowerSupplyModuleStatusChange.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerSupplyModuleStatusChange.setDescription('A Pse Power Supply module has changed state. At least 500 msec must elapse between notifications being emitted by the same object instance.') etsys_pse_power_allocation_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2)) etsys_pse_power_allocation_groups = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1)) etsys_pse_power_allocation_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 2)) etsys_pse_power_allocation_control_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 1)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerAllocationMode'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerSnmpNotification'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerAvailableMaximum'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseSlotPowerMaximum'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseSlotPowerAssigned')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsys_pse_power_allocation_control_group = etsysPsePowerAllocationControlGroup.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerAllocationControlGroup.setDescription('Power over Ethernet Power Allocation Control group.') etsys_pse_chassis_power_status_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 2)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerDetected'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerAvailable'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerConsumable'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerAssigned'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerRedundancy'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerSupplyModuleStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsys_pse_chassis_power_status_group = etsysPseChassisPowerStatusGroup.setStatus('current') if mibBuilder.loadTexts: etsysPseChassisPowerStatusGroup.setDescription('Power over Ethernet Power Supply group.') etsys_pse_power_notification_group = notification_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 3)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerRedundant'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerNonRedundant'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerSupplyModuleStatusChange')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsys_pse_power_notification_group = etsysPsePowerNotificationGroup.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerNotificationGroup.setDescription('Power over Ethernet Power Redundancy Notifications group.') etsys_pse_module_power_management_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 4)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseModulePowerMode'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseModulePowerClassBudget'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseModulePowerUsage')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsys_pse_module_power_management_group = etsysPseModulePowerManagementGroup.setStatus('current') if mibBuilder.loadTexts: etsysPseModulePowerManagementGroup.setDescription('Power over Ethernet Module Power Budget Management group.') etsys_pse_port_power_management_group = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 5)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortPowerLimit'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortPowerUsage'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortPDType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsys_pse_port_power_management_group = etsysPsePortPowerManagementGroup.setStatus('deprecated') if mibBuilder.loadTexts: etsysPsePortPowerManagementGroup.setDescription('Power over Ethernet Port Power Budget Management group.') etsys_pse_port_power_management_group_rev2 = object_group((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 1, 6)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortPowerLimit'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortPowerUsage'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortPDType'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortCapability'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortCapabilitySelect'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortDetectionStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsys_pse_port_power_management_group_rev2 = etsysPsePortPowerManagementGroupRev2.setStatus('current') if mibBuilder.loadTexts: etsysPsePortPowerManagementGroupRev2.setDescription('Power over Ethernet Port Power Budget Management group.') etsys_pse_power_allocation_compliance = module_compliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 2, 1)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerAllocationControlGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerStatusGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerNotificationGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsys_pse_power_allocation_compliance = etsysPsePowerAllocationCompliance.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerAllocationCompliance.setDescription('The compliance statement for devices that support manual power allocation.') etsys_pse_power_allocation_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 2, 2)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerAllocationControlGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerStatusGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerNotificationGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseModulePowerManagementGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortPowerManagementGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsys_pse_power_allocation_compliance2 = etsysPsePowerAllocationCompliance2.setStatus('deprecated') if mibBuilder.loadTexts: etsysPsePowerAllocationCompliance2.setDescription('The compliance statement for devices that support power budgets.') etsys_pse_power_allocation_compliance2_rev2 = module_compliance((1, 3, 6, 1, 4, 1, 5624, 1, 2, 50, 2, 2, 3)).setObjects(('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerAllocationControlGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseChassisPowerStatusGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePowerNotificationGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPseModulePowerManagementGroup'), ('ENTERASYS-POWER-ETHERNET-EXT-MIB', 'etsysPsePortPowerManagementGroupRev2')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): etsys_pse_power_allocation_compliance2_rev2 = etsysPsePowerAllocationCompliance2Rev2.setStatus('current') if mibBuilder.loadTexts: etsysPsePowerAllocationCompliance2Rev2.setDescription('The compliance statement for devices that support power budgets.') mibBuilder.exportSymbols('ENTERASYS-POWER-ETHERNET-EXT-MIB', etsysPseChassisPowerAvailable=etsysPseChassisPowerAvailable, etsysPseChassisPowerRedundancy=etsysPseChassisPowerRedundancy, etsysPsePortPowerManagementTable=etsysPsePortPowerManagementTable, etsysPseSlotPowerAllocationTable=etsysPseSlotPowerAllocationTable, etsysPseSlotPowerAssigned=etsysPseSlotPowerAssigned, etsysPseModulePowerManagementGroup=etsysPseModulePowerManagementGroup, etsysPowerEthernetMibExtMIB=etsysPowerEthernetMibExtMIB, etsysPseSlotPowerManagement=etsysPseSlotPowerManagement, etsysPseSlotPowerAllocation=etsysPseSlotPowerAllocation, etsysPseModulePowerManagementTable=etsysPseModulePowerManagementTable, etsysPsePortDetectionStatus=etsysPsePortDetectionStatus, etsysPseChassisPowerAssigned=etsysPseChassisPowerAssigned, etsysPsePowerSupplyModuleStatusChange=etsysPsePowerSupplyModuleStatusChange, etsysPsePowerAllocationConformance=etsysPsePowerAllocationConformance, etsysPsePortPDType=etsysPsePortPDType, etsysPsePowerSupplyModuleStatus=etsysPsePowerSupplyModuleStatus, etsysPsePortPowerManagementGroup=etsysPsePortPowerManagementGroup, etsysPsePowerSupplyModuleNumber=etsysPsePowerSupplyModuleNumber, etsysPsePowerAllocationGroups=etsysPsePowerAllocationGroups, etsysPowerEthernetObjects=etsysPowerEthernetObjects, etsysPsePortPowerLimit=etsysPsePortPowerLimit, etsysPsePortPowerManagementEntry=etsysPsePortPowerManagementEntry, etsysPseChassisPowerAllocationMode=etsysPseChassisPowerAllocationMode, etsysPsePowerAllocationCompliance2Rev2=etsysPsePowerAllocationCompliance2Rev2, etsysPseChassisPowerConsumable=etsysPseChassisPowerConsumable, etsysPsePowerSupplyStatusEntry=etsysPsePowerSupplyStatusEntry, etsysPseChassisPowerStatus=etsysPseChassisPowerStatus, etsysPsePowerAllocationControlGroup=etsysPsePowerAllocationControlGroup, etsysPseModulePowerClassBudget=etsysPseModulePowerClassBudget, etsysPsePowerAllocationCompliance2=etsysPsePowerAllocationCompliance2, etsysPseChassisPowerAvailableMaximum=etsysPseChassisPowerAvailableMaximum, etsysPseChassisPowerDetected=etsysPseChassisPowerDetected, etsysPsePortPowerUsage=etsysPsePortPowerUsage, etsysPsePowerSupplyStatusTable=etsysPsePowerSupplyStatusTable, etsysPseChassisPowerNonRedundant=etsysPseChassisPowerNonRedundant, etsysPseChassisPowerAllocation=etsysPseChassisPowerAllocation, etsysPseModulePowerUsage=etsysPseModulePowerUsage, etsysPseSlotPowerMaximum=etsysPseSlotPowerMaximum, etsysPsePowerAllocationCompliances=etsysPsePowerAllocationCompliances, etsysPsePortCapabilitySelect=etsysPsePortCapabilitySelect, etsysPseChassisPowerStatusGroup=etsysPseChassisPowerStatusGroup, etsysPsePowerAllocationCompliance=etsysPsePowerAllocationCompliance, etsysPseModulePowerManagementEntry=etsysPseModulePowerManagementEntry, etsysPsePortCapability=etsysPsePortCapability, etsysPseSlotPowerAllocationEntry=etsysPseSlotPowerAllocationEntry, etsysPsePowerNotification=etsysPsePowerNotification, etsysPseChassisPowerRedundant=etsysPseChassisPowerRedundant, etsysPsePortPowerManagementGroupRev2=etsysPsePortPowerManagementGroupRev2, etsysPseModulePowerMode=etsysPseModulePowerMode, etsysPsePortPowerManagement=etsysPsePortPowerManagement, PYSNMP_MODULE_ID=etsysPowerEthernetMibExtMIB, etsysPseChassisPowerSnmpNotification=etsysPseChassisPowerSnmpNotification, etsysPsePowerNotificationGroup=etsysPsePowerNotificationGroup)
""" version which can be consumed from within the module """ VERSION_STR = "0.0.11" DESCRIPTION = "module to help you tag interesting places in your code" APP_NAME = "pytags" LOGGER_NAME = "pytags"
""" version which can be consumed from within the module """ version_str = '0.0.11' description = 'module to help you tag interesting places in your code' app_name = 'pytags' logger_name = 'pytags'
# vim: fdm=indent ''' author: Fabio Zanini date: 31/08/15 content: Module that contains fast conversion factories between private and anonymyzed versions of data. Such a module is useful during research development, when consensus on anonymized patient/sample names has not been reached yet. NOTE: remember to always anonymyze data before publishing them! ''' # pdict is a dictionary with the anonymyzed patient names as keys and the actual # names as values. It must be invertible (do not reuse values). pdict = {'p1': 'WRITE_ME', }
""" author: Fabio Zanini date: 31/08/15 content: Module that contains fast conversion factories between private and anonymyzed versions of data. Such a module is useful during research development, when consensus on anonymized patient/sample names has not been reached yet. NOTE: remember to always anonymyze data before publishing them! """ pdict = {'p1': 'WRITE_ME'}
def get_index(word): while True: try: pos = int(input("Enter an index: ")) if pos == -1: return pos elif pos >= len(word): print("invalid index") elif pos <= -1: print("invalid index") else: return pos except ValueError: print("invalid index") def get_letter(): while True: char = str(input("Enter a letter: ")) if char.islower() and len(char)==1: return char elif not char.islower(): print("Character must be a lowercase letter!") elif len(char) > 1: print("Must be exactly one character!") def word_ladder(word): while True: pos = get_index(word) if pos == -1: return else: char=get_letter() word = list(word) word[pos] = char word = ("").join(word) print(word) word = input("Enter a word: ") word_ladder(word)
def get_index(word): while True: try: pos = int(input('Enter an index: ')) if pos == -1: return pos elif pos >= len(word): print('invalid index') elif pos <= -1: print('invalid index') else: return pos except ValueError: print('invalid index') def get_letter(): while True: char = str(input('Enter a letter: ')) if char.islower() and len(char) == 1: return char elif not char.islower(): print('Character must be a lowercase letter!') elif len(char) > 1: print('Must be exactly one character!') def word_ladder(word): while True: pos = get_index(word) if pos == -1: return else: char = get_letter() word = list(word) word[pos] = char word = ''.join(word) print(word) word = input('Enter a word: ') word_ladder(word)
""" lists """ myUniqueList = [] myLeftovers = [] def addToList(animal): if animal in myUniqueList: addToLeftovers(animal) return False else: myUniqueList.append(animal) return True def addToLeftovers(animal): myLeftovers.append(animal) # Test the addToList function print(myUniqueList) # [] print(addToList("dog")) # Returns True print(myUniqueList) # ['dog'] print(myLeftovers) # [] # Adding the element that already exists print(addToList("dog")) # Returns False print(myUniqueList) # ['dog'] print(myLeftovers) # ['dog'] # Adding a new element print(addToList("cat")) # Returns True print(myUniqueList) # ['dog', 'cat'] print(myLeftovers) # ['dog'] # Adding the element that already exists print(addToList("cat")) # Returns False print(myUniqueList) # ['dog', 'cat'] print(myLeftovers) # ['dog', 'cat'] # Adding a new element print(addToList("goat")) # Returns True print(myUniqueList) # ['dog', 'cat', 'goat'] print(myLeftovers) # ['dog'] # Adding a new element print(addToList("monkey")) # Returns True print(myUniqueList) # ['dog', 'cat', 'goat', 'monkey'] print(myLeftovers) # ['dog'] """ EZEBUIRO UCHECHUKWU VINCENT """
""" lists """ my_unique_list = [] my_leftovers = [] def add_to_list(animal): if animal in myUniqueList: add_to_leftovers(animal) return False else: myUniqueList.append(animal) return True def add_to_leftovers(animal): myLeftovers.append(animal) print(myUniqueList) print(add_to_list('dog')) print(myUniqueList) print(myLeftovers) print(add_to_list('dog')) print(myUniqueList) print(myLeftovers) print(add_to_list('cat')) print(myUniqueList) print(myLeftovers) print(add_to_list('cat')) print(myUniqueList) print(myLeftovers) print(add_to_list('goat')) print(myUniqueList) print(myLeftovers) print(add_to_list('monkey')) print(myUniqueList) print(myLeftovers) '\n\nEZEBUIRO UCHECHUKWU VINCENT \n\n'
x = 50 def func(x): print('x is', x) x = 2 print('Changed local x to', x) func(x) print('x is still', x)
x = 50 def func(x): print('x is', x) x = 2 print('Changed local x to', x) func(x) print('x is still', x)
# package information. INFO = dict( name = "latexutils", description = "Utils for making Latex documents", author = "Daisuke Kataoka", author_email = "daisuke.1221.canoe@gmail.com", url = "https://github.com/dai39suke/latexutils", classifiers = [ "Programming Language :: Python :: 3.6" ] )
info = dict(name='latexutils', description='Utils for making Latex documents', author='Daisuke Kataoka', author_email='daisuke.1221.canoe@gmail.com', url='https://github.com/dai39suke/latexutils', classifiers=['Programming Language :: Python :: 3.6'])
## (y - y1) / (x - x1) = (y2 - y1) / (x2 - x1) y = lambda x, x1, x2, y1, y2: y1 + (y2-y1) / (x2-x1) * (x-x1) def interpolation(xp, X, Y): if xp < X[0]: print("Given x-value is out of range") return None for i, Xi in enumerate(X): if xp < Xi: return y(xp, X[i-1], X[i], Y[i-1], Y[i]) else: print("Given x-value is out of range") time = [0, 20, 40, 60, 80, 100] temp = [26.0, 48.6, 61.6, 71.2, 74.8, 75.2] print("time =", time) print("temp =", temp, end='\n\n') xp = float(input("Find temparture at time = ")) yp = interpolation(xp, time, temp) print("The temperature =", yp)
y = lambda x, x1, x2, y1, y2: y1 + (y2 - y1) / (x2 - x1) * (x - x1) def interpolation(xp, X, Y): if xp < X[0]: print('Given x-value is out of range') return None for (i, xi) in enumerate(X): if xp < Xi: return y(xp, X[i - 1], X[i], Y[i - 1], Y[i]) else: print('Given x-value is out of range') time = [0, 20, 40, 60, 80, 100] temp = [26.0, 48.6, 61.6, 71.2, 74.8, 75.2] print('time =', time) print('temp =', temp, end='\n\n') xp = float(input('Find temparture at time = ')) yp = interpolation(xp, time, temp) print('The temperature =', yp)
''' Let us say your expense for every month are listed below, January - 2200 February - 2350 March - 2600 April - 2130 May - 2190 Create a list to store these monthly expenses and using that find out, 1. In Feb, how many dollars you spent extra compare to January? 2. Find out your total expense in first quarter (first three months) of the year. 3. Find out if you spent exactly 2000 dollars in any month 4. June month just finished and your expense is 1980 dollar. Add this item to our monthly expense list 5. You returned an item that you bought in a month of April and got a refund of 200$. Make a correction to your monthly expense list based on this ''' Expenses=[2200,2350,2600,2190] #1 solution ans1=Expenses[1]-Expenses[0] print(ans1) #2 solution ans2=Expenses[0]+Expenses[1]+Expenses[2] print(ans2) #3 solution for i in range(len(Expenses)): if(Expenses[i]==2000): print(i) else: pass #04 solution ans3=Expenses.insert(4,1980) print(Expenses) #05 solution ans4=Expenses[3]-200 print(ans4)
""" Let us say your expense for every month are listed below, January - 2200 February - 2350 March - 2600 April - 2130 May - 2190 Create a list to store these monthly expenses and using that find out, 1. In Feb, how many dollars you spent extra compare to January? 2. Find out your total expense in first quarter (first three months) of the year. 3. Find out if you spent exactly 2000 dollars in any month 4. June month just finished and your expense is 1980 dollar. Add this item to our monthly expense list 5. You returned an item that you bought in a month of April and got a refund of 200$. Make a correction to your monthly expense list based on this """ expenses = [2200, 2350, 2600, 2190] ans1 = Expenses[1] - Expenses[0] print(ans1) ans2 = Expenses[0] + Expenses[1] + Expenses[2] print(ans2) for i in range(len(Expenses)): if Expenses[i] == 2000: print(i) else: pass ans3 = Expenses.insert(4, 1980) print(Expenses) ans4 = Expenses[3] - 200 print(ans4)
# Course: CS 30 # Period: 1 # Date created: 2020/02/12 # Date last modified: 2020/03/11 # Name: Kate Pepper # Desrcription: A set of lists for a Clue RPG """A list of all of the suspects of the murder""" # Original suspect list suspects = ['Evelyn Finch', 'George Brown', 'Madeline Brown', 'Stephen Turner'] print(" ") print(suspects) # Additional suspects added to the list suspects.append('Chantal Steele') suspects.insert(2, 'Justin Jones') print(" ") print(suspects) # A sentence including each suspect for suspect in suspects: print(f"\n{suspect.title()} is a suspect in this murder case.") # Reordered list of suspects print("\nHere's an alphabetical list of suspects:") print(sorted(suspects)) print("\nHere's the list normally:") print(suspects) # Number of suspects in case print("\nHere is the number of suspects in this case:") print(len(suspects)) """A list of all of the potential murder weapons""" # Original list of murder weapons weapons = ['knife', 'poison', 'gun', 'crowbar', 'axe', 'rope', 'bat', 'rifle'] print(" ") print(weapons) # Revisions to the list of murder weapons del weapons[-1] print(" ") print(weapons) weapons.remove('bat') print(" ") print(weapons) # Reordering the murder weapons weapons.reverse() print(" ") print(weapons) # Murder weapons written out in a sentence for weapon in weapons: print(f"\nThe {weapon.title()} is a potential murder weapon.") """A list of potential rooms where the murder took place""" # Original list of rooms rooms = ['library', 'kitchen', 'bathroom', 'dining room', 'bedroom', 'office'] print(" ") print(rooms) # A sentence with each room for room in rooms: print(f"\nThe murder may have taken place in the {room.title()}.") # Removing and printing the room where the murder took place murder_room = rooms.pop() print(f"\nThe murder took place in the {murder_room.title()}.\n") print(rooms) # Reorganising the list of rooms rooms.sort() print(" ") print(rooms)
"""A list of all of the suspects of the murder""" suspects = ['Evelyn Finch', 'George Brown', 'Madeline Brown', 'Stephen Turner'] print(' ') print(suspects) suspects.append('Chantal Steele') suspects.insert(2, 'Justin Jones') print(' ') print(suspects) for suspect in suspects: print(f'\n{suspect.title()} is a suspect in this murder case.') print("\nHere's an alphabetical list of suspects:") print(sorted(suspects)) print("\nHere's the list normally:") print(suspects) print('\nHere is the number of suspects in this case:') print(len(suspects)) 'A list of all of the potential murder weapons' weapons = ['knife', 'poison', 'gun', 'crowbar', 'axe', 'rope', 'bat', 'rifle'] print(' ') print(weapons) del weapons[-1] print(' ') print(weapons) weapons.remove('bat') print(' ') print(weapons) weapons.reverse() print(' ') print(weapons) for weapon in weapons: print(f'\nThe {weapon.title()} is a potential murder weapon.') 'A list of potential rooms where the murder took place' rooms = ['library', 'kitchen', 'bathroom', 'dining room', 'bedroom', 'office'] print(' ') print(rooms) for room in rooms: print(f'\nThe murder may have taken place in the {room.title()}.') murder_room = rooms.pop() print(f'\nThe murder took place in the {murder_room.title()}.\n') print(rooms) rooms.sort() print(' ') print(rooms)
class Solution: def shortestWordDistance(self, words: 'List[str]', word1: 'str', word2: 'str') -> 'int': i1 = i2 = -1 ans = math.inf equal = word1 == word2 for i, word in enumerate(words): if word == word1: i1 = i if word == word2: if equal: i1 = i2 i2 = i if i1 != -1 and i2 != -1: ans = min(ans, abs(i1 - i2)) return ans
class Solution: def shortest_word_distance(self, words: 'List[str]', word1: 'str', word2: 'str') -> 'int': i1 = i2 = -1 ans = math.inf equal = word1 == word2 for (i, word) in enumerate(words): if word == word1: i1 = i if word == word2: if equal: i1 = i2 i2 = i if i1 != -1 and i2 != -1: ans = min(ans, abs(i1 - i2)) return ans
class Solution: def generateMatrix(self, n): """ :type n: int :rtype: List[List[int]] """ def dirToIndex(x, y, d): if d == "r": return (x, y + 1, d) if y + 1 < n and matrix[x][y + 1] == 0 else (x + 1, y, "d") elif d == "d": return (x + 1, y, d) if x + 1 < n and matrix[x + 1][y] == 0 else (x, y - 1, "l") elif d == "l": return (x, y - 1, d) if y > 0 and matrix[x][y - 1] == 0 else (x - 1, y, "u") else: return (x - 1, y, d) if x > 0 and matrix[x - 1][y] == 0 else (x, y +1, "r") matrix = [[0 for i in range(1, n + 1)] for j in range(n)] num, dir, i, j = 1, "r", 0, 0 while 0 <= i < n and 0 <= j < n and matrix[i][j] == 0: matrix[i][j] = num num += 1 i, j, dir = dirToIndex(i, j, dir) return matrix
class Solution: def generate_matrix(self, n): """ :type n: int :rtype: List[List[int]] """ def dir_to_index(x, y, d): if d == 'r': return (x, y + 1, d) if y + 1 < n and matrix[x][y + 1] == 0 else (x + 1, y, 'd') elif d == 'd': return (x + 1, y, d) if x + 1 < n and matrix[x + 1][y] == 0 else (x, y - 1, 'l') elif d == 'l': return (x, y - 1, d) if y > 0 and matrix[x][y - 1] == 0 else (x - 1, y, 'u') else: return (x - 1, y, d) if x > 0 and matrix[x - 1][y] == 0 else (x, y + 1, 'r') matrix = [[0 for i in range(1, n + 1)] for j in range(n)] (num, dir, i, j) = (1, 'r', 0, 0) while 0 <= i < n and 0 <= j < n and (matrix[i][j] == 0): matrix[i][j] = num num += 1 (i, j, dir) = dir_to_index(i, j, dir) return matrix
f = open("HaltestellenVVS_simplified_utf8.csv", "r") r = open("HaltestellenVVS_simplified_utf8_stationID.csv", "w") r.write(f.readline()) lines = f.readlines() for line in lines: stationID = line.split(",")[0] newStationID = int(stationID)+5000000 outLine = str(newStationID) + line[len(stationID):] r.write(outLine) r.close() f.close()
f = open('HaltestellenVVS_simplified_utf8.csv', 'r') r = open('HaltestellenVVS_simplified_utf8_stationID.csv', 'w') r.write(f.readline()) lines = f.readlines() for line in lines: station_id = line.split(',')[0] new_station_id = int(stationID) + 5000000 out_line = str(newStationID) + line[len(stationID):] r.write(outLine) r.close() f.close()
name = QInputDialog.getText(self, "Name", "Enter the name of your sidebar here:") if name[1]: name = name[0] url = QInputDialog.getText(self, "URL", "Enter the URL of your sidebar here:") if url[1]: url = url[0] common.sidebar_maker_path = os.path.join(settings.extensions_folder, name.lower().replace(" ", "_") + "_sidebar") if not os.path.exists(common.sidebar_maker_path): os.mkdir(common.sidebar_maker_path) common.sidebar_maker_icon_loader = WebView(None) common.sidebar_maker_icon_loader.load(QUrl(url)) common.sidebar_maker_icon_loader.iconChanged.connect(lambda: common.sidebar_maker_icon_loader.icon().pixmap(16, 16).save(os.path.join(common.sidebar_maker_path, "icon.png"))) common.sidebar_maker_icon_loader.iconChanged.connect(common.sidebar_maker_icon_loader.deleteLater) try: f = open(os.path.join(common.sidebar_maker_path, "script.py"), "w") except: pass else: try: f.write("""name = "%(name)s" url = "%(url)s" clip = "%(clip)s" ua = "Mozilla/5.0 (Linux; U; Android 2.3.5; en-us) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" style1 = os.path.join(settings.extensions_folder, self.name, "style.css") style = style1 if os.path.isfile(style1) else None if not self.isCheckable(): self.setCheckable(True) self.setChecked(True) if not self.parentWindow().hasSideBar(name): self.parentWindow().addSideBar(name, url, clip, ua, style=style) else: self.parentWindow().toggleSideBar(name)""" % {"name": name, "url": url, "clip": url.split(".")[1]}) except: pass f.close()
name = QInputDialog.getText(self, 'Name', 'Enter the name of your sidebar here:') if name[1]: name = name[0] url = QInputDialog.getText(self, 'URL', 'Enter the URL of your sidebar here:') if url[1]: url = url[0] common.sidebar_maker_path = os.path.join(settings.extensions_folder, name.lower().replace(' ', '_') + '_sidebar') if not os.path.exists(common.sidebar_maker_path): os.mkdir(common.sidebar_maker_path) common.sidebar_maker_icon_loader = web_view(None) common.sidebar_maker_icon_loader.load(q_url(url)) common.sidebar_maker_icon_loader.iconChanged.connect(lambda : common.sidebar_maker_icon_loader.icon().pixmap(16, 16).save(os.path.join(common.sidebar_maker_path, 'icon.png'))) common.sidebar_maker_icon_loader.iconChanged.connect(common.sidebar_maker_icon_loader.deleteLater) try: f = open(os.path.join(common.sidebar_maker_path, 'script.py'), 'w') except: pass else: try: f.write('name = "%(name)s"\nurl = "%(url)s"\nclip = "%(clip)s"\nua = "Mozilla/5.0 (Linux; U; Android 2.3.5; en-us) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"\nstyle1 = os.path.join(settings.extensions_folder, self.name, "style.css")\nstyle = style1 if os.path.isfile(style1) else None\nif not self.isCheckable():\n self.setCheckable(True)\n self.setChecked(True)\nif not self.parentWindow().hasSideBar(name):\n self.parentWindow().addSideBar(name, url, clip, ua, style=style)\nelse:\n self.parentWindow().toggleSideBar(name)' % {'name': name, 'url': url, 'clip': url.split('.')[1]}) except: pass f.close()
# Definition for a binary tree node # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param root, a tree node # @return a list of lists of integers def levelOrder(self, root): vals = [] if not root: return vals cache = [root] while len(cache) > 0: tmp = [] level = [] for node in cache: level.append(node.val) if node.left: tmp.append(node.left) if node.right: tmp.append(node.right) vals.append(level) cache = tmp return vals
class Solution: def level_order(self, root): vals = [] if not root: return vals cache = [root] while len(cache) > 0: tmp = [] level = [] for node in cache: level.append(node.val) if node.left: tmp.append(node.left) if node.right: tmp.append(node.right) vals.append(level) cache = tmp return vals
def quicksorted(L): #base case if len(L) < 2: return L[:] # Divide! pivot = L[-1] LT = [e for e in L if e < pivot] ET = [e for e in L if e == pivot] GT = [e for e in L if e > pivot] # Conquer A = quicksorted(LT) B = quicksorted(GT) # Combine return A + ET + B def quicksort(L, left = 0, right = None): if right is None: right = len(L) if right - left > 1: # Divide! mid = partition(L, left, right) # Conquer! quicksort(L, left, mid) quicksort(L, mid+1, right) # Combine! # Nothing to do! def partition(L, left, right): pivot = right - 1 i = left # index in left half j = pivot - 1 # index in right half while i < j: # Move i to point to an element >= L[pivot] while L[i] < L[pivot]: i = i + 1 # Move j to point to an element < L[pivot] while i < j and L[j] >= L[pivot]: j = j - 1 # Swap elements i and j if i < j if i < j: L[i], L[j] = L[j], L[i] # Put the pivot in place. if L[pivot] <= L[i]: L[pivot], L[i] = L[i], L[pivot] pivot = i # Return the index of the pivot. return pivot
def quicksorted(L): if len(L) < 2: return L[:] pivot = L[-1] lt = [e for e in L if e < pivot] et = [e for e in L if e == pivot] gt = [e for e in L if e > pivot] a = quicksorted(LT) b = quicksorted(GT) return A + ET + B def quicksort(L, left=0, right=None): if right is None: right = len(L) if right - left > 1: mid = partition(L, left, right) quicksort(L, left, mid) quicksort(L, mid + 1, right) def partition(L, left, right): pivot = right - 1 i = left j = pivot - 1 while i < j: while L[i] < L[pivot]: i = i + 1 while i < j and L[j] >= L[pivot]: j = j - 1 if i < j: (L[i], L[j]) = (L[j], L[i]) if L[pivot] <= L[i]: (L[pivot], L[i]) = (L[i], L[pivot]) pivot = i return pivot
""" WGS84 constants Reference: Paul Groves http://www.oosa.unvienna.org/pdf/icg/2012/template/WGS_84.pdf """ R0 = 6378137.0 f = 298.257223563 omega_E = 7.2921151467e-5 GM = 3.986005e14 ecc = 0.0818191908425 Rp = 6356752.314245
""" WGS84 constants Reference: Paul Groves http://www.oosa.unvienna.org/pdf/icg/2012/template/WGS_84.pdf """ r0 = 6378137.0 f = 298.257223563 omega_e = 7.2921151467e-05 gm = 398600500000000.0 ecc = 0.0818191908425 rp = 6356752.314245
# Parsed from https://www.ibm.com/docs/en/spectrum-lsf/10.1.0?topic=options-o bjobs_fields = [ {"name": "jobid", "width": 7, "aliases": "id", "unit": None}, {"name": "jobindex", "width": 8, "aliases": None, "unit": None}, {"name": "stat", "width": 5, "aliases": None, "unit": None}, {"name": "user", "width": 7, "aliases": None, "unit": None}, {"name": "user_group", "width": 15, "aliases": "ugroup", "unit": None}, {"name": "queue", "width": 10, "aliases": None, "unit": None}, {"name": "job_name", "width": 10, "aliases": "name", "unit": None}, {"name": "job_description", "width": 17, "aliases": "description", "unit": None}, {"name": "proj_name", "width": 11, "aliases": "proj, project", "unit": None}, {"name": "application", "width": 13, "aliases": "app", "unit": None}, {"name": "service_class", "width": 13, "aliases": "sla", "unit": None}, {"name": "job_group", "width": 10, "aliases": "group", "unit": None}, {"name": "job_priority", "width": 12, "aliases": "priority", "unit": None}, {"name": "rsvid", "width": 40, "aliases": None, "unit": None}, {"name": "esub", "width": 20, "aliases": None, "unit": None}, {"name": "kill_reason", "width": 50, "aliases": None, "unit": None}, {"name": "suspend_reason", "width": 50, "aliases": None, "unit": None}, {"name": "resume_reason", "width": 50, "aliases": None, "unit": None}, {"name": "kill_issue_host", "width": 50, "aliases": None, "unit": None}, {"name": "suspend_issue_host", "width": 50, "aliases": None, "unit": None}, {"name": "resume_issue_host", "width": 50, "aliases": None, "unit": None}, {"name": "dependency", "width": 15, "aliases": None, "unit": None}, {"name": "pend_reason", "width": 11, "aliases": None, "unit": None}, {"name": "charged_saap", "width": 50, "aliases": "saap", "unit": None}, {"name": "command", "width": 15, "aliases": "cmd", "unit": None}, {"name": "pre_exec_command", "width": 16, "aliases": "pre_cmd", "unit": None}, {"name": "post_exec_command", "width": 17, "aliases": "post_cmd", "unit": None}, { "name": "resize_notification_command", "width": 27, "aliases": "resize_cmd", "unit": None, }, {"name": "pids", "width": 20, "aliases": None, "unit": None}, {"name": "exit_code", "width": 10, "aliases": None, "unit": None}, {"name": "exit_reason", "width": 50, "aliases": None, "unit": None}, {"name": "interactive", "width": 11, "aliases": None, "unit": None}, {"name": "from_host", "width": 11, "aliases": None, "unit": None}, {"name": "first_host", "width": 11, "aliases": None, "unit": None}, {"name": "exec_host", "width": 11, "aliases": None, "unit": None}, {"name": "nexec_host", "width": 10, "aliases": None, "unit": None}, {"name": "ask_hosts", "width": 30, "aliases": None, "unit": None}, {"name": "alloc_slot", "width": 20, "aliases": None, "unit": None}, {"name": "nalloc_slot", "width": 10, "aliases": None, "unit": None}, {"name": "host_file", "width": 10, "aliases": None, "unit": None}, {"name": "exclusive", "width": 13, "aliases": None, "unit": None}, {"name": "nreq_slot", "width": 10, "aliases": None, "unit": None}, {"name": "submit_time", "width": 15, "aliases": None, "unit": "time stamp"}, {"name": "start_time", "width": 15, "aliases": None, "unit": "time stamp"}, { "name": "estimated_start_time", "width": 20, "aliases": "estart_time", "unit": "time stamp", }, { "name": "specified_start_time", "width": 20, "aliases": "sstart_time", "unit": "time stamp", }, { "name": "specified_terminate_time", "width": 24, "aliases": "sterminate_time", "unit": "time stamp", }, {"name": "time_left", "width": 11, "aliases": None, "unit": "seconds"}, {"name": "finish_time", "width": 16, "aliases": None, "unit": "time stamp"}, {"name": "estimated_run_time", "width": 20, "aliases": "ertime", "unit": "seconds"}, {"name": "ru_utime", "width": 12, "aliases": None, "unit": "seconds"}, {"name": "ru_stime", "width": 12, "aliases": None, "unit": "seconds"}, {"name": "%complete", "width": 11, "aliases": None, "unit": None}, {"name": "warning_action", "width": 15, "aliases": "warn_act", "unit": None}, {"name": "action_warning_time", "width": 19, "aliases": "warn_time", "unit": None}, {"name": "pendstate", "width": 9, "aliases": None, "unit": None}, {"name": "pend_time", "width": 12, "aliases": None, "unit": "seconds"}, {"name": "ependtime", "width": 12, "aliases": None, "unit": "seconds"}, {"name": "ipendtime", "width": 12, "aliases": None, "unit": "seconds"}, { "name": "estimated_sim_start_time", "width": 24, "aliases": "esstart_time", "unit": "time stamp", }, {"name": "effective_plimit", "width": 18, "aliases": None, "unit": "seconds"}, {"name": "plimit_remain", "width": 15, "aliases": None, "unit": "seconds"}, {"name": "effective_eplimit", "width": 19, "aliases": None, "unit": "seconds"}, {"name": "eplimit_remain", "width": 16, "aliases": None, "unit": "seconds"}, {"name": "cpu_used", "width": 10, "aliases": None, "unit": None}, {"name": "run_time", "width": 15, "aliases": None, "unit": "seconds"}, {"name": "idle_factor", "width": 11, "aliases": None, "unit": None}, {"name": "exception_status", "width": 16, "aliases": "except_stat", "unit": None}, {"name": "slots", "width": 5, "aliases": None, "unit": None}, {"name": "mem", "width": 15, "aliases": None, "unit": "LSF_UNIT_FOR_LIMITS"}, {"name": "max_mem", "width": 15, "aliases": None, "unit": "LSF_UNIT_FOR_LIMITS"}, {"name": "avg_mem", "width": 15, "aliases": None, "unit": "LSF_UNIT_FOR_LIMITS"}, {"name": "memlimit", "width": 15, "aliases": None, "unit": "LSF_UNIT_FOR_LIMITS"}, {"name": "swap", "width": 15, "aliases": None, "unit": "LSF_UNIT_FOR_LIMITS"}, {"name": "swaplimit", "width": 15, "aliases": None, "unit": "LSF_UNIT_FOR_LIMITS"}, {"name": "gpu_num", "width": 10, "aliases": "gnum", "unit": None}, {"name": "gpu_mode", "width": 20, "aliases": "gmode", "unit": None}, {"name": "j_exclusive", "width": 15, "aliases": "j_excl", "unit": None}, {"name": "gpu_alloc", "width": 30, "aliases": "galloc", "unit": None}, {"name": "nthreads", "width": 10, "aliases": None, "unit": None}, {"name": "hrusage", "width": 50, "aliases": None, "unit": None}, {"name": "min_req_proc", "width": 12, "aliases": None, "unit": None}, {"name": "max_req_proc", "width": 12, "aliases": None, "unit": None}, {"name": "effective_resreq", "width": 17, "aliases": "eresreq", "unit": None}, {"name": "combined_resreq", "width": 20, "aliases": "cresreq", "unit": None}, {"name": "network_req", "width": 15, "aliases": None, "unit": None}, {"name": "filelimit", "width": 10, "aliases": None, "unit": None}, {"name": "corelimit", "width": 15, "aliases": None, "unit": None}, {"name": "stacklimit", "width": 15, "aliases": None, "unit": None}, {"name": "processlimit", "width": 12, "aliases": None, "unit": None}, {"name": "runtimelimit", "width": 12, "aliases": None, "unit": None}, {"name": "plimit", "width": 10, "aliases": None, "unit": "seconds"}, {"name": "eplimit", "width": 10, "aliases": None, "unit": "seconds"}, {"name": "input_file", "width": 10, "aliases": None, "unit": None}, {"name": "output_file", "width": 11, "aliases": None, "unit": None}, {"name": "error_file", "width": 10, "aliases": None, "unit": None}, {"name": "output_dir", "width": 15, "aliases": None, "unit": None}, {"name": "sub_cwd", "width": 10, "aliases": None, "unit": None}, {"name": "exec_home", "width": 10, "aliases": None, "unit": None}, {"name": "exec_cwd", "width": 10, "aliases": None, "unit": None}, {"name": "licproject", "width": 20, "aliases": None, "unit": None}, {"name": "forward_cluster", "width": 15, "aliases": "fwd_cluster", "unit": None}, {"name": "forward_time", "width": 15, "aliases": "fwd_time", "unit": "time stamp"}, {"name": "srcjobid", "width": 8, "aliases": None, "unit": None}, {"name": "dstjobid", "width": 8, "aliases": None, "unit": None}, {"name": "source_cluster", "width": 15, "aliases": "srcluster", "unit": None}, {"name": "energy", "width": None, "aliases": None, "unit": "Joule"}, {"name": "gpfsio", "width": None, "aliases": None, "unit": None}, ]
bjobs_fields = [{'name': 'jobid', 'width': 7, 'aliases': 'id', 'unit': None}, {'name': 'jobindex', 'width': 8, 'aliases': None, 'unit': None}, {'name': 'stat', 'width': 5, 'aliases': None, 'unit': None}, {'name': 'user', 'width': 7, 'aliases': None, 'unit': None}, {'name': 'user_group', 'width': 15, 'aliases': 'ugroup', 'unit': None}, {'name': 'queue', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'job_name', 'width': 10, 'aliases': 'name', 'unit': None}, {'name': 'job_description', 'width': 17, 'aliases': 'description', 'unit': None}, {'name': 'proj_name', 'width': 11, 'aliases': 'proj, project', 'unit': None}, {'name': 'application', 'width': 13, 'aliases': 'app', 'unit': None}, {'name': 'service_class', 'width': 13, 'aliases': 'sla', 'unit': None}, {'name': 'job_group', 'width': 10, 'aliases': 'group', 'unit': None}, {'name': 'job_priority', 'width': 12, 'aliases': 'priority', 'unit': None}, {'name': 'rsvid', 'width': 40, 'aliases': None, 'unit': None}, {'name': 'esub', 'width': 20, 'aliases': None, 'unit': None}, {'name': 'kill_reason', 'width': 50, 'aliases': None, 'unit': None}, {'name': 'suspend_reason', 'width': 50, 'aliases': None, 'unit': None}, {'name': 'resume_reason', 'width': 50, 'aliases': None, 'unit': None}, {'name': 'kill_issue_host', 'width': 50, 'aliases': None, 'unit': None}, {'name': 'suspend_issue_host', 'width': 50, 'aliases': None, 'unit': None}, {'name': 'resume_issue_host', 'width': 50, 'aliases': None, 'unit': None}, {'name': 'dependency', 'width': 15, 'aliases': None, 'unit': None}, {'name': 'pend_reason', 'width': 11, 'aliases': None, 'unit': None}, {'name': 'charged_saap', 'width': 50, 'aliases': 'saap', 'unit': None}, {'name': 'command', 'width': 15, 'aliases': 'cmd', 'unit': None}, {'name': 'pre_exec_command', 'width': 16, 'aliases': 'pre_cmd', 'unit': None}, {'name': 'post_exec_command', 'width': 17, 'aliases': 'post_cmd', 'unit': None}, {'name': 'resize_notification_command', 'width': 27, 'aliases': 'resize_cmd', 'unit': None}, {'name': 'pids', 'width': 20, 'aliases': None, 'unit': None}, {'name': 'exit_code', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'exit_reason', 'width': 50, 'aliases': None, 'unit': None}, {'name': 'interactive', 'width': 11, 'aliases': None, 'unit': None}, {'name': 'from_host', 'width': 11, 'aliases': None, 'unit': None}, {'name': 'first_host', 'width': 11, 'aliases': None, 'unit': None}, {'name': 'exec_host', 'width': 11, 'aliases': None, 'unit': None}, {'name': 'nexec_host', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'ask_hosts', 'width': 30, 'aliases': None, 'unit': None}, {'name': 'alloc_slot', 'width': 20, 'aliases': None, 'unit': None}, {'name': 'nalloc_slot', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'host_file', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'exclusive', 'width': 13, 'aliases': None, 'unit': None}, {'name': 'nreq_slot', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'submit_time', 'width': 15, 'aliases': None, 'unit': 'time stamp'}, {'name': 'start_time', 'width': 15, 'aliases': None, 'unit': 'time stamp'}, {'name': 'estimated_start_time', 'width': 20, 'aliases': 'estart_time', 'unit': 'time stamp'}, {'name': 'specified_start_time', 'width': 20, 'aliases': 'sstart_time', 'unit': 'time stamp'}, {'name': 'specified_terminate_time', 'width': 24, 'aliases': 'sterminate_time', 'unit': 'time stamp'}, {'name': 'time_left', 'width': 11, 'aliases': None, 'unit': 'seconds'}, {'name': 'finish_time', 'width': 16, 'aliases': None, 'unit': 'time stamp'}, {'name': 'estimated_run_time', 'width': 20, 'aliases': 'ertime', 'unit': 'seconds'}, {'name': 'ru_utime', 'width': 12, 'aliases': None, 'unit': 'seconds'}, {'name': 'ru_stime', 'width': 12, 'aliases': None, 'unit': 'seconds'}, {'name': '%complete', 'width': 11, 'aliases': None, 'unit': None}, {'name': 'warning_action', 'width': 15, 'aliases': 'warn_act', 'unit': None}, {'name': 'action_warning_time', 'width': 19, 'aliases': 'warn_time', 'unit': None}, {'name': 'pendstate', 'width': 9, 'aliases': None, 'unit': None}, {'name': 'pend_time', 'width': 12, 'aliases': None, 'unit': 'seconds'}, {'name': 'ependtime', 'width': 12, 'aliases': None, 'unit': 'seconds'}, {'name': 'ipendtime', 'width': 12, 'aliases': None, 'unit': 'seconds'}, {'name': 'estimated_sim_start_time', 'width': 24, 'aliases': 'esstart_time', 'unit': 'time stamp'}, {'name': 'effective_plimit', 'width': 18, 'aliases': None, 'unit': 'seconds'}, {'name': 'plimit_remain', 'width': 15, 'aliases': None, 'unit': 'seconds'}, {'name': 'effective_eplimit', 'width': 19, 'aliases': None, 'unit': 'seconds'}, {'name': 'eplimit_remain', 'width': 16, 'aliases': None, 'unit': 'seconds'}, {'name': 'cpu_used', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'run_time', 'width': 15, 'aliases': None, 'unit': 'seconds'}, {'name': 'idle_factor', 'width': 11, 'aliases': None, 'unit': None}, {'name': 'exception_status', 'width': 16, 'aliases': 'except_stat', 'unit': None}, {'name': 'slots', 'width': 5, 'aliases': None, 'unit': None}, {'name': 'mem', 'width': 15, 'aliases': None, 'unit': 'LSF_UNIT_FOR_LIMITS'}, {'name': 'max_mem', 'width': 15, 'aliases': None, 'unit': 'LSF_UNIT_FOR_LIMITS'}, {'name': 'avg_mem', 'width': 15, 'aliases': None, 'unit': 'LSF_UNIT_FOR_LIMITS'}, {'name': 'memlimit', 'width': 15, 'aliases': None, 'unit': 'LSF_UNIT_FOR_LIMITS'}, {'name': 'swap', 'width': 15, 'aliases': None, 'unit': 'LSF_UNIT_FOR_LIMITS'}, {'name': 'swaplimit', 'width': 15, 'aliases': None, 'unit': 'LSF_UNIT_FOR_LIMITS'}, {'name': 'gpu_num', 'width': 10, 'aliases': 'gnum', 'unit': None}, {'name': 'gpu_mode', 'width': 20, 'aliases': 'gmode', 'unit': None}, {'name': 'j_exclusive', 'width': 15, 'aliases': 'j_excl', 'unit': None}, {'name': 'gpu_alloc', 'width': 30, 'aliases': 'galloc', 'unit': None}, {'name': 'nthreads', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'hrusage', 'width': 50, 'aliases': None, 'unit': None}, {'name': 'min_req_proc', 'width': 12, 'aliases': None, 'unit': None}, {'name': 'max_req_proc', 'width': 12, 'aliases': None, 'unit': None}, {'name': 'effective_resreq', 'width': 17, 'aliases': 'eresreq', 'unit': None}, {'name': 'combined_resreq', 'width': 20, 'aliases': 'cresreq', 'unit': None}, {'name': 'network_req', 'width': 15, 'aliases': None, 'unit': None}, {'name': 'filelimit', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'corelimit', 'width': 15, 'aliases': None, 'unit': None}, {'name': 'stacklimit', 'width': 15, 'aliases': None, 'unit': None}, {'name': 'processlimit', 'width': 12, 'aliases': None, 'unit': None}, {'name': 'runtimelimit', 'width': 12, 'aliases': None, 'unit': None}, {'name': 'plimit', 'width': 10, 'aliases': None, 'unit': 'seconds'}, {'name': 'eplimit', 'width': 10, 'aliases': None, 'unit': 'seconds'}, {'name': 'input_file', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'output_file', 'width': 11, 'aliases': None, 'unit': None}, {'name': 'error_file', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'output_dir', 'width': 15, 'aliases': None, 'unit': None}, {'name': 'sub_cwd', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'exec_home', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'exec_cwd', 'width': 10, 'aliases': None, 'unit': None}, {'name': 'licproject', 'width': 20, 'aliases': None, 'unit': None}, {'name': 'forward_cluster', 'width': 15, 'aliases': 'fwd_cluster', 'unit': None}, {'name': 'forward_time', 'width': 15, 'aliases': 'fwd_time', 'unit': 'time stamp'}, {'name': 'srcjobid', 'width': 8, 'aliases': None, 'unit': None}, {'name': 'dstjobid', 'width': 8, 'aliases': None, 'unit': None}, {'name': 'source_cluster', 'width': 15, 'aliases': 'srcluster', 'unit': None}, {'name': 'energy', 'width': None, 'aliases': None, 'unit': 'Joule'}, {'name': 'gpfsio', 'width': None, 'aliases': None, 'unit': None}]
# In eg 0.0.x, this file could be used to invoke eg directly, without installing # via pip. Eg 0.1.x switched to also support python 3. This meant changing the # way imports were working, which meant this script had to move up a level to be # a sibling of the eg module directory. This file will exist for a time in order # to try and give a more friendly error for people that are using the symlink # approach. This warning will eventually disappear in a future version of eg. DEPRECATION_WARNING = """ You are invoking eg via the script at <eg-repo>/eg/eg_exec.py. This file has been deprecated in order to work with both python 2 and 3. Please instead invoke <eg-repo>/eg_exec.py, or install with pip. If you're using a symlink and need to update it, try something like the following: rm `which eg` ln -s <absolute-path-to-eg-repo>/eg_exec.py /usr/local/bin/eg Or, simply install with pip: sudo pip install eg """ print(DEPRECATION_WARNING)
deprecation_warning = "\nYou are invoking eg via the script at <eg-repo>/eg/eg_exec.py. This file has\nbeen deprecated in order to work with both python 2 and 3.\n\nPlease instead invoke <eg-repo>/eg_exec.py, or install with pip.\n\nIf you're using a symlink and need to update it, try something like the\nfollowing:\n\n rm `which eg`\n ln -s <absolute-path-to-eg-repo>/eg_exec.py /usr/local/bin/eg\n\n\nOr, simply install with pip:\n\n sudo pip install eg\n\n" print(DEPRECATION_WARNING)
# from ncats.translator.module.disease.gene import disease_associated_genes @given('a disease term {disease_identifier} for disease label {disease_label} in Translator Modules') def step_impl(context, disease_identifier, disease_label): context.disease = {"disease_identifier":disease_identifier, "disease_label":disease_label} @when('we run the disease associated genes Translator Module') def step_impl(context): #translator-modules/ncats/translator/modules/disease/gene/ #initialization will run the method context.module = DiseaseAssociatedGeneSet(context.disease) @then('the module result contains {gene_ids}') def step_impl(context): hit_ids = [ x["hit_id"] for x in context.module.disease_associated_genes ] gene_ids = gene_ids.split(",") for gene in gene_ids: assert gene in hit_ids
@given('a disease term {disease_identifier} for disease label {disease_label} in Translator Modules') def step_impl(context, disease_identifier, disease_label): context.disease = {'disease_identifier': disease_identifier, 'disease_label': disease_label} @when('we run the disease associated genes Translator Module') def step_impl(context): context.module = disease_associated_gene_set(context.disease) @then('the module result contains {gene_ids}') def step_impl(context): hit_ids = [x['hit_id'] for x in context.module.disease_associated_genes] gene_ids = gene_ids.split(',') for gene in gene_ids: assert gene in hit_ids
N=int(input()) A=list(map(int,input().split())) B=list(map(int,input().split())) count=0 for i in range(N): count+=min(A[i],B[i]) if A[i]<B[i]: if A[i+1]<B[i]-A[i]: count+=A[i+1] A[i+1]=0 else: count+=B[i]-A[i] A[i+1]-=B[i]-A[i] print(count)
n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) count = 0 for i in range(N): count += min(A[i], B[i]) if A[i] < B[i]: if A[i + 1] < B[i] - A[i]: count += A[i + 1] A[i + 1] = 0 else: count += B[i] - A[i] A[i + 1] -= B[i] - A[i] print(count)
def ground_ship(weight): flat = 20 if weight <= 2: return weight*1.5 + flat elif weight > 2 and weight <= 6: return weight*3.0 + flat elif weight > 6 and weight <= 10: return weight*4.0 + flat else: return weight*4.75 + flat cost = ground_ship(8.4) print(cost) def drone_ship(weight): flat = 0 if weight <= 2: return weight*4.5 + flat elif weight > 2 and weight <= 6: return weight*9.0 + flat elif weight > 6 and weight <= 10: return weight*12.0 + flat else: return weight*14.25 + flat cost1 = drone_ship(1.5) print(cost1)
def ground_ship(weight): flat = 20 if weight <= 2: return weight * 1.5 + flat elif weight > 2 and weight <= 6: return weight * 3.0 + flat elif weight > 6 and weight <= 10: return weight * 4.0 + flat else: return weight * 4.75 + flat cost = ground_ship(8.4) print(cost) def drone_ship(weight): flat = 0 if weight <= 2: return weight * 4.5 + flat elif weight > 2 and weight <= 6: return weight * 9.0 + flat elif weight > 6 and weight <= 10: return weight * 12.0 + flat else: return weight * 14.25 + flat cost1 = drone_ship(1.5) print(cost1)
# Copyright 2018 ZTE Corporation. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an 'AS IS' BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. GRANT_DATA = { 'vnfInstanceId': '1', 'vnfLcmOpOccId': '2', 'vnfdId': '3', 'flavourId': '4', 'operation': 'INSTANTIATE', 'isAutomaticInvocation': True, 'instantiationLevelId': '5', 'addResources': [ { 'id': '1', 'type': 'COMPUTE', 'vduId': '2', 'resourceTemplateId': '3', 'resourceTemplate': { 'vimConnectionId': '4', 'resourceProviderId': '5', 'resourceId': '6', 'vimLevelResourceType': '7' } } ], 'placementConstraints': [ { 'affinityOrAntiAffinity': 'AFFINITY', 'scope': 'NFVI_POP', 'resource': [ { 'idType': 'RES_MGMT', 'resourceId': '1', 'vimConnectionId': '2', 'resourceProviderId': '3' } ] } ], 'vimConstraints': [ { 'sameResourceGroup': True, 'resource': [ { 'idType': 'RES_MGMT', 'resourceId': '1', 'vimConnectionId': '2', 'resourceProviderId': '3' } ] } ], 'additionalParams': {}, '_links': { 'vnfLcmOpOcc': { 'href': '1' }, 'vnfInstance': { 'href': '2' } } } VNF_LCM_OP_OCC_NOTIFICATION_DATA = { 'id': 'string', 'notificationType': 'VnfLcmOperationOccurrenceNotification', 'subscriptionId': 'string', 'timeStamp': 'string', 'notificationStatus': 'START', 'operationState': 'STARTING', 'vnfInstanceId': 'string', 'operation': 'INSTANTIATE', 'isAutomaticInvocation': True, 'vnfLcmOpOccId': 'string', 'affectedVnfcs': [{ 'id': 'string', 'vduId': 'string', 'changeType': 'ADDED', 'computeResource': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'string' }, 'metadata': {}, 'affectedVnfcCpIds': [], 'addedStorageResourceIds': [], 'removedStorageResourceIds': [], }], 'affectedVirtualLinks': [{ 'id': 'string', 'virtualLinkDescId': 'string', 'changeType': 'ADDED', 'networkResource': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'network', } }], 'affectedVirtualStorages': [{ 'id': 'string', 'virtualStorageDescId': 'string', 'changeType': 'ADDED', 'storageResource': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'network', }, 'metadata': {} }], 'changedInfo': { 'vnfInstanceName': 'string', 'vnfInstanceDescription': 'string', 'vnfConfigurableProperties': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'metadata': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'extensions': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'vimConnectionInfo': [{ 'id': 'string', 'vimId': 'string', 'vimType': 'string', 'interfaceInfo': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'accessInfo': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' }, 'extra': { 'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string' } }], 'vnfPkgId': 'string', 'vnfdId': 'string', 'vnfProvider': 'string', 'vnfProductName': 'string', 'vnfSoftwareVersion': 'string', 'vnfdVersion': 'string' }, 'changedExtConnectivity': [{ 'id': 'string', 'resourceHandle': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'string' }, 'extLinkPorts': [{ 'id': 'string', 'resourceHandle': { 'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'string' }, 'cpInstanceId': 'string' }] }], 'error': { 'type': 'string', 'title': 'string', 'status': 0, 'detail': 'string', 'instance': 'string' }, '_links': { 'vnfInstance': {'href': 'string'}, 'subscription': {'href': 'string'}, 'vnfLcmOpOcc': {'href': 'string'} } } VNF_IDENTIFIER_CREATION_NOTIFICATION_DATA = { 'id': 'Identifier of this notification', 'notificationType': 'VnfIdentifierCreationNotification', 'subscriptionId': 'Identifier of the subscription', 'timeStamp': '2018-9-12T00:00:00', 'vnfInstanceId': '2', '_links': { 'vnfInstance': {'href': 'URI of the referenced resource'}, 'subscription': {'href': 'URI of the referenced resource'}, 'vnfLcmOpOcc': {'href': 'URI of the referenced resource'} } } VNF_IDENTIFIER_DELETION_NOTIFICATION_DATA = { 'id': 'Identifier of this notification', 'notificationType': 'VnfIdentifierDeletionNotification', 'subscriptionId': 'Identifier of the subscription', 'timeStamp': '2018-9-12T00:00:00', 'vnfInstanceId': '2', '_links': { 'vnfInstance': {'href': 'URI of the referenced resource'}, 'subscription': {'href': 'URI of the referenced resource'}, 'vnfLcmOpOcc': {'href': 'URI of the referenced resource'} } }
grant_data = {'vnfInstanceId': '1', 'vnfLcmOpOccId': '2', 'vnfdId': '3', 'flavourId': '4', 'operation': 'INSTANTIATE', 'isAutomaticInvocation': True, 'instantiationLevelId': '5', 'addResources': [{'id': '1', 'type': 'COMPUTE', 'vduId': '2', 'resourceTemplateId': '3', 'resourceTemplate': {'vimConnectionId': '4', 'resourceProviderId': '5', 'resourceId': '6', 'vimLevelResourceType': '7'}}], 'placementConstraints': [{'affinityOrAntiAffinity': 'AFFINITY', 'scope': 'NFVI_POP', 'resource': [{'idType': 'RES_MGMT', 'resourceId': '1', 'vimConnectionId': '2', 'resourceProviderId': '3'}]}], 'vimConstraints': [{'sameResourceGroup': True, 'resource': [{'idType': 'RES_MGMT', 'resourceId': '1', 'vimConnectionId': '2', 'resourceProviderId': '3'}]}], 'additionalParams': {}, '_links': {'vnfLcmOpOcc': {'href': '1'}, 'vnfInstance': {'href': '2'}}} vnf_lcm_op_occ_notification_data = {'id': 'string', 'notificationType': 'VnfLcmOperationOccurrenceNotification', 'subscriptionId': 'string', 'timeStamp': 'string', 'notificationStatus': 'START', 'operationState': 'STARTING', 'vnfInstanceId': 'string', 'operation': 'INSTANTIATE', 'isAutomaticInvocation': True, 'vnfLcmOpOccId': 'string', 'affectedVnfcs': [{'id': 'string', 'vduId': 'string', 'changeType': 'ADDED', 'computeResource': {'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'string'}, 'metadata': {}, 'affectedVnfcCpIds': [], 'addedStorageResourceIds': [], 'removedStorageResourceIds': []}], 'affectedVirtualLinks': [{'id': 'string', 'virtualLinkDescId': 'string', 'changeType': 'ADDED', 'networkResource': {'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'network'}}], 'affectedVirtualStorages': [{'id': 'string', 'virtualStorageDescId': 'string', 'changeType': 'ADDED', 'storageResource': {'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'network'}, 'metadata': {}}], 'changedInfo': {'vnfInstanceName': 'string', 'vnfInstanceDescription': 'string', 'vnfConfigurableProperties': {'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string'}, 'metadata': {'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string'}, 'extensions': {'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string'}, 'vimConnectionInfo': [{'id': 'string', 'vimId': 'string', 'vimType': 'string', 'interfaceInfo': {'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string'}, 'accessInfo': {'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string'}, 'extra': {'additionalProp1': 'string', 'additionalProp2': 'string', 'additionalProp3': 'string'}}], 'vnfPkgId': 'string', 'vnfdId': 'string', 'vnfProvider': 'string', 'vnfProductName': 'string', 'vnfSoftwareVersion': 'string', 'vnfdVersion': 'string'}, 'changedExtConnectivity': [{'id': 'string', 'resourceHandle': {'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'string'}, 'extLinkPorts': [{'id': 'string', 'resourceHandle': {'vimConnectionId': 'string', 'resourceProviderId': 'string', 'resourceId': 'string', 'vimLevelResourceType': 'string'}, 'cpInstanceId': 'string'}]}], 'error': {'type': 'string', 'title': 'string', 'status': 0, 'detail': 'string', 'instance': 'string'}, '_links': {'vnfInstance': {'href': 'string'}, 'subscription': {'href': 'string'}, 'vnfLcmOpOcc': {'href': 'string'}}} vnf_identifier_creation_notification_data = {'id': 'Identifier of this notification', 'notificationType': 'VnfIdentifierCreationNotification', 'subscriptionId': 'Identifier of the subscription', 'timeStamp': '2018-9-12T00:00:00', 'vnfInstanceId': '2', '_links': {'vnfInstance': {'href': 'URI of the referenced resource'}, 'subscription': {'href': 'URI of the referenced resource'}, 'vnfLcmOpOcc': {'href': 'URI of the referenced resource'}}} vnf_identifier_deletion_notification_data = {'id': 'Identifier of this notification', 'notificationType': 'VnfIdentifierDeletionNotification', 'subscriptionId': 'Identifier of the subscription', 'timeStamp': '2018-9-12T00:00:00', 'vnfInstanceId': '2', '_links': {'vnfInstance': {'href': 'URI of the referenced resource'}, 'subscription': {'href': 'URI of the referenced resource'}, 'vnfLcmOpOcc': {'href': 'URI of the referenced resource'}}}
def my_func(): print("Foo") my_other_func = lambda: print("Bar") my_arr = [my_func, my_other_func] for i in range (0, 2): my_arr[i]() # Bots Position BOT_POS = [(5401, 1530),(3686, 1857),(3733, 2626),(2325, 1814), (1718, 1282),(1288, 2418),(1249, 506),(2513,1286) ] print("\n") for (x,y) in BOT_POS: print(x, y)
def my_func(): print('Foo') my_other_func = lambda : print('Bar') my_arr = [my_func, my_other_func] for i in range(0, 2): my_arr[i]() bot_pos = [(5401, 1530), (3686, 1857), (3733, 2626), (2325, 1814), (1718, 1282), (1288, 2418), (1249, 506), (2513, 1286)] print('\n') for (x, y) in BOT_POS: print(x, y)
class Solution: # @return a string def convert(self, s, nRows): if nRows == 1 or len(s) <= 2: return s # compute the length of the zigzag zigzagLen = 2*nRows - 2; lens = len(s) res = '' for i in range(nRows): idx = i while idx < lens: res = res + s[idx] if i != 0 and i != nRows - 1: x = idx + (zigzagLen - 2*i) if (x < lens): res = res + s[x] idx = idx + zigzagLen return res s = Solution() assert s.convert('0123456789', 5) == '0817926354' assert s.convert('0123456789', 3) == '0481357926' assert s.convert('0123456789', 2) == '0246813579' assert s.convert('012', 1) == '012'
class Solution: def convert(self, s, nRows): if nRows == 1 or len(s) <= 2: return s zigzag_len = 2 * nRows - 2 lens = len(s) res = '' for i in range(nRows): idx = i while idx < lens: res = res + s[idx] if i != 0 and i != nRows - 1: x = idx + (zigzagLen - 2 * i) if x < lens: res = res + s[x] idx = idx + zigzagLen return res s = solution() assert s.convert('0123456789', 5) == '0817926354' assert s.convert('0123456789', 3) == '0481357926' assert s.convert('0123456789', 2) == '0246813579' assert s.convert('012', 1) == '012'
amountNumbers = int(input()) arrNumbers = set(map(int, input().split())) amountCommands = int(input()) for i in range(amountCommands): command = input().split() if command[0] == "pop": arrNumbers.pop() elif command[0] == "remove": if int(command[1]) in arrNumbers: arrNumbers.remove(int(command[1])) elif command[0] == "discard": if int(command[1]) in arrNumbers: arrNumbers.discard(int(command[1])) print(sum(arrNumbers))
amount_numbers = int(input()) arr_numbers = set(map(int, input().split())) amount_commands = int(input()) for i in range(amountCommands): command = input().split() if command[0] == 'pop': arrNumbers.pop() elif command[0] == 'remove': if int(command[1]) in arrNumbers: arrNumbers.remove(int(command[1])) elif command[0] == 'discard': if int(command[1]) in arrNumbers: arrNumbers.discard(int(command[1])) print(sum(arrNumbers))
"""Tense analysis and detection related utilities.""" # pylint: disable=E0611 PRESENT = 'PRESENT' PAST = 'PAST' FUTURE = 'FUTURE' MODAL = 'MODAL' NORMAL = 'NORMAL'
"""Tense analysis and detection related utilities.""" present = 'PRESENT' past = 'PAST' future = 'FUTURE' modal = 'MODAL' normal = 'NORMAL'
# 238. Product of Array Except Self class Solution: def productExceptSelf(self, nums: List[int]) -> List[int]: cur, n = 1, len(nums) out = [1]*n for i in range(1, n): cur *= nums[i-1] out[i] = cur cur = 1 for i in range(n-2, -1, -1): cur *= nums[i+1] out[i] *= cur return out
class Solution: def product_except_self(self, nums: List[int]) -> List[int]: (cur, n) = (1, len(nums)) out = [1] * n for i in range(1, n): cur *= nums[i - 1] out[i] = cur cur = 1 for i in range(n - 2, -1, -1): cur *= nums[i + 1] out[i] *= cur return out
try: myfile1=open("E:\\python_progs\\demochange\\mydir2\\pic1.jpg","rb") myfile2=open("E:\\python_progs\\demochange\\mydir2\\newpic1.jpg","wb") bytes=myfile1.read() myfile2.write(bytes) print("A new Image is available having name as: newpic1.jpg") finally: myfile1.close() myfile2.close()
try: myfile1 = open('E:\\python_progs\\demochange\\mydir2\\pic1.jpg', 'rb') myfile2 = open('E:\\python_progs\\demochange\\mydir2\\newpic1.jpg', 'wb') bytes = myfile1.read() myfile2.write(bytes) print('A new Image is available having name as: newpic1.jpg') finally: myfile1.close() myfile2.close()
expected_output = { 'power-usage-information': { 'power-usage-item': [ { 'name': 'PSM 0', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '489.25', 'str-zone': 'Lower', 'str-dc-current': '9.50', 'str-dc-voltage': '51.50', 'str-dc-load': '23.30' } }, { 'name': 'PSM 1', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '489.25', 'str-zone': 'Lower', 'str-dc-current': '9.50', 'str-dc-voltage': '51.50', 'str-dc-load': '23.30' } }, { 'name': 'PSM 2', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '504.56', 'str-zone': 'Lower', 'str-dc-current': '9.75', 'str-dc-voltage': '51.75', 'str-dc-load': '24.03' } }, { 'name': 'PSM 3', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '491.62', 'str-zone': 'Lower', 'str-dc-current': '9.50', 'str-dc-voltage': '51.75', 'str-dc-load': '23.41' } }, { 'name': 'PSM 4', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 5', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 6', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 7', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 8', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 9', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '309.00', 'str-zone': 'Upper', 'str-dc-current': '6.00', 'str-dc-voltage': '51.50', 'str-dc-load': '14.71' } }, { 'name': 'PSM 10', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '307.50', 'str-zone': 'Upper', 'str-dc-current': '6.00', 'str-dc-voltage': '51.25', 'str-dc-load': '14.64' } }, { 'name': 'PSM 11', 'state': 'Online', 'dc-input-detail2': { 'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '309.00', 'str-zone': 'Upper', 'str-dc-current': '6.00', 'str-dc-voltage': '51.50', 'str-dc-load': '14.71' } }, { 'name': 'PSM 12', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 13', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 14', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 15', 'state': 'Unknown', 'dc-input-detail2': { 'dc-input-status': 'Not ready' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 16', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } }, { 'name': 'PSM 17', 'state': 'Present', 'dc-input-detail2': { 'dc-input-status': 'Check (No feed expected, No feed connected)' }, 'pem-capacity-detail': { 'capacity-actual': '2100', 'capacity-max': '2500' }, 'dc-output-detail2': { 'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00' } } ], 'power-usage-system': { 'power-usage-zone-information': [{ 'str-zone': 'Upper', 'capacity-actual': '6300', 'capacity-max': '7500', 'capacity-allocated': '3332', 'capacity-remaining': '2968', 'capacity-actual-usage': '925.50' }, { 'str-zone': 'Lower', 'capacity-actual': '8400', 'capacity-max': '10000', 'capacity-allocated': '6294', 'capacity-remaining': '2106', 'capacity-actual-usage': '1974.69' }], 'capacity-sys-actual': '14700', 'capacity-sys-max': '17500', 'capacity-sys-remaining': '5074' } } }
expected_output = {'power-usage-information': {'power-usage-item': [{'name': 'PSM 0', 'state': 'Online', 'dc-input-detail2': {'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '489.25', 'str-zone': 'Lower', 'str-dc-current': '9.50', 'str-dc-voltage': '51.50', 'str-dc-load': '23.30'}}, {'name': 'PSM 1', 'state': 'Online', 'dc-input-detail2': {'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '489.25', 'str-zone': 'Lower', 'str-dc-current': '9.50', 'str-dc-voltage': '51.50', 'str-dc-load': '23.30'}}, {'name': 'PSM 2', 'state': 'Online', 'dc-input-detail2': {'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '504.56', 'str-zone': 'Lower', 'str-dc-current': '9.75', 'str-dc-voltage': '51.75', 'str-dc-load': '24.03'}}, {'name': 'PSM 3', 'state': 'Online', 'dc-input-detail2': {'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '491.62', 'str-zone': 'Lower', 'str-dc-current': '9.50', 'str-dc-voltage': '51.75', 'str-dc-load': '23.41'}}, {'name': 'PSM 4', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 5', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 6', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 7', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 8', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Lower', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 9', 'state': 'Online', 'dc-input-detail2': {'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '309.00', 'str-zone': 'Upper', 'str-dc-current': '6.00', 'str-dc-voltage': '51.50', 'str-dc-load': '14.71'}}, {'name': 'PSM 10', 'state': 'Online', 'dc-input-detail2': {'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '307.50', 'str-zone': 'Upper', 'str-dc-current': '6.00', 'str-dc-voltage': '51.25', 'str-dc-load': '14.64'}}, {'name': 'PSM 11', 'state': 'Online', 'dc-input-detail2': {'dc-input-status': 'OK (INP0 feed expected, INP0 feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '309.00', 'str-zone': 'Upper', 'str-dc-current': '6.00', 'str-dc-voltage': '51.50', 'str-dc-load': '14.71'}}, {'name': 'PSM 12', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 13', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 14', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 15', 'state': 'Unknown', 'dc-input-detail2': {'dc-input-status': 'Not ready'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 16', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}, {'name': 'PSM 17', 'state': 'Present', 'dc-input-detail2': {'dc-input-status': 'Check (No feed expected, No feed connected)'}, 'pem-capacity-detail': {'capacity-actual': '2100', 'capacity-max': '2500'}, 'dc-output-detail2': {'str-dc-power': '0.00', 'str-zone': 'Upper', 'str-dc-current': '0.00', 'str-dc-voltage': '0.00', 'str-dc-load': '0.00'}}], 'power-usage-system': {'power-usage-zone-information': [{'str-zone': 'Upper', 'capacity-actual': '6300', 'capacity-max': '7500', 'capacity-allocated': '3332', 'capacity-remaining': '2968', 'capacity-actual-usage': '925.50'}, {'str-zone': 'Lower', 'capacity-actual': '8400', 'capacity-max': '10000', 'capacity-allocated': '6294', 'capacity-remaining': '2106', 'capacity-actual-usage': '1974.69'}], 'capacity-sys-actual': '14700', 'capacity-sys-max': '17500', 'capacity-sys-remaining': '5074'}}}
def list3(str): result = 0 for i in str: if i == 'a': result += 1 return result def main(): print(list3(['Hello', 'world', 'a'])) print(list3(['a', 'a'])) print(list3(['Computational', 'thinking'])) print(list3(['a', 'A', 'A'])) if __name__ == '__main__': main()
def list3(str): result = 0 for i in str: if i == 'a': result += 1 return result def main(): print(list3(['Hello', 'world', 'a'])) print(list3(['a', 'a'])) print(list3(['Computational', 'thinking'])) print(list3(['a', 'A', 'A'])) if __name__ == '__main__': main()
""" CS241 Checkpoint 01A Written by Chad Macbeth """ print("Hello Python World!")
""" CS241 Checkpoint 01A Written by Chad Macbeth """ print('Hello Python World!')
# EG8-13 Average Sales # test sales data sales=[50,54,29,33,22,100,45,54,89,75] def average_sales(): ''' Print out the average sales value ''' total=0 for sales_value in sales: total = total+sales_value average_sales=total/len(sales) print('Average sales are:', average_sales) average_sales()
sales = [50, 54, 29, 33, 22, 100, 45, 54, 89, 75] def average_sales(): """ Print out the average sales value """ total = 0 for sales_value in sales: total = total + sales_value average_sales = total / len(sales) print('Average sales are:', average_sales) average_sales()
TRACK_WORDS = ["coronavirus"] TABLE_NAME = "coronavirus" TABLE_ATTRIBUTES = "id_str VARCHAR(255), created_at DATETIME, text VARCHAR(255), \ polarity INT, subjectivity INT, user_location VARCHAR(255), \ user_description VARCHAR(255), longitude DOUBLE, latitude DOUBLE, \ retweet_count INT, favorite_count INT"
track_words = ['coronavirus'] table_name = 'coronavirus' table_attributes = 'id_str VARCHAR(255), created_at DATETIME, text VARCHAR(255), polarity INT, subjectivity INT, user_location VARCHAR(255), user_description VARCHAR(255), longitude DOUBLE, latitude DOUBLE, retweet_count INT, favorite_count INT'
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """ Errors for the library All exceptions defined by the library should be defined in this file. """ class UnchangedInstanceNameError(IOError): """The new instance name is the same as the original one's""" pass class InvalidTargetNetworkError(IOError): """Migrate to a non-VPC network""" pass class ZoneOperationsError(Exception): """Zone operation's error""" pass class RegionOperationsError(Exception): """Region operation's error""" pass class AttributeNotExistError(KeyError): """An attribute doesn't exist in the googleapi's response""" pass class InvalidTypeError(TypeError): """Type error""" pass class MissingSubnetworkError(IOError): """The subnetwork is not defined""" pass class RollbackError(Exception): """The rollback procedure is failed""" pass class AddInstanceToInstanceGroupError(Exception): """Adding an instance back to the instance group is failed""" pass class TargetTypeError(Exception): """The target type is not supported""" pass class UnsupportedForwardingRule(Exception): """The type of the forwarding rule is not supported""" pass class UnsupportedBackendService(Exception): """The type of the backend service is not supported""" pass class MigrationFailed(Exception): """The migration is failed, and the rollback was called""" pass class InvalidSelfLink(Exception): """The selfLink is unable to be parsed""" pass class AmbiguousTargetResource(Exception): """The target resource can be an instance group or a single instance""" pass class MultipleTargetPools(Exception): """The instance group is serving mutliple target pools at the same time""" pass class SubnetworkNotExists(Exception): """The subnetwork doens't exist in the network""" pass class UnableToGenerateNewInstanceTemplate(Exception): """Unable to genereate a new instance template""" pass
""" Errors for the library All exceptions defined by the library should be defined in this file. """ class Unchangedinstancenameerror(IOError): """The new instance name is the same as the original one's""" pass class Invalidtargetnetworkerror(IOError): """Migrate to a non-VPC network""" pass class Zoneoperationserror(Exception): """Zone operation's error""" pass class Regionoperationserror(Exception): """Region operation's error""" pass class Attributenotexisterror(KeyError): """An attribute doesn't exist in the googleapi's response""" pass class Invalidtypeerror(TypeError): """Type error""" pass class Missingsubnetworkerror(IOError): """The subnetwork is not defined""" pass class Rollbackerror(Exception): """The rollback procedure is failed""" pass class Addinstancetoinstancegrouperror(Exception): """Adding an instance back to the instance group is failed""" pass class Targettypeerror(Exception): """The target type is not supported""" pass class Unsupportedforwardingrule(Exception): """The type of the forwarding rule is not supported""" pass class Unsupportedbackendservice(Exception): """The type of the backend service is not supported""" pass class Migrationfailed(Exception): """The migration is failed, and the rollback was called""" pass class Invalidselflink(Exception): """The selfLink is unable to be parsed""" pass class Ambiguoustargetresource(Exception): """The target resource can be an instance group or a single instance""" pass class Multipletargetpools(Exception): """The instance group is serving mutliple target pools at the same time""" pass class Subnetworknotexists(Exception): """The subnetwork doens't exist in the network""" pass class Unabletogeneratenewinstancetemplate(Exception): """Unable to genereate a new instance template""" pass
print ("Hello Guys!") #Hello Guys! print (2+3) #5 #windows - use F9 key for execution of the selected line """ learning flow data types input from the User control flow - if else elif looping - while for string operations internal datastructure - list, dict, tuple.. file handling """ a = 10 b = 2.3 c = True d = "Forsk" e = 'Forsk' f = "F" g = 'F' h = None #null,same as c and c++ """ data types int float bool str NoneType """ x = "10" cname = "Forsk" print (type(cname)) #<str> len(cname) #5 print (cname) #Forsk cname[0] #F cname[1] #o cname[-1] #k
print('Hello Guys!') print(2 + 3) ' learning flow \ndata types\ninput from the User\ncontrol flow - if else elif\nlooping - while for\nstring operations\ninternal datastructure - list, dict, tuple..\nfile handling\n' a = 10 b = 2.3 c = True d = 'Forsk' e = 'Forsk' f = 'F' g = 'F' h = None ' data types \nint\nfloat\nbool\nstr\nNoneType\n' x = '10' cname = 'Forsk' print(type(cname)) len(cname) print(cname) cname[0] cname[1] cname[-1]
''' 1. Write a Python program to find the first triangle number to have over n(given) divisors. From Wikipedia: A triangular number is a number that is the sum of all of the natural numbers up to a certain number. For example, 10 is a triangular number because 1 + 2 + 3 + 4 = 10. The first 25 triangular numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325, and 351. A triangular number is calculated by the equation: n(n+1)/2 The factors of the first five triangle numbers: 1: 1 3: 1, 3 6: 1, 2, 3, 6 10: 1, 2, 5, 10 15: 1, 3, 5, 15 In the above list 6 is the first triangle number to have over four divisors '''
""" 1. Write a Python program to find the first triangle number to have over n(given) divisors. From Wikipedia: A triangular number is a number that is the sum of all of the natural numbers up to a certain number. For example, 10 is a triangular number because 1 + 2 + 3 + 4 = 10. The first 25 triangular numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325, and 351. A triangular number is calculated by the equation: n(n+1)/2 The factors of the first five triangle numbers: 1: 1 3: 1, 3 6: 1, 2, 3, 6 10: 1, 2, 5, 10 15: 1, 3, 5, 15 In the above list 6 is the first triangle number to have over four divisors """
def predict(lr, sample): return lr.predict(sample.reshape(1, -1)) def predict2(lr, sample): return lr.predict([sample])
def predict(lr, sample): return lr.predict(sample.reshape(1, -1)) def predict2(lr, sample): return lr.predict([sample])
class Solution: def getMoneyAmount(self, n: int) -> int: # dp[i][j] means minimum amount of money [i , j] # dp[i][j] = min(n + max(dp[i][n-1] , dp[n+1][j])) dp = [[-1 for _ in range(n+1)] for _ in range(n+1)] def cal_range(i,j): # basic situation if i >= len(dp) or j >= len(dp) or i <= 0 or j <=0: return 0 if i >= j: dp[i][j] = 0 if dp[i][j] != -1: return dp[i][j] for n in range(i,j+1): candidate = n + max(cal_range(i,n-1) , cal_range(n+1,j)) dp[i][j] = candidate if dp[i][j] == -1 else min(candidate,dp[i][j]) return dp[i][j] return cal_range(1,n)
class Solution: def get_money_amount(self, n: int) -> int: dp = [[-1 for _ in range(n + 1)] for _ in range(n + 1)] def cal_range(i, j): if i >= len(dp) or j >= len(dp) or i <= 0 or (j <= 0): return 0 if i >= j: dp[i][j] = 0 if dp[i][j] != -1: return dp[i][j] for n in range(i, j + 1): candidate = n + max(cal_range(i, n - 1), cal_range(n + 1, j)) dp[i][j] = candidate if dp[i][j] == -1 else min(candidate, dp[i][j]) return dp[i][j] return cal_range(1, n)
class Question: def __init__(self, q_text, q_answer): self._text = q_text self._answer = q_answer @property def text(self): return self._text @text.setter def text(self, d): self._text = d @property def answer(self): return self._answer
class Question: def __init__(self, q_text, q_answer): self._text = q_text self._answer = q_answer @property def text(self): return self._text @text.setter def text(self, d): self._text = d @property def answer(self): return self._answer
# Given a string, find the first uppercase character. # Solve using both an iterative and recursive solution. input_str_1 = "lucidProgramming" input_str_2 = "LucidProgramming" input_str_3 = "lucidprogramming" def find_uppercase_iterative(input_str): for i in range(len(input_str)): if input_str[i].isupper(): return input_str[i] return "No uppercase character found" def find_uppercase_recursive(input_str, idx=0): if input_str[idx].isupper(): return input_str[idx] if idx == len(input_str) - 1: return "No uppercase character found" return find_uppercase_recursive(input_str, idx+1) print(find_uppercase_iterative(input_str_1)) print(find_uppercase_iterative(input_str_2)) print(find_uppercase_iterative(input_str_3)) print(find_uppercase_recursive(input_str_1)) print(find_uppercase_recursive(input_str_2)) print(find_uppercase_recursive(input_str_3))
input_str_1 = 'lucidProgramming' input_str_2 = 'LucidProgramming' input_str_3 = 'lucidprogramming' def find_uppercase_iterative(input_str): for i in range(len(input_str)): if input_str[i].isupper(): return input_str[i] return 'No uppercase character found' def find_uppercase_recursive(input_str, idx=0): if input_str[idx].isupper(): return input_str[idx] if idx == len(input_str) - 1: return 'No uppercase character found' return find_uppercase_recursive(input_str, idx + 1) print(find_uppercase_iterative(input_str_1)) print(find_uppercase_iterative(input_str_2)) print(find_uppercase_iterative(input_str_3)) print(find_uppercase_recursive(input_str_1)) print(find_uppercase_recursive(input_str_2)) print(find_uppercase_recursive(input_str_3))
def phi1(n): ''' sqrt(n) ''' res=n i=2 while(i*i<=n): if n%i==0: res=res//i res=res*(i-1) while(n%i==0): n=n//i i+=1 if n>1: res=res//n res=res*(n-1) return res ''' log(log(n)) ''' def phi2(maxn): phi=[] for i in range(maxn+2): phi.append(i) for i in range(2,maxn+2): if phi[i]==i: for j in range(i,maxn+2,i): phi[j]=phi[j]//i phi[j]*=(i-1) return phi[maxn] t=10 while(t): n=int(input()) print(phi1(n)) print(phi2(n))
def phi1(n): """ sqrt(n) """ res = n i = 2 while i * i <= n: if n % i == 0: res = res // i res = res * (i - 1) while n % i == 0: n = n // i i += 1 if n > 1: res = res // n res = res * (n - 1) return res '\nlog(log(n))\n' def phi2(maxn): phi = [] for i in range(maxn + 2): phi.append(i) for i in range(2, maxn + 2): if phi[i] == i: for j in range(i, maxn + 2, i): phi[j] = phi[j] // i phi[j] *= i - 1 return phi[maxn] t = 10 while t: n = int(input()) print(phi1(n)) print(phi2(n))
""" Helita python library """ __all__ = ["io", "obs", "sim", "utils"] #from . import io #from . import obs #from . import sim #from . import utils
""" Helita python library """ __all__ = ['io', 'obs', 'sim', 'utils']
# Given an unsorted integer array, find the smallest missing positive integer. # # Example 1: # # Input: [1,2,0] # Output: 3 # Example 2: # # Input: [3,4,-1,1] # Output: 2 # Example 3: # # Input: [7,8,9,11,12] # Output: 1 # Note: # # Your algorithm should run in O(n) time and uses constant extra space. class Solution(object): def firstMissingPositive(self, nums): """ :type nums: List[int] :rtype: int Basic idea: 1. for any array whose length is l, the first missing positive must be in range [1,...,l+1], so we only have to care about those elements in this range and remove the rest. 2. we can use the array index as the hash to restore the frequency of each number within the range [1,...,l+1] """ # nums.append(0) # n = len(nums) # for i in range(len(nums)): # delete those useless elements # if nums[i] < 0 or nums[i] >= n: # nums[i] = 0 # for i in range(len(nums)): # use the index as the hash to record the frequency of each number # nums[nums[i] % n] += n # for i in range(1, len(nums)): # if nums[i] / n == 0: # return i # return n idx = 0 while idx < len(nums): if nums[idx] > 0 and nums[idx] != idx + 1 and nums[idx] <= len(nums) and nums[nums[idx]-1]!=nums[idx]: temp = nums[nums[idx] - 1] nums[nums[idx] - 1] = nums[idx] nums[idx] = temp else: idx += 1 for idx in range(len(nums)): if nums[idx] != idx + 1: return idx + 1 return len(nums) + 1 s = Solution() print(s.firstMissingPositive([1,2,0]))
class Solution(object): def first_missing_positive(self, nums): """ :type nums: List[int] :rtype: int Basic idea: 1. for any array whose length is l, the first missing positive must be in range [1,...,l+1], so we only have to care about those elements in this range and remove the rest. 2. we can use the array index as the hash to restore the frequency of each number within the range [1,...,l+1] """ idx = 0 while idx < len(nums): if nums[idx] > 0 and nums[idx] != idx + 1 and (nums[idx] <= len(nums)) and (nums[nums[idx] - 1] != nums[idx]): temp = nums[nums[idx] - 1] nums[nums[idx] - 1] = nums[idx] nums[idx] = temp else: idx += 1 for idx in range(len(nums)): if nums[idx] != idx + 1: return idx + 1 return len(nums) + 1 s = solution() print(s.firstMissingPositive([1, 2, 0]))
def say_(func): func() def hi(): print("Hello") # Estoy pasando hi como argumento de say_ say_(hi)
def say_(func): func() def hi(): print('Hello') say_(hi)
__author__ = 'chris' """ Package for holding all of our protobuf classes """
__author__ = 'chris' '\nPackage for holding all of our protobuf classes\n'
N, A, B = map(int, input().split()) print(min(A, B), end=" ") if N - A <= B: print(B - N + A) else: print(0)
(n, a, b) = map(int, input().split()) print(min(A, B), end=' ') if N - A <= B: print(B - N + A) else: print(0)
class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: hashStudent = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: if hashStudent[sandwich] == 0: break else: hashStudent[sandwich] -= 1 return sum(hashStudent.values()) class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: hashStudent = {0:0, 1:0} hashSandwich = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hashStudent = {0:0, 1:0} hashSandwich = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hashStudent = {0:0, 1:0} hashSandwich = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: flag = False break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: flag = False break return hashStudent[0] + hashStudent[1] class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hashStudent = collections.Counter(students) hashSandwich = collections.Counter(sandwiches) while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1]
class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: hash_student = {0: 0, 1: 0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: if hashStudent[sandwich] == 0: break else: hashStudent[sandwich] -= 1 return sum(hashStudent.values()) class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: hash_student = {0: 0, 1: 0} hash_sandwich = {0: 0, 1: 0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) first_s = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hash_student = {0: 0, 1: 0} hash_sandwich = {0: 0, 1: 0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) first_s = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hash_student = {0: 0, 1: 0} hash_sandwich = {0: 0, 1: 0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: flag = False break else: students.pop(0) first_s = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: flag = False break return hashStudent[0] + hashStudent[1] class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hash_student = collections.Counter(students) hash_sandwich = collections.Counter(sandwiches) while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) first_s = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1]
def main(): a = 1.0 b = 397.0 print(a/b) return(0) main()
def main(): a = 1.0 b = 397.0 print(a / b) return 0 main()
class Solution: def nextGreaterElement(self, n: int) -> int: num = list(str(n)) i = len(num) - 2 while i >= 0: if num[i] < num[i + 1]: break i -= 1 if i == -1: return -1 j = len(num) - 1 while num[j] <= num[i]: j -= 1 num[i], num[j] = num[j], num[i] result = int(''.join(num[:i + 1] + num[i + 1:][::-1])) return result if result < (1 << 31) else -1
class Solution: def next_greater_element(self, n: int) -> int: num = list(str(n)) i = len(num) - 2 while i >= 0: if num[i] < num[i + 1]: break i -= 1 if i == -1: return -1 j = len(num) - 1 while num[j] <= num[i]: j -= 1 (num[i], num[j]) = (num[j], num[i]) result = int(''.join(num[:i + 1] + num[i + 1:][::-1])) return result if result < 1 << 31 else -1
def cake(candles,debris): res = 0 for i,v in enumerate(debris): if i%2: res+=ord(v)-97 else: res+=ord(v) if res>0.7*candles and candles: return "Fire!" else: return 'That was close!'
def cake(candles, debris): res = 0 for (i, v) in enumerate(debris): if i % 2: res += ord(v) - 97 else: res += ord(v) if res > 0.7 * candles and candles: return 'Fire!' else: return 'That was close!'
class ColorTheme: def __init__(self, name: str, display_name: str, version: str): self.name = name self.display_name = display_name self.version = version
class Colortheme: def __init__(self, name: str, display_name: str, version: str): self.name = name self.display_name = display_name self.version = version
class ProjectStatus: def __init__(self, name): self.name = name self.icon = None self.status = None def add_icon(self, icon): self.icon = icon def set_status(self, status): self.status = status class ProjectStatusDictionary(object): def __init__(self): self.projects = dict() def get_project(self, project): if project not in self.projects: self.projects[project] = ProjectStatus(project) return self.projects[project] class ProjectCache(object): def __init__(self): self.namespaces = dict() def add_icon(self, namespace, project, icon): self.get_project(namespace, project).add_icon(icon) def set_status(self, namespace, project, status): self.get_project(namespace, project).set_status(status) def get_project(self, namespace, project): if namespace not in self.namespaces: self.namespaces[namespace] = ProjectStatusDictionary() return self.namespaces[namespace].get_project(project) def get_list_of_statuses(self): status_list = [] for namespace in self.namespaces.values(): for project in namespace.projects.values(): status_list.append(project) return status_list
class Projectstatus: def __init__(self, name): self.name = name self.icon = None self.status = None def add_icon(self, icon): self.icon = icon def set_status(self, status): self.status = status class Projectstatusdictionary(object): def __init__(self): self.projects = dict() def get_project(self, project): if project not in self.projects: self.projects[project] = project_status(project) return self.projects[project] class Projectcache(object): def __init__(self): self.namespaces = dict() def add_icon(self, namespace, project, icon): self.get_project(namespace, project).add_icon(icon) def set_status(self, namespace, project, status): self.get_project(namespace, project).set_status(status) def get_project(self, namespace, project): if namespace not in self.namespaces: self.namespaces[namespace] = project_status_dictionary() return self.namespaces[namespace].get_project(project) def get_list_of_statuses(self): status_list = [] for namespace in self.namespaces.values(): for project in namespace.projects.values(): status_list.append(project) return status_list
class Vitals: LEARNING_RATE = 0.1 MOMENTUM_RATE = 0.8 FIRST_LAYER = 5 * 7 SECOND_LAYER = 14 OUTPUT_LAYER = 3
class Vitals: learning_rate = 0.1 momentum_rate = 0.8 first_layer = 5 * 7 second_layer = 14 output_layer = 3
# We will register here processors for the message types by name VM_ENGINE_REGISTER = dict() def register_vm_engine(engine_name, engine_class): """ Verifies a message is valid before forwarding it, handling it (should it be different?). """ VM_ENGINE_REGISTER[engine_name] = engine_class
vm_engine_register = dict() def register_vm_engine(engine_name, engine_class): """ Verifies a message is valid before forwarding it, handling it (should it be different?). """ VM_ENGINE_REGISTER[engine_name] = engine_class
print('C L A S S I C S O L U T I O N') range_of_numbers = [] div_by_2 = [] div_by_3 = [] other_numbers = [] for i in range(1,11): range_of_numbers.append(i) if i%2 == 0: div_by_2.append(i) elif i%3 == 0: div_by_3.append(i) else: other_numbers.append(i) print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ',div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers) print('') print('') print('L I S T C O M P R E H E N S I O N') range_of_numbers = [i for i in range (1, 11)] div_by_2 = [i for i in range (1, 11) if i % 2 == 0 ] div_by_3 = [i for i in range (1, 11) if i % 2 == 1 and i % 3 == 0] other_numbers = [i for i in range (1, 11) if i % 2 == 1 and i % 3 == 1] print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ',div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers)
print('C L A S S I C S O L U T I O N') range_of_numbers = [] div_by_2 = [] div_by_3 = [] other_numbers = [] for i in range(1, 11): range_of_numbers.append(i) if i % 2 == 0: div_by_2.append(i) elif i % 3 == 0: div_by_3.append(i) else: other_numbers.append(i) print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ', div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers) print('') print('') print('L I S T C O M P R E H E N S I O N') range_of_numbers = [i for i in range(1, 11)] div_by_2 = [i for i in range(1, 11) if i % 2 == 0] div_by_3 = [i for i in range(1, 11) if i % 2 == 1 and i % 3 == 0] other_numbers = [i for i in range(1, 11) if i % 2 == 1 and i % 3 == 1] print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ', div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers)
""" Helper modules. These should be stand alone modules that could reasonably be their own PyPI package. This comes with two benefits: 1. The library is void of any business data, which makes it easier to understand. 2. It means that it is decoupled making it easy to reuse the code in different sections of the code. An example is the :mod:`stack_exchange_graph_data.helpers.progress` module. Which is easily used in both :func:`stack_exchange_graph_data.helpers.curl.curl` and :func:`stack_exchange_graph_data.driver.load_xml_stream`. Since it wraps a stream it's easily transferable to any Python loop, and due to lacking business logic means there's no monkey patching. """
""" Helper modules. These should be stand alone modules that could reasonably be their own PyPI package. This comes with two benefits: 1. The library is void of any business data, which makes it easier to understand. 2. It means that it is decoupled making it easy to reuse the code in different sections of the code. An example is the :mod:`stack_exchange_graph_data.helpers.progress` module. Which is easily used in both :func:`stack_exchange_graph_data.helpers.curl.curl` and :func:`stack_exchange_graph_data.driver.load_xml_stream`. Since it wraps a stream it's easily transferable to any Python loop, and due to lacking business logic means there's no monkey patching. """
# limitation :pattern count of each char to be max 1 text = "912873129" pat = "123" window_found = False prev_min = 0 prev_max = 0 prev_pos = -1 lookup_tab = dict() # detect first window formation when all characters are found # change window whenever new character was the previous minimum # if new window smaller than previous smallest, change current min window for pos, c in enumerate(text): if c in pat: prev_pos = lookup_tab.get(c, -1) lookup_tab[c] = pos if window_found == True: cur_max = pos if prev_pos == cur_min: # new min needed cur_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) print('new min on update of ', c, ' is ', cur_min) if cur_max - cur_min < prev_max - prev_min: prev_min = cur_min prev_max = cur_max elif len(lookup_tab) == len(pat): cur_min = prev_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) cur_max = prev_max = max(list([lookup_tab[k] for k in lookup_tab.keys()])) window_found = True print(prev_min, prev_max)
text = '912873129' pat = '123' window_found = False prev_min = 0 prev_max = 0 prev_pos = -1 lookup_tab = dict() for (pos, c) in enumerate(text): if c in pat: prev_pos = lookup_tab.get(c, -1) lookup_tab[c] = pos if window_found == True: cur_max = pos if prev_pos == cur_min: cur_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) print('new min on update of ', c, ' is ', cur_min) if cur_max - cur_min < prev_max - prev_min: prev_min = cur_min prev_max = cur_max elif len(lookup_tab) == len(pat): cur_min = prev_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) cur_max = prev_max = max(list([lookup_tab[k] for k in lookup_tab.keys()])) window_found = True print(prev_min, prev_max)
class ResponseKeys(object): POST = 'post' POSTS = 'posts' POST_SAVED = 'The post was saved successfully' POST_UPDATED = 'The post was updated successfully' POST_DELETED = 'The post was deleted successfully' POST_NOT_FOUND = 'The post could not be found'
class Responsekeys(object): post = 'post' posts = 'posts' post_saved = 'The post was saved successfully' post_updated = 'The post was updated successfully' post_deleted = 'The post was deleted successfully' post_not_found = 'The post could not be found'
# This problem was recently asked by Google: # Given a singly-linked list, reverse the list. This can be done iteratively or recursively. Can you get both solutions? class ListNode(object): def __init__(self, x): self.val = x self.next = None # Function to print the list def printList(self): node = self output = '' while node != None: output += str(node.val) output += " " node = node.next print(output) # Iterative Solution def reverseIteratively(self, head): # Implement this. node = head finalList = [] while node != None: finalList.append(node.val) node = node.next finalList.reverse() startNode = n = ListNode(finalList[0]) for i in range(1, len(finalList)): n.next = ListNode(finalList[i]) n = n.next return startNode # Recursive Solution finalList = [] def reverseRecursively(self, head): # Implement this. if head != None: self.finalList.append(head.val) if head.next != None: self.reverseRecursively(head.next) else: self.finalList.reverse() startNode = n = ListNode(self.finalList[0]) for i in range(1, len(self.finalList)): n.next = ListNode(self.finalList[i]) n = n.next return startNode # Test Program # Initialize the test list: testHead = ListNode(4) node1 = ListNode(3) testHead.next = node1 node2 = ListNode(2) node1.next = node2 node3 = ListNode(1) node2.next = node3 testTail = ListNode(0) node3.next = testTail print("Initial list: ") testHead.printList() # 4 3 2 1 0 print("List after Iterative reversal: ") testHead.reverseIteratively(testHead).printList() # testTail.printList() # 0 1 2 3 4 # print("List after Recursive reversal: ") # testHead.reverseRecursively(testHead).printList() # testTail.printList() # 0 1 2 3 4
class Listnode(object): def __init__(self, x): self.val = x self.next = None def print_list(self): node = self output = '' while node != None: output += str(node.val) output += ' ' node = node.next print(output) def reverse_iteratively(self, head): node = head final_list = [] while node != None: finalList.append(node.val) node = node.next finalList.reverse() start_node = n = list_node(finalList[0]) for i in range(1, len(finalList)): n.next = list_node(finalList[i]) n = n.next return startNode final_list = [] def reverse_recursively(self, head): if head != None: self.finalList.append(head.val) if head.next != None: self.reverseRecursively(head.next) else: self.finalList.reverse() start_node = n = list_node(self.finalList[0]) for i in range(1, len(self.finalList)): n.next = list_node(self.finalList[i]) n = n.next return startNode test_head = list_node(4) node1 = list_node(3) testHead.next = node1 node2 = list_node(2) node1.next = node2 node3 = list_node(1) node2.next = node3 test_tail = list_node(0) node3.next = testTail print('Initial list: ') testHead.printList() print('List after Iterative reversal: ') testHead.reverseIteratively(testHead).printList()
# Longest Substring Without Repeating Characters # Medium class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ # DP Solution based on map, not satisfactory. if not s: return 0 word_set = {} counts = [0] * len(s) word_set[s[0]] = 0 counts[0] = 1 for i in range(1, len(s)): if not s[i] in word_set.keys(): counts[i] = counts[i-1] + 1 word_set[s[i]] = i else: for key,value in word_set.items(): if value < word_set[s[i]]: word_set.pop(key) counts[i] = i - word_set[s[i]] word_set[s[i]] = i return max(counts)
class Solution(object): def length_of_longest_substring(self, s): """ :type s: str :rtype: int """ if not s: return 0 word_set = {} counts = [0] * len(s) word_set[s[0]] = 0 counts[0] = 1 for i in range(1, len(s)): if not s[i] in word_set.keys(): counts[i] = counts[i - 1] + 1 word_set[s[i]] = i else: for (key, value) in word_set.items(): if value < word_set[s[i]]: word_set.pop(key) counts[i] = i - word_set[s[i]] word_set[s[i]] = i return max(counts)
""" ======================================================================== Placeholder.py ======================================================================== Author : Shunning Jiang Date : June 1, 2019 """ class Placeholder: pass
""" ======================================================================== Placeholder.py ======================================================================== Author : Shunning Jiang Date : June 1, 2019 """ class Placeholder: pass
#!/usr/bin/env python # -*- coding: utf-8 -*- def LF_flux(FL, FR, lmax, lmin, UR, UL, dt, dx): ctilde = dx / dt return 0.5 * (FL + FR) - 0.5 * ctilde * (UR - UL)
def lf_flux(FL, FR, lmax, lmin, UR, UL, dt, dx): ctilde = dx / dt return 0.5 * (FL + FR) - 0.5 * ctilde * (UR - UL)
""" Given a collection of intervals, merge all overlapping intervals. Example 1: Input: [[1, 3], [2, 6], [8, 10], [15, 18]], Output: [[1, 6], [8, 10], [15, 18]] Explanation: Since intervals [1, 3] and [2, 6] overlaps, merge them into [1, 6]. Example 2: Input: [[1, 4], [4, 5]], Output: [[1, 5]] Explanation: Intervals [1, 4] and [4, 5] are considered overlapping. """ """ We first sort the list of intervals so they are in ascending order. Sorting the list first means we never have to check the lower part of the last result, as we are guaranteed the subsequent lowers will be either within the last result - in which case we check the upper to see if the last result can be extended or the current interval skipped - or higher than it - in which case it is a new interval and we add it to the results. """ def merge_intervals(intervals): results = [] if not intervals: return results intervals.sort() for interval in intervals: if not results or interval[0] > results[-1][1]: results.append(interval) elif interval[1] > results[-1][1]: results[-1][1] = interval[1] return results assert merge_intervals([[1, 3], [2, 6], [8, 10], [15, 18]]) == [[1, 6], [8, 10], [15, 18]] assert merge_intervals([[1, 4], [4, 5]]) == [[1, 5]] assert merge_intervals([[1, 4], [0, 5]]) == [[0, 5]] assert merge_intervals([[2, 3], [4, 5], [6, 7], [8, 9], [1, 10]]) == [[1, 10]] assert merge_intervals([[2, 3], [4, 6], [5, 7], [3, 4]]) == [[2, 7]] assert merge_intervals( [[2, 3], [5, 7], [0, 1], [4, 6], [5, 5], [4, 6], [5, 6], [1, 3], [4, 4], [0, 0], [3, 5], [2, 2]]) == [[0, 7]] assert merge_intervals( [[3, 5], [0, 0], [4, 4], [0, 2], [5, 6], [4, 5], [3, 5], [1, 3], [4, 6], [4, 6], [3, 4]]) == [[0, 6]]
""" Given a collection of intervals, merge all overlapping intervals. Example 1: Input: [[1, 3], [2, 6], [8, 10], [15, 18]], Output: [[1, 6], [8, 10], [15, 18]] Explanation: Since intervals [1, 3] and [2, 6] overlaps, merge them into [1, 6]. Example 2: Input: [[1, 4], [4, 5]], Output: [[1, 5]] Explanation: Intervals [1, 4] and [4, 5] are considered overlapping. """ '\nWe first sort the list of intervals so they are in ascending order. Sorting the list first means we never have to \ncheck the lower part of the last result, as we are guaranteed the subsequent lowers will be either within the last \nresult - in which case we check the upper to see if the last result can be extended or the current interval skipped - \nor higher than it - in which case it is a new interval and we add it to the results.\n' def merge_intervals(intervals): results = [] if not intervals: return results intervals.sort() for interval in intervals: if not results or interval[0] > results[-1][1]: results.append(interval) elif interval[1] > results[-1][1]: results[-1][1] = interval[1] return results assert merge_intervals([[1, 3], [2, 6], [8, 10], [15, 18]]) == [[1, 6], [8, 10], [15, 18]] assert merge_intervals([[1, 4], [4, 5]]) == [[1, 5]] assert merge_intervals([[1, 4], [0, 5]]) == [[0, 5]] assert merge_intervals([[2, 3], [4, 5], [6, 7], [8, 9], [1, 10]]) == [[1, 10]] assert merge_intervals([[2, 3], [4, 6], [5, 7], [3, 4]]) == [[2, 7]] assert merge_intervals([[2, 3], [5, 7], [0, 1], [4, 6], [5, 5], [4, 6], [5, 6], [1, 3], [4, 4], [0, 0], [3, 5], [2, 2]]) == [[0, 7]] assert merge_intervals([[3, 5], [0, 0], [4, 4], [0, 2], [5, 6], [4, 5], [3, 5], [1, 3], [4, 6], [4, 6], [3, 4]]) == [[0, 6]]
def get_circles(image): img = image.copy() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) circles = cv2.HoughCircles(gray, cv2.HOUGH_GRADIENT, 2, 100) if circles is not None: circles = np.round(circles[0, :]).astype("int") for x, y, r in circles: cv2.circle(img, (x, y), r, (255, 0, 0), 4) cv2.rectangle(img, (x - 3, y - 3), (x + 3, y + 3), (255, 0, 0), -1) return img
def get_circles(image): img = image.copy() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) circles = cv2.HoughCircles(gray, cv2.HOUGH_GRADIENT, 2, 100) if circles is not None: circles = np.round(circles[0, :]).astype('int') for (x, y, r) in circles: cv2.circle(img, (x, y), r, (255, 0, 0), 4) cv2.rectangle(img, (x - 3, y - 3), (x + 3, y + 3), (255, 0, 0), -1) return img
# Ciholas, Inc. - www.ciholas.com # Licensed under: creativecommons.org/licenses/by/4.0 class Zone: """A zone in the form of a polygon""" def __init__(self, name, vertices, color): self.name = name self.vertices = vertices self.color = color x_list = [] y_list = [] for vertex in self.vertices: x_list.append(vertex[0]) y_list.append(vertex[1]) # Needs to be stored for future tests self.y_list = y_list # Finding these extrema helps with calculating where a point is in respect to the zone self.x_max = max(x_list) self.x_min = min(x_list) self.y_max = max(y_list) self.y_min = min(y_list) # It is easier to calculate position based off each side, so we will now store every line side_num = 0 sides = [] for vertex in self.vertices: side_num += 1 try: sides.append(Line(vertex, self.vertices[side_num])) except Exception: sides.append(Line(vertex, self.vertices[0])) self.sides = sides def __str__(self): return self.name def is_inside(self, point_ray): """Determines if the given point, which has been transformed into a ray, is inside or outside of the zone. """ x = point_ray.x1 y = point_ray.y1 if (x > self.x_max or x < self.x_min or y > self.y_max or y < self.y_min): return False else: # Since the last method didn't work, it is time for the resource expensive test # The ray will be compared to every line. If there is an intersection, it will be tracked # If there is an odd number of intersections, the point is inside the zone # If there is an even number of intersections, the point is outside the zone # If the ray is tangent, it will be counted as two intersections intersections = 0 for side in self.sides: if point_ray.is_intersected(side): intersections += 1 # If a line went through a vertex, it counted as two intersections. This will fix that. # If a line hit a vertex as a tangent, it had to of been at the the Y max or Y min. # We want these counted as 2 intersections, but other vertex intersections should be just 1 if y in self.y_list and y != self.y_max and y != self.y_min: for vertex in self.vertices: if vertex[1] != self.y_max and vertex[1] != self.y_min and vertex[1] == y and vertex[0] > x: intersections -= 1 if intersections % 2 == 1: return True else: return False class Line: """Holds the data for a line in the form of two points""" def __init__(self, point_1, point_2): self.x1 = point_1[0] self.y1 = point_1[1] self.x2 = point_2[0] self.y2 = point_2[1] # a, b, c are used with determining interception. # It is more efficient to calculate them once in the construction # than it is to calculate them every time they are used. self.intercept_coeff_a = self.y2 - self.y1 self.intercept_coeff_b = self.x1 - self.x2 self.intercept_coeff_c = (self.x2 * self.y1) - (self.x1 * self.y2) def is_intersected(self, line): """Determines if this line intersects the given line.""" d1 = (self.intercept_coeff_a * line.x1) + (self.intercept_coeff_b * line.y1) + self.intercept_coeff_c d2 = (self.intercept_coeff_a * line.x2) + (self.intercept_coeff_b * line.y2) + self.intercept_coeff_c if (d1 > 0 and d2 > 0) or (d1 < 0 and d2 < 0): return False d1 = (line.intercept_coeff_a * self.x1) + (line.intercept_coeff_b * self.y1) + line.intercept_coeff_c d2 = (line.intercept_coeff_a * self.x2) + (line.intercept_coeff_b * self.y2) + line.intercept_coeff_c if (d1 > 0 and d2 > 0) or (d1 < 0 and d2 < 0): return False # If both of the above checks pass, the two lines could still be collinear. if (abs((self.intercept_coeff_a * line.intercept_coeff_b) - (line.intercept_coeff_a * self.intercept_coeff_b)) < .00001): return False return True
class Zone: """A zone in the form of a polygon""" def __init__(self, name, vertices, color): self.name = name self.vertices = vertices self.color = color x_list = [] y_list = [] for vertex in self.vertices: x_list.append(vertex[0]) y_list.append(vertex[1]) self.y_list = y_list self.x_max = max(x_list) self.x_min = min(x_list) self.y_max = max(y_list) self.y_min = min(y_list) side_num = 0 sides = [] for vertex in self.vertices: side_num += 1 try: sides.append(line(vertex, self.vertices[side_num])) except Exception: sides.append(line(vertex, self.vertices[0])) self.sides = sides def __str__(self): return self.name def is_inside(self, point_ray): """Determines if the given point, which has been transformed into a ray, is inside or outside of the zone. """ x = point_ray.x1 y = point_ray.y1 if x > self.x_max or x < self.x_min or y > self.y_max or (y < self.y_min): return False else: intersections = 0 for side in self.sides: if point_ray.is_intersected(side): intersections += 1 if y in self.y_list and y != self.y_max and (y != self.y_min): for vertex in self.vertices: if vertex[1] != self.y_max and vertex[1] != self.y_min and (vertex[1] == y) and (vertex[0] > x): intersections -= 1 if intersections % 2 == 1: return True else: return False class Line: """Holds the data for a line in the form of two points""" def __init__(self, point_1, point_2): self.x1 = point_1[0] self.y1 = point_1[1] self.x2 = point_2[0] self.y2 = point_2[1] self.intercept_coeff_a = self.y2 - self.y1 self.intercept_coeff_b = self.x1 - self.x2 self.intercept_coeff_c = self.x2 * self.y1 - self.x1 * self.y2 def is_intersected(self, line): """Determines if this line intersects the given line.""" d1 = self.intercept_coeff_a * line.x1 + self.intercept_coeff_b * line.y1 + self.intercept_coeff_c d2 = self.intercept_coeff_a * line.x2 + self.intercept_coeff_b * line.y2 + self.intercept_coeff_c if d1 > 0 and d2 > 0 or (d1 < 0 and d2 < 0): return False d1 = line.intercept_coeff_a * self.x1 + line.intercept_coeff_b * self.y1 + line.intercept_coeff_c d2 = line.intercept_coeff_a * self.x2 + line.intercept_coeff_b * self.y2 + line.intercept_coeff_c if d1 > 0 and d2 > 0 or (d1 < 0 and d2 < 0): return False if abs(self.intercept_coeff_a * line.intercept_coeff_b - line.intercept_coeff_a * self.intercept_coeff_b) < 1e-05: return False return True
x, y, w, h = map(int,input().split()) if x >= w-x: a = w-x else: a = x if y >= h-y: b = h-y else: b = y if a >= b: print(b) else: print(a)
(x, y, w, h) = map(int, input().split()) if x >= w - x: a = w - x else: a = x if y >= h - y: b = h - y else: b = y if a >= b: print(b) else: print(a)
#3-1 Names names = ["Jason", "Bob", "James", "Brian", "Marie"] print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4]) #3-2 Greetings message = " you are a friend" print(names[0] + message) print(names[1] + message) print(names[2] + message) print(names[3] + message) print(names[4] + message) #3-3 Your Own List cars = ["BMW", "BatMobile", "Sports Car"] message = (f"I want to own a {cars[0]}") print(message) message = (f"I want to own a {cars[1]}") print(message) message = (f"I want to own a {cars[2]}") print(message) #3-4 Guest List invite_list = ["Augustus Ceasar", "Winston Churchill", "George Washington"] print(invite_list[0] + " You are invited to dinner") print(invite_list[1] + " You are invited to dinner") print(invite_list[2] + " You are invited to dinner") #3-5 Changing Guest List print(invite_list[1] + " is unable to attend") invite_list[1] = "King Alfred" print(invite_list[0] + " You are invited to dinner") print(invite_list[1] + " You are invited to dinner") print(invite_list[2] + " You are invited to dinner") #3-6 print("A larger table has been found and more guests will be invited!") invite_list.insert(0, "Dwayne Johnson") invite_list.insert(1, "Marilyn Monroe") invite_list.append("Emma Watson") print(invite_list[0] + " You are invited to dinner") print(invite_list[1] + " You are invited to dinner") print(invite_list[2] + " You are invited to dinner") print(invite_list[3] + " You are invited to dinner") print(invite_list[4] + " You are invited to dinner") print(invite_list[5] + " You are invited to dinner") #3-7 Shrinking Guest List print(invite_list) print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list[0] + " you are still invited") print(invite_list[1] + " you are still invited") invite_list.remove("Dwayne Johnson") invite_list.remove("Emma Watson") print(invite_list) #3-8 Seeing the World places = ["China", "Japan", "Germany", "Cannada", "Russia", "France"] print(places) print(sorted(places)) print(places) print(sorted(places, reverse=True)) print(places) places.reverse() print(places) places.reverse() print(places) places.sort() print(places) #3-9 Dinner Guests print(len(invite_list)) #3-10 Every Function languages = ["Mandarin", "Japanese", "English", "German", "Irish", "French"] print(sorted(languages)) languages.reverse() languages.sort() languages.append("Russian") languages.insert(3, "Arabic") languages.remove("French") print("I am learning " + languages.pop(5)) print(languages) #3-11 Intentional error (fixed) print("Cat")
names = ['Jason', 'Bob', 'James', 'Brian', 'Marie'] print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4]) message = ' you are a friend' print(names[0] + message) print(names[1] + message) print(names[2] + message) print(names[3] + message) print(names[4] + message) cars = ['BMW', 'BatMobile', 'Sports Car'] message = f'I want to own a {cars[0]}' print(message) message = f'I want to own a {cars[1]}' print(message) message = f'I want to own a {cars[2]}' print(message) invite_list = ['Augustus Ceasar', 'Winston Churchill', 'George Washington'] print(invite_list[0] + ' You are invited to dinner') print(invite_list[1] + ' You are invited to dinner') print(invite_list[2] + ' You are invited to dinner') print(invite_list[1] + ' is unable to attend') invite_list[1] = 'King Alfred' print(invite_list[0] + ' You are invited to dinner') print(invite_list[1] + ' You are invited to dinner') print(invite_list[2] + ' You are invited to dinner') print('A larger table has been found and more guests will be invited!') invite_list.insert(0, 'Dwayne Johnson') invite_list.insert(1, 'Marilyn Monroe') invite_list.append('Emma Watson') print(invite_list[0] + ' You are invited to dinner') print(invite_list[1] + ' You are invited to dinner') print(invite_list[2] + ' You are invited to dinner') print(invite_list[3] + ' You are invited to dinner') print(invite_list[4] + ' You are invited to dinner') print(invite_list[5] + ' You are invited to dinner') print(invite_list) print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list[0] + ' you are still invited') print(invite_list[1] + ' you are still invited') invite_list.remove('Dwayne Johnson') invite_list.remove('Emma Watson') print(invite_list) places = ['China', 'Japan', 'Germany', 'Cannada', 'Russia', 'France'] print(places) print(sorted(places)) print(places) print(sorted(places, reverse=True)) print(places) places.reverse() print(places) places.reverse() print(places) places.sort() print(places) print(len(invite_list)) languages = ['Mandarin', 'Japanese', 'English', 'German', 'Irish', 'French'] print(sorted(languages)) languages.reverse() languages.sort() languages.append('Russian') languages.insert(3, 'Arabic') languages.remove('French') print('I am learning ' + languages.pop(5)) print(languages) print('Cat')
# import pytest def test_with_authenticated_client(client, django_user_model): username = "admin" password = "123456" django_user_model.objects.create_user(username=username, password=password) # Use this: # client.login(username=username, password=password) response = client.get('/') assert response.status_code == 302 response = client.get(response.url) assert response.status_code == 200 response = client.get('/accounts/logout') assert response.status_code == 301
def test_with_authenticated_client(client, django_user_model): username = 'admin' password = '123456' django_user_model.objects.create_user(username=username, password=password) response = client.get('/') assert response.status_code == 302 response = client.get(response.url) assert response.status_code == 200 response = client.get('/accounts/logout') assert response.status_code == 301
def setup(): global s, x_count, y_count, tiles, covers s = 50 x_count = width//s y_count = height//s size(800, 600) tiles = [] covers = [] for x in range(x_count): tiles.append([]) covers.append([]) for y in range(y_count): tiles[x].append("bomb" if random(0, 1) < .2 else 0) covers[x].append(True) for x in range(len(tiles)): for y in range(len(tiles[x])): tiles[x][y] = surrounding_total(x, y) print(tiles) def draw(): background(200) for x in range(x_count+1): line(x * s, 0, x * s, height) for y in range(y_count+1): line(0, y * s, width, y * s) for x in range(len(tiles)): for y in range(len(tiles[x])): fill(0) textAlign(CENTER, CENTER) if tiles[x][y] == "bomb": push() ellipseMode(CORNER) ellipse(x * s + 10, y * s + 10, s-20, s-20) pop() else: text(tiles[x][y] if tiles[x][y] != 0 else "", x*s + s/2, y*s + s/2) def surrounding_total(x_pos, y_pos): on_left = on_right = on_top = on_bot = False top_l = top_c = top_r = cen_l = cen_r = bot_l = bot_c = bot_r = False if tiles[x_pos][y_pos] == "bomb": return "bomb" if not x_pos-1 == abs(x_pos-1): # If on left edge on_left = True cen_r = tiles[x_pos+1][y_pos ] == "bomb" if not x_pos+1 == constrain(x_pos+1, 0, x_count-1): # If on right edge on_right = True cen_l = tiles[x_pos-1][y_pos ] == "bomb" if not y_pos-1 == abs(y_pos-1): # If on top edge on_top = True bot_c = tiles[x_pos ][y_pos+1] == "bomb" if not y_pos+1 == constrain(y_pos+1, 0, y_count-1): # If on bottom edge on_bot = True top_c = tiles[x_pos ][y_pos-1] == "bomb" elif on_left and on_top: bot_r = tiles[x_pos+1][y_pos+1] == "bomb" elif on_right and on_top: bot_l = tiles[x_pos-1][y_pos+1] == "bomb" elif on_left and on_bot: top_r = tiles[x_pos+1][y_pos-1] == "bomb" elif on_right and on_bot: top_l = tiles[x_pos-1][y_pos-1] == "bomb" elif not on_left or on_right: cen_l = tiles[x_pos-1][y_pos ] == "bomb" cen_r = tiles[x_pos+1][y_pos ] == "bomb" else: top_l = tiles[x_pos-1][y_pos-1] == "bomb"# top_c = tiles[x_pos ][y_pos-1] == "bomb"# top_r = tiles[x_pos+1][y_pos-1] == "bomb"# cen_l = tiles[x_pos-1][y_pos ] == "bomb"# cen_r = tiles[x_pos+1][y_pos ] == "bomb"# bot_l = tiles[x_pos-1][y_pos+1] == "bomb"# bot_c = tiles[x_pos ][y_pos+1] == "bomb"# bot_r = tiles[x_pos+1][y_pos+1] == "bomb"# return top_l + top_c + top_r + cen_l + cen_r + bot_l + bot_c + bot_r
def setup(): global s, x_count, y_count, tiles, covers s = 50 x_count = width // s y_count = height // s size(800, 600) tiles = [] covers = [] for x in range(x_count): tiles.append([]) covers.append([]) for y in range(y_count): tiles[x].append('bomb' if random(0, 1) < 0.2 else 0) covers[x].append(True) for x in range(len(tiles)): for y in range(len(tiles[x])): tiles[x][y] = surrounding_total(x, y) print(tiles) def draw(): background(200) for x in range(x_count + 1): line(x * s, 0, x * s, height) for y in range(y_count + 1): line(0, y * s, width, y * s) for x in range(len(tiles)): for y in range(len(tiles[x])): fill(0) text_align(CENTER, CENTER) if tiles[x][y] == 'bomb': push() ellipse_mode(CORNER) ellipse(x * s + 10, y * s + 10, s - 20, s - 20) pop() else: text(tiles[x][y] if tiles[x][y] != 0 else '', x * s + s / 2, y * s + s / 2) def surrounding_total(x_pos, y_pos): on_left = on_right = on_top = on_bot = False top_l = top_c = top_r = cen_l = cen_r = bot_l = bot_c = bot_r = False if tiles[x_pos][y_pos] == 'bomb': return 'bomb' if not x_pos - 1 == abs(x_pos - 1): on_left = True cen_r = tiles[x_pos + 1][y_pos] == 'bomb' if not x_pos + 1 == constrain(x_pos + 1, 0, x_count - 1): on_right = True cen_l = tiles[x_pos - 1][y_pos] == 'bomb' if not y_pos - 1 == abs(y_pos - 1): on_top = True bot_c = tiles[x_pos][y_pos + 1] == 'bomb' if not y_pos + 1 == constrain(y_pos + 1, 0, y_count - 1): on_bot = True top_c = tiles[x_pos][y_pos - 1] == 'bomb' elif on_left and on_top: bot_r = tiles[x_pos + 1][y_pos + 1] == 'bomb' elif on_right and on_top: bot_l = tiles[x_pos - 1][y_pos + 1] == 'bomb' elif on_left and on_bot: top_r = tiles[x_pos + 1][y_pos - 1] == 'bomb' elif on_right and on_bot: top_l = tiles[x_pos - 1][y_pos - 1] == 'bomb' elif not on_left or on_right: cen_l = tiles[x_pos - 1][y_pos] == 'bomb' cen_r = tiles[x_pos + 1][y_pos] == 'bomb' else: top_l = tiles[x_pos - 1][y_pos - 1] == 'bomb' top_c = tiles[x_pos][y_pos - 1] == 'bomb' top_r = tiles[x_pos + 1][y_pos - 1] == 'bomb' cen_l = tiles[x_pos - 1][y_pos] == 'bomb' cen_r = tiles[x_pos + 1][y_pos] == 'bomb' bot_l = tiles[x_pos - 1][y_pos + 1] == 'bomb' bot_c = tiles[x_pos][y_pos + 1] == 'bomb' bot_r = tiles[x_pos + 1][y_pos + 1] == 'bomb' return top_l + top_c + top_r + cen_l + cen_r + bot_l + bot_c + bot_r
#forma de somar comprar de carrinho virtual carrinho = [] carrinho.append(('Produto 1', 30)) carrinho.append(('Produto 2', '20')) carrinho.append(('Produto 3', 50)) #no python essa baixo nao eh muito boa # total = [] # for produto in carrinho: # total.append(produto[1]) # print(sum(total)) total = sum([float(y) for x, y in carrinho])#sum soma float y #jeito certo de fazer soma #print(carrinho)#[('Produto 1', 30), ('Produto 2', 20), ('Produto 3', 50)] print(total)#[30, 20, 50]
carrinho = [] carrinho.append(('Produto 1', 30)) carrinho.append(('Produto 2', '20')) carrinho.append(('Produto 3', 50)) total = sum([float(y) for (x, y) in carrinho]) print(total)
# -*- coding: utf-8 -*- { "name": "Import Settings", "vesion": "10.0.1.0.0", "summary": "Allows to save import settings to don't specify columns to fields mapping each time.", "category": "Extra Tools", "images": ["images/icon.png"], "author": "IT-Projects LLC, Dinar Gabbasov", "website": "https://www.twitter.com/gabbasov_dinar", "license": "Other OSI approved licence", # MIT "price": 90.00, "currency": "EUR", "depends": ["base_import"], "data": [ "security/ir.model.access.csv", "views/base_import_map_templates.xml", "views/base_import_map_view.xml", ], "demo": [], "installable": True, "auto_install": False, }
{'name': 'Import Settings', 'vesion': '10.0.1.0.0', 'summary': "Allows to save import settings to don't specify columns to fields mapping each time.", 'category': 'Extra Tools', 'images': ['images/icon.png'], 'author': 'IT-Projects LLC, Dinar Gabbasov', 'website': 'https://www.twitter.com/gabbasov_dinar', 'license': 'Other OSI approved licence', 'price': 90.0, 'currency': 'EUR', 'depends': ['base_import'], 'data': ['security/ir.model.access.csv', 'views/base_import_map_templates.xml', 'views/base_import_map_view.xml'], 'demo': [], 'installable': True, 'auto_install': False}
room_cost = { 'room for one person': {'cost': 18, 'discount': (0, 0, 0)}, 'apartment': {'cost': 25, 'discount': (0.3, 0.35, 0.5)}, 'president apartment': {'cost': 35, 'discount': (0.1, 0.15, 0.2)} } def discount_index(days_: int) -> int: if days_ < 10: return 0 elif 10 <= days_ <= 15: return 1 elif days_ > 15: return 2 days = int(input()) room_type = input() evaluation = input() discount = room_cost[room_type]['discount'][discount_index(days)] cost_of_stay = (days - 1) * room_cost[room_type]['cost'] * (1 - discount) if evaluation == 'positive': cost_of_stay *= 1.25 else: cost_of_stay *= 0.9 print(f'{cost_of_stay:.2f}')
room_cost = {'room for one person': {'cost': 18, 'discount': (0, 0, 0)}, 'apartment': {'cost': 25, 'discount': (0.3, 0.35, 0.5)}, 'president apartment': {'cost': 35, 'discount': (0.1, 0.15, 0.2)}} def discount_index(days_: int) -> int: if days_ < 10: return 0 elif 10 <= days_ <= 15: return 1 elif days_ > 15: return 2 days = int(input()) room_type = input() evaluation = input() discount = room_cost[room_type]['discount'][discount_index(days)] cost_of_stay = (days - 1) * room_cost[room_type]['cost'] * (1 - discount) if evaluation == 'positive': cost_of_stay *= 1.25 else: cost_of_stay *= 0.9 print(f'{cost_of_stay:.2f}')
for left in range(7): for right in range(left,7): print("[" + str(left) + "|" + str(right) + "]", end=" ") print
for left in range(7): for right in range(left, 7): print('[' + str(left) + '|' + str(right) + ']', end=' ') print
"""Exceptions used throughout Eelbrain""" class DefinitionError(Exception): "MneExperiment definition error" class DimensionMismatchError(Exception): "Trying to align NDVars with mismatching dimensions" @classmethod def from_dims_list(cls, message, dims_list): unique_dims = [] for dims in dims_list: if any(dims == dims_ for dims_ in unique_dims): continue else: unique_dims.append(dims) desc = '\n'.join(map(str, unique_dims)) return cls(f'{message}\n{desc}') class WrongDimension(Exception): "Dimension that is supported" class IncompleteModel(Exception): "Function requires a fully specified model" class OldVersionError(Exception): "Trying to load a file from a version that is no longer supported" class ZeroVariance(Exception): "Trying to do test on data with zero variance"
"""Exceptions used throughout Eelbrain""" class Definitionerror(Exception): """MneExperiment definition error""" class Dimensionmismatcherror(Exception): """Trying to align NDVars with mismatching dimensions""" @classmethod def from_dims_list(cls, message, dims_list): unique_dims = [] for dims in dims_list: if any((dims == dims_ for dims_ in unique_dims)): continue else: unique_dims.append(dims) desc = '\n'.join(map(str, unique_dims)) return cls(f'{message}\n{desc}') class Wrongdimension(Exception): """Dimension that is supported""" class Incompletemodel(Exception): """Function requires a fully specified model""" class Oldversionerror(Exception): """Trying to load a file from a version that is no longer supported""" class Zerovariance(Exception): """Trying to do test on data with zero variance"""
number = int(input()) bonus_points = 0 if number <= 100: bonus_points += 5 elif number > 1000: bonus_points += number * 0.10 else: bonus_points += number * 0.20 if number % 2 == 0: bonus_points += 1 if number % 10 == 5: bonus_points += 2 print(bonus_points) print(bonus_points + number)
number = int(input()) bonus_points = 0 if number <= 100: bonus_points += 5 elif number > 1000: bonus_points += number * 0.1 else: bonus_points += number * 0.2 if number % 2 == 0: bonus_points += 1 if number % 10 == 5: bonus_points += 2 print(bonus_points) print(bonus_points + number)
def if_hexagon_enabled(a): return select({ "//micro:hexagon_enabled": a, "//conditions:default": [], }) def if_not_hexagon_enabled(a): return select({ "//micro:hexagon_enabled": [], "//conditions:default": a, }) def new_local_repository_env_impl(repository_ctx): echo_cmd = "echo " + repository_ctx.attr.path echo_result = repository_ctx.execute(["bash", "-c", echo_cmd]) src_path_str = echo_result.stdout.splitlines()[0] source_path = repository_ctx.path(src_path_str) work_path = repository_ctx.path(".") child_list = source_path.readdir() for child in child_list: child_name = child.basename repository_ctx.symlink(child, work_path.get_child(child_name)) build_file_babel = Label("//:" + repository_ctx.attr.build_file) build_file_path = repository_ctx.path(build_file_babel) repository_ctx.symlink(build_file_path, work_path.get_child("BUILD")) # a new_local_repository support environment variable new_local_repository_env = repository_rule( implementation = new_local_repository_env_impl, local = True, attrs = { "path": attr.string(mandatory = True), "build_file": attr.string(mandatory = True), }, )
def if_hexagon_enabled(a): return select({'//micro:hexagon_enabled': a, '//conditions:default': []}) def if_not_hexagon_enabled(a): return select({'//micro:hexagon_enabled': [], '//conditions:default': a}) def new_local_repository_env_impl(repository_ctx): echo_cmd = 'echo ' + repository_ctx.attr.path echo_result = repository_ctx.execute(['bash', '-c', echo_cmd]) src_path_str = echo_result.stdout.splitlines()[0] source_path = repository_ctx.path(src_path_str) work_path = repository_ctx.path('.') child_list = source_path.readdir() for child in child_list: child_name = child.basename repository_ctx.symlink(child, work_path.get_child(child_name)) build_file_babel = label('//:' + repository_ctx.attr.build_file) build_file_path = repository_ctx.path(build_file_babel) repository_ctx.symlink(build_file_path, work_path.get_child('BUILD')) new_local_repository_env = repository_rule(implementation=new_local_repository_env_impl, local=True, attrs={'path': attr.string(mandatory=True), 'build_file': attr.string(mandatory=True)})
DATABASE = '/tmp/tmc2.db' DEBUG = False # By default we only listen on localhost. Set this to '0.0.0.0' to accept # requests from any interface HOST = '127.0.0.1' PORT = 5000 # How many quotes per page PAGE_SIZE = 10 # How should dates be formatted. The format is defined in # http://arrow.readthedocs.io/en/latest/index.html#tokens DATE_FORMATS = { 'en_US': 'MMMM D, YYYY', 'fr_FR': 'D MMMM YYYY', } # The locale to use. Must be one of the keys defined in DATE_FORMATS LOCALE = 'en_US' # To customize the configuration, create a local configuration file and point # the TMC2_CONFIG environment variable to it. For example to use TMC2 in # French, define LOCALE to 'fr_FR'.
database = '/tmp/tmc2.db' debug = False host = '127.0.0.1' port = 5000 page_size = 10 date_formats = {'en_US': 'MMMM D, YYYY', 'fr_FR': 'D MMMM YYYY'} locale = 'en_US'
# -*- coding: utf-8 -*- ''' File name: code\lychrel_numbers\sol_55.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #55 :: Lychrel numbers # # For more information see: # https://projecteuler.net/problem=55 # Problem Statement ''' If we take 47, reverse and add, 47 + 74 = 121, which is palindromic. Not all numbers produce palindromes so quickly. For example, 349 + 943 = 1292, 1292 + 2921 = 4213 4213 + 3124 = 7337 That is, 349 took three iterations to arrive at a palindrome. Although no one has proved it yet, it is thought that some numbers, like 196, never produce a palindrome. A number that never forms a palindrome through the reverse and add process is called a Lychrel number. Due to the theoretical nature of these numbers, and for the purpose of this problem, we shall assume that a number is Lychrel until proven otherwise. In addition you are given that for every number below ten-thousand, it will either (i) become a palindrome in less than fifty iterations, or, (ii) no one, with all the computing power that exists, has managed so far to map it to a palindrome. In fact, 10677 is the first number to be shown to require over fifty iterations before producing a palindrome: 4668731596684224866951378664 (53 iterations, 28-digits). Surprisingly, there are palindromic numbers that are themselves Lychrel numbers; the first example is 4994. How many Lychrel numbers are there below ten-thousand? NOTE: Wording was modified slightly on 24 April 2007 to emphasise the theoretical nature of Lychrel numbers. ''' # Solution # Solution Approach ''' '''
""" File name: code\\lychrel_numbers\\sol_55.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x """ '\nIf we take 47, reverse and add, 47 + 74 = 121, which is palindromic.\nNot all numbers produce palindromes so quickly. For example,\n349 + 943 = 1292,\n1292 + 2921 = 4213\n4213 + 3124 = 7337\nThat is, 349 took three iterations to arrive at a palindrome.\nAlthough no one has proved it yet, it is thought that some numbers, like 196, never produce a palindrome. A number that never forms a palindrome through the reverse and add process is called a Lychrel number. Due to the theoretical nature of these numbers, and for the purpose of this problem, we shall assume that a number is Lychrel until proven otherwise. In addition you are given that for every number below ten-thousand, it will either (i) become a palindrome in less than fifty iterations, or, (ii) no one, with all the computing power that exists, has managed so far to map it to a palindrome. In fact, 10677 is the first number to be shown to require over fifty iterations before producing a palindrome: 4668731596684224866951378664 (53 iterations, 28-digits).\nSurprisingly, there are palindromic numbers that are themselves Lychrel numbers; the first example is 4994.\nHow many Lychrel numbers are there below ten-thousand?\nNOTE: Wording was modified slightly on 24 April 2007 to emphasise the theoretical nature of Lychrel numbers.\n' '\n'
n,v = map(int,input().split()) mx = -1 for i in range(n): l,w,h = map(int,input().split()) vo = l*w*h #print(vo) if vo>mx: mx = vo print(mx - v)
(n, v) = map(int, input().split()) mx = -1 for i in range(n): (l, w, h) = map(int, input().split()) vo = l * w * h if vo > mx: mx = vo print(mx - v)
# # PySNMP MIB module TIARA-IP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIARA-IP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:09:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter64, MibIdentifier, ModuleIdentity, Counter32, Bits, TimeTicks, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Unsigned32, Gauge32, NotificationType, Integer32, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "MibIdentifier", "ModuleIdentity", "Counter32", "Bits", "TimeTicks", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Unsigned32", "Gauge32", "NotificationType", "Integer32", "ObjectIdentity") DisplayString, TextualConvention, TruthValue, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "TruthValue", "RowStatus") tiaraMgmt, = mibBuilder.importSymbols("TIARA-NETWORKS-SMI", "tiaraMgmt") tiaraIpMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 3174, 2, 23)) if mibBuilder.loadTexts: tiaraIpMib.setLastUpdated('0001270000Z') if mibBuilder.loadTexts: tiaraIpMib.setOrganization('Tiara Networks Inc.') tiaraIpRoutingEnable = MibScalar((1, 3, 6, 1, 4, 1, 3174, 2, 23, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tiaraIpRoutingEnable.setStatus('current') tiaraIpIfTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2), ) if mibBuilder.loadTexts: tiaraIpIfTable.setStatus('current') tiaraIpIfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraIpIfIndex")) if mibBuilder.loadTexts: tiaraIpIfTableEntry.setStatus('current') tiaraIpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfIndex.setStatus('current') tiaraIpIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfName.setStatus('current') tiaraIpIfAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 3), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfAddr.setStatus('current') tiaraIpIfMask = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfMask.setStatus('current') tiaraIpIfPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfPeerAddr.setStatus('current') tiaraIpIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ethernet", 1), ("wan", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfType.setStatus('current') tiaraStaticRouteTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3), ) if mibBuilder.loadTexts: tiaraStaticRouteTable.setStatus('current') tiaraStaticRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraStaticRouteIndex")) if mibBuilder.loadTexts: tiaraStaticRouteEntry.setStatus('current') tiaraStaticRouteIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: tiaraStaticRouteIndex.setStatus('current') tiaraStaticRouteNetworkAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteNetworkAddr.setStatus('current') tiaraStaticRouteNetworkMask = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteNetworkMask.setStatus('current') tiaraStaticRouteGatewayAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 4), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteGatewayAddr.setStatus('current') tiaraStaticRouteNoOfHops = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteNoOfHops.setStatus('current') tiaraStaticRouteRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteRowStatus.setStatus('current') mibBuilder.exportSymbols("TIARA-IP-MIB", tiaraIpIfName=tiaraIpIfName, tiaraIpIfMask=tiaraIpIfMask, tiaraIpIfType=tiaraIpIfType, tiaraIpIfIndex=tiaraIpIfIndex, tiaraStaticRouteGatewayAddr=tiaraStaticRouteGatewayAddr, tiaraStaticRouteNetworkAddr=tiaraStaticRouteNetworkAddr, tiaraIpIfTable=tiaraIpIfTable, tiaraStaticRouteEntry=tiaraStaticRouteEntry, tiaraStaticRouteNetworkMask=tiaraStaticRouteNetworkMask, tiaraStaticRouteNoOfHops=tiaraStaticRouteNoOfHops, tiaraIpRoutingEnable=tiaraIpRoutingEnable, tiaraIpIfTableEntry=tiaraIpIfTableEntry, PYSNMP_MODULE_ID=tiaraIpMib, tiaraStaticRouteTable=tiaraStaticRouteTable, tiaraIpMib=tiaraIpMib, tiaraIpIfAddr=tiaraIpIfAddr, tiaraStaticRouteIndex=tiaraStaticRouteIndex, tiaraIpIfPeerAddr=tiaraIpIfPeerAddr, tiaraStaticRouteRowStatus=tiaraStaticRouteRowStatus)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter64, mib_identifier, module_identity, counter32, bits, time_ticks, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, unsigned32, gauge32, notification_type, integer32, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'MibIdentifier', 'ModuleIdentity', 'Counter32', 'Bits', 'TimeTicks', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Unsigned32', 'Gauge32', 'NotificationType', 'Integer32', 'ObjectIdentity') (display_string, textual_convention, truth_value, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'TruthValue', 'RowStatus') (tiara_mgmt,) = mibBuilder.importSymbols('TIARA-NETWORKS-SMI', 'tiaraMgmt') tiara_ip_mib = module_identity((1, 3, 6, 1, 4, 1, 3174, 2, 23)) if mibBuilder.loadTexts: tiaraIpMib.setLastUpdated('0001270000Z') if mibBuilder.loadTexts: tiaraIpMib.setOrganization('Tiara Networks Inc.') tiara_ip_routing_enable = mib_scalar((1, 3, 6, 1, 4, 1, 3174, 2, 23, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tiaraIpRoutingEnable.setStatus('current') tiara_ip_if_table = mib_table((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2)) if mibBuilder.loadTexts: tiaraIpIfTable.setStatus('current') tiara_ip_if_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1)).setIndexNames((0, 'TIARA-IP-MIB', 'tiaraIpIfIndex')) if mibBuilder.loadTexts: tiaraIpIfTableEntry.setStatus('current') tiara_ip_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfIndex.setStatus('current') tiara_ip_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfName.setStatus('current') tiara_ip_if_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 3), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfAddr.setStatus('current') tiara_ip_if_mask = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfMask.setStatus('current') tiara_ip_if_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfPeerAddr.setStatus('current') tiara_ip_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ethernet', 1), ('wan', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfType.setStatus('current') tiara_static_route_table = mib_table((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3)) if mibBuilder.loadTexts: tiaraStaticRouteTable.setStatus('current') tiara_static_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1)).setIndexNames((0, 'TIARA-IP-MIB', 'tiaraStaticRouteIndex')) if mibBuilder.loadTexts: tiaraStaticRouteEntry.setStatus('current') tiara_static_route_index = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 1), integer32()) if mibBuilder.loadTexts: tiaraStaticRouteIndex.setStatus('current') tiara_static_route_network_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 2), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteNetworkAddr.setStatus('current') tiara_static_route_network_mask = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 3), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteNetworkMask.setStatus('current') tiara_static_route_gateway_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 4), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteGatewayAddr.setStatus('current') tiara_static_route_no_of_hops = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 15))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteNoOfHops.setStatus('current') tiara_static_route_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteRowStatus.setStatus('current') mibBuilder.exportSymbols('TIARA-IP-MIB', tiaraIpIfName=tiaraIpIfName, tiaraIpIfMask=tiaraIpIfMask, tiaraIpIfType=tiaraIpIfType, tiaraIpIfIndex=tiaraIpIfIndex, tiaraStaticRouteGatewayAddr=tiaraStaticRouteGatewayAddr, tiaraStaticRouteNetworkAddr=tiaraStaticRouteNetworkAddr, tiaraIpIfTable=tiaraIpIfTable, tiaraStaticRouteEntry=tiaraStaticRouteEntry, tiaraStaticRouteNetworkMask=tiaraStaticRouteNetworkMask, tiaraStaticRouteNoOfHops=tiaraStaticRouteNoOfHops, tiaraIpRoutingEnable=tiaraIpRoutingEnable, tiaraIpIfTableEntry=tiaraIpIfTableEntry, PYSNMP_MODULE_ID=tiaraIpMib, tiaraStaticRouteTable=tiaraStaticRouteTable, tiaraIpMib=tiaraIpMib, tiaraIpIfAddr=tiaraIpIfAddr, tiaraStaticRouteIndex=tiaraStaticRouteIndex, tiaraIpIfPeerAddr=tiaraIpIfPeerAddr, tiaraStaticRouteRowStatus=tiaraStaticRouteRowStatus)
# # PySNMP MIB module HP-ICF-CHAIN (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-CHAIN # Produced by pysmi-0.3.4 at Wed May 1 13:33:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion") hpicfCommonTrapsPrefix, hpicfCommon, hpicfObjectModules = mibBuilder.importSymbols("HP-ICF-OID", "hpicfCommonTrapsPrefix", "hpicfCommon", "hpicfObjectModules") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") IpAddress, MibIdentifier, Bits, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Counter64, Unsigned32, NotificationType, ModuleIdentity, iso, ObjectIdentity, Counter32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "MibIdentifier", "Bits", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Counter64", "Unsigned32", "NotificationType", "ModuleIdentity", "iso", "ObjectIdentity", "Counter32", "TimeTicks") DisplayString, TimeStamp, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "TextualConvention", "TruthValue") hpicfChainMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2)) hpicfChainMib.setRevisions(('2000-11-03 22:16', '1997-03-06 03:33', '1996-09-10 02:08', '1994-02-25 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpicfChainMib.setRevisionsDescriptions(('Updated division name.', 'Added NOTIFICATION-GROUP information.', 'Split this MIB module from the former monolithic hp-icf MIB.', 'Initial version of this MIB module.',)) if mibBuilder.loadTexts: hpicfChainMib.setLastUpdated('200011032216Z') if mibBuilder.loadTexts: hpicfChainMib.setOrganization('HP Networking') if mibBuilder.loadTexts: hpicfChainMib.setContactInfo('Hewlett Packard Company 8000 Foothills Blvd. Roseville, CA 95747') if mibBuilder.loadTexts: hpicfChainMib.setDescription('This MIB module describes management of the Distributed Management Chain for devices in the HP AdvanceStack product line.') hpicfChain = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1)) hpicfChainMaxMembers = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainMaxMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainMaxMembers.setDescription('The maximum number of devices that can be supported on the Distributed Management Chain from this agent.') hpicfChainCurMembers = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainCurMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainCurMembers.setDescription('The number of devices currently on the Distributed Management Chain connected to this agent.') hpicfChainLastChange = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainLastChange.setStatus('current') if mibBuilder.loadTexts: hpicfChainLastChange.setDescription('The value of sysUpTime on this agent the last time a device was added to or removed from the Distributed Management Chain connected to this agent.') hpicfChainChanges = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainChanges.setStatus('current') if mibBuilder.loadTexts: hpicfChainChanges.setDescription('A count of the number of times devices have been added to or removed from the Distributed Management Chain connected to this agent.') hpicfChainTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5), ) if mibBuilder.loadTexts: hpicfChainTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainTable.setDescription('A table of boxes currently connected to the same Distributed Management Chain as this agent.') hpicfChainEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1), ).setIndexNames((0, "HP-ICF-CHAIN", "hpicfChainId")) if mibBuilder.loadTexts: hpicfChainEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainEntry.setDescription('An entry in the table describing a single box on the Distributed Management Chain connected to this device.') hpicfChainId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainId.setStatus('current') if mibBuilder.loadTexts: hpicfChainId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicfChainObjectId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 2), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainObjectId.setStatus('current') if mibBuilder.loadTexts: hpicfChainObjectId.setDescription('The authoritative identification of the box which provides an easy and unambiguous means for determining the type of box.') hpicfChainTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainTimestamp.setStatus('current') if mibBuilder.loadTexts: hpicfChainTimestamp.setDescription("The value of the agent's sysUpTime at which this box was last initialized. If the box has not been initialized since the last reinitialization of the agent, then this object has a zero value.") hpicfChainHasAgent = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 4), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainHasAgent.setStatus('current') if mibBuilder.loadTexts: hpicfChainHasAgent.setDescription("This object will contain the value 'true' if this box contains at least one network management agent capable of responding to SNMP requests, and will contain the value 'false' otherwise.") hpicfChainThisBox = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainThisBox.setStatus('current') if mibBuilder.loadTexts: hpicfChainThisBox.setDescription("This object will contain the value 'true' if this entry in the chain table corresponds to the box which contains the agent which is responding to this SNMP request, and will contain the value 'false' otherwise.") hpicfChainLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpicfChainLocation.setStatus('current') if mibBuilder.loadTexts: hpicfChainLocation.setDescription('This byte is settable by a management station and is not interpreted by the agent. The intent is that a management station can use it to assign an ordering to boxes on the chain that can later be used when displaying the chain.') hpicfChainViewTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6), ) if mibBuilder.loadTexts: hpicfChainViewTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewTable.setDescription('This table contains one entry for each box on the Distributed Management Chain for which this agent is able to act as a proxy.') hpicfChainViewEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1), ).setIndexNames((0, "HP-ICF-CHAIN", "hpicfChainViewId")) if mibBuilder.loadTexts: hpicfChainViewEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewEntry.setDescription('An entry in the hpicfChainViewTable containing information about how to proxy to a single box.') hpicfChainViewId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainViewId.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicfChainViewName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainViewName.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewName.setDescription("The local name of this box. This is used by the proxy agent for the box to determine which box on the Distributed Management Chain is being addressed. If an agent does not use this method to distinguish proxy destinations, it should return a zero length octet string for this object. For SNMPv1, the destination box is specified by appending this name to the proxy agent's community name. For example, if this agent has a community with a community name of 'public', and the value of this object is 'repeater1', the community 'public/repeater1' will specify that the agent should proxy to the public community of the 'repeater1' box. The default value for this object for box-level repeaters is an ASCII hex representation of the low-order three bytes of the device MAC address.") hpicfChainAddition = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 1)).setObjects(("HP-ICF-CHAIN", "hpicfChainId")) if mibBuilder.loadTexts: hpicfChainAddition.setStatus('deprecated') if mibBuilder.loadTexts: hpicfChainAddition.setDescription('********* THIS NOTIFICATION IS DEPRECATED ********* An hpicfChainAddition trap indicates that a new node has been added to the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the new node. Replaced by Cold Start') hpicfChainRemoval = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 2)).setObjects(("HP-ICF-CHAIN", "hpicfChainId")) if mibBuilder.loadTexts: hpicfChainRemoval.setStatus('current') if mibBuilder.loadTexts: hpicfChainRemoval.setDescription('An hpicfChainRemoval trap indicates that a node has been removed from the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the node that was removed.') hpicfChainConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1)) hpicfChainCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1)) hpicfChainGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2)) hpicfChainingCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 1)).setObjects(("HP-ICF-CHAIN", "hpicfChainingGroup"), ("HP-ICF-CHAIN", "hpicfChainTrapGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainingCompliance = hpicfChainingCompliance.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainingCompliance.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicfChainingCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 2)).setObjects(("HP-ICF-CHAIN", "hpicfChainingGroup"), ("HP-ICF-CHAIN", "hpicfChainNotifyGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainingCompliance2 = hpicfChainingCompliance2.setStatus('current') if mibBuilder.loadTexts: hpicfChainingCompliance2.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicfChainingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 1)).setObjects(("HP-ICF-CHAIN", "hpicfChainMaxMembers"), ("HP-ICF-CHAIN", "hpicfChainCurMembers"), ("HP-ICF-CHAIN", "hpicfChainLastChange"), ("HP-ICF-CHAIN", "hpicfChainChanges"), ("HP-ICF-CHAIN", "hpicfChainId"), ("HP-ICF-CHAIN", "hpicfChainObjectId"), ("HP-ICF-CHAIN", "hpicfChainTimestamp"), ("HP-ICF-CHAIN", "hpicfChainHasAgent"), ("HP-ICF-CHAIN", "hpicfChainThisBox"), ("HP-ICF-CHAIN", "hpicfChainLocation"), ("HP-ICF-CHAIN", "hpicfChainViewId"), ("HP-ICF-CHAIN", "hpicfChainViewName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainingGroup = hpicfChainingGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainingGroup.setDescription('A collection of objects for managing devices on the HP Distributed Management Bus.') hpicfChainTrapGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 2)).setObjects(("HP-ICF-CHAIN", "hpicfChainAddition"), ("HP-ICF-CHAIN", "hpicfChainRemoval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainTrapGroup = hpicfChainTrapGroup.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainTrapGroup.setDescription('********* THIS GROUP IS OBSOLETE ********* A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') hpicfChainNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 3)).setObjects(("HP-ICF-CHAIN", "hpicfChainRemoval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainNotifyGroup = hpicfChainNotifyGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainNotifyGroup.setDescription('A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') mibBuilder.exportSymbols("HP-ICF-CHAIN", hpicfChainHasAgent=hpicfChainHasAgent, PYSNMP_MODULE_ID=hpicfChainMib, hpicfChainingCompliance2=hpicfChainingCompliance2, hpicfChainViewId=hpicfChainViewId, hpicfChainingGroup=hpicfChainingGroup, hpicfChainMaxMembers=hpicfChainMaxMembers, hpicfChainNotifyGroup=hpicfChainNotifyGroup, hpicfChainTable=hpicfChainTable, hpicfChainEntry=hpicfChainEntry, hpicfChainCompliances=hpicfChainCompliances, hpicfChainCurMembers=hpicfChainCurMembers, hpicfChain=hpicfChain, hpicfChainGroups=hpicfChainGroups, hpicfChainThisBox=hpicfChainThisBox, hpicfChainRemoval=hpicfChainRemoval, hpicfChainViewEntry=hpicfChainViewEntry, hpicfChainConformance=hpicfChainConformance, hpicfChainId=hpicfChainId, hpicfChainAddition=hpicfChainAddition, hpicfChainLastChange=hpicfChainLastChange, hpicfChainTrapGroup=hpicfChainTrapGroup, hpicfChainChanges=hpicfChainChanges, hpicfChainMib=hpicfChainMib, hpicfChainLocation=hpicfChainLocation, hpicfChainViewName=hpicfChainViewName, hpicfChainTimestamp=hpicfChainTimestamp, hpicfChainObjectId=hpicfChainObjectId, hpicfChainingCompliance=hpicfChainingCompliance, hpicfChainViewTable=hpicfChainViewTable)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, value_range_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion') (hpicf_common_traps_prefix, hpicf_common, hpicf_object_modules) = mibBuilder.importSymbols('HP-ICF-OID', 'hpicfCommonTrapsPrefix', 'hpicfCommon', 'hpicfObjectModules') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (ip_address, mib_identifier, bits, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, counter64, unsigned32, notification_type, module_identity, iso, object_identity, counter32, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'MibIdentifier', 'Bits', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'Counter64', 'Unsigned32', 'NotificationType', 'ModuleIdentity', 'iso', 'ObjectIdentity', 'Counter32', 'TimeTicks') (display_string, time_stamp, textual_convention, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TimeStamp', 'TextualConvention', 'TruthValue') hpicf_chain_mib = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2)) hpicfChainMib.setRevisions(('2000-11-03 22:16', '1997-03-06 03:33', '1996-09-10 02:08', '1994-02-25 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpicfChainMib.setRevisionsDescriptions(('Updated division name.', 'Added NOTIFICATION-GROUP information.', 'Split this MIB module from the former monolithic hp-icf MIB.', 'Initial version of this MIB module.')) if mibBuilder.loadTexts: hpicfChainMib.setLastUpdated('200011032216Z') if mibBuilder.loadTexts: hpicfChainMib.setOrganization('HP Networking') if mibBuilder.loadTexts: hpicfChainMib.setContactInfo('Hewlett Packard Company 8000 Foothills Blvd. Roseville, CA 95747') if mibBuilder.loadTexts: hpicfChainMib.setDescription('This MIB module describes management of the Distributed Management Chain for devices in the HP AdvanceStack product line.') hpicf_chain = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1)) hpicf_chain_max_members = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainMaxMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainMaxMembers.setDescription('The maximum number of devices that can be supported on the Distributed Management Chain from this agent.') hpicf_chain_cur_members = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainCurMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainCurMembers.setDescription('The number of devices currently on the Distributed Management Chain connected to this agent.') hpicf_chain_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 3), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainLastChange.setStatus('current') if mibBuilder.loadTexts: hpicfChainLastChange.setDescription('The value of sysUpTime on this agent the last time a device was added to or removed from the Distributed Management Chain connected to this agent.') hpicf_chain_changes = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainChanges.setStatus('current') if mibBuilder.loadTexts: hpicfChainChanges.setDescription('A count of the number of times devices have been added to or removed from the Distributed Management Chain connected to this agent.') hpicf_chain_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5)) if mibBuilder.loadTexts: hpicfChainTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainTable.setDescription('A table of boxes currently connected to the same Distributed Management Chain as this agent.') hpicf_chain_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1)).setIndexNames((0, 'HP-ICF-CHAIN', 'hpicfChainId')) if mibBuilder.loadTexts: hpicfChainEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainEntry.setDescription('An entry in the table describing a single box on the Distributed Management Chain connected to this device.') hpicf_chain_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainId.setStatus('current') if mibBuilder.loadTexts: hpicfChainId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicf_chain_object_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 2), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainObjectId.setStatus('current') if mibBuilder.loadTexts: hpicfChainObjectId.setDescription('The authoritative identification of the box which provides an easy and unambiguous means for determining the type of box.') hpicf_chain_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 3), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainTimestamp.setStatus('current') if mibBuilder.loadTexts: hpicfChainTimestamp.setDescription("The value of the agent's sysUpTime at which this box was last initialized. If the box has not been initialized since the last reinitialization of the agent, then this object has a zero value.") hpicf_chain_has_agent = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 4), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainHasAgent.setStatus('current') if mibBuilder.loadTexts: hpicfChainHasAgent.setDescription("This object will contain the value 'true' if this box contains at least one network management agent capable of responding to SNMP requests, and will contain the value 'false' otherwise.") hpicf_chain_this_box = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainThisBox.setStatus('current') if mibBuilder.loadTexts: hpicfChainThisBox.setDescription("This object will contain the value 'true' if this entry in the chain table corresponds to the box which contains the agent which is responding to this SNMP request, and will contain the value 'false' otherwise.") hpicf_chain_location = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpicfChainLocation.setStatus('current') if mibBuilder.loadTexts: hpicfChainLocation.setDescription('This byte is settable by a management station and is not interpreted by the agent. The intent is that a management station can use it to assign an ordering to boxes on the chain that can later be used when displaying the chain.') hpicf_chain_view_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6)) if mibBuilder.loadTexts: hpicfChainViewTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewTable.setDescription('This table contains one entry for each box on the Distributed Management Chain for which this agent is able to act as a proxy.') hpicf_chain_view_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1)).setIndexNames((0, 'HP-ICF-CHAIN', 'hpicfChainViewId')) if mibBuilder.loadTexts: hpicfChainViewEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewEntry.setDescription('An entry in the hpicfChainViewTable containing information about how to proxy to a single box.') hpicf_chain_view_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainViewId.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicf_chain_view_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainViewName.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewName.setDescription("The local name of this box. This is used by the proxy agent for the box to determine which box on the Distributed Management Chain is being addressed. If an agent does not use this method to distinguish proxy destinations, it should return a zero length octet string for this object. For SNMPv1, the destination box is specified by appending this name to the proxy agent's community name. For example, if this agent has a community with a community name of 'public', and the value of this object is 'repeater1', the community 'public/repeater1' will specify that the agent should proxy to the public community of the 'repeater1' box. The default value for this object for box-level repeaters is an ASCII hex representation of the low-order three bytes of the device MAC address.") hpicf_chain_addition = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 1)).setObjects(('HP-ICF-CHAIN', 'hpicfChainId')) if mibBuilder.loadTexts: hpicfChainAddition.setStatus('deprecated') if mibBuilder.loadTexts: hpicfChainAddition.setDescription('********* THIS NOTIFICATION IS DEPRECATED ********* An hpicfChainAddition trap indicates that a new node has been added to the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the new node. Replaced by Cold Start') hpicf_chain_removal = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 2)).setObjects(('HP-ICF-CHAIN', 'hpicfChainId')) if mibBuilder.loadTexts: hpicfChainRemoval.setStatus('current') if mibBuilder.loadTexts: hpicfChainRemoval.setDescription('An hpicfChainRemoval trap indicates that a node has been removed from the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the node that was removed.') hpicf_chain_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1)) hpicf_chain_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1)) hpicf_chain_groups = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2)) hpicf_chaining_compliance = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 1)).setObjects(('HP-ICF-CHAIN', 'hpicfChainingGroup'), ('HP-ICF-CHAIN', 'hpicfChainTrapGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chaining_compliance = hpicfChainingCompliance.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainingCompliance.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicf_chaining_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 2)).setObjects(('HP-ICF-CHAIN', 'hpicfChainingGroup'), ('HP-ICF-CHAIN', 'hpicfChainNotifyGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chaining_compliance2 = hpicfChainingCompliance2.setStatus('current') if mibBuilder.loadTexts: hpicfChainingCompliance2.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicf_chaining_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 1)).setObjects(('HP-ICF-CHAIN', 'hpicfChainMaxMembers'), ('HP-ICF-CHAIN', 'hpicfChainCurMembers'), ('HP-ICF-CHAIN', 'hpicfChainLastChange'), ('HP-ICF-CHAIN', 'hpicfChainChanges'), ('HP-ICF-CHAIN', 'hpicfChainId'), ('HP-ICF-CHAIN', 'hpicfChainObjectId'), ('HP-ICF-CHAIN', 'hpicfChainTimestamp'), ('HP-ICF-CHAIN', 'hpicfChainHasAgent'), ('HP-ICF-CHAIN', 'hpicfChainThisBox'), ('HP-ICF-CHAIN', 'hpicfChainLocation'), ('HP-ICF-CHAIN', 'hpicfChainViewId'), ('HP-ICF-CHAIN', 'hpicfChainViewName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chaining_group = hpicfChainingGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainingGroup.setDescription('A collection of objects for managing devices on the HP Distributed Management Bus.') hpicf_chain_trap_group = notification_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 2)).setObjects(('HP-ICF-CHAIN', 'hpicfChainAddition'), ('HP-ICF-CHAIN', 'hpicfChainRemoval')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chain_trap_group = hpicfChainTrapGroup.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainTrapGroup.setDescription('********* THIS GROUP IS OBSOLETE ********* A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') hpicf_chain_notify_group = notification_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 3)).setObjects(('HP-ICF-CHAIN', 'hpicfChainRemoval')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chain_notify_group = hpicfChainNotifyGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainNotifyGroup.setDescription('A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') mibBuilder.exportSymbols('HP-ICF-CHAIN', hpicfChainHasAgent=hpicfChainHasAgent, PYSNMP_MODULE_ID=hpicfChainMib, hpicfChainingCompliance2=hpicfChainingCompliance2, hpicfChainViewId=hpicfChainViewId, hpicfChainingGroup=hpicfChainingGroup, hpicfChainMaxMembers=hpicfChainMaxMembers, hpicfChainNotifyGroup=hpicfChainNotifyGroup, hpicfChainTable=hpicfChainTable, hpicfChainEntry=hpicfChainEntry, hpicfChainCompliances=hpicfChainCompliances, hpicfChainCurMembers=hpicfChainCurMembers, hpicfChain=hpicfChain, hpicfChainGroups=hpicfChainGroups, hpicfChainThisBox=hpicfChainThisBox, hpicfChainRemoval=hpicfChainRemoval, hpicfChainViewEntry=hpicfChainViewEntry, hpicfChainConformance=hpicfChainConformance, hpicfChainId=hpicfChainId, hpicfChainAddition=hpicfChainAddition, hpicfChainLastChange=hpicfChainLastChange, hpicfChainTrapGroup=hpicfChainTrapGroup, hpicfChainChanges=hpicfChainChanges, hpicfChainMib=hpicfChainMib, hpicfChainLocation=hpicfChainLocation, hpicfChainViewName=hpicfChainViewName, hpicfChainTimestamp=hpicfChainTimestamp, hpicfChainObjectId=hpicfChainObjectId, hpicfChainingCompliance=hpicfChainingCompliance, hpicfChainViewTable=hpicfChainViewTable)
''' Missing number in an array Given an array of size N-1 such that, it can only contain distinct integers in the range of 1 to N. Find the missing element. Example: Input: N = 5 A[] = {1,2,3,5} Output: 4 Input: N = 10 A[] = {1,2,3,4,5,6,7,8,10} Output: 9 ''' # Approach-1 ''' We know that sum of N natural number is 1+2+3+...+n = n*(n+1)//2 So after finding the sum of n natural number as well as sum of given array. The difference between both will give you the missing number in the array Execution time approx: 0.30sec Complexty: O(n) ''' def missingNumber1(array, n): # Computing the total of n natural numbers total = n*(n+1)//2 array_sum = 0 for i in array: array_sum +=i return (total-array_sum) array = [1,2,3,5] n = 5 print("Missing number is {}".format(missingNumber1(array, n)) ) # Approach 2 ''' We know that XOR of same number cancels each other '''
""" Missing number in an array Given an array of size N-1 such that, it can only contain distinct integers in the range of 1 to N. Find the missing element. Example: Input: N = 5 A[] = {1,2,3,5} Output: 4 Input: N = 10 A[] = {1,2,3,4,5,6,7,8,10} Output: 9 """ ' \nWe know that sum of N natural number is 1+2+3+...+n = n*(n+1)//2\nSo after finding the sum of n natural number as well as sum of given array.\nThe difference between both will give you the missing number in the array\n\nExecution time approx: 0.30sec\nComplexty: O(n)\n' def missing_number1(array, n): total = n * (n + 1) // 2 array_sum = 0 for i in array: array_sum += i return total - array_sum array = [1, 2, 3, 5] n = 5 print('Missing number is {}'.format(missing_number1(array, n))) ' \nWe know that XOR of same number cancels each other \n'
# # PySNMP MIB module CADANT-HW-MEAS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CADANT-HW-MEAS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:45:55 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint") cadIf3CmtsCmUsStatusChIfIndex, = mibBuilder.importSymbols("CADANT-CMTS-IF3-MIB", "cadIf3CmtsCmUsStatusChIfIndex") cadIfMacDomainIfIndex, = mibBuilder.importSymbols("CADANT-CMTS-LAYER2CMTS-MIB", "cadIfMacDomainIfIndex") cadIfCmtsCmStatusMacAddress, = mibBuilder.importSymbols("CADANT-CMTS-MAC-MIB", "cadIfCmtsCmStatusMacAddress") cadEquipment, = mibBuilder.importSymbols("CADANT-PRODUCTS-MIB", "cadEquipment") PortId, CardId, CadIfDirection = mibBuilder.importSymbols("CADANT-TC", "PortId", "CardId", "CadIfDirection") TenthdB, = mibBuilder.importSymbols("DOCS-IF-MIB", "TenthdB") IfDirection, = mibBuilder.importSymbols("DOCS-QOS3-MIB", "IfDirection") docsSubmgt3FilterGrpEntry, = mibBuilder.importSymbols("DOCS-SUBMGT3-MIB", "docsSubmgt3FilterGrpEntry") InterfaceIndex, ifIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "ifIndex") pktcEScTapStreamIndex, pktcEScTapMediationContentId = mibBuilder.importSymbols("PKTC-ES-TAP-MIB", "pktcEScTapStreamIndex", "pktcEScTapMediationContentId") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, ObjectIdentity, Gauge32, NotificationType, Counter64, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, MibIdentifier, TimeTicks, Unsigned32, iso, Integer32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ObjectIdentity", "Gauge32", "NotificationType", "Counter64", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "MibIdentifier", "TimeTicks", "Unsigned32", "iso", "Integer32", "IpAddress") MacAddress, TimeStamp, TextualConvention, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TimeStamp", "TextualConvention", "DisplayString", "TruthValue") cadHardwareMeasMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2)) cadHardwareMeasMib.setRevisions(('2015-08-27 00:00', '2015-07-13 00:00', '2015-06-03 00:00', '2014-10-14 00:00', '2014-06-13 00:00', '2014-06-04 00:00', '2013-11-22 00:00', '2012-10-30 00:00', '2012-05-09 00:00', '2011-08-31 00:00', '2011-06-29 00:00', '2011-02-28 00:00', '2011-02-24 00:00', '2011-02-18 00:00', '2010-11-22 00:00', '2010-03-09 00:00', '2008-11-24 00:00', '2008-11-21 00:00', '2008-11-05 00:00', '2008-04-24 00:00', '2006-09-14 00:00', '2006-04-14 00:00', '2005-07-13 00:00', '2004-12-10 00:00', '2004-08-31 00:00', '2004-04-09 00:00', '2004-03-09 00:00', '2004-02-23 00:00', '2004-02-18 00:00', '2004-02-15 00:00', '2004-01-24 00:00', '2003-12-18 00:00', '2003-12-10 00:00', '2003-09-19 00:00', '2003-08-26 00:00', '2003-07-30 00:00', '2002-05-06 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: cadHardwareMeasMib.setRevisionsDescriptions(('Add cadantDPortMeasOfdmChanUtilization', 'Add cadInterfaceHighResUtilizationPercentage and cadInterfaceIntervalOctetsForwarded', 'Add cadantDPortMeasDfdmIfSpeed, cadantDPortMeasOfdmHighestAvgBitsPerSubc, and cadantDPortMeasOfdmNumDataSubc', 'Support 384 downstream channels per DCAM-B', 'Add back in cadFftUpstreamChannelTable', 'Add cadDCardIgmpThrottleDropPkts.', 'Remove cadFftUpstreamChannelTable', 'Add cadLaesCountTable', 'Remove cadHWCmUsMeasTable', 'Remove cadantUPortMeasMapFrms', 'Remove cadSFIDMeasEntry', 'Deprecate cadSFIDMeasEntry and add the following MIB objects to cadantUFIDMeasEntry cadantUFIDMeasCcfStatsSgmtValids, cadantUFIDMeasCcfStatsSgmtLost and cadantUFIDMeasCcfStatsSgmtDrop.', 'Remove cadSFIDToSIDEntry', 'Add cadantUFIDMeasSIDMacIfIndex and cadantUFIDMeasSIDBonded to cadantUFIDMeasEntry', 'Change indices of cadDFIDMeasEntry as ifIndex and SFID. Change indices of cadantUFIDMeasEntry as ifIndex and SID', 'Add cadDCardDhcpV6ThrottleDropPkts and cadDCardNdThrottleDropPkts.', 'Add cadHWCmUsMeasEntry', 'Restructure cadantHWUFIDMeasEntry, rename cadantUFIDMeasUFID to cadantUFIDMeasSID, and Add cadantHWMeasUFIDIndex', 'Restructure cadSFIDMeasEntry to support docsQosServiceFlowCcfStatsEntry', 'Use ifindex as key for sfid to sid lookup.', 'Remove fabric tables and add CPWRED tables to match implementation.', 'Added implementation per utilization interval for cadInterfaceUtilizationAvgContSlots.', 'Added cadDFIDMeasPolicedDelayPkts for Traffic Shaping feature.', 'Extended cadSubMgtPktFilterExtTable to allow for packet capturing.', 'Added cadSubMgtPktFilterExtTable to reset docsSubMgtPktFilterMatches.', 'Added cadFftUpstreamChannelTable for FFT counts.', 'Added cadInterfaceUtilizationTable', 'Added support for per-SID HCS and CRC errors.', 'Added cadantDPortMeasIfOutTotalOctets', 'Added support for per UFID microreflection/signalnoise.', 'Added cadantDPortMeasAppMcastPkts', 'Added 10 BCM3214 counts to the cadantUPortMeasTable', ' add more arp throttle counts. ', ' add more receive error counts to cadantEtherPhyMeasTable', ' add error drop and filter drop counts to UPortMeas table', ' Add support for DHCP packets dropped due to throttling. ', ' change cadantUFIDMeasBytsSGreedyDrop to cadantUFIDMeasPktsSGreedyDrop.',)) if mibBuilder.loadTexts: cadHardwareMeasMib.setLastUpdated('201508270000Z') if mibBuilder.loadTexts: cadHardwareMeasMib.setOrganization('Arris International, Inc.') if mibBuilder.loadTexts: cadHardwareMeasMib.setContactInfo('Arris Technical Support E-Mail: support@arrisi.com') if mibBuilder.loadTexts: cadHardwareMeasMib.setDescription('This Mib Module contains all of the counts that are associated with hardware in the ARRIS C4 CMTS. Many of these MIB variables contain the same counts as found in the standard MIBs. However, the grouping of these variables is done for the convenience of the Cadant engineering team. These tables can be used to build value-added interfaces to the Cadant ARRIS C4 CMTS. ') class DFIDIndex(TextualConvention, Unsigned32): description = "The 1's-based SFID" status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 4294967295) class PktClassId(TextualConvention, Integer32): description = 'Index assigned to packet classifier entry by the CMTS which is unique per service flow.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 65535) class SFIDIndex(TextualConvention, Integer32): description = "The 1's-based SFID" status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 2147483647) class UFIDIndex(TextualConvention, Integer32): description = "The 1's-based UFID" status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 32768) class SIDValue(TextualConvention, Integer32): description = "The 1's-based SID. 0 is used when there is no SID, such as for downstream flows." status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 16384) class TMSide(TextualConvention, Integer32): description = 'The Traffic Manager side no SID, such as for downstream flows.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("tma", 1), ("tmb", 2)) cadantHWMeasGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1)) cadantFabActualDepth = MibScalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantFabActualDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabActualDepth.setDescription(' The current depth of the fabric.') cadantFabAvgDepth = MibScalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantFabAvgDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabAvgDepth.setDescription(' The average depth of the fabric.') cadantUPortMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3), ) if mibBuilder.loadTexts: cadantUPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasTable.setDescription(' This table contains information relevant to D Card upstream channels.') cadantUPortMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadantUPortMeasCardId"), (0, "CADANT-HW-MEAS-MIB", "cadantUPortMeasPortId")) if mibBuilder.loadTexts: cadantUPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasEntry.setDescription(' ') cadantUPortMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 1), CardId()) if mibBuilder.loadTexts: cadantUPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasCardId.setDescription('') cadantUPortMeasPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 2), PortId()) if mibBuilder.loadTexts: cadantUPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasPortId.setDescription('') cadantUPortMeasUcastFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadantUPortMeasMcastFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadantUPortMeasBcastFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadantUPortMeasUcastDataFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadantUPortMeasMcastDataFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadantUPortMeasBcastDataFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadantUPortMeasDiscardFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setDescription(' The aggregrate number of frames received on this U channel that were dropped for reasons other than ErrorFrms or FilterFrms.') cadantUPortMeasIfInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setDescription(' The aggregrate number of octets received on this U channel. This includes MAC packets and the length of the MAC header.') cadantUPortMeasIfInDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setDescription(' The aggregrate number of octets received on this U channel. This does not include MAC packets or the length of the MAC header.') cadantUPortMeasIfInUnknownProtos = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setDescription(' Aggregrate number of MAC frames with unknown protocol. This count is neither mutually exclusive with cadantUPortMeasErroredFrms nor cadantUPortMeasErroredFrms.') cadantUPortMeasAppMinusBWReqFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setDescription(' The number of (unicast) frames received by the software application which are not bandwidth request frames. ') cadantUPortMeasErroredFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setDescription(' The aggregrate number of packets received on this U channel that were received in error and dropped. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasFilteredFrms.') cadantUPortMeasFilteredFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setDescription(' The aggregrate number of packets received on this U channel that were dropped due to a filter rule match and discard. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasErroredFrms.') cadantUPortMeasBcastReqOpps = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setDescription('Broadcast contention request opportunity count') cadantUPortMeasBcastReqColls = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setDescription('Broadcast contention request opportunities with possible collisions count') cadantUPortMeasBcastReqNoEnergies = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setDescription('Broadcast contention request opportunities with no energy condition detected') cadantUPortMeasBcastReqRxPwr1s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setDescription('Broadcast contention request opportunities with received power level between power threshold 2 and power threshold 1') cadantUPortMeasBcastReqRxPwr2s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setDescription('Broadcast contention request opportunities with received power level greater than power threshold 2') cadantUPortMeasInitMaintOpps = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setDescription('Initial maintenance opportunities') cadantUPortMeasInitMaintColls = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setDescription('Initial maintenance opportunities with possible collision') cadantUPortMeasInitMaintNoEnergies = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setDescription('Initial maintenance opportunities with no energy detected') cadantUPortMeasInitMaintRxPwr1s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setDescription('Initial maintenance opportunities with received power level between power threshold 2 and power threshold 1') cadantUPortMeasInitMaintRxPwr2s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setDescription('Initial maintenance opportunities with received power level greater than power threshold 2') cadantDPortMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4), ) if mibBuilder.loadTexts: cadantDPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasTable.setDescription(' This table contains information relevant to D Card downstream channels.') cadantDPortMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadantDPortMeasCardId"), (0, "CADANT-HW-MEAS-MIB", "cadantDPortMeasPortId")) if mibBuilder.loadTexts: cadantDPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasEntry.setDescription(' ') cadantDPortMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 1), CardId()) if mibBuilder.loadTexts: cadantDPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasCardId.setDescription('') cadantDPortMeasPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 2), PortId()) if mibBuilder.loadTexts: cadantDPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasPortId.setDescription('') cadantDPortMeasIfOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This includes MAC mgmt messages and the length of the MAC header.') cadantDPortMeasIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This includes MAC mgmt messages.') cadantDPortMeasIfOutMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This includes MAC mgmt messages.') cadantDPortMeasIfOutBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This includes MAC mgmt messages.') cadantDPortMeasIfOutDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This does not include MAC mgmt bytes.') cadantDPortMeasIfOutUcastDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadantDPortMeasIfOutMcastDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadantDPortMeasIfOutBcastDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This does not include MAC mgmt messages.') cadantDPortMeasGotNoDMACs = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setDescription(' Aggregrate number of ???') cadantDPortMeasGotNoClasses = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setDescription(' Aggregrate number of ???.') cadantDPortMeasSyncPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setDescription(' Aggregrate number of sync. frames sent on this D channel.') cadantDPortMeasAppUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setDescription(' Aggregrate number of unicast DOCSIS Mac mgmt messages sent by application software. ') cadantDPortMeasAppMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setDescription(' Aggregrate number of multicast DOCSIS Mac mgmt messages sent by application software. ') cadantDPortMeasIfOutTotalOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setDescription(' Aggregrate number of octets sent by application software. ') cadantDPortMeasOfdmIfSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 17), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setDescription('Downstream OFDM channel interface speed.') cadantDPortMeasOfdmHighestAvgBitsPerSubc = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 18), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setDescription('Highest average bits per subcarrier among all the data profiles of the downstream OFDM channel.') cadantDPortMeasOfdmNumDataSubc = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setDescription('The number of data subcarrier of the downstream OFDM channel.') cadantDPortMeasOfdmChanUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setDescription('The utilization of the downstream OFDM channel.') cadantUFIDMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6), ) if mibBuilder.loadTexts: cadantUFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasTable.setDescription(' ') cadantUFIDMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CADANT-HW-MEAS-MIB", "cadantUFIDMeasSID")) if mibBuilder.loadTexts: cadantUFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasEntry.setDescription(' ') cadantUFIDMeasSID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 3), SIDValue()) if mibBuilder.loadTexts: cadantUFIDMeasSID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSID.setDescription(' The 14 bit (SID).') cadantUFIDMeasPktsSGreedyDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setDescription(' The aggregrate number of Super Greedy pkts dropped for this UFID for this MAC layer.') cadantUFIDMeasBytsOtherDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setDescription(' The aggregrate number of bytes dropped for this UFID for this MAC layer for any other reason than Super Greedy.') cadantUFIDMeasBytsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes that arrived for this UFID for this MAC layer.') cadantUFIDMeasPktsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setDescription(' The aggregrate number of packets that arrived for this UFID for this MAC layer.') cadantUFIDMeasSIDCorrecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were corrected for this UFID for this MAC layer.') cadantUFIDMeasSIDUnerroreds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setDescription(' The aggregrate number of bytes that had no errors for this UFID for this MAC layer.') cadantUFIDMeasSIDUnCorrecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were not corrected for this UFID for this MAC layer.') cadantUFIDMeasSIDNoUniqueWordDetecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID in which no unique code word was detected for this UFID for this MAC layer.') cadantUFIDMeasSIDCollidedBursts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setDescription(' The aggregrate number of bytes allocated for this UFID that had burst errors in their slots for this UFID for this MAC layer.') cadantUFIDMeasSIDNoEnergyDetecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID that had no energy detected in their slots for this UFID for this MAC layer.') cadantUFIDMeasSIDLengthErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had no length errors in their slots for this UFID for this MAC layer.') cadantUFIDMeasSIDMACErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had MAC errors in their slots for this UFID for this MAC layer.') cadantUFIDMeasMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 17), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cadantUFIDMeasSCN = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 18), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cadantUFIDMeasSFID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 19), SFIDIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSFID.setDescription(' The SFID this UFID(SID) is for.') cadantUFIDMeasPHSUnknowns = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cadantUFIDMeasFragPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setDescription('refer to docsQosUpstreamFragPkts') cadantUFIDMeasIncompletePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setDescription('refer to docsQosUpstreamIncompletePkts') cadantUFIDMeasConcatBursts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setDescription('refer to docsQosUpstreamConcatBursts') cadantUFIDMeasSIDSignalNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 24), TenthdB()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setDescription('refer to docsIfCmtsCmStatusSignalNoise') cadantUFIDMeasSIDMicroreflections = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 25), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setDescription('refer to docsIfCmtsCmStatusMicroreflections') cadantUFIDMeasSIDHCSErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setDescription('The number of MAC HCS errors seen for this SID.') cadantUFIDMeasSIDCRCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setDescription('The number of MAC CRC errors seen for this SID.') cadantUFIDMeasUFIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 28), UFIDIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setDescription(' The 15 bit (UFID).') cadantUFIDMeasGateID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 29), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cadantUFIDMeasSIDMacIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 30), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setDescription(' The cable Mac domain ifIndex the SID is associated with.') cadantUFIDMeasSIDBonded = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 31), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setDescription(' This object indicates whether a SID is associated with a CCF service flow.') cadantUFIDMeasCcfStatsSgmtValids = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 32), Counter32()).setUnits('segments').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setDescription('This attribute contains the number of segments counted on this service flow regardless of whether the fragment was correctly reassembled into valid packets. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadantUFIDMeasCcfStatsSgmtLost = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 33), Counter32()).setUnits('segments').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were lost. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadantUFIDMeasCcfStatsSgmtDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 34), Counter32()).setUnits('segments').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were dropped. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadantEtherPhyMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10), ) if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setDescription(' ') cadantEtherPhyMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadantEtherPhyMeasCardId"), (0, "CADANT-HW-MEAS-MIB", "cadantEtherPhyMeasPortId")) if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setDescription(' ') cadantEtherPhyMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 1), CardId()) if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setDescription('') cadantEtherPhyMeasPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 2), PortId()) if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setDescription('') cadantEtherPhyMeasRxOctOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setDescription(' .') cadantEtherPhyMeasRxUniOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setDescription(' .') cadantEtherPhyMeasRxMultiOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setDescription(' .') cadantEtherPhyMeasRxBroadOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setDescription(' .') cadantEtherPhyMeasRxOverflow = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setDescription(' .') cadantEtherPhyMeasRxNormAlign = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setDescription(' .') cadantEtherPhyMeasRxNormCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setDescription(' .') cadantEtherPhyMeasRxLongOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setDescription(' .') cadantEtherPhyMeasRxLongCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setDescription(' .') cadantEtherPhyMeasRxFalsCRS = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setDescription(' .') cadantEtherPhyMeasRxSymbolErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setDescription(' .') cadantEtherPhyMeasRxPause = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setDescription(' .') cadantEtherPhyMeasTxOctOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setDescription(' .') cadantEtherPhyMeasTxUniOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setDescription(' .') cadantEtherPhyMeasTxMultiOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setDescription(' .') cadantEtherPhyMeasTxBroadOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setDescription(' .') cadantEtherPhyMeasTxScol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setDescription(' .') cadantEtherPhyMeasTxMcol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setDescription(' .') cadantEtherPhyMeasTxDeferred = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setDescription(' .') cadantEtherPhyMeasTxLcol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setDescription(' .') cadantEtherPhyMeasTxCcol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setDescription(' .') cadantEtherPhyMeasTxErr = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setDescription(' .') cadantEtherPhyMeasTxPause = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setDescription(' .') cadantEtherPhyMeasRxShortOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setDescription(' .') cadantEtherPhyMeasRxShortCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setDescription(' .') cadantEtherPhyMeasRxRunt = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setDescription(' .') cadantEtherPhyMeasRxOctBad = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setDescription(' .') cadDFIDMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14), ) if mibBuilder.loadTexts: cadDFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasTable.setDescription('This table contains DFID-specific counts.') cadDFIDMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CADANT-HW-MEAS-MIB", "cadDFIDMeasIndex")) if mibBuilder.loadTexts: cadDFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasEntry.setDescription(' ') cadDFIDMeasIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 3), SFIDIndex()) if mibBuilder.loadTexts: cadDFIDMeasIndex.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasIndex.setDescription(' The SFID these DFID counts are for.') cadDFIDMeasBytsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes arriving to go out, but not necessarily transmitted.') cadDFIDMeasPktsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setDescription(' The aggregrate number of packets arriving to go out, but not necessarily transmitted.') cadDFIDMeasBytsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setDescription(' The aggregrate number of bytes dropped.') cadDFIDMeasPktsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setDescription(' The aggregrate number of packets dropped.') cadDFIDMeasBytsUnkDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setDescription(' The aggregrate number of bytes dropped due to unknown DMAC.') cadDFIDMeasDFID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 9), DFIDIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasDFID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasDFID.setDescription(' The DFID.') cadDFIDMeasPHSUnknowns = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cadDFIDMeasMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 11), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cadDFIDMeasSCN = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cadDFIDMeasPolicedDelayPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setDescription('refer to docsQosServiceFlowPolicedDelayPkts') cadDFIDMeasGateID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 14), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cadQosPktClassMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16), ) if mibBuilder.loadTexts: cadQosPktClassMeasTable.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasTable.setDescription(' This table contains just one data member: cadQosPktClassMeasPkts, which is equivalent to docsQosPktClassPkts in qos-draft-04.') cadQosPktClassMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadQosPktClassMeasIfIndex"), (0, "CADANT-HW-MEAS-MIB", "cadQosPktClassMeasSFID"), (0, "CADANT-HW-MEAS-MIB", "cadQosPktClassMeasPktClassId")) if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setDescription(' ') cadQosPktClassMeasIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setDescription(' The ifIndex of ifType 127 for this classifier.') cadQosPktClassMeasSFID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 2), SFIDIndex()) if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setDescription(' The Service Flow ID this classifier is for.') cadQosPktClassMeasPktClassId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 3), PktClassId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setDescription(' The ID of this classifier, which only need be unique for a given Service Flow ID.') cadQosPktClassMeasPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setDescription(' The number of packets that have been classified using this classifier on this flow.') cadIfMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18), ) if mibBuilder.loadTexts: cadIfMeasTable.setStatus('current') if mibBuilder.loadTexts: cadIfMeasTable.setDescription(' This table is designed to concurrently support the counters defined in the ifTable and the ifXTable. Every row that appears in this table should have a corresponding row in both the ifTable and the ifXTable. However, not every row in the ifTable and ifXTable will appear in this table.') cadIfMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cadIfMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadIfMeasEntry.setDescription('') cadIfInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadIfInOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfInDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInErrors.setStatus('current') if mibBuilder.loadTexts: cadIfInErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInUnknownProtos = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadIfInUnknownProtos.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadIfOutOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfOutDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutErrors.setStatus('current') if mibBuilder.loadTexts: cadIfOutErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadDCardMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20), ) if mibBuilder.loadTexts: cadDCardMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasTable.setDescription(' This table contains information relevant to D Card counts.') cadDCardMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadDCardMeasCardId")) if mibBuilder.loadTexts: cadDCardMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasEntry.setDescription(' ') cadDCardMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 1), CardId()) if mibBuilder.loadTexts: cadDCardMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasCardId.setDescription('') cadDCardIpInReceives = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIpInReceives.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInReceives.setDescription('The contribution to ipInRecevies for this particular D Card.') cadDCardIpInHdrErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setDescription('The contribution to ipInHdrErrors for this particular D Card.') cadDCardIpInAddrErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setDescription('The contribution to ipInAddrErrors for this particular D Card.') cadDCardDhcpThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setDescription('The number of dropped DHCP requests for this D Card.') cadDCardArpThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setDescription('The number of dropped ARP requests for this D Card.') cadDCardDhcpV6ThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setDescription('The number of dropped IPV6 DHCP requests for this D Card.') cadDCardNdThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setDescription('The number of dropped IPV6 ND requests for this D Card.') cadDCardIgmpThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setDescription('The number of dropped IGMP messages for this UCAM.') cadInterfaceUtilizationTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23), ) if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setDescription('Reports utilization statistics for attached interfaces.') cadInterfaceUtilizationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CADANT-HW-MEAS-MIB", "cadInterfaceUtilizationDirection")) if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setDescription('Utilization statistics for a single interface. An entry exists in this table for each ifEntry with an ifType equal to docsCableDownstreamInterface (128), docsCableUpstreamInterface (129), docsCableUpstreamChannel (205), ethernet(6), or gigabitEthernet(117).') cadInterfaceUtilizationDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 1), CadIfDirection()) if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setDescription("The direction of flow this utilization is for. Cable upstream interfaces will only have a value of 'in' for this object. Likewise, cable downstream interfaces will only hav a value of 'out' for this object. Full-duplex interfaces, such as fastEthernet and gigabitEthernet interfaces, will have both 'in' and 'out' rows.") cadInterfaceUtilizationPercentage = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate as of the most recent docsIfCmtsChannelUtilizationInterval.') cadInterfaceUtilizationAvgContSlots = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setDescription('Applicable for ifType of docsCableUpstreamChannel (205) only. The average percentage of contention mini-slots for upstream channel. This ratio is calculated the most recent utilization interval. Formula: Upstream contention mini-slots utilization = (100 * ((contention mini-slots ) / (total mini-slots))') cadInterfaceHighResUtilizationPercentage = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Hundredth of a percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate (to 0.01% resolution) as of the most recent docsIfCmtsChannelUtilizationInterval.') cadInterfaceIntervalOctetsForwarded = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setStatus('current') if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setDescription('The number of octets forwarded since the most recent docsIfCmtsChannelUtilizationInterval. Note that this count will only apply to the following interface types: Ethernet, Link-Aggregate. For all other interface types this value will display 0') cadSubMgtPktFilterExtTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25), ) if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setDescription('This table augments the docsSubMgtPktFilterTable. In its current form, it is used to clear docsSubMgtPktFilterMatches and keep track of the change.') cadSubMgtPktFilterExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1), ) docsSubmgt3FilterGrpEntry.registerAugmentions(("CADANT-HW-MEAS-MIB", "cadSubMgtPktFilterExtEntry")) cadSubMgtPktFilterExtEntry.setIndexNames(*docsSubmgt3FilterGrpEntry.getIndexNames()) if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setDescription('For every docsSubmgt3FilterGrpEntry, there is a matching cadSubMgtPktFilterExtEntry.') cadSubMgtPktFilterMatchesReset = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setDescription('This object always return false(2) when read. If the value false(2) is assigned to this object, no action is taken. However, if this object it set to the value true(1), the corresponding docsSubMgtPktFilterMatches counter object is set to 0 and cadSubMgtPktFilterLastChanged is set to the current time.') cadSubMgtPktFilterLastChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 2), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setDescription('The time at which docsSubMgtPktFilterMatches might have experienced a discontinuity, such as when cadSubMgtPktFilterMatchesReset is set to true(1) or when any of the parameters in the docsSubMgtPktFilterTable affecting filtering last changed.') cadSubMgtPktFilterCaptureEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setDescription('Indicates whether packets matching this filter are captured for possible debug logging. A value of true indicates that packets matching this filter will be captured. A value of false indicates that packets matching this filter will not be captured for later debuggging.') cadLaesCountTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26), ) if mibBuilder.loadTexts: cadLaesCountTable.setStatus('current') if mibBuilder.loadTexts: cadLaesCountTable.setDescription('This table references pktcEScTapStreamTable') cadLaesCountEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1), ).setIndexNames((0, "PKTC-ES-TAP-MIB", "pktcEScTapMediationContentId"), (0, "PKTC-ES-TAP-MIB", "pktcEScTapStreamIndex")) if mibBuilder.loadTexts: cadLaesCountEntry.setStatus('current') if mibBuilder.loadTexts: cadLaesCountEntry.setDescription('For every cadLaesCountEntry, there is a matching pktcEScTapStreamEntry.') cadLaesCountMacDomainIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setStatus('current') if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setDescription('This object indicates the cable Mac domain interface index that the LAES stream is associated with.') cadLaesCountStreamDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 2), IfDirection()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountStreamDirection.setStatus('current') if mibBuilder.loadTexts: cadLaesCountStreamDirection.setDescription('This object indicates either downstream or upstream direction that the LAES stream is associated with.') cadLaesCountInterceptedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setDescription('Indicates number of intercepted packets are sent of the LAES stream.') cadLaesCountInterceptDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setDescription('Indicates number of intercepted packets are dropped of the LAES stream.') cadFftUpstreamChannelTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24), ) if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setDescription('Reports current FFT operation status.') cadFftUpstreamChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setDescription('FFT status for a single upstream channel with ifType docsCableUpstreamInterface(129).') cadFftInProgress = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadFftInProgress.setStatus('current') if mibBuilder.loadTexts: cadFftInProgress.setDescription('The current state on the FFT capture. ') cadFftCurrentTriggers = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadFftCurrentTriggers.setStatus('current') if mibBuilder.loadTexts: cadFftCurrentTriggers.setDescription('The number of times the FFT capture has triggered and transferred data from the Broadcom device.') mibBuilder.exportSymbols("CADANT-HW-MEAS-MIB", cadDFIDMeasBytsUnkDropped=cadDFIDMeasBytsUnkDropped, cadantDPortMeasIfOutUcastDataPkts=cadantDPortMeasIfOutUcastDataPkts, cadInterfaceUtilizationDirection=cadInterfaceUtilizationDirection, cadDCardIpInReceives=cadDCardIpInReceives, cadLaesCountStreamDirection=cadLaesCountStreamDirection, cadInterfaceUtilizationPercentage=cadInterfaceUtilizationPercentage, cadantUPortMeasInitMaintNoEnergies=cadantUPortMeasInitMaintNoEnergies, cadantUPortMeasErroredFrms=cadantUPortMeasErroredFrms, cadantEtherPhyMeasRxNormCRC=cadantEtherPhyMeasRxNormCRC, cadantEtherPhyMeasRxLongOK=cadantEtherPhyMeasRxLongOK, cadDCardIpInAddrErrors=cadDCardIpInAddrErrors, cadSubMgtPktFilterCaptureEnabled=cadSubMgtPktFilterCaptureEnabled, cadSubMgtPktFilterExtTable=cadSubMgtPktFilterExtTable, cadantUPortMeasUcastDataFrms=cadantUPortMeasUcastDataFrms, cadantUPortMeasBcastReqColls=cadantUPortMeasBcastReqColls, cadantUFIDMeasSIDCollidedBursts=cadantUFIDMeasSIDCollidedBursts, cadIfInUcastPkts=cadIfInUcastPkts, cadantEtherPhyMeasCardId=cadantEtherPhyMeasCardId, cadIfOutUcastPkts=cadIfOutUcastPkts, cadantDPortMeasIfOutMcastPkts=cadantDPortMeasIfOutMcastPkts, SFIDIndex=SFIDIndex, cadDFIDMeasBytsDropped=cadDFIDMeasBytsDropped, cadIfOutErrors=cadIfOutErrors, cadantUFIDMeasSIDNoEnergyDetecteds=cadantUFIDMeasSIDNoEnergyDetecteds, cadantEtherPhyMeasRxMultiOK=cadantEtherPhyMeasRxMultiOK, cadDCardDhcpThrottleDropPkts=cadDCardDhcpThrottleDropPkts, cadantUFIDMeasPktsSGreedyDrop=cadantUFIDMeasPktsSGreedyDrop, cadantEtherPhyMeasRxShortOK=cadantEtherPhyMeasRxShortOK, cadIfInUnknownProtos=cadIfInUnknownProtos, cadantUPortMeasMcastFrms=cadantUPortMeasMcastFrms, cadantUPortMeasBcastDataFrms=cadantUPortMeasBcastDataFrms, cadLaesCountEntry=cadLaesCountEntry, PYSNMP_MODULE_ID=cadHardwareMeasMib, cadantDPortMeasAppMcastPkts=cadantDPortMeasAppMcastPkts, cadantUFIDMeasUFIDIndex=cadantUFIDMeasUFIDIndex, cadantUFIDMeasSIDMacIfIndex=cadantUFIDMeasSIDMacIfIndex, cadQosPktClassMeasSFID=cadQosPktClassMeasSFID, cadantDPortMeasIfOutBcastPkts=cadantDPortMeasIfOutBcastPkts, cadInterfaceUtilizationTable=cadInterfaceUtilizationTable, cadDCardMeasTable=cadDCardMeasTable, cadantUPortMeasEntry=cadantUPortMeasEntry, cadantDPortMeasIfOutOctets=cadantDPortMeasIfOutOctets, cadDFIDMeasPktsArrived=cadDFIDMeasPktsArrived, cadantUPortMeasIfInUnknownProtos=cadantUPortMeasIfInUnknownProtos, cadantUPortMeasBcastReqOpps=cadantUPortMeasBcastReqOpps, cadDFIDMeasGateID=cadDFIDMeasGateID, cadantEtherPhyMeasRxUniOK=cadantEtherPhyMeasRxUniOK, cadantUFIDMeasSCN=cadantUFIDMeasSCN, cadantEtherPhyMeasRxOverflow=cadantEtherPhyMeasRxOverflow, cadantDPortMeasIfOutUcastPkts=cadantDPortMeasIfOutUcastPkts, cadantDPortMeasGotNoDMACs=cadantDPortMeasGotNoDMACs, cadDFIDMeasMacAddress=cadDFIDMeasMacAddress, cadantUFIDMeasBytsOtherDrop=cadantUFIDMeasBytsOtherDrop, cadantUFIDMeasSID=cadantUFIDMeasSID, cadIfOutOctets=cadIfOutOctets, cadantEtherPhyMeasRxRunt=cadantEtherPhyMeasRxRunt, cadantUFIDMeasCcfStatsSgmtValids=cadantUFIDMeasCcfStatsSgmtValids, cadantUPortMeasInitMaintRxPwr2s=cadantUPortMeasInitMaintRxPwr2s, TMSide=TMSide, cadDFIDMeasPHSUnknowns=cadDFIDMeasPHSUnknowns, cadantEtherPhyMeasTxUniOK=cadantEtherPhyMeasTxUniOK, cadantEtherPhyMeasRxOctBad=cadantEtherPhyMeasRxOctBad, cadDFIDMeasDFID=cadDFIDMeasDFID, cadantHWMeasGeneral=cadantHWMeasGeneral, cadQosPktClassMeasPkts=cadQosPktClassMeasPkts, cadDCardIpInHdrErrors=cadDCardIpInHdrErrors, cadFftCurrentTriggers=cadFftCurrentTriggers, cadantEtherPhyMeasRxBroadOK=cadantEtherPhyMeasRxBroadOK, cadDCardIgmpThrottleDropPkts=cadDCardIgmpThrottleDropPkts, cadSubMgtPktFilterMatchesReset=cadSubMgtPktFilterMatchesReset, cadDCardMeasCardId=cadDCardMeasCardId, cadantUFIDMeasEntry=cadantUFIDMeasEntry, cadIfMeasEntry=cadIfMeasEntry, cadDFIDMeasBytsArrived=cadDFIDMeasBytsArrived, cadantUFIDMeasSIDUnerroreds=cadantUFIDMeasSIDUnerroreds, cadIfInDiscards=cadIfInDiscards, cadIfInMulticastPkts=cadIfInMulticastPkts, cadIfOutDiscards=cadIfOutDiscards, cadantUFIDMeasPHSUnknowns=cadantUFIDMeasPHSUnknowns, cadantEtherPhyMeasTxScol=cadantEtherPhyMeasTxScol, cadDCardDhcpV6ThrottleDropPkts=cadDCardDhcpV6ThrottleDropPkts, cadantDPortMeasOfdmIfSpeed=cadantDPortMeasOfdmIfSpeed, DFIDIndex=DFIDIndex, cadInterfaceUtilizationAvgContSlots=cadInterfaceUtilizationAvgContSlots, cadantEtherPhyMeasTxCcol=cadantEtherPhyMeasTxCcol, PktClassId=PktClassId, cadantUPortMeasDiscardFrms=cadantUPortMeasDiscardFrms, cadDCardMeasEntry=cadDCardMeasEntry, cadantEtherPhyMeasTxLcol=cadantEtherPhyMeasTxLcol, cadantUPortMeasBcastReqNoEnergies=cadantUPortMeasBcastReqNoEnergies, cadantUFIDMeasMacAddress=cadantUFIDMeasMacAddress, cadDCardArpThrottleDropPkts=cadDCardArpThrottleDropPkts, cadIfOutMulticastPkts=cadIfOutMulticastPkts, cadInterfaceIntervalOctetsForwarded=cadInterfaceIntervalOctetsForwarded, cadQosPktClassMeasTable=cadQosPktClassMeasTable, cadQosPktClassMeasEntry=cadQosPktClassMeasEntry, cadantUFIDMeasSIDLengthErrors=cadantUFIDMeasSIDLengthErrors, cadantFabActualDepth=cadantFabActualDepth, cadantUFIDMeasCcfStatsSgmtLost=cadantUFIDMeasCcfStatsSgmtLost, cadDFIDMeasPolicedDelayPkts=cadDFIDMeasPolicedDelayPkts, cadantDPortMeasOfdmChanUtilization=cadantDPortMeasOfdmChanUtilization, cadantUFIDMeasSIDUnCorrecteds=cadantUFIDMeasSIDUnCorrecteds, cadDCardNdThrottleDropPkts=cadDCardNdThrottleDropPkts, cadInterfaceUtilizationEntry=cadInterfaceUtilizationEntry, cadantUPortMeasUcastFrms=cadantUPortMeasUcastFrms, cadantDPortMeasPortId=cadantDPortMeasPortId, cadantUFIDMeasFragPkts=cadantUFIDMeasFragPkts, cadantFabAvgDepth=cadantFabAvgDepth, cadLaesCountInterceptedPackets=cadLaesCountInterceptedPackets, cadantDPortMeasSyncPkts=cadantDPortMeasSyncPkts, cadIfInOctets=cadIfInOctets, cadIfOutBroadcastPkts=cadIfOutBroadcastPkts, cadantUPortMeasTable=cadantUPortMeasTable, cadantEtherPhyMeasRxFalsCRS=cadantEtherPhyMeasRxFalsCRS, cadantEtherPhyMeasRxOctOK=cadantEtherPhyMeasRxOctOK, cadInterfaceHighResUtilizationPercentage=cadInterfaceHighResUtilizationPercentage, cadIfInBroadcastPkts=cadIfInBroadcastPkts, cadantEtherPhyMeasTable=cadantEtherPhyMeasTable, cadDFIDMeasEntry=cadDFIDMeasEntry, cadantEtherPhyMeasTxMcol=cadantEtherPhyMeasTxMcol, cadantUFIDMeasConcatBursts=cadantUFIDMeasConcatBursts, cadantEtherPhyMeasRxShortCRC=cadantEtherPhyMeasRxShortCRC, cadHardwareMeasMib=cadHardwareMeasMib, cadantEtherPhyMeasTxBroadOK=cadantEtherPhyMeasTxBroadOK, cadantDPortMeasIfOutBcastDataPkts=cadantDPortMeasIfOutBcastDataPkts, cadantEtherPhyMeasTxDeferred=cadantEtherPhyMeasTxDeferred, cadantDPortMeasGotNoClasses=cadantDPortMeasGotNoClasses, cadSubMgtPktFilterLastChanged=cadSubMgtPktFilterLastChanged, cadantUFIDMeasBytsArrived=cadantUFIDMeasBytsArrived, cadantEtherPhyMeasTxPause=cadantEtherPhyMeasTxPause, cadantUPortMeasCardId=cadantUPortMeasCardId, cadantUFIDMeasSIDCRCErrors=cadantUFIDMeasSIDCRCErrors, cadantUPortMeasIfInDataOctets=cadantUPortMeasIfInDataOctets, cadFftUpstreamChannelTable=cadFftUpstreamChannelTable, cadantUPortMeasInitMaintRxPwr1s=cadantUPortMeasInitMaintRxPwr1s, cadDFIDMeasSCN=cadDFIDMeasSCN, cadantUPortMeasIfInOctets=cadantUPortMeasIfInOctets, cadantUFIDMeasIncompletePkts=cadantUFIDMeasIncompletePkts, cadLaesCountInterceptDrops=cadLaesCountInterceptDrops, cadantDPortMeasIfOutTotalOctets=cadantDPortMeasIfOutTotalOctets, cadQosPktClassMeasPktClassId=cadQosPktClassMeasPktClassId, cadantUFIDMeasSIDSignalNoise=cadantUFIDMeasSIDSignalNoise, cadFftInProgress=cadFftInProgress, cadantUPortMeasBcastReqRxPwr2s=cadantUPortMeasBcastReqRxPwr2s, cadantDPortMeasEntry=cadantDPortMeasEntry, cadantUFIDMeasCcfStatsSgmtDrop=cadantUFIDMeasCcfStatsSgmtDrop, cadantUFIDMeasSIDBonded=cadantUFIDMeasSIDBonded, cadantUPortMeasInitMaintOpps=cadantUPortMeasInitMaintOpps, cadantUPortMeasPortId=cadantUPortMeasPortId, cadantUFIDMeasPktsArrived=cadantUFIDMeasPktsArrived, cadantEtherPhyMeasRxNormAlign=cadantEtherPhyMeasRxNormAlign, cadantUPortMeasAppMinusBWReqFrms=cadantUPortMeasAppMinusBWReqFrms, cadantUFIDMeasTable=cadantUFIDMeasTable, cadIfMeasTable=cadIfMeasTable, cadantEtherPhyMeasTxMultiOK=cadantEtherPhyMeasTxMultiOK, cadIfInErrors=cadIfInErrors, cadantUPortMeasInitMaintColls=cadantUPortMeasInitMaintColls, cadQosPktClassMeasIfIndex=cadQosPktClassMeasIfIndex, cadantEtherPhyMeasPortId=cadantEtherPhyMeasPortId, cadantUFIDMeasSIDMACErrors=cadantUFIDMeasSIDMACErrors, cadantEtherPhyMeasTxOctOK=cadantEtherPhyMeasTxOctOK, cadantDPortMeasCardId=cadantDPortMeasCardId, cadantDPortMeasOfdmNumDataSubc=cadantDPortMeasOfdmNumDataSubc, cadantEtherPhyMeasEntry=cadantEtherPhyMeasEntry, cadantEtherPhyMeasRxSymbolErrors=cadantEtherPhyMeasRxSymbolErrors, SIDValue=SIDValue, cadantDPortMeasOfdmHighestAvgBitsPerSubc=cadantDPortMeasOfdmHighestAvgBitsPerSubc, cadantEtherPhyMeasRxLongCRC=cadantEtherPhyMeasRxLongCRC, cadLaesCountTable=cadLaesCountTable, cadantUPortMeasFilteredFrms=cadantUPortMeasFilteredFrms, cadDFIDMeasPktsDropped=cadDFIDMeasPktsDropped, cadantUPortMeasBcastReqRxPwr1s=cadantUPortMeasBcastReqRxPwr1s, cadantDPortMeasIfOutDataOctets=cadantDPortMeasIfOutDataOctets, cadantEtherPhyMeasRxPause=cadantEtherPhyMeasRxPause, cadantDPortMeasIfOutMcastDataPkts=cadantDPortMeasIfOutMcastDataPkts, cadantUPortMeasBcastFrms=cadantUPortMeasBcastFrms, cadantUFIDMeasSIDMicroreflections=cadantUFIDMeasSIDMicroreflections, cadantUPortMeasMcastDataFrms=cadantUPortMeasMcastDataFrms, cadDFIDMeasTable=cadDFIDMeasTable, cadantDPortMeasAppUcastPkts=cadantDPortMeasAppUcastPkts, UFIDIndex=UFIDIndex, cadantUFIDMeasSFID=cadantUFIDMeasSFID, cadFftUpstreamChannelEntry=cadFftUpstreamChannelEntry, cadantUFIDMeasSIDNoUniqueWordDetecteds=cadantUFIDMeasSIDNoUniqueWordDetecteds, cadSubMgtPktFilterExtEntry=cadSubMgtPktFilterExtEntry, cadantUFIDMeasSIDHCSErrors=cadantUFIDMeasSIDHCSErrors, cadantUFIDMeasGateID=cadantUFIDMeasGateID, cadDFIDMeasIndex=cadDFIDMeasIndex, cadLaesCountMacDomainIfIndex=cadLaesCountMacDomainIfIndex, cadantDPortMeasTable=cadantDPortMeasTable, cadantUFIDMeasSIDCorrecteds=cadantUFIDMeasSIDCorrecteds, cadantEtherPhyMeasTxErr=cadantEtherPhyMeasTxErr)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_union, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint') (cad_if3_cmts_cm_us_status_ch_if_index,) = mibBuilder.importSymbols('CADANT-CMTS-IF3-MIB', 'cadIf3CmtsCmUsStatusChIfIndex') (cad_if_mac_domain_if_index,) = mibBuilder.importSymbols('CADANT-CMTS-LAYER2CMTS-MIB', 'cadIfMacDomainIfIndex') (cad_if_cmts_cm_status_mac_address,) = mibBuilder.importSymbols('CADANT-CMTS-MAC-MIB', 'cadIfCmtsCmStatusMacAddress') (cad_equipment,) = mibBuilder.importSymbols('CADANT-PRODUCTS-MIB', 'cadEquipment') (port_id, card_id, cad_if_direction) = mibBuilder.importSymbols('CADANT-TC', 'PortId', 'CardId', 'CadIfDirection') (tenthd_b,) = mibBuilder.importSymbols('DOCS-IF-MIB', 'TenthdB') (if_direction,) = mibBuilder.importSymbols('DOCS-QOS3-MIB', 'IfDirection') (docs_submgt3_filter_grp_entry,) = mibBuilder.importSymbols('DOCS-SUBMGT3-MIB', 'docsSubmgt3FilterGrpEntry') (interface_index, if_index) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex', 'ifIndex') (pktc_e_sc_tap_stream_index, pktc_e_sc_tap_mediation_content_id) = mibBuilder.importSymbols('PKTC-ES-TAP-MIB', 'pktcEScTapStreamIndex', 'pktcEScTapMediationContentId') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter32, object_identity, gauge32, notification_type, counter64, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, mib_identifier, time_ticks, unsigned32, iso, integer32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'ObjectIdentity', 'Gauge32', 'NotificationType', 'Counter64', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'MibIdentifier', 'TimeTicks', 'Unsigned32', 'iso', 'Integer32', 'IpAddress') (mac_address, time_stamp, textual_convention, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'TimeStamp', 'TextualConvention', 'DisplayString', 'TruthValue') cad_hardware_meas_mib = module_identity((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2)) cadHardwareMeasMib.setRevisions(('2015-08-27 00:00', '2015-07-13 00:00', '2015-06-03 00:00', '2014-10-14 00:00', '2014-06-13 00:00', '2014-06-04 00:00', '2013-11-22 00:00', '2012-10-30 00:00', '2012-05-09 00:00', '2011-08-31 00:00', '2011-06-29 00:00', '2011-02-28 00:00', '2011-02-24 00:00', '2011-02-18 00:00', '2010-11-22 00:00', '2010-03-09 00:00', '2008-11-24 00:00', '2008-11-21 00:00', '2008-11-05 00:00', '2008-04-24 00:00', '2006-09-14 00:00', '2006-04-14 00:00', '2005-07-13 00:00', '2004-12-10 00:00', '2004-08-31 00:00', '2004-04-09 00:00', '2004-03-09 00:00', '2004-02-23 00:00', '2004-02-18 00:00', '2004-02-15 00:00', '2004-01-24 00:00', '2003-12-18 00:00', '2003-12-10 00:00', '2003-09-19 00:00', '2003-08-26 00:00', '2003-07-30 00:00', '2002-05-06 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: cadHardwareMeasMib.setRevisionsDescriptions(('Add cadantDPortMeasOfdmChanUtilization', 'Add cadInterfaceHighResUtilizationPercentage and cadInterfaceIntervalOctetsForwarded', 'Add cadantDPortMeasDfdmIfSpeed, cadantDPortMeasOfdmHighestAvgBitsPerSubc, and cadantDPortMeasOfdmNumDataSubc', 'Support 384 downstream channels per DCAM-B', 'Add back in cadFftUpstreamChannelTable', 'Add cadDCardIgmpThrottleDropPkts.', 'Remove cadFftUpstreamChannelTable', 'Add cadLaesCountTable', 'Remove cadHWCmUsMeasTable', 'Remove cadantUPortMeasMapFrms', 'Remove cadSFIDMeasEntry', 'Deprecate cadSFIDMeasEntry and add the following MIB objects to cadantUFIDMeasEntry cadantUFIDMeasCcfStatsSgmtValids, cadantUFIDMeasCcfStatsSgmtLost and cadantUFIDMeasCcfStatsSgmtDrop.', 'Remove cadSFIDToSIDEntry', 'Add cadantUFIDMeasSIDMacIfIndex and cadantUFIDMeasSIDBonded to cadantUFIDMeasEntry', 'Change indices of cadDFIDMeasEntry as ifIndex and SFID. Change indices of cadantUFIDMeasEntry as ifIndex and SID', 'Add cadDCardDhcpV6ThrottleDropPkts and cadDCardNdThrottleDropPkts.', 'Add cadHWCmUsMeasEntry', 'Restructure cadantHWUFIDMeasEntry, rename cadantUFIDMeasUFID to cadantUFIDMeasSID, and Add cadantHWMeasUFIDIndex', 'Restructure cadSFIDMeasEntry to support docsQosServiceFlowCcfStatsEntry', 'Use ifindex as key for sfid to sid lookup.', 'Remove fabric tables and add CPWRED tables to match implementation.', 'Added implementation per utilization interval for cadInterfaceUtilizationAvgContSlots.', 'Added cadDFIDMeasPolicedDelayPkts for Traffic Shaping feature.', 'Extended cadSubMgtPktFilterExtTable to allow for packet capturing.', 'Added cadSubMgtPktFilterExtTable to reset docsSubMgtPktFilterMatches.', 'Added cadFftUpstreamChannelTable for FFT counts.', 'Added cadInterfaceUtilizationTable', 'Added support for per-SID HCS and CRC errors.', 'Added cadantDPortMeasIfOutTotalOctets', 'Added support for per UFID microreflection/signalnoise.', 'Added cadantDPortMeasAppMcastPkts', 'Added 10 BCM3214 counts to the cadantUPortMeasTable', ' add more arp throttle counts. ', ' add more receive error counts to cadantEtherPhyMeasTable', ' add error drop and filter drop counts to UPortMeas table', ' Add support for DHCP packets dropped due to throttling. ', ' change cadantUFIDMeasBytsSGreedyDrop to cadantUFIDMeasPktsSGreedyDrop.')) if mibBuilder.loadTexts: cadHardwareMeasMib.setLastUpdated('201508270000Z') if mibBuilder.loadTexts: cadHardwareMeasMib.setOrganization('Arris International, Inc.') if mibBuilder.loadTexts: cadHardwareMeasMib.setContactInfo('Arris Technical Support E-Mail: support@arrisi.com') if mibBuilder.loadTexts: cadHardwareMeasMib.setDescription('This Mib Module contains all of the counts that are associated with hardware in the ARRIS C4 CMTS. Many of these MIB variables contain the same counts as found in the standard MIBs. However, the grouping of these variables is done for the convenience of the Cadant engineering team. These tables can be used to build value-added interfaces to the Cadant ARRIS C4 CMTS. ') class Dfidindex(TextualConvention, Unsigned32): description = "The 1's-based SFID" status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1, 4294967295) class Pktclassid(TextualConvention, Integer32): description = 'Index assigned to packet classifier entry by the CMTS which is unique per service flow.' status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 65535) class Sfidindex(TextualConvention, Integer32): description = "The 1's-based SFID" status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 2147483647) class Ufidindex(TextualConvention, Integer32): description = "The 1's-based UFID" status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 32768) class Sidvalue(TextualConvention, Integer32): description = "The 1's-based SID. 0 is used when there is no SID, such as for downstream flows." status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 16384) class Tmside(TextualConvention, Integer32): description = 'The Traffic Manager side no SID, such as for downstream flows.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('tma', 1), ('tmb', 2)) cadant_hw_meas_general = mib_identifier((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1)) cadant_fab_actual_depth = mib_scalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantFabActualDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabActualDepth.setDescription(' The current depth of the fabric.') cadant_fab_avg_depth = mib_scalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantFabAvgDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabAvgDepth.setDescription(' The average depth of the fabric.') cadant_u_port_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3)) if mibBuilder.loadTexts: cadantUPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasTable.setDescription(' This table contains information relevant to D Card upstream channels.') cadant_u_port_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadantUPortMeasCardId'), (0, 'CADANT-HW-MEAS-MIB', 'cadantUPortMeasPortId')) if mibBuilder.loadTexts: cadantUPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasEntry.setDescription(' ') cadant_u_port_meas_card_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 1), card_id()) if mibBuilder.loadTexts: cadantUPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasCardId.setDescription('') cadant_u_port_meas_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 2), port_id()) if mibBuilder.loadTexts: cadantUPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasPortId.setDescription('') cadant_u_port_meas_ucast_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadant_u_port_meas_mcast_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadant_u_port_meas_bcast_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadant_u_port_meas_ucast_data_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadant_u_port_meas_mcast_data_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadant_u_port_meas_bcast_data_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadant_u_port_meas_discard_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setDescription(' The aggregrate number of frames received on this U channel that were dropped for reasons other than ErrorFrms or FilterFrms.') cadant_u_port_meas_if_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setDescription(' The aggregrate number of octets received on this U channel. This includes MAC packets and the length of the MAC header.') cadant_u_port_meas_if_in_data_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setDescription(' The aggregrate number of octets received on this U channel. This does not include MAC packets or the length of the MAC header.') cadant_u_port_meas_if_in_unknown_protos = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setDescription(' Aggregrate number of MAC frames with unknown protocol. This count is neither mutually exclusive with cadantUPortMeasErroredFrms nor cadantUPortMeasErroredFrms.') cadant_u_port_meas_app_minus_bw_req_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setDescription(' The number of (unicast) frames received by the software application which are not bandwidth request frames. ') cadant_u_port_meas_errored_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setDescription(' The aggregrate number of packets received on this U channel that were received in error and dropped. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasFilteredFrms.') cadant_u_port_meas_filtered_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setDescription(' The aggregrate number of packets received on this U channel that were dropped due to a filter rule match and discard. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasErroredFrms.') cadant_u_port_meas_bcast_req_opps = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setDescription('Broadcast contention request opportunity count') cadant_u_port_meas_bcast_req_colls = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setDescription('Broadcast contention request opportunities with possible collisions count') cadant_u_port_meas_bcast_req_no_energies = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setDescription('Broadcast contention request opportunities with no energy condition detected') cadant_u_port_meas_bcast_req_rx_pwr1s = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setDescription('Broadcast contention request opportunities with received power level between power threshold 2 and power threshold 1') cadant_u_port_meas_bcast_req_rx_pwr2s = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setDescription('Broadcast contention request opportunities with received power level greater than power threshold 2') cadant_u_port_meas_init_maint_opps = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setDescription('Initial maintenance opportunities') cadant_u_port_meas_init_maint_colls = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setDescription('Initial maintenance opportunities with possible collision') cadant_u_port_meas_init_maint_no_energies = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setDescription('Initial maintenance opportunities with no energy detected') cadant_u_port_meas_init_maint_rx_pwr1s = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setDescription('Initial maintenance opportunities with received power level between power threshold 2 and power threshold 1') cadant_u_port_meas_init_maint_rx_pwr2s = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setDescription('Initial maintenance opportunities with received power level greater than power threshold 2') cadant_d_port_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4)) if mibBuilder.loadTexts: cadantDPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasTable.setDescription(' This table contains information relevant to D Card downstream channels.') cadant_d_port_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadantDPortMeasCardId'), (0, 'CADANT-HW-MEAS-MIB', 'cadantDPortMeasPortId')) if mibBuilder.loadTexts: cadantDPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasEntry.setDescription(' ') cadant_d_port_meas_card_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 1), card_id()) if mibBuilder.loadTexts: cadantDPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasCardId.setDescription('') cadant_d_port_meas_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 2), port_id()) if mibBuilder.loadTexts: cadantDPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasPortId.setDescription('') cadant_d_port_meas_if_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This includes MAC mgmt messages and the length of the MAC header.') cadant_d_port_meas_if_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This includes MAC mgmt messages.') cadant_d_port_meas_if_out_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This includes MAC mgmt messages.') cadant_d_port_meas_if_out_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This includes MAC mgmt messages.') cadant_d_port_meas_if_out_data_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This does not include MAC mgmt bytes.') cadant_d_port_meas_if_out_ucast_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadant_d_port_meas_if_out_mcast_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadant_d_port_meas_if_out_bcast_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This does not include MAC mgmt messages.') cadant_d_port_meas_got_no_dma_cs = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setDescription(' Aggregrate number of ???') cadant_d_port_meas_got_no_classes = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setDescription(' Aggregrate number of ???.') cadant_d_port_meas_sync_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setDescription(' Aggregrate number of sync. frames sent on this D channel.') cadant_d_port_meas_app_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setDescription(' Aggregrate number of unicast DOCSIS Mac mgmt messages sent by application software. ') cadant_d_port_meas_app_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setDescription(' Aggregrate number of multicast DOCSIS Mac mgmt messages sent by application software. ') cadant_d_port_meas_if_out_total_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setDescription(' Aggregrate number of octets sent by application software. ') cadant_d_port_meas_ofdm_if_speed = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 17), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setDescription('Downstream OFDM channel interface speed.') cadant_d_port_meas_ofdm_highest_avg_bits_per_subc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 18), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setDescription('Highest average bits per subcarrier among all the data profiles of the downstream OFDM channel.') cadant_d_port_meas_ofdm_num_data_subc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 19), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setDescription('The number of data subcarrier of the downstream OFDM channel.') cadant_d_port_meas_ofdm_chan_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setDescription('The utilization of the downstream OFDM channel.') cadant_ufid_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6)) if mibBuilder.loadTexts: cadantUFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasTable.setDescription(' ') cadant_ufid_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CADANT-HW-MEAS-MIB', 'cadantUFIDMeasSID')) if mibBuilder.loadTexts: cadantUFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasEntry.setDescription(' ') cadant_ufid_meas_sid = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 3), sid_value()) if mibBuilder.loadTexts: cadantUFIDMeasSID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSID.setDescription(' The 14 bit (SID).') cadant_ufid_meas_pkts_s_greedy_drop = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setDescription(' The aggregrate number of Super Greedy pkts dropped for this UFID for this MAC layer.') cadant_ufid_meas_byts_other_drop = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setDescription(' The aggregrate number of bytes dropped for this UFID for this MAC layer for any other reason than Super Greedy.') cadant_ufid_meas_byts_arrived = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes that arrived for this UFID for this MAC layer.') cadant_ufid_meas_pkts_arrived = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setDescription(' The aggregrate number of packets that arrived for this UFID for this MAC layer.') cadant_ufid_meas_sid_correcteds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were corrected for this UFID for this MAC layer.') cadant_ufid_meas_sid_unerroreds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setDescription(' The aggregrate number of bytes that had no errors for this UFID for this MAC layer.') cadant_ufid_meas_sid_un_correcteds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were not corrected for this UFID for this MAC layer.') cadant_ufid_meas_sid_no_unique_word_detecteds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID in which no unique code word was detected for this UFID for this MAC layer.') cadant_ufid_meas_sid_collided_bursts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setDescription(' The aggregrate number of bytes allocated for this UFID that had burst errors in their slots for this UFID for this MAC layer.') cadant_ufid_meas_sid_no_energy_detecteds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID that had no energy detected in their slots for this UFID for this MAC layer.') cadant_ufid_meas_sid_length_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had no length errors in their slots for this UFID for this MAC layer.') cadant_ufid_meas_sidmac_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had MAC errors in their slots for this UFID for this MAC layer.') cadant_ufid_meas_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 17), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cadant_ufid_meas_scn = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 18), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cadant_ufid_meas_sfid = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 19), sfid_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSFID.setDescription(' The SFID this UFID(SID) is for.') cadant_ufid_meas_phs_unknowns = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cadant_ufid_meas_frag_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setDescription('refer to docsQosUpstreamFragPkts') cadant_ufid_meas_incomplete_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setDescription('refer to docsQosUpstreamIncompletePkts') cadant_ufid_meas_concat_bursts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setDescription('refer to docsQosUpstreamConcatBursts') cadant_ufid_meas_sid_signal_noise = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 24), tenthd_b()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setDescription('refer to docsIfCmtsCmStatusSignalNoise') cadant_ufid_meas_sid_microreflections = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 25), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setDescription('refer to docsIfCmtsCmStatusMicroreflections') cadant_ufid_meas_sidhcs_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setDescription('The number of MAC HCS errors seen for this SID.') cadant_ufid_meas_sidcrc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setDescription('The number of MAC CRC errors seen for this SID.') cadant_ufid_meas_ufid_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 28), ufid_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setDescription(' The 15 bit (UFID).') cadant_ufid_meas_gate_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 29), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cadant_ufid_meas_sid_mac_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 30), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setDescription(' The cable Mac domain ifIndex the SID is associated with.') cadant_ufid_meas_sid_bonded = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 31), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setDescription(' This object indicates whether a SID is associated with a CCF service flow.') cadant_ufid_meas_ccf_stats_sgmt_valids = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 32), counter32()).setUnits('segments').setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setDescription('This attribute contains the number of segments counted on this service flow regardless of whether the fragment was correctly reassembled into valid packets. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadant_ufid_meas_ccf_stats_sgmt_lost = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 33), counter32()).setUnits('segments').setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were lost. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadant_ufid_meas_ccf_stats_sgmt_drop = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 34), counter32()).setUnits('segments').setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were dropped. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadant_ether_phy_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10)) if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setDescription(' ') cadant_ether_phy_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadantEtherPhyMeasCardId'), (0, 'CADANT-HW-MEAS-MIB', 'cadantEtherPhyMeasPortId')) if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setDescription(' ') cadant_ether_phy_meas_card_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 1), card_id()) if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setDescription('') cadant_ether_phy_meas_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 2), port_id()) if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setDescription('') cadant_ether_phy_meas_rx_oct_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setDescription(' .') cadant_ether_phy_meas_rx_uni_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setDescription(' .') cadant_ether_phy_meas_rx_multi_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setDescription(' .') cadant_ether_phy_meas_rx_broad_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setDescription(' .') cadant_ether_phy_meas_rx_overflow = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setDescription(' .') cadant_ether_phy_meas_rx_norm_align = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setDescription(' .') cadant_ether_phy_meas_rx_norm_crc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setDescription(' .') cadant_ether_phy_meas_rx_long_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setDescription(' .') cadant_ether_phy_meas_rx_long_crc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setDescription(' .') cadant_ether_phy_meas_rx_fals_crs = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setDescription(' .') cadant_ether_phy_meas_rx_symbol_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setDescription(' .') cadant_ether_phy_meas_rx_pause = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setDescription(' .') cadant_ether_phy_meas_tx_oct_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setDescription(' .') cadant_ether_phy_meas_tx_uni_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setDescription(' .') cadant_ether_phy_meas_tx_multi_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setDescription(' .') cadant_ether_phy_meas_tx_broad_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setDescription(' .') cadant_ether_phy_meas_tx_scol = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setDescription(' .') cadant_ether_phy_meas_tx_mcol = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setDescription(' .') cadant_ether_phy_meas_tx_deferred = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setDescription(' .') cadant_ether_phy_meas_tx_lcol = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setDescription(' .') cadant_ether_phy_meas_tx_ccol = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setDescription(' .') cadant_ether_phy_meas_tx_err = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setDescription(' .') cadant_ether_phy_meas_tx_pause = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setDescription(' .') cadant_ether_phy_meas_rx_short_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setDescription(' .') cadant_ether_phy_meas_rx_short_crc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setDescription(' .') cadant_ether_phy_meas_rx_runt = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setDescription(' .') cadant_ether_phy_meas_rx_oct_bad = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 29), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setDescription(' .') cad_dfid_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14)) if mibBuilder.loadTexts: cadDFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasTable.setDescription('This table contains DFID-specific counts.') cad_dfid_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CADANT-HW-MEAS-MIB', 'cadDFIDMeasIndex')) if mibBuilder.loadTexts: cadDFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasEntry.setDescription(' ') cad_dfid_meas_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 3), sfid_index()) if mibBuilder.loadTexts: cadDFIDMeasIndex.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasIndex.setDescription(' The SFID these DFID counts are for.') cad_dfid_meas_byts_arrived = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes arriving to go out, but not necessarily transmitted.') cad_dfid_meas_pkts_arrived = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setDescription(' The aggregrate number of packets arriving to go out, but not necessarily transmitted.') cad_dfid_meas_byts_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setDescription(' The aggregrate number of bytes dropped.') cad_dfid_meas_pkts_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setDescription(' The aggregrate number of packets dropped.') cad_dfid_meas_byts_unk_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setDescription(' The aggregrate number of bytes dropped due to unknown DMAC.') cad_dfid_meas_dfid = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 9), dfid_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasDFID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasDFID.setDescription(' The DFID.') cad_dfid_meas_phs_unknowns = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cad_dfid_meas_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 11), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cad_dfid_meas_scn = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 12), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cad_dfid_meas_policed_delay_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setDescription('refer to docsQosServiceFlowPolicedDelayPkts') cad_dfid_meas_gate_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 14), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cad_qos_pkt_class_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16)) if mibBuilder.loadTexts: cadQosPktClassMeasTable.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasTable.setDescription(' This table contains just one data member: cadQosPktClassMeasPkts, which is equivalent to docsQosPktClassPkts in qos-draft-04.') cad_qos_pkt_class_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadQosPktClassMeasIfIndex'), (0, 'CADANT-HW-MEAS-MIB', 'cadQosPktClassMeasSFID'), (0, 'CADANT-HW-MEAS-MIB', 'cadQosPktClassMeasPktClassId')) if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setDescription(' ') cad_qos_pkt_class_meas_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 1), interface_index()) if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setDescription(' The ifIndex of ifType 127 for this classifier.') cad_qos_pkt_class_meas_sfid = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 2), sfid_index()) if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setDescription(' The Service Flow ID this classifier is for.') cad_qos_pkt_class_meas_pkt_class_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 3), pkt_class_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setDescription(' The ID of this classifier, which only need be unique for a given Service Flow ID.') cad_qos_pkt_class_meas_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setDescription(' The number of packets that have been classified using this classifier on this flow.') cad_if_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18)) if mibBuilder.loadTexts: cadIfMeasTable.setStatus('current') if mibBuilder.loadTexts: cadIfMeasTable.setDescription(' This table is designed to concurrently support the counters defined in the ifTable and the ifXTable. Every row that appears in this table should have a corresponding row in both the ifTable and the ifXTable. However, not every row in the ifTable and ifXTable will appear in this table.') cad_if_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cadIfMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadIfMeasEntry.setDescription('') cad_if_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadIfInOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfInDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInErrors.setStatus('current') if mibBuilder.loadTexts: cadIfInErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_unknown_protos = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadIfInUnknownProtos.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadIfOutOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_discards = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfOutDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutErrors.setStatus('current') if mibBuilder.loadTexts: cadIfOutErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_d_card_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20)) if mibBuilder.loadTexts: cadDCardMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasTable.setDescription(' This table contains information relevant to D Card counts.') cad_d_card_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadDCardMeasCardId')) if mibBuilder.loadTexts: cadDCardMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasEntry.setDescription(' ') cad_d_card_meas_card_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 1), card_id()) if mibBuilder.loadTexts: cadDCardMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasCardId.setDescription('') cad_d_card_ip_in_receives = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardIpInReceives.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInReceives.setDescription('The contribution to ipInRecevies for this particular D Card.') cad_d_card_ip_in_hdr_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setDescription('The contribution to ipInHdrErrors for this particular D Card.') cad_d_card_ip_in_addr_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setDescription('The contribution to ipInAddrErrors for this particular D Card.') cad_d_card_dhcp_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setDescription('The number of dropped DHCP requests for this D Card.') cad_d_card_arp_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setDescription('The number of dropped ARP requests for this D Card.') cad_d_card_dhcp_v6_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setDescription('The number of dropped IPV6 DHCP requests for this D Card.') cad_d_card_nd_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setDescription('The number of dropped IPV6 ND requests for this D Card.') cad_d_card_igmp_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setDescription('The number of dropped IGMP messages for this UCAM.') cad_interface_utilization_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23)) if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setDescription('Reports utilization statistics for attached interfaces.') cad_interface_utilization_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CADANT-HW-MEAS-MIB', 'cadInterfaceUtilizationDirection')) if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setDescription('Utilization statistics for a single interface. An entry exists in this table for each ifEntry with an ifType equal to docsCableDownstreamInterface (128), docsCableUpstreamInterface (129), docsCableUpstreamChannel (205), ethernet(6), or gigabitEthernet(117).') cad_interface_utilization_direction = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 1), cad_if_direction()) if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setDescription("The direction of flow this utilization is for. Cable upstream interfaces will only have a value of 'in' for this object. Likewise, cable downstream interfaces will only hav a value of 'out' for this object. Full-duplex interfaces, such as fastEthernet and gigabitEthernet interfaces, will have both 'in' and 'out' rows.") cad_interface_utilization_percentage = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate as of the most recent docsIfCmtsChannelUtilizationInterval.') cad_interface_utilization_avg_cont_slots = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setDescription('Applicable for ifType of docsCableUpstreamChannel (205) only. The average percentage of contention mini-slots for upstream channel. This ratio is calculated the most recent utilization interval. Formula: Upstream contention mini-slots utilization = (100 * ((contention mini-slots ) / (total mini-slots))') cad_interface_high_res_utilization_percentage = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000))).setUnits('Hundredth of a percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate (to 0.01% resolution) as of the most recent docsIfCmtsChannelUtilizationInterval.') cad_interface_interval_octets_forwarded = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setStatus('current') if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setDescription('The number of octets forwarded since the most recent docsIfCmtsChannelUtilizationInterval. Note that this count will only apply to the following interface types: Ethernet, Link-Aggregate. For all other interface types this value will display 0') cad_sub_mgt_pkt_filter_ext_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25)) if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setDescription('This table augments the docsSubMgtPktFilterTable. In its current form, it is used to clear docsSubMgtPktFilterMatches and keep track of the change.') cad_sub_mgt_pkt_filter_ext_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1)) docsSubmgt3FilterGrpEntry.registerAugmentions(('CADANT-HW-MEAS-MIB', 'cadSubMgtPktFilterExtEntry')) cadSubMgtPktFilterExtEntry.setIndexNames(*docsSubmgt3FilterGrpEntry.getIndexNames()) if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setDescription('For every docsSubmgt3FilterGrpEntry, there is a matching cadSubMgtPktFilterExtEntry.') cad_sub_mgt_pkt_filter_matches_reset = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setDescription('This object always return false(2) when read. If the value false(2) is assigned to this object, no action is taken. However, if this object it set to the value true(1), the corresponding docsSubMgtPktFilterMatches counter object is set to 0 and cadSubMgtPktFilterLastChanged is set to the current time.') cad_sub_mgt_pkt_filter_last_changed = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 2), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setDescription('The time at which docsSubMgtPktFilterMatches might have experienced a discontinuity, such as when cadSubMgtPktFilterMatchesReset is set to true(1) or when any of the parameters in the docsSubMgtPktFilterTable affecting filtering last changed.') cad_sub_mgt_pkt_filter_capture_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setDescription('Indicates whether packets matching this filter are captured for possible debug logging. A value of true indicates that packets matching this filter will be captured. A value of false indicates that packets matching this filter will not be captured for later debuggging.') cad_laes_count_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26)) if mibBuilder.loadTexts: cadLaesCountTable.setStatus('current') if mibBuilder.loadTexts: cadLaesCountTable.setDescription('This table references pktcEScTapStreamTable') cad_laes_count_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1)).setIndexNames((0, 'PKTC-ES-TAP-MIB', 'pktcEScTapMediationContentId'), (0, 'PKTC-ES-TAP-MIB', 'pktcEScTapStreamIndex')) if mibBuilder.loadTexts: cadLaesCountEntry.setStatus('current') if mibBuilder.loadTexts: cadLaesCountEntry.setDescription('For every cadLaesCountEntry, there is a matching pktcEScTapStreamEntry.') cad_laes_count_mac_domain_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setStatus('current') if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setDescription('This object indicates the cable Mac domain interface index that the LAES stream is associated with.') cad_laes_count_stream_direction = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 2), if_direction()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadLaesCountStreamDirection.setStatus('current') if mibBuilder.loadTexts: cadLaesCountStreamDirection.setDescription('This object indicates either downstream or upstream direction that the LAES stream is associated with.') cad_laes_count_intercepted_packets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setDescription('Indicates number of intercepted packets are sent of the LAES stream.') cad_laes_count_intercept_drops = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setDescription('Indicates number of intercepted packets are dropped of the LAES stream.') cad_fft_upstream_channel_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24)) if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setDescription('Reports current FFT operation status.') cad_fft_upstream_channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setDescription('FFT status for a single upstream channel with ifType docsCableUpstreamInterface(129).') cad_fft_in_progress = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 1), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadFftInProgress.setStatus('current') if mibBuilder.loadTexts: cadFftInProgress.setDescription('The current state on the FFT capture. ') cad_fft_current_triggers = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadFftCurrentTriggers.setStatus('current') if mibBuilder.loadTexts: cadFftCurrentTriggers.setDescription('The number of times the FFT capture has triggered and transferred data from the Broadcom device.') mibBuilder.exportSymbols('CADANT-HW-MEAS-MIB', cadDFIDMeasBytsUnkDropped=cadDFIDMeasBytsUnkDropped, cadantDPortMeasIfOutUcastDataPkts=cadantDPortMeasIfOutUcastDataPkts, cadInterfaceUtilizationDirection=cadInterfaceUtilizationDirection, cadDCardIpInReceives=cadDCardIpInReceives, cadLaesCountStreamDirection=cadLaesCountStreamDirection, cadInterfaceUtilizationPercentage=cadInterfaceUtilizationPercentage, cadantUPortMeasInitMaintNoEnergies=cadantUPortMeasInitMaintNoEnergies, cadantUPortMeasErroredFrms=cadantUPortMeasErroredFrms, cadantEtherPhyMeasRxNormCRC=cadantEtherPhyMeasRxNormCRC, cadantEtherPhyMeasRxLongOK=cadantEtherPhyMeasRxLongOK, cadDCardIpInAddrErrors=cadDCardIpInAddrErrors, cadSubMgtPktFilterCaptureEnabled=cadSubMgtPktFilterCaptureEnabled, cadSubMgtPktFilterExtTable=cadSubMgtPktFilterExtTable, cadantUPortMeasUcastDataFrms=cadantUPortMeasUcastDataFrms, cadantUPortMeasBcastReqColls=cadantUPortMeasBcastReqColls, cadantUFIDMeasSIDCollidedBursts=cadantUFIDMeasSIDCollidedBursts, cadIfInUcastPkts=cadIfInUcastPkts, cadantEtherPhyMeasCardId=cadantEtherPhyMeasCardId, cadIfOutUcastPkts=cadIfOutUcastPkts, cadantDPortMeasIfOutMcastPkts=cadantDPortMeasIfOutMcastPkts, SFIDIndex=SFIDIndex, cadDFIDMeasBytsDropped=cadDFIDMeasBytsDropped, cadIfOutErrors=cadIfOutErrors, cadantUFIDMeasSIDNoEnergyDetecteds=cadantUFIDMeasSIDNoEnergyDetecteds, cadantEtherPhyMeasRxMultiOK=cadantEtherPhyMeasRxMultiOK, cadDCardDhcpThrottleDropPkts=cadDCardDhcpThrottleDropPkts, cadantUFIDMeasPktsSGreedyDrop=cadantUFIDMeasPktsSGreedyDrop, cadantEtherPhyMeasRxShortOK=cadantEtherPhyMeasRxShortOK, cadIfInUnknownProtos=cadIfInUnknownProtos, cadantUPortMeasMcastFrms=cadantUPortMeasMcastFrms, cadantUPortMeasBcastDataFrms=cadantUPortMeasBcastDataFrms, cadLaesCountEntry=cadLaesCountEntry, PYSNMP_MODULE_ID=cadHardwareMeasMib, cadantDPortMeasAppMcastPkts=cadantDPortMeasAppMcastPkts, cadantUFIDMeasUFIDIndex=cadantUFIDMeasUFIDIndex, cadantUFIDMeasSIDMacIfIndex=cadantUFIDMeasSIDMacIfIndex, cadQosPktClassMeasSFID=cadQosPktClassMeasSFID, cadantDPortMeasIfOutBcastPkts=cadantDPortMeasIfOutBcastPkts, cadInterfaceUtilizationTable=cadInterfaceUtilizationTable, cadDCardMeasTable=cadDCardMeasTable, cadantUPortMeasEntry=cadantUPortMeasEntry, cadantDPortMeasIfOutOctets=cadantDPortMeasIfOutOctets, cadDFIDMeasPktsArrived=cadDFIDMeasPktsArrived, cadantUPortMeasIfInUnknownProtos=cadantUPortMeasIfInUnknownProtos, cadantUPortMeasBcastReqOpps=cadantUPortMeasBcastReqOpps, cadDFIDMeasGateID=cadDFIDMeasGateID, cadantEtherPhyMeasRxUniOK=cadantEtherPhyMeasRxUniOK, cadantUFIDMeasSCN=cadantUFIDMeasSCN, cadantEtherPhyMeasRxOverflow=cadantEtherPhyMeasRxOverflow, cadantDPortMeasIfOutUcastPkts=cadantDPortMeasIfOutUcastPkts, cadantDPortMeasGotNoDMACs=cadantDPortMeasGotNoDMACs, cadDFIDMeasMacAddress=cadDFIDMeasMacAddress, cadantUFIDMeasBytsOtherDrop=cadantUFIDMeasBytsOtherDrop, cadantUFIDMeasSID=cadantUFIDMeasSID, cadIfOutOctets=cadIfOutOctets, cadantEtherPhyMeasRxRunt=cadantEtherPhyMeasRxRunt, cadantUFIDMeasCcfStatsSgmtValids=cadantUFIDMeasCcfStatsSgmtValids, cadantUPortMeasInitMaintRxPwr2s=cadantUPortMeasInitMaintRxPwr2s, TMSide=TMSide, cadDFIDMeasPHSUnknowns=cadDFIDMeasPHSUnknowns, cadantEtherPhyMeasTxUniOK=cadantEtherPhyMeasTxUniOK, cadantEtherPhyMeasRxOctBad=cadantEtherPhyMeasRxOctBad, cadDFIDMeasDFID=cadDFIDMeasDFID, cadantHWMeasGeneral=cadantHWMeasGeneral, cadQosPktClassMeasPkts=cadQosPktClassMeasPkts, cadDCardIpInHdrErrors=cadDCardIpInHdrErrors, cadFftCurrentTriggers=cadFftCurrentTriggers, cadantEtherPhyMeasRxBroadOK=cadantEtherPhyMeasRxBroadOK, cadDCardIgmpThrottleDropPkts=cadDCardIgmpThrottleDropPkts, cadSubMgtPktFilterMatchesReset=cadSubMgtPktFilterMatchesReset, cadDCardMeasCardId=cadDCardMeasCardId, cadantUFIDMeasEntry=cadantUFIDMeasEntry, cadIfMeasEntry=cadIfMeasEntry, cadDFIDMeasBytsArrived=cadDFIDMeasBytsArrived, cadantUFIDMeasSIDUnerroreds=cadantUFIDMeasSIDUnerroreds, cadIfInDiscards=cadIfInDiscards, cadIfInMulticastPkts=cadIfInMulticastPkts, cadIfOutDiscards=cadIfOutDiscards, cadantUFIDMeasPHSUnknowns=cadantUFIDMeasPHSUnknowns, cadantEtherPhyMeasTxScol=cadantEtherPhyMeasTxScol, cadDCardDhcpV6ThrottleDropPkts=cadDCardDhcpV6ThrottleDropPkts, cadantDPortMeasOfdmIfSpeed=cadantDPortMeasOfdmIfSpeed, DFIDIndex=DFIDIndex, cadInterfaceUtilizationAvgContSlots=cadInterfaceUtilizationAvgContSlots, cadantEtherPhyMeasTxCcol=cadantEtherPhyMeasTxCcol, PktClassId=PktClassId, cadantUPortMeasDiscardFrms=cadantUPortMeasDiscardFrms, cadDCardMeasEntry=cadDCardMeasEntry, cadantEtherPhyMeasTxLcol=cadantEtherPhyMeasTxLcol, cadantUPortMeasBcastReqNoEnergies=cadantUPortMeasBcastReqNoEnergies, cadantUFIDMeasMacAddress=cadantUFIDMeasMacAddress, cadDCardArpThrottleDropPkts=cadDCardArpThrottleDropPkts, cadIfOutMulticastPkts=cadIfOutMulticastPkts, cadInterfaceIntervalOctetsForwarded=cadInterfaceIntervalOctetsForwarded, cadQosPktClassMeasTable=cadQosPktClassMeasTable, cadQosPktClassMeasEntry=cadQosPktClassMeasEntry, cadantUFIDMeasSIDLengthErrors=cadantUFIDMeasSIDLengthErrors, cadantFabActualDepth=cadantFabActualDepth, cadantUFIDMeasCcfStatsSgmtLost=cadantUFIDMeasCcfStatsSgmtLost, cadDFIDMeasPolicedDelayPkts=cadDFIDMeasPolicedDelayPkts, cadantDPortMeasOfdmChanUtilization=cadantDPortMeasOfdmChanUtilization, cadantUFIDMeasSIDUnCorrecteds=cadantUFIDMeasSIDUnCorrecteds, cadDCardNdThrottleDropPkts=cadDCardNdThrottleDropPkts, cadInterfaceUtilizationEntry=cadInterfaceUtilizationEntry, cadantUPortMeasUcastFrms=cadantUPortMeasUcastFrms, cadantDPortMeasPortId=cadantDPortMeasPortId, cadantUFIDMeasFragPkts=cadantUFIDMeasFragPkts, cadantFabAvgDepth=cadantFabAvgDepth, cadLaesCountInterceptedPackets=cadLaesCountInterceptedPackets, cadantDPortMeasSyncPkts=cadantDPortMeasSyncPkts, cadIfInOctets=cadIfInOctets, cadIfOutBroadcastPkts=cadIfOutBroadcastPkts, cadantUPortMeasTable=cadantUPortMeasTable, cadantEtherPhyMeasRxFalsCRS=cadantEtherPhyMeasRxFalsCRS, cadantEtherPhyMeasRxOctOK=cadantEtherPhyMeasRxOctOK, cadInterfaceHighResUtilizationPercentage=cadInterfaceHighResUtilizationPercentage, cadIfInBroadcastPkts=cadIfInBroadcastPkts, cadantEtherPhyMeasTable=cadantEtherPhyMeasTable, cadDFIDMeasEntry=cadDFIDMeasEntry, cadantEtherPhyMeasTxMcol=cadantEtherPhyMeasTxMcol, cadantUFIDMeasConcatBursts=cadantUFIDMeasConcatBursts, cadantEtherPhyMeasRxShortCRC=cadantEtherPhyMeasRxShortCRC, cadHardwareMeasMib=cadHardwareMeasMib, cadantEtherPhyMeasTxBroadOK=cadantEtherPhyMeasTxBroadOK, cadantDPortMeasIfOutBcastDataPkts=cadantDPortMeasIfOutBcastDataPkts, cadantEtherPhyMeasTxDeferred=cadantEtherPhyMeasTxDeferred, cadantDPortMeasGotNoClasses=cadantDPortMeasGotNoClasses, cadSubMgtPktFilterLastChanged=cadSubMgtPktFilterLastChanged, cadantUFIDMeasBytsArrived=cadantUFIDMeasBytsArrived, cadantEtherPhyMeasTxPause=cadantEtherPhyMeasTxPause, cadantUPortMeasCardId=cadantUPortMeasCardId, cadantUFIDMeasSIDCRCErrors=cadantUFIDMeasSIDCRCErrors, cadantUPortMeasIfInDataOctets=cadantUPortMeasIfInDataOctets, cadFftUpstreamChannelTable=cadFftUpstreamChannelTable, cadantUPortMeasInitMaintRxPwr1s=cadantUPortMeasInitMaintRxPwr1s, cadDFIDMeasSCN=cadDFIDMeasSCN, cadantUPortMeasIfInOctets=cadantUPortMeasIfInOctets, cadantUFIDMeasIncompletePkts=cadantUFIDMeasIncompletePkts, cadLaesCountInterceptDrops=cadLaesCountInterceptDrops, cadantDPortMeasIfOutTotalOctets=cadantDPortMeasIfOutTotalOctets, cadQosPktClassMeasPktClassId=cadQosPktClassMeasPktClassId, cadantUFIDMeasSIDSignalNoise=cadantUFIDMeasSIDSignalNoise, cadFftInProgress=cadFftInProgress, cadantUPortMeasBcastReqRxPwr2s=cadantUPortMeasBcastReqRxPwr2s, cadantDPortMeasEntry=cadantDPortMeasEntry, cadantUFIDMeasCcfStatsSgmtDrop=cadantUFIDMeasCcfStatsSgmtDrop, cadantUFIDMeasSIDBonded=cadantUFIDMeasSIDBonded, cadantUPortMeasInitMaintOpps=cadantUPortMeasInitMaintOpps, cadantUPortMeasPortId=cadantUPortMeasPortId, cadantUFIDMeasPktsArrived=cadantUFIDMeasPktsArrived, cadantEtherPhyMeasRxNormAlign=cadantEtherPhyMeasRxNormAlign, cadantUPortMeasAppMinusBWReqFrms=cadantUPortMeasAppMinusBWReqFrms, cadantUFIDMeasTable=cadantUFIDMeasTable, cadIfMeasTable=cadIfMeasTable, cadantEtherPhyMeasTxMultiOK=cadantEtherPhyMeasTxMultiOK, cadIfInErrors=cadIfInErrors, cadantUPortMeasInitMaintColls=cadantUPortMeasInitMaintColls, cadQosPktClassMeasIfIndex=cadQosPktClassMeasIfIndex, cadantEtherPhyMeasPortId=cadantEtherPhyMeasPortId, cadantUFIDMeasSIDMACErrors=cadantUFIDMeasSIDMACErrors, cadantEtherPhyMeasTxOctOK=cadantEtherPhyMeasTxOctOK, cadantDPortMeasCardId=cadantDPortMeasCardId, cadantDPortMeasOfdmNumDataSubc=cadantDPortMeasOfdmNumDataSubc, cadantEtherPhyMeasEntry=cadantEtherPhyMeasEntry, cadantEtherPhyMeasRxSymbolErrors=cadantEtherPhyMeasRxSymbolErrors, SIDValue=SIDValue, cadantDPortMeasOfdmHighestAvgBitsPerSubc=cadantDPortMeasOfdmHighestAvgBitsPerSubc, cadantEtherPhyMeasRxLongCRC=cadantEtherPhyMeasRxLongCRC, cadLaesCountTable=cadLaesCountTable, cadantUPortMeasFilteredFrms=cadantUPortMeasFilteredFrms, cadDFIDMeasPktsDropped=cadDFIDMeasPktsDropped, cadantUPortMeasBcastReqRxPwr1s=cadantUPortMeasBcastReqRxPwr1s, cadantDPortMeasIfOutDataOctets=cadantDPortMeasIfOutDataOctets, cadantEtherPhyMeasRxPause=cadantEtherPhyMeasRxPause, cadantDPortMeasIfOutMcastDataPkts=cadantDPortMeasIfOutMcastDataPkts, cadantUPortMeasBcastFrms=cadantUPortMeasBcastFrms, cadantUFIDMeasSIDMicroreflections=cadantUFIDMeasSIDMicroreflections, cadantUPortMeasMcastDataFrms=cadantUPortMeasMcastDataFrms, cadDFIDMeasTable=cadDFIDMeasTable, cadantDPortMeasAppUcastPkts=cadantDPortMeasAppUcastPkts, UFIDIndex=UFIDIndex, cadantUFIDMeasSFID=cadantUFIDMeasSFID, cadFftUpstreamChannelEntry=cadFftUpstreamChannelEntry, cadantUFIDMeasSIDNoUniqueWordDetecteds=cadantUFIDMeasSIDNoUniqueWordDetecteds, cadSubMgtPktFilterExtEntry=cadSubMgtPktFilterExtEntry, cadantUFIDMeasSIDHCSErrors=cadantUFIDMeasSIDHCSErrors, cadantUFIDMeasGateID=cadantUFIDMeasGateID, cadDFIDMeasIndex=cadDFIDMeasIndex, cadLaesCountMacDomainIfIndex=cadLaesCountMacDomainIfIndex, cadantDPortMeasTable=cadantDPortMeasTable, cadantUFIDMeasSIDCorrecteds=cadantUFIDMeasSIDCorrecteds, cadantEtherPhyMeasTxErr=cadantEtherPhyMeasTxErr)
class A: def __init__(self, var=0): self.var = var def __str__(self): return "This is class A" a = A() print(a) """ All classes are inherited from object class. > class MyClass: > pass > > print(MyClass.__class__.__bases__) (<class 'object'>,) """ class B: def __new__(cls, *args, **kwargs): """ This will be executing first. It is used to create the object. """ print("__new__ running", cls, args, kwargs) return super(B, cls).__new__(cls) def __init__(self, *args, **kwargs): """ __init__() uses the same object that __new__() returns and initialize it. """ print("__init__ running", self, args, kwargs) return super(B, self).__init__(*args, **kwargs) class MyMetaClass(type): """ Ignore this class for now """ @classmethod def __prepare__(mcs, name, bases, **kwargs): print(f'Meta.__prepare__(mcs={mcs}, name={name}, bases={bases}, {kwargs})') return {} class C(metaclass=MyMetaClass): """ Ignore 'metaclass=' part for now """ var1 = 'variable 1' var2 = 'variable 2' """ When an object of class is created, the following happens due to __prepare__(). obj['var1'] = 'variable 1' obj['var2'] = 'variable 2' """ class SingletonPattern: """ Use case of modifying the __new__() method """ def __new__(cls, *args, **kwargs): if cls._instance is None: # Checking if an instance of this class exists cls._instance = super().__new__(cls, *args, **kwargs) # Creating a new instace return cls._instance # Returing the instance
class A: def __init__(self, var=0): self.var = var def __str__(self): return 'This is class A' a = a() print(a) "\n All classes are inherited from object class. \n > class MyClass:\n > pass\n >\n > print(MyClass.__class__.__bases__)\n (<class 'object'>,)\n" class B: def __new__(cls, *args, **kwargs): """ This will be executing first. It is used to create the object. """ print('__new__ running', cls, args, kwargs) return super(B, cls).__new__(cls) def __init__(self, *args, **kwargs): """ __init__() uses the same object that __new__() returns and initialize it. """ print('__init__ running', self, args, kwargs) return super(B, self).__init__(*args, **kwargs) class Mymetaclass(type): """ Ignore this class for now """ @classmethod def __prepare__(mcs, name, bases, **kwargs): print(f'Meta.__prepare__(mcs={mcs}, name={name}, bases={bases}, {kwargs})') return {} class C(metaclass=MyMetaClass): """ Ignore 'metaclass=' part for now """ var1 = 'variable 1' var2 = 'variable 2' "\n When an object of class is created, the following happens due to __prepare__().\n obj['var1'] = 'variable 1'\n obj['var2'] = 'variable 2'\n" class Singletonpattern: """ Use case of modifying the __new__() method """ def __new__(cls, *args, **kwargs): if cls._instance is None: cls._instance = super().__new__(cls, *args, **kwargs) return cls._instance
YT_API_SERVICE_NAME = 'youtube' DEVELOPER_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" MAX_RESULTS = 50 YT_API_VERSION = 'v3' LINK = 'https://www.youtube.com/watch?v='
yt_api_service_name = 'youtube' developer_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' max_results = 50 yt_api_version = 'v3' link = 'https://www.youtube.com/watch?v='
""" info.py - module to store Info class """ class Info: """ Info - class to store retreived Info from DB """ def __init__(self, ids, texts, name = 'Info'): """ Infor class constructor Inputs: - ids : list of integers Unique ids for info pieces - texts : list of texts Infor texts """ self.ids = ids self.texts = texts self.name = name
""" info.py - module to store Info class """ class Info: """ Info - class to store retreived Info from DB """ def __init__(self, ids, texts, name='Info'): """ Infor class constructor Inputs: - ids : list of integers Unique ids for info pieces - texts : list of texts Infor texts """ self.ids = ids self.texts = texts self.name = name
out_data = b"\x1c\x91\x73\x94\xba\xfb\x3c\x30" + \ b"\x3c\x30\xac\x26\x62\x09\x74\x65" + \ b"\x73\x74\x31\x2e\x74\x78\x74\x5e" + \ b"\xc5\xf7\x32\x4c\x69\x76\x65\x20" + \ b"\x66\x72\x65\x65\x20\x6f\x72\x20" + \ b"\x64\x69\x65\x20\x68\x61\x72\x64" + \ b"\x0d\x0a\xd3\x14\x7c\x2e\x86\x89" + \ b"\x7a\x42\x58\xed\x06\x53\x9f\x15" + \ b"\xcc\xca\x7e\x7b\x37\x28\x5f\x3c"
out_data = b'\x1c\x91s\x94\xba\xfb<0' + b'<0\xac&b\tte' + b'st1.txt^' + b'\xc5\xf72Live ' + b'free or ' + b'die hard' + b'\r\n\xd3\x14|.\x86\x89' + b'zBX\xed\x06S\x9f\x15' + b'\xcc\xca~{7(_<'
class A(): @staticmethod def staticMethod(): print("STATIC method fired!") print("Nothing is bound to me") print("~"*30) @classmethod def classMethod(cls): print("CLASS method fired!") print(str(cls)+" is bound to me") print("~"*30) # normal method def normalMethod(self): print("'normalMethod' fired!") print(str(self)+" is bound to me") print("~"*30) def __init__(self, val): self.val = val a = A(1) a.staticMethod() a.classMethod() a.normalMethod()
class A: @staticmethod def static_method(): print('STATIC method fired!') print('Nothing is bound to me') print('~' * 30) @classmethod def class_method(cls): print('CLASS method fired!') print(str(cls) + ' is bound to me') print('~' * 30) def normal_method(self): print("'normalMethod' fired!") print(str(self) + ' is bound to me') print('~' * 30) def __init__(self, val): self.val = val a = a(1) a.staticMethod() a.classMethod() a.normalMethod()
class Solution: def removeDuplicates(self, S: str) -> str: def process(S): lst = [] for key, g in itertools.groupby(S): n = len(list(g)) if n % 2: lst.append(key) return lst S_lst = list(S) while True: new_lst = process(S_lst) if len(new_lst) == len(S_lst): break S_lst = new_lst return ''.join(S_lst)
class Solution: def remove_duplicates(self, S: str) -> str: def process(S): lst = [] for (key, g) in itertools.groupby(S): n = len(list(g)) if n % 2: lst.append(key) return lst s_lst = list(S) while True: new_lst = process(S_lst) if len(new_lst) == len(S_lst): break s_lst = new_lst return ''.join(S_lst)
class User: ''' class that generates new instance of user ''' user_list = [] def __init__ (self, user_name, password): self.user_name = user_name self.password = password def save_user(self): User.user_list.append(self) def delete_user(self): ''' delete user account ''' User.user_list.remove(self) @classmethod def find_user(cls,user_name): ''' finding username ''' for user in cls.user_list: if user.user_name == user_name: return user @classmethod def log_in(cls,user_name, password): ''' login to password locker ''' for user in cls.user_list: if user.user_name == user_name and user.password == user_password: return user @classmethod def display_user(cls): ''' Method that returns the user list ''' return cls.user_list
class User: """ class that generates new instance of user """ user_list = [] def __init__(self, user_name, password): self.user_name = user_name self.password = password def save_user(self): User.user_list.append(self) def delete_user(self): """ delete user account """ User.user_list.remove(self) @classmethod def find_user(cls, user_name): """ finding username """ for user in cls.user_list: if user.user_name == user_name: return user @classmethod def log_in(cls, user_name, password): """ login to password locker """ for user in cls.user_list: if user.user_name == user_name and user.password == user_password: return user @classmethod def display_user(cls): """ Method that returns the user list """ return cls.user_list
print("Example 05: [The else Statement] \n" " Print a message once the condition is false") i = 1 while i < 6: print(i) i += 1 else: print("The condition is false")
print('Example 05: [The else Statement] \n Print a message once the condition is false') i = 1 while i < 6: print(i) i += 1 else: print('The condition is false')
def isPalindrome(s): temp = [c for c in s] temp.reverse() return ''.join(temp) == s def twodigit(): return reversed(range(100, 999)) q = reversed(sorted([a * b for a in twodigit() for b in twodigit()])) found = False for s in q: if isPalindrome(str(s)): print(s) found = True break if not found: print("guh")
def is_palindrome(s): temp = [c for c in s] temp.reverse() return ''.join(temp) == s def twodigit(): return reversed(range(100, 999)) q = reversed(sorted([a * b for a in twodigit() for b in twodigit()])) found = False for s in q: if is_palindrome(str(s)): print(s) found = True break if not found: print('guh')
def mutations(inputs): item_a = set(inputs[0].lower()) item_b = set(inputs[1].lower()) return item_b.intersection(item_a) == item_b print(mutations(["hello", "Hello"])) print(mutations(["hello", "hey"])) print(mutations(["Alien", "line"]))
def mutations(inputs): item_a = set(inputs[0].lower()) item_b = set(inputs[1].lower()) return item_b.intersection(item_a) == item_b print(mutations(['hello', 'Hello'])) print(mutations(['hello', 'hey'])) print(mutations(['Alien', 'line']))
while True: try: n = int(input("Enter N: ")) except ValueError: print("Enter correct number!") else: if n <= 100: print("Error: N must be greater than 100!") else: for i in range(11, n + 1): s = i i = (i-1) + i*i if i < 11: i = 10 print(i) break
while True: try: n = int(input('Enter N: ')) except ValueError: print('Enter correct number!') else: if n <= 100: print('Error: N must be greater than 100!') else: for i in range(11, n + 1): s = i i = i - 1 + i * i if i < 11: i = 10 print(i) break
# PySNMP SMI module. Autogenerated from smidump -f python RUCKUS-SCG-TTG-MIB # by libsmi2pysnmp-0.1.3 # Python version sys.version_info(major=2, minor=7, micro=11, releaselevel='final', serial=0) # pylint:disable=C0302 mibBuilder = mibBuilder # pylint:disable=undefined-variable,used-before-assignment # Imports (Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") (NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") (ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") (ruckusSCGTTGModule, ) = mibBuilder.importSymbols("RUCKUS-ROOT-MIB", "ruckusSCGTTGModule") (Bits, Counter32, Counter64, Integer32, Integer32, IpAddress, ModuleIdentity, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Counter32", "Counter64", "Integer32", "Integer32", "IpAddress", "ModuleIdentity", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32") (DisplayString, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString") # Objects ruckusTTGMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1)).setRevisions(("2014-05-19 11:00", )) if mibBuilder.loadTexts: ruckusTTGMIB.setOrganization("Ruckus Wireless, Inc.") if mibBuilder.loadTexts: ruckusTTGMIB.setContactInfo("Ruckus Wireless, Inc.\n\n350 West Java Dr.\nSunnyvale, CA 94089\nUSA\n\nT: +1 (650) 265-4200\nF: +1 (408) 738-2065\nEMail: info@ruckuswireless.com\nWeb: www.ruckuswireless.com") if mibBuilder.loadTexts: ruckusTTGMIB.setDescription("Ruckus TTG MIB") ruckusTTGObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1)) ruckusAAAInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1)) ruckusAAATable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1)) if mibBuilder.loadTexts: ruckusAAATable.setDescription("ruckusAAATable") ruckusAAAEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusAAAIndex")) if mibBuilder.loadTexts: ruckusAAAEntry.setDescription("ruckusAAAEntry") ruckusAAAAaaIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAAaaIp.setDescription("ruckusAAAAaaIp") ruckusAAANumSuccAuthPerm = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccAuthPerm.setDescription("ruckusAAANumSuccAuthPerm") ruckusAAANumFailAuthPerm = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailAuthPerm.setDescription("ruckusAAANumFailAuthPerm") ruckusAAANumSuccAuthPsd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccAuthPsd.setDescription("ruckusAAANumSuccAuthPsd") ruckusAAANumFailAuthPsd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailAuthPsd.setDescription("ruckusAAANumFailAuthPsd") ruckusAAANumSuccFastAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccFastAuth.setDescription("ruckusAAANumSuccFastAuth") ruckusAAANumFailFastAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailFastAuth.setDescription("ruckusAAANumFailFastAuth") ruckusAAANumAuthUnknPsd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumAuthUnknPsd.setDescription("ruckusAAANumAuthUnknPsd") ruckusAAANumAuthUnknFR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumAuthUnknFR.setDescription("ruckusAAANumAuthUnknFR") ruckusAAANumIncompleteAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumIncompleteAuth.setDescription("ruckusAAANumIncompleteAuth") ruckusAAANumSuccAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccAcc.setDescription("ruckusAAANumSuccAcc") ruckusAAANumFailAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailAcc.setDescription("ruckusAAANumFailAcc") ruckusAAANumRadAcsRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsRq.setDescription("ruckusAAANumRadAcsRq") ruckusAAANumRadAcsAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsAcpt.setDescription("ruckusAAANumRadAcsAcpt") ruckusAAANumRadAcsChlg = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsChlg.setDescription("ruckusAAANumRadAcsChlg") ruckusAAANumRadAcsRej = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsRej.setDescription("ruckusAAANumRadAcsRej") ruckusAAANumRadAccRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAccRq.setDescription("ruckusAAANumRadAccRq") ruckusAAANumRadAccAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAccAcpt.setDescription("ruckusAAANumRadAccAcpt") ruckusAAANumRadCoaRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadCoaRq.setDescription("ruckusAAANumRadCoaRq") ruckusAAANumSuccCoaAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccCoaAcpt.setDescription("ruckusAAANumSuccCoaAcpt") ruckusAAANumFailCoaAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailCoaAcpt.setDescription("ruckusAAANumFailCoaAcpt") ruckusAAANumRadDmRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadDmRq.setDescription("ruckusAAANumRadDmRq") ruckusAAANumSuccDmAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccDmAcpt.setDescription("ruckusAAANumSuccDmAcpt") ruckusAAANumFailDmAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailDmAcpt.setDescription("ruckusAAANumFailDmAcpt") ruckusAAAIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAIndex.setDescription("ruckusAAAIndex") ruckusAAAProxyInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2)) ruckusAAAProxyTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1)) if mibBuilder.loadTexts: ruckusAAAProxyTable.setDescription("ruckusAAAProxyTable") ruckusAAAProxyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusAAAProxyIndex")) if mibBuilder.loadTexts: ruckusAAAProxyEntry.setDescription("ruckusAAAProxyEntry") ruckusAAAProxyAaaIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyAaaIp.setDescription("ruckusAAAProxyAaaIp") ruckusAAAProxyNumSuccAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAuth.setDescription("ruckusAAAProxyNumSuccAuth") ruckusAAAProxyNumFailAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumFailAuth.setDescription("ruckusAAAProxyNumFailAuth") ruckusAAAProxyNumIncmpltAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumIncmpltAuth.setDescription("ruckusAAAProxyNumIncmpltAuth") ruckusAAAProxyNumSuccAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAcc.setDescription("ruckusAAAProxyNumSuccAcc") ruckusAAAProxyNumFailAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumFailAcc.setDescription("ruckusAAAProxyNumFailAcc") ruckusAAAProxyNumAcsRqRcvdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqRcvdNas.setDescription("ruckusAAAProxyNumAcsRqRcvdNas") ruckusAAAProxyNumAcsRqSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqSntAaa.setDescription("ruckusAAAProxyNumAcsRqSntAaa") ruckusAAAProxyNumAcsChRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChRcvdAaa.setDescription("ruckusAAAProxyNumAcsChRcvdAaa") ruckusAAAProxyNumAcsChSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChSntNas.setDescription("ruckusAAAProxyNumAcsChSntNas") ruckusAAAProxyNumAcsAcpRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpRcvdAaa.setDescription("ruckusAAAProxyNumAcsAcpRcvdAaa") ruckusAAAProxyNumAcsAcpSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpSntNas.setDescription("ruckusAAAProxyNumAcsAcpSntNas") ruckusAAAProxyNumAcsRejRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejRcvdAaa.setDescription("ruckusAAAProxyNumAcsRejRcvdAaa") ruckusAAAProxyNumAcsRejSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejSntNas.setDescription("ruckusAAAProxyNumAcsRejSntNas") ruckusAAAProxyNumAccRqRcvdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqRcvdNas.setDescription("ruckusAAAProxyNumAccRqRcvdNas") ruckusAAAProxyNumAccRqSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqSntAaa.setDescription("ruckusAAAProxyNumAccRqSntAaa") ruckusAAAProxyNumAccRspRcdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspRcdAaa.setDescription("ruckusAAAProxyNumAccRspRcdAaa") ruckusAAAProxyNumAccRspSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspSntNas.setDescription("ruckusAAAProxyNumAccRspSntNas") ruckusAAAProxyNumCoaRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumCoaRcvdAaa.setDescription("ruckusAAAProxyNumCoaRcvdAaa") ruckusAAAProxyNumCoaSucSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumCoaSucSntAaa.setDescription("ruckusAAAProxyNumCoaSucSntAaa") ruckusAAAProxyNumCoaFailSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumCoaFailSntAaa.setDescription("ruckusAAAProxyNumCoaFailSntAaa") ruckusAAAProxyNumDmRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmRcvdAaa.setDescription("ruckusAAAProxyNumDmRcvdAaa") ruckusAAAProxyNumDmSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmSntNas.setDescription("ruckusAAAProxyNumDmSntNas") ruckusAAAProxyNumDmSucRcdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucRcdNas.setDescription("ruckusAAAProxyNumDmSucRcdNas") ruckusAAAProxyNumDmSucSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucSntAaa.setDescription("ruckusAAAProxyNumDmSucSntAaa") ruckusAAAProxyNumDmFailRcdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailRcdNas.setDescription("ruckusAAAProxyNumDmFailRcdNas") ruckusAAAProxyNumDmFailSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailSntAaa.setDescription("ruckusAAAProxyNumDmFailSntAaa") ruckusAAAProxyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyIndex.setDescription("ruckusAAAProxyIndex") ruckusCGFInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3)) ruckusCGFTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1)) if mibBuilder.loadTexts: ruckusCGFTable.setDescription("ruckusCGFTable") ruckusCGFEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusCGFIndex")) if mibBuilder.loadTexts: ruckusCGFEntry.setDescription("ruckusCGFEntry") ruckusCGFCgfSrvcName = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFCgfSrvcName.setDescription("ruckusCGFCgfSrvcName") ruckusCGFCgfIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFCgfIp.setDescription("ruckusCGFCgfIp") ruckusCGFNumSuccCdrTxfd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumSuccCdrTxfd.setDescription("ruckusCGFNumSuccCdrTxfd") ruckusCGFNumCdrTxfrFail = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrTxfrFail.setDescription("ruckusCGFNumCdrTxfrFail") ruckusCGFNumCdrPossDup = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrPossDup.setDescription("ruckusCGFNumCdrPossDup") ruckusCGFNumCdrRlsReq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrRlsReq.setDescription("ruckusCGFNumCdrRlsReq") ruckusCGFNumCdrCnclReq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrCnclReq.setDescription("ruckusCGFNumCdrCnclReq") ruckusCGFNumDrtrReqSnt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumDrtrReqSnt.setDescription("ruckusCGFNumDrtrReqSnt") ruckusCGFNumDrtrSucRspRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumDrtrSucRspRcvd.setDescription("ruckusCGFNumDrtrSucRspRcvd") ruckusCGFNumDrtrFailRspRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumDrtrFailRspRcvd.setDescription("ruckusCGFNumDrtrFailRspRcvd") ruckusCGFIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFIndex.setDescription("ruckusCGFIndex") ruckusGTPUInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4)) ruckusGTPUTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1)) if mibBuilder.loadTexts: ruckusGTPUTable.setDescription("ruckusGTPUTable") ruckusGTPUEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusGTPUIndex")) if mibBuilder.loadTexts: ruckusGTPUEntry.setDescription("ruckusGTPUEntry") ruckusGTPUGgsnIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUGgsnIPAddr.setDescription("ruckusGTPUGgsnIPAddr") ruckusGTPUTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUTxPkts.setDescription("ruckusGTPUTxPkts") ruckusGTPUTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUTxBytes.setDescription("ruckusGTPUTxBytes") ruckusGTPURxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPURxPkts.setDescription("ruckusGTPURxPkts") ruckusGTPURxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPURxBytes.setDescription("ruckusGTPURxBytes") ruckusGTPUTxDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUTxDrops.setDescription("ruckusGTPUTxDrops") ruckusGTPURxDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPURxDrops.setDescription("ruckusGTPURxDrops") ruckusGTPUNumBadGTPU = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumBadGTPU.setDescription("ruckusGTPUNumBadGTPU") ruckusGTPUNumRXTeidInvalid = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumRXTeidInvalid.setDescription("ruckusGTPUNumRXTeidInvalid") ruckusGTPUNumTXTeidInvalid = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumTXTeidInvalid.setDescription("ruckusGTPUNumTXTeidInvalid") ruckusGTPUNumOfEchoRX = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumOfEchoRX.setDescription("ruckusGTPUNumOfEchoRX") ruckusGTPUIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUIndex.setDescription("ruckusGTPUIndex") ruckusGGSNGTPCInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5)) ruckusGGSNGTPCTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1)) if mibBuilder.loadTexts: ruckusGGSNGTPCTable.setDescription("ruckusGGSNGTPCTable") ruckusGGSNGTPCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusGGSNGTPCIndex")) if mibBuilder.loadTexts: ruckusGGSNGTPCEntry.setDescription("ruckusGGSNGTPCEntry") ruckusGGSNGTPCGgsnIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCGgsnIp.setDescription("ruckusGGSNGTPCGgsnIp") ruckusGGSNGTPCNumActPdp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCNumActPdp.setDescription("ruckusGGSNGTPCNumActPdp") ruckusGGSNGTPCSuccPdpCrt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpCrt.setDescription("ruckusGGSNGTPCSuccPdpCrt") ruckusGGSNGTPCFailPdpCrt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpCrt.setDescription("ruckusGGSNGTPCFailPdpCrt") ruckusGGSNGTPCSuccPdpUpdRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdRcvd.setDescription("ruckusGGSNGTPCSuccPdpUpdRcvd") ruckusGGSNGTPCFailPdpUpdRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdRcvd.setDescription("ruckusGGSNGTPCFailPdpUpdRcvd") ruckusGGSNGTPCSuccPdpUpdInitRM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitRM.setDescription("ruckusGGSNGTPCSuccPdpUpdInitRM") ruckusGGSNGTPCFailPdpUpdInitRM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitRM.setDescription("ruckusGGSNGTPCFailPdpUpdInitRM") ruckusGGSNGTPCSuccPdpUpdInitAAA = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitAAA.setDescription("ruckusGGSNGTPCSuccPdpUpdInitAAA") ruckusGGSNGTPCFailPdpUpdInitAAA = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitAAA.setDescription("ruckusGGSNGTPCFailPdpUpdInitAAA") ruckusGGSNGTPCSuccPdpUpdInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitHLR.setDescription("ruckusGGSNGTPCSuccPdpUpdInitHLR") ruckusGGSNGTPCFailPdpUpdInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitHLR.setDescription("ruckusGGSNGTPCFailPdpUpdInitHLR") ruckusGGSNGTPCSuccDelPdpRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpRcvd.setDescription("ruckusGGSNGTPCSuccDelPdpRcvd") ruckusGGSNGTPCFailDelPdpRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpRcvd.setDescription("ruckusGGSNGTPCFailDelPdpRcvd") ruckusGGSNGTPCSuccDelPdpInitErr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitErr.setDescription("ruckusGGSNGTPCSuccDelPdpInitErr") ruckusGGSNGTPCFailDelPdpInitErr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitErr.setDescription("ruckusGGSNGTPCFailDelPdpInitErr") ruckusGGSNGTPCSuccDelPdpInitDM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitDM.setDescription("ruckusGGSNGTPCSuccDelPdpInitDM") ruckusGGSNGTPCFailDelPdpInitDM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitDM.setDescription("ruckusGGSNGTPCFailDelPdpInitDM") ruckusGGSNGTPCSuccDelPdpInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitHLR.setDescription("ruckusGGSNGTPCSuccDelPdpInitHLR") ruckusGGSNGTPCFailDelPdpInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitHLR.setDescription("ruckusGGSNGTPCFailDelPdpInitHLR") ruckusGGSNGTPCSuccDelPdpInitSCG = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitSCG.setDescription("ruckusGGSNGTPCSuccDelPdpInitSCG") ruckusGGSNGTPCFailDelPdpInitSCG = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitSCG.setDescription("ruckusGGSNGTPCFailDelPdpInitSCG") ruckusGGSNGTPCSuccDelPdpInitAP = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitAP.setDescription("ruckusGGSNGTPCSuccDelPdpInitAP") ruckusGGSNGTPCFailDelPdpInitAP = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitAP.setDescription("ruckusGGSNGTPCFailDelPdpInitAP") ruckusGGSNGTPCSuccDelPdpInitD = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitD.setDescription("ruckusGGSNGTPCSuccDelPdpInitD") ruckusGGSNGTPCFailDelPdpInitD = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitD.setDescription("ruckusGGSNGTPCFailDelPdpInitD") ruckusGGSNGTPCSuccDelPdpInitClnt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitClnt.setDescription("ruckusGGSNGTPCSuccDelPdpInitClnt") ruckusGGSNGTPCFailDelPdpInitClnt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitClnt.setDescription("ruckusGGSNGTPCFailDelPdpInitClnt") ruckusGGSNGTPCIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCIndex.setDescription("ruckusGGSNGTPCIndex") ruckusHLRInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7)) ruckusHLRTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1)) if mibBuilder.loadTexts: ruckusHLRTable.setDescription("ruckusHLRTable") ruckusHLREntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusHLRIndex")) if mibBuilder.loadTexts: ruckusHLREntry.setDescription("ruckusHLREntry") ruckusHLRHlrSrvcName = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRHlrSrvcName.setDescription("ruckusHLRHlrSrvcName") ruckusHLRNumSucAuthInfoReqSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqSim.setDescription("ruckusHLRNumSucAuthInfoReqSim") ruckusHLRNumAuthInfoRqErrHlrSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrSim.setDescription("ruckusHLRNumAuthInfoRqErrHlrSim") ruckusHLRNumAuthInfoRqTmotSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotSim.setDescription("ruckusHLRNumAuthInfoRqTmotSim") ruckusHLRNumSucAuthInfoReqAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqAka.setDescription("ruckusHLRNumSucAuthInfoReqAka") ruckusHLRNumAuthInfoRqErrHlrAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrAka.setDescription("ruckusHLRNumAuthInfoRqErrHlrAka") ruckusHLRNumAuthInfoRqTmotAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotAka.setDescription("ruckusHLRNumAuthInfoRqTmotAka") ruckusHLRNumUpdGprsSuccSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccSim.setDescription("ruckusHLRNumUpdGprsSuccSim") ruckusHLRNumUpdGprsFailErrSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrSim.setDescription("ruckusHLRNumUpdGprsFailErrSim") ruckusHLRNumUpdGprsFailTmoSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoSim.setDescription("ruckusHLRNumUpdGprsFailTmoSim") ruckusHLRNumUpdGprsSuccAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccAka.setDescription("ruckusHLRNumUpdGprsSuccAka") ruckusHLRNumUpdGprsFailErrAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrAka.setDescription("ruckusHLRNumUpdGprsFailErrAka") ruckusHLRNumUpdGprsFailTmoAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoAka.setDescription("ruckusHLRNumUpdGprsFailTmoAka") ruckusHLRNumRstDtaSuccSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccSim.setDescription("ruckusHLRNumRstDtaSuccSim") ruckusHLRNumRstDtaFailErrHlrSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrSim.setDescription("ruckusHLRNumRstDtaFailErrHlrSim") ruckusHLRNumRstDtaFailTmoSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoSim.setDescription("ruckusHLRNumRstDtaFailTmoSim") ruckusHLRNumRstDtaSuccAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccAka.setDescription("ruckusHLRNumRstDtaSuccAka") ruckusHLRNumRstDtaFailErrHlrAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrAka.setDescription("ruckusHLRNumRstDtaFailErrHlrAka") ruckusHLRNumRstDtaFailTmoAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoAka.setDescription("ruckusHLRNumRstDtaFailTmoAka") ruckusHLRNumInsrtDtaSuccSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccSim.setDescription("ruckusHLRNumInsrtDtaSuccSim") ruckusHLRNumInsrtDtaFailSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailSim.setDescription("ruckusHLRNumInsrtDtaFailSim") ruckusHLRNumInsrtDtaSuccAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccAka.setDescription("ruckusHLRNumInsrtDtaSuccAka") ruckusHLRNumInsrtDtaFailAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailAka.setDescription("ruckusHLRNumInsrtDtaFailAka") ruckusHLRNumSaInsrtDtaSucc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaSucc.setDescription("ruckusHLRNumSaInsrtDtaSucc") ruckusHLRNumSaInsrtDtaFailUnkS = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailUnkS.setDescription("ruckusHLRNumSaInsrtDtaFailUnkS") ruckusHLRNumSaInsrtDtaFailErr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailErr.setDescription("ruckusHLRNumSaInsrtDtaFailErr") ruckusHLRNumCfgAssoc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumCfgAssoc.setDescription("ruckusHLRNumCfgAssoc") ruckusHLRNumActAssoc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumActAssoc.setDescription("ruckusHLRNumActAssoc") ruckusHLRNumRtgFail = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRtgFail.setDescription("ruckusHLRNumRtgFail") ruckusHLRIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRIndex.setDescription("ruckusHLRIndex") # Augmentions # Exports # Module identity mibBuilder.exportSymbols("RUCKUS-SCG-TTG-MIB", PYSNMP_MODULE_ID=ruckusTTGMIB) # Objects mibBuilder.exportSymbols("RUCKUS-SCG-TTG-MIB", ruckusTTGMIB=ruckusTTGMIB, ruckusTTGObjects=ruckusTTGObjects, ruckusAAAInfo=ruckusAAAInfo, ruckusAAATable=ruckusAAATable, ruckusAAAEntry=ruckusAAAEntry, ruckusAAAAaaIp=ruckusAAAAaaIp, ruckusAAANumSuccAuthPerm=ruckusAAANumSuccAuthPerm, ruckusAAANumFailAuthPerm=ruckusAAANumFailAuthPerm, ruckusAAANumSuccAuthPsd=ruckusAAANumSuccAuthPsd, ruckusAAANumFailAuthPsd=ruckusAAANumFailAuthPsd, ruckusAAANumSuccFastAuth=ruckusAAANumSuccFastAuth, ruckusAAANumFailFastAuth=ruckusAAANumFailFastAuth, ruckusAAANumAuthUnknPsd=ruckusAAANumAuthUnknPsd, ruckusAAANumAuthUnknFR=ruckusAAANumAuthUnknFR, ruckusAAANumIncompleteAuth=ruckusAAANumIncompleteAuth, ruckusAAANumSuccAcc=ruckusAAANumSuccAcc, ruckusAAANumFailAcc=ruckusAAANumFailAcc, ruckusAAANumRadAcsRq=ruckusAAANumRadAcsRq, ruckusAAANumRadAcsAcpt=ruckusAAANumRadAcsAcpt, ruckusAAANumRadAcsChlg=ruckusAAANumRadAcsChlg, ruckusAAANumRadAcsRej=ruckusAAANumRadAcsRej, ruckusAAANumRadAccRq=ruckusAAANumRadAccRq, ruckusAAANumRadAccAcpt=ruckusAAANumRadAccAcpt, ruckusAAANumRadCoaRq=ruckusAAANumRadCoaRq, ruckusAAANumSuccCoaAcpt=ruckusAAANumSuccCoaAcpt, ruckusAAANumFailCoaAcpt=ruckusAAANumFailCoaAcpt, ruckusAAANumRadDmRq=ruckusAAANumRadDmRq, ruckusAAANumSuccDmAcpt=ruckusAAANumSuccDmAcpt, ruckusAAANumFailDmAcpt=ruckusAAANumFailDmAcpt, ruckusAAAIndex=ruckusAAAIndex, ruckusAAAProxyInfo=ruckusAAAProxyInfo, ruckusAAAProxyTable=ruckusAAAProxyTable, ruckusAAAProxyEntry=ruckusAAAProxyEntry, ruckusAAAProxyAaaIp=ruckusAAAProxyAaaIp, ruckusAAAProxyNumSuccAuth=ruckusAAAProxyNumSuccAuth, ruckusAAAProxyNumFailAuth=ruckusAAAProxyNumFailAuth, ruckusAAAProxyNumIncmpltAuth=ruckusAAAProxyNumIncmpltAuth, ruckusAAAProxyNumSuccAcc=ruckusAAAProxyNumSuccAcc, ruckusAAAProxyNumFailAcc=ruckusAAAProxyNumFailAcc, ruckusAAAProxyNumAcsRqRcvdNas=ruckusAAAProxyNumAcsRqRcvdNas, ruckusAAAProxyNumAcsRqSntAaa=ruckusAAAProxyNumAcsRqSntAaa, ruckusAAAProxyNumAcsChRcvdAaa=ruckusAAAProxyNumAcsChRcvdAaa, ruckusAAAProxyNumAcsChSntNas=ruckusAAAProxyNumAcsChSntNas, ruckusAAAProxyNumAcsAcpRcvdAaa=ruckusAAAProxyNumAcsAcpRcvdAaa, ruckusAAAProxyNumAcsAcpSntNas=ruckusAAAProxyNumAcsAcpSntNas, ruckusAAAProxyNumAcsRejRcvdAaa=ruckusAAAProxyNumAcsRejRcvdAaa, ruckusAAAProxyNumAcsRejSntNas=ruckusAAAProxyNumAcsRejSntNas, ruckusAAAProxyNumAccRqRcvdNas=ruckusAAAProxyNumAccRqRcvdNas, ruckusAAAProxyNumAccRqSntAaa=ruckusAAAProxyNumAccRqSntAaa, ruckusAAAProxyNumAccRspRcdAaa=ruckusAAAProxyNumAccRspRcdAaa, ruckusAAAProxyNumAccRspSntNas=ruckusAAAProxyNumAccRspSntNas, ruckusAAAProxyNumCoaRcvdAaa=ruckusAAAProxyNumCoaRcvdAaa, ruckusAAAProxyNumCoaSucSntAaa=ruckusAAAProxyNumCoaSucSntAaa, ruckusAAAProxyNumCoaFailSntAaa=ruckusAAAProxyNumCoaFailSntAaa, ruckusAAAProxyNumDmRcvdAaa=ruckusAAAProxyNumDmRcvdAaa, ruckusAAAProxyNumDmSntNas=ruckusAAAProxyNumDmSntNas, ruckusAAAProxyNumDmSucRcdNas=ruckusAAAProxyNumDmSucRcdNas, ruckusAAAProxyNumDmSucSntAaa=ruckusAAAProxyNumDmSucSntAaa, ruckusAAAProxyNumDmFailRcdNas=ruckusAAAProxyNumDmFailRcdNas, ruckusAAAProxyNumDmFailSntAaa=ruckusAAAProxyNumDmFailSntAaa, ruckusAAAProxyIndex=ruckusAAAProxyIndex, ruckusCGFInfo=ruckusCGFInfo, ruckusCGFTable=ruckusCGFTable, ruckusCGFEntry=ruckusCGFEntry, ruckusCGFCgfSrvcName=ruckusCGFCgfSrvcName, ruckusCGFCgfIp=ruckusCGFCgfIp, ruckusCGFNumSuccCdrTxfd=ruckusCGFNumSuccCdrTxfd, ruckusCGFNumCdrTxfrFail=ruckusCGFNumCdrTxfrFail, ruckusCGFNumCdrPossDup=ruckusCGFNumCdrPossDup, ruckusCGFNumCdrRlsReq=ruckusCGFNumCdrRlsReq, ruckusCGFNumCdrCnclReq=ruckusCGFNumCdrCnclReq, ruckusCGFNumDrtrReqSnt=ruckusCGFNumDrtrReqSnt, ruckusCGFNumDrtrSucRspRcvd=ruckusCGFNumDrtrSucRspRcvd, ruckusCGFNumDrtrFailRspRcvd=ruckusCGFNumDrtrFailRspRcvd, ruckusCGFIndex=ruckusCGFIndex, ruckusGTPUInfo=ruckusGTPUInfo, ruckusGTPUTable=ruckusGTPUTable, ruckusGTPUEntry=ruckusGTPUEntry, ruckusGTPUGgsnIPAddr=ruckusGTPUGgsnIPAddr, ruckusGTPUTxPkts=ruckusGTPUTxPkts, ruckusGTPUTxBytes=ruckusGTPUTxBytes, ruckusGTPURxPkts=ruckusGTPURxPkts, ruckusGTPURxBytes=ruckusGTPURxBytes, ruckusGTPUTxDrops=ruckusGTPUTxDrops, ruckusGTPURxDrops=ruckusGTPURxDrops, ruckusGTPUNumBadGTPU=ruckusGTPUNumBadGTPU, ruckusGTPUNumRXTeidInvalid=ruckusGTPUNumRXTeidInvalid, ruckusGTPUNumTXTeidInvalid=ruckusGTPUNumTXTeidInvalid, ruckusGTPUNumOfEchoRX=ruckusGTPUNumOfEchoRX, ruckusGTPUIndex=ruckusGTPUIndex, ruckusGGSNGTPCInfo=ruckusGGSNGTPCInfo, ruckusGGSNGTPCTable=ruckusGGSNGTPCTable, ruckusGGSNGTPCEntry=ruckusGGSNGTPCEntry, ruckusGGSNGTPCGgsnIp=ruckusGGSNGTPCGgsnIp, ruckusGGSNGTPCNumActPdp=ruckusGGSNGTPCNumActPdp, ruckusGGSNGTPCSuccPdpCrt=ruckusGGSNGTPCSuccPdpCrt, ruckusGGSNGTPCFailPdpCrt=ruckusGGSNGTPCFailPdpCrt, ruckusGGSNGTPCSuccPdpUpdRcvd=ruckusGGSNGTPCSuccPdpUpdRcvd, ruckusGGSNGTPCFailPdpUpdRcvd=ruckusGGSNGTPCFailPdpUpdRcvd, ruckusGGSNGTPCSuccPdpUpdInitRM=ruckusGGSNGTPCSuccPdpUpdInitRM, ruckusGGSNGTPCFailPdpUpdInitRM=ruckusGGSNGTPCFailPdpUpdInitRM, ruckusGGSNGTPCSuccPdpUpdInitAAA=ruckusGGSNGTPCSuccPdpUpdInitAAA, ruckusGGSNGTPCFailPdpUpdInitAAA=ruckusGGSNGTPCFailPdpUpdInitAAA, ruckusGGSNGTPCSuccPdpUpdInitHLR=ruckusGGSNGTPCSuccPdpUpdInitHLR, ruckusGGSNGTPCFailPdpUpdInitHLR=ruckusGGSNGTPCFailPdpUpdInitHLR, ruckusGGSNGTPCSuccDelPdpRcvd=ruckusGGSNGTPCSuccDelPdpRcvd, ruckusGGSNGTPCFailDelPdpRcvd=ruckusGGSNGTPCFailDelPdpRcvd, ruckusGGSNGTPCSuccDelPdpInitErr=ruckusGGSNGTPCSuccDelPdpInitErr, ruckusGGSNGTPCFailDelPdpInitErr=ruckusGGSNGTPCFailDelPdpInitErr, ruckusGGSNGTPCSuccDelPdpInitDM=ruckusGGSNGTPCSuccDelPdpInitDM, ruckusGGSNGTPCFailDelPdpInitDM=ruckusGGSNGTPCFailDelPdpInitDM, ruckusGGSNGTPCSuccDelPdpInitHLR=ruckusGGSNGTPCSuccDelPdpInitHLR, ruckusGGSNGTPCFailDelPdpInitHLR=ruckusGGSNGTPCFailDelPdpInitHLR, ruckusGGSNGTPCSuccDelPdpInitSCG=ruckusGGSNGTPCSuccDelPdpInitSCG, ruckusGGSNGTPCFailDelPdpInitSCG=ruckusGGSNGTPCFailDelPdpInitSCG, ruckusGGSNGTPCSuccDelPdpInitAP=ruckusGGSNGTPCSuccDelPdpInitAP, ruckusGGSNGTPCFailDelPdpInitAP=ruckusGGSNGTPCFailDelPdpInitAP, ruckusGGSNGTPCSuccDelPdpInitD=ruckusGGSNGTPCSuccDelPdpInitD, ruckusGGSNGTPCFailDelPdpInitD=ruckusGGSNGTPCFailDelPdpInitD, ruckusGGSNGTPCSuccDelPdpInitClnt=ruckusGGSNGTPCSuccDelPdpInitClnt, ruckusGGSNGTPCFailDelPdpInitClnt=ruckusGGSNGTPCFailDelPdpInitClnt, ruckusGGSNGTPCIndex=ruckusGGSNGTPCIndex, ruckusHLRInfo=ruckusHLRInfo, ruckusHLRTable=ruckusHLRTable, ruckusHLREntry=ruckusHLREntry, ruckusHLRHlrSrvcName=ruckusHLRHlrSrvcName) mibBuilder.exportSymbols("RUCKUS-SCG-TTG-MIB", ruckusHLRNumSucAuthInfoReqSim=ruckusHLRNumSucAuthInfoReqSim, ruckusHLRNumAuthInfoRqErrHlrSim=ruckusHLRNumAuthInfoRqErrHlrSim, ruckusHLRNumAuthInfoRqTmotSim=ruckusHLRNumAuthInfoRqTmotSim, ruckusHLRNumSucAuthInfoReqAka=ruckusHLRNumSucAuthInfoReqAka, ruckusHLRNumAuthInfoRqErrHlrAka=ruckusHLRNumAuthInfoRqErrHlrAka, ruckusHLRNumAuthInfoRqTmotAka=ruckusHLRNumAuthInfoRqTmotAka, ruckusHLRNumUpdGprsSuccSim=ruckusHLRNumUpdGprsSuccSim, ruckusHLRNumUpdGprsFailErrSim=ruckusHLRNumUpdGprsFailErrSim, ruckusHLRNumUpdGprsFailTmoSim=ruckusHLRNumUpdGprsFailTmoSim, ruckusHLRNumUpdGprsSuccAka=ruckusHLRNumUpdGprsSuccAka, ruckusHLRNumUpdGprsFailErrAka=ruckusHLRNumUpdGprsFailErrAka, ruckusHLRNumUpdGprsFailTmoAka=ruckusHLRNumUpdGprsFailTmoAka, ruckusHLRNumRstDtaSuccSim=ruckusHLRNumRstDtaSuccSim, ruckusHLRNumRstDtaFailErrHlrSim=ruckusHLRNumRstDtaFailErrHlrSim, ruckusHLRNumRstDtaFailTmoSim=ruckusHLRNumRstDtaFailTmoSim, ruckusHLRNumRstDtaSuccAka=ruckusHLRNumRstDtaSuccAka, ruckusHLRNumRstDtaFailErrHlrAka=ruckusHLRNumRstDtaFailErrHlrAka, ruckusHLRNumRstDtaFailTmoAka=ruckusHLRNumRstDtaFailTmoAka, ruckusHLRNumInsrtDtaSuccSim=ruckusHLRNumInsrtDtaSuccSim, ruckusHLRNumInsrtDtaFailSim=ruckusHLRNumInsrtDtaFailSim, ruckusHLRNumInsrtDtaSuccAka=ruckusHLRNumInsrtDtaSuccAka, ruckusHLRNumInsrtDtaFailAka=ruckusHLRNumInsrtDtaFailAka, ruckusHLRNumSaInsrtDtaSucc=ruckusHLRNumSaInsrtDtaSucc, ruckusHLRNumSaInsrtDtaFailUnkS=ruckusHLRNumSaInsrtDtaFailUnkS, ruckusHLRNumSaInsrtDtaFailErr=ruckusHLRNumSaInsrtDtaFailErr, ruckusHLRNumCfgAssoc=ruckusHLRNumCfgAssoc, ruckusHLRNumActAssoc=ruckusHLRNumActAssoc, ruckusHLRNumRtgFail=ruckusHLRNumRtgFail, ruckusHLRIndex=ruckusHLRIndex)
mib_builder = mibBuilder (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint') (ruckus_scgttg_module,) = mibBuilder.importSymbols('RUCKUS-ROOT-MIB', 'ruckusSCGTTGModule') (bits, counter32, counter64, integer32, integer32, ip_address, module_identity, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'Counter32', 'Counter64', 'Integer32', 'Integer32', 'IpAddress', 'ModuleIdentity', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Unsigned32') (display_string,) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString') ruckus_ttgmib = module_identity((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1)).setRevisions(('2014-05-19 11:00',)) if mibBuilder.loadTexts: ruckusTTGMIB.setOrganization('Ruckus Wireless, Inc.') if mibBuilder.loadTexts: ruckusTTGMIB.setContactInfo('Ruckus Wireless, Inc.\n\n350 West Java Dr.\nSunnyvale, CA 94089\nUSA\n\nT: +1 (650) 265-4200\nF: +1 (408) 738-2065\nEMail: info@ruckuswireless.com\nWeb: www.ruckuswireless.com') if mibBuilder.loadTexts: ruckusTTGMIB.setDescription('Ruckus TTG MIB') ruckus_ttg_objects = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1)) ruckus_aaa_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1)) ruckus_aaa_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1)) if mibBuilder.loadTexts: ruckusAAATable.setDescription('ruckusAAATable') ruckus_aaa_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusAAAIndex')) if mibBuilder.loadTexts: ruckusAAAEntry.setDescription('ruckusAAAEntry') ruckus_aaa_aaa_ip = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAAaaIp.setDescription('ruckusAAAAaaIp') ruckus_aaa_num_succ_auth_perm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccAuthPerm.setDescription('ruckusAAANumSuccAuthPerm') ruckus_aaa_num_fail_auth_perm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailAuthPerm.setDescription('ruckusAAANumFailAuthPerm') ruckus_aaa_num_succ_auth_psd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccAuthPsd.setDescription('ruckusAAANumSuccAuthPsd') ruckus_aaa_num_fail_auth_psd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailAuthPsd.setDescription('ruckusAAANumFailAuthPsd') ruckus_aaa_num_succ_fast_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccFastAuth.setDescription('ruckusAAANumSuccFastAuth') ruckus_aaa_num_fail_fast_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailFastAuth.setDescription('ruckusAAANumFailFastAuth') ruckus_aaa_num_auth_unkn_psd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumAuthUnknPsd.setDescription('ruckusAAANumAuthUnknPsd') ruckus_aaa_num_auth_unkn_fr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumAuthUnknFR.setDescription('ruckusAAANumAuthUnknFR') ruckus_aaa_num_incomplete_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumIncompleteAuth.setDescription('ruckusAAANumIncompleteAuth') ruckus_aaa_num_succ_acc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccAcc.setDescription('ruckusAAANumSuccAcc') ruckus_aaa_num_fail_acc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailAcc.setDescription('ruckusAAANumFailAcc') ruckus_aaa_num_rad_acs_rq = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAcsRq.setDescription('ruckusAAANumRadAcsRq') ruckus_aaa_num_rad_acs_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAcsAcpt.setDescription('ruckusAAANumRadAcsAcpt') ruckus_aaa_num_rad_acs_chlg = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAcsChlg.setDescription('ruckusAAANumRadAcsChlg') ruckus_aaa_num_rad_acs_rej = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAcsRej.setDescription('ruckusAAANumRadAcsRej') ruckus_aaa_num_rad_acc_rq = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAccRq.setDescription('ruckusAAANumRadAccRq') ruckus_aaa_num_rad_acc_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAccAcpt.setDescription('ruckusAAANumRadAccAcpt') ruckus_aaa_num_rad_coa_rq = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadCoaRq.setDescription('ruckusAAANumRadCoaRq') ruckus_aaa_num_succ_coa_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccCoaAcpt.setDescription('ruckusAAANumSuccCoaAcpt') ruckus_aaa_num_fail_coa_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailCoaAcpt.setDescription('ruckusAAANumFailCoaAcpt') ruckus_aaa_num_rad_dm_rq = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadDmRq.setDescription('ruckusAAANumRadDmRq') ruckus_aaa_num_succ_dm_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccDmAcpt.setDescription('ruckusAAANumSuccDmAcpt') ruckus_aaa_num_fail_dm_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailDmAcpt.setDescription('ruckusAAANumFailDmAcpt') ruckus_aaa_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAIndex.setDescription('ruckusAAAIndex') ruckus_aaa_proxy_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2)) ruckus_aaa_proxy_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1)) if mibBuilder.loadTexts: ruckusAAAProxyTable.setDescription('ruckusAAAProxyTable') ruckus_aaa_proxy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusAAAProxyIndex')) if mibBuilder.loadTexts: ruckusAAAProxyEntry.setDescription('ruckusAAAProxyEntry') ruckus_aaa_proxy_aaa_ip = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyAaaIp.setDescription('ruckusAAAProxyAaaIp') ruckus_aaa_proxy_num_succ_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAuth.setDescription('ruckusAAAProxyNumSuccAuth') ruckus_aaa_proxy_num_fail_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumFailAuth.setDescription('ruckusAAAProxyNumFailAuth') ruckus_aaa_proxy_num_incmplt_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumIncmpltAuth.setDescription('ruckusAAAProxyNumIncmpltAuth') ruckus_aaa_proxy_num_succ_acc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAcc.setDescription('ruckusAAAProxyNumSuccAcc') ruckus_aaa_proxy_num_fail_acc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumFailAcc.setDescription('ruckusAAAProxyNumFailAcc') ruckus_aaa_proxy_num_acs_rq_rcvd_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqRcvdNas.setDescription('ruckusAAAProxyNumAcsRqRcvdNas') ruckus_aaa_proxy_num_acs_rq_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqSntAaa.setDescription('ruckusAAAProxyNumAcsRqSntAaa') ruckus_aaa_proxy_num_acs_ch_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChRcvdAaa.setDescription('ruckusAAAProxyNumAcsChRcvdAaa') ruckus_aaa_proxy_num_acs_ch_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChSntNas.setDescription('ruckusAAAProxyNumAcsChSntNas') ruckus_aaa_proxy_num_acs_acp_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpRcvdAaa.setDescription('ruckusAAAProxyNumAcsAcpRcvdAaa') ruckus_aaa_proxy_num_acs_acp_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpSntNas.setDescription('ruckusAAAProxyNumAcsAcpSntNas') ruckus_aaa_proxy_num_acs_rej_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejRcvdAaa.setDescription('ruckusAAAProxyNumAcsRejRcvdAaa') ruckus_aaa_proxy_num_acs_rej_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejSntNas.setDescription('ruckusAAAProxyNumAcsRejSntNas') ruckus_aaa_proxy_num_acc_rq_rcvd_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqRcvdNas.setDescription('ruckusAAAProxyNumAccRqRcvdNas') ruckus_aaa_proxy_num_acc_rq_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqSntAaa.setDescription('ruckusAAAProxyNumAccRqSntAaa') ruckus_aaa_proxy_num_acc_rsp_rcd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspRcdAaa.setDescription('ruckusAAAProxyNumAccRspRcdAaa') ruckus_aaa_proxy_num_acc_rsp_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspSntNas.setDescription('ruckusAAAProxyNumAccRspSntNas') ruckus_aaa_proxy_num_coa_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumCoaRcvdAaa.setDescription('ruckusAAAProxyNumCoaRcvdAaa') ruckus_aaa_proxy_num_coa_suc_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumCoaSucSntAaa.setDescription('ruckusAAAProxyNumCoaSucSntAaa') ruckus_aaa_proxy_num_coa_fail_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumCoaFailSntAaa.setDescription('ruckusAAAProxyNumCoaFailSntAaa') ruckus_aaa_proxy_num_dm_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmRcvdAaa.setDescription('ruckusAAAProxyNumDmRcvdAaa') ruckus_aaa_proxy_num_dm_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmSntNas.setDescription('ruckusAAAProxyNumDmSntNas') ruckus_aaa_proxy_num_dm_suc_rcd_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucRcdNas.setDescription('ruckusAAAProxyNumDmSucRcdNas') ruckus_aaa_proxy_num_dm_suc_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucSntAaa.setDescription('ruckusAAAProxyNumDmSucSntAaa') ruckus_aaa_proxy_num_dm_fail_rcd_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailRcdNas.setDescription('ruckusAAAProxyNumDmFailRcdNas') ruckus_aaa_proxy_num_dm_fail_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailSntAaa.setDescription('ruckusAAAProxyNumDmFailSntAaa') ruckus_aaa_proxy_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyIndex.setDescription('ruckusAAAProxyIndex') ruckus_cgf_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3)) ruckus_cgf_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1)) if mibBuilder.loadTexts: ruckusCGFTable.setDescription('ruckusCGFTable') ruckus_cgf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusCGFIndex')) if mibBuilder.loadTexts: ruckusCGFEntry.setDescription('ruckusCGFEntry') ruckus_cgf_cgf_srvc_name = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFCgfSrvcName.setDescription('ruckusCGFCgfSrvcName') ruckus_cgf_cgf_ip = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFCgfIp.setDescription('ruckusCGFCgfIp') ruckus_cgf_num_succ_cdr_txfd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumSuccCdrTxfd.setDescription('ruckusCGFNumSuccCdrTxfd') ruckus_cgf_num_cdr_txfr_fail = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumCdrTxfrFail.setDescription('ruckusCGFNumCdrTxfrFail') ruckus_cgf_num_cdr_poss_dup = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumCdrPossDup.setDescription('ruckusCGFNumCdrPossDup') ruckus_cgf_num_cdr_rls_req = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumCdrRlsReq.setDescription('ruckusCGFNumCdrRlsReq') ruckus_cgf_num_cdr_cncl_req = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumCdrCnclReq.setDescription('ruckusCGFNumCdrCnclReq') ruckus_cgf_num_drtr_req_snt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumDrtrReqSnt.setDescription('ruckusCGFNumDrtrReqSnt') ruckus_cgf_num_drtr_suc_rsp_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumDrtrSucRspRcvd.setDescription('ruckusCGFNumDrtrSucRspRcvd') ruckus_cgf_num_drtr_fail_rsp_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumDrtrFailRspRcvd.setDescription('ruckusCGFNumDrtrFailRspRcvd') ruckus_cgf_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFIndex.setDescription('ruckusCGFIndex') ruckus_gtpu_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4)) ruckus_gtpu_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1)) if mibBuilder.loadTexts: ruckusGTPUTable.setDescription('ruckusGTPUTable') ruckus_gtpu_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusGTPUIndex')) if mibBuilder.loadTexts: ruckusGTPUEntry.setDescription('ruckusGTPUEntry') ruckus_gtpu_ggsn_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUGgsnIPAddr.setDescription('ruckusGTPUGgsnIPAddr') ruckus_gtpu_tx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUTxPkts.setDescription('ruckusGTPUTxPkts') ruckus_gtpu_tx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUTxBytes.setDescription('ruckusGTPUTxBytes') ruckus_gtpu_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPURxPkts.setDescription('ruckusGTPURxPkts') ruckus_gtpu_rx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPURxBytes.setDescription('ruckusGTPURxBytes') ruckus_gtpu_tx_drops = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUTxDrops.setDescription('ruckusGTPUTxDrops') ruckus_gtpu_rx_drops = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPURxDrops.setDescription('ruckusGTPURxDrops') ruckus_gtpu_num_bad_gtpu = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUNumBadGTPU.setDescription('ruckusGTPUNumBadGTPU') ruckus_gtpu_num_rx_teid_invalid = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUNumRXTeidInvalid.setDescription('ruckusGTPUNumRXTeidInvalid') ruckus_gtpu_num_tx_teid_invalid = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUNumTXTeidInvalid.setDescription('ruckusGTPUNumTXTeidInvalid') ruckus_gtpu_num_of_echo_rx = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUNumOfEchoRX.setDescription('ruckusGTPUNumOfEchoRX') ruckus_gtpu_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUIndex.setDescription('ruckusGTPUIndex') ruckus_ggsngtpc_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5)) ruckus_ggsngtpc_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1)) if mibBuilder.loadTexts: ruckusGGSNGTPCTable.setDescription('ruckusGGSNGTPCTable') ruckus_ggsngtpc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusGGSNGTPCIndex')) if mibBuilder.loadTexts: ruckusGGSNGTPCEntry.setDescription('ruckusGGSNGTPCEntry') ruckus_ggsngtpc_ggsn_ip = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCGgsnIp.setDescription('ruckusGGSNGTPCGgsnIp') ruckus_ggsngtpc_num_act_pdp = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCNumActPdp.setDescription('ruckusGGSNGTPCNumActPdp') ruckus_ggsngtpc_succ_pdp_crt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpCrt.setDescription('ruckusGGSNGTPCSuccPdpCrt') ruckus_ggsngtpc_fail_pdp_crt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpCrt.setDescription('ruckusGGSNGTPCFailPdpCrt') ruckus_ggsngtpc_succ_pdp_upd_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdRcvd.setDescription('ruckusGGSNGTPCSuccPdpUpdRcvd') ruckus_ggsngtpc_fail_pdp_upd_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdRcvd.setDescription('ruckusGGSNGTPCFailPdpUpdRcvd') ruckus_ggsngtpc_succ_pdp_upd_init_rm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitRM.setDescription('ruckusGGSNGTPCSuccPdpUpdInitRM') ruckus_ggsngtpc_fail_pdp_upd_init_rm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitRM.setDescription('ruckusGGSNGTPCFailPdpUpdInitRM') ruckus_ggsngtpc_succ_pdp_upd_init_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitAAA.setDescription('ruckusGGSNGTPCSuccPdpUpdInitAAA') ruckus_ggsngtpc_fail_pdp_upd_init_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitAAA.setDescription('ruckusGGSNGTPCFailPdpUpdInitAAA') ruckus_ggsngtpc_succ_pdp_upd_init_hlr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitHLR.setDescription('ruckusGGSNGTPCSuccPdpUpdInitHLR') ruckus_ggsngtpc_fail_pdp_upd_init_hlr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitHLR.setDescription('ruckusGGSNGTPCFailPdpUpdInitHLR') ruckus_ggsngtpc_succ_del_pdp_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpRcvd.setDescription('ruckusGGSNGTPCSuccDelPdpRcvd') ruckus_ggsngtpc_fail_del_pdp_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpRcvd.setDescription('ruckusGGSNGTPCFailDelPdpRcvd') ruckus_ggsngtpc_succ_del_pdp_init_err = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitErr.setDescription('ruckusGGSNGTPCSuccDelPdpInitErr') ruckus_ggsngtpc_fail_del_pdp_init_err = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitErr.setDescription('ruckusGGSNGTPCFailDelPdpInitErr') ruckus_ggsngtpc_succ_del_pdp_init_dm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitDM.setDescription('ruckusGGSNGTPCSuccDelPdpInitDM') ruckus_ggsngtpc_fail_del_pdp_init_dm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitDM.setDescription('ruckusGGSNGTPCFailDelPdpInitDM') ruckus_ggsngtpc_succ_del_pdp_init_hlr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitHLR.setDescription('ruckusGGSNGTPCSuccDelPdpInitHLR') ruckus_ggsngtpc_fail_del_pdp_init_hlr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitHLR.setDescription('ruckusGGSNGTPCFailDelPdpInitHLR') ruckus_ggsngtpc_succ_del_pdp_init_scg = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitSCG.setDescription('ruckusGGSNGTPCSuccDelPdpInitSCG') ruckus_ggsngtpc_fail_del_pdp_init_scg = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitSCG.setDescription('ruckusGGSNGTPCFailDelPdpInitSCG') ruckus_ggsngtpc_succ_del_pdp_init_ap = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitAP.setDescription('ruckusGGSNGTPCSuccDelPdpInitAP') ruckus_ggsngtpc_fail_del_pdp_init_ap = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitAP.setDescription('ruckusGGSNGTPCFailDelPdpInitAP') ruckus_ggsngtpc_succ_del_pdp_init_d = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitD.setDescription('ruckusGGSNGTPCSuccDelPdpInitD') ruckus_ggsngtpc_fail_del_pdp_init_d = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitD.setDescription('ruckusGGSNGTPCFailDelPdpInitD') ruckus_ggsngtpc_succ_del_pdp_init_clnt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitClnt.setDescription('ruckusGGSNGTPCSuccDelPdpInitClnt') ruckus_ggsngtpc_fail_del_pdp_init_clnt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitClnt.setDescription('ruckusGGSNGTPCFailDelPdpInitClnt') ruckus_ggsngtpc_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCIndex.setDescription('ruckusGGSNGTPCIndex') ruckus_hlr_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7)) ruckus_hlr_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1)) if mibBuilder.loadTexts: ruckusHLRTable.setDescription('ruckusHLRTable') ruckus_hlr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusHLRIndex')) if mibBuilder.loadTexts: ruckusHLREntry.setDescription('ruckusHLREntry') ruckus_hlr_hlr_srvc_name = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRHlrSrvcName.setDescription('ruckusHLRHlrSrvcName') ruckus_hlr_num_suc_auth_info_req_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqSim.setDescription('ruckusHLRNumSucAuthInfoReqSim') ruckus_hlr_num_auth_info_rq_err_hlr_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrSim.setDescription('ruckusHLRNumAuthInfoRqErrHlrSim') ruckus_hlr_num_auth_info_rq_tmot_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotSim.setDescription('ruckusHLRNumAuthInfoRqTmotSim') ruckus_hlr_num_suc_auth_info_req_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqAka.setDescription('ruckusHLRNumSucAuthInfoReqAka') ruckus_hlr_num_auth_info_rq_err_hlr_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrAka.setDescription('ruckusHLRNumAuthInfoRqErrHlrAka') ruckus_hlr_num_auth_info_rq_tmot_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotAka.setDescription('ruckusHLRNumAuthInfoRqTmotAka') ruckus_hlr_num_upd_gprs_succ_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccSim.setDescription('ruckusHLRNumUpdGprsSuccSim') ruckus_hlr_num_upd_gprs_fail_err_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrSim.setDescription('ruckusHLRNumUpdGprsFailErrSim') ruckus_hlr_num_upd_gprs_fail_tmo_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoSim.setDescription('ruckusHLRNumUpdGprsFailTmoSim') ruckus_hlr_num_upd_gprs_succ_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccAka.setDescription('ruckusHLRNumUpdGprsSuccAka') ruckus_hlr_num_upd_gprs_fail_err_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrAka.setDescription('ruckusHLRNumUpdGprsFailErrAka') ruckus_hlr_num_upd_gprs_fail_tmo_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoAka.setDescription('ruckusHLRNumUpdGprsFailTmoAka') ruckus_hlr_num_rst_dta_succ_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccSim.setDescription('ruckusHLRNumRstDtaSuccSim') ruckus_hlr_num_rst_dta_fail_err_hlr_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrSim.setDescription('ruckusHLRNumRstDtaFailErrHlrSim') ruckus_hlr_num_rst_dta_fail_tmo_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoSim.setDescription('ruckusHLRNumRstDtaFailTmoSim') ruckus_hlr_num_rst_dta_succ_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccAka.setDescription('ruckusHLRNumRstDtaSuccAka') ruckus_hlr_num_rst_dta_fail_err_hlr_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrAka.setDescription('ruckusHLRNumRstDtaFailErrHlrAka') ruckus_hlr_num_rst_dta_fail_tmo_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoAka.setDescription('ruckusHLRNumRstDtaFailTmoAka') ruckus_hlr_num_insrt_dta_succ_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccSim.setDescription('ruckusHLRNumInsrtDtaSuccSim') ruckus_hlr_num_insrt_dta_fail_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailSim.setDescription('ruckusHLRNumInsrtDtaFailSim') ruckus_hlr_num_insrt_dta_succ_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccAka.setDescription('ruckusHLRNumInsrtDtaSuccAka') ruckus_hlr_num_insrt_dta_fail_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailAka.setDescription('ruckusHLRNumInsrtDtaFailAka') ruckus_hlr_num_sa_insrt_dta_succ = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaSucc.setDescription('ruckusHLRNumSaInsrtDtaSucc') ruckus_hlr_num_sa_insrt_dta_fail_unk_s = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailUnkS.setDescription('ruckusHLRNumSaInsrtDtaFailUnkS') ruckus_hlr_num_sa_insrt_dta_fail_err = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailErr.setDescription('ruckusHLRNumSaInsrtDtaFailErr') ruckus_hlr_num_cfg_assoc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumCfgAssoc.setDescription('ruckusHLRNumCfgAssoc') ruckus_hlr_num_act_assoc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumActAssoc.setDescription('ruckusHLRNumActAssoc') ruckus_hlr_num_rtg_fail = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 29), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRtgFail.setDescription('ruckusHLRNumRtgFail') ruckus_hlr_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRIndex.setDescription('ruckusHLRIndex') mibBuilder.exportSymbols('RUCKUS-SCG-TTG-MIB', PYSNMP_MODULE_ID=ruckusTTGMIB) mibBuilder.exportSymbols('RUCKUS-SCG-TTG-MIB', ruckusTTGMIB=ruckusTTGMIB, ruckusTTGObjects=ruckusTTGObjects, ruckusAAAInfo=ruckusAAAInfo, ruckusAAATable=ruckusAAATable, ruckusAAAEntry=ruckusAAAEntry, ruckusAAAAaaIp=ruckusAAAAaaIp, ruckusAAANumSuccAuthPerm=ruckusAAANumSuccAuthPerm, ruckusAAANumFailAuthPerm=ruckusAAANumFailAuthPerm, ruckusAAANumSuccAuthPsd=ruckusAAANumSuccAuthPsd, ruckusAAANumFailAuthPsd=ruckusAAANumFailAuthPsd, ruckusAAANumSuccFastAuth=ruckusAAANumSuccFastAuth, ruckusAAANumFailFastAuth=ruckusAAANumFailFastAuth, ruckusAAANumAuthUnknPsd=ruckusAAANumAuthUnknPsd, ruckusAAANumAuthUnknFR=ruckusAAANumAuthUnknFR, ruckusAAANumIncompleteAuth=ruckusAAANumIncompleteAuth, ruckusAAANumSuccAcc=ruckusAAANumSuccAcc, ruckusAAANumFailAcc=ruckusAAANumFailAcc, ruckusAAANumRadAcsRq=ruckusAAANumRadAcsRq, ruckusAAANumRadAcsAcpt=ruckusAAANumRadAcsAcpt, ruckusAAANumRadAcsChlg=ruckusAAANumRadAcsChlg, ruckusAAANumRadAcsRej=ruckusAAANumRadAcsRej, ruckusAAANumRadAccRq=ruckusAAANumRadAccRq, ruckusAAANumRadAccAcpt=ruckusAAANumRadAccAcpt, ruckusAAANumRadCoaRq=ruckusAAANumRadCoaRq, ruckusAAANumSuccCoaAcpt=ruckusAAANumSuccCoaAcpt, ruckusAAANumFailCoaAcpt=ruckusAAANumFailCoaAcpt, ruckusAAANumRadDmRq=ruckusAAANumRadDmRq, ruckusAAANumSuccDmAcpt=ruckusAAANumSuccDmAcpt, ruckusAAANumFailDmAcpt=ruckusAAANumFailDmAcpt, ruckusAAAIndex=ruckusAAAIndex, ruckusAAAProxyInfo=ruckusAAAProxyInfo, ruckusAAAProxyTable=ruckusAAAProxyTable, ruckusAAAProxyEntry=ruckusAAAProxyEntry, ruckusAAAProxyAaaIp=ruckusAAAProxyAaaIp, ruckusAAAProxyNumSuccAuth=ruckusAAAProxyNumSuccAuth, ruckusAAAProxyNumFailAuth=ruckusAAAProxyNumFailAuth, ruckusAAAProxyNumIncmpltAuth=ruckusAAAProxyNumIncmpltAuth, ruckusAAAProxyNumSuccAcc=ruckusAAAProxyNumSuccAcc, ruckusAAAProxyNumFailAcc=ruckusAAAProxyNumFailAcc, ruckusAAAProxyNumAcsRqRcvdNas=ruckusAAAProxyNumAcsRqRcvdNas, ruckusAAAProxyNumAcsRqSntAaa=ruckusAAAProxyNumAcsRqSntAaa, ruckusAAAProxyNumAcsChRcvdAaa=ruckusAAAProxyNumAcsChRcvdAaa, ruckusAAAProxyNumAcsChSntNas=ruckusAAAProxyNumAcsChSntNas, ruckusAAAProxyNumAcsAcpRcvdAaa=ruckusAAAProxyNumAcsAcpRcvdAaa, ruckusAAAProxyNumAcsAcpSntNas=ruckusAAAProxyNumAcsAcpSntNas, ruckusAAAProxyNumAcsRejRcvdAaa=ruckusAAAProxyNumAcsRejRcvdAaa, ruckusAAAProxyNumAcsRejSntNas=ruckusAAAProxyNumAcsRejSntNas, ruckusAAAProxyNumAccRqRcvdNas=ruckusAAAProxyNumAccRqRcvdNas, ruckusAAAProxyNumAccRqSntAaa=ruckusAAAProxyNumAccRqSntAaa, ruckusAAAProxyNumAccRspRcdAaa=ruckusAAAProxyNumAccRspRcdAaa, ruckusAAAProxyNumAccRspSntNas=ruckusAAAProxyNumAccRspSntNas, ruckusAAAProxyNumCoaRcvdAaa=ruckusAAAProxyNumCoaRcvdAaa, ruckusAAAProxyNumCoaSucSntAaa=ruckusAAAProxyNumCoaSucSntAaa, ruckusAAAProxyNumCoaFailSntAaa=ruckusAAAProxyNumCoaFailSntAaa, ruckusAAAProxyNumDmRcvdAaa=ruckusAAAProxyNumDmRcvdAaa, ruckusAAAProxyNumDmSntNas=ruckusAAAProxyNumDmSntNas, ruckusAAAProxyNumDmSucRcdNas=ruckusAAAProxyNumDmSucRcdNas, ruckusAAAProxyNumDmSucSntAaa=ruckusAAAProxyNumDmSucSntAaa, ruckusAAAProxyNumDmFailRcdNas=ruckusAAAProxyNumDmFailRcdNas, ruckusAAAProxyNumDmFailSntAaa=ruckusAAAProxyNumDmFailSntAaa, ruckusAAAProxyIndex=ruckusAAAProxyIndex, ruckusCGFInfo=ruckusCGFInfo, ruckusCGFTable=ruckusCGFTable, ruckusCGFEntry=ruckusCGFEntry, ruckusCGFCgfSrvcName=ruckusCGFCgfSrvcName, ruckusCGFCgfIp=ruckusCGFCgfIp, ruckusCGFNumSuccCdrTxfd=ruckusCGFNumSuccCdrTxfd, ruckusCGFNumCdrTxfrFail=ruckusCGFNumCdrTxfrFail, ruckusCGFNumCdrPossDup=ruckusCGFNumCdrPossDup, ruckusCGFNumCdrRlsReq=ruckusCGFNumCdrRlsReq, ruckusCGFNumCdrCnclReq=ruckusCGFNumCdrCnclReq, ruckusCGFNumDrtrReqSnt=ruckusCGFNumDrtrReqSnt, ruckusCGFNumDrtrSucRspRcvd=ruckusCGFNumDrtrSucRspRcvd, ruckusCGFNumDrtrFailRspRcvd=ruckusCGFNumDrtrFailRspRcvd, ruckusCGFIndex=ruckusCGFIndex, ruckusGTPUInfo=ruckusGTPUInfo, ruckusGTPUTable=ruckusGTPUTable, ruckusGTPUEntry=ruckusGTPUEntry, ruckusGTPUGgsnIPAddr=ruckusGTPUGgsnIPAddr, ruckusGTPUTxPkts=ruckusGTPUTxPkts, ruckusGTPUTxBytes=ruckusGTPUTxBytes, ruckusGTPURxPkts=ruckusGTPURxPkts, ruckusGTPURxBytes=ruckusGTPURxBytes, ruckusGTPUTxDrops=ruckusGTPUTxDrops, ruckusGTPURxDrops=ruckusGTPURxDrops, ruckusGTPUNumBadGTPU=ruckusGTPUNumBadGTPU, ruckusGTPUNumRXTeidInvalid=ruckusGTPUNumRXTeidInvalid, ruckusGTPUNumTXTeidInvalid=ruckusGTPUNumTXTeidInvalid, ruckusGTPUNumOfEchoRX=ruckusGTPUNumOfEchoRX, ruckusGTPUIndex=ruckusGTPUIndex, ruckusGGSNGTPCInfo=ruckusGGSNGTPCInfo, ruckusGGSNGTPCTable=ruckusGGSNGTPCTable, ruckusGGSNGTPCEntry=ruckusGGSNGTPCEntry, ruckusGGSNGTPCGgsnIp=ruckusGGSNGTPCGgsnIp, ruckusGGSNGTPCNumActPdp=ruckusGGSNGTPCNumActPdp, ruckusGGSNGTPCSuccPdpCrt=ruckusGGSNGTPCSuccPdpCrt, ruckusGGSNGTPCFailPdpCrt=ruckusGGSNGTPCFailPdpCrt, ruckusGGSNGTPCSuccPdpUpdRcvd=ruckusGGSNGTPCSuccPdpUpdRcvd, ruckusGGSNGTPCFailPdpUpdRcvd=ruckusGGSNGTPCFailPdpUpdRcvd, ruckusGGSNGTPCSuccPdpUpdInitRM=ruckusGGSNGTPCSuccPdpUpdInitRM, ruckusGGSNGTPCFailPdpUpdInitRM=ruckusGGSNGTPCFailPdpUpdInitRM, ruckusGGSNGTPCSuccPdpUpdInitAAA=ruckusGGSNGTPCSuccPdpUpdInitAAA, ruckusGGSNGTPCFailPdpUpdInitAAA=ruckusGGSNGTPCFailPdpUpdInitAAA, ruckusGGSNGTPCSuccPdpUpdInitHLR=ruckusGGSNGTPCSuccPdpUpdInitHLR, ruckusGGSNGTPCFailPdpUpdInitHLR=ruckusGGSNGTPCFailPdpUpdInitHLR, ruckusGGSNGTPCSuccDelPdpRcvd=ruckusGGSNGTPCSuccDelPdpRcvd, ruckusGGSNGTPCFailDelPdpRcvd=ruckusGGSNGTPCFailDelPdpRcvd, ruckusGGSNGTPCSuccDelPdpInitErr=ruckusGGSNGTPCSuccDelPdpInitErr, ruckusGGSNGTPCFailDelPdpInitErr=ruckusGGSNGTPCFailDelPdpInitErr, ruckusGGSNGTPCSuccDelPdpInitDM=ruckusGGSNGTPCSuccDelPdpInitDM, ruckusGGSNGTPCFailDelPdpInitDM=ruckusGGSNGTPCFailDelPdpInitDM, ruckusGGSNGTPCSuccDelPdpInitHLR=ruckusGGSNGTPCSuccDelPdpInitHLR, ruckusGGSNGTPCFailDelPdpInitHLR=ruckusGGSNGTPCFailDelPdpInitHLR, ruckusGGSNGTPCSuccDelPdpInitSCG=ruckusGGSNGTPCSuccDelPdpInitSCG, ruckusGGSNGTPCFailDelPdpInitSCG=ruckusGGSNGTPCFailDelPdpInitSCG, ruckusGGSNGTPCSuccDelPdpInitAP=ruckusGGSNGTPCSuccDelPdpInitAP, ruckusGGSNGTPCFailDelPdpInitAP=ruckusGGSNGTPCFailDelPdpInitAP, ruckusGGSNGTPCSuccDelPdpInitD=ruckusGGSNGTPCSuccDelPdpInitD, ruckusGGSNGTPCFailDelPdpInitD=ruckusGGSNGTPCFailDelPdpInitD, ruckusGGSNGTPCSuccDelPdpInitClnt=ruckusGGSNGTPCSuccDelPdpInitClnt, ruckusGGSNGTPCFailDelPdpInitClnt=ruckusGGSNGTPCFailDelPdpInitClnt, ruckusGGSNGTPCIndex=ruckusGGSNGTPCIndex, ruckusHLRInfo=ruckusHLRInfo, ruckusHLRTable=ruckusHLRTable, ruckusHLREntry=ruckusHLREntry, ruckusHLRHlrSrvcName=ruckusHLRHlrSrvcName) mibBuilder.exportSymbols('RUCKUS-SCG-TTG-MIB', ruckusHLRNumSucAuthInfoReqSim=ruckusHLRNumSucAuthInfoReqSim, ruckusHLRNumAuthInfoRqErrHlrSim=ruckusHLRNumAuthInfoRqErrHlrSim, ruckusHLRNumAuthInfoRqTmotSim=ruckusHLRNumAuthInfoRqTmotSim, ruckusHLRNumSucAuthInfoReqAka=ruckusHLRNumSucAuthInfoReqAka, ruckusHLRNumAuthInfoRqErrHlrAka=ruckusHLRNumAuthInfoRqErrHlrAka, ruckusHLRNumAuthInfoRqTmotAka=ruckusHLRNumAuthInfoRqTmotAka, ruckusHLRNumUpdGprsSuccSim=ruckusHLRNumUpdGprsSuccSim, ruckusHLRNumUpdGprsFailErrSim=ruckusHLRNumUpdGprsFailErrSim, ruckusHLRNumUpdGprsFailTmoSim=ruckusHLRNumUpdGprsFailTmoSim, ruckusHLRNumUpdGprsSuccAka=ruckusHLRNumUpdGprsSuccAka, ruckusHLRNumUpdGprsFailErrAka=ruckusHLRNumUpdGprsFailErrAka, ruckusHLRNumUpdGprsFailTmoAka=ruckusHLRNumUpdGprsFailTmoAka, ruckusHLRNumRstDtaSuccSim=ruckusHLRNumRstDtaSuccSim, ruckusHLRNumRstDtaFailErrHlrSim=ruckusHLRNumRstDtaFailErrHlrSim, ruckusHLRNumRstDtaFailTmoSim=ruckusHLRNumRstDtaFailTmoSim, ruckusHLRNumRstDtaSuccAka=ruckusHLRNumRstDtaSuccAka, ruckusHLRNumRstDtaFailErrHlrAka=ruckusHLRNumRstDtaFailErrHlrAka, ruckusHLRNumRstDtaFailTmoAka=ruckusHLRNumRstDtaFailTmoAka, ruckusHLRNumInsrtDtaSuccSim=ruckusHLRNumInsrtDtaSuccSim, ruckusHLRNumInsrtDtaFailSim=ruckusHLRNumInsrtDtaFailSim, ruckusHLRNumInsrtDtaSuccAka=ruckusHLRNumInsrtDtaSuccAka, ruckusHLRNumInsrtDtaFailAka=ruckusHLRNumInsrtDtaFailAka, ruckusHLRNumSaInsrtDtaSucc=ruckusHLRNumSaInsrtDtaSucc, ruckusHLRNumSaInsrtDtaFailUnkS=ruckusHLRNumSaInsrtDtaFailUnkS, ruckusHLRNumSaInsrtDtaFailErr=ruckusHLRNumSaInsrtDtaFailErr, ruckusHLRNumCfgAssoc=ruckusHLRNumCfgAssoc, ruckusHLRNumActAssoc=ruckusHLRNumActAssoc, ruckusHLRNumRtgFail=ruckusHLRNumRtgFail, ruckusHLRIndex=ruckusHLRIndex)
class Slot: def __init__(name, _type=None, item=None): self.name = name, if _type is not None: self.type = _type else: self.type = name self.item = item, def equip(self): pass def unequip(self): pass def show(self): pass
class Slot: def __init__(name, _type=None, item=None): self.name = (name,) if _type is not None: self.type = _type else: self.type = name self.item = (item,) def equip(self): pass def unequip(self): pass def show(self): pass
def test_modulemap(snapshot): snapshot.assert_match([1, 2, 4]) def test_runlist(): assert 1 == 1
def test_modulemap(snapshot): snapshot.assert_match([1, 2, 4]) def test_runlist(): assert 1 == 1
# Charlie Conneely # Dictionary parser file def parse(f): file = open(f, "r") words = file.read().split() file.close() return words if __name__ == "__main__": print("please run runner.py instead")
def parse(f): file = open(f, 'r') words = file.read().split() file.close() return words if __name__ == '__main__': print('please run runner.py instead')