content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
someone = input("Enter a famous name: ").strip().title()
place = input("Enter a place: ").strip().lower()
weekday = ""
while weekday not in ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]:
weekday = input("Enter a weekday: ").strip().lower()
adjective = input("Enter an adjective: ").strip().lower()
print(f"{someone} cycled to the {place} on {weekday} morning with an unidentifiable, and therefore {adjective} emotion.") | someone = input('Enter a famous name: ').strip().title()
place = input('Enter a place: ').strip().lower()
weekday = ''
while weekday not in ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday']:
weekday = input('Enter a weekday: ').strip().lower()
adjective = input('Enter an adjective: ').strip().lower()
print(f'{someone} cycled to the {place} on {weekday} morning with an unidentifiable, and therefore {adjective} emotion.') |
# Question: https://projecteuler.net/problem=73
# F(n) -> length of Farey Sequence (https://mathworld.wolfram.com/FareySequence.html)
N = 12000
# https://en.wikipedia.org/wiki/Farey_sequence#Next_term
# From 0/1 to end_n/end_d
def farey_sequence_length(end_n, end_d, n):
a, b, c, d = 0, 1, 1, n
ans = 1
while not (a == end_n and b == end_d):
x = (n + b) // d
a, b, c, d = c, d, x * c - a, x * d - b
ans = ans + 1
return ans
print(farey_sequence_length(1,2,12000)-farey_sequence_length(1,3,12000) - 1)
| n = 12000
def farey_sequence_length(end_n, end_d, n):
(a, b, c, d) = (0, 1, 1, n)
ans = 1
while not (a == end_n and b == end_d):
x = (n + b) // d
(a, b, c, d) = (c, d, x * c - a, x * d - b)
ans = ans + 1
return ans
print(farey_sequence_length(1, 2, 12000) - farey_sequence_length(1, 3, 12000) - 1) |
#
# PySNMP MIB module RDN-CMTS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RDN-CMTS-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:46:17 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)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint")
docsIfCmtsCmStatusIpAddress, TenthdB, TenthdBmV, docsIfUpChannelId, docsIfCmtsCmStatusEntry, docsIfCmtsCmStatusMacAddress, docsIfCmtsCmStatusIndex, DocsisQosVersion, docsIfCmtsCmStatusDocsisRegMode, docsIfDownChannelId, DocsisUpstreamType = mibBuilder.importSymbols("DOCS-IF-MIB", "docsIfCmtsCmStatusIpAddress", "TenthdB", "TenthdBmV", "docsIfUpChannelId", "docsIfCmtsCmStatusEntry", "docsIfCmtsCmStatusMacAddress", "docsIfCmtsCmStatusIndex", "DocsisQosVersion", "docsIfCmtsCmStatusDocsisRegMode", "docsIfDownChannelId", "DocsisUpstreamType")
IfDirection, docsIf3CmtsCmRegStatusIPv6Addr = mibBuilder.importSymbols("DOCS-IF3-MIB", "IfDirection", "docsIf3CmtsCmRegStatusIPv6Addr")
docsQosServiceClassName, = mibBuilder.importSymbols("DOCS-QOS3-MIB", "docsQosServiceClassName")
IpV4orV6Addr, = mibBuilder.importSymbols("DOCS-SUBMGT-MIB", "IpV4orV6Addr")
ifAdminStatus, ifDescr, InterfaceIndexOrZero, InterfaceIndex, ifType, ifIndex, ifOperStatus = mibBuilder.importSymbols("IF-MIB", "ifAdminStatus", "ifDescr", "InterfaceIndexOrZero", "InterfaceIndex", "ifType", "ifIndex", "ifOperStatus")
InetAddressIPv6, InetAddress, InetAddressType, InetPortNumber = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressIPv6", "InetAddress", "InetAddressType", "InetPortNumber")
rdnSpectrumGroupName, = mibBuilder.importSymbols("RDN-CABLE-SPECTRUM-GROUP-MIB", "rdnSpectrumGroupName")
riverdelta, = mibBuilder.importSymbols("RDN-MIB", "riverdelta")
rdnPktDQoSClassName, = mibBuilder.importSymbols("RDN-PKTCABLE-GROUP-MIB", "rdnPktDQoSClassName")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
Gauge32, MibIdentifier, NotificationType, Unsigned32, Counter32, TimeTicks, ObjectIdentity, Integer32, Counter64, Bits, ModuleIdentity, iso, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "MibIdentifier", "NotificationType", "Unsigned32", "Counter32", "TimeTicks", "ObjectIdentity", "Integer32", "Counter64", "Bits", "ModuleIdentity", "iso", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
DisplayString, TimeInterval, MacAddress, RowStatus, TruthValue, TextualConvention, TimeStamp = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeInterval", "MacAddress", "RowStatus", "TruthValue", "TextualConvention", "TimeStamp")
rdnCmtsMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 4981, 2))
rdnCmtsMib.setRevisions(('2011-03-08 00:00', '2011-02-23 00:00', '2009-11-20 00:00', '2008-08-08 00:00', '2007-06-21 00:00', '2006-05-25 00:00', '2006-05-24 00:00', '2006-04-17 00:00', '2006-01-25 00:00', '2006-01-23 00:00', '2006-01-13 00:00', '2005-03-18 00:00', '2005-02-22 00:00', '2004-08-17 00:00', '1904-04-14 00:00', '2003-12-16 00:00', '2003-11-05 00:00', '2003-11-03 00:00', '2003-07-20 00:00', '2003-05-01 00:00', '2000-04-03 00:00',))
if mibBuilder.loadTexts: rdnCmtsMib.setLastUpdated('201103080000Z')
if mibBuilder.loadTexts: rdnCmtsMib.setOrganization('Motorola')
rdnCmtsIfObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 1))
rdnCmtsMiscObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 2))
rdnCmtsDownstreamChannelTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 1, 1), )
if mibBuilder.loadTexts: rdnCmtsDownstreamChannelTable.setStatus('current')
rdnCmtsDownstreamChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: rdnCmtsDownstreamChannelEntry.setStatus('current')
rdnCmtsDSModulation = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 1, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsDSModulation.setStatus('current')
rdnCmtsUpstreamChannelTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2), )
if mibBuilder.loadTexts: rdnCmtsUpstreamChannelTable.setStatus('current')
rdnCmtsUpstreamChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: rdnCmtsUpstreamChannelEntry.setStatus('current')
rdnCmtsUSNominalRxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-160, 290))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsUSNominalRxPower.setStatus('current')
rdnCmtsUSNominalRxPowerMode = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("default", 0), ("absolute", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsUSNominalRxPowerMode.setStatus('current')
rdnCmtsUSInvitedRangingInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 30000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsUSInvitedRangingInterval.setStatus('current')
rdnCmtsUSRangingResponseControl = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("normal", 0), ("override", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsUSRangingResponseControl.setStatus('current')
rdnCmtsUSRangingPowerOverride = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 5), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsUSRangingPowerOverride.setStatus('current')
rdnCmtsUSTotalModemCount = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCmtsUSTotalModemCount.setStatus('current')
rdnCmtsUSRegisteredModemCount = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCmtsUSRegisteredModemCount.setStatus('current')
rdnCmtsUSUnregisteredModemCount = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCmtsUSUnregisteredModemCount.setStatus('current')
rdnCmtsUSOfflineModemCount = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCmtsUSOfflineModemCount.setStatus('current')
rdnCmtsStpObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 1, 3))
rdnCmtsStpEnable = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 1, 3, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsStpEnable.setStatus('current')
rdnCmtsStpTCNEnable = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 1, 3, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsStpTCNEnable.setStatus('current')
rdnCmtsLinkUpDownTrapEnableTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 1, 4), )
if mibBuilder.loadTexts: rdnCmtsLinkUpDownTrapEnableTable.setStatus('current')
rdnCmtsLinkUpDownTrapEnableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: rdnCmtsLinkUpDownTrapEnableEntry.setStatus('current')
rdnCmtsLinkUpDownTrapEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsLinkUpDownTrapEnable.setStatus('current')
rdnCmtsSaveConfig = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsSaveConfig.setStatus('current')
rdnCmtsCmResetByMacAddr = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 2), MacAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsCmResetByMacAddr.setStatus('current')
rdnCmtsCmResetByIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsCmResetByIpAddr.setStatus('current')
rdnCmtsCmResetAll = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 4), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsCmResetAll.setStatus('current')
rdnCmtsHostAuthControl = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(17, 17)).setFixedLength(17)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsHostAuthControl.setStatus('obsolete')
rdnCmtsModemAgingTimer = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(10, 30240), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsModemAgingTimer.setStatus('current')
rdnCmtsCpeToCmObject = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7))
rdnCmtsCpeToCmTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7, 1), )
if mibBuilder.loadTexts: rdnCmtsCpeToCmTable.setStatus('current')
rdnCmtsCpeToCmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7, 1, 1), ).setIndexNames((0, "RDN-CMTS-MIB", "rdnCmtsCpeMac"))
if mibBuilder.loadTexts: rdnCmtsCpeToCmEntry.setStatus('current')
rdnCmtsCpeMac = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7, 1, 1, 1), MacAddress())
if mibBuilder.loadTexts: rdnCmtsCpeMac.setStatus('current')
rdnCmtsCmMac = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7, 1, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCmtsCmMac.setStatus('current')
rdnIfCmtsCmStatusTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8), )
if mibBuilder.loadTexts: rdnIfCmtsCmStatusTable.setStatus('current')
rdnIfCmtsCmStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1), )
docsIfCmtsCmStatusEntry.registerAugmentions(("RDN-CMTS-MIB", "rdnIfCmtsCmStatusEntry"))
rdnIfCmtsCmStatusEntry.setIndexNames(*docsIfCmtsCmStatusEntry.getIndexNames())
if mibBuilder.loadTexts: rdnIfCmtsCmStatusEntry.setStatus('current')
rdnIfCmtsCmStatusRegistrationTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusRegistrationTime.setStatus('current')
rdnIfCmtsCmStatusTxUnicastKbytes = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusTxUnicastKbytes.setStatus('current')
rdnIfCmtsCmStatusRxUnicastKbytes = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusRxUnicastKbytes.setStatus('current')
rdnIfCmtsCmStatusTxUnicastExtKbytes = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusTxUnicastExtKbytes.setStatus('current')
rdnIfCmtsCmStatusRxUnicastExtKbytes = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 5), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusRxUnicastExtKbytes.setStatus('current')
rdnIfCmtsCmStatusSpectrumGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusSpectrumGroupName.setStatus('current')
rdnIfCmtsCmStatusUpstreamPort = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusUpstreamPort.setStatus('current')
rdnIfCmtsCmStatusDownStreamPort = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusDownStreamPort.setStatus('current')
rdnIfCmtsCmStatusValue = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20))).clone(namedValues=NamedValues(("init-o", 1), ("init-t", 2), ("init-r1", 3), ("init-r2", 4), ("init-rc", 5), ("dhcp-d", 6), ("dhcp-o", 7), ("dhcp-req", 8), ("dhcp-ack", 9), ("online", 10), ("online-d", 11), ("online-un", 12), ("online-pk", 13), ("online-pt", 14), ("reject-m", 15), ("reject-c", 16), ("reject-r", 17), ("reject-pk", 18), ("reject-pt", 19), ("offline", 20)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusValue.setStatus('current')
rdnIfCmtsCmStatusDSBondingGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusDSBondingGroupId.setStatus('current')
rdnIfCmtsCmStatusOnlineTimes = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusOnlineTimes.setStatus('current')
rdnIfCmtsCmStatusPercentOnline = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusPercentOnline.setStatus('current')
rdnIfCmtsCmStatusMinOnlineTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 13), TimeInterval()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusMinOnlineTime.setStatus('current')
rdnIfCmtsCmStatusAvgOnlineTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 14), TimeInterval()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusAvgOnlineTime.setStatus('current')
rdnIfCmtsCmStatusMaxOnlineTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 15), TimeInterval()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusMaxOnlineTime.setStatus('current')
rdnIfCmtsCmStatusMinOfflineTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 16), TimeInterval()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusMinOfflineTime.setStatus('current')
rdnIfCmtsCmStatusAvgOfflineTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 17), TimeInterval()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusAvgOfflineTime.setStatus('current')
rdnIfCmtsCmStatusMaxOfflineTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 18), TimeInterval()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmStatusMaxOfflineTime.setStatus('current')
rdnModemDeregReason = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))).clone(namedValues=NamedValues(("normal", 1), ("operatorReset", 2), ("operatorDisabled", 3), ("operatorDeleted", 4), ("transmissionFailed", 5), ("transmissionDisabled", 6), ("transmissionDeleted", 7), ("servingGroupChanged", 8), ("receiverFailed", 9), ("receiverDisabled", 10), ("receiverDeleted", 11), ("channelDeleted", 12), ("channelErrors", 13), ("incompleteReg", 14), ("profileUpdateComplete", 15), ("skeyFailure", 16), ("dnChanChangeFailure", 17), ("noDeregReason", 18), ("powerTolerance", 19), ("freqTolerance", 20), ("timingTolerance", 21), ("rangingTolerance", 22), ("noResponseUCC", 23)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnModemDeregReason.setStatus('current')
rdnModemRegIndex = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnModemRegIndex.setStatus('current')
rdnCmToCpeTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12), )
if mibBuilder.loadTexts: rdnCmToCpeTable.setStatus('current')
rdnCmToCpeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1), ).setIndexNames((0, "DOCS-IF-MIB", "docsIfCmtsCmStatusIndex"), (0, "RDN-CMTS-MIB", "rdnCmToCpeIndex"))
if mibBuilder.loadTexts: rdnCmToCpeEntry.setStatus('current')
rdnCmToCpeIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: rdnCmToCpeIndex.setStatus('current')
rdnCmToCpeMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCmToCpeMacAddress.setStatus('current')
rdnCmToCpeIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCmToCpeIpAddress.setStatus('current')
rdnCmToCpeIPv6Addr = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1, 4), InetAddressIPv6()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCmToCpeIPv6Addr.setStatus('current')
rdnCmtsCmRegisteredTrapEnable = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsCmRegisteredTrapEnable.setStatus('current')
rdnCmtsCardType = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("domestic", 1), ("japan", 2))).clone('domestic')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsCardType.setStatus('current')
rdnRQueryCmtsCmStatusTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15), )
if mibBuilder.loadTexts: rdnRQueryCmtsCmStatusTable.setStatus('current')
rdnRQueryCmtsCmStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1), ).setIndexNames((0, "DOCS-IF-MIB", "docsIfCmtsCmStatusIndex"))
if mibBuilder.loadTexts: rdnRQueryCmtsCmStatusEntry.setStatus('current')
rdnRQueryCmtsCmDownChannelPower = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 1), TenthdBmV()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQueryCmtsCmDownChannelPower.setStatus('current')
rdnRQueryCmStatusTxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 2), TenthdBmV()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQueryCmStatusTxPower.setStatus('current')
rdnRQueryUpChannelTxTimingOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQueryUpChannelTxTimingOffset.setStatus('current')
rdnRQuerySigQSignalNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 4), TenthdB()).setUnits('dB').setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQuerySigQSignalNoise.setStatus('current')
rdnRQuerySigQMicroreflections = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setUnits('dBc').setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQuerySigQMicroreflections.setStatus('current')
rdnRQueryPollTime = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 6), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQueryPollTime.setStatus('current')
rdnCmtsServiceClassObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19))
rdnCmtsServiceClassTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1), )
if mibBuilder.loadTexts: rdnCmtsServiceClassTable.setStatus('current')
rdnCmtsServiceClassEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1), ).setIndexNames((0, "RDN-CMTS-MIB", "rdnCmtsServiceClassName"))
if mibBuilder.loadTexts: rdnCmtsServiceClassEntry.setStatus('current')
rdnCmtsServiceClassName = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 15)))
if mibBuilder.loadTexts: rdnCmtsServiceClassName.setStatus('current')
rdnCmtsServiceClassMab = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 2), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsServiceClassMab.setStatus('current')
rdnCmtsServiceClassCap = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 3), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsServiceClassCap.setStatus('current')
rdnCmtsServiceClassSchedulingPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 4), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsServiceClassSchedulingPriority.setStatus('current')
rdnCmtsServiceClassAdmittedBWThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 5), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsServiceClassAdmittedBWThreshold.setStatus('current')
rdnCmtsServiceClassAllowShare = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 6), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsServiceClassAllowShare.setStatus('current')
rdnUgsStatsWindow = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5, 120), )).clone(60)).setUnits('minutes').setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnUgsStatsWindow.setStatus('current')
rdnCableUgsStatsTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17), )
if mibBuilder.loadTexts: rdnCableUgsStatsTable.setStatus('current')
rdnCableUgsStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: rdnCableUgsStatsEntry.setStatus('current')
rdnCableUgsStatsSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableUgsStatsSlot.setStatus('current')
rdnCableUgsStatsPort = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableUgsStatsPort.setStatus('current')
rdnCableUgsCurrentTotalFlows = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableUgsCurrentTotalFlows.setStatus('current')
rdnCableUgsMaxFlowsLastFiveMinutes = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableUgsMaxFlowsLastFiveMinutes.setStatus('current')
rdnCableUgsAvFlowsLastFiveMinutes = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableUgsAvFlowsLastFiveMinutes.setStatus('current')
rdnCableUgsMinFlowsLastFiveMinutes = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableUgsMinFlowsLastFiveMinutes.setStatus('current')
rdnCableUgsMaxFlowsLastWindow = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableUgsMaxFlowsLastWindow.setStatus('current')
rdnCableUgsAvFlowsLastWindow = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableUgsAvFlowsLastWindow.setStatus('current')
rdnCableUgsMinFlowsLastWindow = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableUgsMinFlowsLastWindow.setStatus('current')
rdnCableUgsResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 10), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCableUgsResetStats.setStatus('current')
rdnServiceClassStatsTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18), )
if mibBuilder.loadTexts: rdnServiceClassStatsTable.setStatus('current')
rdnServiceClassStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "DOCS-QOS3-MIB", "docsQosServiceClassName"))
if mibBuilder.loadTexts: rdnServiceClassStatsEntry.setStatus('current')
rdnServiceClassStatsIfDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 1), IfDirection()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassStatsIfDirection.setStatus('current')
rdnServiceClassStatsSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassStatsSlot.setStatus('current')
rdnServiceClassStatsPort = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassStatsPort.setStatus('current')
rdnServiceClassStatsTotalPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassStatsTotalPackets.setStatus('current')
rdnServiceClassStatsTotalBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassStatsTotalBytes.setStatus('current')
rdnServiceClassCurrentTotalFlows = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassCurrentTotalFlows.setStatus('current')
rdnServiceClassDeferredFlows = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassDeferredFlows.setStatus('current')
rdnServiceClassRestrictedFlows = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassRestrictedFlows.setStatus('current')
rdnServiceClassRejectedFlows = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassRejectedFlows.setStatus('current')
rdnServiceClassBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassBandWidth.setStatus('current')
rdnServiceClassResetStats = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 11), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnServiceClassResetStats.setStatus('current')
rdnRQueryCmtsCmStatusExtTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 20), )
if mibBuilder.loadTexts: rdnRQueryCmtsCmStatusExtTable.setStatus('current')
rdnRQueryCmtsCmStatusExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 20, 1), )
rdnRQueryCmtsCmStatusEntry.registerAugmentions(("RDN-CMTS-MIB", "rdnRQueryCmtsCmStatusExtEntry"))
rdnRQueryCmtsCmStatusExtEntry.setIndexNames(*rdnRQueryCmtsCmStatusEntry.getIndexNames())
if mibBuilder.loadTexts: rdnRQueryCmtsCmStatusExtEntry.setStatus('current')
rdnRQuerySwCurrentVers = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 20, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQuerySwCurrentVers.setStatus('current')
rdnRQueryServerConfigFile = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 20, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQueryServerConfigFile.setStatus('current')
rdnIfCmtsCmTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 21), )
if mibBuilder.loadTexts: rdnIfCmtsCmTable.setStatus('current')
rdnIfCmtsCmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 21, 1), )
docsIfCmtsCmStatusEntry.registerAugmentions(("RDN-CMTS-MIB", "rdnIfCmtsCmEntry"))
rdnIfCmtsCmEntry.setIndexNames(*docsIfCmtsCmStatusEntry.getIndexNames())
if mibBuilder.loadTexts: rdnIfCmtsCmEntry.setStatus('current')
rdnIfCmtsCmMaxCpeNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 21, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnIfCmtsCmMaxCpeNumber.setStatus('current')
rdnIfCmtsCmCurrCpeNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 21, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsCmCurrCpeNumber.setStatus('current')
rdnIfCmtsMTAOnlyStatusTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23), )
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusTable.setStatus('current')
rdnIfCmtsMTAOnlyStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1), ).setIndexNames((0, "RDN-CMTS-MIB", "rdnIfCmtsMTAOnlyStatusIndex"))
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusEntry.setStatus('current')
rdnIfCmtsMTAOnlyStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)))
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusIndex.setStatus('current')
rdnIfCmtsMTAOnlyStatusMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusMacAddress.setStatus('current')
rdnIfCmtsMTAOnlyStatusIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusIpAddress.setStatus('deprecated')
rdnIfCmtsMTAOnlyStatusDownChannelIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusDownChannelIfIndex.setStatus('current')
rdnIfCmtsMTAOnlyStatusUpChannelIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 5), InterfaceIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusUpChannelIfIndex.setStatus('current')
rdnIfCmtsMTAOnlyStatusRxPower = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 6), TenthdBmV()).setUnits('dBmV').setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusRxPower.setStatus('current')
rdnIfCmtsMTAOnlyStatusTimingOffset = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusTimingOffset.setStatus('current')
rdnIfCmtsMTAOnlyStatusEqualizationData = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 8), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusEqualizationData.setStatus('current')
rdnIfCmtsMTAOnlyStatusValue = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("ranging", 2), ("rangingAborted", 3), ("rangingComplete", 4), ("ipComplete", 5), ("registrationComplete", 6), ("accessDenied", 7), ("operational", 8), ("registeredBPIInitializing", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusValue.setStatus('current')
rdnIfCmtsMTAOnlyStatusUnerroreds = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusUnerroreds.setStatus('current')
rdnIfCmtsMTAOnlyStatusCorrecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusCorrecteds.setStatus('current')
rdnIfCmtsMTAOnlyStatusUncorrectables = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusUncorrectables.setStatus('current')
rdnIfCmtsMTAOnlyStatusSignalNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 13), TenthdB()).setUnits('dB').setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusSignalNoise.setStatus('current')
rdnIfCmtsMTAOnlyStatusMicroreflections = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setUnits('dBc').setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusMicroreflections.setStatus('current')
rdnIfCmtsMTAOnlyStatusExtUnerroreds = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 15), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusExtUnerroreds.setStatus('current')
rdnIfCmtsMTAOnlyStatusExtCorrecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 16), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusExtCorrecteds.setStatus('current')
rdnIfCmtsMTAOnlyStatusExtUncorrectables = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 17), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusExtUncorrectables.setStatus('current')
rdnIfCmtsMTAOnlyStatusDocsisRegMode = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 18), DocsisQosVersion()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusDocsisRegMode.setStatus('current')
rdnIfCmtsMTAOnlyStatusModulationType = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 19), DocsisUpstreamType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusModulationType.setStatus('current')
rdnIfCmtsMTAOnlyStatusInetAddressType = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 20), InetAddressType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusInetAddressType.setStatus('current')
rdnIfCmtsMTAOnlyStatusInetAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 21), InetAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusInetAddress.setStatus('current')
rdnIfCmtsMTAOnlyStatusValueLastUpdate = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 22), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsMTAOnlyStatusValueLastUpdate.setStatus('current')
rdnServiceClassBondingStatsTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24), )
if mibBuilder.loadTexts: rdnServiceClassBondingStatsTable.setStatus('current')
rdnServiceClassBondingStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "RDN-CMTS-MIB", "rdnServiceClassBondingStatsIfDirection"), (0, "DOCS-QOS3-MIB", "docsQosServiceClassName"), (0, "RDN-CMTS-MIB", "rdnServiceClassBondingStatsMacIfIndex"), (0, "RDN-CMTS-MIB", "rdnServiceClassBondingStatsGroupId"))
if mibBuilder.loadTexts: rdnServiceClassBondingStatsEntry.setStatus('current')
rdnServiceClassBondingStatsMacIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 1), InterfaceIndex())
if mibBuilder.loadTexts: rdnServiceClassBondingStatsMacIfIndex.setStatus('current')
rdnServiceClassBondingStatsGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)))
if mibBuilder.loadTexts: rdnServiceClassBondingStatsGroupId.setStatus('current')
rdnServiceClassBondingStatsIfDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 3), IfDirection())
if mibBuilder.loadTexts: rdnServiceClassBondingStatsIfDirection.setStatus('current')
rdnServiceClassBondingStatsSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassBondingStatsSlot.setStatus('current')
rdnServiceClassBondingStatsChan = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassBondingStatsChan.setStatus('current')
rdnServiceClassBondingCurrentTotalFlows = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassBondingCurrentTotalFlows.setStatus('current')
rdnServiceClassBondingDeferredFlows = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassBondingDeferredFlows.setStatus('current')
rdnServiceClassBondingRestrictedFlows = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassBondingRestrictedFlows.setStatus('current')
rdnServiceClassBondingRejectedFlows = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassBondingRejectedFlows.setStatus('current')
rdnServiceClassBondingBandWidth = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnServiceClassBondingBandWidth.setStatus('current')
rdnCmtsCmResetByIpv6Addr = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 25), InetAddressIPv6()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rdnCmtsCmResetByIpv6Addr.setStatus('current')
rdnCmtsMibNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 4))
rdnCmtsMibNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0))
rdnCmtsMibNotificationObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 4, 1))
rdnCmtsCmRegisteredNotification = NotificationType((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 1)).setObjects(("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusIpAddress"), ("DOCS-IF3-MIB", "docsIf3CmtsCmRegStatusIPv6Addr"), ("DOCS-IF-MIB", "docsIfUpChannelId"), ("DOCS-IF-MIB", "docsIfDownChannelId"), ("RDN-CMTS-MIB", "rdnModemRegIndex"), ("RDN-CABLE-SPECTRUM-GROUP-MIB", "rdnSpectrumGroupName"))
if mibBuilder.loadTexts: rdnCmtsCmRegisteredNotification.setStatus('current')
rdnCmtsCmDeregisteredNotification = NotificationType((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 2)).setObjects(("DOCS-IF-MIB", "docsIfCmtsCmStatusDocsisRegMode"), ("DOCS-IF-MIB", "docsIfCmtsCmStatusMacAddress"), ("DOCS-IF-MIB", "docsIfUpChannelId"), ("DOCS-IF-MIB", "docsIfDownChannelId"), ("RDN-CMTS-MIB", "rdnModemRegIndex"), ("RDN-CMTS-MIB", "rdnModemDeregReason"), ("RDN-CABLE-SPECTRUM-GROUP-MIB", "rdnSpectrumGroupName"))
if mibBuilder.loadTexts: rdnCmtsCmDeregisteredNotification.setStatus('current')
rdnCmtsUpstreamIfLinkUpTrap = NotificationType((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 3)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("IF-MIB", "ifType"), ("IF-MIB", "ifAdminStatus"), ("IF-MIB", "ifOperStatus"), ("RDN-CABLE-SPECTRUM-GROUP-MIB", "rdnSpectrumGroupName"))
if mibBuilder.loadTexts: rdnCmtsUpstreamIfLinkUpTrap.setStatus('current')
rdnCmtsUpstreamIfLinkDownTrap = NotificationType((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 4)).setObjects(("IF-MIB", "ifIndex"), ("IF-MIB", "ifDescr"), ("IF-MIB", "ifType"), ("IF-MIB", "ifAdminStatus"), ("IF-MIB", "ifOperStatus"), ("RDN-CABLE-SPECTRUM-GROUP-MIB", "rdnSpectrumGroupName"))
if mibBuilder.loadTexts: rdnCmtsUpstreamIfLinkDownTrap.setStatus('current')
rdnRQueryPollDoneNotification = NotificationType((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 5)).setObjects(("RDN-CMTS-MIB", "rdnRQueryLastPollStartTime"), ("RDN-CMTS-MIB", "rdnRQueryLastPollStopTime"))
if mibBuilder.loadTexts: rdnRQueryPollDoneNotification.setStatus('current')
rdnPktDQoSAdmittedBwThresholdTrap = NotificationType((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 6)).setObjects(("RDN-CMTS-MIB", "rdnPktDQoSAdmittedBwThresholdReason"), ("RDN-PKTCABLE-GROUP-MIB", "rdnPktDQoSClassName"))
if mibBuilder.loadTexts: rdnPktDQoSAdmittedBwThresholdTrap.setStatus('current')
rdnRQueryLastPollStartTime = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 4, 1, 1), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQueryLastPollStartTime.setStatus('current')
rdnRQueryLastPollStopTime = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 4, 1, 2), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnRQueryLastPollStopTime.setStatus('current')
rdnPktDQoSAdmittedBwThresholdReason = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("admittedBwExceedsThreshold", 1), ("admittedBwClearsOfThreshold", 2)))).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: rdnPktDQoSAdmittedBwThresholdReason.setStatus('current')
rdnCmtsMibConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 5))
rdnCmtsCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 5, 1))
rdnCmtsMibGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 5, 2))
rdnCmtsMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4981, 2, 5, 1, 1)).setObjects(("RDN-CMTS-MIB", "rdnCmtsIfGroup"), ("RDN-CMTS-MIB", "rdnCmtsMiscGroup"), ("RDN-CMTS-MIB", "rdnCmtsNotificationsGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdnCmtsMibCompliance = rdnCmtsMibCompliance.setStatus('current')
rdnCmtsIfGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4981, 2, 5, 2, 1)).setObjects(("RDN-CMTS-MIB", "rdnCmtsDSModulation"), ("RDN-CMTS-MIB", "rdnCmtsUSNominalRxPower"), ("RDN-CMTS-MIB", "rdnCmtsUSInvitedRangingInterval"), ("RDN-CMTS-MIB", "rdnCmtsUSRangingResponseControl"), ("RDN-CMTS-MIB", "rdnCmtsUSRangingPowerOverride"), ("RDN-CMTS-MIB", "rdnCmtsUSNominalRxPowerMode"), ("RDN-CMTS-MIB", "rdnCmtsStpTCNEnable"), ("RDN-CMTS-MIB", "rdnCmtsLinkUpDownTrapEnable"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdnCmtsIfGroup = rdnCmtsIfGroup.setStatus('current')
rdnCmtsMiscGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4981, 2, 5, 2, 2)).setObjects(("RDN-CMTS-MIB", "rdnCmtsSaveConfig"), ("RDN-CMTS-MIB", "rdnCmtsCmResetByMacAddr"), ("RDN-CMTS-MIB", "rdnCmtsCmResetByIpAddr"), ("RDN-CMTS-MIB", "rdnCmtsCmResetAll"), ("RDN-CMTS-MIB", "rdnCmtsModemAgingTimer"), ("RDN-CMTS-MIB", "rdnCmtsCmMac"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusRegistrationTime"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusTxUnicastKbytes"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusRxUnicastKbytes"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusTxUnicastExtKbytes"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusRxUnicastExtKbytes"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusSpectrumGroupName"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusUpstreamPort"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusDownStreamPort"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusValue"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusDSBondingGroupId"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusOnlineTimes"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusPercentOnline"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusMinOnlineTime"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusAvgOnlineTime"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusMaxOnlineTime"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusMinOfflineTime"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusAvgOfflineTime"), ("RDN-CMTS-MIB", "rdnIfCmtsCmStatusMaxOfflineTime"), ("RDN-CMTS-MIB", "rdnModemDeregReason"), ("RDN-CMTS-MIB", "rdnModemRegIndex"), ("RDN-CMTS-MIB", "rdnCmToCpeMacAddress"), ("RDN-CMTS-MIB", "rdnCmToCpeIpAddress"), ("RDN-CMTS-MIB", "rdnCmtsCmRegisteredTrapEnable"), ("RDN-CMTS-MIB", "rdnCmtsCardType"), ("RDN-CMTS-MIB", "rdnRQueryCmtsCmDownChannelPower"), ("RDN-CMTS-MIB", "rdnRQueryCmStatusTxPower"), ("RDN-CMTS-MIB", "rdnRQueryUpChannelTxTimingOffset"), ("RDN-CMTS-MIB", "rdnRQuerySigQSignalNoise"), ("RDN-CMTS-MIB", "rdnRQuerySigQMicroreflections"), ("RDN-CMTS-MIB", "rdnRQueryPollTime"), ("RDN-CMTS-MIB", "rdnUgsStatsWindow"), ("RDN-CMTS-MIB", "rdnCableUgsStatsSlot"), ("RDN-CMTS-MIB", "rdnCableUgsStatsPort"), ("RDN-CMTS-MIB", "rdnCableUgsCurrentTotalFlows"), ("RDN-CMTS-MIB", "rdnCableUgsMaxFlowsLastFiveMinutes"), ("RDN-CMTS-MIB", "rdnCableUgsAvFlowsLastFiveMinutes"), ("RDN-CMTS-MIB", "rdnCableUgsMinFlowsLastFiveMinutes"), ("RDN-CMTS-MIB", "rdnCableUgsMaxFlowsLastWindow"), ("RDN-CMTS-MIB", "rdnCableUgsAvFlowsLastWindow"), ("RDN-CMTS-MIB", "rdnCableUgsMinFlowsLastWindow"), ("RDN-CMTS-MIB", "rdnCableUgsResetStats"), ("RDN-CMTS-MIB", "rdnServiceClassStatsIfDirection"), ("RDN-CMTS-MIB", "rdnServiceClassStatsSlot"), ("RDN-CMTS-MIB", "rdnServiceClassStatsPort"), ("RDN-CMTS-MIB", "rdnServiceClassStatsTotalPackets"), ("RDN-CMTS-MIB", "rdnServiceClassStatsTotalBytes"), ("RDN-CMTS-MIB", "rdnServiceClassCurrentTotalFlows"), ("RDN-CMTS-MIB", "rdnServiceClassDeferredFlows"), ("RDN-CMTS-MIB", "rdnServiceClassRestrictedFlows"), ("RDN-CMTS-MIB", "rdnServiceClassRejectedFlows"), ("RDN-CMTS-MIB", "rdnServiceClassBandWidth"), ("RDN-CMTS-MIB", "rdnServiceClassResetStats"), ("RDN-CMTS-MIB", "rdnServiceClassBondingStatsSlot"), ("RDN-CMTS-MIB", "rdnServiceClassBondingStatsChan"), ("RDN-CMTS-MIB", "rdnServiceClassBondingCurrentTotalFlows"), ("RDN-CMTS-MIB", "rdnServiceClassBondingDeferredFlows"), ("RDN-CMTS-MIB", "rdnServiceClassBondingRestrictedFlows"), ("RDN-CMTS-MIB", "rdnServiceClassBondingRejectedFlows"), ("RDN-CMTS-MIB", "rdnServiceClassBondingBandWidth"), ("RDN-CMTS-MIB", "rdnRQuerySwCurrentVers"), ("RDN-CMTS-MIB", "rdnCmtsCmResetByIpv6Addr"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdnCmtsMiscGroup = rdnCmtsMiscGroup.setStatus('current')
rdnCmtsNotificationsGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 4981, 2, 5, 2, 3)).setObjects(("RDN-CMTS-MIB", "rdnCmtsCmRegisteredNotification"), ("RDN-CMTS-MIB", "rdnCmtsCmDeregisteredNotification"), ("RDN-CMTS-MIB", "rdnCmtsUpstreamIfLinkUpTrap"), ("RDN-CMTS-MIB", "rdnCmtsUpstreamIfLinkDownTrap"), ("RDN-CMTS-MIB", "rdnRQueryPollDoneNotification"), ("RDN-CMTS-MIB", "rdnPktDQoSAdmittedBwThresholdTrap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdnCmtsNotificationsGroup = rdnCmtsNotificationsGroup.setStatus('current')
rdnCableInterceptScalars = MibIdentifier((1, 3, 6, 1, 4, 1, 4981, 2, 2, 26))
rdnCableInterceptAccessPermitted = MibScalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 26, 1), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableInterceptAccessPermitted.setStatus('current')
rdnCableInterceptTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27), )
if mibBuilder.loadTexts: rdnCableInterceptTable.setStatus('current')
rdnCableInterceptEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "RDN-CMTS-MIB", "rdnCableInterceptCpeMac"))
if mibBuilder.loadTexts: rdnCableInterceptEntry.setStatus('current')
rdnCableInterceptCpeMac = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 1), MacAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptCpeMac.setStatus('current')
rdnCableInterceptCmMac = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 2), MacAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptCmMac.setStatus('current')
rdnCableInterceptDestination1Type = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 3), InetAddressType()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptDestination1Type.setStatus('current')
rdnCableInterceptDestination1Ip = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 4), InetAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptDestination1Ip.setStatus('current')
rdnCableInterceptDestination1Port = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 5), InetPortNumber()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptDestination1Port.setStatus('current')
rdnCableInterceptDestination2Type = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 6), InetAddressType()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptDestination2Type.setStatus('current')
rdnCableInterceptDestination2Ip = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 7), InetAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptDestination2Ip.setStatus('current')
rdnCableInterceptDestination2Port = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 8), InetPortNumber()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptDestination2Port.setStatus('current')
rdnCableInterceptDestination3Type = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 9), InetAddressType()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptDestination3Type.setStatus('current')
rdnCableInterceptDestination3Ip = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 10), InetAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptDestination3Ip.setStatus('current')
rdnCableInterceptDestination3Port = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 11), InetPortNumber()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptDestination3Port.setStatus('current')
rdnCableInterceptSourceType = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 12), InetAddressType()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptSourceType.setStatus('current')
rdnCableInterceptSourceIp = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 13), InetAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptSourceIp.setStatus('current')
rdnCableInterceptPktCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 14), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableInterceptPktCnt.setStatus('current')
rdnCableInterceptByteCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 15), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnCableInterceptByteCnt.setStatus('current')
rdnCableInterceptRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 16), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: rdnCableInterceptRowStatus.setStatus('current')
rdnCmtsUpChannelCounterTable = MibTable((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28), )
if mibBuilder.loadTexts: rdnCmtsUpChannelCounterTable.setStatus('current')
rdnCmtsUpChannelCounterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: rdnCmtsUpChannelCounterEntry.setStatus('current')
rdnIfCmtsUpChCtrReqNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsUpChCtrReqNoise.setStatus('current')
rdnIfCmtsUpChCtrReqNoEnergy = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsUpChCtrReqNoEnergy.setStatus('current')
rdnIfCmtsUpChCtrExtReqNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1, 3), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsUpChCtrExtReqNoise.setStatus('current')
rdnIfCmtsUpChCtrExtReqNoEnergy = MibTableColumn((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1, 4), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rdnIfCmtsUpChCtrExtReqNoEnergy.setStatus('current')
mibBuilder.exportSymbols("RDN-CMTS-MIB", rdnCmtsUpstreamIfLinkDownTrap=rdnCmtsUpstreamIfLinkDownTrap, rdnCableUgsAvFlowsLastFiveMinutes=rdnCableUgsAvFlowsLastFiveMinutes, rdnCableInterceptSourceIp=rdnCableInterceptSourceIp, rdnIfCmtsUpChCtrReqNoEnergy=rdnIfCmtsUpChCtrReqNoEnergy, rdnCmtsUpstreamChannelTable=rdnCmtsUpstreamChannelTable, rdnServiceClassStatsTotalBytes=rdnServiceClassStatsTotalBytes, rdnCableUgsMaxFlowsLastFiveMinutes=rdnCableUgsMaxFlowsLastFiveMinutes, rdnCmtsUpChannelCounterEntry=rdnCmtsUpChannelCounterEntry, rdnIfCmtsUpChCtrExtReqNoise=rdnIfCmtsUpChCtrExtReqNoise, rdnIfCmtsUpChCtrExtReqNoEnergy=rdnIfCmtsUpChCtrExtReqNoEnergy, rdnServiceClassStatsPort=rdnServiceClassStatsPort, rdnCableInterceptDestination3Ip=rdnCableInterceptDestination3Ip, rdnRQueryPollDoneNotification=rdnRQueryPollDoneNotification, rdnCableInterceptDestination2Ip=rdnCableInterceptDestination2Ip, rdnIfCmtsCmStatusTxUnicastExtKbytes=rdnIfCmtsCmStatusTxUnicastExtKbytes, rdnServiceClassBondingDeferredFlows=rdnServiceClassBondingDeferredFlows, rdnCableInterceptDestination2Type=rdnCableInterceptDestination2Type, rdnCmtsUSOfflineModemCount=rdnCmtsUSOfflineModemCount, rdnRQueryCmtsCmStatusExtTable=rdnRQueryCmtsCmStatusExtTable, rdnServiceClassStatsIfDirection=rdnServiceClassStatsIfDirection, rdnCmtsMibGroups=rdnCmtsMibGroups, rdnCmtsMiscObjects=rdnCmtsMiscObjects, rdnIfCmtsCmEntry=rdnIfCmtsCmEntry, rdnIfCmtsCmStatusTable=rdnIfCmtsCmStatusTable, rdnCmtsMibConformance=rdnCmtsMibConformance, rdnServiceClassBondingStatsIfDirection=rdnServiceClassBondingStatsIfDirection, rdnCmToCpeIPv6Addr=rdnCmToCpeIPv6Addr, rdnCmToCpeIpAddress=rdnCmToCpeIpAddress, rdnCmtsCmResetByIpv6Addr=rdnCmtsCmResetByIpv6Addr, rdnCmtsCmResetAll=rdnCmtsCmResetAll, rdnCableUgsAvFlowsLastWindow=rdnCableUgsAvFlowsLastWindow, rdnRQueryCmtsCmStatusEntry=rdnRQueryCmtsCmStatusEntry, rdnCableInterceptDestination3Type=rdnCableInterceptDestination3Type, rdnIfCmtsMTAOnlyStatusDocsisRegMode=rdnIfCmtsMTAOnlyStatusDocsisRegMode, rdnIfCmtsMTAOnlyStatusEntry=rdnIfCmtsMTAOnlyStatusEntry, rdnCmtsStpEnable=rdnCmtsStpEnable, rdnRQueryServerConfigFile=rdnRQueryServerConfigFile, rdnIfCmtsMTAOnlyStatusEqualizationData=rdnIfCmtsMTAOnlyStatusEqualizationData, rdnIfCmtsMTAOnlyStatusUnerroreds=rdnIfCmtsMTAOnlyStatusUnerroreds, rdnCableInterceptTable=rdnCableInterceptTable, rdnIfCmtsMTAOnlyStatusModulationType=rdnIfCmtsMTAOnlyStatusModulationType, rdnServiceClassBondingStatsTable=rdnServiceClassBondingStatsTable, rdnRQueryLastPollStartTime=rdnRQueryLastPollStartTime, rdnUgsStatsWindow=rdnUgsStatsWindow, rdnIfCmtsCmStatusMinOfflineTime=rdnIfCmtsCmStatusMinOfflineTime, rdnIfCmtsMTAOnlyStatusDownChannelIfIndex=rdnIfCmtsMTAOnlyStatusDownChannelIfIndex, rdnRQuerySigQSignalNoise=rdnRQuerySigQSignalNoise, rdnServiceClassStatsEntry=rdnServiceClassStatsEntry, rdnIfCmtsCmStatusMaxOnlineTime=rdnIfCmtsCmStatusMaxOnlineTime, rdnCmtsDownstreamChannelEntry=rdnCmtsDownstreamChannelEntry, rdnIfCmtsMTAOnlyStatusExtUnerroreds=rdnIfCmtsMTAOnlyStatusExtUnerroreds, rdnIfCmtsCmStatusAvgOnlineTime=rdnIfCmtsCmStatusAvgOnlineTime, rdnIfCmtsCmStatusSpectrumGroupName=rdnIfCmtsCmStatusSpectrumGroupName, rdnCmtsUSTotalModemCount=rdnCmtsUSTotalModemCount, rdnRQueryCmStatusTxPower=rdnRQueryCmStatusTxPower, rdnCmtsSaveConfig=rdnCmtsSaveConfig, rdnCmtsServiceClassName=rdnCmtsServiceClassName, rdnServiceClassBondingRestrictedFlows=rdnServiceClassBondingRestrictedFlows, rdnCmtsCpeMac=rdnCmtsCpeMac, rdnCmtsModemAgingTimer=rdnCmtsModemAgingTimer, rdnCmtsCmResetByIpAddr=rdnCmtsCmResetByIpAddr, rdnIfCmtsMTAOnlyStatusValueLastUpdate=rdnIfCmtsMTAOnlyStatusValueLastUpdate, rdnServiceClassBondingCurrentTotalFlows=rdnServiceClassBondingCurrentTotalFlows, rdnCmtsUpChannelCounterTable=rdnCmtsUpChannelCounterTable, rdnCmtsMib=rdnCmtsMib, rdnCmtsCmDeregisteredNotification=rdnCmtsCmDeregisteredNotification, rdnCmtsUpstreamChannelEntry=rdnCmtsUpstreamChannelEntry, rdnCmtsServiceClassAdmittedBWThreshold=rdnCmtsServiceClassAdmittedBWThreshold, rdnCableUgsMaxFlowsLastWindow=rdnCableUgsMaxFlowsLastWindow, rdnCmtsMibNotifications=rdnCmtsMibNotifications, rdnServiceClassStatsTable=rdnServiceClassStatsTable, rdnRQuerySwCurrentVers=rdnRQuerySwCurrentVers, rdnRQueryPollTime=rdnRQueryPollTime, rdnCableInterceptPktCnt=rdnCableInterceptPktCnt, rdnCmToCpeIndex=rdnCmToCpeIndex, rdnServiceClassBandWidth=rdnServiceClassBandWidth, rdnServiceClassRestrictedFlows=rdnServiceClassRestrictedFlows, rdnIfCmtsCmTable=rdnIfCmtsCmTable, rdnIfCmtsCmStatusValue=rdnIfCmtsCmStatusValue, rdnServiceClassBondingStatsSlot=rdnServiceClassBondingStatsSlot, rdnCmtsIfObjects=rdnCmtsIfObjects, rdnCmtsServiceClassCap=rdnCmtsServiceClassCap, rdnCmToCpeEntry=rdnCmToCpeEntry, rdnIfCmtsMTAOnlyStatusRxPower=rdnIfCmtsMTAOnlyStatusRxPower, rdnCmtsHostAuthControl=rdnCmtsHostAuthControl, rdnCableInterceptAccessPermitted=rdnCableInterceptAccessPermitted, rdnIfCmtsUpChCtrReqNoise=rdnIfCmtsUpChCtrReqNoise, rdnCmtsStpTCNEnable=rdnCmtsStpTCNEnable, rdnPktDQoSAdmittedBwThresholdTrap=rdnPktDQoSAdmittedBwThresholdTrap, rdnCmtsCmMac=rdnCmtsCmMac, rdnCableInterceptSourceType=rdnCableInterceptSourceType, PYSNMP_MODULE_ID=rdnCmtsMib, rdnCmtsLinkUpDownTrapEnableTable=rdnCmtsLinkUpDownTrapEnableTable, rdnIfCmtsMTAOnlyStatusTimingOffset=rdnIfCmtsMTAOnlyStatusTimingOffset, rdnIfCmtsMTAOnlyStatusMicroreflections=rdnIfCmtsMTAOnlyStatusMicroreflections, rdnModemRegIndex=rdnModemRegIndex, rdnIfCmtsCmStatusRxUnicastKbytes=rdnIfCmtsCmStatusRxUnicastKbytes, rdnIfCmtsCmStatusDownStreamPort=rdnIfCmtsCmStatusDownStreamPort, rdnServiceClassCurrentTotalFlows=rdnServiceClassCurrentTotalFlows, rdnCmtsNotificationsGroup=rdnCmtsNotificationsGroup, rdnCmtsUSNominalRxPower=rdnCmtsUSNominalRxPower, rdnIfCmtsMTAOnlyStatusInetAddressType=rdnIfCmtsMTAOnlyStatusInetAddressType, rdnCmtsLinkUpDownTrapEnable=rdnCmtsLinkUpDownTrapEnable, rdnCmtsMibCompliance=rdnCmtsMibCompliance, rdnIfCmtsMTAOnlyStatusIndex=rdnIfCmtsMTAOnlyStatusIndex, rdnCableInterceptCpeMac=rdnCableInterceptCpeMac, rdnServiceClassResetStats=rdnServiceClassResetStats, rdnIfCmtsCmCurrCpeNumber=rdnIfCmtsCmCurrCpeNumber, rdnCmtsIfGroup=rdnCmtsIfGroup, rdnCableInterceptDestination1Port=rdnCableInterceptDestination1Port, rdnCmtsLinkUpDownTrapEnableEntry=rdnCmtsLinkUpDownTrapEnableEntry, rdnCmtsUSRangingResponseControl=rdnCmtsUSRangingResponseControl, rdnServiceClassBondingStatsMacIfIndex=rdnServiceClassBondingStatsMacIfIndex, rdnCmtsUpstreamIfLinkUpTrap=rdnCmtsUpstreamIfLinkUpTrap, rdnCableInterceptDestination1Type=rdnCableInterceptDestination1Type, rdnIfCmtsMTAOnlyStatusCorrecteds=rdnIfCmtsMTAOnlyStatusCorrecteds, rdnServiceClassBondingStatsGroupId=rdnServiceClassBondingStatsGroupId, rdnCmtsServiceClassObjects=rdnCmtsServiceClassObjects, rdnCmtsMibNotificationObjects=rdnCmtsMibNotificationObjects, rdnCmtsCardType=rdnCmtsCardType, rdnCmtsCompliances=rdnCmtsCompliances, rdnCmtsCmRegisteredTrapEnable=rdnCmtsCmRegisteredTrapEnable, rdnCmToCpeMacAddress=rdnCmToCpeMacAddress, rdnIfCmtsCmStatusRegistrationTime=rdnIfCmtsCmStatusRegistrationTime, rdnIfCmtsCmStatusRxUnicastExtKbytes=rdnIfCmtsCmStatusRxUnicastExtKbytes, rdnCmtsCmResetByMacAddr=rdnCmtsCmResetByMacAddr, rdnIfCmtsCmStatusOnlineTimes=rdnIfCmtsCmStatusOnlineTimes, rdnIfCmtsCmStatusTxUnicastKbytes=rdnIfCmtsCmStatusTxUnicastKbytes, rdnIfCmtsCmStatusPercentOnline=rdnIfCmtsCmStatusPercentOnline, rdnIfCmtsCmStatusAvgOfflineTime=rdnIfCmtsCmStatusAvgOfflineTime, rdnCableUgsStatsTable=rdnCableUgsStatsTable, rdnCableInterceptDestination1Ip=rdnCableInterceptDestination1Ip, rdnIfCmtsMTAOnlyStatusSignalNoise=rdnIfCmtsMTAOnlyStatusSignalNoise, rdnCableInterceptDestination3Port=rdnCableInterceptDestination3Port, rdnRQueryUpChannelTxTimingOffset=rdnRQueryUpChannelTxTimingOffset, rdnPktDQoSAdmittedBwThresholdReason=rdnPktDQoSAdmittedBwThresholdReason, rdnCableInterceptDestination2Port=rdnCableInterceptDestination2Port, rdnCmtsUSRegisteredModemCount=rdnCmtsUSRegisteredModemCount, rdnCmtsCpeToCmTable=rdnCmtsCpeToCmTable, rdnIfCmtsMTAOnlyStatusUpChannelIfIndex=rdnIfCmtsMTAOnlyStatusUpChannelIfIndex, rdnCmtsMiscGroup=rdnCmtsMiscGroup, rdnRQueryCmtsCmStatusExtEntry=rdnRQueryCmtsCmStatusExtEntry, rdnCableInterceptEntry=rdnCableInterceptEntry, rdnCableUgsStatsPort=rdnCableUgsStatsPort, rdnCableInterceptRowStatus=rdnCableInterceptRowStatus, rdnCmtsServiceClassTable=rdnCmtsServiceClassTable, rdnCableInterceptByteCnt=rdnCableInterceptByteCnt, rdnCmtsUSNominalRxPowerMode=rdnCmtsUSNominalRxPowerMode, rdnIfCmtsCmStatusMinOnlineTime=rdnIfCmtsCmStatusMinOnlineTime, rdnCmtsCpeToCmEntry=rdnCmtsCpeToCmEntry, rdnCableUgsMinFlowsLastWindow=rdnCableUgsMinFlowsLastWindow, rdnServiceClassBondingRejectedFlows=rdnServiceClassBondingRejectedFlows, rdnIfCmtsMTAOnlyStatusIpAddress=rdnIfCmtsMTAOnlyStatusIpAddress, rdnCmtsUSInvitedRangingInterval=rdnCmtsUSInvitedRangingInterval, rdnIfCmtsCmStatusUpstreamPort=rdnIfCmtsCmStatusUpstreamPort, rdnIfCmtsCmStatusMaxOfflineTime=rdnIfCmtsCmStatusMaxOfflineTime, rdnIfCmtsMTAOnlyStatusExtUncorrectables=rdnIfCmtsMTAOnlyStatusExtUncorrectables, rdnServiceClassBondingBandWidth=rdnServiceClassBondingBandWidth, rdnCableUgsStatsSlot=rdnCableUgsStatsSlot, rdnCableUgsResetStats=rdnCableUgsResetStats, rdnModemDeregReason=rdnModemDeregReason, rdnServiceClassStatsTotalPackets=rdnServiceClassStatsTotalPackets, rdnServiceClassStatsSlot=rdnServiceClassStatsSlot, rdnRQueryCmtsCmStatusTable=rdnRQueryCmtsCmStatusTable, rdnRQueryCmtsCmDownChannelPower=rdnRQueryCmtsCmDownChannelPower, rdnCableInterceptCmMac=rdnCableInterceptCmMac, rdnIfCmtsCmStatusDSBondingGroupId=rdnIfCmtsCmStatusDSBondingGroupId, rdnCmToCpeTable=rdnCmToCpeTable, rdnIfCmtsMTAOnlyStatusValue=rdnIfCmtsMTAOnlyStatusValue, rdnServiceClassRejectedFlows=rdnServiceClassRejectedFlows, rdnIfCmtsMTAOnlyStatusInetAddress=rdnIfCmtsMTAOnlyStatusInetAddress, rdnCableInterceptScalars=rdnCableInterceptScalars, rdnCableUgsCurrentTotalFlows=rdnCableUgsCurrentTotalFlows, rdnServiceClassBondingStatsChan=rdnServiceClassBondingStatsChan, rdnServiceClassBondingStatsEntry=rdnServiceClassBondingStatsEntry, rdnCmtsServiceClassMab=rdnCmtsServiceClassMab, rdnIfCmtsCmMaxCpeNumber=rdnIfCmtsCmMaxCpeNumber, rdnCmtsDownstreamChannelTable=rdnCmtsDownstreamChannelTable, rdnServiceClassDeferredFlows=rdnServiceClassDeferredFlows, rdnIfCmtsMTAOnlyStatusExtCorrecteds=rdnIfCmtsMTAOnlyStatusExtCorrecteds, rdnIfCmtsMTAOnlyStatusTable=rdnIfCmtsMTAOnlyStatusTable, rdnRQuerySigQMicroreflections=rdnRQuerySigQMicroreflections, rdnCmtsUSRangingPowerOverride=rdnCmtsUSRangingPowerOverride, rdnCmtsUSUnregisteredModemCount=rdnCmtsUSUnregisteredModemCount, rdnCmtsCpeToCmObject=rdnCmtsCpeToCmObject, rdnCmtsCmRegisteredNotification=rdnCmtsCmRegisteredNotification, rdnIfCmtsMTAOnlyStatusUncorrectables=rdnIfCmtsMTAOnlyStatusUncorrectables, rdnCmtsServiceClassAllowShare=rdnCmtsServiceClassAllowShare, rdnCmtsServiceClassEntry=rdnCmtsServiceClassEntry, rdnIfCmtsMTAOnlyStatusMacAddress=rdnIfCmtsMTAOnlyStatusMacAddress, rdnIfCmtsCmStatusEntry=rdnIfCmtsCmStatusEntry, rdnCableUgsMinFlowsLastFiveMinutes=rdnCableUgsMinFlowsLastFiveMinutes, rdnCmtsServiceClassSchedulingPriority=rdnCmtsServiceClassSchedulingPriority, rdnRQueryLastPollStopTime=rdnRQueryLastPollStopTime, rdnCmtsDSModulation=rdnCmtsDSModulation, rdnCmtsStpObjects=rdnCmtsStpObjects, rdnCableUgsStatsEntry=rdnCableUgsStatsEntry, rdnCmtsMibNotificationPrefix=rdnCmtsMibNotificationPrefix)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_size_constraint, constraints_intersection, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint')
(docs_if_cmts_cm_status_ip_address, tenthd_b, tenthd_bm_v, docs_if_up_channel_id, docs_if_cmts_cm_status_entry, docs_if_cmts_cm_status_mac_address, docs_if_cmts_cm_status_index, docsis_qos_version, docs_if_cmts_cm_status_docsis_reg_mode, docs_if_down_channel_id, docsis_upstream_type) = mibBuilder.importSymbols('DOCS-IF-MIB', 'docsIfCmtsCmStatusIpAddress', 'TenthdB', 'TenthdBmV', 'docsIfUpChannelId', 'docsIfCmtsCmStatusEntry', 'docsIfCmtsCmStatusMacAddress', 'docsIfCmtsCmStatusIndex', 'DocsisQosVersion', 'docsIfCmtsCmStatusDocsisRegMode', 'docsIfDownChannelId', 'DocsisUpstreamType')
(if_direction, docs_if3_cmts_cm_reg_status_i_pv6_addr) = mibBuilder.importSymbols('DOCS-IF3-MIB', 'IfDirection', 'docsIf3CmtsCmRegStatusIPv6Addr')
(docs_qos_service_class_name,) = mibBuilder.importSymbols('DOCS-QOS3-MIB', 'docsQosServiceClassName')
(ip_v4or_v6_addr,) = mibBuilder.importSymbols('DOCS-SUBMGT-MIB', 'IpV4orV6Addr')
(if_admin_status, if_descr, interface_index_or_zero, interface_index, if_type, if_index, if_oper_status) = mibBuilder.importSymbols('IF-MIB', 'ifAdminStatus', 'ifDescr', 'InterfaceIndexOrZero', 'InterfaceIndex', 'ifType', 'ifIndex', 'ifOperStatus')
(inet_address_i_pv6, inet_address, inet_address_type, inet_port_number) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressIPv6', 'InetAddress', 'InetAddressType', 'InetPortNumber')
(rdn_spectrum_group_name,) = mibBuilder.importSymbols('RDN-CABLE-SPECTRUM-GROUP-MIB', 'rdnSpectrumGroupName')
(riverdelta,) = mibBuilder.importSymbols('RDN-MIB', 'riverdelta')
(rdn_pkt_d_qo_s_class_name,) = mibBuilder.importSymbols('RDN-PKTCABLE-GROUP-MIB', 'rdnPktDQoSClassName')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(gauge32, mib_identifier, notification_type, unsigned32, counter32, time_ticks, object_identity, integer32, counter64, bits, module_identity, iso, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'MibIdentifier', 'NotificationType', 'Unsigned32', 'Counter32', 'TimeTicks', 'ObjectIdentity', 'Integer32', 'Counter64', 'Bits', 'ModuleIdentity', 'iso', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn')
(display_string, time_interval, mac_address, row_status, truth_value, textual_convention, time_stamp) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TimeInterval', 'MacAddress', 'RowStatus', 'TruthValue', 'TextualConvention', 'TimeStamp')
rdn_cmts_mib = module_identity((1, 3, 6, 1, 4, 1, 4981, 2))
rdnCmtsMib.setRevisions(('2011-03-08 00:00', '2011-02-23 00:00', '2009-11-20 00:00', '2008-08-08 00:00', '2007-06-21 00:00', '2006-05-25 00:00', '2006-05-24 00:00', '2006-04-17 00:00', '2006-01-25 00:00', '2006-01-23 00:00', '2006-01-13 00:00', '2005-03-18 00:00', '2005-02-22 00:00', '2004-08-17 00:00', '1904-04-14 00:00', '2003-12-16 00:00', '2003-11-05 00:00', '2003-11-03 00:00', '2003-07-20 00:00', '2003-05-01 00:00', '2000-04-03 00:00'))
if mibBuilder.loadTexts:
rdnCmtsMib.setLastUpdated('201103080000Z')
if mibBuilder.loadTexts:
rdnCmtsMib.setOrganization('Motorola')
rdn_cmts_if_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 1))
rdn_cmts_misc_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 2))
rdn_cmts_downstream_channel_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 1, 1))
if mibBuilder.loadTexts:
rdnCmtsDownstreamChannelTable.setStatus('current')
rdn_cmts_downstream_channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
rdnCmtsDownstreamChannelEntry.setStatus('current')
rdn_cmts_ds_modulation = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 1, 1, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsDSModulation.setStatus('current')
rdn_cmts_upstream_channel_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2))
if mibBuilder.loadTexts:
rdnCmtsUpstreamChannelTable.setStatus('current')
rdn_cmts_upstream_channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
rdnCmtsUpstreamChannelEntry.setStatus('current')
rdn_cmts_us_nominal_rx_power = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(-160, 290))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsUSNominalRxPower.setStatus('current')
rdn_cmts_us_nominal_rx_power_mode = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('default', 0), ('absolute', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsUSNominalRxPowerMode.setStatus('current')
rdn_cmts_us_invited_ranging_interval = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 30000))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsUSInvitedRangingInterval.setStatus('current')
rdn_cmts_us_ranging_response_control = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('normal', 0), ('override', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsUSRangingResponseControl.setStatus('current')
rdn_cmts_us_ranging_power_override = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 5), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsUSRangingPowerOverride.setStatus('current')
rdn_cmts_us_total_modem_count = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCmtsUSTotalModemCount.setStatus('current')
rdn_cmts_us_registered_modem_count = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCmtsUSRegisteredModemCount.setStatus('current')
rdn_cmts_us_unregistered_modem_count = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCmtsUSUnregisteredModemCount.setStatus('current')
rdn_cmts_us_offline_modem_count = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCmtsUSOfflineModemCount.setStatus('current')
rdn_cmts_stp_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 1, 3))
rdn_cmts_stp_enable = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 1, 3, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsStpEnable.setStatus('current')
rdn_cmts_stp_tcn_enable = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 1, 3, 2), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsStpTCNEnable.setStatus('current')
rdn_cmts_link_up_down_trap_enable_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 1, 4))
if mibBuilder.loadTexts:
rdnCmtsLinkUpDownTrapEnableTable.setStatus('current')
rdn_cmts_link_up_down_trap_enable_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 1, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
rdnCmtsLinkUpDownTrapEnableEntry.setStatus('current')
rdn_cmts_link_up_down_trap_enable = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 1, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsLinkUpDownTrapEnable.setStatus('current')
rdn_cmts_save_config = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsSaveConfig.setStatus('current')
rdn_cmts_cm_reset_by_mac_addr = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 2), mac_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsCmResetByMacAddr.setStatus('current')
rdn_cmts_cm_reset_by_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsCmResetByIpAddr.setStatus('current')
rdn_cmts_cm_reset_all = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 4), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsCmResetAll.setStatus('current')
rdn_cmts_host_auth_control = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 5), octet_string().subtype(subtypeSpec=value_size_constraint(17, 17)).setFixedLength(17)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsHostAuthControl.setStatus('obsolete')
rdn_cmts_modem_aging_timer = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 6), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(10, 30240)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsModemAgingTimer.setStatus('current')
rdn_cmts_cpe_to_cm_object = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7))
rdn_cmts_cpe_to_cm_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7, 1))
if mibBuilder.loadTexts:
rdnCmtsCpeToCmTable.setStatus('current')
rdn_cmts_cpe_to_cm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7, 1, 1)).setIndexNames((0, 'RDN-CMTS-MIB', 'rdnCmtsCpeMac'))
if mibBuilder.loadTexts:
rdnCmtsCpeToCmEntry.setStatus('current')
rdn_cmts_cpe_mac = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7, 1, 1, 1), mac_address())
if mibBuilder.loadTexts:
rdnCmtsCpeMac.setStatus('current')
rdn_cmts_cm_mac = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 7, 1, 1, 2), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCmtsCmMac.setStatus('current')
rdn_if_cmts_cm_status_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8))
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusTable.setStatus('current')
rdn_if_cmts_cm_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1))
docsIfCmtsCmStatusEntry.registerAugmentions(('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusEntry'))
rdnIfCmtsCmStatusEntry.setIndexNames(*docsIfCmtsCmStatusEntry.getIndexNames())
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusEntry.setStatus('current')
rdn_if_cmts_cm_status_registration_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusRegistrationTime.setStatus('current')
rdn_if_cmts_cm_status_tx_unicast_kbytes = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusTxUnicastKbytes.setStatus('current')
rdn_if_cmts_cm_status_rx_unicast_kbytes = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusRxUnicastKbytes.setStatus('current')
rdn_if_cmts_cm_status_tx_unicast_ext_kbytes = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusTxUnicastExtKbytes.setStatus('current')
rdn_if_cmts_cm_status_rx_unicast_ext_kbytes = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 5), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusRxUnicastExtKbytes.setStatus('current')
rdn_if_cmts_cm_status_spectrum_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusSpectrumGroupName.setStatus('current')
rdn_if_cmts_cm_status_upstream_port = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusUpstreamPort.setStatus('current')
rdn_if_cmts_cm_status_down_stream_port = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 7))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusDownStreamPort.setStatus('current')
rdn_if_cmts_cm_status_value = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20))).clone(namedValues=named_values(('init-o', 1), ('init-t', 2), ('init-r1', 3), ('init-r2', 4), ('init-rc', 5), ('dhcp-d', 6), ('dhcp-o', 7), ('dhcp-req', 8), ('dhcp-ack', 9), ('online', 10), ('online-d', 11), ('online-un', 12), ('online-pk', 13), ('online-pt', 14), ('reject-m', 15), ('reject-c', 16), ('reject-r', 17), ('reject-pk', 18), ('reject-pt', 19), ('offline', 20)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusValue.setStatus('current')
rdn_if_cmts_cm_status_ds_bonding_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusDSBondingGroupId.setStatus('current')
rdn_if_cmts_cm_status_online_times = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusOnlineTimes.setStatus('current')
rdn_if_cmts_cm_status_percent_online = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusPercentOnline.setStatus('current')
rdn_if_cmts_cm_status_min_online_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 13), time_interval()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusMinOnlineTime.setStatus('current')
rdn_if_cmts_cm_status_avg_online_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 14), time_interval()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusAvgOnlineTime.setStatus('current')
rdn_if_cmts_cm_status_max_online_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 15), time_interval()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusMaxOnlineTime.setStatus('current')
rdn_if_cmts_cm_status_min_offline_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 16), time_interval()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusMinOfflineTime.setStatus('current')
rdn_if_cmts_cm_status_avg_offline_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 17), time_interval()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusAvgOfflineTime.setStatus('current')
rdn_if_cmts_cm_status_max_offline_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 8, 1, 18), time_interval()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmStatusMaxOfflineTime.setStatus('current')
rdn_modem_dereg_reason = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23))).clone(namedValues=named_values(('normal', 1), ('operatorReset', 2), ('operatorDisabled', 3), ('operatorDeleted', 4), ('transmissionFailed', 5), ('transmissionDisabled', 6), ('transmissionDeleted', 7), ('servingGroupChanged', 8), ('receiverFailed', 9), ('receiverDisabled', 10), ('receiverDeleted', 11), ('channelDeleted', 12), ('channelErrors', 13), ('incompleteReg', 14), ('profileUpdateComplete', 15), ('skeyFailure', 16), ('dnChanChangeFailure', 17), ('noDeregReason', 18), ('powerTolerance', 19), ('freqTolerance', 20), ('timingTolerance', 21), ('rangingTolerance', 22), ('noResponseUCC', 23)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnModemDeregReason.setStatus('current')
rdn_modem_reg_index = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnModemRegIndex.setStatus('current')
rdn_cm_to_cpe_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12))
if mibBuilder.loadTexts:
rdnCmToCpeTable.setStatus('current')
rdn_cm_to_cpe_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1)).setIndexNames((0, 'DOCS-IF-MIB', 'docsIfCmtsCmStatusIndex'), (0, 'RDN-CMTS-MIB', 'rdnCmToCpeIndex'))
if mibBuilder.loadTexts:
rdnCmToCpeEntry.setStatus('current')
rdn_cm_to_cpe_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
rdnCmToCpeIndex.setStatus('current')
rdn_cm_to_cpe_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1, 2), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCmToCpeMacAddress.setStatus('current')
rdn_cm_to_cpe_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCmToCpeIpAddress.setStatus('current')
rdn_cm_to_cpe_i_pv6_addr = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 12, 1, 4), inet_address_i_pv6()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCmToCpeIPv6Addr.setStatus('current')
rdn_cmts_cm_registered_trap_enable = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsCmRegisteredTrapEnable.setStatus('current')
rdn_cmts_card_type = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('domestic', 1), ('japan', 2))).clone('domestic')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsCardType.setStatus('current')
rdn_r_query_cmts_cm_status_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15))
if mibBuilder.loadTexts:
rdnRQueryCmtsCmStatusTable.setStatus('current')
rdn_r_query_cmts_cm_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1)).setIndexNames((0, 'DOCS-IF-MIB', 'docsIfCmtsCmStatusIndex'))
if mibBuilder.loadTexts:
rdnRQueryCmtsCmStatusEntry.setStatus('current')
rdn_r_query_cmts_cm_down_channel_power = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 1), tenthd_bm_v()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQueryCmtsCmDownChannelPower.setStatus('current')
rdn_r_query_cm_status_tx_power = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 2), tenthd_bm_v()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQueryCmStatusTxPower.setStatus('current')
rdn_r_query_up_channel_tx_timing_offset = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQueryUpChannelTxTimingOffset.setStatus('current')
rdn_r_query_sig_q_signal_noise = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 4), tenthd_b()).setUnits('dB').setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQuerySigQSignalNoise.setStatus('current')
rdn_r_query_sig_q_microreflections = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setUnits('dBc').setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQuerySigQMicroreflections.setStatus('current')
rdn_r_query_poll_time = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 15, 1, 6), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQueryPollTime.setStatus('current')
rdn_cmts_service_class_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19))
rdn_cmts_service_class_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1))
if mibBuilder.loadTexts:
rdnCmtsServiceClassTable.setStatus('current')
rdn_cmts_service_class_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1)).setIndexNames((0, 'RDN-CMTS-MIB', 'rdnCmtsServiceClassName'))
if mibBuilder.loadTexts:
rdnCmtsServiceClassEntry.setStatus('current')
rdn_cmts_service_class_name = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 15)))
if mibBuilder.loadTexts:
rdnCmtsServiceClassName.setStatus('current')
rdn_cmts_service_class_mab = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 2), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsServiceClassMab.setStatus('current')
rdn_cmts_service_class_cap = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 3), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsServiceClassCap.setStatus('current')
rdn_cmts_service_class_scheduling_priority = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 4), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsServiceClassSchedulingPriority.setStatus('current')
rdn_cmts_service_class_admitted_bw_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 5), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsServiceClassAdmittedBWThreshold.setStatus('current')
rdn_cmts_service_class_allow_share = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 19, 1, 1, 6), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsServiceClassAllowShare.setStatus('current')
rdn_ugs_stats_window = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 16), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(5, 120))).clone(60)).setUnits('minutes').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnUgsStatsWindow.setStatus('current')
rdn_cable_ugs_stats_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17))
if mibBuilder.loadTexts:
rdnCableUgsStatsTable.setStatus('current')
rdn_cable_ugs_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
rdnCableUgsStatsEntry.setStatus('current')
rdn_cable_ugs_stats_slot = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableUgsStatsSlot.setStatus('current')
rdn_cable_ugs_stats_port = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableUgsStatsPort.setStatus('current')
rdn_cable_ugs_current_total_flows = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableUgsCurrentTotalFlows.setStatus('current')
rdn_cable_ugs_max_flows_last_five_minutes = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableUgsMaxFlowsLastFiveMinutes.setStatus('current')
rdn_cable_ugs_av_flows_last_five_minutes = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableUgsAvFlowsLastFiveMinutes.setStatus('current')
rdn_cable_ugs_min_flows_last_five_minutes = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableUgsMinFlowsLastFiveMinutes.setStatus('current')
rdn_cable_ugs_max_flows_last_window = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableUgsMaxFlowsLastWindow.setStatus('current')
rdn_cable_ugs_av_flows_last_window = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableUgsAvFlowsLastWindow.setStatus('current')
rdn_cable_ugs_min_flows_last_window = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableUgsMinFlowsLastWindow.setStatus('current')
rdn_cable_ugs_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 17, 1, 10), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCableUgsResetStats.setStatus('current')
rdn_service_class_stats_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18))
if mibBuilder.loadTexts:
rdnServiceClassStatsTable.setStatus('current')
rdn_service_class_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'DOCS-QOS3-MIB', 'docsQosServiceClassName'))
if mibBuilder.loadTexts:
rdnServiceClassStatsEntry.setStatus('current')
rdn_service_class_stats_if_direction = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 1), if_direction()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassStatsIfDirection.setStatus('current')
rdn_service_class_stats_slot = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassStatsSlot.setStatus('current')
rdn_service_class_stats_port = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassStatsPort.setStatus('current')
rdn_service_class_stats_total_packets = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassStatsTotalPackets.setStatus('current')
rdn_service_class_stats_total_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassStatsTotalBytes.setStatus('current')
rdn_service_class_current_total_flows = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassCurrentTotalFlows.setStatus('current')
rdn_service_class_deferred_flows = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassDeferredFlows.setStatus('current')
rdn_service_class_restricted_flows = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassRestrictedFlows.setStatus('current')
rdn_service_class_rejected_flows = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassRejectedFlows.setStatus('current')
rdn_service_class_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassBandWidth.setStatus('current')
rdn_service_class_reset_stats = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 18, 1, 11), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnServiceClassResetStats.setStatus('current')
rdn_r_query_cmts_cm_status_ext_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 20))
if mibBuilder.loadTexts:
rdnRQueryCmtsCmStatusExtTable.setStatus('current')
rdn_r_query_cmts_cm_status_ext_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 20, 1))
rdnRQueryCmtsCmStatusEntry.registerAugmentions(('RDN-CMTS-MIB', 'rdnRQueryCmtsCmStatusExtEntry'))
rdnRQueryCmtsCmStatusExtEntry.setIndexNames(*rdnRQueryCmtsCmStatusEntry.getIndexNames())
if mibBuilder.loadTexts:
rdnRQueryCmtsCmStatusExtEntry.setStatus('current')
rdn_r_query_sw_current_vers = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 20, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQuerySwCurrentVers.setStatus('current')
rdn_r_query_server_config_file = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 20, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQueryServerConfigFile.setStatus('current')
rdn_if_cmts_cm_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 21))
if mibBuilder.loadTexts:
rdnIfCmtsCmTable.setStatus('current')
rdn_if_cmts_cm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 21, 1))
docsIfCmtsCmStatusEntry.registerAugmentions(('RDN-CMTS-MIB', 'rdnIfCmtsCmEntry'))
rdnIfCmtsCmEntry.setIndexNames(*docsIfCmtsCmStatusEntry.getIndexNames())
if mibBuilder.loadTexts:
rdnIfCmtsCmEntry.setStatus('current')
rdn_if_cmts_cm_max_cpe_number = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 21, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnIfCmtsCmMaxCpeNumber.setStatus('current')
rdn_if_cmts_cm_curr_cpe_number = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 21, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsCmCurrCpeNumber.setStatus('current')
rdn_if_cmts_mta_only_status_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23))
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusTable.setStatus('current')
rdn_if_cmts_mta_only_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1)).setIndexNames((0, 'RDN-CMTS-MIB', 'rdnIfCmtsMTAOnlyStatusIndex'))
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusEntry.setStatus('current')
rdn_if_cmts_mta_only_status_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)))
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusIndex.setStatus('current')
rdn_if_cmts_mta_only_status_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 2), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusMacAddress.setStatus('current')
rdn_if_cmts_mta_only_status_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusIpAddress.setStatus('deprecated')
rdn_if_cmts_mta_only_status_down_channel_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 4), interface_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusDownChannelIfIndex.setStatus('current')
rdn_if_cmts_mta_only_status_up_channel_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 5), interface_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusUpChannelIfIndex.setStatus('current')
rdn_if_cmts_mta_only_status_rx_power = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 6), tenthd_bm_v()).setUnits('dBmV').setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusRxPower.setStatus('current')
rdn_if_cmts_mta_only_status_timing_offset = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusTimingOffset.setStatus('current')
rdn_if_cmts_mta_only_status_equalization_data = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 8), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusEqualizationData.setStatus('current')
rdn_if_cmts_mta_only_status_value = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('other', 1), ('ranging', 2), ('rangingAborted', 3), ('rangingComplete', 4), ('ipComplete', 5), ('registrationComplete', 6), ('accessDenied', 7), ('operational', 8), ('registeredBPIInitializing', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusValue.setStatus('current')
rdn_if_cmts_mta_only_status_unerroreds = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusUnerroreds.setStatus('current')
rdn_if_cmts_mta_only_status_correcteds = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusCorrecteds.setStatus('current')
rdn_if_cmts_mta_only_status_uncorrectables = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusUncorrectables.setStatus('current')
rdn_if_cmts_mta_only_status_signal_noise = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 13), tenthd_b()).setUnits('dB').setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusSignalNoise.setStatus('current')
rdn_if_cmts_mta_only_status_microreflections = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setUnits('dBc').setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusMicroreflections.setStatus('current')
rdn_if_cmts_mta_only_status_ext_unerroreds = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 15), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusExtUnerroreds.setStatus('current')
rdn_if_cmts_mta_only_status_ext_correcteds = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 16), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusExtCorrecteds.setStatus('current')
rdn_if_cmts_mta_only_status_ext_uncorrectables = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 17), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusExtUncorrectables.setStatus('current')
rdn_if_cmts_mta_only_status_docsis_reg_mode = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 18), docsis_qos_version()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusDocsisRegMode.setStatus('current')
rdn_if_cmts_mta_only_status_modulation_type = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 19), docsis_upstream_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusModulationType.setStatus('current')
rdn_if_cmts_mta_only_status_inet_address_type = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 20), inet_address_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusInetAddressType.setStatus('current')
rdn_if_cmts_mta_only_status_inet_address = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 21), inet_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusInetAddress.setStatus('current')
rdn_if_cmts_mta_only_status_value_last_update = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 23, 1, 22), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsMTAOnlyStatusValueLastUpdate.setStatus('current')
rdn_service_class_bonding_stats_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24))
if mibBuilder.loadTexts:
rdnServiceClassBondingStatsTable.setStatus('current')
rdn_service_class_bonding_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'RDN-CMTS-MIB', 'rdnServiceClassBondingStatsIfDirection'), (0, 'DOCS-QOS3-MIB', 'docsQosServiceClassName'), (0, 'RDN-CMTS-MIB', 'rdnServiceClassBondingStatsMacIfIndex'), (0, 'RDN-CMTS-MIB', 'rdnServiceClassBondingStatsGroupId'))
if mibBuilder.loadTexts:
rdnServiceClassBondingStatsEntry.setStatus('current')
rdn_service_class_bonding_stats_mac_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 1), interface_index())
if mibBuilder.loadTexts:
rdnServiceClassBondingStatsMacIfIndex.setStatus('current')
rdn_service_class_bonding_stats_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535)))
if mibBuilder.loadTexts:
rdnServiceClassBondingStatsGroupId.setStatus('current')
rdn_service_class_bonding_stats_if_direction = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 3), if_direction())
if mibBuilder.loadTexts:
rdnServiceClassBondingStatsIfDirection.setStatus('current')
rdn_service_class_bonding_stats_slot = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassBondingStatsSlot.setStatus('current')
rdn_service_class_bonding_stats_chan = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassBondingStatsChan.setStatus('current')
rdn_service_class_bonding_current_total_flows = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassBondingCurrentTotalFlows.setStatus('current')
rdn_service_class_bonding_deferred_flows = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassBondingDeferredFlows.setStatus('current')
rdn_service_class_bonding_restricted_flows = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassBondingRestrictedFlows.setStatus('current')
rdn_service_class_bonding_rejected_flows = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassBondingRejectedFlows.setStatus('current')
rdn_service_class_bonding_band_width = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 24, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnServiceClassBondingBandWidth.setStatus('current')
rdn_cmts_cm_reset_by_ipv6_addr = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 25), inet_address_i_pv6()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rdnCmtsCmResetByIpv6Addr.setStatus('current')
rdn_cmts_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 4))
rdn_cmts_mib_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0))
rdn_cmts_mib_notification_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 4, 1))
rdn_cmts_cm_registered_notification = notification_type((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 1)).setObjects(('DOCS-IF-MIB', 'docsIfCmtsCmStatusDocsisRegMode'), ('DOCS-IF-MIB', 'docsIfCmtsCmStatusMacAddress'), ('DOCS-IF-MIB', 'docsIfCmtsCmStatusIpAddress'), ('DOCS-IF3-MIB', 'docsIf3CmtsCmRegStatusIPv6Addr'), ('DOCS-IF-MIB', 'docsIfUpChannelId'), ('DOCS-IF-MIB', 'docsIfDownChannelId'), ('RDN-CMTS-MIB', 'rdnModemRegIndex'), ('RDN-CABLE-SPECTRUM-GROUP-MIB', 'rdnSpectrumGroupName'))
if mibBuilder.loadTexts:
rdnCmtsCmRegisteredNotification.setStatus('current')
rdn_cmts_cm_deregistered_notification = notification_type((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 2)).setObjects(('DOCS-IF-MIB', 'docsIfCmtsCmStatusDocsisRegMode'), ('DOCS-IF-MIB', 'docsIfCmtsCmStatusMacAddress'), ('DOCS-IF-MIB', 'docsIfUpChannelId'), ('DOCS-IF-MIB', 'docsIfDownChannelId'), ('RDN-CMTS-MIB', 'rdnModemRegIndex'), ('RDN-CMTS-MIB', 'rdnModemDeregReason'), ('RDN-CABLE-SPECTRUM-GROUP-MIB', 'rdnSpectrumGroupName'))
if mibBuilder.loadTexts:
rdnCmtsCmDeregisteredNotification.setStatus('current')
rdn_cmts_upstream_if_link_up_trap = notification_type((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 3)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('IF-MIB', 'ifType'), ('IF-MIB', 'ifAdminStatus'), ('IF-MIB', 'ifOperStatus'), ('RDN-CABLE-SPECTRUM-GROUP-MIB', 'rdnSpectrumGroupName'))
if mibBuilder.loadTexts:
rdnCmtsUpstreamIfLinkUpTrap.setStatus('current')
rdn_cmts_upstream_if_link_down_trap = notification_type((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 4)).setObjects(('IF-MIB', 'ifIndex'), ('IF-MIB', 'ifDescr'), ('IF-MIB', 'ifType'), ('IF-MIB', 'ifAdminStatus'), ('IF-MIB', 'ifOperStatus'), ('RDN-CABLE-SPECTRUM-GROUP-MIB', 'rdnSpectrumGroupName'))
if mibBuilder.loadTexts:
rdnCmtsUpstreamIfLinkDownTrap.setStatus('current')
rdn_r_query_poll_done_notification = notification_type((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 5)).setObjects(('RDN-CMTS-MIB', 'rdnRQueryLastPollStartTime'), ('RDN-CMTS-MIB', 'rdnRQueryLastPollStopTime'))
if mibBuilder.loadTexts:
rdnRQueryPollDoneNotification.setStatus('current')
rdn_pkt_d_qo_s_admitted_bw_threshold_trap = notification_type((1, 3, 6, 1, 4, 1, 4981, 2, 4, 0, 6)).setObjects(('RDN-CMTS-MIB', 'rdnPktDQoSAdmittedBwThresholdReason'), ('RDN-PKTCABLE-GROUP-MIB', 'rdnPktDQoSClassName'))
if mibBuilder.loadTexts:
rdnPktDQoSAdmittedBwThresholdTrap.setStatus('current')
rdn_r_query_last_poll_start_time = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 4, 1, 1), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQueryLastPollStartTime.setStatus('current')
rdn_r_query_last_poll_stop_time = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 4, 1, 2), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnRQueryLastPollStopTime.setStatus('current')
rdn_pkt_d_qo_s_admitted_bw_threshold_reason = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('admittedBwExceedsThreshold', 1), ('admittedBwClearsOfThreshold', 2)))).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
rdnPktDQoSAdmittedBwThresholdReason.setStatus('current')
rdn_cmts_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 5))
rdn_cmts_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 5, 1))
rdn_cmts_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 5, 2))
rdn_cmts_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 4981, 2, 5, 1, 1)).setObjects(('RDN-CMTS-MIB', 'rdnCmtsIfGroup'), ('RDN-CMTS-MIB', 'rdnCmtsMiscGroup'), ('RDN-CMTS-MIB', 'rdnCmtsNotificationsGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdn_cmts_mib_compliance = rdnCmtsMibCompliance.setStatus('current')
rdn_cmts_if_group = object_group((1, 3, 6, 1, 4, 1, 4981, 2, 5, 2, 1)).setObjects(('RDN-CMTS-MIB', 'rdnCmtsDSModulation'), ('RDN-CMTS-MIB', 'rdnCmtsUSNominalRxPower'), ('RDN-CMTS-MIB', 'rdnCmtsUSInvitedRangingInterval'), ('RDN-CMTS-MIB', 'rdnCmtsUSRangingResponseControl'), ('RDN-CMTS-MIB', 'rdnCmtsUSRangingPowerOverride'), ('RDN-CMTS-MIB', 'rdnCmtsUSNominalRxPowerMode'), ('RDN-CMTS-MIB', 'rdnCmtsStpTCNEnable'), ('RDN-CMTS-MIB', 'rdnCmtsLinkUpDownTrapEnable'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdn_cmts_if_group = rdnCmtsIfGroup.setStatus('current')
rdn_cmts_misc_group = object_group((1, 3, 6, 1, 4, 1, 4981, 2, 5, 2, 2)).setObjects(('RDN-CMTS-MIB', 'rdnCmtsSaveConfig'), ('RDN-CMTS-MIB', 'rdnCmtsCmResetByMacAddr'), ('RDN-CMTS-MIB', 'rdnCmtsCmResetByIpAddr'), ('RDN-CMTS-MIB', 'rdnCmtsCmResetAll'), ('RDN-CMTS-MIB', 'rdnCmtsModemAgingTimer'), ('RDN-CMTS-MIB', 'rdnCmtsCmMac'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusRegistrationTime'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusTxUnicastKbytes'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusRxUnicastKbytes'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusTxUnicastExtKbytes'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusRxUnicastExtKbytes'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusSpectrumGroupName'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusUpstreamPort'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusDownStreamPort'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusValue'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusDSBondingGroupId'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusOnlineTimes'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusPercentOnline'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusMinOnlineTime'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusAvgOnlineTime'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusMaxOnlineTime'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusMinOfflineTime'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusAvgOfflineTime'), ('RDN-CMTS-MIB', 'rdnIfCmtsCmStatusMaxOfflineTime'), ('RDN-CMTS-MIB', 'rdnModemDeregReason'), ('RDN-CMTS-MIB', 'rdnModemRegIndex'), ('RDN-CMTS-MIB', 'rdnCmToCpeMacAddress'), ('RDN-CMTS-MIB', 'rdnCmToCpeIpAddress'), ('RDN-CMTS-MIB', 'rdnCmtsCmRegisteredTrapEnable'), ('RDN-CMTS-MIB', 'rdnCmtsCardType'), ('RDN-CMTS-MIB', 'rdnRQueryCmtsCmDownChannelPower'), ('RDN-CMTS-MIB', 'rdnRQueryCmStatusTxPower'), ('RDN-CMTS-MIB', 'rdnRQueryUpChannelTxTimingOffset'), ('RDN-CMTS-MIB', 'rdnRQuerySigQSignalNoise'), ('RDN-CMTS-MIB', 'rdnRQuerySigQMicroreflections'), ('RDN-CMTS-MIB', 'rdnRQueryPollTime'), ('RDN-CMTS-MIB', 'rdnUgsStatsWindow'), ('RDN-CMTS-MIB', 'rdnCableUgsStatsSlot'), ('RDN-CMTS-MIB', 'rdnCableUgsStatsPort'), ('RDN-CMTS-MIB', 'rdnCableUgsCurrentTotalFlows'), ('RDN-CMTS-MIB', 'rdnCableUgsMaxFlowsLastFiveMinutes'), ('RDN-CMTS-MIB', 'rdnCableUgsAvFlowsLastFiveMinutes'), ('RDN-CMTS-MIB', 'rdnCableUgsMinFlowsLastFiveMinutes'), ('RDN-CMTS-MIB', 'rdnCableUgsMaxFlowsLastWindow'), ('RDN-CMTS-MIB', 'rdnCableUgsAvFlowsLastWindow'), ('RDN-CMTS-MIB', 'rdnCableUgsMinFlowsLastWindow'), ('RDN-CMTS-MIB', 'rdnCableUgsResetStats'), ('RDN-CMTS-MIB', 'rdnServiceClassStatsIfDirection'), ('RDN-CMTS-MIB', 'rdnServiceClassStatsSlot'), ('RDN-CMTS-MIB', 'rdnServiceClassStatsPort'), ('RDN-CMTS-MIB', 'rdnServiceClassStatsTotalPackets'), ('RDN-CMTS-MIB', 'rdnServiceClassStatsTotalBytes'), ('RDN-CMTS-MIB', 'rdnServiceClassCurrentTotalFlows'), ('RDN-CMTS-MIB', 'rdnServiceClassDeferredFlows'), ('RDN-CMTS-MIB', 'rdnServiceClassRestrictedFlows'), ('RDN-CMTS-MIB', 'rdnServiceClassRejectedFlows'), ('RDN-CMTS-MIB', 'rdnServiceClassBandWidth'), ('RDN-CMTS-MIB', 'rdnServiceClassResetStats'), ('RDN-CMTS-MIB', 'rdnServiceClassBondingStatsSlot'), ('RDN-CMTS-MIB', 'rdnServiceClassBondingStatsChan'), ('RDN-CMTS-MIB', 'rdnServiceClassBondingCurrentTotalFlows'), ('RDN-CMTS-MIB', 'rdnServiceClassBondingDeferredFlows'), ('RDN-CMTS-MIB', 'rdnServiceClassBondingRestrictedFlows'), ('RDN-CMTS-MIB', 'rdnServiceClassBondingRejectedFlows'), ('RDN-CMTS-MIB', 'rdnServiceClassBondingBandWidth'), ('RDN-CMTS-MIB', 'rdnRQuerySwCurrentVers'), ('RDN-CMTS-MIB', 'rdnCmtsCmResetByIpv6Addr'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdn_cmts_misc_group = rdnCmtsMiscGroup.setStatus('current')
rdn_cmts_notifications_group = notification_group((1, 3, 6, 1, 4, 1, 4981, 2, 5, 2, 3)).setObjects(('RDN-CMTS-MIB', 'rdnCmtsCmRegisteredNotification'), ('RDN-CMTS-MIB', 'rdnCmtsCmDeregisteredNotification'), ('RDN-CMTS-MIB', 'rdnCmtsUpstreamIfLinkUpTrap'), ('RDN-CMTS-MIB', 'rdnCmtsUpstreamIfLinkDownTrap'), ('RDN-CMTS-MIB', 'rdnRQueryPollDoneNotification'), ('RDN-CMTS-MIB', 'rdnPktDQoSAdmittedBwThresholdTrap'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rdn_cmts_notifications_group = rdnCmtsNotificationsGroup.setStatus('current')
rdn_cable_intercept_scalars = mib_identifier((1, 3, 6, 1, 4, 1, 4981, 2, 2, 26))
rdn_cable_intercept_access_permitted = mib_scalar((1, 3, 6, 1, 4, 1, 4981, 2, 2, 26, 1), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableInterceptAccessPermitted.setStatus('current')
rdn_cable_intercept_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27))
if mibBuilder.loadTexts:
rdnCableInterceptTable.setStatus('current')
rdn_cable_intercept_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'RDN-CMTS-MIB', 'rdnCableInterceptCpeMac'))
if mibBuilder.loadTexts:
rdnCableInterceptEntry.setStatus('current')
rdn_cable_intercept_cpe_mac = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 1), mac_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptCpeMac.setStatus('current')
rdn_cable_intercept_cm_mac = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 2), mac_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptCmMac.setStatus('current')
rdn_cable_intercept_destination1_type = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 3), inet_address_type()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptDestination1Type.setStatus('current')
rdn_cable_intercept_destination1_ip = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 4), inet_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptDestination1Ip.setStatus('current')
rdn_cable_intercept_destination1_port = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 5), inet_port_number()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptDestination1Port.setStatus('current')
rdn_cable_intercept_destination2_type = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 6), inet_address_type()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptDestination2Type.setStatus('current')
rdn_cable_intercept_destination2_ip = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 7), inet_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptDestination2Ip.setStatus('current')
rdn_cable_intercept_destination2_port = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 8), inet_port_number()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptDestination2Port.setStatus('current')
rdn_cable_intercept_destination3_type = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 9), inet_address_type()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptDestination3Type.setStatus('current')
rdn_cable_intercept_destination3_ip = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 10), inet_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptDestination3Ip.setStatus('current')
rdn_cable_intercept_destination3_port = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 11), inet_port_number()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptDestination3Port.setStatus('current')
rdn_cable_intercept_source_type = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 12), inet_address_type()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptSourceType.setStatus('current')
rdn_cable_intercept_source_ip = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 13), inet_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptSourceIp.setStatus('current')
rdn_cable_intercept_pkt_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 14), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableInterceptPktCnt.setStatus('current')
rdn_cable_intercept_byte_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 15), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnCableInterceptByteCnt.setStatus('current')
rdn_cable_intercept_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 27, 1, 16), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
rdnCableInterceptRowStatus.setStatus('current')
rdn_cmts_up_channel_counter_table = mib_table((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28))
if mibBuilder.loadTexts:
rdnCmtsUpChannelCounterTable.setStatus('current')
rdn_cmts_up_channel_counter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
rdnCmtsUpChannelCounterEntry.setStatus('current')
rdn_if_cmts_up_ch_ctr_req_noise = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsUpChCtrReqNoise.setStatus('current')
rdn_if_cmts_up_ch_ctr_req_no_energy = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsUpChCtrReqNoEnergy.setStatus('current')
rdn_if_cmts_up_ch_ctr_ext_req_noise = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1, 3), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsUpChCtrExtReqNoise.setStatus('current')
rdn_if_cmts_up_ch_ctr_ext_req_no_energy = mib_table_column((1, 3, 6, 1, 4, 1, 4981, 2, 2, 28, 1, 4), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rdnIfCmtsUpChCtrExtReqNoEnergy.setStatus('current')
mibBuilder.exportSymbols('RDN-CMTS-MIB', rdnCmtsUpstreamIfLinkDownTrap=rdnCmtsUpstreamIfLinkDownTrap, rdnCableUgsAvFlowsLastFiveMinutes=rdnCableUgsAvFlowsLastFiveMinutes, rdnCableInterceptSourceIp=rdnCableInterceptSourceIp, rdnIfCmtsUpChCtrReqNoEnergy=rdnIfCmtsUpChCtrReqNoEnergy, rdnCmtsUpstreamChannelTable=rdnCmtsUpstreamChannelTable, rdnServiceClassStatsTotalBytes=rdnServiceClassStatsTotalBytes, rdnCableUgsMaxFlowsLastFiveMinutes=rdnCableUgsMaxFlowsLastFiveMinutes, rdnCmtsUpChannelCounterEntry=rdnCmtsUpChannelCounterEntry, rdnIfCmtsUpChCtrExtReqNoise=rdnIfCmtsUpChCtrExtReqNoise, rdnIfCmtsUpChCtrExtReqNoEnergy=rdnIfCmtsUpChCtrExtReqNoEnergy, rdnServiceClassStatsPort=rdnServiceClassStatsPort, rdnCableInterceptDestination3Ip=rdnCableInterceptDestination3Ip, rdnRQueryPollDoneNotification=rdnRQueryPollDoneNotification, rdnCableInterceptDestination2Ip=rdnCableInterceptDestination2Ip, rdnIfCmtsCmStatusTxUnicastExtKbytes=rdnIfCmtsCmStatusTxUnicastExtKbytes, rdnServiceClassBondingDeferredFlows=rdnServiceClassBondingDeferredFlows, rdnCableInterceptDestination2Type=rdnCableInterceptDestination2Type, rdnCmtsUSOfflineModemCount=rdnCmtsUSOfflineModemCount, rdnRQueryCmtsCmStatusExtTable=rdnRQueryCmtsCmStatusExtTable, rdnServiceClassStatsIfDirection=rdnServiceClassStatsIfDirection, rdnCmtsMibGroups=rdnCmtsMibGroups, rdnCmtsMiscObjects=rdnCmtsMiscObjects, rdnIfCmtsCmEntry=rdnIfCmtsCmEntry, rdnIfCmtsCmStatusTable=rdnIfCmtsCmStatusTable, rdnCmtsMibConformance=rdnCmtsMibConformance, rdnServiceClassBondingStatsIfDirection=rdnServiceClassBondingStatsIfDirection, rdnCmToCpeIPv6Addr=rdnCmToCpeIPv6Addr, rdnCmToCpeIpAddress=rdnCmToCpeIpAddress, rdnCmtsCmResetByIpv6Addr=rdnCmtsCmResetByIpv6Addr, rdnCmtsCmResetAll=rdnCmtsCmResetAll, rdnCableUgsAvFlowsLastWindow=rdnCableUgsAvFlowsLastWindow, rdnRQueryCmtsCmStatusEntry=rdnRQueryCmtsCmStatusEntry, rdnCableInterceptDestination3Type=rdnCableInterceptDestination3Type, rdnIfCmtsMTAOnlyStatusDocsisRegMode=rdnIfCmtsMTAOnlyStatusDocsisRegMode, rdnIfCmtsMTAOnlyStatusEntry=rdnIfCmtsMTAOnlyStatusEntry, rdnCmtsStpEnable=rdnCmtsStpEnable, rdnRQueryServerConfigFile=rdnRQueryServerConfigFile, rdnIfCmtsMTAOnlyStatusEqualizationData=rdnIfCmtsMTAOnlyStatusEqualizationData, rdnIfCmtsMTAOnlyStatusUnerroreds=rdnIfCmtsMTAOnlyStatusUnerroreds, rdnCableInterceptTable=rdnCableInterceptTable, rdnIfCmtsMTAOnlyStatusModulationType=rdnIfCmtsMTAOnlyStatusModulationType, rdnServiceClassBondingStatsTable=rdnServiceClassBondingStatsTable, rdnRQueryLastPollStartTime=rdnRQueryLastPollStartTime, rdnUgsStatsWindow=rdnUgsStatsWindow, rdnIfCmtsCmStatusMinOfflineTime=rdnIfCmtsCmStatusMinOfflineTime, rdnIfCmtsMTAOnlyStatusDownChannelIfIndex=rdnIfCmtsMTAOnlyStatusDownChannelIfIndex, rdnRQuerySigQSignalNoise=rdnRQuerySigQSignalNoise, rdnServiceClassStatsEntry=rdnServiceClassStatsEntry, rdnIfCmtsCmStatusMaxOnlineTime=rdnIfCmtsCmStatusMaxOnlineTime, rdnCmtsDownstreamChannelEntry=rdnCmtsDownstreamChannelEntry, rdnIfCmtsMTAOnlyStatusExtUnerroreds=rdnIfCmtsMTAOnlyStatusExtUnerroreds, rdnIfCmtsCmStatusAvgOnlineTime=rdnIfCmtsCmStatusAvgOnlineTime, rdnIfCmtsCmStatusSpectrumGroupName=rdnIfCmtsCmStatusSpectrumGroupName, rdnCmtsUSTotalModemCount=rdnCmtsUSTotalModemCount, rdnRQueryCmStatusTxPower=rdnRQueryCmStatusTxPower, rdnCmtsSaveConfig=rdnCmtsSaveConfig, rdnCmtsServiceClassName=rdnCmtsServiceClassName, rdnServiceClassBondingRestrictedFlows=rdnServiceClassBondingRestrictedFlows, rdnCmtsCpeMac=rdnCmtsCpeMac, rdnCmtsModemAgingTimer=rdnCmtsModemAgingTimer, rdnCmtsCmResetByIpAddr=rdnCmtsCmResetByIpAddr, rdnIfCmtsMTAOnlyStatusValueLastUpdate=rdnIfCmtsMTAOnlyStatusValueLastUpdate, rdnServiceClassBondingCurrentTotalFlows=rdnServiceClassBondingCurrentTotalFlows, rdnCmtsUpChannelCounterTable=rdnCmtsUpChannelCounterTable, rdnCmtsMib=rdnCmtsMib, rdnCmtsCmDeregisteredNotification=rdnCmtsCmDeregisteredNotification, rdnCmtsUpstreamChannelEntry=rdnCmtsUpstreamChannelEntry, rdnCmtsServiceClassAdmittedBWThreshold=rdnCmtsServiceClassAdmittedBWThreshold, rdnCableUgsMaxFlowsLastWindow=rdnCableUgsMaxFlowsLastWindow, rdnCmtsMibNotifications=rdnCmtsMibNotifications, rdnServiceClassStatsTable=rdnServiceClassStatsTable, rdnRQuerySwCurrentVers=rdnRQuerySwCurrentVers, rdnRQueryPollTime=rdnRQueryPollTime, rdnCableInterceptPktCnt=rdnCableInterceptPktCnt, rdnCmToCpeIndex=rdnCmToCpeIndex, rdnServiceClassBandWidth=rdnServiceClassBandWidth, rdnServiceClassRestrictedFlows=rdnServiceClassRestrictedFlows, rdnIfCmtsCmTable=rdnIfCmtsCmTable, rdnIfCmtsCmStatusValue=rdnIfCmtsCmStatusValue, rdnServiceClassBondingStatsSlot=rdnServiceClassBondingStatsSlot, rdnCmtsIfObjects=rdnCmtsIfObjects, rdnCmtsServiceClassCap=rdnCmtsServiceClassCap, rdnCmToCpeEntry=rdnCmToCpeEntry, rdnIfCmtsMTAOnlyStatusRxPower=rdnIfCmtsMTAOnlyStatusRxPower, rdnCmtsHostAuthControl=rdnCmtsHostAuthControl, rdnCableInterceptAccessPermitted=rdnCableInterceptAccessPermitted, rdnIfCmtsUpChCtrReqNoise=rdnIfCmtsUpChCtrReqNoise, rdnCmtsStpTCNEnable=rdnCmtsStpTCNEnable, rdnPktDQoSAdmittedBwThresholdTrap=rdnPktDQoSAdmittedBwThresholdTrap, rdnCmtsCmMac=rdnCmtsCmMac, rdnCableInterceptSourceType=rdnCableInterceptSourceType, PYSNMP_MODULE_ID=rdnCmtsMib, rdnCmtsLinkUpDownTrapEnableTable=rdnCmtsLinkUpDownTrapEnableTable, rdnIfCmtsMTAOnlyStatusTimingOffset=rdnIfCmtsMTAOnlyStatusTimingOffset, rdnIfCmtsMTAOnlyStatusMicroreflections=rdnIfCmtsMTAOnlyStatusMicroreflections, rdnModemRegIndex=rdnModemRegIndex, rdnIfCmtsCmStatusRxUnicastKbytes=rdnIfCmtsCmStatusRxUnicastKbytes, rdnIfCmtsCmStatusDownStreamPort=rdnIfCmtsCmStatusDownStreamPort, rdnServiceClassCurrentTotalFlows=rdnServiceClassCurrentTotalFlows, rdnCmtsNotificationsGroup=rdnCmtsNotificationsGroup, rdnCmtsUSNominalRxPower=rdnCmtsUSNominalRxPower, rdnIfCmtsMTAOnlyStatusInetAddressType=rdnIfCmtsMTAOnlyStatusInetAddressType, rdnCmtsLinkUpDownTrapEnable=rdnCmtsLinkUpDownTrapEnable, rdnCmtsMibCompliance=rdnCmtsMibCompliance, rdnIfCmtsMTAOnlyStatusIndex=rdnIfCmtsMTAOnlyStatusIndex, rdnCableInterceptCpeMac=rdnCableInterceptCpeMac, rdnServiceClassResetStats=rdnServiceClassResetStats, rdnIfCmtsCmCurrCpeNumber=rdnIfCmtsCmCurrCpeNumber, rdnCmtsIfGroup=rdnCmtsIfGroup, rdnCableInterceptDestination1Port=rdnCableInterceptDestination1Port, rdnCmtsLinkUpDownTrapEnableEntry=rdnCmtsLinkUpDownTrapEnableEntry, rdnCmtsUSRangingResponseControl=rdnCmtsUSRangingResponseControl, rdnServiceClassBondingStatsMacIfIndex=rdnServiceClassBondingStatsMacIfIndex, rdnCmtsUpstreamIfLinkUpTrap=rdnCmtsUpstreamIfLinkUpTrap, rdnCableInterceptDestination1Type=rdnCableInterceptDestination1Type, rdnIfCmtsMTAOnlyStatusCorrecteds=rdnIfCmtsMTAOnlyStatusCorrecteds, rdnServiceClassBondingStatsGroupId=rdnServiceClassBondingStatsGroupId, rdnCmtsServiceClassObjects=rdnCmtsServiceClassObjects, rdnCmtsMibNotificationObjects=rdnCmtsMibNotificationObjects, rdnCmtsCardType=rdnCmtsCardType, rdnCmtsCompliances=rdnCmtsCompliances, rdnCmtsCmRegisteredTrapEnable=rdnCmtsCmRegisteredTrapEnable, rdnCmToCpeMacAddress=rdnCmToCpeMacAddress, rdnIfCmtsCmStatusRegistrationTime=rdnIfCmtsCmStatusRegistrationTime, rdnIfCmtsCmStatusRxUnicastExtKbytes=rdnIfCmtsCmStatusRxUnicastExtKbytes, rdnCmtsCmResetByMacAddr=rdnCmtsCmResetByMacAddr, rdnIfCmtsCmStatusOnlineTimes=rdnIfCmtsCmStatusOnlineTimes, rdnIfCmtsCmStatusTxUnicastKbytes=rdnIfCmtsCmStatusTxUnicastKbytes, rdnIfCmtsCmStatusPercentOnline=rdnIfCmtsCmStatusPercentOnline, rdnIfCmtsCmStatusAvgOfflineTime=rdnIfCmtsCmStatusAvgOfflineTime, rdnCableUgsStatsTable=rdnCableUgsStatsTable, rdnCableInterceptDestination1Ip=rdnCableInterceptDestination1Ip, rdnIfCmtsMTAOnlyStatusSignalNoise=rdnIfCmtsMTAOnlyStatusSignalNoise, rdnCableInterceptDestination3Port=rdnCableInterceptDestination3Port, rdnRQueryUpChannelTxTimingOffset=rdnRQueryUpChannelTxTimingOffset, rdnPktDQoSAdmittedBwThresholdReason=rdnPktDQoSAdmittedBwThresholdReason, rdnCableInterceptDestination2Port=rdnCableInterceptDestination2Port, rdnCmtsUSRegisteredModemCount=rdnCmtsUSRegisteredModemCount, rdnCmtsCpeToCmTable=rdnCmtsCpeToCmTable, rdnIfCmtsMTAOnlyStatusUpChannelIfIndex=rdnIfCmtsMTAOnlyStatusUpChannelIfIndex, rdnCmtsMiscGroup=rdnCmtsMiscGroup, rdnRQueryCmtsCmStatusExtEntry=rdnRQueryCmtsCmStatusExtEntry, rdnCableInterceptEntry=rdnCableInterceptEntry, rdnCableUgsStatsPort=rdnCableUgsStatsPort, rdnCableInterceptRowStatus=rdnCableInterceptRowStatus, rdnCmtsServiceClassTable=rdnCmtsServiceClassTable, rdnCableInterceptByteCnt=rdnCableInterceptByteCnt, rdnCmtsUSNominalRxPowerMode=rdnCmtsUSNominalRxPowerMode, rdnIfCmtsCmStatusMinOnlineTime=rdnIfCmtsCmStatusMinOnlineTime, rdnCmtsCpeToCmEntry=rdnCmtsCpeToCmEntry, rdnCableUgsMinFlowsLastWindow=rdnCableUgsMinFlowsLastWindow, rdnServiceClassBondingRejectedFlows=rdnServiceClassBondingRejectedFlows, rdnIfCmtsMTAOnlyStatusIpAddress=rdnIfCmtsMTAOnlyStatusIpAddress, rdnCmtsUSInvitedRangingInterval=rdnCmtsUSInvitedRangingInterval, rdnIfCmtsCmStatusUpstreamPort=rdnIfCmtsCmStatusUpstreamPort, rdnIfCmtsCmStatusMaxOfflineTime=rdnIfCmtsCmStatusMaxOfflineTime, rdnIfCmtsMTAOnlyStatusExtUncorrectables=rdnIfCmtsMTAOnlyStatusExtUncorrectables, rdnServiceClassBondingBandWidth=rdnServiceClassBondingBandWidth, rdnCableUgsStatsSlot=rdnCableUgsStatsSlot, rdnCableUgsResetStats=rdnCableUgsResetStats, rdnModemDeregReason=rdnModemDeregReason, rdnServiceClassStatsTotalPackets=rdnServiceClassStatsTotalPackets, rdnServiceClassStatsSlot=rdnServiceClassStatsSlot, rdnRQueryCmtsCmStatusTable=rdnRQueryCmtsCmStatusTable, rdnRQueryCmtsCmDownChannelPower=rdnRQueryCmtsCmDownChannelPower, rdnCableInterceptCmMac=rdnCableInterceptCmMac, rdnIfCmtsCmStatusDSBondingGroupId=rdnIfCmtsCmStatusDSBondingGroupId, rdnCmToCpeTable=rdnCmToCpeTable, rdnIfCmtsMTAOnlyStatusValue=rdnIfCmtsMTAOnlyStatusValue, rdnServiceClassRejectedFlows=rdnServiceClassRejectedFlows, rdnIfCmtsMTAOnlyStatusInetAddress=rdnIfCmtsMTAOnlyStatusInetAddress, rdnCableInterceptScalars=rdnCableInterceptScalars, rdnCableUgsCurrentTotalFlows=rdnCableUgsCurrentTotalFlows, rdnServiceClassBondingStatsChan=rdnServiceClassBondingStatsChan, rdnServiceClassBondingStatsEntry=rdnServiceClassBondingStatsEntry, rdnCmtsServiceClassMab=rdnCmtsServiceClassMab, rdnIfCmtsCmMaxCpeNumber=rdnIfCmtsCmMaxCpeNumber, rdnCmtsDownstreamChannelTable=rdnCmtsDownstreamChannelTable, rdnServiceClassDeferredFlows=rdnServiceClassDeferredFlows, rdnIfCmtsMTAOnlyStatusExtCorrecteds=rdnIfCmtsMTAOnlyStatusExtCorrecteds, rdnIfCmtsMTAOnlyStatusTable=rdnIfCmtsMTAOnlyStatusTable, rdnRQuerySigQMicroreflections=rdnRQuerySigQMicroreflections, rdnCmtsUSRangingPowerOverride=rdnCmtsUSRangingPowerOverride, rdnCmtsUSUnregisteredModemCount=rdnCmtsUSUnregisteredModemCount, rdnCmtsCpeToCmObject=rdnCmtsCpeToCmObject, rdnCmtsCmRegisteredNotification=rdnCmtsCmRegisteredNotification, rdnIfCmtsMTAOnlyStatusUncorrectables=rdnIfCmtsMTAOnlyStatusUncorrectables, rdnCmtsServiceClassAllowShare=rdnCmtsServiceClassAllowShare, rdnCmtsServiceClassEntry=rdnCmtsServiceClassEntry, rdnIfCmtsMTAOnlyStatusMacAddress=rdnIfCmtsMTAOnlyStatusMacAddress, rdnIfCmtsCmStatusEntry=rdnIfCmtsCmStatusEntry, rdnCableUgsMinFlowsLastFiveMinutes=rdnCableUgsMinFlowsLastFiveMinutes, rdnCmtsServiceClassSchedulingPriority=rdnCmtsServiceClassSchedulingPriority, rdnRQueryLastPollStopTime=rdnRQueryLastPollStopTime, rdnCmtsDSModulation=rdnCmtsDSModulation, rdnCmtsStpObjects=rdnCmtsStpObjects, rdnCableUgsStatsEntry=rdnCableUgsStatsEntry, rdnCmtsMibNotificationPrefix=rdnCmtsMibNotificationPrefix) |
# Nokia messages
nokia_update = [
(
"openconfig-interfaces:interfaces/interface[name=1/1/c1/2]",
{
"config": {
"name": "1/1/c1/2",
"enabled": True,
"type": "ethernetCsmacd",
"description": "Test Interface @ pygnmi"
},
"subinterfaces":{
"subinterface": [
{
"index": 0,
"config": {
"index": 0,
"enabled": True
},
"ipv4": {
"addresses": {
"address": [
{
"ip": "10.0.1.1",
"config": {
"ip": "10.0.1.1",
"prefix-length": 31
}
}
]
}
},
"ipv6": {
"addresses": {
"address": [
{
"ip": "fc00:10:0:1::1",
"config": {
"ip": "fc00:10:0:1::1",
"prefix-length": 64
}
}
]
}
}
}
]
}
}
),
(
"openconfig-network-instance:network-instances/network-instance[name=Base]/interfaces/interface[id=1/1/c1/2.0]",
{
"config": {
"id": "1/1/c1/2.0",
"interface": "1/1/c1/2",
"subinterface": 0,
"associated-address-families": ["IPV4", "IPV6"]
}
}
)
]
nokia_delete = [
"openconfig-network-instance:network-instances/network-instance[name=Base]/interfaces/interface[id=1/1/c1/2.0]",
"openconfig-interfaces:interfaces/interface[name=1/1/c1/2]"
]
subscribe = {
'subscription': [
{
'path': 'openconfig-interfaces:interfaces/interface[name=1/1/c1/1]',
'mode': 'sample',
'sample_interval': 10000000000
},
{
'path': 'openconfig-network-instance:network-instances/network-instance[name=Base]/interfaces/interface[id=1/1/c1/1.0]',
'mode': 'sample',
'sample_interval': 10000000000
}
],
'mode': 'stream',
'encoding': 'json'
}
# Arista messages
arista_update = [
(
"openconfig-interfaces:interfaces/interface[name=Loopback0]",
{
"config": {
"name": "Loopback0",
"enabled": True,
"type": "softwareLoopback",
"description": "Test Interface @ pygnmi"
},
"subinterfaces":{
"subinterface": [
{
"index": 0,
"config": {
"index": 0,
"enabled": True
},
"openconfig-if-ip:ipv4": {
"addresses": {
"address": [
{
"ip": "10.0.255.1",
"config": {
"ip": "10.0.255.1",
"arista-intf-augments:addr-type": "PRIMARY",
"prefix-length": 32
}
}
]
}
},
"openconfig-if-ip:ipv6": {
"addresses": {
"address": [
{
"ip": "fc00:10:0:255::1",
"config": {
"ip": "fc00:10:0:255::1",
"prefix-length": 128
}
}
]
}
}
}
]
}
}
)
]
arista_delete = [
"openconfig-network-instance:network-instances/network-instance[name=default]/interfaces/interface[id=Loopback0]",
"openconfig-interfaces:interfaces/interface[name=Loopback0]"
]
arista_subscribe = {
'subscription': [
{
'path': 'openconfig-interfaces:interfaces/interface[name=Ethernet1]',
'mode': 'sample',
'sample_interval': 10000000000
},
{
'path': 'openconfig-interfaces:interfaces/interface[name=Management1]',
'mode': 'sample',
'sample_interval': 10000000000
}
],
'use_aliases': False,
'mode': 'stream',
'encoding': 'proto'
} | nokia_update = [('openconfig-interfaces:interfaces/interface[name=1/1/c1/2]', {'config': {'name': '1/1/c1/2', 'enabled': True, 'type': 'ethernetCsmacd', 'description': 'Test Interface @ pygnmi'}, 'subinterfaces': {'subinterface': [{'index': 0, 'config': {'index': 0, 'enabled': True}, 'ipv4': {'addresses': {'address': [{'ip': '10.0.1.1', 'config': {'ip': '10.0.1.1', 'prefix-length': 31}}]}}, 'ipv6': {'addresses': {'address': [{'ip': 'fc00:10:0:1::1', 'config': {'ip': 'fc00:10:0:1::1', 'prefix-length': 64}}]}}}]}}), ('openconfig-network-instance:network-instances/network-instance[name=Base]/interfaces/interface[id=1/1/c1/2.0]', {'config': {'id': '1/1/c1/2.0', 'interface': '1/1/c1/2', 'subinterface': 0, 'associated-address-families': ['IPV4', 'IPV6']}})]
nokia_delete = ['openconfig-network-instance:network-instances/network-instance[name=Base]/interfaces/interface[id=1/1/c1/2.0]', 'openconfig-interfaces:interfaces/interface[name=1/1/c1/2]']
subscribe = {'subscription': [{'path': 'openconfig-interfaces:interfaces/interface[name=1/1/c1/1]', 'mode': 'sample', 'sample_interval': 10000000000}, {'path': 'openconfig-network-instance:network-instances/network-instance[name=Base]/interfaces/interface[id=1/1/c1/1.0]', 'mode': 'sample', 'sample_interval': 10000000000}], 'mode': 'stream', 'encoding': 'json'}
arista_update = [('openconfig-interfaces:interfaces/interface[name=Loopback0]', {'config': {'name': 'Loopback0', 'enabled': True, 'type': 'softwareLoopback', 'description': 'Test Interface @ pygnmi'}, 'subinterfaces': {'subinterface': [{'index': 0, 'config': {'index': 0, 'enabled': True}, 'openconfig-if-ip:ipv4': {'addresses': {'address': [{'ip': '10.0.255.1', 'config': {'ip': '10.0.255.1', 'arista-intf-augments:addr-type': 'PRIMARY', 'prefix-length': 32}}]}}, 'openconfig-if-ip:ipv6': {'addresses': {'address': [{'ip': 'fc00:10:0:255::1', 'config': {'ip': 'fc00:10:0:255::1', 'prefix-length': 128}}]}}}]}})]
arista_delete = ['openconfig-network-instance:network-instances/network-instance[name=default]/interfaces/interface[id=Loopback0]', 'openconfig-interfaces:interfaces/interface[name=Loopback0]']
arista_subscribe = {'subscription': [{'path': 'openconfig-interfaces:interfaces/interface[name=Ethernet1]', 'mode': 'sample', 'sample_interval': 10000000000}, {'path': 'openconfig-interfaces:interfaces/interface[name=Management1]', 'mode': 'sample', 'sample_interval': 10000000000}], 'use_aliases': False, 'mode': 'stream', 'encoding': 'proto'} |
c = 1
while True:
n = int(input())
if n == -1: break
print('Experiment {}: {} full cycle(s)'.format(c, n // 2))
c += 1
| c = 1
while True:
n = int(input())
if n == -1:
break
print('Experiment {}: {} full cycle(s)'.format(c, n // 2))
c += 1 |
# Write a function that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.
# SIMPLER APPROACH: 1 is the min answer we return. Iterate through the list and if we we see the val of min then increment min.
# O(n)t | O(1)s
def smallestPositiveInteger(A):
A.sort()
min = 1
for val in A:
if val == min: min += 1
return min
# Approach:
# Use cyclic sort. Whichever index is out of place will be our answer. Can also just use built in .sort() within Python
# # SORT APPROACH
# def solution(A):
# for idx, val in enumerate(A):
# if val < 1: continue
# target = A[idx] - 1
# targetVal = A[target]
# A[target] = A[idx]
# A[idx] = targetVal
# if A[-1] < 1: return 1
# for idx, val in enumerate(A):
# if A[idx] != idx + 1: return idx + 1
# return A[-1] + 1
| def smallest_positive_integer(A):
A.sort()
min = 1
for val in A:
if val == min:
min += 1
return min |
for i in range(0,10):
for j in range(10, -1, -1): # we count backwards to -1 so we include 0
if(i == j):
print("i == j, so we break")
break
else:
print("i = %d, j= %d" % (i, j))
| for i in range(0, 10):
for j in range(10, -1, -1):
if i == j:
print('i == j, so we break')
break
else:
print('i = %d, j= %d' % (i, j)) |
temp = 0
respuesta = ''
def escribirArchivo(var):
archivo = open('temp.dat', 'a')
archivo.write(var+"\n")
def cerrarArchivo():
archivo = open('temp.dat', 'a')
archivo.close()
b = True
try:
while b == True:
temp = input(" Ingresa tu temperatura: ")
if(float(temp) > 37.5):
r = 'Fiebre' + ' ' + temp
escribirArchivo(r)
cerrarArchivo()
elif(float(temp) < 30.0):
r = 'Estas enfermo' + ' ' + temp
escribirArchivo(r)
cerrarArchivo()
elif(float(temp) < 5.0):
r = 'Estas muerto' + ' ' + temp
escribirArchivo(r)
cerrarArchivo()
else:
print("Estas bien")
cerrarArchivo()
except Exception:
print("Intente de nuevo")
b = False
| temp = 0
respuesta = ''
def escribir_archivo(var):
archivo = open('temp.dat', 'a')
archivo.write(var + '\n')
def cerrar_archivo():
archivo = open('temp.dat', 'a')
archivo.close()
b = True
try:
while b == True:
temp = input(' Ingresa tu temperatura: ')
if float(temp) > 37.5:
r = 'Fiebre' + ' ' + temp
escribir_archivo(r)
cerrar_archivo()
elif float(temp) < 30.0:
r = 'Estas enfermo' + ' ' + temp
escribir_archivo(r)
cerrar_archivo()
elif float(temp) < 5.0:
r = 'Estas muerto' + ' ' + temp
escribir_archivo(r)
cerrar_archivo()
else:
print('Estas bien')
cerrar_archivo()
except Exception:
print('Intente de nuevo')
b = False |
name = "TensorFlow"
description = None
args_and_kwargs = (
(("--run-eagerly",), {
"help":"Running tensorflow in eager mode may be required for high memory models.",
"action":'store_true',
"default":False,
}),
(("--disable-gpu",), {
"help":"Disable GPU for high memory models.",
"action":'store_true',
"default":False,
}),
(("--gpu-id",), {
"help":"Specify the physical device used for acceleration. This is an integer from"
"0 to num accelerators - 1. The default is zero. If `--disable-gpu` is set,"
"this option is ignored.",
"type":int,
"default": 0,
}),
(("--disable-memory-growth",), {
"help":"Disable the experimental dynamic memory allocation.",
"action":'store_true',
"default":False,
}),
(("--tf-debug",), {
"help": "Increase the TensorFlow log verbosity by setting the "
"TF_CPP_MIN_LOG_LEVEL environment variable. ",
"action" : 'store_true',
"default":False,
}),
(("--seed",), {
"help":f"Random number seed for consistent sampling.",
"type":int,
"default":1234,
}),
)
| name = 'TensorFlow'
description = None
args_and_kwargs = ((('--run-eagerly',), {'help': 'Running tensorflow in eager mode may be required for high memory models.', 'action': 'store_true', 'default': False}), (('--disable-gpu',), {'help': 'Disable GPU for high memory models.', 'action': 'store_true', 'default': False}), (('--gpu-id',), {'help': 'Specify the physical device used for acceleration. This is an integer from0 to num accelerators - 1. The default is zero. If `--disable-gpu` is set,this option is ignored.', 'type': int, 'default': 0}), (('--disable-memory-growth',), {'help': 'Disable the experimental dynamic memory allocation.', 'action': 'store_true', 'default': False}), (('--tf-debug',), {'help': 'Increase the TensorFlow log verbosity by setting the TF_CPP_MIN_LOG_LEVEL environment variable. ', 'action': 'store_true', 'default': False}), (('--seed',), {'help': f'Random number seed for consistent sampling.', 'type': int, 'default': 1234})) |
#encoding:utf-8
subreddit = 'behindthegifs'
t_channel = '@r_behindthegifs'
def send_post(submission, r2t):
return r2t.send_simple(submission,
min_upvotes_limit=100,
text=False,
gif=False,
img=False,
album=True,
other=False
) | subreddit = 'behindthegifs'
t_channel = '@r_behindthegifs'
def send_post(submission, r2t):
return r2t.send_simple(submission, min_upvotes_limit=100, text=False, gif=False, img=False, album=True, other=False) |
class DPDSettingsObject(object):
DPD_API_USERNAME = None
DPD_API_PASSWORD = None
DPD_API_FID = None
DPD_API_SANDBOX_USERNAME = None
DPD_API_SANDBOX_PASSWORD = None
DPD_API_SANDBOX_FID = None
| class Dpdsettingsobject(object):
dpd_api_username = None
dpd_api_password = None
dpd_api_fid = None
dpd_api_sandbox_username = None
dpd_api_sandbox_password = None
dpd_api_sandbox_fid = None |
class recipe_defs:
def __init__(self):
self.tags = ["Vegetarian",
"Vegan",
"Burger",
"Baby",
"High protein",
"Gluten free",
"Meat",
"Fish",
"Cold",
"Hot",
"Take away"]
self.types = ["Breakfast",
"Main",
"Dessert",
"Fika",
"Starter",
"Juice",
"Smoothie",
"Soup"]
class ingredient_def:
def __init__(self):
self.seasons = ["Spring",
"Autumn",
"Summer",
"Winter",
"Not applicable"]
self.types = ["Fruit",
"Vegy",
"Spice",
"Condiment",
"Dairy",
"Canned",
"Dry",
"Fish",
"Bird",
"Cow",
"Pig",
"Wild meat",
"Other"]
self.units = ["Piece",
"milli Litre (mL)",
"Litre (L)",
"Gram (m)",
"kilo Gram (kg)",
"Table spoon",
"Tea spoon"]
class search_configuration_def:
def __init__(self, person_count, day_count, lunch_and_dinner, types, tags):
self.configuration = {'person count': person_count,
'day count': day_count,
'lunch and dinner': lunch_and_dinner,
'type': types,
'tags': tags}
| class Recipe_Defs:
def __init__(self):
self.tags = ['Vegetarian', 'Vegan', 'Burger', 'Baby', 'High protein', 'Gluten free', 'Meat', 'Fish', 'Cold', 'Hot', 'Take away']
self.types = ['Breakfast', 'Main', 'Dessert', 'Fika', 'Starter', 'Juice', 'Smoothie', 'Soup']
class Ingredient_Def:
def __init__(self):
self.seasons = ['Spring', 'Autumn', 'Summer', 'Winter', 'Not applicable']
self.types = ['Fruit', 'Vegy', 'Spice', 'Condiment', 'Dairy', 'Canned', 'Dry', 'Fish', 'Bird', 'Cow', 'Pig', 'Wild meat', 'Other']
self.units = ['Piece', 'milli Litre (mL)', 'Litre (L)', 'Gram (m)', 'kilo Gram (kg)', 'Table spoon', 'Tea spoon']
class Search_Configuration_Def:
def __init__(self, person_count, day_count, lunch_and_dinner, types, tags):
self.configuration = {'person count': person_count, 'day count': day_count, 'lunch and dinner': lunch_and_dinner, 'type': types, 'tags': tags} |
# scored.py
# Repeatedly read test scores (from 0 to 100), until the user
# enter -1 to finish. The input part of the program will ensure
# that the numbers are in the correct range.
# For each score, report the corresponding grade:
# 90-100 = A, 80-89 = B, 70-79 = C, 60-69 = D, < 60 = F
# When you have all the scores, report the number of scores
# entered, the total points and the average score.
# Display letter grade
def display_grade(score):
if score >= 90:
print("Congratulations! That is an A.")
elif score >= 80:
print("Good job. That is a B.")
elif score >= 70:
print("You are passing with a C.")
elif score >= 60:
print("Please study more. You have a D.")
else:
print("Sorry, that is an F.")
# Prompt user for score and returns score
def get_score():
valid = False
# Enter scores until a valid score is entered
while not valid:
score = float(input('Enter a score 0-100, or -1 to finish: '))
# Check if valid score was entered
if score == -1 or (score >=0 and score <= 100):
valid = True
else:
print("Please enter a valid score.")
return score
def main():
# Intialize the count of scores and total scores
count_scores = 0
total_scores = 0
# Keep entering scores until finished is set to true
finished = False
# Enter score until the user enters -1
while not finished:
score = get_score()
# Check if user is finished entering scores
if score == -1:
finished = True
else:
# Display letter grade
display_grade(score)
# Update count of scores and total score
count_scores += 1
total_scores += score
# Display number of scores, total score and average if scores were entered
if count_scores > 0:
average = total_scores / count_scores
print(f"Total number of scores: {count_scores}")
print(f"Total number of points: {total_scores:.1f}")
print(f"Average score: {average:.2f}")
else:
print("No scores entered; no average computed.")
# Call main function
main()
| def display_grade(score):
if score >= 90:
print('Congratulations! That is an A.')
elif score >= 80:
print('Good job. That is a B.')
elif score >= 70:
print('You are passing with a C.')
elif score >= 60:
print('Please study more. You have a D.')
else:
print('Sorry, that is an F.')
def get_score():
valid = False
while not valid:
score = float(input('Enter a score 0-100, or -1 to finish: '))
if score == -1 or (score >= 0 and score <= 100):
valid = True
else:
print('Please enter a valid score.')
return score
def main():
count_scores = 0
total_scores = 0
finished = False
while not finished:
score = get_score()
if score == -1:
finished = True
else:
display_grade(score)
count_scores += 1
total_scores += score
if count_scores > 0:
average = total_scores / count_scores
print(f'Total number of scores: {count_scores}')
print(f'Total number of points: {total_scores:.1f}')
print(f'Average score: {average:.2f}')
else:
print('No scores entered; no average computed.')
main() |
def is_possible(m, n, times):
re = 0
for t in times:
re += m // t
if re >= n:
return True
return False
def solution(n, times):
answer = 0
times.sort()
l=0; r=1_000_000_000_000_000; m=0
while l <= r:
m = (l+r)//2
if is_possible(m, n, times):
answer = m
r = m-1
else:
l = m+1
return answer
n, times = 6, [2, 7, 10]
print(solution(n, times))
| def is_possible(m, n, times):
re = 0
for t in times:
re += m // t
if re >= n:
return True
return False
def solution(n, times):
answer = 0
times.sort()
l = 0
r = 1000000000000000
m = 0
while l <= r:
m = (l + r) // 2
if is_possible(m, n, times):
answer = m
r = m - 1
else:
l = m + 1
return answer
(n, times) = (6, [2, 7, 10])
print(solution(n, times)) |
list1=[1,2,6,12]
iteration=0
print ("iteration", iteration, list1)
for i in range(len(list1)):
for j in range(len(list1)-1-i):
iteration=iteration+1
if list1[j]> list1[j+1]:
temp=list1[j]
list1[j] = list1[j+1]
list1[j+1]=temp # Swap!
print ("iteration", iteration, list1)
print(list1)
| list1 = [1, 2, 6, 12]
iteration = 0
print('iteration', iteration, list1)
for i in range(len(list1)):
for j in range(len(list1) - 1 - i):
iteration = iteration + 1
if list1[j] > list1[j + 1]:
temp = list1[j]
list1[j] = list1[j + 1]
list1[j + 1] = temp
print('iteration', iteration, list1)
print(list1) |
class TrackGroupStyle:
def __init__(self, distance=5, internal_offset=2, x_multiplier=1.05, show_label=True,
label_fontsize=16, label_fontweight="normal",
label_fontstyle='normal',
label_hor_aln='right', label_vert_aln='center',
label_y_shift=0,
label_x_shift=-15,
):
self.distance = distance
self.internal_offset = internal_offset
self.x_multiplier = x_multiplier
self.show_label = show_label
self.label_fontweight = label_fontweight
self.label_fontstyle = label_fontstyle
self.label_fontsize = label_fontsize
self.label_hor_aln = label_hor_aln
self.label_vert_aln = label_vert_aln
self.label_y_shift = label_y_shift
self.label_x_shift = label_x_shift
default_track_group_style = TrackGroupStyle()
italic_track_group_style = TrackGroupStyle(label_fontstyle='italic')
| class Trackgroupstyle:
def __init__(self, distance=5, internal_offset=2, x_multiplier=1.05, show_label=True, label_fontsize=16, label_fontweight='normal', label_fontstyle='normal', label_hor_aln='right', label_vert_aln='center', label_y_shift=0, label_x_shift=-15):
self.distance = distance
self.internal_offset = internal_offset
self.x_multiplier = x_multiplier
self.show_label = show_label
self.label_fontweight = label_fontweight
self.label_fontstyle = label_fontstyle
self.label_fontsize = label_fontsize
self.label_hor_aln = label_hor_aln
self.label_vert_aln = label_vert_aln
self.label_y_shift = label_y_shift
self.label_x_shift = label_x_shift
default_track_group_style = track_group_style()
italic_track_group_style = track_group_style(label_fontstyle='italic') |
def new_if(predicate, then, otherwise):
if predicate:
then
else:
otherwise
def p(x):
new_if(x > 5, print(x), p(x+1))
p(1) # what happens here? | def new_if(predicate, then, otherwise):
if predicate:
then
else:
otherwise
def p(x):
new_if(x > 5, print(x), p(x + 1))
p(1) |
a = [1, 2, 3, 4, 5, 6, 7, 8, 9]
#################
# List indexing #
#################
# Classical position indexing
i = 0
while i < len(a):
print(a[i])
i += 1
# Negative indices
print(a[-1])
print(a[-2])
print(a[-3])
################
# List slicing #
################
# Elements between indices 3 and 7
print(a[3:7])
# Elements from index 5 onwards
print(a[5:])
# Elements from the start up to index 8
print(a[:8])
#######################
# List comprehensions #
#######################
# The first 10 square natural numbers
l = [x * x for x in range(1, 10)]
print(l)
# The first even square natural numbers
l = [x * x for x in range(1, 10) if (x * x) % 2 == 0]
print(l)
# Some numbers from the first list
l = [x for x in a if x > 2 and x < 7]
print(l)
#######
# zip #
#######
l = zip([1, 2, 3, 4], ["a", "b", "c"], ["Hello", ",", "World", "!"])
print(l)
| a = [1, 2, 3, 4, 5, 6, 7, 8, 9]
i = 0
while i < len(a):
print(a[i])
i += 1
print(a[-1])
print(a[-2])
print(a[-3])
print(a[3:7])
print(a[5:])
print(a[:8])
l = [x * x for x in range(1, 10)]
print(l)
l = [x * x for x in range(1, 10) if x * x % 2 == 0]
print(l)
l = [x for x in a if x > 2 and x < 7]
print(l)
l = zip([1, 2, 3, 4], ['a', 'b', 'c'], ['Hello', ',', 'World', '!'])
print(l) |
#
# PySNMP MIB module Juniper-HTTP-Profile-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-HTTP-Profile-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:02:54 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)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint")
juniMibs, = mibBuilder.importSymbols("Juniper-MIBs", "juniMibs")
JuniSetMap, = mibBuilder.importSymbols("Juniper-TC", "JuniSetMap")
ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
Counter64, Bits, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, TimeTicks, ModuleIdentity, MibIdentifier, Unsigned32, Integer32, Gauge32, IpAddress, NotificationType, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "Bits", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "TimeTicks", "ModuleIdentity", "MibIdentifier", "Unsigned32", "Integer32", "Gauge32", "IpAddress", "NotificationType", "iso")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
juniHttpProfileMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79))
juniHttpProfileMIB.setRevisions(('2005-08-19 14:21',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: juniHttpProfileMIB.setRevisionsDescriptions(('Initial version of this MIB module.',))
if mibBuilder.loadTexts: juniHttpProfileMIB.setLastUpdated('200508191421Z')
if mibBuilder.loadTexts: juniHttpProfileMIB.setOrganization('Juniper Networks, Inc.')
if mibBuilder.loadTexts: juniHttpProfileMIB.setContactInfo(' Juniper Networks, Inc. Postal: 10 Technology Park Drive Westford, MA 01886-3146 USA Tel: +1 978 589 5800 Email: mib@Juniper.net')
if mibBuilder.loadTexts: juniHttpProfileMIB.setDescription('The HTTP rofile MIB for the Juniper Networks, Inc. enterprise.')
juniHttpProfileObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1))
juniHttpProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1))
juniHttpProfileTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1), )
if mibBuilder.loadTexts: juniHttpProfileTable.setStatus('current')
if mibBuilder.loadTexts: juniHttpProfileTable.setDescription('This table contains profiles for configuring bulk ATM circuits. Entries in this table are created/deleted as a side-effect of corresponding operations to the juniProfileNameTable in the Juniper-PROFILE-MIB.')
juniHttpProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1, 1), ).setIndexNames((0, "Juniper-HTTP-Profile-MIB", "juniHttpProfileId"))
if mibBuilder.loadTexts: juniHttpProfileEntry.setStatus('current')
if mibBuilder.loadTexts: juniHttpProfileEntry.setDescription('A profile describing VCC configuration of an ATM subinterface.')
juniHttpProfileId = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1, 1, 1), Unsigned32())
if mibBuilder.loadTexts: juniHttpProfileId.setStatus('current')
if mibBuilder.loadTexts: juniHttpProfileId.setDescription('The integer identifier associated with this profile. A value for this identifier is determined by locating or creating a profile name in the juniProfileNameTable.')
juniHttpProfileSetMap = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1, 1, 2), JuniSetMap()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniHttpProfileSetMap.setStatus('current')
if mibBuilder.loadTexts: juniHttpProfileSetMap.setDescription("A bitmap representing which objects in this entry have been explicitly configured. See the definition of the JuniSetMap TEXTUAL-CONVENTION for details of use. The INDEX object(s) and this object are excluded from representation (i.e. their bits are never set). When a SET request does not explicitly configure JuniSetMap, bits in JuniSetMap are set as a side-effect of configuring other profile attributes in the same entry. If, however, a SET request explicitly configures JuniSetMap, the explicitly configured value overrides 1) any previous bit settings, and 2) any simultaneous 'side-effect' settings that would otherwise occur. Once set, bits can only be cleared by explicitly configuring JuniSetMap.")
juniHttpProfileRedirectUrl = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: juniHttpProfileRedirectUrl.setStatus('current')
if mibBuilder.loadTexts: juniHttpProfileRedirectUrl.setDescription('This object is a 64 byte string that will be used as the redirect URL when requests arrive at the HTTP server over the Ip Interface configured.')
juniHttpProfileConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4))
juniHttpProfileCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4, 1))
juniHttpProfileGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4, 2))
juniHttpProfileCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4, 1, 1)).setObjects(("Juniper-HTTP-Profile-MIB", "juniHttpProfileGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniHttpProfileCompliance = juniHttpProfileCompliance.setStatus('current')
if mibBuilder.loadTexts: juniHttpProfileCompliance.setDescription('Compliance statement for entities which implement the Juniper HTTP Profile MIB.')
juniHttpProfileGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4, 2, 1)).setObjects(("Juniper-HTTP-Profile-MIB", "juniHttpProfileSetMap"), ("Juniper-HTTP-Profile-MIB", "juniHttpProfileRedirectUrl"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniHttpProfileGroup = juniHttpProfileGroup.setStatus('current')
if mibBuilder.loadTexts: juniHttpProfileGroup.setDescription('Current collection of objects providing management of profile functionality for per Interface HTTP objects in a Juniper product.')
mibBuilder.exportSymbols("Juniper-HTTP-Profile-MIB", juniHttpProfileSetMap=juniHttpProfileSetMap, juniHttpProfileGroups=juniHttpProfileGroups, juniHttpProfile=juniHttpProfile, juniHttpProfileCompliances=juniHttpProfileCompliances, juniHttpProfileCompliance=juniHttpProfileCompliance, juniHttpProfileRedirectUrl=juniHttpProfileRedirectUrl, juniHttpProfileTable=juniHttpProfileTable, juniHttpProfileMIB=juniHttpProfileMIB, PYSNMP_MODULE_ID=juniHttpProfileMIB, juniHttpProfileId=juniHttpProfileId, juniHttpProfileConformance=juniHttpProfileConformance, juniHttpProfileGroup=juniHttpProfileGroup, juniHttpProfileEntry=juniHttpProfileEntry, juniHttpProfileObjects=juniHttpProfileObjects)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_range_constraint, constraints_union, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint')
(juni_mibs,) = mibBuilder.importSymbols('Juniper-MIBs', 'juniMibs')
(juni_set_map,) = mibBuilder.importSymbols('Juniper-TC', 'JuniSetMap')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(counter64, bits, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, object_identity, time_ticks, module_identity, mib_identifier, unsigned32, integer32, gauge32, ip_address, notification_type, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'Bits', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ObjectIdentity', 'TimeTicks', 'ModuleIdentity', 'MibIdentifier', 'Unsigned32', 'Integer32', 'Gauge32', 'IpAddress', 'NotificationType', 'iso')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
juni_http_profile_mib = module_identity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79))
juniHttpProfileMIB.setRevisions(('2005-08-19 14:21',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
juniHttpProfileMIB.setRevisionsDescriptions(('Initial version of this MIB module.',))
if mibBuilder.loadTexts:
juniHttpProfileMIB.setLastUpdated('200508191421Z')
if mibBuilder.loadTexts:
juniHttpProfileMIB.setOrganization('Juniper Networks, Inc.')
if mibBuilder.loadTexts:
juniHttpProfileMIB.setContactInfo(' Juniper Networks, Inc. Postal: 10 Technology Park Drive Westford, MA 01886-3146 USA Tel: +1 978 589 5800 Email: mib@Juniper.net')
if mibBuilder.loadTexts:
juniHttpProfileMIB.setDescription('The HTTP rofile MIB for the Juniper Networks, Inc. enterprise.')
juni_http_profile_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1))
juni_http_profile = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1))
juni_http_profile_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1))
if mibBuilder.loadTexts:
juniHttpProfileTable.setStatus('current')
if mibBuilder.loadTexts:
juniHttpProfileTable.setDescription('This table contains profiles for configuring bulk ATM circuits. Entries in this table are created/deleted as a side-effect of corresponding operations to the juniProfileNameTable in the Juniper-PROFILE-MIB.')
juni_http_profile_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1, 1)).setIndexNames((0, 'Juniper-HTTP-Profile-MIB', 'juniHttpProfileId'))
if mibBuilder.loadTexts:
juniHttpProfileEntry.setStatus('current')
if mibBuilder.loadTexts:
juniHttpProfileEntry.setDescription('A profile describing VCC configuration of an ATM subinterface.')
juni_http_profile_id = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1, 1, 1), unsigned32())
if mibBuilder.loadTexts:
juniHttpProfileId.setStatus('current')
if mibBuilder.loadTexts:
juniHttpProfileId.setDescription('The integer identifier associated with this profile. A value for this identifier is determined by locating or creating a profile name in the juniProfileNameTable.')
juni_http_profile_set_map = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1, 1, 2), juni_set_map()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniHttpProfileSetMap.setStatus('current')
if mibBuilder.loadTexts:
juniHttpProfileSetMap.setDescription("A bitmap representing which objects in this entry have been explicitly configured. See the definition of the JuniSetMap TEXTUAL-CONVENTION for details of use. The INDEX object(s) and this object are excluded from representation (i.e. their bits are never set). When a SET request does not explicitly configure JuniSetMap, bits in JuniSetMap are set as a side-effect of configuring other profile attributes in the same entry. If, however, a SET request explicitly configures JuniSetMap, the explicitly configured value overrides 1) any previous bit settings, and 2) any simultaneous 'side-effect' settings that would otherwise occur. Once set, bits can only be cleared by explicitly configuring JuniSetMap.")
juni_http_profile_redirect_url = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 1, 1, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
juniHttpProfileRedirectUrl.setStatus('current')
if mibBuilder.loadTexts:
juniHttpProfileRedirectUrl.setDescription('This object is a 64 byte string that will be used as the redirect URL when requests arrive at the HTTP server over the Ip Interface configured.')
juni_http_profile_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4))
juni_http_profile_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4, 1))
juni_http_profile_groups = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4, 2))
juni_http_profile_compliance = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4, 1, 1)).setObjects(('Juniper-HTTP-Profile-MIB', 'juniHttpProfileGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_http_profile_compliance = juniHttpProfileCompliance.setStatus('current')
if mibBuilder.loadTexts:
juniHttpProfileCompliance.setDescription('Compliance statement for entities which implement the Juniper HTTP Profile MIB.')
juni_http_profile_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 79, 4, 2, 1)).setObjects(('Juniper-HTTP-Profile-MIB', 'juniHttpProfileSetMap'), ('Juniper-HTTP-Profile-MIB', 'juniHttpProfileRedirectUrl'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_http_profile_group = juniHttpProfileGroup.setStatus('current')
if mibBuilder.loadTexts:
juniHttpProfileGroup.setDescription('Current collection of objects providing management of profile functionality for per Interface HTTP objects in a Juniper product.')
mibBuilder.exportSymbols('Juniper-HTTP-Profile-MIB', juniHttpProfileSetMap=juniHttpProfileSetMap, juniHttpProfileGroups=juniHttpProfileGroups, juniHttpProfile=juniHttpProfile, juniHttpProfileCompliances=juniHttpProfileCompliances, juniHttpProfileCompliance=juniHttpProfileCompliance, juniHttpProfileRedirectUrl=juniHttpProfileRedirectUrl, juniHttpProfileTable=juniHttpProfileTable, juniHttpProfileMIB=juniHttpProfileMIB, PYSNMP_MODULE_ID=juniHttpProfileMIB, juniHttpProfileId=juniHttpProfileId, juniHttpProfileConformance=juniHttpProfileConformance, juniHttpProfileGroup=juniHttpProfileGroup, juniHttpProfileEntry=juniHttpProfileEntry, juniHttpProfileObjects=juniHttpProfileObjects) |
# create_trusted_globals_dict takes in a module name [module_name], a trusted values dictionary [trusted_values_dict],
# and a boolean [first_time].
# Called by run_test
def create_trusted_globals_dict(self):
# If module is being run for the first time, a trusted_values_dict entry doesn't exist; return an empty dictionary.
if self.first_time:
return {}
# Otherwise, return the trusted_values_dict entry for the string [module_name] with the word 'Globals' concatenated
# onto its end -- this is the standard naming scheme for NRPy unit tests.
else:
return self.trusted_values_dict[self.trusted_values_dict_name]
| def create_trusted_globals_dict(self):
if self.first_time:
return {}
else:
return self.trusted_values_dict[self.trusted_values_dict_name] |
class Truckloads:
def numTrucks(self, numCrates, loadSize):
if numCrates <= loadSize:
return 1
return self.numTrucks(numCrates/2, loadSize) + self.numTrucks((numCrates+1)/2, loadSize)
| class Truckloads:
def num_trucks(self, numCrates, loadSize):
if numCrates <= loadSize:
return 1
return self.numTrucks(numCrates / 2, loadSize) + self.numTrucks((numCrates + 1) / 2, loadSize) |
#!/usr/bin/env python3
def proc(x):
print(x)
x = proc("testing 1, 2, 3...")
print("below is x: ")
print(x)
print("above is x: ")
| def proc(x):
print(x)
x = proc('testing 1, 2, 3...')
print('below is x: ')
print(x)
print('above is x: ') |
GET_POWER_FLOW_REALTIME_DATA = {
'timestamp': {
'value': '2019-01-10T23:33:12+01:00'
},
'status': {
'Code': 0,
'Reason': '',
'UserMessage': ''
},
'energy_day': {
'value': 0,
'unit': 'Wh'
},
'energy_total': {
'value': 26213502,
'unit': 'Wh'
},
'energy_year': {
'value': 12400.100586,
'unit': 'Wh'
},
'meter_location': {
'value': 'load'
},
'meter_mode': {
'value': 'vague-meter'
},
'power_battery': {
'value': None,
'unit': 'W'
},
'power_grid': {
'value': 367.722145,
'unit': 'W'
},
'power_load': {
'value': -367.722145,
'unit': 'W'
},
'power_photovoltaics': {
'value': None,
'unit': 'W'
}
}
GET_METER_REALTIME_DATA_SYSTEM = {
'timestamp': {
'value': '2019-01-10T23:33:13+01:00'
},
'status': {
'Code': 0,
'Reason': '',
'UserMessage': ''
},
'meters': {
'0': {
'power_real': {
'value': -367.722145,
'unit': 'W'
},
'meter_location': {
'value': 1
},
'enable': {
'value': 1
},
'visible': {
'value': 1
},
'manufacturer': {
'value': 'Fronius'
},
'model': {
'value': ''
},
'serial': {
'value': ''
}
}
}
}
GET_METER_REALTIME_DATA_SCOPE_DEVICE = {
'timestamp': {
'value': '2019-01-10T23:33:14+01:00'
},
'status': {
'Code': 0,
'Reason': '',
'UserMessage': ''
},
'power_real': {
'value': -367.722145,
'unit': 'W'
},
'meter_location': {
'value': 1
},
'enable': {
'value': 1
},
'visible': {
'value': 1
},
'manufacturer': {
'value': 'Fronius'
},
'model': {
'value': ''
},
'serial': {
'value': ''
}
}
GET_INVERTER_REALTIME_DATA_SCOPE_DEVICE = {
'timestamp': {
'value': '2019-01-10T23:33:15+01:00'
},
'status': {
'Code': 0,
'Reason': '',
'UserMessage': ''
},
'energy_day': {
'value': 0,
'unit': 'Wh'
},
'energy_total': {
'value': 26213502,
'unit': 'Wh'
},
'energy_year': {
'value': 12400.1,
'unit': 'Wh'
}
}
GET_INVERTER_REALTIME_DATA_SYSTEM = {
'timestamp': {
'value': '2019-01-10T23:33:16+01:00'
},
'status': {
'Code': 0,
'Reason': '',
'UserMessage': ''
},
'energy_day': {
'value': 0,
'unit': 'Wh'
},
'energy_total': {
'value': 26213502,
'unit': 'Wh'
},
'energy_year': {
'value': 12400,
'unit': 'Wh'
},
'power_ac': {
'value': 0,
'unit': 'W'
},
'inverters': {
'1': {
'energy_day': {
'value': 0,
'unit': 'Wh'
},
'energy_total': {
'value': 26213502,
'unit': 'Wh'
},
'energy_year': {
'value': 12400,
'unit': 'Wh'
},
'power_ac': {
'value': 0,
'unit': 'Wh'
}
}
}
}
| get_power_flow_realtime_data = {'timestamp': {'value': '2019-01-10T23:33:12+01:00'}, 'status': {'Code': 0, 'Reason': '', 'UserMessage': ''}, 'energy_day': {'value': 0, 'unit': 'Wh'}, 'energy_total': {'value': 26213502, 'unit': 'Wh'}, 'energy_year': {'value': 12400.100586, 'unit': 'Wh'}, 'meter_location': {'value': 'load'}, 'meter_mode': {'value': 'vague-meter'}, 'power_battery': {'value': None, 'unit': 'W'}, 'power_grid': {'value': 367.722145, 'unit': 'W'}, 'power_load': {'value': -367.722145, 'unit': 'W'}, 'power_photovoltaics': {'value': None, 'unit': 'W'}}
get_meter_realtime_data_system = {'timestamp': {'value': '2019-01-10T23:33:13+01:00'}, 'status': {'Code': 0, 'Reason': '', 'UserMessage': ''}, 'meters': {'0': {'power_real': {'value': -367.722145, 'unit': 'W'}, 'meter_location': {'value': 1}, 'enable': {'value': 1}, 'visible': {'value': 1}, 'manufacturer': {'value': 'Fronius'}, 'model': {'value': ''}, 'serial': {'value': ''}}}}
get_meter_realtime_data_scope_device = {'timestamp': {'value': '2019-01-10T23:33:14+01:00'}, 'status': {'Code': 0, 'Reason': '', 'UserMessage': ''}, 'power_real': {'value': -367.722145, 'unit': 'W'}, 'meter_location': {'value': 1}, 'enable': {'value': 1}, 'visible': {'value': 1}, 'manufacturer': {'value': 'Fronius'}, 'model': {'value': ''}, 'serial': {'value': ''}}
get_inverter_realtime_data_scope_device = {'timestamp': {'value': '2019-01-10T23:33:15+01:00'}, 'status': {'Code': 0, 'Reason': '', 'UserMessage': ''}, 'energy_day': {'value': 0, 'unit': 'Wh'}, 'energy_total': {'value': 26213502, 'unit': 'Wh'}, 'energy_year': {'value': 12400.1, 'unit': 'Wh'}}
get_inverter_realtime_data_system = {'timestamp': {'value': '2019-01-10T23:33:16+01:00'}, 'status': {'Code': 0, 'Reason': '', 'UserMessage': ''}, 'energy_day': {'value': 0, 'unit': 'Wh'}, 'energy_total': {'value': 26213502, 'unit': 'Wh'}, 'energy_year': {'value': 12400, 'unit': 'Wh'}, 'power_ac': {'value': 0, 'unit': 'W'}, 'inverters': {'1': {'energy_day': {'value': 0, 'unit': 'Wh'}, 'energy_total': {'value': 26213502, 'unit': 'Wh'}, 'energy_year': {'value': 12400, 'unit': 'Wh'}, 'power_ac': {'value': 0, 'unit': 'Wh'}}}} |
#
# PySNMP MIB module Wellfleet-CONSOLE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-CONSOLE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:39:44 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)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
TimeTicks, ModuleIdentity, Gauge32, Unsigned32, iso, Counter32, Bits, ObjectIdentity, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Integer32, NotificationType, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ModuleIdentity", "Gauge32", "Unsigned32", "iso", "Counter32", "Bits", "ObjectIdentity", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Integer32", "NotificationType", "IpAddress")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
wfServices, wfSerialPortGroup = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfServices", "wfSerialPortGroup")
wfConsole = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1))
wfBaudRate = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 1), Integer32().clone(9600)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfBaudRate.setStatus('obsolete')
if mibBuilder.loadTexts: wfBaudRate.setDescription('Baud rate configured on the Technician Interface console')
wfDataBits = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 2), Integer32().clone(8)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfDataBits.setStatus('obsolete')
if mibBuilder.loadTexts: wfDataBits.setDescription('Number of data bits configured on the Technician Interface console')
wfParity = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("odd", 2), ("even", 3))).clone('none')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfParity.setStatus('obsolete')
if mibBuilder.loadTexts: wfParity.setDescription('Type of parity configured on the Technician Interface console')
wfStopBits = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("s1bit", 1), ("s15bit", 2), ("s2bit", 3))).clone('s1bit')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfStopBits.setStatus('obsolete')
if mibBuilder.loadTexts: wfStopBits.setDescription('Number of stop bits configured on the Technician Interface console')
wfModemEnable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfModemEnable.setStatus('obsolete')
if mibBuilder.loadTexts: wfModemEnable.setDescription('Enable the Technician Interface console to run over a modem')
wfLinesPerScreen = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 6), Integer32().clone(24)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfLinesPerScreen.setStatus('obsolete')
if mibBuilder.loadTexts: wfLinesPerScreen.setDescription('Number of lines which can be displayed in one screen on the Technician Interface console')
wfMoreEnable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMoreEnable.setStatus('obsolete')
if mibBuilder.loadTexts: wfMoreEnable.setDescription("Enable the 'more' feature on the Technician Interface console")
wfPrompt = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfPrompt.setStatus('obsolete')
if mibBuilder.loadTexts: wfPrompt.setDescription('Character string which will be used as the system prompt on the Technician Interface console')
wfLoginTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfLoginTimeOut.setStatus('obsolete')
if mibBuilder.loadTexts: wfLoginTimeOut.setDescription('IF MODEM_ENABLED then time out in minutes to HUP when at the login prompt')
wfPasswordTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfPasswordTimeOut.setStatus('obsolete')
if mibBuilder.loadTexts: wfPasswordTimeOut.setDescription('Timout on Password entry')
wfCommandTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(15)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfCommandTimeOut.setStatus('obsolete')
if mibBuilder.loadTexts: wfCommandTimeOut.setDescription('IF MODEM_ENABLED then time out in minutes to HUP when at the command prompt')
wfLoginRetries = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfLoginRetries.setStatus('obsolete')
if mibBuilder.loadTexts: wfLoginRetries.setDescription('IF MODEM_ENABLED then limit # of login attempts then HUP')
wfTotalLogins = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfTotalLogins.setStatus('obsolete')
if mibBuilder.loadTexts: wfTotalLogins.setDescription('Total number of TI login attempts')
wfUserLoginErrors = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfUserLoginErrors.setStatus('obsolete')
if mibBuilder.loadTexts: wfUserLoginErrors.setDescription('Total number of FAILED User login attempts')
wfManagerLoginErrors = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfManagerLoginErrors.setStatus('obsolete')
if mibBuilder.loadTexts: wfManagerLoginErrors.setDescription('Total number of FAILED Manager login attempts')
wfOtherLoginErrors = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfOtherLoginErrors.setStatus('obsolete')
if mibBuilder.loadTexts: wfOtherLoginErrors.setDescription('Total number of FAILED Other login attempts')
wfTtyFrameErrors = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfTtyFrameErrors.setStatus('obsolete')
if mibBuilder.loadTexts: wfTtyFrameErrors.setDescription('Count of TTY Frame errors')
wfTtyOverrunErrors = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfTtyOverrunErrors.setStatus('obsolete')
if mibBuilder.loadTexts: wfTtyOverrunErrors.setDescription('Count of TTY Overrun errors')
wfTtyParityErrors = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfTtyParityErrors.setStatus('obsolete')
if mibBuilder.loadTexts: wfTtyParityErrors.setDescription('Count of TTY Parity errors')
wfTtyInfifoErrors = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfTtyInfifoErrors.setStatus('obsolete')
if mibBuilder.loadTexts: wfTtyInfifoErrors.setDescription('Count of TTY Input Fifo errors')
wfSerialPortTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1), )
if mibBuilder.loadTexts: wfSerialPortTable.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortTable.setDescription('Configuration of system serial port(s)')
wfSerialPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1), ).setIndexNames((0, "Wellfleet-CONSOLE-MIB", "wfSerialPortNumber"))
if mibBuilder.loadTexts: wfSerialPortEntry.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortEntry.setDescription('Information for each serial port.')
wfSerialPortDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortDelete.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortDelete.setDescription('Flag to indicate Serial Port instance deletion')
wfSerialPortDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortDisable.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortDisable.setDescription('Enable or disable this Serial Port')
wfSerialPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpresent", 4))).clone('notpresent')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortState.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortState.setDescription('The state of this Serial Port')
wfSerialPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortNumber.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortNumber.setDescription('Serial Port number')
wfSerialPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortName.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortName.setDescription('Serial Port name')
wfSerialPortSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortSlot.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortSlot.setDescription('Slot number of Serial Port session')
wfSerialPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ti", 1), ("printer", 2), ("rtelnet", 3))).clone('ti')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortType.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortType.setDescription('Type of Serial Port')
wfSerialPortBaudRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 8), Integer32().clone(9600)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortBaudRate.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortBaudRate.setDescription('Baud rate configured on this Serial Port')
wfSerialPortDataBits = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 9), Integer32().clone(8)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortDataBits.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortDataBits.setDescription('Number of data bits configured on this Serial Port')
wfSerialPortParity = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("odd", 2), ("even", 3))).clone('none')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortParity.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortParity.setDescription('Type of parity configured on this Serial Port')
wfSerialPortStopBits = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("s1bit", 1), ("s15bit", 2), ("s2bit", 3))).clone('s1bit')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortStopBits.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortStopBits.setDescription('Number of stop bits configured on this Serial Port')
wfSerialPortModemEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortModemEnable.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemEnable.setDescription('Enable the Serial Port to run with modem leads enabled')
wfSerialPortLinesPerScreen = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 13), Integer32().clone(24)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortLinesPerScreen.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortLinesPerScreen.setDescription('Number of lines which can be displayed in one screen on the Serial Port')
wfSerialPortMoreEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortMoreEnable.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortMoreEnable.setDescription("Enable the 'more' feature on the Serial Port")
wfSerialPortPrompt = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 15), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortPrompt.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortPrompt.setDescription('Character string which will be used as the system prompt on the Serial Port')
wfSerialPortLoginTimeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortLoginTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortLoginTimeOut.setDescription('IF MODEM_ENABLED then time out in minutes to HUP when at the login prompt')
wfSerialPortPasswordTimeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortPasswordTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortPasswordTimeOut.setDescription('Timout on Password entry')
wfSerialPortCommandTimeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(15)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortCommandTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortCommandTimeOut.setDescription('IF MODEM_ENABLED then time out in minutes to HUP when at the command prompt')
wfSerialPortLoginRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 99)).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortLoginRetries.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortLoginRetries.setDescription('IF MODEM_ENABLED then limit # of login attempts then HUP')
wfSerialPortTotalLogins = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortTotalLogins.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortTotalLogins.setDescription('Total number of TI login attempts on Serial Port')
wfSerialPortUserLoginErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortUserLoginErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortUserLoginErrors.setDescription('Total number of FAILED User login attempts on Serial Port')
wfSerialPortManagerLoginErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortManagerLoginErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortManagerLoginErrors.setDescription('Total number of FAILED Manager login attempts on Serial Port')
wfSerialPortOtherLoginErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortOtherLoginErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortOtherLoginErrors.setDescription('Total number of FAILED Other login attempts on Serial Port')
wfSerialPortTtyFrameErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortTtyFrameErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortTtyFrameErrors.setDescription('Count of TTY Frame errors on Serial Port')
wfSerialPortTtyOverrunErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortTtyOverrunErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortTtyOverrunErrors.setDescription('Count of TTY Overrun errors on Serial Port')
wfSerialPortTtyParityErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortTtyParityErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortTtyParityErrors.setDescription('Count of TTY Parity errors on Serial Port')
wfSerialPortTtyInfifoErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortTtyInfifoErrors.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortTtyInfifoErrors.setDescription('Count of TTY Input Fifo errors on Serial Port')
wfSerialPortInitialSearchPath = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 28), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortInitialSearchPath.setStatus('obsolete')
if mibBuilder.loadTexts: wfSerialPortInitialSearchPath.setDescription("Example: 'A:;1:;2:' or '2:;4:6:;9:")
wfSerialPortManagerAutoScript = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 29), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortManagerAutoScript.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortManagerAutoScript.setDescription('for each login.')
wfSerialPortUserAutoScript = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 30), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortUserAutoScript.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortUserAutoScript.setDescription('for each login.')
wfSerialPortUserAbortLogoutDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortUserAbortLogoutDisable.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortUserAbortLogoutDisable.setDescription('a USER from escaping out of the User Autoscript')
wfSerialPortHistoryDepth = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 32), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 40)).clone(20)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortHistoryDepth.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortHistoryDepth.setDescription('TI command history table size')
wfSerialPortAutoSaveNumFiles = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 99))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortAutoSaveNumFiles.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortAutoSaveNumFiles.setDescription('Number of times AutoSave will save the log 0 - disable the AutoSave log')
wfSerialPortAutoSaveVolume = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 34), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortAutoSaveVolume.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortAutoSaveVolume.setDescription("Volume, to which AutoSave will save logs Example: 'A:' or '2:'")
wfSerialPortModemIdSwRev = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 35), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortModemIdSwRev.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemIdSwRev.setDescription("A textual description of the modem's firmware version number.")
wfSerialPortModemIdHwRev = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 36), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 79))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortModemIdHwRev.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemIdHwRev.setDescription('A textual description of the revision number of the modem daughter card.')
wfSerialPortModemLineState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 37), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("onHook", 2), ("offHook", 3), ("connected", 4), ("busiedOut", 5), ("reset", 6))).clone('unknown')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortModemLineState.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemLineState.setDescription('Indicates the state of the modem.')
wfSerialPortModemCfgFactoryDefaults = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortModemCfgFactoryDefaults.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemCfgFactoryDefaults.setDescription('This object indicates if factory defaults are to be loaded. If set to enabled(1), factory defaults are loaded. If set to disabled(2), the initialization string in wfModemCfgInitString is not sent to the modem.')
wfSerialPortModemCfgInitString = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 39), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortModemCfgInitString.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemCfgInitString.setDescription('An initialization string that will be sent to the modem each time the modem is rebooted.')
wfSerialPortModemCfgDefaultString = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 40), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortModemCfgDefaultString.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemCfgDefaultString.setDescription('The string contains AT comands for initializing the modem every time the modem comes up, regardless of configuration.')
wfSerialPortModemCfgResultCodeString = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 41), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortModemCfgResultCodeString.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemCfgResultCodeString.setDescription('The ASCII response string returned by the modem. Response strings will be returned in response to last command to the modem and in response to activity on the line.')
wfSerialPortModemCfgState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cfgIdle", 1), ("cfgInProgress", 2), ("cfgResponseReturned", 3))).clone('cfgIdle')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortModemCfgState.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemCfgState.setDescription('Indicates the state of AT command processing. When a new initialization string is to be sent to the modem, the sender sets the state to cfgInProgress(2). After the command has been sent to the modem, and a result code has been returned, the state is set to cfgResponseReturned(3). Once the sender has received the return code, the sender sets the state to cfgIdle(1).')
wfSerialPortModemCfgCountry = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 43), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("northAmerica", 1), ("japan", 2), ("uk", 3), ("germany", 4))).clone('northAmerica')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfSerialPortModemCfgCountry.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemCfgCountry.setDescription('Identifies the country the modem is designed to operate in. This object is not read from the modem directly. It must be entered manually when configuring the modem.')
wfSerialPortModemInitState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 4, 5, 8))).clone(namedValues=NamedValues(("startup", 1), ("getInfo", 3), ("setDefaults", 4), ("initialization", 5), ("initComplete", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfSerialPortModemInitState.setStatus('mandatory')
if mibBuilder.loadTexts: wfSerialPortModemInitState.setDescription('Indictes the state of the modem initialization sequence. The state will freeze in the state that fails when a failure is detected. Otherwise, the state will be set to initComplete when initialization completes successfully. The state number correspond to those for the COM port modems. Some of the states are not valid for the console modem.')
mibBuilder.exportSymbols("Wellfleet-CONSOLE-MIB", wfTtyInfifoErrors=wfTtyInfifoErrors, wfUserLoginErrors=wfUserLoginErrors, wfSerialPortOtherLoginErrors=wfSerialPortOtherLoginErrors, wfTtyOverrunErrors=wfTtyOverrunErrors, wfSerialPortBaudRate=wfSerialPortBaudRate, wfSerialPortLinesPerScreen=wfSerialPortLinesPerScreen, wfSerialPortStopBits=wfSerialPortStopBits, wfSerialPortCommandTimeOut=wfSerialPortCommandTimeOut, wfSerialPortManagerAutoScript=wfSerialPortManagerAutoScript, wfSerialPortHistoryDepth=wfSerialPortHistoryDepth, wfSerialPortModemEnable=wfSerialPortModemEnable, wfSerialPortModemCfgResultCodeString=wfSerialPortModemCfgResultCodeString, wfSerialPortPasswordTimeOut=wfSerialPortPasswordTimeOut, wfSerialPortEntry=wfSerialPortEntry, wfSerialPortUserLoginErrors=wfSerialPortUserLoginErrors, wfSerialPortUserAutoScript=wfSerialPortUserAutoScript, wfTtyParityErrors=wfTtyParityErrors, wfSerialPortAutoSaveNumFiles=wfSerialPortAutoSaveNumFiles, wfSerialPortAutoSaveVolume=wfSerialPortAutoSaveVolume, wfSerialPortModemCfgFactoryDefaults=wfSerialPortModemCfgFactoryDefaults, wfDataBits=wfDataBits, wfSerialPortDelete=wfSerialPortDelete, wfSerialPortState=wfSerialPortState, wfSerialPortInitialSearchPath=wfSerialPortInitialSearchPath, wfManagerLoginErrors=wfManagerLoginErrors, wfSerialPortModemCfgCountry=wfSerialPortModemCfgCountry, wfParity=wfParity, wfSerialPortName=wfSerialPortName, wfTotalLogins=wfTotalLogins, wfSerialPortLoginRetries=wfSerialPortLoginRetries, wfSerialPortNumber=wfSerialPortNumber, wfSerialPortSlot=wfSerialPortSlot, wfBaudRate=wfBaudRate, wfSerialPortTable=wfSerialPortTable, wfSerialPortMoreEnable=wfSerialPortMoreEnable, wfSerialPortDataBits=wfSerialPortDataBits, wfModemEnable=wfModemEnable, wfSerialPortLoginTimeOut=wfSerialPortLoginTimeOut, wfSerialPortTtyOverrunErrors=wfSerialPortTtyOverrunErrors, wfPrompt=wfPrompt, wfTtyFrameErrors=wfTtyFrameErrors, wfSerialPortModemCfgState=wfSerialPortModemCfgState, wfLinesPerScreen=wfLinesPerScreen, wfSerialPortTtyFrameErrors=wfSerialPortTtyFrameErrors, wfSerialPortModemIdHwRev=wfSerialPortModemIdHwRev, wfSerialPortUserAbortLogoutDisable=wfSerialPortUserAbortLogoutDisable, wfConsole=wfConsole, wfLoginTimeOut=wfLoginTimeOut, wfCommandTimeOut=wfCommandTimeOut, wfSerialPortModemLineState=wfSerialPortModemLineState, wfOtherLoginErrors=wfOtherLoginErrors, wfStopBits=wfStopBits, wfSerialPortTotalLogins=wfSerialPortTotalLogins, wfSerialPortModemCfgDefaultString=wfSerialPortModemCfgDefaultString, wfMoreEnable=wfMoreEnable, wfSerialPortDisable=wfSerialPortDisable, wfSerialPortManagerLoginErrors=wfSerialPortManagerLoginErrors, wfSerialPortModemCfgInitString=wfSerialPortModemCfgInitString, wfSerialPortPrompt=wfSerialPortPrompt, wfSerialPortTtyInfifoErrors=wfSerialPortTtyInfifoErrors, wfPasswordTimeOut=wfPasswordTimeOut, wfSerialPortModemInitState=wfSerialPortModemInitState, wfSerialPortType=wfSerialPortType, wfSerialPortTtyParityErrors=wfSerialPortTtyParityErrors, wfLoginRetries=wfLoginRetries, wfSerialPortParity=wfSerialPortParity, wfSerialPortModemIdSwRev=wfSerialPortModemIdSwRev)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, single_value_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(time_ticks, module_identity, gauge32, unsigned32, iso, counter32, bits, object_identity, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, integer32, notification_type, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ModuleIdentity', 'Gauge32', 'Unsigned32', 'iso', 'Counter32', 'Bits', 'ObjectIdentity', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Integer32', 'NotificationType', 'IpAddress')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
(wf_services, wf_serial_port_group) = mibBuilder.importSymbols('Wellfleet-COMMON-MIB', 'wfServices', 'wfSerialPortGroup')
wf_console = mib_identifier((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1))
wf_baud_rate = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 1), integer32().clone(9600)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfBaudRate.setStatus('obsolete')
if mibBuilder.loadTexts:
wfBaudRate.setDescription('Baud rate configured on the Technician Interface console')
wf_data_bits = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 2), integer32().clone(8)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfDataBits.setStatus('obsolete')
if mibBuilder.loadTexts:
wfDataBits.setDescription('Number of data bits configured on the Technician Interface console')
wf_parity = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('odd', 2), ('even', 3))).clone('none')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfParity.setStatus('obsolete')
if mibBuilder.loadTexts:
wfParity.setDescription('Type of parity configured on the Technician Interface console')
wf_stop_bits = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('s1bit', 1), ('s15bit', 2), ('s2bit', 3))).clone('s1bit')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfStopBits.setStatus('obsolete')
if mibBuilder.loadTexts:
wfStopBits.setDescription('Number of stop bits configured on the Technician Interface console')
wf_modem_enable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfModemEnable.setStatus('obsolete')
if mibBuilder.loadTexts:
wfModemEnable.setDescription('Enable the Technician Interface console to run over a modem')
wf_lines_per_screen = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 6), integer32().clone(24)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfLinesPerScreen.setStatus('obsolete')
if mibBuilder.loadTexts:
wfLinesPerScreen.setDescription('Number of lines which can be displayed in one screen on the Technician Interface console')
wf_more_enable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMoreEnable.setStatus('obsolete')
if mibBuilder.loadTexts:
wfMoreEnable.setDescription("Enable the 'more' feature on the Technician Interface console")
wf_prompt = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfPrompt.setStatus('obsolete')
if mibBuilder.loadTexts:
wfPrompt.setDescription('Character string which will be used as the system prompt on the Technician Interface console')
wf_login_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfLoginTimeOut.setStatus('obsolete')
if mibBuilder.loadTexts:
wfLoginTimeOut.setDescription('IF MODEM_ENABLED then time out in minutes to HUP when at the login prompt')
wf_password_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfPasswordTimeOut.setStatus('obsolete')
if mibBuilder.loadTexts:
wfPasswordTimeOut.setDescription('Timout on Password entry')
wf_command_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(15)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfCommandTimeOut.setStatus('obsolete')
if mibBuilder.loadTexts:
wfCommandTimeOut.setDescription('IF MODEM_ENABLED then time out in minutes to HUP when at the command prompt')
wf_login_retries = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(3)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfLoginRetries.setStatus('obsolete')
if mibBuilder.loadTexts:
wfLoginRetries.setDescription('IF MODEM_ENABLED then limit # of login attempts then HUP')
wf_total_logins = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfTotalLogins.setStatus('obsolete')
if mibBuilder.loadTexts:
wfTotalLogins.setDescription('Total number of TI login attempts')
wf_user_login_errors = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfUserLoginErrors.setStatus('obsolete')
if mibBuilder.loadTexts:
wfUserLoginErrors.setDescription('Total number of FAILED User login attempts')
wf_manager_login_errors = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfManagerLoginErrors.setStatus('obsolete')
if mibBuilder.loadTexts:
wfManagerLoginErrors.setDescription('Total number of FAILED Manager login attempts')
wf_other_login_errors = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfOtherLoginErrors.setStatus('obsolete')
if mibBuilder.loadTexts:
wfOtherLoginErrors.setDescription('Total number of FAILED Other login attempts')
wf_tty_frame_errors = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfTtyFrameErrors.setStatus('obsolete')
if mibBuilder.loadTexts:
wfTtyFrameErrors.setDescription('Count of TTY Frame errors')
wf_tty_overrun_errors = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfTtyOverrunErrors.setStatus('obsolete')
if mibBuilder.loadTexts:
wfTtyOverrunErrors.setDescription('Count of TTY Overrun errors')
wf_tty_parity_errors = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfTtyParityErrors.setStatus('obsolete')
if mibBuilder.loadTexts:
wfTtyParityErrors.setDescription('Count of TTY Parity errors')
wf_tty_infifo_errors = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfTtyInfifoErrors.setStatus('obsolete')
if mibBuilder.loadTexts:
wfTtyInfifoErrors.setDescription('Count of TTY Input Fifo errors')
wf_serial_port_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1))
if mibBuilder.loadTexts:
wfSerialPortTable.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortTable.setDescription('Configuration of system serial port(s)')
wf_serial_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1)).setIndexNames((0, 'Wellfleet-CONSOLE-MIB', 'wfSerialPortNumber'))
if mibBuilder.loadTexts:
wfSerialPortEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortEntry.setDescription('Information for each serial port.')
wf_serial_port_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortDelete.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortDelete.setDescription('Flag to indicate Serial Port instance deletion')
wf_serial_port_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortDisable.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortDisable.setDescription('Enable or disable this Serial Port')
wf_serial_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3), ('notpresent', 4))).clone('notpresent')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortState.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortState.setDescription('The state of this Serial Port')
wf_serial_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortNumber.setDescription('Serial Port number')
wf_serial_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortName.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortName.setDescription('Serial Port name')
wf_serial_port_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortSlot.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortSlot.setDescription('Slot number of Serial Port session')
wf_serial_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ti', 1), ('printer', 2), ('rtelnet', 3))).clone('ti')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortType.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortType.setDescription('Type of Serial Port')
wf_serial_port_baud_rate = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 8), integer32().clone(9600)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortBaudRate.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortBaudRate.setDescription('Baud rate configured on this Serial Port')
wf_serial_port_data_bits = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 9), integer32().clone(8)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortDataBits.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortDataBits.setDescription('Number of data bits configured on this Serial Port')
wf_serial_port_parity = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('odd', 2), ('even', 3))).clone('none')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortParity.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortParity.setDescription('Type of parity configured on this Serial Port')
wf_serial_port_stop_bits = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('s1bit', 1), ('s15bit', 2), ('s2bit', 3))).clone('s1bit')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortStopBits.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortStopBits.setDescription('Number of stop bits configured on this Serial Port')
wf_serial_port_modem_enable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortModemEnable.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemEnable.setDescription('Enable the Serial Port to run with modem leads enabled')
wf_serial_port_lines_per_screen = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 13), integer32().clone(24)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortLinesPerScreen.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortLinesPerScreen.setDescription('Number of lines which can be displayed in one screen on the Serial Port')
wf_serial_port_more_enable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortMoreEnable.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortMoreEnable.setDescription("Enable the 'more' feature on the Serial Port")
wf_serial_port_prompt = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 15), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortPrompt.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortPrompt.setDescription('Character string which will be used as the system prompt on the Serial Port')
wf_serial_port_login_time_out = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortLoginTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortLoginTimeOut.setDescription('IF MODEM_ENABLED then time out in minutes to HUP when at the login prompt')
wf_serial_port_password_time_out = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortPasswordTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortPasswordTimeOut.setDescription('Timout on Password entry')
wf_serial_port_command_time_out = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(15)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortCommandTimeOut.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortCommandTimeOut.setDescription('IF MODEM_ENABLED then time out in minutes to HUP when at the command prompt')
wf_serial_port_login_retries = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(1, 99)).clone(3)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortLoginRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortLoginRetries.setDescription('IF MODEM_ENABLED then limit # of login attempts then HUP')
wf_serial_port_total_logins = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortTotalLogins.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortTotalLogins.setDescription('Total number of TI login attempts on Serial Port')
wf_serial_port_user_login_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortUserLoginErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortUserLoginErrors.setDescription('Total number of FAILED User login attempts on Serial Port')
wf_serial_port_manager_login_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortManagerLoginErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortManagerLoginErrors.setDescription('Total number of FAILED Manager login attempts on Serial Port')
wf_serial_port_other_login_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortOtherLoginErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortOtherLoginErrors.setDescription('Total number of FAILED Other login attempts on Serial Port')
wf_serial_port_tty_frame_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortTtyFrameErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortTtyFrameErrors.setDescription('Count of TTY Frame errors on Serial Port')
wf_serial_port_tty_overrun_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortTtyOverrunErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortTtyOverrunErrors.setDescription('Count of TTY Overrun errors on Serial Port')
wf_serial_port_tty_parity_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortTtyParityErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortTtyParityErrors.setDescription('Count of TTY Parity errors on Serial Port')
wf_serial_port_tty_infifo_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortTtyInfifoErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortTtyInfifoErrors.setDescription('Count of TTY Input Fifo errors on Serial Port')
wf_serial_port_initial_search_path = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 28), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortInitialSearchPath.setStatus('obsolete')
if mibBuilder.loadTexts:
wfSerialPortInitialSearchPath.setDescription("Example: 'A:;1:;2:' or '2:;4:6:;9:")
wf_serial_port_manager_auto_script = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 29), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortManagerAutoScript.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortManagerAutoScript.setDescription('for each login.')
wf_serial_port_user_auto_script = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 30), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortUserAutoScript.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortUserAutoScript.setDescription('for each login.')
wf_serial_port_user_abort_logout_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortUserAbortLogoutDisable.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortUserAbortLogoutDisable.setDescription('a USER from escaping out of the User Autoscript')
wf_serial_port_history_depth = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 32), integer32().subtype(subtypeSpec=value_range_constraint(1, 40)).clone(20)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortHistoryDepth.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortHistoryDepth.setDescription('TI command history table size')
wf_serial_port_auto_save_num_files = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 33), integer32().subtype(subtypeSpec=value_range_constraint(0, 99))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortAutoSaveNumFiles.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortAutoSaveNumFiles.setDescription('Number of times AutoSave will save the log 0 - disable the AutoSave log')
wf_serial_port_auto_save_volume = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 34), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortAutoSaveVolume.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortAutoSaveVolume.setDescription("Volume, to which AutoSave will save logs Example: 'A:' or '2:'")
wf_serial_port_modem_id_sw_rev = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 35), display_string().subtype(subtypeSpec=value_size_constraint(0, 79))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortModemIdSwRev.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemIdSwRev.setDescription("A textual description of the modem's firmware version number.")
wf_serial_port_modem_id_hw_rev = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 36), display_string().subtype(subtypeSpec=value_size_constraint(0, 79))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortModemIdHwRev.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemIdHwRev.setDescription('A textual description of the revision number of the modem daughter card.')
wf_serial_port_modem_line_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 37), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('onHook', 2), ('offHook', 3), ('connected', 4), ('busiedOut', 5), ('reset', 6))).clone('unknown')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortModemLineState.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemLineState.setDescription('Indicates the state of the modem.')
wf_serial_port_modem_cfg_factory_defaults = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortModemCfgFactoryDefaults.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemCfgFactoryDefaults.setDescription('This object indicates if factory defaults are to be loaded. If set to enabled(1), factory defaults are loaded. If set to disabled(2), the initialization string in wfModemCfgInitString is not sent to the modem.')
wf_serial_port_modem_cfg_init_string = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 39), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortModemCfgInitString.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemCfgInitString.setDescription('An initialization string that will be sent to the modem each time the modem is rebooted.')
wf_serial_port_modem_cfg_default_string = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 40), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortModemCfgDefaultString.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemCfgDefaultString.setDescription('The string contains AT comands for initializing the modem every time the modem comes up, regardless of configuration.')
wf_serial_port_modem_cfg_result_code_string = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 41), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortModemCfgResultCodeString.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemCfgResultCodeString.setDescription('The ASCII response string returned by the modem. Response strings will be returned in response to last command to the modem and in response to activity on the line.')
wf_serial_port_modem_cfg_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cfgIdle', 1), ('cfgInProgress', 2), ('cfgResponseReturned', 3))).clone('cfgIdle')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortModemCfgState.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemCfgState.setDescription('Indicates the state of AT command processing. When a new initialization string is to be sent to the modem, the sender sets the state to cfgInProgress(2). After the command has been sent to the modem, and a result code has been returned, the state is set to cfgResponseReturned(3). Once the sender has received the return code, the sender sets the state to cfgIdle(1).')
wf_serial_port_modem_cfg_country = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 43), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('northAmerica', 1), ('japan', 2), ('uk', 3), ('germany', 4))).clone('northAmerica')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfSerialPortModemCfgCountry.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemCfgCountry.setDescription('Identifies the country the modem is designed to operate in. This object is not read from the modem directly. It must be entered manually when configuring the modem.')
wf_serial_port_modem_init_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 11, 1, 1, 44), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 4, 5, 8))).clone(namedValues=named_values(('startup', 1), ('getInfo', 3), ('setDefaults', 4), ('initialization', 5), ('initComplete', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfSerialPortModemInitState.setStatus('mandatory')
if mibBuilder.loadTexts:
wfSerialPortModemInitState.setDescription('Indictes the state of the modem initialization sequence. The state will freeze in the state that fails when a failure is detected. Otherwise, the state will be set to initComplete when initialization completes successfully. The state number correspond to those for the COM port modems. Some of the states are not valid for the console modem.')
mibBuilder.exportSymbols('Wellfleet-CONSOLE-MIB', wfTtyInfifoErrors=wfTtyInfifoErrors, wfUserLoginErrors=wfUserLoginErrors, wfSerialPortOtherLoginErrors=wfSerialPortOtherLoginErrors, wfTtyOverrunErrors=wfTtyOverrunErrors, wfSerialPortBaudRate=wfSerialPortBaudRate, wfSerialPortLinesPerScreen=wfSerialPortLinesPerScreen, wfSerialPortStopBits=wfSerialPortStopBits, wfSerialPortCommandTimeOut=wfSerialPortCommandTimeOut, wfSerialPortManagerAutoScript=wfSerialPortManagerAutoScript, wfSerialPortHistoryDepth=wfSerialPortHistoryDepth, wfSerialPortModemEnable=wfSerialPortModemEnable, wfSerialPortModemCfgResultCodeString=wfSerialPortModemCfgResultCodeString, wfSerialPortPasswordTimeOut=wfSerialPortPasswordTimeOut, wfSerialPortEntry=wfSerialPortEntry, wfSerialPortUserLoginErrors=wfSerialPortUserLoginErrors, wfSerialPortUserAutoScript=wfSerialPortUserAutoScript, wfTtyParityErrors=wfTtyParityErrors, wfSerialPortAutoSaveNumFiles=wfSerialPortAutoSaveNumFiles, wfSerialPortAutoSaveVolume=wfSerialPortAutoSaveVolume, wfSerialPortModemCfgFactoryDefaults=wfSerialPortModemCfgFactoryDefaults, wfDataBits=wfDataBits, wfSerialPortDelete=wfSerialPortDelete, wfSerialPortState=wfSerialPortState, wfSerialPortInitialSearchPath=wfSerialPortInitialSearchPath, wfManagerLoginErrors=wfManagerLoginErrors, wfSerialPortModemCfgCountry=wfSerialPortModemCfgCountry, wfParity=wfParity, wfSerialPortName=wfSerialPortName, wfTotalLogins=wfTotalLogins, wfSerialPortLoginRetries=wfSerialPortLoginRetries, wfSerialPortNumber=wfSerialPortNumber, wfSerialPortSlot=wfSerialPortSlot, wfBaudRate=wfBaudRate, wfSerialPortTable=wfSerialPortTable, wfSerialPortMoreEnable=wfSerialPortMoreEnable, wfSerialPortDataBits=wfSerialPortDataBits, wfModemEnable=wfModemEnable, wfSerialPortLoginTimeOut=wfSerialPortLoginTimeOut, wfSerialPortTtyOverrunErrors=wfSerialPortTtyOverrunErrors, wfPrompt=wfPrompt, wfTtyFrameErrors=wfTtyFrameErrors, wfSerialPortModemCfgState=wfSerialPortModemCfgState, wfLinesPerScreen=wfLinesPerScreen, wfSerialPortTtyFrameErrors=wfSerialPortTtyFrameErrors, wfSerialPortModemIdHwRev=wfSerialPortModemIdHwRev, wfSerialPortUserAbortLogoutDisable=wfSerialPortUserAbortLogoutDisable, wfConsole=wfConsole, wfLoginTimeOut=wfLoginTimeOut, wfCommandTimeOut=wfCommandTimeOut, wfSerialPortModemLineState=wfSerialPortModemLineState, wfOtherLoginErrors=wfOtherLoginErrors, wfStopBits=wfStopBits, wfSerialPortTotalLogins=wfSerialPortTotalLogins, wfSerialPortModemCfgDefaultString=wfSerialPortModemCfgDefaultString, wfMoreEnable=wfMoreEnable, wfSerialPortDisable=wfSerialPortDisable, wfSerialPortManagerLoginErrors=wfSerialPortManagerLoginErrors, wfSerialPortModemCfgInitString=wfSerialPortModemCfgInitString, wfSerialPortPrompt=wfSerialPortPrompt, wfSerialPortTtyInfifoErrors=wfSerialPortTtyInfifoErrors, wfPasswordTimeOut=wfPasswordTimeOut, wfSerialPortModemInitState=wfSerialPortModemInitState, wfSerialPortType=wfSerialPortType, wfSerialPortTtyParityErrors=wfSerialPortTtyParityErrors, wfLoginRetries=wfLoginRetries, wfSerialPortParity=wfSerialPortParity, wfSerialPortModemIdSwRev=wfSerialPortModemIdSwRev) |
##Q1
def sumOfDigits(String):
sumNumber=0
for i in range(0,len(String)):
if String[i].isdigit():
sumNumber=sumNumber+int(String[i])
return sumNumber
##Q2
def smallerThanN(intList,integer):
newList=[]
for intInList in intList:
if intInList<integer:
newList.append(intInList)
return newList
assertEqual(smallerThanN([2,5,8,15,58,3,4],8),[2,5,3,4])
assertEqual(smallerThanN([],8),[])
assertEqual(smallerThanN([5,4,3,2,1],3),[2,1])
##Q3
def sumNegativeInts(List):
sumInts=0
for i in List:
if i<0:
sumInts+=i
return sumInts
assertEqual(sumNegativeInts([2, 1, -5, 0]),-5)
assertEqual(sumNegativeInts([-1, 1, -9, 1]),-10)
assertEqual(sumNegativeInts([9, 2, -7, 7]),-7)
assertEqual(sumNegativeInts([]),0)
##Q4
def reverseList(List):
newList=[]
for i in range(len(List)-1,-1,-1):
content=List[i]
newList.append(content)
return newList
assertEqual(reverseList([1,2,3,4,5]),[5,4,3,2,1])
assertEqual(reverseList([]),[])
assertEqual(reverseList([1,4,7,5,10]),[10,5,7,4,1])
##Q5
def sentenceCapitalizer(String):
newString=String.split(". ")
secondNewString=""
if len(String)==0:
return ""
for i in range(0,len(newString)):
stringWord=newString[i]
secondNewString+=stringWord[0:1].upper()+stringWord[1:]
if(i<len(newString)-1):
secondNewString+=". "
return secondNewString
assertEqual(sentenceCapitalizer("hello. my name is Joe. what is your name?"),"Hello. My name is Joe. What is your name?")
assertEqual(sentenceCapitalizer("it's Friday. what is your plan?"),"It's Friday. What is your plan?")
assertEqual(sentenceCapitalizer("write a function. don't forget test cases."+" and comments also."),"Write a function. Don't forget test cases. And comments also.")
assertEqual(sentenceCapitalizer("this is a one sentence string."),"This is a one sentence string.")
assertEqual(sentenceCapitalizer(""),"")
##Lab 3-2
def main():
integerList=input("Enter a list of integers: ")
integer=int(input("Enter an integer: "))
newList=integerList.split(",")
secondNewList=[]
for i in range(len(newList)):
if newList[i]!=",":
secondNewList.append(int(newList[i]))
secondNewList=smallerThanN(secondNewList,integer)
print(secondNewList)
main()
def main():
inputList=input("Enter a list of integers seperated by commas with no spaces: ")
newList=inputList.split(",")
secondNewList=[]
for i in range(len(newList)):
while not newList[i].lstrip("-").isdigit():
inputList=input("Enter a list of integers again: ")
secondNewList.append(int(newList[i]))
sum=sumNegativeInts(secondNewList)
print(sum)
main()
| def sum_of_digits(String):
sum_number = 0
for i in range(0, len(String)):
if String[i].isdigit():
sum_number = sumNumber + int(String[i])
return sumNumber
def smaller_than_n(intList, integer):
new_list = []
for int_in_list in intList:
if intInList < integer:
newList.append(intInList)
return newList
assert_equal(smaller_than_n([2, 5, 8, 15, 58, 3, 4], 8), [2, 5, 3, 4])
assert_equal(smaller_than_n([], 8), [])
assert_equal(smaller_than_n([5, 4, 3, 2, 1], 3), [2, 1])
def sum_negative_ints(List):
sum_ints = 0
for i in List:
if i < 0:
sum_ints += i
return sumInts
assert_equal(sum_negative_ints([2, 1, -5, 0]), -5)
assert_equal(sum_negative_ints([-1, 1, -9, 1]), -10)
assert_equal(sum_negative_ints([9, 2, -7, 7]), -7)
assert_equal(sum_negative_ints([]), 0)
def reverse_list(List):
new_list = []
for i in range(len(List) - 1, -1, -1):
content = List[i]
newList.append(content)
return newList
assert_equal(reverse_list([1, 2, 3, 4, 5]), [5, 4, 3, 2, 1])
assert_equal(reverse_list([]), [])
assert_equal(reverse_list([1, 4, 7, 5, 10]), [10, 5, 7, 4, 1])
def sentence_capitalizer(String):
new_string = String.split('. ')
second_new_string = ''
if len(String) == 0:
return ''
for i in range(0, len(newString)):
string_word = newString[i]
second_new_string += stringWord[0:1].upper() + stringWord[1:]
if i < len(newString) - 1:
second_new_string += '. '
return secondNewString
assert_equal(sentence_capitalizer('hello. my name is Joe. what is your name?'), 'Hello. My name is Joe. What is your name?')
assert_equal(sentence_capitalizer("it's Friday. what is your plan?"), "It's Friday. What is your plan?")
assert_equal(sentence_capitalizer("write a function. don't forget test cases." + ' and comments also.'), "Write a function. Don't forget test cases. And comments also.")
assert_equal(sentence_capitalizer('this is a one sentence string.'), 'This is a one sentence string.')
assert_equal(sentence_capitalizer(''), '')
def main():
integer_list = input('Enter a list of integers: ')
integer = int(input('Enter an integer: '))
new_list = integerList.split(',')
second_new_list = []
for i in range(len(newList)):
if newList[i] != ',':
secondNewList.append(int(newList[i]))
second_new_list = smaller_than_n(secondNewList, integer)
print(secondNewList)
main()
def main():
input_list = input('Enter a list of integers seperated by commas with no spaces: ')
new_list = inputList.split(',')
second_new_list = []
for i in range(len(newList)):
while not newList[i].lstrip('-').isdigit():
input_list = input('Enter a list of integers again: ')
secondNewList.append(int(newList[i]))
sum = sum_negative_ints(secondNewList)
print(sum)
main() |
'''
Calculating Function
'''
n = int(input())
result = 0
if n % 2 == 0:
result = n // 2
else:
result = n // 2 - n
print(result) | """
Calculating Function
"""
n = int(input())
result = 0
if n % 2 == 0:
result = n // 2
else:
result = n // 2 - n
print(result) |
Motivations = [ # Acolyte
'I ran away from home at an early age and found refuge in a temple.',
'My family gave me to a temple, since they were unable or unwilling to care for me.',
'I grew up in a household with strong religious convictions. Entering the service of one or more gods seemed natural.',
'An impassioned sermon struck a chord deep in my soul and moved me to serve the faith.',
'I followed a childhood friend, a respected acquaintance, or someone I loved into religious service.',
'After encountering a true servant of the gods, I was so inspired that I immediately entered the service of a religious group.',
# Charlatan
'I was left to my own devices, and my knack for manipulating others helped me survive.',
'I learned early on that people are gullible and easy to explot.',
'I often got in trouble, but I managed to talk my way out of it every time.',
'I took up with a confidence artist, from whom I earned my craft.',
'After a charlatan fleeced my family, I decided to take up the trade so I would never be fooled by such deception again.',
'I was poor or I feared becoming poor, so I learned the tricks I needed to keep myself out of poverty.',
# Criminal
'I resented authority in my younger days and saw a life of crime as the best way to fight against tyranny and oppression.',
'Necessity forced me to take up the life, since it was the only way I could survive.',
'I fell in with a gang of reprobates and I learned my specialty from them.',
'A parent or relative taught me my criminal specialty to prepare me for the family business.',
'I left home and found my place in a criminal organization.',
'I was always bored, so I turned to crime to pass the time and discovered I was quite good at it.',
# Entertainer
'Member of my family made ends meet by performing, so it was fitting for me to follow their example.',
'I always had a keen insight into other people, enough so that I could make them laugh or cry with my strings or songs.',
'I ran away form home to follow a minstrel troupe.',
'I saw a bard perform once, and I knew from that moment on what I was born to do.',
'I earned coin by performing on street corners and eventually made a name for myself.',
'A traveling entertainer took me in and taught me the trade.',
# Folk Hero
'I learned what was right and wrong from my family.',
'I was always enamored by tales of heroes and wished I could be something more than ordinary.',
'I hated my mundane life, so when it was time for someone to step up and do the right thing, I took my chance.',
'A parent of one of my relatives was an adventurer, and I was inspired by their courage.',
'A mad old hermit spoke a prophecy when I was born, saying that I would accomplish great things.',
'I have always stood up for those who are weaker than I am.',
#Guild Artisan
'I was appointed to a master who taught me the business of the guild.',
'I helped a guild artisan keep a secret or complete a task, and in return I was taken on as an apprentice.',
'One of my family members who belonged to the guild made a place for me.',
'I was always good with my hands, so I took the opportunity to learn a trade.',
'I wanted to get awat from my home situation and start a new life.',
'I learned the essentials of my craft from a mentor but had no guild to finish my training.',
# Hermit
'My enemies ruined my reputation, and I fled to the wilds to avoid further disappointment.',
'I am comfortabe with being isolated, as I seek inner peace.',
'I never liked the people I called my friends, so it was easy for me to strike out on my own.',
'I felt compelled to forsake my past, but did so with great reluctance, and sometimes I regret making that decision.',
'I lost everything - my home, my family, my friends. Going it alone was all I could do.',
'The decadence of society disgusted me, so I decided to leave it behind.',
# Noble
'I come from an old and storied family, and it fell to me to preserve the family name.',
'My family has been disgraced, and I intend to clear our name.',
'My family recently came by its title, and that elevation thrust us into a new and strange world.',
'My family has a title, but none of my ancestors have distinguished themselves since we gained it.',
'My family is filled with remakrable people. I hope to live up to their example.'
'I hope to increase the power and influence of my family.',
# Outlander
'I spent a lot of time in the wilderness as a youngster, and I came to love that way of life.',
'From a young age, I could not abide the stink of cities and preferred to spend my time in nature.',
'I came to understand the darness that lurks in the wilds, and I vowed to combat it.',
'My people lived on the edges of civilization, and I learned the methods of survival from my family.',
'After a tragedy, I retreated to the wilderness, leaving my old life behind.',
'My family moved awat from civilization, and I learned to adapt to my new environment.',
# Sage
'I was naturally curious, so I packed up and went to a university to learn more about the world.',
'The teachings of my mentor opened my mind to new possibilities in that field of study.',
'I was always an avid reader, and I learned much about my favorite topic on my own.',
'I discovered an old library and pored over the texts I found there. That experience awakened a hunger for more knowledge.',
'I impressed a wizard who told me I was squandering my talents and should seek out an education to take advantage of my gifts.',
'One of my parents or a relative gave me a basic education that whetted my appetite, and I left home to build on what I had learned.',
# Sailor
'I was press-ganged by pirates and forced to serve on their ship until I finally escaped.',
'I wanted to see the world, so I signed on as a deck-hand for a merchant ship.',
'One of my relatives was a sailor who took me to sea.',
'I needed to escape my community quickly, so I stowed away on a ship. When the crew found me, I was forced to work for my passage.',
'Reavers attacked my community, so I found refuge on a ship until I could seek vengeance.',
'I had few prospects where I was living, so I left to find my fortune elsewhere.',
# Soldier
'I joined the militia to help protect my community from monsters.',
'A relative of mine was a soldier, and I wanted to carry on the family tradtition.',
'The local lord forced me to enlist in the army.',
'War ravaged my homeland while I was growing up. Fighting was the only life I ever knew.',
'I wanted fame and fortune, so I joined a mercenary company, selling my sword to the highest bidder.',
'Invaders attacked my homeland. It was my duty to take up arms in defnse of my people.',
# Urchin
'Wanderlust caused me to leave my family to see the world. I look after myself.',
'I ran away form a bad situation at home and made my own way in the world.',
'Monsters wiped out my village, and I was the sole survivor.',
'A notorious thief looked after me and other orphans, and we spied and stole to earn our keep.',
'One day I woke up on the streets, alone and hungry, with no memory of my early childhood.',
'My parents died, leaving no one to look after me. I raised myself.']
| motivations = ['I ran away from home at an early age and found refuge in a temple.', 'My family gave me to a temple, since they were unable or unwilling to care for me.', 'I grew up in a household with strong religious convictions. Entering the service of one or more gods seemed natural.', 'An impassioned sermon struck a chord deep in my soul and moved me to serve the faith.', 'I followed a childhood friend, a respected acquaintance, or someone I loved into religious service.', 'After encountering a true servant of the gods, I was so inspired that I immediately entered the service of a religious group.', 'I was left to my own devices, and my knack for manipulating others helped me survive.', 'I learned early on that people are gullible and easy to explot.', 'I often got in trouble, but I managed to talk my way out of it every time.', 'I took up with a confidence artist, from whom I earned my craft.', 'After a charlatan fleeced my family, I decided to take up the trade so I would never be fooled by such deception again.', 'I was poor or I feared becoming poor, so I learned the tricks I needed to keep myself out of poverty.', 'I resented authority in my younger days and saw a life of crime as the best way to fight against tyranny and oppression.', 'Necessity forced me to take up the life, since it was the only way I could survive.', 'I fell in with a gang of reprobates and I learned my specialty from them.', 'A parent or relative taught me my criminal specialty to prepare me for the family business.', 'I left home and found my place in a criminal organization.', 'I was always bored, so I turned to crime to pass the time and discovered I was quite good at it.', 'Member of my family made ends meet by performing, so it was fitting for me to follow their example.', 'I always had a keen insight into other people, enough so that I could make them laugh or cry with my strings or songs.', 'I ran away form home to follow a minstrel troupe.', 'I saw a bard perform once, and I knew from that moment on what I was born to do.', 'I earned coin by performing on street corners and eventually made a name for myself.', 'A traveling entertainer took me in and taught me the trade.', 'I learned what was right and wrong from my family.', 'I was always enamored by tales of heroes and wished I could be something more than ordinary.', 'I hated my mundane life, so when it was time for someone to step up and do the right thing, I took my chance.', 'A parent of one of my relatives was an adventurer, and I was inspired by their courage.', 'A mad old hermit spoke a prophecy when I was born, saying that I would accomplish great things.', 'I have always stood up for those who are weaker than I am.', 'I was appointed to a master who taught me the business of the guild.', 'I helped a guild artisan keep a secret or complete a task, and in return I was taken on as an apprentice.', 'One of my family members who belonged to the guild made a place for me.', 'I was always good with my hands, so I took the opportunity to learn a trade.', 'I wanted to get awat from my home situation and start a new life.', 'I learned the essentials of my craft from a mentor but had no guild to finish my training.', 'My enemies ruined my reputation, and I fled to the wilds to avoid further disappointment.', 'I am comfortabe with being isolated, as I seek inner peace.', 'I never liked the people I called my friends, so it was easy for me to strike out on my own.', 'I felt compelled to forsake my past, but did so with great reluctance, and sometimes I regret making that decision.', 'I lost everything - my home, my family, my friends. Going it alone was all I could do.', 'The decadence of society disgusted me, so I decided to leave it behind.', 'I come from an old and storied family, and it fell to me to preserve the family name.', 'My family has been disgraced, and I intend to clear our name.', 'My family recently came by its title, and that elevation thrust us into a new and strange world.', 'My family has a title, but none of my ancestors have distinguished themselves since we gained it.', 'My family is filled with remakrable people. I hope to live up to their example.I hope to increase the power and influence of my family.', 'I spent a lot of time in the wilderness as a youngster, and I came to love that way of life.', 'From a young age, I could not abide the stink of cities and preferred to spend my time in nature.', 'I came to understand the darness that lurks in the wilds, and I vowed to combat it.', 'My people lived on the edges of civilization, and I learned the methods of survival from my family.', 'After a tragedy, I retreated to the wilderness, leaving my old life behind.', 'My family moved awat from civilization, and I learned to adapt to my new environment.', 'I was naturally curious, so I packed up and went to a university to learn more about the world.', 'The teachings of my mentor opened my mind to new possibilities in that field of study.', 'I was always an avid reader, and I learned much about my favorite topic on my own.', 'I discovered an old library and pored over the texts I found there. That experience awakened a hunger for more knowledge.', 'I impressed a wizard who told me I was squandering my talents and should seek out an education to take advantage of my gifts.', 'One of my parents or a relative gave me a basic education that whetted my appetite, and I left home to build on what I had learned.', 'I was press-ganged by pirates and forced to serve on their ship until I finally escaped.', 'I wanted to see the world, so I signed on as a deck-hand for a merchant ship.', 'One of my relatives was a sailor who took me to sea.', 'I needed to escape my community quickly, so I stowed away on a ship. When the crew found me, I was forced to work for my passage.', 'Reavers attacked my community, so I found refuge on a ship until I could seek vengeance.', 'I had few prospects where I was living, so I left to find my fortune elsewhere.', 'I joined the militia to help protect my community from monsters.', 'A relative of mine was a soldier, and I wanted to carry on the family tradtition.', 'The local lord forced me to enlist in the army.', 'War ravaged my homeland while I was growing up. Fighting was the only life I ever knew.', 'I wanted fame and fortune, so I joined a mercenary company, selling my sword to the highest bidder.', 'Invaders attacked my homeland. It was my duty to take up arms in defnse of my people.', 'Wanderlust caused me to leave my family to see the world. I look after myself.', 'I ran away form a bad situation at home and made my own way in the world.', 'Monsters wiped out my village, and I was the sole survivor.', 'A notorious thief looked after me and other orphans, and we spied and stole to earn our keep.', 'One day I woke up on the streets, alone and hungry, with no memory of my early childhood.', 'My parents died, leaving no one to look after me. I raised myself.'] |
# coding: utf8
# Copyright 2017 Vincent Jacques <vincent@vincent-jacques.net>
project = "sphinxcontrib-ocaml"
author = '<a href="http://vincent-jacques.net/">Vincent Jacques</a>'
copyright = ('2017 {} <script>var jacquev6_ribbon_github="{}"</script>'.format(author, project) +
'<script src="https://jacquev6.github.io/ribbon.js"></script>')
version = "0.3.0" # @todo Remove duplication of version (/sphincontrib-ocaml.opam and /doc/conf.py)
release = version
master_doc = "index"
extensions = []
nitpicky = True
# http://www.sphinx-doc.org/en/stable/ext/githubpages.html
extensions.append("sphinx.ext.githubpages")
# https://github.com/bitprophet/alabaster
html_sidebars = {
"**": ["about.html", "navigation.html", "searchbox.html"],
}
html_theme_options = {
"github_user": "jacquev6",
"github_repo": project,
"travis_button": True,
}
# https://github.com/jacquev6/sphinxcontrib-ocaml
extensions.append("sphinxcontrib.ocaml")
| project = 'sphinxcontrib-ocaml'
author = '<a href="http://vincent-jacques.net/">Vincent Jacques</a>'
copyright = '2017 {} <script>var jacquev6_ribbon_github="{}"</script>'.format(author, project) + '<script src="https://jacquev6.github.io/ribbon.js"></script>'
version = '0.3.0'
release = version
master_doc = 'index'
extensions = []
nitpicky = True
extensions.append('sphinx.ext.githubpages')
html_sidebars = {'**': ['about.html', 'navigation.html', 'searchbox.html']}
html_theme_options = {'github_user': 'jacquev6', 'github_repo': project, 'travis_button': True}
extensions.append('sphinxcontrib.ocaml') |
def add(x, *args):
total = x
for i in args:
total += i
print(f'{x=} + {args=} = {total}')
add(1, 2, 3)
add(1, 2)
add(1, 2, 3, 4, 5, 6, 7)
add(1)
| def add(x, *args):
total = x
for i in args:
total += i
print(f'x={x!r} + args={args!r} = {total}')
add(1, 2, 3)
add(1, 2)
add(1, 2, 3, 4, 5, 6, 7)
add(1) |
class orphan_external_exception(Exception):
def __init__(self, args=None):
if args:
self.args = (args,)
else:
self.args = ("Wow I have been imported",)
self.external_demo_attr = "Now imported"
| class Orphan_External_Exception(Exception):
def __init__(self, args=None):
if args:
self.args = (args,)
else:
self.args = ('Wow I have been imported',)
self.external_demo_attr = 'Now imported' |
__title__ = 'imgur-cli'
__author__ = 'Usman Ehtesham Gul'
__email__ = 'uehtesham90@gmail.com'
__license__ = 'MIT'
__version__ = '0.0.1'
__url__ = 'https://github.com/ueg1990/imgur-cli.git'
| __title__ = 'imgur-cli'
__author__ = 'Usman Ehtesham Gul'
__email__ = 'uehtesham90@gmail.com'
__license__ = 'MIT'
__version__ = '0.0.1'
__url__ = 'https://github.com/ueg1990/imgur-cli.git' |
class Solution:
# @param candidates, a list of integers
# @param target, integer
# @return a list of lists of integers
def combinationSum(self, candidates, target):
self.results = []
candidates.sort()
self.combination(candidates, target, 0, [])
return self.results
def combination(self, candidates, target, start, result):
if target ==0:
self.results.append(result[:])
elif target > 0:
for i in range(start, len(candidates)):
result.append(candidates[i])
self.combination(candidates, candidates[i] - target, i, result)
result.pop()
| class Solution:
def combination_sum(self, candidates, target):
self.results = []
candidates.sort()
self.combination(candidates, target, 0, [])
return self.results
def combination(self, candidates, target, start, result):
if target == 0:
self.results.append(result[:])
elif target > 0:
for i in range(start, len(candidates)):
result.append(candidates[i])
self.combination(candidates, candidates[i] - target, i, result)
result.pop() |
a = True
b = False
print('AND Logic:')
print('a and a =', a and a)
print('a and b =', a and b)
print('b and b =', b and b)
print('b and a =', b and a)
print('\nOR Logic:')
print('a or a =', a or a)
print('a or b =', a or b)
print('b or b =', b or b)
print('\nNOT Logic:')
print('a =' , a , '\tnot a =' , not a )
print('b =' , b , '\tnot b =' , not b )
| a = True
b = False
print('AND Logic:')
print('a and a =', a and a)
print('a and b =', a and b)
print('b and b =', b and b)
print('b and a =', b and a)
print('\nOR Logic:')
print('a or a =', a or a)
print('a or b =', a or b)
print('b or b =', b or b)
print('\nNOT Logic:')
print('a =', a, '\tnot a =', not a)
print('b =', b, '\tnot b =', not b) |
'''https://leetcode.com/problems/non-overlapping-intervals/
435. Non-overlapping Intervals
Medium
2867
79
Add to List
Share
Given an array of intervals intervals where intervals[i] = [starti, endi], return the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.
Example 1:
Input: intervals = [[1,2],[2,3],[3,4],[1,3]]
Output: 1
Explanation: [1,3] can be removed and the rest of the intervals are non-overlapping.
Example 2:
Input: intervals = [[1,2],[1,2],[1,2]]
Output: 2
Explanation: You need to remove two [1,2] to make the rest of the intervals non-overlapping.
Example 3:
Input: intervals = [[1,2],[2,3]]
Output: 0
Explanation: You don't need to remove any of the intervals since they're already non-overlapping.
Constraints:
1 <= intervals.length <= 105
intervals[i].length == 2
-5 * 104 <= starti < endi <= 5 * 104'''
# Time: O(nlogn)
# Space: O(1)
class Solution(object):
def eraseOverlapIntervals(self, intervals: List[List[int]]) -> int:
size = len(intervals)
if size <= 1:
return 0
intervals.sort(key=lambda x: x[1])
first_end = intervals[0][1]
res = 0
for i in range(1, size):
start, end = intervals[i]
if start >= first_end:
first_end = end
else:
res += 1
return res
| """https://leetcode.com/problems/non-overlapping-intervals/
435. Non-overlapping Intervals
Medium
2867
79
Add to List
Share
Given an array of intervals intervals where intervals[i] = [starti, endi], return the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.
Example 1:
Input: intervals = [[1,2],[2,3],[3,4],[1,3]]
Output: 1
Explanation: [1,3] can be removed and the rest of the intervals are non-overlapping.
Example 2:
Input: intervals = [[1,2],[1,2],[1,2]]
Output: 2
Explanation: You need to remove two [1,2] to make the rest of the intervals non-overlapping.
Example 3:
Input: intervals = [[1,2],[2,3]]
Output: 0
Explanation: You don't need to remove any of the intervals since they're already non-overlapping.
Constraints:
1 <= intervals.length <= 105
intervals[i].length == 2
-5 * 104 <= starti < endi <= 5 * 104"""
class Solution(object):
def erase_overlap_intervals(self, intervals: List[List[int]]) -> int:
size = len(intervals)
if size <= 1:
return 0
intervals.sort(key=lambda x: x[1])
first_end = intervals[0][1]
res = 0
for i in range(1, size):
(start, end) = intervals[i]
if start >= first_end:
first_end = end
else:
res += 1
return res |
# LANGUAGE: Python 3
# AUTHOR: Luiz Devitte
# GitHub: https://github.com/LuizDevitte
def greetings(name):
print('\n')
print('Hello, World!')
print('And Hello, {}!'.format(name))
print('\n')
return 0
def main():
name = input('Hey, who are you? ')
greetings(name)
if __name__=='__main__':
main()
| def greetings(name):
print('\n')
print('Hello, World!')
print('And Hello, {}!'.format(name))
print('\n')
return 0
def main():
name = input('Hey, who are you? ')
greetings(name)
if __name__ == '__main__':
main() |
#!/usr/bin/env python
MAX_LOG_LENGTH = 1000
MESSAGE_MAX_LENGTH = 2000
class ScriptLogger:
def __init__(self, db):
self.db = db
def save(self, user_name, path, logs):
# Don't save empty logs
if len(logs) == 0:
return
# If logs are longer than the maximum allowed,
# trim them to the last MAX_LOG_LENGTH messages.
if len(logs) > MAX_LOG_LENGTH:
logs = logs[-MAX_LOG_LENGTH:]
all_messages = self.transform_log_entries(logs)
user_id = self.db.get_user_id(user_name)
if user_id is None:
return
return self.db.save_logs(user_id, path, all_messages)
def load(self, user_name, path):
all_messages = []
user_id = self.db.get_user_id(user_name)
if user_id is None:
return None
log_records = self.db.get_logs(user_id, path)
for entry in log_records:
all_messages.append(self.transform_messages(entry))
return str(all_messages)
def transform_messages(self, log_entry):
result = []
logs = log_entry["logs"]
for entry in logs:
result.append(self.transform_log_entries([entry]))
return result
@staticmethod
def transform_log_entries(log):
result = []
for entry in log:
try:
message = str(entry["message"])
time = int(entry["time"])
except Exception as e:
# Messages were of incorrect format,
# ignore them and return empty
print(e)
return result
result.append({
"time": time,
"message": message
})
return result
| max_log_length = 1000
message_max_length = 2000
class Scriptlogger:
def __init__(self, db):
self.db = db
def save(self, user_name, path, logs):
if len(logs) == 0:
return
if len(logs) > MAX_LOG_LENGTH:
logs = logs[-MAX_LOG_LENGTH:]
all_messages = self.transform_log_entries(logs)
user_id = self.db.get_user_id(user_name)
if user_id is None:
return
return self.db.save_logs(user_id, path, all_messages)
def load(self, user_name, path):
all_messages = []
user_id = self.db.get_user_id(user_name)
if user_id is None:
return None
log_records = self.db.get_logs(user_id, path)
for entry in log_records:
all_messages.append(self.transform_messages(entry))
return str(all_messages)
def transform_messages(self, log_entry):
result = []
logs = log_entry['logs']
for entry in logs:
result.append(self.transform_log_entries([entry]))
return result
@staticmethod
def transform_log_entries(log):
result = []
for entry in log:
try:
message = str(entry['message'])
time = int(entry['time'])
except Exception as e:
print(e)
return result
result.append({'time': time, 'message': message})
return result |
#
# PySNMP MIB module Fore-DSX1-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-DSX1-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:03: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)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint")
asx, = mibBuilder.importSymbols("Fore-Common-MIB", "asx")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
iso, ModuleIdentity, TimeTicks, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Unsigned32, IpAddress, Counter64, Counter32, NotificationType, ObjectIdentity, Bits, MibIdentifier = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "ModuleIdentity", "TimeTicks", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Unsigned32", "IpAddress", "Counter64", "Counter32", "NotificationType", "ObjectIdentity", "Bits", "MibIdentifier")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
foreDsx1 = ModuleIdentity((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10))
if mibBuilder.loadTexts: foreDsx1.setLastUpdated('9911050000Z')
if mibBuilder.loadTexts: foreDsx1.setOrganization('FORE')
dsx1ForeConfGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1))
dsx1ForeStatsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2))
dsx1ForeConfTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1), )
if mibBuilder.loadTexts: dsx1ForeConfTable.setStatus('current')
dsx1ForeConfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1), ).setIndexNames((0, "Fore-DSX1-MIB", "dsx1ForeLineIndex"))
if mibBuilder.loadTexts: dsx1ForeConfEntry.setStatus('current')
dsx1ForeLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeLineIndex.setStatus('current')
dsx1ForeReceiveCode = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("dsx1ReceiveNoCode", 1), ("dsx1ReceiveLineCode", 2), ("dsx1ReceivePayloadCode", 3), ("dsx1ReceiveResetCode", 4), ("dsx1ReceiveQRS", 5), ("dsx1Receive511Pattern", 6), ("dsx1Receive3in24Pattern", 7), ("dsx1ReceiveOtherTestPattern", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeReceiveCode.setStatus('current')
dsx1ForeLineLength = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("dsx1LineLt40", 1), ("dsx1Line40-80", 2), ("dsx1Line80-120", 3), ("dsx1Line120-160", 4), ("dsx1Line160-200", 5), ("dsx1LineE1Coax", 6), ("dsx1LineTwistedPair", 7))).clone('dsx1LineLt40')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dsx1ForeLineLength.setStatus('current')
dsx1ForeFdlConfiguration = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("network", 1), ("user", 2))).clone('network')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dsx1ForeFdlConfiguration.setStatus('current')
dsx1ForeLineImpedance = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 5), Integer32().clone(75)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dsx1ForeLineImpedance.setStatus('deprecated')
dsx1ForeFdlPerfConf = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dsx1ForeFdlPerfConf.setStatus('current')
dsx1ForeFdlBomConf = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dsx1ForeFdlBomConf.setStatus('current')
dsx1ForeUpStreamAIS = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dsx1ForeUpStreamAIS.setStatus('current')
dsx1ForePortModel = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForePortModel.setStatus('current')
dsx1ForeAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dsx1ForeAdminStatus.setStatus('current')
dsx1ForeFramingTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1), )
if mibBuilder.loadTexts: dsx1ForeFramingTable.setStatus('current')
dsx1ForeFramingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1), ).setIndexNames((0, "Fore-DSX1-MIB", "dsx1ForeFramingIndex"))
if mibBuilder.loadTexts: dsx1ForeFramingEntry.setStatus('current')
dsx1ForeFramingIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingIndex.setStatus('current')
dsx1ForeFramingLOSs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingLOSs.setStatus('current')
dsx1ForeFramingLCVs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingLCVs.setStatus('current')
dsx1ForeFramingFERRs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingFERRs.setStatus('current')
dsx1ForeFramingOOFs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingOOFs.setStatus('current')
dsx1ForeFramingAISs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingAISs.setStatus('current')
dsx1ForeFramingB8ZSPatterns = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingB8ZSPatterns.setStatus('current')
dsx1ForeFraming8Zeros = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFraming8Zeros.setStatus('current')
dsx1ForeFraming16Zeros = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFraming16Zeros.setStatus('current')
dsx1ForeFramingYellowAlarms = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingYellowAlarms.setStatus('current')
dsx1ForeFramingRedAlarms = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingRedAlarms.setStatus('current')
dsx1ForeFramingBEEs = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeFramingBEEs.setStatus('current')
dsx1ForeAtmTable = MibTable((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2), )
if mibBuilder.loadTexts: dsx1ForeAtmTable.setStatus('current')
dsx1ForeAtmEntry = MibTableRow((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2, 1), ).setIndexNames((0, "Fore-DSX1-MIB", "dsx1ForeAtmIndex"))
if mibBuilder.loadTexts: dsx1ForeAtmEntry.setStatus('current')
dsx1ForeAtmIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeAtmIndex.setStatus('current')
dsx1ForeAtmRxCells = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeAtmRxCells.setStatus('current')
dsx1ForeAtmTxCells = MibTableColumn((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dsx1ForeAtmTxCells.setStatus('current')
mibBuilder.exportSymbols("Fore-DSX1-MIB", dsx1ForeFramingOOFs=dsx1ForeFramingOOFs, dsx1ForeFramingB8ZSPatterns=dsx1ForeFramingB8ZSPatterns, dsx1ForeFramingEntry=dsx1ForeFramingEntry, dsx1ForeFramingLCVs=dsx1ForeFramingLCVs, dsx1ForeLineImpedance=dsx1ForeLineImpedance, foreDsx1=foreDsx1, PYSNMP_MODULE_ID=foreDsx1, dsx1ForeFramingFERRs=dsx1ForeFramingFERRs, dsx1ForeAtmTable=dsx1ForeAtmTable, dsx1ForeFraming16Zeros=dsx1ForeFraming16Zeros, dsx1ForeConfEntry=dsx1ForeConfEntry, dsx1ForeFramingRedAlarms=dsx1ForeFramingRedAlarms, dsx1ForeAtmTxCells=dsx1ForeAtmTxCells, dsx1ForeStatsGroup=dsx1ForeStatsGroup, dsx1ForeConfTable=dsx1ForeConfTable, dsx1ForePortModel=dsx1ForePortModel, dsx1ForeFdlBomConf=dsx1ForeFdlBomConf, dsx1ForeAtmRxCells=dsx1ForeAtmRxCells, dsx1ForeAtmIndex=dsx1ForeAtmIndex, dsx1ForeConfGroup=dsx1ForeConfGroup, dsx1ForeFramingYellowAlarms=dsx1ForeFramingYellowAlarms, dsx1ForeFramingAISs=dsx1ForeFramingAISs, dsx1ForeFramingBEEs=dsx1ForeFramingBEEs, dsx1ForeLineIndex=dsx1ForeLineIndex, dsx1ForeFramingTable=dsx1ForeFramingTable, dsx1ForeReceiveCode=dsx1ForeReceiveCode, dsx1ForeUpStreamAIS=dsx1ForeUpStreamAIS, dsx1ForeFdlPerfConf=dsx1ForeFdlPerfConf, dsx1ForeFraming8Zeros=dsx1ForeFraming8Zeros, dsx1ForeAtmEntry=dsx1ForeAtmEntry, dsx1ForeFramingLOSs=dsx1ForeFramingLOSs, dsx1ForeLineLength=dsx1ForeLineLength, dsx1ForeFramingIndex=dsx1ForeFramingIndex, dsx1ForeFdlConfiguration=dsx1ForeFdlConfiguration, dsx1ForeAdminStatus=dsx1ForeAdminStatus)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_range_constraint, single_value_constraint, constraints_intersection, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint')
(asx,) = mibBuilder.importSymbols('Fore-Common-MIB', 'asx')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(iso, module_identity, time_ticks, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, unsigned32, ip_address, counter64, counter32, notification_type, object_identity, bits, mib_identifier) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'ModuleIdentity', 'TimeTicks', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Unsigned32', 'IpAddress', 'Counter64', 'Counter32', 'NotificationType', 'ObjectIdentity', 'Bits', 'MibIdentifier')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
fore_dsx1 = module_identity((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10))
if mibBuilder.loadTexts:
foreDsx1.setLastUpdated('9911050000Z')
if mibBuilder.loadTexts:
foreDsx1.setOrganization('FORE')
dsx1_fore_conf_group = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1))
dsx1_fore_stats_group = mib_identifier((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2))
dsx1_fore_conf_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1))
if mibBuilder.loadTexts:
dsx1ForeConfTable.setStatus('current')
dsx1_fore_conf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1)).setIndexNames((0, 'Fore-DSX1-MIB', 'dsx1ForeLineIndex'))
if mibBuilder.loadTexts:
dsx1ForeConfEntry.setStatus('current')
dsx1_fore_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeLineIndex.setStatus('current')
dsx1_fore_receive_code = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('dsx1ReceiveNoCode', 1), ('dsx1ReceiveLineCode', 2), ('dsx1ReceivePayloadCode', 3), ('dsx1ReceiveResetCode', 4), ('dsx1ReceiveQRS', 5), ('dsx1Receive511Pattern', 6), ('dsx1Receive3in24Pattern', 7), ('dsx1ReceiveOtherTestPattern', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeReceiveCode.setStatus('current')
dsx1_fore_line_length = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('dsx1LineLt40', 1), ('dsx1Line40-80', 2), ('dsx1Line80-120', 3), ('dsx1Line120-160', 4), ('dsx1Line160-200', 5), ('dsx1LineE1Coax', 6), ('dsx1LineTwistedPair', 7))).clone('dsx1LineLt40')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dsx1ForeLineLength.setStatus('current')
dsx1_fore_fdl_configuration = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('network', 1), ('user', 2))).clone('network')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dsx1ForeFdlConfiguration.setStatus('current')
dsx1_fore_line_impedance = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 5), integer32().clone(75)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dsx1ForeLineImpedance.setStatus('deprecated')
dsx1_fore_fdl_perf_conf = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dsx1ForeFdlPerfConf.setStatus('current')
dsx1_fore_fdl_bom_conf = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dsx1ForeFdlBomConf.setStatus('current')
dsx1_fore_up_stream_ais = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dsx1ForeUpStreamAIS.setStatus('current')
dsx1_fore_port_model = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForePortModel.setStatus('current')
dsx1_fore_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('testing', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dsx1ForeAdminStatus.setStatus('current')
dsx1_fore_framing_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1))
if mibBuilder.loadTexts:
dsx1ForeFramingTable.setStatus('current')
dsx1_fore_framing_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1)).setIndexNames((0, 'Fore-DSX1-MIB', 'dsx1ForeFramingIndex'))
if mibBuilder.loadTexts:
dsx1ForeFramingEntry.setStatus('current')
dsx1_fore_framing_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingIndex.setStatus('current')
dsx1_fore_framing_lo_ss = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingLOSs.setStatus('current')
dsx1_fore_framing_lc_vs = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingLCVs.setStatus('current')
dsx1_fore_framing_fer_rs = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingFERRs.setStatus('current')
dsx1_fore_framing_oo_fs = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingOOFs.setStatus('current')
dsx1_fore_framing_ai_ss = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingAISs.setStatus('current')
dsx1_fore_framing_b8_zs_patterns = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingB8ZSPatterns.setStatus('current')
dsx1_fore_framing8_zeros = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFraming8Zeros.setStatus('current')
dsx1_fore_framing16_zeros = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFraming16Zeros.setStatus('current')
dsx1_fore_framing_yellow_alarms = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingYellowAlarms.setStatus('current')
dsx1_fore_framing_red_alarms = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingRedAlarms.setStatus('current')
dsx1_fore_framing_be_es = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeFramingBEEs.setStatus('current')
dsx1_fore_atm_table = mib_table((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2))
if mibBuilder.loadTexts:
dsx1ForeAtmTable.setStatus('current')
dsx1_fore_atm_entry = mib_table_row((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2, 1)).setIndexNames((0, 'Fore-DSX1-MIB', 'dsx1ForeAtmIndex'))
if mibBuilder.loadTexts:
dsx1ForeAtmEntry.setStatus('current')
dsx1_fore_atm_index = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeAtmIndex.setStatus('current')
dsx1_fore_atm_rx_cells = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeAtmRxCells.setStatus('current')
dsx1_fore_atm_tx_cells = mib_table_column((1, 3, 6, 1, 4, 1, 326, 2, 2, 1, 1, 10, 2, 2, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dsx1ForeAtmTxCells.setStatus('current')
mibBuilder.exportSymbols('Fore-DSX1-MIB', dsx1ForeFramingOOFs=dsx1ForeFramingOOFs, dsx1ForeFramingB8ZSPatterns=dsx1ForeFramingB8ZSPatterns, dsx1ForeFramingEntry=dsx1ForeFramingEntry, dsx1ForeFramingLCVs=dsx1ForeFramingLCVs, dsx1ForeLineImpedance=dsx1ForeLineImpedance, foreDsx1=foreDsx1, PYSNMP_MODULE_ID=foreDsx1, dsx1ForeFramingFERRs=dsx1ForeFramingFERRs, dsx1ForeAtmTable=dsx1ForeAtmTable, dsx1ForeFraming16Zeros=dsx1ForeFraming16Zeros, dsx1ForeConfEntry=dsx1ForeConfEntry, dsx1ForeFramingRedAlarms=dsx1ForeFramingRedAlarms, dsx1ForeAtmTxCells=dsx1ForeAtmTxCells, dsx1ForeStatsGroup=dsx1ForeStatsGroup, dsx1ForeConfTable=dsx1ForeConfTable, dsx1ForePortModel=dsx1ForePortModel, dsx1ForeFdlBomConf=dsx1ForeFdlBomConf, dsx1ForeAtmRxCells=dsx1ForeAtmRxCells, dsx1ForeAtmIndex=dsx1ForeAtmIndex, dsx1ForeConfGroup=dsx1ForeConfGroup, dsx1ForeFramingYellowAlarms=dsx1ForeFramingYellowAlarms, dsx1ForeFramingAISs=dsx1ForeFramingAISs, dsx1ForeFramingBEEs=dsx1ForeFramingBEEs, dsx1ForeLineIndex=dsx1ForeLineIndex, dsx1ForeFramingTable=dsx1ForeFramingTable, dsx1ForeReceiveCode=dsx1ForeReceiveCode, dsx1ForeUpStreamAIS=dsx1ForeUpStreamAIS, dsx1ForeFdlPerfConf=dsx1ForeFdlPerfConf, dsx1ForeFraming8Zeros=dsx1ForeFraming8Zeros, dsx1ForeAtmEntry=dsx1ForeAtmEntry, dsx1ForeFramingLOSs=dsx1ForeFramingLOSs, dsx1ForeLineLength=dsx1ForeLineLength, dsx1ForeFramingIndex=dsx1ForeFramingIndex, dsx1ForeFdlConfiguration=dsx1ForeFdlConfiguration, dsx1ForeAdminStatus=dsx1ForeAdminStatus) |
class BattleEventsListener:
def on_battle_begins(self):
pass
def on_battle_ends(self):
pass
def on_reflected_attack(self, attack_obj):
pass
def on_unit_damaged(self, attack_obj):
pass
def on_unit_killed(self, attack_obj):
pass
def on_squad_killed(self, attack_obj):
pass
| class Battleeventslistener:
def on_battle_begins(self):
pass
def on_battle_ends(self):
pass
def on_reflected_attack(self, attack_obj):
pass
def on_unit_damaged(self, attack_obj):
pass
def on_unit_killed(self, attack_obj):
pass
def on_squad_killed(self, attack_obj):
pass |
# -*- coding: utf-8 -*-
class GameConfig:
# Frame dimensions
width = 30
height = 15
# Start the game at this speed
initial_speed = 3.0
# For every point scored, increase game speed by this amount
speed_increase_factor = 0.15
# Maximum game speed.
max_speed = 30
# Enforce collision with frame boundaries.
solid_walls = True
# Amount of food initially displayed on screen.
initial_food_count = 1
# Max amount of food ever displayed at one time.
max_food_count = 5
# Increment the number of food items displayed in game
# once every 'food_increase_interval' points scored.
# (Set to 0 to never increment food display count).
food_increase_interval = 10
| class Gameconfig:
width = 30
height = 15
initial_speed = 3.0
speed_increase_factor = 0.15
max_speed = 30
solid_walls = True
initial_food_count = 1
max_food_count = 5
food_increase_interval = 10 |
print("%s" % 1.0)
print("%r" % 1.0)
print("%d" % 1.0)
print("%i" % 1.0)
print("%u" % 1.0)
# these 3 have different behaviour in Python 3.x versions
# uPy raises a TypeError, following Python 3.5 (earlier versions don't)
#print("%x" % 18.0)
#print("%o" % 18.0)
#print("%X" % 18.0)
print("%e" % 1.23456)
print("%E" % 1.23456)
print("%f" % 1.23456)
print("%F" % 1.23456)
print("%g" % 1.23456)
print("%G" % 1.23456)
print("%06e" % float("inf"))
print("%06e" % float("-inf"))
print("%06e" % float("nan"))
print("%02.3d" % 123) # prec > width
print("%+f %+f" % (1.23, -1.23)) # float sign
print("% f % f" % (1.23, -1.23)) # float space sign
print("%0f" % -1.23) # negative number with 0 padding
| print('%s' % 1.0)
print('%r' % 1.0)
print('%d' % 1.0)
print('%i' % 1.0)
print('%u' % 1.0)
print('%e' % 1.23456)
print('%E' % 1.23456)
print('%f' % 1.23456)
print('%F' % 1.23456)
print('%g' % 1.23456)
print('%G' % 1.23456)
print('%06e' % float('inf'))
print('%06e' % float('-inf'))
print('%06e' % float('nan'))
print('%02.3d' % 123)
print('%+f %+f' % (1.23, -1.23))
print('% f % f' % (1.23, -1.23))
print('%0f' % -1.23) |
N,K=map(int,input().split())
S=[int(input()) for i in range(N)]
length=left=0
mul=1
if 0 in S:
length=N
else:
for right in range(N):
mul*=S[right]
if mul<=K:
length=max(length,right-left+1)
else:
mul//=S[left]
left+=1
print(length) | (n, k) = map(int, input().split())
s = [int(input()) for i in range(N)]
length = left = 0
mul = 1
if 0 in S:
length = N
else:
for right in range(N):
mul *= S[right]
if mul <= K:
length = max(length, right - left + 1)
else:
mul //= S[left]
left += 1
print(length) |
class SERPException(Exception):
pass
class ItemNotFoundException(SERPException):
pass
| class Serpexception(Exception):
pass
class Itemnotfoundexception(SERPException):
pass |
#! /usr/bin/python3
def parts(arr):
arr.append(0)
arr.append(max(arr)+3)
arr.sort()
_type1 = 0
_type2 = 0
for _x in range(0, len(arr)-1):
_difference = arr[_x+1] - arr[_x]
if _difference == 1:
_type1 += 1
elif _difference == 3:
_type2 += 1
_dict = {}
def two(_index):
if _index == len(arr) - 1:
print('end return 1')
return 1
if _index in _dict:
return _dict[_index]
_sum = 0
if _index + 1 < len(arr) and arr[_index+1] - arr[_index] <= 3:
_sum += two(_index+1)
if _index + 2 < len(arr) and arr[_index+2] - arr[_index] <= 3:
_sum += two(_index+2)
if _index + 3 < len(arr) and arr[_index+3] - arr[_index] <= 3:
_sum += two(_index + 3)
_dict[_index] = _sum
return _sum
print(f'partOne: {_type1*_type2}')
print(arr)
print(f'partTwo: {two(0)}')
inputs = [int(x.strip()) for x in open('input.txt', 'r').readlines()]
parts(inputs)
| def parts(arr):
arr.append(0)
arr.append(max(arr) + 3)
arr.sort()
_type1 = 0
_type2 = 0
for _x in range(0, len(arr) - 1):
_difference = arr[_x + 1] - arr[_x]
if _difference == 1:
_type1 += 1
elif _difference == 3:
_type2 += 1
_dict = {}
def two(_index):
if _index == len(arr) - 1:
print('end return 1')
return 1
if _index in _dict:
return _dict[_index]
_sum = 0
if _index + 1 < len(arr) and arr[_index + 1] - arr[_index] <= 3:
_sum += two(_index + 1)
if _index + 2 < len(arr) and arr[_index + 2] - arr[_index] <= 3:
_sum += two(_index + 2)
if _index + 3 < len(arr) and arr[_index + 3] - arr[_index] <= 3:
_sum += two(_index + 3)
_dict[_index] = _sum
return _sum
print(f'partOne: {_type1 * _type2}')
print(arr)
print(f'partTwo: {two(0)}')
inputs = [int(x.strip()) for x in open('input.txt', 'r').readlines()]
parts(inputs) |
# Debug flag
DEBUG = False
# Menu tuple IDX return
IDX_STOCK = 0
IDX_DATE_RANGE = 1
IDX_PERCENT_TRAINED = 2 | debug = False
idx_stock = 0
idx_date_range = 1
idx_percent_trained = 2 |
def deep_reverse(arr):
if len(arr) == 0:
return []
last_el = arr[-1]
rem_list = deep_reverse(arr[:-1]) # remaining list
if type(last_el) is list:
last_el = deep_reverse(last_el)
rem_list.insert(0, last_el)
return rem_list
def test_function(test_case):
arr = test_case[0]
solution = test_case[1]
output = deep_reverse(arr)
if output == solution:
print("Pass")
else:
print("False")
arr = [1, 2, 3, 4, 5]
solution = [5, 4, 3, 2, 1]
test_case = [arr, solution]
test_function(test_case)
arr = [1, 2, [3, 4, 5], 4, 5]
solution = [5, 4, [5, 4, 3], 2, 1]
test_case = [arr, solution]
test_function(test_case)
arr = [1, [2, 3, [4, [5, 6]]]]
solution = [[[[6, 5], 4], 3, 2], 1]
test_case = [arr, solution]
test_function(test_case)
arr = [1, [2,3], 4, [5,6]]
solution = [ [6,5], 4, [3, 2], 1]
test_case = [arr, solution]
test_function(test_case)
| def deep_reverse(arr):
if len(arr) == 0:
return []
last_el = arr[-1]
rem_list = deep_reverse(arr[:-1])
if type(last_el) is list:
last_el = deep_reverse(last_el)
rem_list.insert(0, last_el)
return rem_list
def test_function(test_case):
arr = test_case[0]
solution = test_case[1]
output = deep_reverse(arr)
if output == solution:
print('Pass')
else:
print('False')
arr = [1, 2, 3, 4, 5]
solution = [5, 4, 3, 2, 1]
test_case = [arr, solution]
test_function(test_case)
arr = [1, 2, [3, 4, 5], 4, 5]
solution = [5, 4, [5, 4, 3], 2, 1]
test_case = [arr, solution]
test_function(test_case)
arr = [1, [2, 3, [4, [5, 6]]]]
solution = [[[[6, 5], 4], 3, 2], 1]
test_case = [arr, solution]
test_function(test_case)
arr = [1, [2, 3], 4, [5, 6]]
solution = [[6, 5], 4, [3, 2], 1]
test_case = [arr, solution]
test_function(test_case) |
# problem link: https://leetcode.com/problems/combination-sum-iii/
class Solution:
def combinationSum3(self, k: int, n: int) -> List[List[int]]:
end_num = 10 # candidates numbers are btw 0 - 9
def dfs(cur_list, cur_size, next_num):
if cur_size == k and sum(cur_list) == n:
res.append(cur_list)
return
if cur_size > k or sum(cur_list) > n: # pruning
return
for i in range(next_num, end_num):
dfs(cur_list + [i], cur_size + 1, i + 1)
res = []
dfs([], 0, 1)
return res | class Solution:
def combination_sum3(self, k: int, n: int) -> List[List[int]]:
end_num = 10
def dfs(cur_list, cur_size, next_num):
if cur_size == k and sum(cur_list) == n:
res.append(cur_list)
return
if cur_size > k or sum(cur_list) > n:
return
for i in range(next_num, end_num):
dfs(cur_list + [i], cur_size + 1, i + 1)
res = []
dfs([], 0, 1)
return res |
def insertion_sort(arr):
for k in range(1, len(arr)):
key = arr[k]
j = k
while j > 0 and arr[j-1] > arr[j]:
arr[j], arr[j-1] = arr[j-1], arr[j]
j = j - 1
my_list = [24, 81, 13, 57, 16]
insertion_sort(my_list)
print(my_list) | def insertion_sort(arr):
for k in range(1, len(arr)):
key = arr[k]
j = k
while j > 0 and arr[j - 1] > arr[j]:
(arr[j], arr[j - 1]) = (arr[j - 1], arr[j])
j = j - 1
my_list = [24, 81, 13, 57, 16]
insertion_sort(my_list)
print(my_list) |
#
# PySNMP MIB module ELTEX-MES-VLAN-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ELTEX-MES-VLAN-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:02:10 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, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion")
dot1dBasePort, = mibBuilder.importSymbols("BRIDGE-MIB", "dot1dBasePort")
eltMes, = mibBuilder.importSymbols("ELTEX-MES", "eltMes")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
InetAddressType, = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType")
VlanIndex, dot1qVlanIndex, PortList = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanIndex", "dot1qVlanIndex", "PortList")
rnd, = mibBuilder.importSymbols("RADLAN-MIB", "rnd")
vlanMulticastTvEntry, = mibBuilder.importSymbols("RADLAN-vlan-MIB", "vlanMulticastTvEntry")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Counter64, MibIdentifier, IpAddress, Counter32, Gauge32, iso, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, TimeTicks, ObjectIdentity, ModuleIdentity, Bits, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "MibIdentifier", "IpAddress", "Counter32", "Gauge32", "iso", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "TimeTicks", "ObjectIdentity", "ModuleIdentity", "Bits", "NotificationType")
TruthValue, RowStatus, MacAddress, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "RowStatus", "MacAddress", "DisplayString", "TextualConvention")
eltMesVlan = ModuleIdentity((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5))
eltMesVlan.setRevisions(('2013-11-18 00:00', '2013-11-18 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: eltMesVlan.setRevisionsDescriptions(('Editorial changes to support new MIB compilers.', 'Initial version of this MIB.',))
if mibBuilder.loadTexts: eltMesVlan.setLastUpdated('201311180000Z')
if mibBuilder.loadTexts: eltMesVlan.setOrganization('Eltex Ltd.')
if mibBuilder.loadTexts: eltMesVlan.setContactInfo('www.eltex.nsk.ru')
if mibBuilder.loadTexts: eltMesVlan.setDescription('The private MIB module definition for IP Multicast support in Eltex devices.')
class EltVlanMode(TextualConvention, Integer32):
reference = 'TR-101'
description = 'Indicates global VLAN QinQ operation mode. '
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("basic", 1), ("tr101", 2))
eltVlanMulticastTvTable = MibTable((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 1), )
if mibBuilder.loadTexts: eltVlanMulticastTvTable.setStatus('current')
if mibBuilder.loadTexts: eltVlanMulticastTvTable.setDescription('Multicast vlan used for this port')
eltVlanMulticastTvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 1, 1), )
vlanMulticastTvEntry.registerAugmentions(("ELTEX-MES-VLAN-MIB", "eltVlanMulticastTvEntry"))
eltVlanMulticastTvEntry.setIndexNames(*vlanMulticastTvEntry.getIndexNames())
if mibBuilder.loadTexts: eltVlanMulticastTvEntry.setStatus('current')
if mibBuilder.loadTexts: eltVlanMulticastTvEntry.setDescription('Entry of multicast tag')
eltVlanMulticastTvVIDIsTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 1, 1, 1), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eltVlanMulticastTvVIDIsTagged.setStatus('current')
if mibBuilder.loadTexts: eltVlanMulticastTvVIDIsTagged.setDescription('Specify whether the port is tagged in TV vlan or not.')
eltVlanMode = MibScalar((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 2), EltVlanMode()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eltVlanMode.setStatus('current')
if mibBuilder.loadTexts: eltVlanMode.setDescription('Global VLAN QinQ operation mode')
eltdot1qPortVlanCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3), )
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentTable.setStatus('current')
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentTable.setDescription('A table containing current vlan port membership information.')
eltdot1qPortVlanCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEntry.setStatus('current')
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEntry.setDescription('Current vlan membership information per port')
eltdot1qPortVlanCurrentEgressList1to1024 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEgressList1to1024.setStatus('current')
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEgressList1to1024.setDescription('The port egress vlan current list.')
eltdot1qPortVlanCurrentEgressList1025to2048 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEgressList1025to2048.setStatus('current')
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEgressList1025to2048.setDescription('The port egress vlan current list.')
eltdot1qPortVlanCurrentEgressList2049to3072 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEgressList2049to3072.setStatus('current')
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEgressList2049to3072.setDescription('The port egress vlan current list.')
eltdot1qPortVlanCurrentEgressList3073to4094 = MibTableColumn((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEgressList3073to4094.setStatus('current')
if mibBuilder.loadTexts: eltdot1qPortVlanCurrentEgressList3073to4094.setDescription('The port egress vlan current list.')
mibBuilder.exportSymbols("ELTEX-MES-VLAN-MIB", eltVlanMulticastTvEntry=eltVlanMulticastTvEntry, EltVlanMode=EltVlanMode, eltdot1qPortVlanCurrentTable=eltdot1qPortVlanCurrentTable, PYSNMP_MODULE_ID=eltMesVlan, eltVlanMulticastTvTable=eltVlanMulticastTvTable, eltdot1qPortVlanCurrentEntry=eltdot1qPortVlanCurrentEntry, eltVlanMulticastTvVIDIsTagged=eltVlanMulticastTvVIDIsTagged, eltdot1qPortVlanCurrentEgressList1to1024=eltdot1qPortVlanCurrentEgressList1to1024, eltdot1qPortVlanCurrentEgressList2049to3072=eltdot1qPortVlanCurrentEgressList2049to3072, eltdot1qPortVlanCurrentEgressList3073to4094=eltdot1qPortVlanCurrentEgressList3073to4094, eltdot1qPortVlanCurrentEgressList1025to2048=eltdot1qPortVlanCurrentEgressList1025to2048, eltMesVlan=eltMesVlan, eltVlanMode=eltVlanMode)
| (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, constraints_intersection, single_value_constraint, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion')
(dot1d_base_port,) = mibBuilder.importSymbols('BRIDGE-MIB', 'dot1dBasePort')
(elt_mes,) = mibBuilder.importSymbols('ELTEX-MES', 'eltMes')
(if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex')
(inet_address_type,) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType')
(vlan_index, dot1q_vlan_index, port_list) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanIndex', 'dot1qVlanIndex', 'PortList')
(rnd,) = mibBuilder.importSymbols('RADLAN-MIB', 'rnd')
(vlan_multicast_tv_entry,) = mibBuilder.importSymbols('RADLAN-vlan-MIB', 'vlanMulticastTvEntry')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(counter64, mib_identifier, ip_address, counter32, gauge32, iso, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, time_ticks, object_identity, module_identity, bits, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'MibIdentifier', 'IpAddress', 'Counter32', 'Gauge32', 'iso', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'TimeTicks', 'ObjectIdentity', 'ModuleIdentity', 'Bits', 'NotificationType')
(truth_value, row_status, mac_address, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'RowStatus', 'MacAddress', 'DisplayString', 'TextualConvention')
elt_mes_vlan = module_identity((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5))
eltMesVlan.setRevisions(('2013-11-18 00:00', '2013-11-18 00:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
eltMesVlan.setRevisionsDescriptions(('Editorial changes to support new MIB compilers.', 'Initial version of this MIB.'))
if mibBuilder.loadTexts:
eltMesVlan.setLastUpdated('201311180000Z')
if mibBuilder.loadTexts:
eltMesVlan.setOrganization('Eltex Ltd.')
if mibBuilder.loadTexts:
eltMesVlan.setContactInfo('www.eltex.nsk.ru')
if mibBuilder.loadTexts:
eltMesVlan.setDescription('The private MIB module definition for IP Multicast support in Eltex devices.')
class Eltvlanmode(TextualConvention, Integer32):
reference = 'TR-101'
description = 'Indicates global VLAN QinQ operation mode. '
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('basic', 1), ('tr101', 2))
elt_vlan_multicast_tv_table = mib_table((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 1))
if mibBuilder.loadTexts:
eltVlanMulticastTvTable.setStatus('current')
if mibBuilder.loadTexts:
eltVlanMulticastTvTable.setDescription('Multicast vlan used for this port')
elt_vlan_multicast_tv_entry = mib_table_row((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 1, 1))
vlanMulticastTvEntry.registerAugmentions(('ELTEX-MES-VLAN-MIB', 'eltVlanMulticastTvEntry'))
eltVlanMulticastTvEntry.setIndexNames(*vlanMulticastTvEntry.getIndexNames())
if mibBuilder.loadTexts:
eltVlanMulticastTvEntry.setStatus('current')
if mibBuilder.loadTexts:
eltVlanMulticastTvEntry.setDescription('Entry of multicast tag')
elt_vlan_multicast_tv_vid_is_tagged = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 1, 1, 1), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
eltVlanMulticastTvVIDIsTagged.setStatus('current')
if mibBuilder.loadTexts:
eltVlanMulticastTvVIDIsTagged.setDescription('Specify whether the port is tagged in TV vlan or not.')
elt_vlan_mode = mib_scalar((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 2), elt_vlan_mode()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
eltVlanMode.setStatus('current')
if mibBuilder.loadTexts:
eltVlanMode.setDescription('Global VLAN QinQ operation mode')
eltdot1q_port_vlan_current_table = mib_table((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3))
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentTable.setStatus('current')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentTable.setDescription('A table containing current vlan port membership information.')
eltdot1q_port_vlan_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEntry.setStatus('current')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEntry.setDescription('Current vlan membership information per port')
eltdot1q_port_vlan_current_egress_list1to1024 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEgressList1to1024.setStatus('current')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEgressList1to1024.setDescription('The port egress vlan current list.')
eltdot1q_port_vlan_current_egress_list1025to2048 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEgressList1025to2048.setStatus('current')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEgressList1025to2048.setDescription('The port egress vlan current list.')
eltdot1q_port_vlan_current_egress_list2049to3072 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEgressList2049to3072.setStatus('current')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEgressList2049to3072.setDescription('The port egress vlan current list.')
eltdot1q_port_vlan_current_egress_list3073to4094 = mib_table_column((1, 3, 6, 1, 4, 1, 35265, 1, 23, 5, 3, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEgressList3073to4094.setStatus('current')
if mibBuilder.loadTexts:
eltdot1qPortVlanCurrentEgressList3073to4094.setDescription('The port egress vlan current list.')
mibBuilder.exportSymbols('ELTEX-MES-VLAN-MIB', eltVlanMulticastTvEntry=eltVlanMulticastTvEntry, EltVlanMode=EltVlanMode, eltdot1qPortVlanCurrentTable=eltdot1qPortVlanCurrentTable, PYSNMP_MODULE_ID=eltMesVlan, eltVlanMulticastTvTable=eltVlanMulticastTvTable, eltdot1qPortVlanCurrentEntry=eltdot1qPortVlanCurrentEntry, eltVlanMulticastTvVIDIsTagged=eltVlanMulticastTvVIDIsTagged, eltdot1qPortVlanCurrentEgressList1to1024=eltdot1qPortVlanCurrentEgressList1to1024, eltdot1qPortVlanCurrentEgressList2049to3072=eltdot1qPortVlanCurrentEgressList2049to3072, eltdot1qPortVlanCurrentEgressList3073to4094=eltdot1qPortVlanCurrentEgressList3073to4094, eltdot1qPortVlanCurrentEgressList1025to2048=eltdot1qPortVlanCurrentEgressList1025to2048, eltMesVlan=eltMesVlan, eltVlanMode=eltVlanMode) |
L, R = int(input()), int(input())
max_xor = 0
for i in range(L, R+1):
for j in range(i+1, R+1):
if i^j > max_xor:
max_xor = i^j
print(max_xor)
| (l, r) = (int(input()), int(input()))
max_xor = 0
for i in range(L, R + 1):
for j in range(i + 1, R + 1):
if i ^ j > max_xor:
max_xor = i ^ j
print(max_xor) |
f = open("file_name.txt", "w") # open file for writing
f.write("Some text with out new line ")
f.write("Some text.\nSome text.\nSome text.")
f.close() # always close the file
# "D:\\myfiles\file_name.txt" - backslash symbol (\) is for path in windows
# "/myfiles/file_name.txt" - slash symbol (/) is for path in Mac or Linux
f = open("file_name.txt", "r") # open file for reading
# END OF FILE (EOF) - name of the symbol which defines that file is ended
# read() - reads everything from current cursor position till EOF and returns everything in one string
# print (f.read())
# readline() - reads line from current cursor position till end of line(\n) or EOF
# print (f.readline())
# readlines() - reads each line from current cursor position till EOF and stores them as array
# print (f.readlines())
print(f.read()) # example of reading the file
f.close() # always close the file
# options: w - open file for writing, r - open file for reading
f = open("file_name", "w")
f.write("line to file") # write to file
f.close()
f = open("file_name", "r")
f.read() # reads everything from current cursor position till EOF and returns everything in one string
f.close()
f = open("file_name", "r")
f.readline() # readline() - reads line from current cursor position till end of line(\n) or EOF
f.close()
f = open("file_name", "r")
f.readlines() # readlines() - reads all lines from current cursor position till end of line(\n) or EOF
f.close()
| f = open('file_name.txt', 'w')
f.write('Some text with out new line ')
f.write('Some text.\nSome text.\nSome text.')
f.close()
f = open('file_name.txt', 'r')
print(f.read())
f.close()
f = open('file_name', 'w')
f.write('line to file')
f.close()
f = open('file_name', 'r')
f.read()
f.close()
f = open('file_name', 'r')
f.readline()
f.close()
f = open('file_name', 'r')
f.readlines()
f.close() |
class ActivitiesHelper:
'''
Given a pressure data timeseries, calculate a step count
'''
def calculate_step_count(self, dataframe, low_threshold = 0, high_threshold = 4):
p_avg = dataframe.mean(axis=1)
p_diff = p_avg.diff()
status = 0
step_count = 0
for p_diff_t in p_diff:
if p_diff_t < low_threshold:
if status == 1:
step_count += 1
status = -1
elif p_diff_t > high_threshold:
status = 1
return step_count
'''
Given a pressure timeseries, calculate a cadence
'''
def calculate_cadence(self, dataframe):
duration = (dataframe.index.max() - dataframe.index.min()).seconds
return self.calculate_step_count(dataframe) / duration
| class Activitieshelper:
"""
Given a pressure data timeseries, calculate a step count
"""
def calculate_step_count(self, dataframe, low_threshold=0, high_threshold=4):
p_avg = dataframe.mean(axis=1)
p_diff = p_avg.diff()
status = 0
step_count = 0
for p_diff_t in p_diff:
if p_diff_t < low_threshold:
if status == 1:
step_count += 1
status = -1
elif p_diff_t > high_threshold:
status = 1
return step_count
'\n Given a pressure timeseries, calculate a cadence\n '
def calculate_cadence(self, dataframe):
duration = (dataframe.index.max() - dataframe.index.min()).seconds
return self.calculate_step_count(dataframe) / duration |
class SemiFinder:
def __init__(self):
self.f = ""
self.counter = 0
#Path is inputted from AIPController
#Returns semicolon counter
def sendFile(self, path):
self.f = open(path)
for line in self.f:
try:
self.counter += self.get_all_semis(line)
except:
continue
c = self.counter
self.counter = 0
return c
#Gets next occurence of a semicolon
#Retuns True/False value, position of semicolon
def get_next_target(self, page):
pos_semi = page.find(';')
if pos_semi == -1:
return False, 0
return True, pos_semi+1
#Returns the length of an array which contains all
#instances of semicolons
def get_all_semis(self, page):
semis = []
while True:
value, c = self.get_next_target(page)
if value:
semis.append(c)
page = page[c:]
else:
break
return len(semis)
| class Semifinder:
def __init__(self):
self.f = ''
self.counter = 0
def send_file(self, path):
self.f = open(path)
for line in self.f:
try:
self.counter += self.get_all_semis(line)
except:
continue
c = self.counter
self.counter = 0
return c
def get_next_target(self, page):
pos_semi = page.find(';')
if pos_semi == -1:
return (False, 0)
return (True, pos_semi + 1)
def get_all_semis(self, page):
semis = []
while True:
(value, c) = self.get_next_target(page)
if value:
semis.append(c)
page = page[c:]
else:
break
return len(semis) |
#operate string of imgdata ,get the new string after ','
def cutstr(sStr1,sStr2):
nPos = sStr1.index(sStr2)
return sStr1[(nPos+1):]
if __name__ == '__main__':
print (cutstr('qwe,qw123123e2134123',','))
| def cutstr(sStr1, sStr2):
n_pos = sStr1.index(sStr2)
return sStr1[nPos + 1:]
if __name__ == '__main__':
print(cutstr('qwe,qw123123e2134123', ',')) |
class Node:
def __init__(self,data,freq):
self.left=None
self.right=None
self.data=data
self.freq=freq
root=Node("x",5)
root.left=Node("x",2)
root.right=Node("A",3)
root.left.left=Node("B",1)
root.left.right=Node("C",1)
s="1001011" #encoded data
ans=""
root2=root
for i in range(len(s)):
if(s[i]=="1"):
root=root.right
elif(s[i]=="0"):
root=root.left
if(root.left==None and root.right==None):
ans+=root.data
root=root2
print(ans) #decoded data
| class Node:
def __init__(self, data, freq):
self.left = None
self.right = None
self.data = data
self.freq = freq
root = node('x', 5)
root.left = node('x', 2)
root.right = node('A', 3)
root.left.left = node('B', 1)
root.left.right = node('C', 1)
s = '1001011'
ans = ''
root2 = root
for i in range(len(s)):
if s[i] == '1':
root = root.right
elif s[i] == '0':
root = root.left
if root.left == None and root.right == None:
ans += root.data
root = root2
print(ans) |
# Q6. Write a programs to print the following pattern :
''' a)A
A B
A B C
A B C D
A B C D E
b)1
1 2
1 2 3
1 2 3 4
c) 4 3 2 1
3 2 1
2 1
1 '''
| """ a)A
A B
A B C
A B C D
A B C D E
b)1
1 2
1 2 3
1 2 3 4
c) 4 3 2 1
3 2 1
2 1
1 """ |
data = (
'Shou ', # 0x00
'Yi ', # 0x01
'Zhi ', # 0x02
'Gu ', # 0x03
'Chu ', # 0x04
'Jiang ', # 0x05
'Feng ', # 0x06
'Bei ', # 0x07
'Cay ', # 0x08
'Bian ', # 0x09
'Sui ', # 0x0a
'Qun ', # 0x0b
'Ling ', # 0x0c
'Fu ', # 0x0d
'Zuo ', # 0x0e
'Xia ', # 0x0f
'Xiong ', # 0x10
'[?] ', # 0x11
'Nao ', # 0x12
'Xia ', # 0x13
'Kui ', # 0x14
'Xi ', # 0x15
'Wai ', # 0x16
'Yuan ', # 0x17
'Mao ', # 0x18
'Su ', # 0x19
'Duo ', # 0x1a
'Duo ', # 0x1b
'Ye ', # 0x1c
'Qing ', # 0x1d
'Uys ', # 0x1e
'Gou ', # 0x1f
'Gou ', # 0x20
'Qi ', # 0x21
'Meng ', # 0x22
'Meng ', # 0x23
'Yin ', # 0x24
'Huo ', # 0x25
'Chen ', # 0x26
'Da ', # 0x27
'Ze ', # 0x28
'Tian ', # 0x29
'Tai ', # 0x2a
'Fu ', # 0x2b
'Guai ', # 0x2c
'Yao ', # 0x2d
'Yang ', # 0x2e
'Hang ', # 0x2f
'Gao ', # 0x30
'Shi ', # 0x31
'Ben ', # 0x32
'Tai ', # 0x33
'Tou ', # 0x34
'Yan ', # 0x35
'Bi ', # 0x36
'Yi ', # 0x37
'Kua ', # 0x38
'Jia ', # 0x39
'Duo ', # 0x3a
'Kwu ', # 0x3b
'Kuang ', # 0x3c
'Yun ', # 0x3d
'Jia ', # 0x3e
'Pa ', # 0x3f
'En ', # 0x40
'Lian ', # 0x41
'Huan ', # 0x42
'Di ', # 0x43
'Yan ', # 0x44
'Pao ', # 0x45
'Quan ', # 0x46
'Qi ', # 0x47
'Nai ', # 0x48
'Feng ', # 0x49
'Xie ', # 0x4a
'Fen ', # 0x4b
'Dian ', # 0x4c
'[?] ', # 0x4d
'Kui ', # 0x4e
'Zou ', # 0x4f
'Huan ', # 0x50
'Qi ', # 0x51
'Kai ', # 0x52
'Zha ', # 0x53
'Ben ', # 0x54
'Yi ', # 0x55
'Jiang ', # 0x56
'Tao ', # 0x57
'Zang ', # 0x58
'Ben ', # 0x59
'Xi ', # 0x5a
'Xiang ', # 0x5b
'Fei ', # 0x5c
'Diao ', # 0x5d
'Xun ', # 0x5e
'Keng ', # 0x5f
'Dian ', # 0x60
'Ao ', # 0x61
'She ', # 0x62
'Weng ', # 0x63
'Pan ', # 0x64
'Ao ', # 0x65
'Wu ', # 0x66
'Ao ', # 0x67
'Jiang ', # 0x68
'Lian ', # 0x69
'Duo ', # 0x6a
'Yun ', # 0x6b
'Jiang ', # 0x6c
'Shi ', # 0x6d
'Fen ', # 0x6e
'Huo ', # 0x6f
'Bi ', # 0x70
'Lian ', # 0x71
'Duo ', # 0x72
'Nu ', # 0x73
'Nu ', # 0x74
'Ding ', # 0x75
'Nai ', # 0x76
'Qian ', # 0x77
'Jian ', # 0x78
'Ta ', # 0x79
'Jiu ', # 0x7a
'Nan ', # 0x7b
'Cha ', # 0x7c
'Hao ', # 0x7d
'Xian ', # 0x7e
'Fan ', # 0x7f
'Ji ', # 0x80
'Shuo ', # 0x81
'Ru ', # 0x82
'Fei ', # 0x83
'Wang ', # 0x84
'Hong ', # 0x85
'Zhuang ', # 0x86
'Fu ', # 0x87
'Ma ', # 0x88
'Dan ', # 0x89
'Ren ', # 0x8a
'Fu ', # 0x8b
'Jing ', # 0x8c
'Yan ', # 0x8d
'Xie ', # 0x8e
'Wen ', # 0x8f
'Zhong ', # 0x90
'Pa ', # 0x91
'Du ', # 0x92
'Ji ', # 0x93
'Keng ', # 0x94
'Zhong ', # 0x95
'Yao ', # 0x96
'Jin ', # 0x97
'Yun ', # 0x98
'Miao ', # 0x99
'Pei ', # 0x9a
'Shi ', # 0x9b
'Yue ', # 0x9c
'Zhuang ', # 0x9d
'Niu ', # 0x9e
'Yan ', # 0x9f
'Na ', # 0xa0
'Xin ', # 0xa1
'Fen ', # 0xa2
'Bi ', # 0xa3
'Yu ', # 0xa4
'Tuo ', # 0xa5
'Feng ', # 0xa6
'Yuan ', # 0xa7
'Fang ', # 0xa8
'Wu ', # 0xa9
'Yu ', # 0xaa
'Gui ', # 0xab
'Du ', # 0xac
'Ba ', # 0xad
'Ni ', # 0xae
'Zhou ', # 0xaf
'Zhuo ', # 0xb0
'Zhao ', # 0xb1
'Da ', # 0xb2
'Nai ', # 0xb3
'Yuan ', # 0xb4
'Tou ', # 0xb5
'Xuan ', # 0xb6
'Zhi ', # 0xb7
'E ', # 0xb8
'Mei ', # 0xb9
'Mo ', # 0xba
'Qi ', # 0xbb
'Bi ', # 0xbc
'Shen ', # 0xbd
'Qie ', # 0xbe
'E ', # 0xbf
'He ', # 0xc0
'Xu ', # 0xc1
'Fa ', # 0xc2
'Zheng ', # 0xc3
'Min ', # 0xc4
'Ban ', # 0xc5
'Mu ', # 0xc6
'Fu ', # 0xc7
'Ling ', # 0xc8
'Zi ', # 0xc9
'Zi ', # 0xca
'Shi ', # 0xcb
'Ran ', # 0xcc
'Shan ', # 0xcd
'Yang ', # 0xce
'Man ', # 0xcf
'Jie ', # 0xd0
'Gu ', # 0xd1
'Si ', # 0xd2
'Xing ', # 0xd3
'Wei ', # 0xd4
'Zi ', # 0xd5
'Ju ', # 0xd6
'Shan ', # 0xd7
'Pin ', # 0xd8
'Ren ', # 0xd9
'Yao ', # 0xda
'Tong ', # 0xdb
'Jiang ', # 0xdc
'Shu ', # 0xdd
'Ji ', # 0xde
'Gai ', # 0xdf
'Shang ', # 0xe0
'Kuo ', # 0xe1
'Juan ', # 0xe2
'Jiao ', # 0xe3
'Gou ', # 0xe4
'Mu ', # 0xe5
'Jian ', # 0xe6
'Jian ', # 0xe7
'Yi ', # 0xe8
'Nian ', # 0xe9
'Zhi ', # 0xea
'Ji ', # 0xeb
'Ji ', # 0xec
'Xian ', # 0xed
'Heng ', # 0xee
'Guang ', # 0xef
'Jun ', # 0xf0
'Kua ', # 0xf1
'Yan ', # 0xf2
'Ming ', # 0xf3
'Lie ', # 0xf4
'Pei ', # 0xf5
'Yan ', # 0xf6
'You ', # 0xf7
'Yan ', # 0xf8
'Cha ', # 0xf9
'Shen ', # 0xfa
'Yin ', # 0xfb
'Chi ', # 0xfc
'Gui ', # 0xfd
'Quan ', # 0xfe
'Zi ', # 0xff
)
| data = ('Shou ', 'Yi ', 'Zhi ', 'Gu ', 'Chu ', 'Jiang ', 'Feng ', 'Bei ', 'Cay ', 'Bian ', 'Sui ', 'Qun ', 'Ling ', 'Fu ', 'Zuo ', 'Xia ', 'Xiong ', '[?] ', 'Nao ', 'Xia ', 'Kui ', 'Xi ', 'Wai ', 'Yuan ', 'Mao ', 'Su ', 'Duo ', 'Duo ', 'Ye ', 'Qing ', 'Uys ', 'Gou ', 'Gou ', 'Qi ', 'Meng ', 'Meng ', 'Yin ', 'Huo ', 'Chen ', 'Da ', 'Ze ', 'Tian ', 'Tai ', 'Fu ', 'Guai ', 'Yao ', 'Yang ', 'Hang ', 'Gao ', 'Shi ', 'Ben ', 'Tai ', 'Tou ', 'Yan ', 'Bi ', 'Yi ', 'Kua ', 'Jia ', 'Duo ', 'Kwu ', 'Kuang ', 'Yun ', 'Jia ', 'Pa ', 'En ', 'Lian ', 'Huan ', 'Di ', 'Yan ', 'Pao ', 'Quan ', 'Qi ', 'Nai ', 'Feng ', 'Xie ', 'Fen ', 'Dian ', '[?] ', 'Kui ', 'Zou ', 'Huan ', 'Qi ', 'Kai ', 'Zha ', 'Ben ', 'Yi ', 'Jiang ', 'Tao ', 'Zang ', 'Ben ', 'Xi ', 'Xiang ', 'Fei ', 'Diao ', 'Xun ', 'Keng ', 'Dian ', 'Ao ', 'She ', 'Weng ', 'Pan ', 'Ao ', 'Wu ', 'Ao ', 'Jiang ', 'Lian ', 'Duo ', 'Yun ', 'Jiang ', 'Shi ', 'Fen ', 'Huo ', 'Bi ', 'Lian ', 'Duo ', 'Nu ', 'Nu ', 'Ding ', 'Nai ', 'Qian ', 'Jian ', 'Ta ', 'Jiu ', 'Nan ', 'Cha ', 'Hao ', 'Xian ', 'Fan ', 'Ji ', 'Shuo ', 'Ru ', 'Fei ', 'Wang ', 'Hong ', 'Zhuang ', 'Fu ', 'Ma ', 'Dan ', 'Ren ', 'Fu ', 'Jing ', 'Yan ', 'Xie ', 'Wen ', 'Zhong ', 'Pa ', 'Du ', 'Ji ', 'Keng ', 'Zhong ', 'Yao ', 'Jin ', 'Yun ', 'Miao ', 'Pei ', 'Shi ', 'Yue ', 'Zhuang ', 'Niu ', 'Yan ', 'Na ', 'Xin ', 'Fen ', 'Bi ', 'Yu ', 'Tuo ', 'Feng ', 'Yuan ', 'Fang ', 'Wu ', 'Yu ', 'Gui ', 'Du ', 'Ba ', 'Ni ', 'Zhou ', 'Zhuo ', 'Zhao ', 'Da ', 'Nai ', 'Yuan ', 'Tou ', 'Xuan ', 'Zhi ', 'E ', 'Mei ', 'Mo ', 'Qi ', 'Bi ', 'Shen ', 'Qie ', 'E ', 'He ', 'Xu ', 'Fa ', 'Zheng ', 'Min ', 'Ban ', 'Mu ', 'Fu ', 'Ling ', 'Zi ', 'Zi ', 'Shi ', 'Ran ', 'Shan ', 'Yang ', 'Man ', 'Jie ', 'Gu ', 'Si ', 'Xing ', 'Wei ', 'Zi ', 'Ju ', 'Shan ', 'Pin ', 'Ren ', 'Yao ', 'Tong ', 'Jiang ', 'Shu ', 'Ji ', 'Gai ', 'Shang ', 'Kuo ', 'Juan ', 'Jiao ', 'Gou ', 'Mu ', 'Jian ', 'Jian ', 'Yi ', 'Nian ', 'Zhi ', 'Ji ', 'Ji ', 'Xian ', 'Heng ', 'Guang ', 'Jun ', 'Kua ', 'Yan ', 'Ming ', 'Lie ', 'Pei ', 'Yan ', 'You ', 'Yan ', 'Cha ', 'Shen ', 'Yin ', 'Chi ', 'Gui ', 'Quan ', 'Zi ') |
def Even_Length(Test_string):
return "\n".join([words for words in Test_string.split() if len(words) % 2 == 0])
Test_string = input("Enter a String: ")
print(f"Output: {Even_Length(Test_string)}") | def even__length(Test_string):
return '\n'.join([words for words in Test_string.split() if len(words) % 2 == 0])
test_string = input('Enter a String: ')
print(f'Output: {even__length(Test_string)}') |
batch_size = 32
stages = 4
epochs = 32
learning_rate = 0.00005
| batch_size = 32
stages = 4
epochs = 32
learning_rate = 5e-05 |
class InvalidSignError(Exception):
pass
class PositionTakenError(Exception):
pass
class ColumnIsFullError(Exception):
pass | class Invalidsignerror(Exception):
pass
class Positiontakenerror(Exception):
pass
class Columnisfullerror(Exception):
pass |
def adjust_travellers_number(travellers_input_val, num, subtract_btn, add_btn):
while travellers_input_val > num:
subtract_btn.click()
travellers_input_val -= 1
while travellers_input_val < num:
add_btn.click()
travellers_input_val += 1
def set_travellers_number(driver, num, form_loc, params: list):
travellers_number_input = driver.find_element(*getattr(form_loc, params[0]))
travellers_input_val = int(travellers_number_input.get_attribute("value"))
add_btn = driver.find_element(*getattr(form_loc, params[1]))
subtract_btn = driver.find_element(*getattr(form_loc, params[2]))
adjust_travellers_number(travellers_input_val, num, subtract_btn, add_btn)
def get_datestamp(driver, form_loc, params: list):
datestamps = driver.find_elements(*getattr(form_loc, params[0]))
for datestamp in datestamps:
if datestamp.is_displayed():
current_datestamp = datestamp.text
return current_datestamp
def click_displayed_datestamp(datestamps):
for datestamp in datestamps:
if datestamp.is_displayed():
datestamp.click()
break
| def adjust_travellers_number(travellers_input_val, num, subtract_btn, add_btn):
while travellers_input_val > num:
subtract_btn.click()
travellers_input_val -= 1
while travellers_input_val < num:
add_btn.click()
travellers_input_val += 1
def set_travellers_number(driver, num, form_loc, params: list):
travellers_number_input = driver.find_element(*getattr(form_loc, params[0]))
travellers_input_val = int(travellers_number_input.get_attribute('value'))
add_btn = driver.find_element(*getattr(form_loc, params[1]))
subtract_btn = driver.find_element(*getattr(form_loc, params[2]))
adjust_travellers_number(travellers_input_val, num, subtract_btn, add_btn)
def get_datestamp(driver, form_loc, params: list):
datestamps = driver.find_elements(*getattr(form_loc, params[0]))
for datestamp in datestamps:
if datestamp.is_displayed():
current_datestamp = datestamp.text
return current_datestamp
def click_displayed_datestamp(datestamps):
for datestamp in datestamps:
if datestamp.is_displayed():
datestamp.click()
break |
data_format = {
"Inputs": {
"input2":
{
"ColumnNames": ["temperature", "humidity"],
"Values": [ [ "value", "value" ], ]
}, },
"GlobalParameters": {
}
}
sensor_value = { "ColumnNames": ["currentTime", "indoorTemp", "indoorHumid", "indoorIllum", "outdoorIllum" ],
"Values": [ [ "value", "value" , "value", "value", "value"], ] }
user_input = { "ColumnNames": ["sleepStatus", "joyStatus" ],
"Values": [ [ "value", "value"], ] }
activators_state = { "ColumnNames": ["ledStatus", "coffeeStatus", "curtainStatus"],
"Values": [ [ "value", "value" , "value"], ] }
activators_lock_timer = { "ColumnNames": ["ledStatus", "coffeeStatus", "curtainStatus"],
"Values": [ [ 0, 0 , 0], ] }
lock_time = 100
web_url = 'https://ussouthcentral.services.azureml.net/workspaces/0a46720be6f3493bb4c2c05f05e3e5c4/services/27176938495a45368fbb33bb7f26e1e3/execute?api-version=2.0&details=true'
api_key = 'yuhAKrw329F26sq9vXkc6JPt2kpvW0jNZYocNdHL32z3a8yM1DlCyUcbT06FkllVND2PtghZWOucvu/1r5kgYw=='
| data_format = {'Inputs': {'input2': {'ColumnNames': ['temperature', 'humidity'], 'Values': [['value', 'value']]}}, 'GlobalParameters': {}}
sensor_value = {'ColumnNames': ['currentTime', 'indoorTemp', 'indoorHumid', 'indoorIllum', 'outdoorIllum'], 'Values': [['value', 'value', 'value', 'value', 'value']]}
user_input = {'ColumnNames': ['sleepStatus', 'joyStatus'], 'Values': [['value', 'value']]}
activators_state = {'ColumnNames': ['ledStatus', 'coffeeStatus', 'curtainStatus'], 'Values': [['value', 'value', 'value']]}
activators_lock_timer = {'ColumnNames': ['ledStatus', 'coffeeStatus', 'curtainStatus'], 'Values': [[0, 0, 0]]}
lock_time = 100
web_url = 'https://ussouthcentral.services.azureml.net/workspaces/0a46720be6f3493bb4c2c05f05e3e5c4/services/27176938495a45368fbb33bb7f26e1e3/execute?api-version=2.0&details=true'
api_key = 'yuhAKrw329F26sq9vXkc6JPt2kpvW0jNZYocNdHL32z3a8yM1DlCyUcbT06FkllVND2PtghZWOucvu/1r5kgYw==' |
class VegaScatterPlot(object):
def __init__(self, width: int, height: int):
self._width = width
self._height = height
def build(self):
# TODO error log here
print("illegal")
assert 0
| class Vegascatterplot(object):
def __init__(self, width: int, height: int):
self._width = width
self._height = height
def build(self):
print('illegal')
assert 0 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Astounding Horror 1930s
chart = ["only", "absent-mindedly", "absolutely", "afterward", "ahead", "alike", "alongside", "always", "around", "asleep", "audibly", "away", "backward", "barely", "blankly", "blind", "blindly", "bravely", "brilliantly", "brokenly", "calmly", "close", "composedly", "contemptuously", "curiously", "decidedly", "definitely", "dimly", "distantly", "dizzily", "dully", "elsewhere", "especially", "exactly", "excitedly", "exclusively", "faintly", "fiercely", "finally", "finely", "forward", "foully", "frequently", "genuinely", "gloatingly", "graciously", "gradually", "grimly", "grisly", "half-way", "inexplicably", "instantaneously", "intelligently", "intently", "invariably", "justly", "largely", "less", "louder", "madly", "menacingly", "morosely", "neatly", "noisily", "noiselessly", "noncommittally", "oily", "ordinarily", "parallel", "particularly", "physically", "pleadingly", "positively", "powerlessly", "previously", "radiantly", "readily", "reluctantly", "reprovingly", "resolutely", "savagely", "scrupulously", "strictly", "sufficiently", "sullenly", "surreptitiously", "terribly", "thoughtfully", "thrillingly", "tightly", "timidly", "understand", "unduly", "ungenerously", "unusually", "uppermost", "vividly", "wholly", "wonderingly"],
| chart = (['only', 'absent-mindedly', 'absolutely', 'afterward', 'ahead', 'alike', 'alongside', 'always', 'around', 'asleep', 'audibly', 'away', 'backward', 'barely', 'blankly', 'blind', 'blindly', 'bravely', 'brilliantly', 'brokenly', 'calmly', 'close', 'composedly', 'contemptuously', 'curiously', 'decidedly', 'definitely', 'dimly', 'distantly', 'dizzily', 'dully', 'elsewhere', 'especially', 'exactly', 'excitedly', 'exclusively', 'faintly', 'fiercely', 'finally', 'finely', 'forward', 'foully', 'frequently', 'genuinely', 'gloatingly', 'graciously', 'gradually', 'grimly', 'grisly', 'half-way', 'inexplicably', 'instantaneously', 'intelligently', 'intently', 'invariably', 'justly', 'largely', 'less', 'louder', 'madly', 'menacingly', 'morosely', 'neatly', 'noisily', 'noiselessly', 'noncommittally', 'oily', 'ordinarily', 'parallel', 'particularly', 'physically', 'pleadingly', 'positively', 'powerlessly', 'previously', 'radiantly', 'readily', 'reluctantly', 'reprovingly', 'resolutely', 'savagely', 'scrupulously', 'strictly', 'sufficiently', 'sullenly', 'surreptitiously', 'terribly', 'thoughtfully', 'thrillingly', 'tightly', 'timidly', 'understand', 'unduly', 'ungenerously', 'unusually', 'uppermost', 'vividly', 'wholly', 'wonderingly'],) |
#Program 4
#Write a user defined function to accept two strings and concatenate them
#Name:Vikhyat
#Class:12
#Date of Execution:15.06.2021
def FuncConcat(x,y):
print(x+y)
print("Enter 2 strings to see them concatenated:")
l=(input("Enter String 1:"))
u=(input("Enter String 2:"))
FuncConcat(l,u)
'''Output for Program 4
Enter 2 strings to see them concatenated:
Enter String 1:I love
Enter String 2:Computers
I loveComputers
'''
| def func_concat(x, y):
print(x + y)
print('Enter 2 strings to see them concatenated:')
l = input('Enter String 1:')
u = input('Enter String 2:')
func_concat(l, u)
'Output for Program 4\n\nEnter 2 strings to see them concatenated:\nEnter String 1:I love\nEnter String 2:Computers\nI loveComputers\n\n' |
def nocache(app):
@app.after_request
def add_header(resp):
resp.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
resp.headers['Pragma'] = 'no-cache'
resp.headers['Expires'] = '0'
resp.headers['Cache-Control'] = 'public, max-age=0'
return resp
| def nocache(app):
@app.after_request
def add_header(resp):
resp.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
resp.headers['Pragma'] = 'no-cache'
resp.headers['Expires'] = '0'
resp.headers['Cache-Control'] = 'public, max-age=0'
return resp |
KEY = 'key'
DESCRIPTION = 'description'
TAGS = 'tags'
XTRA_ATTRS = 'xtra_attrs'
SEARCH_TERMS = 'search_terms'
def list_search_terms(key):
'''Given a stat key, returns a list of search terms.'''
terms = []
if KEY in key:
terms += key[KEY].lower().split('.')
terms.append(key[KEY].lower())
if DESCRIPTION in key:
terms += key[DESCRIPTION].lower().split(' ')
if TAGS in key:
terms += [tag.lower() for tag in key[TAGS]]
if XTRA_ATTRS in key:
for attr in key[XTRA_ATTRS].values():
terms += attr.lower().split(' ')
# dedupe the terms
terms = [x for x in set(terms)]
return terms
def add_to_dict(key_dict):
'''Add search terms attr to keys in dict.'''
for key in key_dict.values():
search_terms = list_search_terms(key)
key[SEARCH_TERMS] = search_terms
| key = 'key'
description = 'description'
tags = 'tags'
xtra_attrs = 'xtra_attrs'
search_terms = 'search_terms'
def list_search_terms(key):
"""Given a stat key, returns a list of search terms."""
terms = []
if KEY in key:
terms += key[KEY].lower().split('.')
terms.append(key[KEY].lower())
if DESCRIPTION in key:
terms += key[DESCRIPTION].lower().split(' ')
if TAGS in key:
terms += [tag.lower() for tag in key[TAGS]]
if XTRA_ATTRS in key:
for attr in key[XTRA_ATTRS].values():
terms += attr.lower().split(' ')
terms = [x for x in set(terms)]
return terms
def add_to_dict(key_dict):
"""Add search terms attr to keys in dict."""
for key in key_dict.values():
search_terms = list_search_terms(key)
key[SEARCH_TERMS] = search_terms |
#
# PySNMP MIB module ADTRAN-AOS-DNS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADTRAN-AOS-DNS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:13:59 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)
#
adGenAOSConformance, adGenAOSApplications = mibBuilder.importSymbols("ADTRAN-AOS", "adGenAOSConformance", "adGenAOSApplications")
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint")
InetAddress, InetAddressType = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddress", "InetAddressType")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
sysName, = mibBuilder.importSymbols("SNMPv2-MIB", "sysName")
Bits, Counter32, ObjectIdentity, IpAddress, MibIdentifier, Gauge32, Counter64, iso, Unsigned32, NotificationType, Integer32, ModuleIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Counter32", "ObjectIdentity", "IpAddress", "MibIdentifier", "Gauge32", "Counter64", "iso", "Unsigned32", "NotificationType", "Integer32", "ModuleIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
adGenAOSDns = ModuleIdentity((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1))
adGenAOSDns.setRevisions(('2012-04-30 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: adGenAOSDns.setRevisionsDescriptions(('Created the adGenAosDns MIB. Changes by Stefan Hammer.',))
if mibBuilder.loadTexts: adGenAOSDns.setLastUpdated('201204300000Z')
if mibBuilder.loadTexts: adGenAOSDns.setOrganization('ADTRAN, Inc.')
if mibBuilder.loadTexts: adGenAOSDns.setContactInfo(' Technical Support Dept. Postal: ADTRAN, Inc. 901 Explorer Blvd. Huntsville, AL 35806 Tel: +1 800 923 8726 Fax: +1 256 963 6217 E-mail: support@adtran.com')
if mibBuilder.loadTexts: adGenAOSDns.setDescription('The MIB module for AdtranOS Dns statistics.')
adDnsTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 0))
adDnsTimestamp = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 1), Unsigned32()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: adDnsTimestamp.setStatus('current')
if mibBuilder.loadTexts: adDnsTimestamp.setDescription('The time (seconds since epoch) that DNS event occured')
adDnsNameserverInetAddressType = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 2), InetAddressType()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: adDnsNameserverInetAddressType.setStatus('current')
if mibBuilder.loadTexts: adDnsNameserverInetAddressType.setDescription('The address type of adDnsNameserverInetAddress')
adDnsNameserverInetAddress = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 3), InetAddress()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: adDnsNameserverInetAddress.setStatus('current')
if mibBuilder.loadTexts: adDnsNameserverInetAddress.setDescription('The IP address of the nameserver for the DNS Resolution')
class AdDnsRequestErrorConditionTC(TextualConvention, Integer32):
description = "Indicates which specific error condition occurred. Error codes 0-15 are the RCODE error codes, while 16-n are Adtran proprietary DNS Request error conditions. The noError(0) state indicates that there is no error condition. The formatError(1) state indicates that name server was unable to interpret the query. The serverFailure(2) state indicates that name server was unable to process this query due to a problem with the name server. The nameError(3) state indicates that the domain name referenced in the query does not exist. Meaningful only for responses from an authoritative name server. The notImplemented(4) state indicates that the name server does not support the requested kind of query. The refused(5) state indicates the name server refuses to perform the specified operation for policy reasons. For example, a name server may not wish to provide the information to the particular requester, or a name server may not wish to perform a particular operation (e.g., zone transfer) for particular data. The 6-15 states are reserved for future use. The unsuportedRCode(16) state indicates that the AOS unit does not support the RCODE (error condition) returned by the DNS sever. The malformedResponse(17) state indicates that AOS unit received an improperly formated data packet from the DNS server. The parseError(18) state indicates that AOS unit could not parse the data from the DNS server correctly. The timeoutWaitingForResponse(19) state indicates that AOS unit did not receive a response from DNS server in the predetermined waiting period. The emptyResponse(20) state indicates that the AOS unit received an empty response from the DNS server. Many DNS servers send responses without any answers as a form of failure. The unsupportedType(21) state indicates that the AOS unit does not support the qtype indicated in the DNS server's answer. The onlyRootAnswer(22) state indicates that the DNS server responded only with a '.' answer, the root domain. Per RFC2782 page 6, this is a failure. The portDeficiency(23) state indicates that the AOS unit failed to allocate an open port to send the DNS question to the DNS sever. The noServerConfigured(24) state indicates that the AOS unit does not have a DNS lookup server configured. The updSendError(25) state indicates that the AOS unit could not send the DNS question packet (maybe a routing issue with the configured name-server)."
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25))
namedValues = NamedValues(("noError", 0), ("formatError", 1), ("serverFailure", 2), ("nameError", 3), ("notImplemented", 4), ("refused", 5), ("unsuportedRCode", 16), ("malformedResponse", 17), ("parseError", 18), ("timeoutWaitingForResponse", 19), ("emptyResponse", 20), ("unsupportedType", 21), ("onlyRootAnswer", 22), ("portDeficiency", 23), ("noServerCOnfigured", 24), ("udpSendError", 25))
adDnsRequestErrorCondition = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 4), AdDnsRequestErrorConditionTC()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: adDnsRequestErrorCondition.setStatus('current')
if mibBuilder.loadTexts: adDnsRequestErrorCondition.setDescription('This field indicates which specific error condition occurred')
adDnsDomainName = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 5), DisplayString()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: adDnsDomainName.setStatus('current')
if mibBuilder.loadTexts: adDnsDomainName.setDescription('The FQDN sent in the QNAME field of the question section of the DNS request')
class AdDnsResourceRecordTypeTC(TextualConvention, Integer32):
description = " A = 1, // a host address RFC1035 NS = 2, // an authoritative name server RFC1035 MD = 3, // a mail destination (Obsolete - use MX) RFC1035 MF = 4, // a mail forwarder (Obsolete - use MX) RFC1035 CNAME = 5, // the canonical name for an alias RFC1035 SOA = 6, // marks the start of a zone of authority RFC1035 MB = 7, // a mailbox domain name (EXPERIMENTAL) RFC1035 MG = 8, // a mail group member (EXPERIMENTAL) RFC1035 MR = 9, // a mail rename domain name (EXPERIMENTAL) RFC1035 NULL = 10, // a null RR (EXPERIMENTAL) RFC1035 WKS = 11, // a well known service description RFC1035 PTR = 12, // a domain name pointer RFC1035 HINFO = 13, // host information RFC1035 MINFO = 14, // mailbox or mail list information RFC1035 MX = 15, // mail exchange RFC1035 TXT = 16, // text strings RFC1035 AAAA = 28, // Ipv6 quad A addresses RFC3596 SRV = 33, // service record RFC2782 A_PLUS_AAAA = 65537 // Beyond 16 bit range. Not a record. An A query's and AAAA query's results bound together"
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 28, 33, 65537))
namedValues = NamedValues(("a", 1), ("ns", 2), ("md", 3), ("mf", 4), ("cname", 5), ("soa", 6), ("mb", 7), ("mg", 8), ("mr", 9), ("null", 10), ("wks", 11), ("ptr", 12), ("hinfo", 13), ("minfo", 14), ("mx", 15), ("txt", 16), ("aaaa", 28), ("srv", 33), ("aplusaaaa", 65537))
adDnsResourceRecordType = MibScalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 6), AdDnsResourceRecordTypeTC()).setMaxAccess("accessiblefornotify")
if mibBuilder.loadTexts: adDnsResourceRecordType.setStatus('current')
if mibBuilder.loadTexts: adDnsResourceRecordType.setDescription('This field indicates which record type the request was querying.')
adDnsIndividualResolutionFailure = NotificationType((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 0, 1)).setObjects(("SNMPv2-MIB", "sysName"), ("ADTRAN-AOS-DNS-MIB", "adDnsTimestamp"), ("ADTRAN-AOS-DNS-MIB", "adDnsNameserverInetAddressType"), ("ADTRAN-AOS-DNS-MIB", "adDnsNameserverInetAddress"), ("ADTRAN-AOS-DNS-MIB", "adDnsRequestErrorCondition"), ("ADTRAN-AOS-DNS-MIB", "adDnsDomainName"), ("ADTRAN-AOS-DNS-MIB", "adDnsResourceRecordType"))
if mibBuilder.loadTexts: adDnsIndividualResolutionFailure.setStatus('current')
if mibBuilder.loadTexts: adDnsIndividualResolutionFailure.setDescription('This trap indicates that a DNS resolution failure has occured for a single, particular lookup. Information about the lookup and the failure are contained within this trap.')
adGenAOSDnsConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13))
adGenAOSDnsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 1))
adGenAOSDnsCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 2))
adGenAOSDnsFullCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 2, 1)).setObjects(("ADTRAN-AOS-DNS-MIB", "adGenAOSDnsInfoGroup"), ("ADTRAN-AOS-DNS-MIB", "adGenAOSDnsNotificationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adGenAOSDnsFullCompliance = adGenAOSDnsFullCompliance.setStatus('current')
if mibBuilder.loadTexts: adGenAOSDnsFullCompliance.setDescription('The compliance statement for SNMP entities which implement version 2 of the adGenAOSDns MIB.')
adGenAOSDnsInfoGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 1, 1)).setObjects(("ADTRAN-AOS-DNS-MIB", "adDnsTimestamp"), ("ADTRAN-AOS-DNS-MIB", "adDnsNameserverInetAddressType"), ("ADTRAN-AOS-DNS-MIB", "adDnsNameserverInetAddress"), ("ADTRAN-AOS-DNS-MIB", "adDnsRequestErrorCondition"), ("ADTRAN-AOS-DNS-MIB", "adDnsDomainName"), ("ADTRAN-AOS-DNS-MIB", "adDnsResourceRecordType"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adGenAOSDnsInfoGroup = adGenAOSDnsInfoGroup.setStatus('current')
if mibBuilder.loadTexts: adGenAOSDnsInfoGroup.setDescription('Objects designed to assist in providing information about DNS Client.')
adGenAOSDnsNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 1, 2)).setObjects(("ADTRAN-AOS-DNS-MIB", "adDnsIndividualResolutionFailure"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
adGenAOSDnsNotificationGroup = adGenAOSDnsNotificationGroup.setStatus('current')
if mibBuilder.loadTexts: adGenAOSDnsNotificationGroup.setDescription('Objects designed to assist in sending DNS notifications.')
mibBuilder.exportSymbols("ADTRAN-AOS-DNS-MIB", adDnsTraps=adDnsTraps, adDnsTimestamp=adDnsTimestamp, adGenAOSDns=adGenAOSDns, adGenAOSDnsNotificationGroup=adGenAOSDnsNotificationGroup, adDnsRequestErrorCondition=adDnsRequestErrorCondition, adGenAOSDnsConformance=adGenAOSDnsConformance, AdDnsResourceRecordTypeTC=AdDnsResourceRecordTypeTC, adDnsDomainName=adDnsDomainName, adDnsResourceRecordType=adDnsResourceRecordType, adDnsNameserverInetAddressType=adDnsNameserverInetAddressType, adDnsIndividualResolutionFailure=adDnsIndividualResolutionFailure, adGenAOSDnsInfoGroup=adGenAOSDnsInfoGroup, adGenAOSDnsCompliances=adGenAOSDnsCompliances, adDnsNameserverInetAddress=adDnsNameserverInetAddress, AdDnsRequestErrorConditionTC=AdDnsRequestErrorConditionTC, adGenAOSDnsGroup=adGenAOSDnsGroup, adGenAOSDnsFullCompliance=adGenAOSDnsFullCompliance, PYSNMP_MODULE_ID=adGenAOSDns)
| (ad_gen_aos_conformance, ad_gen_aos_applications) = mibBuilder.importSymbols('ADTRAN-AOS', 'adGenAOSConformance', 'adGenAOSApplications')
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_intersection, value_size_constraint, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'SingleValueConstraint')
(inet_address, inet_address_type) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddress', 'InetAddressType')
(notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance')
(sys_name,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysName')
(bits, counter32, object_identity, ip_address, mib_identifier, gauge32, counter64, iso, unsigned32, notification_type, integer32, module_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'Counter32', 'ObjectIdentity', 'IpAddress', 'MibIdentifier', 'Gauge32', 'Counter64', 'iso', 'Unsigned32', 'NotificationType', 'Integer32', 'ModuleIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
ad_gen_aos_dns = module_identity((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1))
adGenAOSDns.setRevisions(('2012-04-30 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
adGenAOSDns.setRevisionsDescriptions(('Created the adGenAosDns MIB. Changes by Stefan Hammer.',))
if mibBuilder.loadTexts:
adGenAOSDns.setLastUpdated('201204300000Z')
if mibBuilder.loadTexts:
adGenAOSDns.setOrganization('ADTRAN, Inc.')
if mibBuilder.loadTexts:
adGenAOSDns.setContactInfo(' Technical Support Dept. Postal: ADTRAN, Inc. 901 Explorer Blvd. Huntsville, AL 35806 Tel: +1 800 923 8726 Fax: +1 256 963 6217 E-mail: support@adtran.com')
if mibBuilder.loadTexts:
adGenAOSDns.setDescription('The MIB module for AdtranOS Dns statistics.')
ad_dns_traps = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 0))
ad_dns_timestamp = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 1), unsigned32()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
adDnsTimestamp.setStatus('current')
if mibBuilder.loadTexts:
adDnsTimestamp.setDescription('The time (seconds since epoch) that DNS event occured')
ad_dns_nameserver_inet_address_type = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 2), inet_address_type()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
adDnsNameserverInetAddressType.setStatus('current')
if mibBuilder.loadTexts:
adDnsNameserverInetAddressType.setDescription('The address type of adDnsNameserverInetAddress')
ad_dns_nameserver_inet_address = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 3), inet_address()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
adDnsNameserverInetAddress.setStatus('current')
if mibBuilder.loadTexts:
adDnsNameserverInetAddress.setDescription('The IP address of the nameserver for the DNS Resolution')
class Addnsrequesterrorconditiontc(TextualConvention, Integer32):
description = "Indicates which specific error condition occurred. Error codes 0-15 are the RCODE error codes, while 16-n are Adtran proprietary DNS Request error conditions. The noError(0) state indicates that there is no error condition. The formatError(1) state indicates that name server was unable to interpret the query. The serverFailure(2) state indicates that name server was unable to process this query due to a problem with the name server. The nameError(3) state indicates that the domain name referenced in the query does not exist. Meaningful only for responses from an authoritative name server. The notImplemented(4) state indicates that the name server does not support the requested kind of query. The refused(5) state indicates the name server refuses to perform the specified operation for policy reasons. For example, a name server may not wish to provide the information to the particular requester, or a name server may not wish to perform a particular operation (e.g., zone transfer) for particular data. The 6-15 states are reserved for future use. The unsuportedRCode(16) state indicates that the AOS unit does not support the RCODE (error condition) returned by the DNS sever. The malformedResponse(17) state indicates that AOS unit received an improperly formated data packet from the DNS server. The parseError(18) state indicates that AOS unit could not parse the data from the DNS server correctly. The timeoutWaitingForResponse(19) state indicates that AOS unit did not receive a response from DNS server in the predetermined waiting period. The emptyResponse(20) state indicates that the AOS unit received an empty response from the DNS server. Many DNS servers send responses without any answers as a form of failure. The unsupportedType(21) state indicates that the AOS unit does not support the qtype indicated in the DNS server's answer. The onlyRootAnswer(22) state indicates that the DNS server responded only with a '.' answer, the root domain. Per RFC2782 page 6, this is a failure. The portDeficiency(23) state indicates that the AOS unit failed to allocate an open port to send the DNS question to the DNS sever. The noServerConfigured(24) state indicates that the AOS unit does not have a DNS lookup server configured. The updSendError(25) state indicates that the AOS unit could not send the DNS question packet (maybe a routing issue with the configured name-server)."
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25))
named_values = named_values(('noError', 0), ('formatError', 1), ('serverFailure', 2), ('nameError', 3), ('notImplemented', 4), ('refused', 5), ('unsuportedRCode', 16), ('malformedResponse', 17), ('parseError', 18), ('timeoutWaitingForResponse', 19), ('emptyResponse', 20), ('unsupportedType', 21), ('onlyRootAnswer', 22), ('portDeficiency', 23), ('noServerCOnfigured', 24), ('udpSendError', 25))
ad_dns_request_error_condition = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 4), ad_dns_request_error_condition_tc()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
adDnsRequestErrorCondition.setStatus('current')
if mibBuilder.loadTexts:
adDnsRequestErrorCondition.setDescription('This field indicates which specific error condition occurred')
ad_dns_domain_name = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 5), display_string()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
adDnsDomainName.setStatus('current')
if mibBuilder.loadTexts:
adDnsDomainName.setDescription('The FQDN sent in the QNAME field of the question section of the DNS request')
class Addnsresourcerecordtypetc(TextualConvention, Integer32):
description = " A = 1, // a host address RFC1035 NS = 2, // an authoritative name server RFC1035 MD = 3, // a mail destination (Obsolete - use MX) RFC1035 MF = 4, // a mail forwarder (Obsolete - use MX) RFC1035 CNAME = 5, // the canonical name for an alias RFC1035 SOA = 6, // marks the start of a zone of authority RFC1035 MB = 7, // a mailbox domain name (EXPERIMENTAL) RFC1035 MG = 8, // a mail group member (EXPERIMENTAL) RFC1035 MR = 9, // a mail rename domain name (EXPERIMENTAL) RFC1035 NULL = 10, // a null RR (EXPERIMENTAL) RFC1035 WKS = 11, // a well known service description RFC1035 PTR = 12, // a domain name pointer RFC1035 HINFO = 13, // host information RFC1035 MINFO = 14, // mailbox or mail list information RFC1035 MX = 15, // mail exchange RFC1035 TXT = 16, // text strings RFC1035 AAAA = 28, // Ipv6 quad A addresses RFC3596 SRV = 33, // service record RFC2782 A_PLUS_AAAA = 65537 // Beyond 16 bit range. Not a record. An A query's and AAAA query's results bound together"
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 28, 33, 65537))
named_values = named_values(('a', 1), ('ns', 2), ('md', 3), ('mf', 4), ('cname', 5), ('soa', 6), ('mb', 7), ('mg', 8), ('mr', 9), ('null', 10), ('wks', 11), ('ptr', 12), ('hinfo', 13), ('minfo', 14), ('mx', 15), ('txt', 16), ('aaaa', 28), ('srv', 33), ('aplusaaaa', 65537))
ad_dns_resource_record_type = mib_scalar((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 6), ad_dns_resource_record_type_tc()).setMaxAccess('accessiblefornotify')
if mibBuilder.loadTexts:
adDnsResourceRecordType.setStatus('current')
if mibBuilder.loadTexts:
adDnsResourceRecordType.setDescription('This field indicates which record type the request was querying.')
ad_dns_individual_resolution_failure = notification_type((1, 3, 6, 1, 4, 1, 664, 5, 53, 8, 1, 0, 1)).setObjects(('SNMPv2-MIB', 'sysName'), ('ADTRAN-AOS-DNS-MIB', 'adDnsTimestamp'), ('ADTRAN-AOS-DNS-MIB', 'adDnsNameserverInetAddressType'), ('ADTRAN-AOS-DNS-MIB', 'adDnsNameserverInetAddress'), ('ADTRAN-AOS-DNS-MIB', 'adDnsRequestErrorCondition'), ('ADTRAN-AOS-DNS-MIB', 'adDnsDomainName'), ('ADTRAN-AOS-DNS-MIB', 'adDnsResourceRecordType'))
if mibBuilder.loadTexts:
adDnsIndividualResolutionFailure.setStatus('current')
if mibBuilder.loadTexts:
adDnsIndividualResolutionFailure.setDescription('This trap indicates that a DNS resolution failure has occured for a single, particular lookup. Information about the lookup and the failure are contained within this trap.')
ad_gen_aos_dns_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13))
ad_gen_aos_dns_group = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 1))
ad_gen_aos_dns_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 2))
ad_gen_aos_dns_full_compliance = module_compliance((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 2, 1)).setObjects(('ADTRAN-AOS-DNS-MIB', 'adGenAOSDnsInfoGroup'), ('ADTRAN-AOS-DNS-MIB', 'adGenAOSDnsNotificationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_gen_aos_dns_full_compliance = adGenAOSDnsFullCompliance.setStatus('current')
if mibBuilder.loadTexts:
adGenAOSDnsFullCompliance.setDescription('The compliance statement for SNMP entities which implement version 2 of the adGenAOSDns MIB.')
ad_gen_aos_dns_info_group = object_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 1, 1)).setObjects(('ADTRAN-AOS-DNS-MIB', 'adDnsTimestamp'), ('ADTRAN-AOS-DNS-MIB', 'adDnsNameserverInetAddressType'), ('ADTRAN-AOS-DNS-MIB', 'adDnsNameserverInetAddress'), ('ADTRAN-AOS-DNS-MIB', 'adDnsRequestErrorCondition'), ('ADTRAN-AOS-DNS-MIB', 'adDnsDomainName'), ('ADTRAN-AOS-DNS-MIB', 'adDnsResourceRecordType'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_gen_aos_dns_info_group = adGenAOSDnsInfoGroup.setStatus('current')
if mibBuilder.loadTexts:
adGenAOSDnsInfoGroup.setDescription('Objects designed to assist in providing information about DNS Client.')
ad_gen_aos_dns_notification_group = notification_group((1, 3, 6, 1, 4, 1, 664, 5, 53, 99, 13, 1, 2)).setObjects(('ADTRAN-AOS-DNS-MIB', 'adDnsIndividualResolutionFailure'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ad_gen_aos_dns_notification_group = adGenAOSDnsNotificationGroup.setStatus('current')
if mibBuilder.loadTexts:
adGenAOSDnsNotificationGroup.setDescription('Objects designed to assist in sending DNS notifications.')
mibBuilder.exportSymbols('ADTRAN-AOS-DNS-MIB', adDnsTraps=adDnsTraps, adDnsTimestamp=adDnsTimestamp, adGenAOSDns=adGenAOSDns, adGenAOSDnsNotificationGroup=adGenAOSDnsNotificationGroup, adDnsRequestErrorCondition=adDnsRequestErrorCondition, adGenAOSDnsConformance=adGenAOSDnsConformance, AdDnsResourceRecordTypeTC=AdDnsResourceRecordTypeTC, adDnsDomainName=adDnsDomainName, adDnsResourceRecordType=adDnsResourceRecordType, adDnsNameserverInetAddressType=adDnsNameserverInetAddressType, adDnsIndividualResolutionFailure=adDnsIndividualResolutionFailure, adGenAOSDnsInfoGroup=adGenAOSDnsInfoGroup, adGenAOSDnsCompliances=adGenAOSDnsCompliances, adDnsNameserverInetAddress=adDnsNameserverInetAddress, AdDnsRequestErrorConditionTC=AdDnsRequestErrorConditionTC, adGenAOSDnsGroup=adGenAOSDnsGroup, adGenAOSDnsFullCompliance=adGenAOSDnsFullCompliance, PYSNMP_MODULE_ID=adGenAOSDns) |
def spec(packet, config, transmitted_packet):
if packet.device == config['wan device']:
assert transmitted_packet.device == config['lan device']
else:
assert transmitted_packet.device == config['wan device']
# assert transmitted_packet.data[:96] == packet.data[:96] # ignore MACs for now
| def spec(packet, config, transmitted_packet):
if packet.device == config['wan device']:
assert transmitted_packet.device == config['lan device']
else:
assert transmitted_packet.device == config['wan device'] |
class HashTable:
def __init__(self, sz, stp):
self.size = sz
self.step = stp
self.slots = [None] * self.size
def hash_fun(self, value):
result = 0
for pos in range(len(value)):
sym = value[pos]
result += ord(sym) * pos
return result % self.size
def seek_slot(self, value):
slot = self.hash_fun(value)
iteration = 0
while iteration < self.size:
iteration += 1
if self.slots[slot] is None:
return slot
else:
slot = (slot + self.step) % self.size
return None
def put(self, value):
slot = self.seek_slot(value)
if slot is not None:
self.slots[slot] = value
return slot
else:
return None
def find(self, value):
slot = self.hash_fun(value)
iteration = 0
while iteration < self.size:
iteration += 1
if self.slots[slot] == value:
return slot
else:
slot = (slot + self.step) % self.size
return None
| class Hashtable:
def __init__(self, sz, stp):
self.size = sz
self.step = stp
self.slots = [None] * self.size
def hash_fun(self, value):
result = 0
for pos in range(len(value)):
sym = value[pos]
result += ord(sym) * pos
return result % self.size
def seek_slot(self, value):
slot = self.hash_fun(value)
iteration = 0
while iteration < self.size:
iteration += 1
if self.slots[slot] is None:
return slot
else:
slot = (slot + self.step) % self.size
return None
def put(self, value):
slot = self.seek_slot(value)
if slot is not None:
self.slots[slot] = value
return slot
else:
return None
def find(self, value):
slot = self.hash_fun(value)
iteration = 0
while iteration < self.size:
iteration += 1
if self.slots[slot] == value:
return slot
else:
slot = (slot + self.step) % self.size
return None |
n=int(input())
for i in range(n):
s,k=input().split()
k=int(k)
s=s.replace('-','1').replace('+','0')
s=int(s,2)
ans=0
x=int('1'*k,2)
while s:
ss=len(bin(s))-2
if ss-k < 0:
ans="IMPOSSIBLE"
break
s^=x<<(ss-k)
ans+=1
print("Case #%d: %s"%(i+1,str(ans))) | n = int(input())
for i in range(n):
(s, k) = input().split()
k = int(k)
s = s.replace('-', '1').replace('+', '0')
s = int(s, 2)
ans = 0
x = int('1' * k, 2)
while s:
ss = len(bin(s)) - 2
if ss - k < 0:
ans = 'IMPOSSIBLE'
break
s ^= x << ss - k
ans += 1
print('Case #%d: %s' % (i + 1, str(ans))) |
# Python - 3.6.0
Test.describe('Basic Tests')
Test.assert_equals(twice_as_old(36, 7), 22)
Test.assert_equals(twice_as_old(55, 30), 5)
Test.assert_equals(twice_as_old(42, 21), 0)
Test.assert_equals(twice_as_old(22, 1), 20)
Test.assert_equals(twice_as_old(29 ,0), 29)
| Test.describe('Basic Tests')
Test.assert_equals(twice_as_old(36, 7), 22)
Test.assert_equals(twice_as_old(55, 30), 5)
Test.assert_equals(twice_as_old(42, 21), 0)
Test.assert_equals(twice_as_old(22, 1), 20)
Test.assert_equals(twice_as_old(29, 0), 29) |
x = [1, 2, 3] # Create the first list
y = [4, 5, 6] # Create the second list
t = (x, y) # Create the tuple from the lists
print(t) # Print the tuple
print(type(t)) # Display the type 'tuple'
print(t[0]) # Display the first list
print(t[0][1]) # Display the second element of the first list
a, b = t # Assign the first list to 'a' and the second list to 'b'
print(a) # Display the first list
print(b) # Display the second list
a[0] = 'sorry' # Assign 'sorry' to the first item in list 'a'
print(a) # Display the list 'a'
print(x) # Display how list 'x' has changed
c = 'Hello!', # Display how a simple comma can accidentally create a tuple
print(type(c)) # Show that 'c' is now a tuple
| x = [1, 2, 3]
y = [4, 5, 6]
t = (x, y)
print(t)
print(type(t))
print(t[0])
print(t[0][1])
(a, b) = t
print(a)
print(b)
a[0] = 'sorry'
print(a)
print(x)
c = ('Hello!',)
print(type(c)) |
#!/usr/bin/env python3
#this progam will write Hello World!
print("Hello World!") | print('Hello World!') |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def isValidBST(self, root: TreeNode) -> bool:
nodes = []
self._isValidBST(root, nodes)
return sorted(nodes) == nodes and len(nodes) == len(set(nodes))
def _isValidBST(self, root, nodes):
if root:
self._isValidBST(root.left, nodes)
nodes.append(root.val)
self._isValidBST(root.right, nodes)
| class Solution:
def is_valid_bst(self, root: TreeNode) -> bool:
nodes = []
self._isValidBST(root, nodes)
return sorted(nodes) == nodes and len(nodes) == len(set(nodes))
def _is_valid_bst(self, root, nodes):
if root:
self._isValidBST(root.left, nodes)
nodes.append(root.val)
self._isValidBST(root.right, nodes) |
# Write a Python program to remove the first item from a specified list.
color = ["Red", "Black", "Green", "White", "Orange"]
print("Original Color: ", color)
del color[0]
print("After removing the first color: ", color)
print()
| color = ['Red', 'Black', 'Green', 'White', 'Orange']
print('Original Color: ', color)
del color[0]
print('After removing the first color: ', color)
print() |
#
# PySNMP MIB module CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:05:14 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)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection")
cldcClientMacAddress, = mibBuilder.importSymbols("CISCO-LWAPP-DOT11-CLIENT-MIB", "cldcClientMacAddress")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
MibIdentifier, TimeTicks, Gauge32, ObjectIdentity, iso, Counter64, ModuleIdentity, Bits, IpAddress, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, NotificationType, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "TimeTicks", "Gauge32", "ObjectIdentity", "iso", "Counter64", "ModuleIdentity", "Bits", "IpAddress", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "NotificationType", "Integer32")
MacAddress, DisplayString, TextualConvention, TruthValue, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "DisplayString", "TextualConvention", "TruthValue", "RowStatus")
ciscoLwappDot11ClientRmMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 767))
ciscoLwappDot11ClientRmMIB.setRevisions(('2010-12-13 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoLwappDot11ClientRmMIB.setRevisionsDescriptions(('Initial version of this MIB module.',))
if mibBuilder.loadTexts: ciscoLwappDot11ClientRmMIB.setLastUpdated('201012130000Z')
if mibBuilder.loadTexts: ciscoLwappDot11ClientRmMIB.setOrganization('Cisco Systems Inc.')
if mibBuilder.loadTexts: ciscoLwappDot11ClientRmMIB.setContactInfo('Cisco Systems, Customer Service Postal: 170 West Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS Email: cs-wnbu-snmp@cisco.com')
if mibBuilder.loadTexts: ciscoLwappDot11ClientRmMIB.setDescription("This MIB is intended to be implemented on all those devices operating as Central controllers, that terminate the Light Weight Access Point Protocol tunnel from Cisco Light-weight LWAPP Access Points. The relationship between CC and the LWAPP APs can be depicted as follows: +......+ +......+ +......+ +......+ + + + + + + + + + CC + + CC + + CC + + CC + + + + + + + + + +......+ +......+ +......+ +......+ .. . . . .. . . . . . . . . . . . . . . . . . . . . . . . +......+ +......+ +......+ +......+ +......+ + + + + + + + + + + + AP + + AP + + AP + + AP + + AP + + + + + + + + + + + +......+ +......+ +......+ +......+ +......+ . . . . . . . . . . . . . . . . . . . . . . . . +......+ +......+ +......+ +......+ +......+ + + + + + + + + + + + MN + + MN + + MN + + MN + + MN + + + + + + + + + + + +......+ +......+ +......+ +......+ +......+ The LWAPP tunnel exists between the controller and the APs. The MNs communicate with the APs through the protocol defined by the 802.11 standard. LWAPP APs, upon bootup, discover and join one of the controllers and the controller pushes the configuration, that includes the WLAN parameters, to the LWAPP APs. The APs then encapsulate all the 802.11 frames from wireless clients inside LWAPP frames and forward the LWAPP frames to the controller. GLOSSARY Access Point ( AP ) An entity that contains an 802.11 medium access control ( MAC ) and physical layer ( PHY ) interface and provides access to the distribution services via the wireless medium for associated clients. LWAPP APs encapsulate all the 802.11 frames in LWAPP frames and sends them to the controller to which it is logically connected. Central Controller ( CC ) The central entity that terminates the LWAPP protocol tunnel from the LWAPP APs. Throughout this MIB, this entity also referred to as 'controller'. Cisco Compatible eXtensions (CCX) Wireless LAN Access Points (APs) manufactured by Cisco Systems have features and capabilities beyond those in related standards (e.g., IEEE 802.11 suite of standards, Wi-Fi recommendations by WECA, 802.1X security suite, etc). A number of features provide higher performance. For example, Cisco AP transmits a specific Information Element, which the clients adapt to for enhanced performance. Similarly, a number of features are implemented by means of proprietary Information Elements, which Cisco clients use in specific ways to carry out tasks above and beyond the standard. Other examples of feature categories are roaming and power saving. Light Weight Access Point Protocol ( LWAPP ) This is a generic protocol that defines the communication between the Access Points and the Central Controller. Mobile Node ( MN ) A roaming 802.11 wireless device in a wireless network associated with an access point. The terms 'Mobile node' and 'client' are used interchangeably. Radio Management (RM) This term refers to managing the 802.11 radio environment to provide the best quality service to to the 802.11 wireless clients. Service Set Identifier ( SSID ) SSID is a unique identifier that APs and clients use to identify with each other. SSID is a simple means of access control and is not for security. The SSID can be any alphanumeric entry up to 32 characters. REFERENCE [1] Wireless LAN Medium Access Control ( MAC ) and Physical Layer ( PHY ) Specifications [2] Draft-obara-capwap-lwapp-00.txt, IETF Light Weight Access Point Protocol")
ciscoLwapDot11ClientRmMIBNotifs = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 0))
ciscoLwappDot11ClientRmMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 1))
ciscoLwappDot11ClientRmMIBConform = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 2))
cldccrRmReq = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1))
cldccrRmResp = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2))
cldccrRmReqStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3))
class CiscoLwappCcxRmReqStatus(TextualConvention, Integer32):
description = 'This attribute is used to initiate/track a request to the ccxv4 client.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3))
namedValues = NamedValues(("inProgress", 1), ("success", 2), ("failure", 3))
cldccrRmReqTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1), )
if mibBuilder.loadTexts: cldccrRmReqTable.setStatus('current')
if mibBuilder.loadTexts: cldccrRmReqTable.setDescription('This table is used to configure the radio measurement request parameters to be sent to the ccxv4 clients.')
cldccrRmReqEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1), ).setIndexNames((0, "CISCO-LWAPP-DOT11-CLIENT-MIB", "cldcClientMacAddress"))
if mibBuilder.loadTexts: cldccrRmReqEntry.setStatus('current')
if mibBuilder.loadTexts: cldccrRmReqEntry.setDescription('Each entry represents a conceptual row in this table. An entry corresponds to a client for which a certain type of report is being fetched.')
cldccrRmReqReportType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 1), Bits().clone(namedValues=NamedValues(("channelLoadReport", 0), ("histogramReport", 1), ("beaconReport", 2), ("frameReport", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cldccrRmReqReportType.setStatus('current')
if mibBuilder.loadTexts: cldccrRmReqReportType.setDescription('This object is set to list of radio measurement requests the reports of which will be sent by the ccxv4 client to the controller.')
cldccrRmInitiateReq = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 2), TruthValue()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cldccrRmInitiateReq.setStatus('current')
if mibBuilder.loadTexts: cldccrRmInitiateReq.setDescription('This object is used to send the rm req message to the client.')
cldccrRmReqNumIterations = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 250))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cldccrRmReqNumIterations.setStatus('current')
if mibBuilder.loadTexts: cldccrRmReqNumIterations.setDescription('This attribute is used to set the number of times the rm request will be sent to the client.')
cldccrRmReqMeasDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(5, 32400))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cldccrRmReqMeasDuration.setStatus('current')
if mibBuilder.loadTexts: cldccrRmReqMeasDuration.setDescription('The time interval between two RM Reqs in seconds.')
cldccrRmReqRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 5), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cldccrRmReqRowStatus.setStatus('current')
if mibBuilder.loadTexts: cldccrRmReqRowStatus.setDescription('This is the status column for this row and is used to create and delete specific instances of rows in this table.')
cldccrRmHistRepTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1), )
if mibBuilder.loadTexts: cldccrRmHistRepTable.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepTable.setDescription('This table contains the noise histogram reports of the clients which were queried for the same.')
cldccrRmHistRepEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-LWAPP-DOT11-CLIENT-MIB", "cldcClientMacAddress"), (0, "CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistIndex"))
if mibBuilder.loadTexts: cldccrRmHistRepEntry.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldccrRmHistIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28)))
if mibBuilder.loadTexts: cldccrRmHistIndex.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistIndex.setDescription('Index which will be the channel number in most cases.')
cldccrRmHistRepChannelNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepChannelNumber.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepChannelNumber.setDescription('Channel number indicates the channel number to which the noise histogram Report applies.')
cldccrRmHistRepTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 3), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepTimeStamp.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepTimeStamp.setDescription('Timestamp of the histogram report.')
cldccrRmHistRepRPIDensity0 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity0.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity0.setDescription('This Field stores the RPI density in power range power << -87 db.')
cldccrRmHistRepRPIDensity1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 5), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity1.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity1.setDescription('This Field stores the RPI density in power range -87 < power << -82.')
cldccrRmHistRepRPIDensity2 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 6), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity2.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity2.setDescription('This Field stores the RPI density in power range -82 < power << -77.')
cldccrRmHistRepRPIDensity3 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity3.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity3.setDescription('This Field stores the RPI density in power range -77 < power << -72.')
cldccrRmHistRepRPIDensity4 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity4.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity4.setDescription('This Field stores the RPI density in power range -72< Power << -67.')
cldccrRmHistRepRPIDensity5 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity5.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity5.setDescription('This Field stores the RPI density in power range -67< Power << -62.')
cldccrRmHistRepRPIDensity6 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity6.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity6.setDescription('This Field stores the RPI density in power range -62< Power<< -57.')
cldccrRmHistRepRPIDensity7 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 11), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity7.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistRepRPIDensity7.setDescription('This Field stores the RPI density in power range -57< Power<< -52.')
cldccrRmBeaconRepTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2), )
if mibBuilder.loadTexts: cldccrRmBeaconRepTable.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRepTable.setDescription('This table contains the beacon reports of the clients which were queried for the same.')
cldccrRmBeaconRepEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1), ).setIndexNames((0, "CISCO-LWAPP-DOT11-CLIENT-MIB", "cldcClientMacAddress"), (0, "CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconIndex"))
if mibBuilder.loadTexts: cldccrRmBeaconRepEntry.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRepEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldccrRmBeaconIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 28)))
if mibBuilder.loadTexts: cldccrRmBeaconIndex.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconIndex.setDescription('Index which will be the channel number in most cases.')
cldccrRmBeaconRptChannelNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconRptChannelNumber.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRptChannelNumber.setDescription('Channel number indicates the channel number to which the noise beacon report applies.')
cldccrRmBeaconRptTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 3), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconRptTimeStamp.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRptTimeStamp.setDescription('Timestamp of the beacon report.')
cldccrRmBeaconRptPhyType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("fh", 1), ("dss", 2), ("unused", 3), ("ofdm", 4), ("highDataRateDss", 5), ("erp", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconRptPhyType.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRptPhyType.setDescription('Phy type indicates the physical medium used.')
cldccrRmBeaconRptReceivedPower = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 250))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconRptReceivedPower.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRptReceivedPower.setDescription('This field indicates the received strength of the beacon or probe response frame in dBm.')
cldccrRmBeaconRptBSSID = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 6), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconRptBSSID.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRptBSSID.setDescription('This field contains the 6-byte BSSID of the STA that transmitted the beacon or probe response frame.')
cldccrRmBeaconRptParentTsf = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconRptParentTsf.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRptParentTsf.setDescription('This field is used to store the parent TSF Parent TSF contains the lower 4 bytes of the serving APs. TSF value at the time the measuring STA received the beacon or probe response frame.')
cldccrRmBeaconRptTargetTsf = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconRptTargetTsf.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRptTargetTsf.setDescription('This field is used to store the Target TSF. Target TSF contains the 8-byte TSF value contained in the beacon or probe response received by the measuring STA.')
cldccrRmBeaconRptInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 9), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconRptInterval.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRptInterval.setDescription('This field is equal to the 2-byte Beacon Interval field in the received beacon or probe response.')
cldccrRmBeaconRptCapInfo = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 10), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconRptCapInfo.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconRptCapInfo.setDescription('This attribute represents the capability info.')
cldccRmChannelLoadReportTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3), )
if mibBuilder.loadTexts: cldccRmChannelLoadReportTable.setStatus('current')
if mibBuilder.loadTexts: cldccRmChannelLoadReportTable.setDescription('This table contains the channel load reports of the clients which were queried for the same.')
cldccRmChannelLoadReportEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1), ).setIndexNames((0, "CISCO-LWAPP-DOT11-CLIENT-MIB", "cldcClientMacAddress"), (0, "CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmChannelLoadReportIndex"))
if mibBuilder.loadTexts: cldccRmChannelLoadReportEntry.setStatus('current')
if mibBuilder.loadTexts: cldccRmChannelLoadReportEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldccRmChannelLoadReportIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1, 1), Unsigned32())
if mibBuilder.loadTexts: cldccRmChannelLoadReportIndex.setStatus('current')
if mibBuilder.loadTexts: cldccRmChannelLoadReportIndex.setDescription('This indicates the index of the report table.')
cldccRmChannelLoadReportChannelNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1, 2), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccRmChannelLoadReportChannelNumber.setStatus('current')
if mibBuilder.loadTexts: cldccRmChannelLoadReportChannelNumber.setDescription('Channel Number indicates the channel number to which the Channel Load Report applies.')
cldccRmChannelLoadReportTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1, 3), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccRmChannelLoadReportTimeStamp.setStatus('current')
if mibBuilder.loadTexts: cldccRmChannelLoadReportTimeStamp.setDescription('Timestamp of the channel load report.')
cldccRmChannelLoadReportCCABusyFraction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccRmChannelLoadReportCCABusyFraction.setStatus('current')
if mibBuilder.loadTexts: cldccRmChannelLoadReportCCABusyFraction.setDescription('CCA Busy Fraction shall contain the fractional duration over which CCA indicated the channel was busy during the measurement duration.')
cldccRmFrameReportTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4), )
if mibBuilder.loadTexts: cldccRmFrameReportTable.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportTable.setDescription('This table contains the frame reports of the clients which were queried for the same.')
cldccRmFrameReportEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1), ).setIndexNames((0, "CISCO-LWAPP-DOT11-CLIENT-MIB", "cldcClientMacAddress"), (0, "CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmFrameReportElemIndex"), (0, "CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmFrameReportSubElemIndex"))
if mibBuilder.loadTexts: cldccRmFrameReportEntry.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldccRmFrameReportElemIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 1), Unsigned32())
if mibBuilder.loadTexts: cldccRmFrameReportElemIndex.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportElemIndex.setDescription('This attribute represents the index of element index of frame report.')
cldccRmFrameReportSubElemIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 2), Unsigned32())
if mibBuilder.loadTexts: cldccRmFrameReportSubElemIndex.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportSubElemIndex.setDescription('This attribute represents the index of the sub element in a frame report.')
cldccRmFrameReportChanNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccRmFrameReportChanNumber.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportChanNumber.setDescription('This attribute represents the channel number of frame report.')
cldccRmFrameReportTimeStamp = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccRmFrameReportTimeStamp.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportTimeStamp.setDescription('Timestamp of the frame report.')
cldccRmFrameReportTransmitAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 5), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccRmFrameReportTransmitAddr.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportTransmitAddr.setDescription('This represents the transmitted address.')
cldccRmFrameReportBssid = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 6), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccRmFrameReportBssid.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportBssid.setDescription('This represents the bssid.')
cldccRmFrameReportRecvSigPower = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 250))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccRmFrameReportRecvSigPower.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportRecvSigPower.setDescription('This field indicates the received strength of the beacon or probe response frame in dBm.')
cldccRmFrameReportFrameCount = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 250))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccRmFrameReportFrameCount.setStatus('current')
if mibBuilder.loadTexts: cldccRmFrameReportFrameCount.setDescription('This field indicates the received strength of the beacon or probe response frame in dBm.')
cldccrRmReqStatusTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1), )
if mibBuilder.loadTexts: cldccrRmReqStatusTable.setStatus('current')
if mibBuilder.loadTexts: cldccrRmReqStatusTable.setDescription('This table is used to get the status for each of the reports.')
cldccrRmReqStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-LWAPP-DOT11-CLIENT-MIB", "cldcClientMacAddress"))
if mibBuilder.loadTexts: cldccrRmReqStatusEntry.setStatus('current')
if mibBuilder.loadTexts: cldccrRmReqStatusEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldccrRmFrameReqStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1, 1), CiscoLwappCcxRmReqStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmFrameReqStatus.setStatus('current')
if mibBuilder.loadTexts: cldccrRmFrameReqStatus.setDescription('This attribute is used to initiate/track a frame report request to the ccxv4 client.')
cldccrRmHistogramReqStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1, 2), CiscoLwappCcxRmReqStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmHistogramReqStatus.setStatus('current')
if mibBuilder.loadTexts: cldccrRmHistogramReqStatus.setDescription('This attribute is used to initiate/track a noise histogram request to the ccxv4 client.')
cldccrRmBeaconReqStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1, 3), CiscoLwappCcxRmReqStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmBeaconReqStatus.setStatus('current')
if mibBuilder.loadTexts: cldccrRmBeaconReqStatus.setDescription('This attribute is used to initiate/track a beacon request to the ccxv4 client.')
cldccrRmChanLoadReqStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1, 4), CiscoLwappCcxRmReqStatus()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cldccrRmChanLoadReqStatus.setStatus('current')
if mibBuilder.loadTexts: cldccrRmChanLoadReqStatus.setDescription('This attribute is used to initiate/track a channel load request to the ccxv4 client.')
ciscoLwappDot11ClientRmMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 2, 1))
ciscoLwappDot11ClientRmMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 2, 2))
ciscoLwappDot11ClientRmMibCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 767, 2, 1, 1)).setObjects(("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "ciscoLwappDot11ClientRmConfigGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoLwappDot11ClientRmMibCompliance = ciscoLwappDot11ClientRmMibCompliance.setStatus('current')
if mibBuilder.loadTexts: ciscoLwappDot11ClientRmMibCompliance.setDescription('The compliance statement for the SNMP entities that implement the ciscoLwappDot11ClientRmMIB module.')
ciscoLwappDot11ClientRmConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 767, 2, 2, 1)).setObjects(("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmReqReportType"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmInitiateReq"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmReqNumIterations"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmReqMeasDuration"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmReqRowStatus"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepChannelNumber"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepTimeStamp"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepRPIDensity0"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepRPIDensity1"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepRPIDensity2"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepRPIDensity3"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepRPIDensity4"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepRPIDensity5"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepRPIDensity6"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistRepRPIDensity7"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconRptChannelNumber"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconRptTimeStamp"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconRptPhyType"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconRptReceivedPower"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconRptBSSID"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconRptParentTsf"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconRptTargetTsf"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconRptInterval"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconRptCapInfo"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmChannelLoadReportChannelNumber"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmChannelLoadReportTimeStamp"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmChannelLoadReportCCABusyFraction"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmFrameReportChanNumber"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmFrameReportTimeStamp"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmFrameReportTransmitAddr"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmFrameReportBssid"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmFrameReportRecvSigPower"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccRmFrameReportFrameCount"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmFrameReqStatus"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmHistogramReqStatus"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmBeaconReqStatus"), ("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", "cldccrRmChanLoadReqStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoLwappDot11ClientRmConfigGroup = ciscoLwappDot11ClientRmConfigGroup.setStatus('current')
if mibBuilder.loadTexts: ciscoLwappDot11ClientRmConfigGroup.setDescription('This collection of objects represent the reports of the CCX Clients.')
mibBuilder.exportSymbols("CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB", cldccRmChannelLoadReportEntry=cldccRmChannelLoadReportEntry, ciscoLwappDot11ClientRmMIB=ciscoLwappDot11ClientRmMIB, cldccrRmReqReportType=cldccrRmReqReportType, cldccrRmBeaconIndex=cldccrRmBeaconIndex, cldccrRmHistRepRPIDensity5=cldccrRmHistRepRPIDensity5, cldccrRmBeaconRptInterval=cldccrRmBeaconRptInterval, cldccRmFrameReportChanNumber=cldccRmFrameReportChanNumber, cldccrRmHistRepRPIDensity2=cldccrRmHistRepRPIDensity2, cldccRmFrameReportRecvSigPower=cldccRmFrameReportRecvSigPower, cldccRmChannelLoadReportCCABusyFraction=cldccRmChannelLoadReportCCABusyFraction, cldccrRmBeaconRepEntry=cldccrRmBeaconRepEntry, cldccRmFrameReportElemIndex=cldccRmFrameReportElemIndex, cldccrRmReqStatus=cldccrRmReqStatus, cldccrRmReqEntry=cldccrRmReqEntry, cldccrRmReqRowStatus=cldccrRmReqRowStatus, cldccrRmReqMeasDuration=cldccrRmReqMeasDuration, PYSNMP_MODULE_ID=ciscoLwappDot11ClientRmMIB, cldccrRmHistRepRPIDensity6=cldccrRmHistRepRPIDensity6, cldccrRmHistogramReqStatus=cldccrRmHistogramReqStatus, cldccrRmFrameReqStatus=cldccrRmFrameReqStatus, cldccrRmHistRepRPIDensity0=cldccrRmHistRepRPIDensity0, cldccrRmBeaconRepTable=cldccrRmBeaconRepTable, cldccrRmResp=cldccrRmResp, cldccRmChannelLoadReportTable=cldccRmChannelLoadReportTable, ciscoLwappDot11ClientRmMIBConform=ciscoLwappDot11ClientRmMIBConform, cldccRmFrameReportSubElemIndex=cldccRmFrameReportSubElemIndex, cldccrRmReqStatusTable=cldccrRmReqStatusTable, cldccrRmReq=cldccrRmReq, cldccrRmInitiateReq=cldccrRmInitiateReq, cldccrRmBeaconRptBSSID=cldccrRmBeaconRptBSSID, cldccrRmBeaconRptCapInfo=cldccrRmBeaconRptCapInfo, ciscoLwappDot11ClientRmMIBObjects=ciscoLwappDot11ClientRmMIBObjects, cldccrRmHistRepTimeStamp=cldccrRmHistRepTimeStamp, cldccRmFrameReportEntry=cldccRmFrameReportEntry, cldccRmFrameReportTable=cldccRmFrameReportTable, cldccrRmBeaconRptReceivedPower=cldccrRmBeaconRptReceivedPower, ciscoLwappDot11ClientRmMIBCompliances=ciscoLwappDot11ClientRmMIBCompliances, CiscoLwappCcxRmReqStatus=CiscoLwappCcxRmReqStatus, ciscoLwappDot11ClientRmConfigGroup=ciscoLwappDot11ClientRmConfigGroup, cldccRmChannelLoadReportIndex=cldccRmChannelLoadReportIndex, cldccrRmBeaconRptPhyType=cldccrRmBeaconRptPhyType, cldccRmChannelLoadReportChannelNumber=cldccRmChannelLoadReportChannelNumber, cldccrRmReqStatusEntry=cldccrRmReqStatusEntry, cldccrRmBeaconRptTargetTsf=cldccrRmBeaconRptTargetTsf, cldccrRmBeaconRptTimeStamp=cldccrRmBeaconRptTimeStamp, cldccrRmBeaconReqStatus=cldccrRmBeaconReqStatus, cldccrRmHistRepRPIDensity4=cldccrRmHistRepRPIDensity4, ciscoLwappDot11ClientRmMIBGroups=ciscoLwappDot11ClientRmMIBGroups, cldccrRmReqNumIterations=cldccrRmReqNumIterations, cldccrRmHistRepRPIDensity3=cldccrRmHistRepRPIDensity3, cldccRmFrameReportTimeStamp=cldccRmFrameReportTimeStamp, ciscoLwapDot11ClientRmMIBNotifs=ciscoLwapDot11ClientRmMIBNotifs, cldccrRmBeaconRptChannelNumber=cldccrRmBeaconRptChannelNumber, cldccrRmHistRepEntry=cldccrRmHistRepEntry, cldccRmFrameReportTransmitAddr=cldccRmFrameReportTransmitAddr, cldccrRmBeaconRptParentTsf=cldccrRmBeaconRptParentTsf, cldccrRmHistRepChannelNumber=cldccrRmHistRepChannelNumber, cldccrRmReqTable=cldccrRmReqTable, ciscoLwappDot11ClientRmMibCompliance=ciscoLwappDot11ClientRmMibCompliance, cldccRmFrameReportBssid=cldccRmFrameReportBssid, cldccrRmHistRepRPIDensity7=cldccrRmHistRepRPIDensity7, cldccrRmHistRepRPIDensity1=cldccrRmHistRepRPIDensity1, cldccrRmHistIndex=cldccrRmHistIndex, cldccrRmChanLoadReqStatus=cldccrRmChanLoadReqStatus, cldccRmChannelLoadReportTimeStamp=cldccRmChannelLoadReportTimeStamp, cldccrRmHistRepTable=cldccrRmHistRepTable, cldccRmFrameReportFrameCount=cldccRmFrameReportFrameCount)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection')
(cldc_client_mac_address,) = mibBuilder.importSymbols('CISCO-LWAPP-DOT11-CLIENT-MIB', 'cldcClientMacAddress')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(mib_identifier, time_ticks, gauge32, object_identity, iso, counter64, module_identity, bits, ip_address, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, notification_type, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'TimeTicks', 'Gauge32', 'ObjectIdentity', 'iso', 'Counter64', 'ModuleIdentity', 'Bits', 'IpAddress', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'NotificationType', 'Integer32')
(mac_address, display_string, textual_convention, truth_value, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'DisplayString', 'TextualConvention', 'TruthValue', 'RowStatus')
cisco_lwapp_dot11_client_rm_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 767))
ciscoLwappDot11ClientRmMIB.setRevisions(('2010-12-13 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ciscoLwappDot11ClientRmMIB.setRevisionsDescriptions(('Initial version of this MIB module.',))
if mibBuilder.loadTexts:
ciscoLwappDot11ClientRmMIB.setLastUpdated('201012130000Z')
if mibBuilder.loadTexts:
ciscoLwappDot11ClientRmMIB.setOrganization('Cisco Systems Inc.')
if mibBuilder.loadTexts:
ciscoLwappDot11ClientRmMIB.setContactInfo('Cisco Systems, Customer Service Postal: 170 West Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS Email: cs-wnbu-snmp@cisco.com')
if mibBuilder.loadTexts:
ciscoLwappDot11ClientRmMIB.setDescription("This MIB is intended to be implemented on all those devices operating as Central controllers, that terminate the Light Weight Access Point Protocol tunnel from Cisco Light-weight LWAPP Access Points. The relationship between CC and the LWAPP APs can be depicted as follows: +......+ +......+ +......+ +......+ + + + + + + + + + CC + + CC + + CC + + CC + + + + + + + + + +......+ +......+ +......+ +......+ .. . . . .. . . . . . . . . . . . . . . . . . . . . . . . +......+ +......+ +......+ +......+ +......+ + + + + + + + + + + + AP + + AP + + AP + + AP + + AP + + + + + + + + + + + +......+ +......+ +......+ +......+ +......+ . . . . . . . . . . . . . . . . . . . . . . . . +......+ +......+ +......+ +......+ +......+ + + + + + + + + + + + MN + + MN + + MN + + MN + + MN + + + + + + + + + + + +......+ +......+ +......+ +......+ +......+ The LWAPP tunnel exists between the controller and the APs. The MNs communicate with the APs through the protocol defined by the 802.11 standard. LWAPP APs, upon bootup, discover and join one of the controllers and the controller pushes the configuration, that includes the WLAN parameters, to the LWAPP APs. The APs then encapsulate all the 802.11 frames from wireless clients inside LWAPP frames and forward the LWAPP frames to the controller. GLOSSARY Access Point ( AP ) An entity that contains an 802.11 medium access control ( MAC ) and physical layer ( PHY ) interface and provides access to the distribution services via the wireless medium for associated clients. LWAPP APs encapsulate all the 802.11 frames in LWAPP frames and sends them to the controller to which it is logically connected. Central Controller ( CC ) The central entity that terminates the LWAPP protocol tunnel from the LWAPP APs. Throughout this MIB, this entity also referred to as 'controller'. Cisco Compatible eXtensions (CCX) Wireless LAN Access Points (APs) manufactured by Cisco Systems have features and capabilities beyond those in related standards (e.g., IEEE 802.11 suite of standards, Wi-Fi recommendations by WECA, 802.1X security suite, etc). A number of features provide higher performance. For example, Cisco AP transmits a specific Information Element, which the clients adapt to for enhanced performance. Similarly, a number of features are implemented by means of proprietary Information Elements, which Cisco clients use in specific ways to carry out tasks above and beyond the standard. Other examples of feature categories are roaming and power saving. Light Weight Access Point Protocol ( LWAPP ) This is a generic protocol that defines the communication between the Access Points and the Central Controller. Mobile Node ( MN ) A roaming 802.11 wireless device in a wireless network associated with an access point. The terms 'Mobile node' and 'client' are used interchangeably. Radio Management (RM) This term refers to managing the 802.11 radio environment to provide the best quality service to to the 802.11 wireless clients. Service Set Identifier ( SSID ) SSID is a unique identifier that APs and clients use to identify with each other. SSID is a simple means of access control and is not for security. The SSID can be any alphanumeric entry up to 32 characters. REFERENCE [1] Wireless LAN Medium Access Control ( MAC ) and Physical Layer ( PHY ) Specifications [2] Draft-obara-capwap-lwapp-00.txt, IETF Light Weight Access Point Protocol")
cisco_lwap_dot11_client_rm_mib_notifs = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 0))
cisco_lwapp_dot11_client_rm_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 1))
cisco_lwapp_dot11_client_rm_mib_conform = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 2))
cldccr_rm_req = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1))
cldccr_rm_resp = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2))
cldccr_rm_req_status = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3))
class Ciscolwappccxrmreqstatus(TextualConvention, Integer32):
description = 'This attribute is used to initiate/track a request to the ccxv4 client.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3))
named_values = named_values(('inProgress', 1), ('success', 2), ('failure', 3))
cldccr_rm_req_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1))
if mibBuilder.loadTexts:
cldccrRmReqTable.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmReqTable.setDescription('This table is used to configure the radio measurement request parameters to be sent to the ccxv4 clients.')
cldccr_rm_req_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1)).setIndexNames((0, 'CISCO-LWAPP-DOT11-CLIENT-MIB', 'cldcClientMacAddress'))
if mibBuilder.loadTexts:
cldccrRmReqEntry.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmReqEntry.setDescription('Each entry represents a conceptual row in this table. An entry corresponds to a client for which a certain type of report is being fetched.')
cldccr_rm_req_report_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 1), bits().clone(namedValues=named_values(('channelLoadReport', 0), ('histogramReport', 1), ('beaconReport', 2), ('frameReport', 3)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cldccrRmReqReportType.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmReqReportType.setDescription('This object is set to list of radio measurement requests the reports of which will be sent by the ccxv4 client to the controller.')
cldccr_rm_initiate_req = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 2), truth_value()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cldccrRmInitiateReq.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmInitiateReq.setDescription('This object is used to send the rm req message to the client.')
cldccr_rm_req_num_iterations = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 250))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cldccrRmReqNumIterations.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmReqNumIterations.setDescription('This attribute is used to set the number of times the rm request will be sent to the client.')
cldccr_rm_req_meas_duration = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(5, 32400))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cldccrRmReqMeasDuration.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmReqMeasDuration.setDescription('The time interval between two RM Reqs in seconds.')
cldccr_rm_req_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 1, 1, 1, 5), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cldccrRmReqRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmReqRowStatus.setDescription('This is the status column for this row and is used to create and delete specific instances of rows in this table.')
cldccr_rm_hist_rep_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1))
if mibBuilder.loadTexts:
cldccrRmHistRepTable.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepTable.setDescription('This table contains the noise histogram reports of the clients which were queried for the same.')
cldccr_rm_hist_rep_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1)).setIndexNames((0, 'CISCO-LWAPP-DOT11-CLIENT-MIB', 'cldcClientMacAddress'), (0, 'CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistIndex'))
if mibBuilder.loadTexts:
cldccrRmHistRepEntry.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldccr_rm_hist_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28)))
if mibBuilder.loadTexts:
cldccrRmHistIndex.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistIndex.setDescription('Index which will be the channel number in most cases.')
cldccr_rm_hist_rep_channel_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepChannelNumber.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepChannelNumber.setDescription('Channel number indicates the channel number to which the noise histogram Report applies.')
cldccr_rm_hist_rep_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 3), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepTimeStamp.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepTimeStamp.setDescription('Timestamp of the histogram report.')
cldccr_rm_hist_rep_rpi_density0 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity0.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity0.setDescription('This Field stores the RPI density in power range power << -87 db.')
cldccr_rm_hist_rep_rpi_density1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 5), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity1.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity1.setDescription('This Field stores the RPI density in power range -87 < power << -82.')
cldccr_rm_hist_rep_rpi_density2 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 6), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity2.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity2.setDescription('This Field stores the RPI density in power range -82 < power << -77.')
cldccr_rm_hist_rep_rpi_density3 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity3.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity3.setDescription('This Field stores the RPI density in power range -77 < power << -72.')
cldccr_rm_hist_rep_rpi_density4 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity4.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity4.setDescription('This Field stores the RPI density in power range -72< Power << -67.')
cldccr_rm_hist_rep_rpi_density5 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity5.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity5.setDescription('This Field stores the RPI density in power range -67< Power << -62.')
cldccr_rm_hist_rep_rpi_density6 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity6.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity6.setDescription('This Field stores the RPI density in power range -62< Power<< -57.')
cldccr_rm_hist_rep_rpi_density7 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 1, 1, 11), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity7.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistRepRPIDensity7.setDescription('This Field stores the RPI density in power range -57< Power<< -52.')
cldccr_rm_beacon_rep_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2))
if mibBuilder.loadTexts:
cldccrRmBeaconRepTable.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRepTable.setDescription('This table contains the beacon reports of the clients which were queried for the same.')
cldccr_rm_beacon_rep_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1)).setIndexNames((0, 'CISCO-LWAPP-DOT11-CLIENT-MIB', 'cldcClientMacAddress'), (0, 'CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconIndex'))
if mibBuilder.loadTexts:
cldccrRmBeaconRepEntry.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRepEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldccr_rm_beacon_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 28)))
if mibBuilder.loadTexts:
cldccrRmBeaconIndex.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconIndex.setDescription('Index which will be the channel number in most cases.')
cldccr_rm_beacon_rpt_channel_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconRptChannelNumber.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRptChannelNumber.setDescription('Channel number indicates the channel number to which the noise beacon report applies.')
cldccr_rm_beacon_rpt_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 3), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconRptTimeStamp.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRptTimeStamp.setDescription('Timestamp of the beacon report.')
cldccr_rm_beacon_rpt_phy_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('fh', 1), ('dss', 2), ('unused', 3), ('ofdm', 4), ('highDataRateDss', 5), ('erp', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconRptPhyType.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRptPhyType.setDescription('Phy type indicates the physical medium used.')
cldccr_rm_beacon_rpt_received_power = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 250))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconRptReceivedPower.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRptReceivedPower.setDescription('This field indicates the received strength of the beacon or probe response frame in dBm.')
cldccr_rm_beacon_rpt_bssid = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 6), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconRptBSSID.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRptBSSID.setDescription('This field contains the 6-byte BSSID of the STA that transmitted the beacon or probe response frame.')
cldccr_rm_beacon_rpt_parent_tsf = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconRptParentTsf.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRptParentTsf.setDescription('This field is used to store the parent TSF Parent TSF contains the lower 4 bytes of the serving APs. TSF value at the time the measuring STA received the beacon or probe response frame.')
cldccr_rm_beacon_rpt_target_tsf = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconRptTargetTsf.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRptTargetTsf.setDescription('This field is used to store the Target TSF. Target TSF contains the 8-byte TSF value contained in the beacon or probe response received by the measuring STA.')
cldccr_rm_beacon_rpt_interval = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 9), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconRptInterval.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRptInterval.setDescription('This field is equal to the 2-byte Beacon Interval field in the received beacon or probe response.')
cldccr_rm_beacon_rpt_cap_info = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 2, 1, 10), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconRptCapInfo.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconRptCapInfo.setDescription('This attribute represents the capability info.')
cldcc_rm_channel_load_report_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3))
if mibBuilder.loadTexts:
cldccRmChannelLoadReportTable.setStatus('current')
if mibBuilder.loadTexts:
cldccRmChannelLoadReportTable.setDescription('This table contains the channel load reports of the clients which were queried for the same.')
cldcc_rm_channel_load_report_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1)).setIndexNames((0, 'CISCO-LWAPP-DOT11-CLIENT-MIB', 'cldcClientMacAddress'), (0, 'CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmChannelLoadReportIndex'))
if mibBuilder.loadTexts:
cldccRmChannelLoadReportEntry.setStatus('current')
if mibBuilder.loadTexts:
cldccRmChannelLoadReportEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldcc_rm_channel_load_report_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1, 1), unsigned32())
if mibBuilder.loadTexts:
cldccRmChannelLoadReportIndex.setStatus('current')
if mibBuilder.loadTexts:
cldccRmChannelLoadReportIndex.setDescription('This indicates the index of the report table.')
cldcc_rm_channel_load_report_channel_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1, 2), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccRmChannelLoadReportChannelNumber.setStatus('current')
if mibBuilder.loadTexts:
cldccRmChannelLoadReportChannelNumber.setDescription('Channel Number indicates the channel number to which the Channel Load Report applies.')
cldcc_rm_channel_load_report_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1, 3), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccRmChannelLoadReportTimeStamp.setStatus('current')
if mibBuilder.loadTexts:
cldccRmChannelLoadReportTimeStamp.setDescription('Timestamp of the channel load report.')
cldcc_rm_channel_load_report_cca_busy_fraction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 3, 1, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccRmChannelLoadReportCCABusyFraction.setStatus('current')
if mibBuilder.loadTexts:
cldccRmChannelLoadReportCCABusyFraction.setDescription('CCA Busy Fraction shall contain the fractional duration over which CCA indicated the channel was busy during the measurement duration.')
cldcc_rm_frame_report_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4))
if mibBuilder.loadTexts:
cldccRmFrameReportTable.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportTable.setDescription('This table contains the frame reports of the clients which were queried for the same.')
cldcc_rm_frame_report_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1)).setIndexNames((0, 'CISCO-LWAPP-DOT11-CLIENT-MIB', 'cldcClientMacAddress'), (0, 'CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmFrameReportElemIndex'), (0, 'CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmFrameReportSubElemIndex'))
if mibBuilder.loadTexts:
cldccRmFrameReportEntry.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldcc_rm_frame_report_elem_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 1), unsigned32())
if mibBuilder.loadTexts:
cldccRmFrameReportElemIndex.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportElemIndex.setDescription('This attribute represents the index of element index of frame report.')
cldcc_rm_frame_report_sub_elem_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 2), unsigned32())
if mibBuilder.loadTexts:
cldccRmFrameReportSubElemIndex.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportSubElemIndex.setDescription('This attribute represents the index of the sub element in a frame report.')
cldcc_rm_frame_report_chan_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccRmFrameReportChanNumber.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportChanNumber.setDescription('This attribute represents the channel number of frame report.')
cldcc_rm_frame_report_time_stamp = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 4), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccRmFrameReportTimeStamp.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportTimeStamp.setDescription('Timestamp of the frame report.')
cldcc_rm_frame_report_transmit_addr = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 5), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccRmFrameReportTransmitAddr.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportTransmitAddr.setDescription('This represents the transmitted address.')
cldcc_rm_frame_report_bssid = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 6), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccRmFrameReportBssid.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportBssid.setDescription('This represents the bssid.')
cldcc_rm_frame_report_recv_sig_power = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 250))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccRmFrameReportRecvSigPower.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportRecvSigPower.setDescription('This field indicates the received strength of the beacon or probe response frame in dBm.')
cldcc_rm_frame_report_frame_count = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 2, 4, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 250))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccRmFrameReportFrameCount.setStatus('current')
if mibBuilder.loadTexts:
cldccRmFrameReportFrameCount.setDescription('This field indicates the received strength of the beacon or probe response frame in dBm.')
cldccr_rm_req_status_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1))
if mibBuilder.loadTexts:
cldccrRmReqStatusTable.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmReqStatusTable.setDescription('This table is used to get the status for each of the reports.')
cldccr_rm_req_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1)).setIndexNames((0, 'CISCO-LWAPP-DOT11-CLIENT-MIB', 'cldcClientMacAddress'))
if mibBuilder.loadTexts:
cldccrRmReqStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmReqStatusEntry.setDescription('There is an entry in the table where entry is identified by the client Mac address.')
cldccr_rm_frame_req_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1, 1), cisco_lwapp_ccx_rm_req_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmFrameReqStatus.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmFrameReqStatus.setDescription('This attribute is used to initiate/track a frame report request to the ccxv4 client.')
cldccr_rm_histogram_req_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1, 2), cisco_lwapp_ccx_rm_req_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmHistogramReqStatus.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmHistogramReqStatus.setDescription('This attribute is used to initiate/track a noise histogram request to the ccxv4 client.')
cldccr_rm_beacon_req_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1, 3), cisco_lwapp_ccx_rm_req_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmBeaconReqStatus.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmBeaconReqStatus.setDescription('This attribute is used to initiate/track a beacon request to the ccxv4 client.')
cldccr_rm_chan_load_req_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 767, 1, 3, 1, 1, 4), cisco_lwapp_ccx_rm_req_status()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cldccrRmChanLoadReqStatus.setStatus('current')
if mibBuilder.loadTexts:
cldccrRmChanLoadReqStatus.setDescription('This attribute is used to initiate/track a channel load request to the ccxv4 client.')
cisco_lwapp_dot11_client_rm_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 2, 1))
cisco_lwapp_dot11_client_rm_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 767, 2, 2))
cisco_lwapp_dot11_client_rm_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 767, 2, 1, 1)).setObjects(('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'ciscoLwappDot11ClientRmConfigGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_lwapp_dot11_client_rm_mib_compliance = ciscoLwappDot11ClientRmMibCompliance.setStatus('current')
if mibBuilder.loadTexts:
ciscoLwappDot11ClientRmMibCompliance.setDescription('The compliance statement for the SNMP entities that implement the ciscoLwappDot11ClientRmMIB module.')
cisco_lwapp_dot11_client_rm_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 767, 2, 2, 1)).setObjects(('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmReqReportType'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmInitiateReq'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmReqNumIterations'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmReqMeasDuration'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmReqRowStatus'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepChannelNumber'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepTimeStamp'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepRPIDensity0'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepRPIDensity1'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepRPIDensity2'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepRPIDensity3'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepRPIDensity4'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepRPIDensity5'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepRPIDensity6'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistRepRPIDensity7'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconRptChannelNumber'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconRptTimeStamp'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconRptPhyType'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconRptReceivedPower'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconRptBSSID'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconRptParentTsf'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconRptTargetTsf'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconRptInterval'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconRptCapInfo'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmChannelLoadReportChannelNumber'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmChannelLoadReportTimeStamp'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmChannelLoadReportCCABusyFraction'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmFrameReportChanNumber'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmFrameReportTimeStamp'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmFrameReportTransmitAddr'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmFrameReportBssid'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmFrameReportRecvSigPower'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccRmFrameReportFrameCount'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmFrameReqStatus'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmHistogramReqStatus'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmBeaconReqStatus'), ('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', 'cldccrRmChanLoadReqStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_lwapp_dot11_client_rm_config_group = ciscoLwappDot11ClientRmConfigGroup.setStatus('current')
if mibBuilder.loadTexts:
ciscoLwappDot11ClientRmConfigGroup.setDescription('This collection of objects represent the reports of the CCX Clients.')
mibBuilder.exportSymbols('CISCO-LWAPP-DOT11-CLIENT-CCX-REPORTS-MIB', cldccRmChannelLoadReportEntry=cldccRmChannelLoadReportEntry, ciscoLwappDot11ClientRmMIB=ciscoLwappDot11ClientRmMIB, cldccrRmReqReportType=cldccrRmReqReportType, cldccrRmBeaconIndex=cldccrRmBeaconIndex, cldccrRmHistRepRPIDensity5=cldccrRmHistRepRPIDensity5, cldccrRmBeaconRptInterval=cldccrRmBeaconRptInterval, cldccRmFrameReportChanNumber=cldccRmFrameReportChanNumber, cldccrRmHistRepRPIDensity2=cldccrRmHistRepRPIDensity2, cldccRmFrameReportRecvSigPower=cldccRmFrameReportRecvSigPower, cldccRmChannelLoadReportCCABusyFraction=cldccRmChannelLoadReportCCABusyFraction, cldccrRmBeaconRepEntry=cldccrRmBeaconRepEntry, cldccRmFrameReportElemIndex=cldccRmFrameReportElemIndex, cldccrRmReqStatus=cldccrRmReqStatus, cldccrRmReqEntry=cldccrRmReqEntry, cldccrRmReqRowStatus=cldccrRmReqRowStatus, cldccrRmReqMeasDuration=cldccrRmReqMeasDuration, PYSNMP_MODULE_ID=ciscoLwappDot11ClientRmMIB, cldccrRmHistRepRPIDensity6=cldccrRmHistRepRPIDensity6, cldccrRmHistogramReqStatus=cldccrRmHistogramReqStatus, cldccrRmFrameReqStatus=cldccrRmFrameReqStatus, cldccrRmHistRepRPIDensity0=cldccrRmHistRepRPIDensity0, cldccrRmBeaconRepTable=cldccrRmBeaconRepTable, cldccrRmResp=cldccrRmResp, cldccRmChannelLoadReportTable=cldccRmChannelLoadReportTable, ciscoLwappDot11ClientRmMIBConform=ciscoLwappDot11ClientRmMIBConform, cldccRmFrameReportSubElemIndex=cldccRmFrameReportSubElemIndex, cldccrRmReqStatusTable=cldccrRmReqStatusTable, cldccrRmReq=cldccrRmReq, cldccrRmInitiateReq=cldccrRmInitiateReq, cldccrRmBeaconRptBSSID=cldccrRmBeaconRptBSSID, cldccrRmBeaconRptCapInfo=cldccrRmBeaconRptCapInfo, ciscoLwappDot11ClientRmMIBObjects=ciscoLwappDot11ClientRmMIBObjects, cldccrRmHistRepTimeStamp=cldccrRmHistRepTimeStamp, cldccRmFrameReportEntry=cldccRmFrameReportEntry, cldccRmFrameReportTable=cldccRmFrameReportTable, cldccrRmBeaconRptReceivedPower=cldccrRmBeaconRptReceivedPower, ciscoLwappDot11ClientRmMIBCompliances=ciscoLwappDot11ClientRmMIBCompliances, CiscoLwappCcxRmReqStatus=CiscoLwappCcxRmReqStatus, ciscoLwappDot11ClientRmConfigGroup=ciscoLwappDot11ClientRmConfigGroup, cldccRmChannelLoadReportIndex=cldccRmChannelLoadReportIndex, cldccrRmBeaconRptPhyType=cldccrRmBeaconRptPhyType, cldccRmChannelLoadReportChannelNumber=cldccRmChannelLoadReportChannelNumber, cldccrRmReqStatusEntry=cldccrRmReqStatusEntry, cldccrRmBeaconRptTargetTsf=cldccrRmBeaconRptTargetTsf, cldccrRmBeaconRptTimeStamp=cldccrRmBeaconRptTimeStamp, cldccrRmBeaconReqStatus=cldccrRmBeaconReqStatus, cldccrRmHistRepRPIDensity4=cldccrRmHistRepRPIDensity4, ciscoLwappDot11ClientRmMIBGroups=ciscoLwappDot11ClientRmMIBGroups, cldccrRmReqNumIterations=cldccrRmReqNumIterations, cldccrRmHistRepRPIDensity3=cldccrRmHistRepRPIDensity3, cldccRmFrameReportTimeStamp=cldccRmFrameReportTimeStamp, ciscoLwapDot11ClientRmMIBNotifs=ciscoLwapDot11ClientRmMIBNotifs, cldccrRmBeaconRptChannelNumber=cldccrRmBeaconRptChannelNumber, cldccrRmHistRepEntry=cldccrRmHistRepEntry, cldccRmFrameReportTransmitAddr=cldccRmFrameReportTransmitAddr, cldccrRmBeaconRptParentTsf=cldccrRmBeaconRptParentTsf, cldccrRmHistRepChannelNumber=cldccrRmHistRepChannelNumber, cldccrRmReqTable=cldccrRmReqTable, ciscoLwappDot11ClientRmMibCompliance=ciscoLwappDot11ClientRmMibCompliance, cldccRmFrameReportBssid=cldccRmFrameReportBssid, cldccrRmHistRepRPIDensity7=cldccrRmHistRepRPIDensity7, cldccrRmHistRepRPIDensity1=cldccrRmHistRepRPIDensity1, cldccrRmHistIndex=cldccrRmHistIndex, cldccrRmChanLoadReqStatus=cldccrRmChanLoadReqStatus, cldccRmChannelLoadReportTimeStamp=cldccRmChannelLoadReportTimeStamp, cldccrRmHistRepTable=cldccrRmHistRepTable, cldccRmFrameReportFrameCount=cldccRmFrameReportFrameCount) |
def neighbor(neighbor_list,peer_state, **kwargs):
if peer_state in neighbor_list:
return 1
else:
return 0
| def neighbor(neighbor_list, peer_state, **kwargs):
if peer_state in neighbor_list:
return 1
else:
return 0 |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def findTilt(self, root: TreeNode) -> int:
if root is None:
return 0
# post order tree walk traversal
sum = 0
def postOrderTraver(node):
nonlocal sum
if node.left is None and node.right is None:
return node.val
leftSum = 0 if node.left is None else postOrderTraver(node.left)
rightSum = 0 if node.right is None else postOrderTraver(node.right)
sum += abs(leftSum - rightSum)
return leftSum + rightSum + node.val
postOrderTraver(root)
return sum | class Solution:
def find_tilt(self, root: TreeNode) -> int:
if root is None:
return 0
sum = 0
def post_order_traver(node):
nonlocal sum
if node.left is None and node.right is None:
return node.val
left_sum = 0 if node.left is None else post_order_traver(node.left)
right_sum = 0 if node.right is None else post_order_traver(node.right)
sum += abs(leftSum - rightSum)
return leftSum + rightSum + node.val
post_order_traver(root)
return sum |
# Tree Node
class Node:
def __init__(self, val):
self.right = None
self.data = val
self.left = None
class Solution:
# The given root is the root of the Binary Tree
# Return the root of the generated BST
def binaryTreeToBST_Util(self, root):
if root is None:
return
self.binaryTreeToBST_Util(root.left)
self.values.append(root.data)
self.nodesAddress.append(root)
self.binaryTreeToBST_Util(root.right)
def binaryTreeToBST(self, root):
self.values = []
self.nodesAddress = []
self.binaryTreeToBST_Util(root)
self.values.sort()
for i in range(len(self.values)):
node = self.nodesAddress[i]
node.data = self.values[i]
return root | class Node:
def __init__(self, val):
self.right = None
self.data = val
self.left = None
class Solution:
def binary_tree_to_bst__util(self, root):
if root is None:
return
self.binaryTreeToBST_Util(root.left)
self.values.append(root.data)
self.nodesAddress.append(root)
self.binaryTreeToBST_Util(root.right)
def binary_tree_to_bst(self, root):
self.values = []
self.nodesAddress = []
self.binaryTreeToBST_Util(root)
self.values.sort()
for i in range(len(self.values)):
node = self.nodesAddress[i]
node.data = self.values[i]
return root |
#Defining function for Linear Search
def Linear_Search(input_list, key):
flag = 0
#Iterating each item in the list and comparing it with the key searching for
for i in range(len(input_list)):
if(input_list[i] == key):
#If key matches with any of the list items
flag = 1
print("\nKey is found in the position: {}" .format(i))
#If key not found
if(flag == 0):
print("\nKey not found")
#Input List
input_list = [11,12,13,14,15,16,17,18,19]
print("List available is {}" .format(input_list))
#Getting Key from user
key = input("\nEnter key to be searched in the list")
key = int(key)
#Calling function defined to perform Linear Search
Linear_Search(input_list, key)
| def linear__search(input_list, key):
flag = 0
for i in range(len(input_list)):
if input_list[i] == key:
flag = 1
print('\nKey is found in the position: {}'.format(i))
if flag == 0:
print('\nKey not found')
input_list = [11, 12, 13, 14, 15, 16, 17, 18, 19]
print('List available is {}'.format(input_list))
key = input('\nEnter key to be searched in the list')
key = int(key)
linear__search(input_list, key) |
class Token():
def __init__(self, classe, lexema, tipo):
self.classe = classe
self.lexema = lexema
self.tipo = tipo
def __repr__(self) -> str:
return 'classe: ' + self.classe + ', lexema: ' + self.lexema + ', tipo: ' + self.tipo
| class Token:
def __init__(self, classe, lexema, tipo):
self.classe = classe
self.lexema = lexema
self.tipo = tipo
def __repr__(self) -> str:
return 'classe: ' + self.classe + ', lexema: ' + self.lexema + ', tipo: ' + self.tipo |
def program():
intProgram = [
1,12,2,3,1,1,2,3,1,3,
4,3,1,5,0,3,2,1,10,19,
1,6,19,23,1,10,23,27,2,27,
13,31,1,31,6,35,2,6,35,39,
1,39,5,43,1,6,43,47,2,6,
47,51,1,51,5,55,2,55,9,59,
1,6,59,63,1,9,63,67,1,67,
10,71,2,9,71,75,1,6,75,79,
1,5,79,83,2,83,10,87,1,87,
5,91,1,91,9,95,1,6,95,99,
2,99,10,103,1,103,5,107,2,107,
6,111,1,111,5,115,1,9,115,119,
2,119,10,123,1,6,123,127,2,13,
127,131,1,131,6,135,1,135,10,139,
1,13,139,143,1,143,13,147,1,5,
147,151,1,151,2,155,1,155,5,0,
99,2,0,14,0
]
return intProgram
def runIntcode(intProgram):
memory = intProgram
if memory[0] not in [1, 2, 99]:
print("Program invalid")
return
position = 0
while position <= len(memory) - 1:
intCode = memory[position]
if intCode == 1:
memory = add(position, memory)
position += 4
if intCode == 2:
memory = multiply(position, memory)
position += 4
if intCode == 99:
print("Execution complete")
output = memory[0]
return output
return
def add(position, memory):
x = memory[position + 1]
y = memory[position + 2]
z = memory[position + 3]
output = memory[x] + memory[y]
memory[z] = output
return memory
def multiply(position, memory):
x = memory[position + 1]
y = memory[position + 2]
z = memory[position + 3]
output = memory[x] * memory[y]
memory[z] = output
return memory
def runProgram(noun, verb):
xProgram = program()
xProgram[1] = noun
xProgram[2] = verb
x = runIntcode(xProgram)
return x
def bruteForce():
noun = 0
verb = 0
output = 0
while noun <= 99:
while verb <= 99:
output = runProgram(noun, verb)
if output == 19690720:
print("Solution found!")
print("Noun: " + str(noun))
print("Verb: " + str(verb))
return
verb += 1
noun += 1
verb = 0
return
bruteForce()
| def program():
int_program = [1, 12, 2, 3, 1, 1, 2, 3, 1, 3, 4, 3, 1, 5, 0, 3, 2, 1, 10, 19, 1, 6, 19, 23, 1, 10, 23, 27, 2, 27, 13, 31, 1, 31, 6, 35, 2, 6, 35, 39, 1, 39, 5, 43, 1, 6, 43, 47, 2, 6, 47, 51, 1, 51, 5, 55, 2, 55, 9, 59, 1, 6, 59, 63, 1, 9, 63, 67, 1, 67, 10, 71, 2, 9, 71, 75, 1, 6, 75, 79, 1, 5, 79, 83, 2, 83, 10, 87, 1, 87, 5, 91, 1, 91, 9, 95, 1, 6, 95, 99, 2, 99, 10, 103, 1, 103, 5, 107, 2, 107, 6, 111, 1, 111, 5, 115, 1, 9, 115, 119, 2, 119, 10, 123, 1, 6, 123, 127, 2, 13, 127, 131, 1, 131, 6, 135, 1, 135, 10, 139, 1, 13, 139, 143, 1, 143, 13, 147, 1, 5, 147, 151, 1, 151, 2, 155, 1, 155, 5, 0, 99, 2, 0, 14, 0]
return intProgram
def run_intcode(intProgram):
memory = intProgram
if memory[0] not in [1, 2, 99]:
print('Program invalid')
return
position = 0
while position <= len(memory) - 1:
int_code = memory[position]
if intCode == 1:
memory = add(position, memory)
position += 4
if intCode == 2:
memory = multiply(position, memory)
position += 4
if intCode == 99:
print('Execution complete')
output = memory[0]
return output
return
def add(position, memory):
x = memory[position + 1]
y = memory[position + 2]
z = memory[position + 3]
output = memory[x] + memory[y]
memory[z] = output
return memory
def multiply(position, memory):
x = memory[position + 1]
y = memory[position + 2]
z = memory[position + 3]
output = memory[x] * memory[y]
memory[z] = output
return memory
def run_program(noun, verb):
x_program = program()
xProgram[1] = noun
xProgram[2] = verb
x = run_intcode(xProgram)
return x
def brute_force():
noun = 0
verb = 0
output = 0
while noun <= 99:
while verb <= 99:
output = run_program(noun, verb)
if output == 19690720:
print('Solution found!')
print('Noun: ' + str(noun))
print('Verb: ' + str(verb))
return
verb += 1
noun += 1
verb = 0
return
brute_force() |
class Solution:
def minSubArrayLen(self, s: int, nums: List[int]) -> int:
ans = float('inf')
left = 0
sum_ = 0
for right, num in enumerate(nums):
sum_ += num
while left <= right and sum_ >= s:
ans = min(ans, right - left + 1)
left_val = nums[left]
sum_ -= left_val
left += 1
return ans if ans != float('inf') else 0
| class Solution:
def min_sub_array_len(self, s: int, nums: List[int]) -> int:
ans = float('inf')
left = 0
sum_ = 0
for (right, num) in enumerate(nums):
sum_ += num
while left <= right and sum_ >= s:
ans = min(ans, right - left + 1)
left_val = nums[left]
sum_ -= left_val
left += 1
return ans if ans != float('inf') else 0 |
class Solution:
def res(self, a, b):
count = 0
for i in range(1, len(a)):
if a[i] != a[0] and b[i] != a[0]:
return -1
elif a[i] != a[0]:
a[i] = b[i]
count += 1
return count
def minDominoRotations(self, A: list, B: list) -> int:
return max(self.res(A[:], B[:]), self.res(B[:], A[:]))
S = Solution()
print(S.minDominoRotations([1,2,1,1,1,2,2,2],[2,1,2,2,2,2,2,2]))
| class Solution:
def res(self, a, b):
count = 0
for i in range(1, len(a)):
if a[i] != a[0] and b[i] != a[0]:
return -1
elif a[i] != a[0]:
a[i] = b[i]
count += 1
return count
def min_domino_rotations(self, A: list, B: list) -> int:
return max(self.res(A[:], B[:]), self.res(B[:], A[:]))
s = solution()
print(S.minDominoRotations([1, 2, 1, 1, 1, 2, 2, 2], [2, 1, 2, 2, 2, 2, 2, 2])) |
# STP2019 - FALL
# Observable
class Publisher(object):
subscribers = set()
def register(self, user):
self.subscribers.add(user)
def unregister(self, user):
self.subscribers.discard(user)
def send_notifications(self, message):
for user in self.subscribers:
user.update(message)
# Observer
class Subscriber(object):
def __init__(self, id):
self.id = id
def update(self, message):
print("{} received msg: '{}'".format(self.id, message))
# Python sets __name__ to __main__ when Python executes the source file.
if __name__ == "__main__":
publisher = Publisher()
# Let's create the observers that want to receive notifications
john = Subscriber('John')
paul = Subscriber('Paul')
ringo = Subscriber('Ringo')
george = Subscriber('George')
publisher.register(john)
publisher.register(paul)
# Here, we send the registered subscribers, or observers, notifications.
publisher.send_notifications('Rolling Stones are coming')
print('-' * 72)
print(".. removing subscriber paul")
print('-' * 72)
publisher.unregister(paul)
publisher.send_notifications("Beware, Paul's the walrus")
| class Publisher(object):
subscribers = set()
def register(self, user):
self.subscribers.add(user)
def unregister(self, user):
self.subscribers.discard(user)
def send_notifications(self, message):
for user in self.subscribers:
user.update(message)
class Subscriber(object):
def __init__(self, id):
self.id = id
def update(self, message):
print("{} received msg: '{}'".format(self.id, message))
if __name__ == '__main__':
publisher = publisher()
john = subscriber('John')
paul = subscriber('Paul')
ringo = subscriber('Ringo')
george = subscriber('George')
publisher.register(john)
publisher.register(paul)
publisher.send_notifications('Rolling Stones are coming')
print('-' * 72)
print('.. removing subscriber paul')
print('-' * 72)
publisher.unregister(paul)
publisher.send_notifications("Beware, Paul's the walrus") |
def lee_entero():
while True:
entrada = raw_input("Escribe un numero entero: ")
try:
entrada = int(entrada)
return entrada
except ValueError:
print ("La entrada es incorrecta: escribe un numero entero") | def lee_entero():
while True:
entrada = raw_input('Escribe un numero entero: ')
try:
entrada = int(entrada)
return entrada
except ValueError:
print('La entrada es incorrecta: escribe un numero entero') |
'''
The __init__.py file makes Python treat directories containing it as modules.
Furthermore, this is the first file to be loaded in a module, so you can use
it to execute code that you want to run each time a module is loaded, or
specify the submodules to be exported.
''' | """
The __init__.py file makes Python treat directories containing it as modules.
Furthermore, this is the first file to be loaded in a module, so you can use
it to execute code that you want to run each time a module is loaded, or
specify the submodules to be exported.
""" |
class Exponentiation:
@staticmethod
def exponentiation(base, exponent):
return base ** exponent | class Exponentiation:
@staticmethod
def exponentiation(base, exponent):
return base ** exponent |
class Board:
def __init__(self, id) -> None:
self.id = id
self.parts = [] #note will be array of arrays [part object, qty used per board]
self.flag = False #True if stock issue
def AddPart(self, part, qty):
self.parts.append([part, qty])
def IsMatch(self, testid):
if self.id == testid:
return True
else:
return False
def Pull(self, qty):
for part in self.parts:
#print("board: " + str(self.id) + " pulling " + str(part[0].id) + " qty: " + str((part[1] * qty)))
part[0].Pull(part[1] * qty)
def IsOut(self):
for part in self.parts:
if part[0].IsOut():
self.flag = True
#print("BoardFlag: " + str(self.id))
return self.flag | class Board:
def __init__(self, id) -> None:
self.id = id
self.parts = []
self.flag = False
def add_part(self, part, qty):
self.parts.append([part, qty])
def is_match(self, testid):
if self.id == testid:
return True
else:
return False
def pull(self, qty):
for part in self.parts:
part[0].Pull(part[1] * qty)
def is_out(self):
for part in self.parts:
if part[0].IsOut():
self.flag = True
return self.flag |
# hw01_05
print('3 + 4 =', end=' ')
print(3 + 4)
'''
3 + 4 = 7
'''
| print('3 + 4 =', end=' ')
print(3 + 4)
'\n\n3 + 4 = 7\n\n' |
f = open('text1.txt')
v = open('text2.txt')
list1 = []
list2 = []
result = []
for line in f:
list1.append(line)
for line in v:
list2.append(line)
for i in range(len(list1)):
if list1[i] != list2[i]:
a = str(list1[i]) + '!=' + str(list2[i])
result.append(a)
print(result)
| f = open('text1.txt')
v = open('text2.txt')
list1 = []
list2 = []
result = []
for line in f:
list1.append(line)
for line in v:
list2.append(line)
for i in range(len(list1)):
if list1[i] != list2[i]:
a = str(list1[i]) + '!=' + str(list2[i])
result.append(a)
print(result) |
a = input("digite um numero em binario: ")
for n in (len(a)):
if n==1:
x=1
b=x*len(a)
print(b)
| a = input('digite um numero em binario: ')
for n in len(a):
if n == 1:
x = 1
b = x * len(a)
print(b) |
def find(arr,n,x):
start=0
end=n-1
result=-1
res=-1
mid=start+(end-start)//2
while start<end:
if arr[mid]==x:
result=mid
end=mid-1
elif arr[mid]>x:
end=mid-1
else:
start=mid+1
while start<end:
if arr[mid]==x:
res=mid
start=mid+1
elif arr[mid]>x:
end=mid-1
else:
start=mid+1
| def find(arr, n, x):
start = 0
end = n - 1
result = -1
res = -1
mid = start + (end - start) // 2
while start < end:
if arr[mid] == x:
result = mid
end = mid - 1
elif arr[mid] > x:
end = mid - 1
else:
start = mid + 1
while start < end:
if arr[mid] == x:
res = mid
start = mid + 1
elif arr[mid] > x:
end = mid - 1
else:
start = mid + 1 |
class Solution:
def minCostClimbingStairs(self, cost: List[int]) -> int:
min_cost = {
0: 0,
1: 0,
}
n = len(cost)
for i in range(2, n+1):
min_cost[i] = min(min_cost[i-1] + cost[i-1], min_cost[i-2] + cost[i-2])
return min_cost[n]
| class Solution:
def min_cost_climbing_stairs(self, cost: List[int]) -> int:
min_cost = {0: 0, 1: 0}
n = len(cost)
for i in range(2, n + 1):
min_cost[i] = min(min_cost[i - 1] + cost[i - 1], min_cost[i - 2] + cost[i - 2])
return min_cost[n] |
CONFIG = {
'api_key': 'to be filled out',
'api_key_secret': 'to be filled out',
'access_token': 'to be filled out',
'access_token_secret': 'to be filled out',
'images_base_folder': 'to be filled out',
'images_backlog_folder': 'to be filled out',
'telegram_token': 'to be filled out',
'admin_chat_id': 000000,
'user_chat_id': 00000,
}
| config = {'api_key': 'to be filled out', 'api_key_secret': 'to be filled out', 'access_token': 'to be filled out', 'access_token_secret': 'to be filled out', 'images_base_folder': 'to be filled out', 'images_backlog_folder': 'to be filled out', 'telegram_token': 'to be filled out', 'admin_chat_id': 0, 'user_chat_id': 0} |
def final_multipy(num: int) -> int:
if num < 10:
return num
n = 1
for i in str(num):
n *= int(i)
return final_multipy(n)
def final_multipy2(num: int) -> int:
return num if num < 10 else final_multipy2(reduce(lambda x, y: x*y, [int(i) for i in str(num)]))
| def final_multipy(num: int) -> int:
if num < 10:
return num
n = 1
for i in str(num):
n *= int(i)
return final_multipy(n)
def final_multipy2(num: int) -> int:
return num if num < 10 else final_multipy2(reduce(lambda x, y: x * y, [int(i) for i in str(num)])) |
# Copyright (c) Project Jupyter.
# Distributed under the terms of the Modified BSD License.
version_info = (0, 9, 0)
__version__ = ".".join(map(str, version_info))
| version_info = (0, 9, 0)
__version__ = '.'.join(map(str, version_info)) |
def incorrectPasscodeAttempts(passcode, attempts):
cnt = 0
for att in attempts:
if att == passcode:
cnt = 0
else:
cnt += 1
if cnt >= 10:
return True
return False | def incorrect_passcode_attempts(passcode, attempts):
cnt = 0
for att in attempts:
if att == passcode:
cnt = 0
else:
cnt += 1
if cnt >= 10:
return True
return False |
options = [
"USD",
"EUR",
"JPY",
"GBP",
"AUD",
"CAD",
"CHF",
"CNY",
"HKD",
"NZD",
"SEK",
"KRW",
"SGD",
"NOK",
"MXN",
"INR",
"RUB",
"ZAR",
"TRY",
"BRL",
]
opt2=[
"USD",
"EUR",
"JPY",
"GBP",
"AUD",
"CAD",
"CHF",
"CNY",
"HKD",
"NZD",
"SEK",
"KRW",
"SGD",
"NOK",
"MXN",
"INR",
"RUB",
"ZAR",
"TRY",
"BRL",
]
| options = ['USD', 'EUR', 'JPY', 'GBP', 'AUD', 'CAD', 'CHF', 'CNY', 'HKD', 'NZD', 'SEK', 'KRW', 'SGD', 'NOK', 'MXN', 'INR', 'RUB', 'ZAR', 'TRY', 'BRL']
opt2 = ['USD', 'EUR', 'JPY', 'GBP', 'AUD', 'CAD', 'CHF', 'CNY', 'HKD', 'NZD', 'SEK', 'KRW', 'SGD', 'NOK', 'MXN', 'INR', 'RUB', 'ZAR', 'TRY', 'BRL'] |
# noinspection PyShadowingBuiltins,PyUnusedLocal
def compute(x, y):
if all(0 <= n <= 100 for n in (x, y)):
return x + y
else:
raise ValueError('Please provide two integer numbers')
| def compute(x, y):
if all((0 <= n <= 100 for n in (x, y))):
return x + y
else:
raise value_error('Please provide two integer numbers') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.