content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def multiply_list(start, stop): product = 1 for element in range(start, stop): product = product * element return product x = multiply_list(1, 4) print(x)
def multiply_list(start, stop): product = 1 for element in range(start, stop): product = product * element return product x = multiply_list(1, 4) print(x)
''' Solution 1: Let sum[i] = Sum of all subsequences containing element n[i] with any of the previous elements. Let num[i] = Number of subsequences from 0 till i inclusive = 2^(i+1) sum[i] = sum[i-1] + num[i-1] * n[i] (Since we can append n[i] to all the num[i-1] sequences) sum[i] = sum[i-1] + 2^(i) * n[i] ans[i] = ans[i-1] + sum[i] (The subsequences covered by the sum[i]'s are all unique and separate.) Answer = sum[0] + sum[1] + ... Solution 2: All the elements occur exactly 2^(n-1) times in the resultant power set. Draw a boolean truth table to prove this. So answer = (sum of all elements) * 2^(n-1) '''
""" Solution 1: Let sum[i] = Sum of all subsequences containing element n[i] with any of the previous elements. Let num[i] = Number of subsequences from 0 till i inclusive = 2^(i+1) sum[i] = sum[i-1] + num[i-1] * n[i] (Since we can append n[i] to all the num[i-1] sequences) sum[i] = sum[i-1] + 2^(i) * n[i] ans[i] = ans[i-1] + sum[i] (The subsequences covered by the sum[i]'s are all unique and separate.) Answer = sum[0] + sum[1] + ... Solution 2: All the elements occur exactly 2^(n-1) times in the resultant power set. Draw a boolean truth table to prove this. So answer = (sum of all elements) * 2^(n-1) """
# This class is an object blueprint for all video content class Video(): def __init__(self, title, duration, rating): """Video class - Normally subclassed""" #constructor self.title = title self.duration = duration self.rating = rating
class Video: def __init__(self, title, duration, rating): """Video class - Normally subclassed""" self.title = title self.duration = duration self.rating = rating
class WorksheetExt: def __init__(self, worksheet): self.worksheet = worksheet self.row = 0 self.is_pvs = False def row_inc(self): self.row += 1 def get_row(self): return self.row def is_pvs_added(self): return self.is_pvs def add_header_row(self, hlist, hformat): column = 0 for item in hlist: self.worksheet.write(self.row, column, item, hformat) column += 1 self.row_inc() def add_subheader(self, text, cformat): self.row_inc() self.worksheet.write(self.row, 0, text, cformat) for i in range(1, 4): self.worksheet.write(self.row, i, "", cformat) self.row_inc() def add_pvs(self, cformat): self.is_pvs = True self.add_subheader("PVS Report:", cformat)
class Worksheetext: def __init__(self, worksheet): self.worksheet = worksheet self.row = 0 self.is_pvs = False def row_inc(self): self.row += 1 def get_row(self): return self.row def is_pvs_added(self): return self.is_pvs def add_header_row(self, hlist, hformat): column = 0 for item in hlist: self.worksheet.write(self.row, column, item, hformat) column += 1 self.row_inc() def add_subheader(self, text, cformat): self.row_inc() self.worksheet.write(self.row, 0, text, cformat) for i in range(1, 4): self.worksheet.write(self.row, i, '', cformat) self.row_inc() def add_pvs(self, cformat): self.is_pvs = True self.add_subheader('PVS Report:', cformat)
class Solution: """ @param ratings: Children's ratings @return: the minimum candies you must give """ def candy(self, ratings): if not ratings: return 0 pre_rating = ratings[0] now_candy = 1 left2right_candies = [now_candy] for rating in ratings[1:]: if rating > pre_rating: now_candy += 1 left2right_candies.append(now_candy) else: now_candy = 1 left2right_candies.append(now_candy) pre_rating = rating pre_rating = ratings[-1] now_candy = 1 right2left_candies = [now_candy] for rating in ratings[:-1][::-1]: if rating > pre_rating: now_candy += 1 right2left_candies.append(now_candy) else: now_candy = 1 right2left_candies.append(now_candy) pre_rating = rating candies = [max(left2right_candies[i], right2left_candies[-i-1]) for i in range(len(ratings))] return sum(candies) # class Solution: # """ # @param ratings: Children's ratings # @return: the minimum candies you must give # """ # def candy(self, ratings): # if not ratings: # return 0 # if len(ratings) == 1: # return 1 # pre_rating = ratings[0] # now_candy = 1 # ans = now_candy # increasing = 1 if ratings[1] > pre_rating else -1 # top = 0 # now_top = 0 # for rating in ratings[1:]: # if increasing * rating > increasing * pre_rating: # now_candy += 1 # now_top = now_candy # ans += now_candy # elif rating == pre_rating: # now_candy = 1 # ans += now_candy # now_top = now_candy # else: # if increasing < 0: # if now_top >= top and top != 0: # ans += now_top - top + 1 # now_top = now_candy = 2 # else: # top = now_top # now_top = now_candy = 1 # ans += now_candy # increasing = -increasing # pre_rating = rating # print(ans) # print((increasing, now_top, top)) # if increasing < 0 and now_top >= top and top != 0: # ans += now_top - top + 1 # return ans
class Solution: """ @param ratings: Children's ratings @return: the minimum candies you must give """ def candy(self, ratings): if not ratings: return 0 pre_rating = ratings[0] now_candy = 1 left2right_candies = [now_candy] for rating in ratings[1:]: if rating > pre_rating: now_candy += 1 left2right_candies.append(now_candy) else: now_candy = 1 left2right_candies.append(now_candy) pre_rating = rating pre_rating = ratings[-1] now_candy = 1 right2left_candies = [now_candy] for rating in ratings[:-1][::-1]: if rating > pre_rating: now_candy += 1 right2left_candies.append(now_candy) else: now_candy = 1 right2left_candies.append(now_candy) pre_rating = rating candies = [max(left2right_candies[i], right2left_candies[-i - 1]) for i in range(len(ratings))] return sum(candies)
# # PySNMP MIB module LBHUB-ECS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LBHUB-ECS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:05: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) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, ModuleIdentity, ObjectIdentity, NotificationType, iso, Gauge32, Unsigned32, enterprises, TimeTicks, IpAddress, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Counter64, NotificationType, MibIdentifier, mgmt = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ModuleIdentity", "ObjectIdentity", "NotificationType", "iso", "Gauge32", "Unsigned32", "enterprises", "TimeTicks", "IpAddress", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Counter64", "NotificationType", "MibIdentifier", "mgmt") DisplayString, TextualConvention, PhysAddress = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "PhysAddress") mib_2 = MibIdentifier((1, 3, 6, 1, 2, 1)).setLabel("mib-2") class DisplayString(OctetString): pass class PhysAddress(OctetString): pass system = MibIdentifier((1, 3, 6, 1, 2, 1, 1)) interfaces = MibIdentifier((1, 3, 6, 1, 2, 1, 2)) at = MibIdentifier((1, 3, 6, 1, 2, 1, 3)) ip = MibIdentifier((1, 3, 6, 1, 2, 1, 4)) icmp = MibIdentifier((1, 3, 6, 1, 2, 1, 5)) tcp = MibIdentifier((1, 3, 6, 1, 2, 1, 6)) udp = MibIdentifier((1, 3, 6, 1, 2, 1, 7)) egp = MibIdentifier((1, 3, 6, 1, 2, 1, 8)) transmission = MibIdentifier((1, 3, 6, 1, 2, 1, 10)) snmp = MibIdentifier((1, 3, 6, 1, 2, 1, 11)) a3Com = MibIdentifier((1, 3, 6, 1, 4, 1, 43)) products = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1)) terminalServer = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 1)) dedicatedBridgeServer = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 2)) dedicatedRouteServer = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 3)) brouter = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 4)) genericMSWorkstation = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 5)) genericMSServer = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 6)) genericUnixServer = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 7)) hub = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 8)) cards = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9)) linkBuilder3GH = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 1)) linkBuilder10BTi = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 2)) linkBuilderECS = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 3)) linkBuilderMSH = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 4)) linkBuilderFMS = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 5)) linkBuilderFMSLBridge = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 10)) linkBuilderFMSII = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 7)) linkBuilder3GH_cards = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 1)).setLabel("linkBuilder3GH-cards") linkBuilder10BTi_cards = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 2)).setLabel("linkBuilder10BTi-cards") linkBuilderECS_cards = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 3)).setLabel("linkBuilderECS-cards") linkBuilderMSH_cards = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 4)).setLabel("linkBuilderMSH-cards") linkBuilderFMS_cards = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5)).setLabel("linkBuilderFMS-cards") linkBuilderFMSII_cards = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6)).setLabel("linkBuilderFMSII-cards") linkBuilder10BTi_cards_utp = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 2, 1)).setLabel("linkBuilder10BTi-cards-utp") linkBuilder10BT_cards_utp = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 2, 2)).setLabel("linkBuilder10BT-cards-utp") linkBuilderFMS_cards_utp = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 1)).setLabel("linkBuilderFMS-cards-utp") linkBuilderFMS_cards_coax = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 2)).setLabel("linkBuilderFMS-cards-coax") linkBuilderFMS_cards_fiber = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 3)).setLabel("linkBuilderFMS-cards-fiber") linkBuilderFMS_cards_12fiber = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 4)).setLabel("linkBuilderFMS-cards-12fiber") linkBuilderFMS_cards_24utp = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 5)).setLabel("linkBuilderFMS-cards-24utp") linkBuilderFMSII_cards_12tp_rj45 = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 1)).setLabel("linkBuilderFMSII-cards-12tp-rj45") linkBuilderFMSII_cards_10coax_bnc = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 2)).setLabel("linkBuilderFMSII-cards-10coax-bnc") linkBuilderFMSII_cards_6fiber_st = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 3)).setLabel("linkBuilderFMSII-cards-6fiber-st") linkBuilderFMSII_cards_12fiber_st = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 4)).setLabel("linkBuilderFMSII-cards-12fiber-st") linkBuilderFMSII_cards_24tp_rj45 = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 5)).setLabel("linkBuilderFMSII-cards-24tp-rj45") linkBuilderFMSII_cards_24tp_telco = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 6)).setLabel("linkBuilderFMSII-cards-24tp-telco") amp_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 3)).setLabel("amp-mib") genericTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 4)) viewBuilderApps = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 5)) specificTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 6)) linkBuilder3GH_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 7)).setLabel("linkBuilder3GH-mib") linkBuilder10BTi_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 8)).setLabel("linkBuilder10BTi-mib") linkBuilderECS_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9)).setLabel("linkBuilderECS-mib") generic = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10)) genExperimental = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 1)) setup = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 2)) sysLoader = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 3)) security = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 4)) gauges = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 5)) asciiAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 6)) serialIf = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 7)) repeaterMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 8)) endStation = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 9)) localSnmp = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 10)) manager = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 11)) unusedGeneric12 = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 12)) chassis = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 14)) mrmResilience = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 15)) tokenRing = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 16)) multiRepeater = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 17)) bridgeMgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 18)) fault = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 19)) poll = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 20)) powerSupply = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 21)) testData = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 1, 1)) ifExtensions = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 10, 1, 2)) netBuilder_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 11)).setLabel("netBuilder-mib") lBridgeECS_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 12)).setLabel("lBridgeECS-mib") deskMan_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 13)).setLabel("deskMan-mib") linkBuilderMSH_mib = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 14)).setLabel("linkBuilderMSH-mib") ecsAgent = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 1)) ecsEnvironment = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 2)) ecsRLCResilientLinks = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 3)) ecsSecureRepeaterLineCards = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 4)) ecsRepeaterLineCard = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 5)) ecsRLCStationLocate = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 6)) ecsHubStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 8)) ecsVideo = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 9)) lbecsXENDOFMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 255)) ecsAgentSystemIdentifier = MibIdentifier((1, 3, 6, 1, 4, 1, 43, 9, 1, 1)) ecsManufacturerId = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsManufacturerId.setStatus('deprecated') if mibBuilder.loadTexts: ecsManufacturerId.setDescription('An atrribute to identify the manufacturer') ecsManufacturerProductId = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsManufacturerProductId.setStatus('mandatory') if mibBuilder.loadTexts: ecsManufacturerProductId.setDescription('An attribute to identify the product id.') ecsSoftwareVersionNumber = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSoftwareVersionNumber.setStatus('deprecated') if mibBuilder.loadTexts: ecsSoftwareVersionNumber.setDescription('An atrribute to identify the software version.') ecsHardwareVersionNumber = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHardwareVersionNumber.setStatus('deprecated') if mibBuilder.loadTexts: ecsHardwareVersionNumber.setDescription('An atrribute to identify the hardware version.') ecsAgentSystemName = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(32, 32)).setFixedLength(32)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentSystemName.setStatus('deprecated') if mibBuilder.loadTexts: ecsAgentSystemName.setDescription('This is an informational string that could be used to show the name of the ECSAgent or management agent.') ecsAgentSystemLocation = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(32, 32)).setFixedLength(32)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentSystemLocation.setStatus('deprecated') if mibBuilder.loadTexts: ecsAgentSystemLocation.setDescription('This is an informational string that could be used to show the physical location (i.e., area) of the ecsAgent or management agent.') ecsAgentSystemTime = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 4), TimeTicks()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentSystemTime.setStatus('deprecated') if mibBuilder.loadTexts: ecsAgentSystemTime.setDescription('A representation of the system time of the management system, taken from the epoch.') ecsAgentStatus = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("offline", 1), ("online", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAgentStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentStatus.setDescription('Indicates that the management agent is on line and operating.') ecsAgentAuthenticationStatus = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAgentAuthenticationStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentAuthenticationStatus.setDescription('Indicates whether management frames are checked against entries in the management tranmiter table.') ecsAgentSecureManagementStatus = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("secure-menu-entered", 3), ("secure-password-violation", 4), ("secure-config-update", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAgentSecureManagementStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentSecureManagementStatus.setDescription('Indicates whether the remote management of the security features of the ECS are enabled or not.') ecsAgentFrontPanelSetupPassword = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentFrontPanelSetupPassword.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelSetupPassword.setDescription('The password used to gain access to the configuration features of the front panel control of the device.') ecsAgentFrontPanelDisplay = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentFrontPanelDisplay.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelDisplay.setDescription('The string displayed on the front panel.') ecsAgentFrontPanelPassword = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentFrontPanelPassword.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelPassword.setDescription('The password used to gain access to the front panel control of the device.') ecsAgentFrontPanelSecurePassword = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentFrontPanelSecurePassword.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelSecurePassword.setDescription('The password used to gain access to the security features of the front panel control of the device. This attribute is not viewable until secure remote management is enabled.') ecsAgentFrontPanelLock = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("off", 1), ("on", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentFrontPanelLock.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelLock.setDescription('The station front panel status.') ecsAgentResetDevice = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notreset", 1), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentResetDevice.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentResetDevice.setDescription('Network management module reset status. Writing a 2 to this object will reset the management agent.') ecsAgentRestart = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notrestart", 1), ("restart", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentRestart.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentRestart.setDescription('Network management module restart status. Writing a 2 to his object will restart the management agent. This initializes all the counters, rereads the NVRAM data structure, and starts executing from the beginning of the code.') ecsAgentDefaultConfig = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("reverting", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentDefaultConfig.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentDefaultConfig.setDescription('The device is returned to its factory settings.') ecsAgentManagementTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 1, 20), ) if mibBuilder.loadTexts: ecsAgentManagementTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManagementTable.setDescription("This entity's management address table. (10 entries)") ecsAgentManagementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 1, 20, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsAgentManagementAddr")) if mibBuilder.loadTexts: ecsAgentManagementEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManagementEntry.setDescription(' A source address address and privileges of a particular management station.') ecsAgentManagementAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 1, 20, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentManagementAddr.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManagementAddr.setDescription('IpAddress of the management station. ') ecsAgentManagementAccess = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 1, 20, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("invalid", 1), ("off", 2), ("superread", 3), ("superreadwrite", 4), ("readonly", 5), ("readwrite", 6), ("readonlysecure", 7), ("readwritesecure", 8)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentManagementAccess.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManagementAccess.setDescription('Setting this object to the value invalid(1) invalidates the corresponding entry in the ecsAgentManagementTable. That is, it effectively disassociates the address identified with the entry by removing the entry from the table.') ecsAgentManAccessLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 1, 20, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentManAccessLevel.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManAccessLevel.setDescription('The level of aceess attributed to tthis entry in the table.') ecsAgentTrapReceiverTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 1, 21), ) if mibBuilder.loadTexts: ecsAgentTrapReceiverTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapReceiverTable.setDescription("This entity's Trap Receiver Table. (10 entries)") ecsAgentTrapReceiverEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsAgentTrapReceiverAddr")) if mibBuilder.loadTexts: ecsAgentTrapReceiverEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapReceiverEntry.setDescription(' A destination address and community string for a particular trap receiver.') ecsAgentTrapReceiverAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentTrapReceiverAddr.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapReceiverAddr.setDescription('IpAddress for trap receiver.') ecsAgentTrapType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=NamedValues(("invalid", 1), ("off-on", 2), ("generic", 3), ("psu", 4), ("fanfail", 5), ("configuractionchange", 6), ("port", 7), ("resilience", 8), ("rate", 9), ("stationlocate", 10), ("secure", 11), ("secureport", 12)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentTrapType.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapType.setDescription('Setting this object to the value invalid(1) invalidates the corresponding entry in the ECSAgentTrapReceiverTable. That is, it effectively disassociates the address identified with the entry by removing the entry from the table.') ecsAgentTrapReceiverComm = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentTrapReceiverComm.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapReceiverComm.setDescription('Community string used for traps.') ecsAgentTrapLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAgentTrapLevel.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapLevel.setDescription('Indicates the type of traps that will be sent to this address.') ecsAgentAuthTrapState = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentAuthTrapState.setStatus('deprecated') if mibBuilder.loadTexts: ecsAgentAuthTrapState.setDescription('Enable or disable the use of authentication error trap generation.') ecsAgentIpAddr = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 23), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentIpAddr.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentIpAddr.setDescription("The network management module's administrative IpAddress. The current operational IpAddress can be obtained from the ipAdEntAddr entry in the ipAddrTable.") ecsAgentIpNetmask = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 24), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentIpNetmask.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentIpNetmask.setDescription("The network management module's administrative subnet mask. The current operational subnet mask can be obtained from the ipAdEntNetMask entry in the ipAddrTable.") ecsAgentDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 25), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentDefaultGateway.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentDefaultGateway.setDescription("The network management module's administrative default gateway IpAddress. The current operational default gateway's IpAddress can be obtained from the ipRoutingTable.") ecsAgentIpBroadAddr = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 26), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentIpBroadAddr.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentIpBroadAddr.setDescription("The network management module's adminstrative default broadcast address") ecsAgentMACAddress = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 27), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAgentMACAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentMACAddress.setDescription('The MAC address of the ECS Agent.') ecsAgentSecureTrapState = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAgentSecureTrapState.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentSecureTrapState.setDescription('Enable or disable the generation of security traps.') ecsAgentLastSystemError = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 29), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAgentLastSystemError.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentLastSystemError.setDescription('The error number of the last system error.') ecsAgentLastTrap = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 30), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAgentLastTrap.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentLastTrap.setDescription('The time, taken from the epoch when the last trap or event would have been generated.') ecsRackType = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("ecs4", 2), ("ecs10", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRackType.setStatus('mandatory') if mibBuilder.loadTexts: ecsRackType.setDescription('The rack type of the LinkBuilder ECS.') ecsRackConfigurationTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 2, 2), ) if mibBuilder.loadTexts: ecsRackConfigurationTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRackConfigurationTable.setDescription('The current configuration of the Ether Connect System rack.') ecsSlotConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsSlotConfigIndex")) if mibBuilder.loadTexts: ecsSlotConfigEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotConfigEntry.setDescription('The description of the type of module in each slot.') ecsSlotConfigIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSlotConfigIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotConfigIndex.setDescription('The device type found in a slot.') ecsSlotCardName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsSlotCardName.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotCardName.setDescription('This is an informational string that could be used to show the name of a card.') ecsSlotDeviceType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("empty", 1), ("unknown", 2), ("managementcard", 3), ("thinEthernetCard", 4), ("thinEthernetCardpAUI", 5), ("unshieldedTwistedPair", 6), ("fibre", 7), ("bridge-Line-Card", 8), ("monitor", 9), ("shieldedTwistedPair", 10), ("fanout", 11), ("secureUnshieldedTP", 12), ("secureSheildedTP", 13), ("secureFibre", 14), ("secureFanout", 15), ("secureThinEthernet", 16), ("terminalserver", 17), ("remotebridge", 18), ("videoswitch", 19)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSlotDeviceType.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotDeviceType.setDescription('The device type found in a slot.') ecsSlotSoftVerNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSlotSoftVerNum.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotSoftVerNum.setDescription('A description of the software version number.') ecsSlotHardVerNum = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSlotHardVerNum.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotHardVerNum.setDescription('Hardware version number of the card.') ecsSlotNumOfPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSlotNumOfPorts.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotNumOfPorts.setDescription('The number of repeater ports on the card.') ecsSlotMediaType = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSlotMediaType.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotMediaType.setDescription('The media type associated with this slot can take on the following values: No port, AUI, Cheapernet, FOIRL, UTP, STP, FOASTAR, Through air, Plastic Fibre.') ecsCardReset = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("not-reset", 1), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCardReset.setStatus('mandatory') if mibBuilder.loadTexts: ecsCardReset.setDescription('The hardware for specified repeater line card is reset.') ecsLampOverRide = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsLampOverRide.setStatus('mandatory') if mibBuilder.loadTexts: ecsLampOverRide.setDescription('The lamps on the specified repeater line card are forced on for normal operation.') ecsCardIsolated = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("not-isolated", 1), ("isolated", 2), ("cant-isolate", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCardIsolated.setStatus('mandatory') if mibBuilder.loadTexts: ecsCardIsolated.setDescription('The LinkBuilder ECS card is isolated from the chassis backplane.') ecsCardIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 11), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCardIpAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsCardIpAddress.setDescription('For some devices the LinkBuilder ECS may be able to determine the IP address of a intelligent card that is in the slot. If the value returned is 0.0.0.0 then this indicates that the address can not be determined.') ecsPSUStatus = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ok", 1), ("psu1failed", 2), ("psu2failed", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsPSUStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsPSUStatus.setDescription('The status of the PSUs in the LinkBuilder ECS.') ecsFanStatus = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ok", 1), ("failed", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsFanStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsFanStatus.setDescription('The status of the fans in the LinkBuilder ECS.') ecsRLCNumberOfResilientLinks = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCNumberOfResilientLinks.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNumberOfResilientLinks.setDescription('The number of resilient links currently configured on the LinkBuilder ECS.') ecsRLCNumberOfDOBPorts = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 3, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCNumberOfDOBPorts.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNumberOfDOBPorts.setDescription('The total number of ports that are disabled on boot, making them suitable for use with resilient links.') ecsRLCResilientLinkTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 3, 3), ) if mibBuilder.loadTexts: ecsRLCResilientLinkTable.setStatus('mandatory') ecsRLCResilientLinkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsRLMainLinkSlot"), (0, "LBHUB-ECS-MIB", "ecsRLMainLinkPort")) if mibBuilder.loadTexts: ecsRLCResilientLinkEntry.setStatus('mandatory') ecsRLMainLinkSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRLMainLinkSlot.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLMainLinkSlot.setDescription('The Slot Number for the main link of this resilient link.') ecsRLMainLinkPort = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRLMainLinkPort.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLMainLinkPort.setDescription('The Port Number for the main link of this resilient link.') ecsRLStandbySlot = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRLStandbySlot.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLStandbySlot.setDescription('The Slot Number for the standby link of this resilient link.') ecsRLStandbyPort = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRLStandbyPort.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLStandbyPort.setDescription('The Port Number for the standby link of this resilient link.') ecsRLActiveLink = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("none", 2), ("main", 3), ("standby", 4), ("both", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLActiveLink.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLActiveLink.setDescription('The resilient link currently in use for traffic transmission. For a read the attribute indicates which link is active. A new link will always be configured with the main link being the active link. If the link status cannot be determined, the value unknown(1) is returned.') ecsResLinkState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=NamedValues(("invalid", 1), ("operational", 2), ("non-operational", 3), ("switchlink", 4), ("standby-jumperfault", 5), ("main-absent", 6), ("standby-absent", 7), ("main-failed", 8), ("standby-failed", 9), ("both-failed", 10)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsResLinkState.setStatus('mandatory') ecsSecureRLCMode = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSecureRLCMode.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecureRLCMode.setDescription('Determines whether the management of Secure Repeater Line Cards is disabled or not.') ecsSecureTrapRepRate = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("continuous", 1), ("one-minute", 2), ("fifteen-mins", 3), ("sixty-minutes", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsSecureTrapRepRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecureTrapRepRate.setDescription('Determines the rate at which secure traps are sent for a security violation.') ecsSecureRLCTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 4, 3), ) if mibBuilder.loadTexts: ecsSecureRLCTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecureRLCTable.setDescription('A table which allows management of the secure Repeater Line Cards.') ecsSecureRLCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsSecRLCSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsSecRLCPortIndex")) if mibBuilder.loadTexts: ecsSecureRLCEntry.setStatus('mandatory') ecsSecRLCSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSecRLCSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCSlotIndex.setDescription('The secure repeater line card slot index') ecsSecRLCPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSecRLCPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCPortIndex.setDescription('The secure repeater line card port index') ecsSecRLCLinkState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("secure", 2), ("repeater", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsSecRLCLinkState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCLinkState.setDescription('Attribute to determine whether the security features are enabled on this port of the secure Repeater Line Card.') ecsSecRLCPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3), ("unauthorised-station-seen", 4), ("unauthorised-station-port-disabled", 5), ("authorised-station-learnt", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsSecRLCPortState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCPortState.setDescription('Attribute to determine whether the port can be normally enabled.') ecsSecRLCNTKState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsSecRLCNTKState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCNTKState.setDescription('Attribute to determine whether the Need to Know feature is enabled on the secure Repeater Line Card.') ecsSecRLCBroadState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsSecRLCBroadState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCBroadState.setDescription('Attribute to determine whether broadcasts are allowed or not allowed to be transmitted.') ecsSecRLCMultiState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("disabled", 2), ("enabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsSecRLCMultiState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCMultiState.setDescription('Attribute to determine whether multicasts are allowed or not allowed to be transmitted.') ecsSecRLCLearnMode = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("single", 2), ("continual", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsSecRLCLearnMode.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCLearnMode.setDescription('Attribute to determine the learning mode of the secure repeater line card.') ecsSecRLCReportMode = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("off", 1), ("reportonly", 2), ("disconnectandreport", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsSecRLCReportMode.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCReportMode.setDescription('Attribute to determine the reporting mode of the secure repeater line card.') ecsSecRLCMACAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 10), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsSecRLCMACAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCMACAddress.setDescription('The MAC address in use by the secure repeater line card.') ecsRLCPortStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 1), ) if mibBuilder.loadTexts: ecsRLCPortStatisticsTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCPortStatisticsTable.setDescription('A table which summaries the statistics for each active port/slot') ecsRLCPortStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsRepeaterSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsRepeaterPortIndex")) if mibBuilder.loadTexts: ecsRLCPortStatisticsEntry.setStatus('mandatory') ecsRepeaterSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRepeaterSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterSlotIndex.setDescription('The repeater slot index.') ecsRepeaterPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRepeaterPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterPortIndex.setDescription('The repeater port index.') ecsRepeaterPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("disabled-linkdown", 3), ("enabled-linkdown", 4), ("disabled-linkup", 5), ("enabled-linkup", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRepeaterPortState.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterPortState.setDescription('The repeater port state.') ecsRepeaterPartitionState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("partitioned", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRepeaterPartitionState.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterPartitionState.setDescription('The repeater port partition state.') ecsGoodRcvdFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsGoodRcvdFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsGoodRcvdFrames.setDescription('The number of good frames which have been received and repeted by the specified port.') ecsTotalByteCount = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsTotalByteCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsTotalByteCount.setDescription('The summation of the total number of bytes which have been received in good frames and repeated by the specified port.') ecsTotalErrorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsTotalErrorCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsTotalErrorCount.setDescription('The summaration of all of the errors recorded in the PortErrors table for the specified port') ecsRxBroadcastFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRxBroadcastFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsRxBroadcastFrames.setDescription('The number of broadcast frames received on this port.') ecsRxMulticastFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRxMulticastFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsRxMulticastFrames.setDescription('The number of broadcast frames received on this port.') ecsRLCPortErrorTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 2), ) if mibBuilder.loadTexts: ecsRLCPortErrorTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCPortErrorTable.setDescription('A table which summaries the error counts for each active port and slot') ecsRLCPortErrorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsErrorSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsErrorPortIndex")) if mibBuilder.loadTexts: ecsRLCPortErrorEntry.setStatus('mandatory') ecsErrorSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsErrorSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsErrorSlotIndex.setDescription('The repeater slot index') ecsErrorPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsErrorPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsErrorPortIndex.setDescription('The repeater port index.') ecsCollisionsCount = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCollisionsCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionsCount.setDescription('A count of every attempt to transmit a frame that involved a collision.') ecsPartitions = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsPartitions.setStatus('mandatory') if mibBuilder.loadTexts: ecsPartitions.setDescription('The count of the number of partitions which have been detected by the specified port.') ecsCarrierSenseErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCarrierSenseErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseErrors.setDescription('The number of carrier sense errors which have been detected by the specified port.') ecsAlignErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAlignErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignErrors.setDescription('The number of frames with alignment errors which have been received by the specified port.') ecsCRCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCRCErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCErrors.setDescription('The number of frames with CRC errors which have been received by the specified port.') ecsJabberErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsJabberErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberErrors.setDescription('The number of jabber errors which have been detected by the specified port.') ecsRLCPortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 3), ) if mibBuilder.loadTexts: ecsRLCPortInfoTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCPortInfoTable.setDescription('A table which summaries the status information for each active port/slot') ecsRLCPortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsInfoSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsInfoPortIndex")) if mibBuilder.loadTexts: ecsRLCPortInfoEntry.setStatus('mandatory') ecsInfoSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsInfoSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsInfoSlotIndex.setDescription('The repeater slot index') ecsInfoPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsInfoPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsInfoPortIndex.setDescription('The repeater port index') ecsInfoPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsInfoPortName.setStatus('mandatory') if mibBuilder.loadTexts: ecsInfoPortName.setDescription('This is an informational string that could be used to show the name of a port.') ecsRepeaterPartitionAlgor = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRepeaterPartitionAlgor.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterPartitionAlgor.setDescription('The current state of the repeater port algorithm.') ecsJabberLockProtect = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsJabberLockProtect.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberLockProtect.setDescription('The current state of the jabber protect switch. This affects all ports on the repeater ULA (not necessarily all ports on the card).') ecsPortTest = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("not-in-test", 1), ("test", 2), ("passed", 3), ("failed", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsPortTest.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortTest.setDescription('The Loopback test is performed on the specified port. This will interrupt traffic on all ports on the repeater ULA (not necessarily all ports on the card in a specified slot) while the test is in progress.') ecsPortErrorState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 255))).clone(namedValues=NamedValues(("none", 1), ("normal", 2), ("hi-collision", 3), ("partition", 4), ("high-crc-errorrate", 5), ("high-alignment-errorrate", 6), ("high-traffic-rate", 7), ("high-jabber-errorrate", 8), ("high-carriersense-errorrate", 9), ("unpartitioned", 10), ("linkstatechange-up", 11), ("linkstatechange-down", 12), ("acknowledged", 255)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsPortErrorState.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortErrorState.setDescription("The error status of the specified port. Under normal conditions this takes the value 'normal' specifying that no error condition has been detected.") ecsPortReset = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("not-reset", 1), ("reset", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsPortReset.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortReset.setDescription('The specified port is reset. This will interrupt traffic on all ports on the repeater ULA (not necessarily all ports on the card in a specified slot) while the reset is in progress.') ecsPortPartitionTraps = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("yes", 1), ("no", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsPortPartitionTraps.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortPartitionTraps.setDescription('Determines whether partition traps will be sent for this port.') ecsPortLinkTraps = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("yes", 1), ("no", 2), ("not-applicable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsPortLinkTraps.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortLinkTraps.setDescription('Determines whether link traps will be sent for this port.') ecsPortBootState = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsPortBootState.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortBootState.setDescription('Determines whether the port is disabled on boot (DOB), and therefore suitable for resilient link use.') ecsPortSLMode = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsPortSLMode.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortSLMode.setDescription('Determines whether station locate is enabled for this port.') ecsRLCcrcTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 4), ) if mibBuilder.loadTexts: ecsRLCcrcTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCcrcTable.setDescription('Level at which port rate error rate trap is produced.') ecsRLCcrcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsCRCSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsCRCPortIndex")) if mibBuilder.loadTexts: ecsRLCcrcEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCcrcEntry.setDescription('The number of frames with CRC errors which have been received by the specified port.') ecsCRCSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCRCSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCSlotIndex.setDescription('The repeater slot index') ecsCRCPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCRCPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCPortIndex.setDescription('The repeater port index') ecsCRCErrorRate = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCRCErrorRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCErrorRate.setDescription('The gauge representing the CRC error rate. This is configured using the CRC error rate configuration.') ecsCRCThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCRCThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCThreshold.setDescription('Level at which port rate error rate trap is produced.') ecsCRCDecRateValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCRCDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCDecRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ).') ecsCRCDecRateUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("microseconds", 2), ("milliseconds", 3), ("seconds", 4), ("minutes", 5), ("hours", 6), ("days", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCRCDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecsCRCHysteresisValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCRCHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCHysteresisValue.setDescription('Specifies the value to which the CRC error guage must fall before another crossing of the threshold results in a trap.') ecsRLCtrafficTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 5), ) if mibBuilder.loadTexts: ecsRLCtrafficTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCtrafficTable.setDescription('The configuration parameters which must be set up in order to use the traffic rate guage.') ecsRLCtrafficEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsTrafficSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsTrafficPortIndex")) if mibBuilder.loadTexts: ecsRLCtrafficEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCtrafficEntry.setDescription('') ecsTrafficSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsTrafficSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficSlotIndex.setDescription('The repeater slot index') ecsTrafficPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsTrafficPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficPortIndex.setDescription('The repeater port index') ecsTrafficRate = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsTrafficRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficRate.setDescription('The gauge representing the rate at which good frames have been received and repeated. This is configured using the traffic rate configuration.') ecsTrafficThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsTrafficThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficThreshold.setDescription('Level at which port rate error rate trap is produced.') ecsTrafficDecRateValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsTrafficDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficDecRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ).') ecsTrafficDecRateUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("microseconds", 2), ("milliseconds", 3), ("seconds", 4), ("minutes", 5), ("hours", 6), ("days", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsTrafficDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecsTrafficHysteresisValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsTrafficHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficHysteresisValue.setDescription('Specifies the value to which the CRC error guage must fall before another crossing of the threshold results in a trap.') ecsRLCcollisionTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 6), ) if mibBuilder.loadTexts: ecsRLCcollisionTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCcollisionTable.setDescription('The configuration parameters which must be set up in order to use the collision rate guage.') ecsRLCcollisionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsCollisionSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsCollisionPortIndex")) if mibBuilder.loadTexts: ecsRLCcollisionEntry.setStatus('mandatory') ecsCollisionSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCollisionSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionSlotIndex.setDescription('The repeater slot index') ecsCollisionPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCollisionPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionPortIndex.setDescription('The repeater port index') ecsCollisionRate = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCollisionRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionRate.setDescription('The gauge representing the rate at which collisions have been detected. This is configured using the collision rate configuration.') ecsCollisionThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCollisionThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionThreshold.setDescription('Level at which the collision rate guage will produce a High Collision rate trap.') ecsCollisionDecRateValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCollisionDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionDecRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ).') ecsCollisionDecRateUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("microseconds", 2), ("milliseconds", 3), ("seconds", 4), ("minutes", 5), ("hours", 6), ("days", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCollisionDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecsCollisionHysteresisValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCollisionHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionHysteresisValue.setDescription('Specifies the value to which the Collision guage must fall before another crossing of the threshold results in a trap.') ecsRLCjabberTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 7), ) if mibBuilder.loadTexts: ecsRLCjabberTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCjabberTable.setDescription('The configuration parameters which must be set up in order to use the jabber rate guage.') ecsRLCjabberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsJabberSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsJabberPortIndex")) if mibBuilder.loadTexts: ecsRLCjabberEntry.setStatus('mandatory') ecsJabberSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsJabberSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberSlotIndex.setDescription('The repeater slot index') ecsJabberPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsJabberPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberPortIndex.setDescription('The repeater port index') ecsJabberErrorRate = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsJabberErrorRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberErrorRate.setDescription('The gauge representing the rate at which jabber errors have been detected. This is configured using the jabber rate configuration.') ecsJabberThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsJabberThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberThreshold.setDescription('Level at which port rate error rate trap is produced.') ecsJabberDecRateValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsJabberDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberDecRateValue.setDescription('VALUE that, along with Rate Units, determine the Rate Interval, Rate Interval = ( Units * Value )') ecsJabberDecRateUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("microseconds", 2), ("milliseconds", 3), ("seconds", 4), ("minutes", 5), ("hours", 6), ("days", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsJabberDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecsJabberHysteresisValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsJabberHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberHysteresisValue.setDescription('Specifies the value to which the jabber error guage must fall before another crossing of the threshold results in a trap.') ecsRLCalignTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 8), ) if mibBuilder.loadTexts: ecsRLCalignTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCalignTable.setDescription('The configuration parameters which must be set up in order to use the alignment error rate guage.') ecsRLCalignEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsAlignSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsAlignPortIndex")) if mibBuilder.loadTexts: ecsRLCalignEntry.setStatus('mandatory') ecsAlignSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAlignSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignSlotIndex.setDescription('The repeater slot index') ecsAlignPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAlignPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignPortIndex.setDescription('The repeater port index') ecsAlignErrorRate = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsAlignErrorRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignErrorRate.setDescription('The gauge representing the alignment error rate. This is configured using the alignment error rate configuration.') ecsAlignThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAlignThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignThreshold.setDescription('Level at which port rate error rate trap is produced.') ecsAlignDecRateValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAlignDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignDecRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ), where UNITS are in ns') ecsAlignDecRateUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("microseconds", 2), ("milliseconds", 3), ("seconds", 4), ("minutes", 5), ("hours", 6), ("days", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAlignDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecsAlignHysteresisValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsAlignHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignHysteresisValue.setDescription('Specifies the value to which the CRC error guage must fall before another crossing of the threshold results in a trap.') ecsRLCcarrierTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 9), ) if mibBuilder.loadTexts: ecsRLCcarrierTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCcarrierTable.setDescription('The configuration parameters which must be set up in order to use the carrier sense error rate guage.') ecsRLCcarrierEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsCarrierSlotIndex"), (0, "LBHUB-ECS-MIB", "ecsCarrierPortIndex")) if mibBuilder.loadTexts: ecsRLCcarrierEntry.setStatus('mandatory') ecsCarrierSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCarrierSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSlotIndex.setDescription('The repeater slot index') ecsCarrierPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCarrierPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierPortIndex.setDescription('The repeater port index') ecsCarrierSenseErrorRate = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsCarrierSenseErrorRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseErrorRate.setDescription('The gauge representing the rate at which jabber errors have been detected. This is configured using the jabber rate configuration.') ecsCarrierSenseThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCarrierSenseThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseThreshold.setDescription('Level at which port rate error rate trap is produced.') ecsCarrierSenseRateValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCarrierSenseRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ).') ecsCarrierSenseRateUnits = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("other", 1), ("microseconds", 2), ("milliseconds", 3), ("seconds", 4), ("minutes", 5), ("hours", 6), ("days", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCarrierSenseRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecsCarrierSenseHysteresisValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsCarrierSenseHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseHysteresisValue.setDescription('Specifies the value to which the carrier sense error guage must fall before another crossing of the threshold results in a trap.') ecsRLCSlotStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 10), ) if mibBuilder.loadTexts: ecsRLCSlotStatisticsTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSlotStatisticsTable.setDescription('A table which summaries the statistics for each active slot') ecsRLCSlotStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsRLCSlotIndex")) if mibBuilder.loadTexts: ecsRLCSlotStatisticsEntry.setStatus('mandatory') ecsRLCSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSlotIndex.setDescription('The slot number of the Repeater Line Card.') ecsRLCGoodRcvdFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCGoodRcvdFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCGoodRcvdFrames.setDescription('The number of readable frames received by this slot.') ecsRLCTotalByteCount = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCTotalByteCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCTotalByteCount.setDescription('The number of readable octets received by this Repeater Line Card.') ecsRLCTotalErrorCount = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCTotalErrorCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCTotalErrorCount.setDescription('The total number of errors received on this slot.') ecsRLCTotalBroadcasts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCTotalBroadcasts.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCTotalBroadcasts.setDescription('The total number of broadcast frames received on this slot.') ecsRLCTotalMulticasts = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCTotalMulticasts.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCTotalMulticasts.setDescription('The total number of multicast frames received on this slot.') ecsRLCSlotErrorTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 5, 11), ) if mibBuilder.loadTexts: ecsRLCSlotErrorTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSlotErrorTable.setDescription('A table which summaries the error statistics for each active slot') ecsRLCSlotErrorEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsRLCErrorSlotIndex")) if mibBuilder.loadTexts: ecsRLCSlotErrorEntry.setStatus('mandatory') ecsRLCErrorSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCErrorSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCErrorSlotIndex.setDescription('The slot number of the Repeater Line Card for which these error statistics pertain.') ecsRLCCollisionsCount = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCCollisionsCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCCollisionsCount.setDescription('The total number of Collisions Reported for this slot.') ecsRLCPartitions = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCPartitions.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCPartitions.setDescription('The total number of Partitions Reported for this slot.') ecsRLCCarrierSenseErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCCarrierSenseErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCCarrierSenseErrors.setDescription('The total number of Carrier Sense erros reported for this slot.') ecsRLCAlignErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCAlignErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCAlignErrors.setDescription('The total number of Alignement errors Reported for this slot.') ecsRLCCRCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCCRCErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCCRCErrors.setDescription('The total number of CRC errors reported for this slot.') ecsRLCJabberErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCJabberErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCJabberErrors.setDescription('The total number of jabber errors reported for this slot.') ecsHubTotalGoodRcvdFrames = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalGoodRcvdFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalGoodRcvdFrames.setDescription('The number of readable frames received by this slot.') ecsHubTotalByteCount = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalByteCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalByteCount.setDescription('The number of readable octets received by this hub.') ecsHubTotalErrorCount = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalErrorCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalErrorCount.setDescription('The total number of errored packets detected on the hub.') ecsHubTotalBroadcasts = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalBroadcasts.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalBroadcasts.setDescription('The total number of brodcast packets detected on the hub.') ecsHubTotalMultiFrames = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalMultiFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalMultiFrames.setDescription('The total number of multicast packets detected on the hub.') ecsHubTotalCollisionsCount = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalCollisionsCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalCollisionsCount.setDescription('The total number of Collisions Reported for the hub.') ecsHubTotalPartitions = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalPartitions.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalPartitions.setDescription('The total number of Partitions Reported for this hub.') ecsHubTotalCarrierSenseErrors = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalCarrierSenseErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalCarrierSenseErrors.setDescription('The total number of Carrier Sense erros reported for this hub.') ecsHubTotalAlignErrors = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalAlignErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalAlignErrors.setDescription('The total number of Alignement errors reported for this hub.') ecsHubTotalCRCErrors = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalCRCErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalCRCErrors.setDescription('The total number of CRC errors reported for this hub.') ecsHubTotalJabberErrors = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsHubTotalJabberErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalJabberErrors.setDescription('The total number of jabber errors reported for this hub.') ecsRLCSizeOfStationLocateDB = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCSizeOfStationLocateDB.setStatus('mandatory') ecsRLCNumbOfSLEntries = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCNumbOfSLEntries.setStatus('mandatory') ecsRLCSLDataBaseStatus = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("changed", 1), ("unchanged", 2), ("clear", 3), ("full", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRLCSLDataBaseStatus.setStatus('mandatory') ecsRLCSLowFilterAddress = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 4), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRLCSLowFilterAddress.setStatus('mandatory') ecsRLCSLhighFilterAddress = MibScalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 5), OctetString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRLCSLhighFilterAddress.setStatus('mandatory') ecsRLCStationLocateTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 6, 6), ) if mibBuilder.loadTexts: ecsRLCStationLocateTable.setStatus('mandatory') ecsRLCStationLocateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsRLCSLAddress")) if mibBuilder.loadTexts: ecsRLCStationLocateEntry.setStatus('mandatory') ecsRLCSLAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCSLAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSLAddress.setDescription('The MAC Address for which one wishes to locate the slot and port.') ecsRLCSLSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCSLSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSLSlotIndex.setDescription('The slot number for this MAC address declared in ecsRLCStationAddress.') ecsRLCSLPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCSLPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSLPortIndex.setDescription('The port number for this MAC address declared in ecsRLCStationAddress.') ecsRLCSLStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsRLCSLStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSLStatus.setDescription('Writing clear(1) will clear the entry in the LinkBuilder ECS DataBase.') ecsRLCNewStationLocateTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 6, 7), ) if mibBuilder.loadTexts: ecsRLCNewStationLocateTable.setStatus('mandatory') ecsRLCNewStationLocateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 6, 7, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsRLCNewSLAddress")) if mibBuilder.loadTexts: ecsRLCNewStationLocateEntry.setStatus('mandatory') ecsRLCNewSLAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 6, 7, 1, 1), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCNewSLAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNewSLAddress.setDescription('The MAC Address for which one wishes to locate the slot and port.') ecsRLCNewSLSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 6, 7, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCNewSLSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNewSLSlotIndex.setDescription('The slot number for this MAC address declared in ecsRLCNewSLAddress.') ecsRLCNewSLPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 6, 7, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsRLCNewSLPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNewSLPortIndex.setDescription('The port number for this MAC address declared in ecsRLCNewSLAddress.') xecsDummyTable = MibTable((1, 3, 6, 1, 4, 1, 43, 9, 255, 1), ) if mibBuilder.loadTexts: xecsDummyTable.setStatus('mandatory') if mibBuilder.loadTexts: xecsDummyTable.setDescription('A dummy table which allows management of all tables (an snm bug).') ecsDummyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 43, 9, 255, 1, 1), ).setIndexNames((0, "LBHUB-ECS-MIB", "ecsDummyIndex")) if mibBuilder.loadTexts: ecsDummyEntry.setStatus('mandatory') ecsDummyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 255, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ecsDummyIndex.setStatus('mandatory') ecsDummyValue = MibTableColumn((1, 3, 6, 1, 4, 1, 43, 9, 255, 1, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ecsDummyValue.setStatus('mandatory') powerSupplyFailure = NotificationType((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0,0)).setObjects(("LBHUB-ECS-MIB", "ecsPSUStatus")) if mibBuilder.loadTexts: powerSupplyFailure.setDescription('One of the PSUs has failed, the value of ecsPSUStatus is returned to indicate which PSU has failed.') fanFailure = NotificationType((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0,1)) if mibBuilder.loadTexts: fanFailure.setDescription('A LinkBuilder ECS Fan has failed, requiring immediate attenstion.') configurationChanged = NotificationType((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0,2)) if mibBuilder.loadTexts: configurationChanged.setDescription('The LinkBuilder ECS configuartion has changed. Either a card has been added or removed, a port disabled or enabled from the front panel or a AUI port has been selected/deselected.') portTrap = NotificationType((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0,3)).setObjects(("LBHUB-ECS-MIB", "ecsInfoSlotIndex"), ("LBHUB-ECS-MIB", "ecsInfoPortIndex"), ("LBHUB-ECS-MIB", "ecsPortErrorState")) if mibBuilder.loadTexts: portTrap.setDescription('A port has partitioned/unpartitioned or has changed link state. The values of ecsInfoSlotIndex and ecsInfoPortIndex are returned to indicate the slot and port, the ecsPortErrorState is returned to indicate the type or port error.') resilientLinkTrap = NotificationType((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0,4)).setObjects(("LBHUB-ECS-MIB", "ecsRLMainLinkSlot"), ("LBHUB-ECS-MIB", "ecsRLMainLinkPort"), ("LBHUB-ECS-MIB", "ecsRLStandbySlot"), ("LBHUB-ECS-MIB", "ecsRLStandbyPort"), ("LBHUB-ECS-MIB", "ecsRLActiveLink"), ("LBHUB-ECS-MIB", "ecsResLinkState")) if mibBuilder.loadTexts: resilientLinkTrap.setDescription('The LinkBuilder ECS Resilient Link system has operated. The resilient link is returned to determine the action taken.') rateTrap = NotificationType((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0,5)).setObjects(("LBHUB-ECS-MIB", "ecsInfoSlotIndex"), ("LBHUB-ECS-MIB", "ecsInfoPortIndex"), ("LBHUB-ECS-MIB", "ecsPortErrorState")) if mibBuilder.loadTexts: rateTrap.setDescription('A Guage threshold has been exceeded. The slot and port number are given by the vakues if ecsInfoSlotIndex and ecsInfoPortIndex and the guage that has been exceeded is given by the value of ecsPortErrorState.') stationlocateTrap = NotificationType((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0,6)).setObjects(("LBHUB-ECS-MIB", "ecsRLCSLDataBaseStatus")) if mibBuilder.loadTexts: stationlocateTrap.setDescription('The Station Locate databse has either changed or has become full. The particular condition is shown by the value of ecsRLCSLDataBAseStatus returned.') secureRLCTrap = NotificationType((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0,7)).setObjects(("LBHUB-ECS-MIB", "ecsAgentSecureManagementStatus")) if mibBuilder.loadTexts: secureRLCTrap.setDescription('There has been access to the security menus from the front panel menus. The value of ecsAgentSecureManagementStatus reports whether the trap was generated beacuse the security menus were entered, the secure password was violated or the security configuration has been changed.') secureRLCportTrap = NotificationType((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0,8)).setObjects(("LBHUB-ECS-MIB", "ecsSecRLCSlotIndex"), ("LBHUB-ECS-MIB", "ecsSecRLCPortIndex"), ("LBHUB-ECS-MIB", "ecsSecRLCPortState"), ("LBHUB-ECS-MIB", "ecsSecRLCMACAddress")) if mibBuilder.loadTexts: secureRLCportTrap.setDescription('A secure port has either detected an authorised port and taken appropriate action or has learnt an authorised station on the slot and port indicated.') mibBuilder.exportSymbols("LBHUB-ECS-MIB", linkBuilderFMSII_cards_12tp_rj45=linkBuilderFMSII_cards_12tp_rj45, ecsAgentFrontPanelSetupPassword=ecsAgentFrontPanelSetupPassword, asciiAgent=asciiAgent, ecsPortBootState=ecsPortBootState, ecsAgentTrapReceiverEntry=ecsAgentTrapReceiverEntry, brouter=brouter, ecsAlignDecRateUnits=ecsAlignDecRateUnits, ecsPSUStatus=ecsPSUStatus, ecsRLCcollisionEntry=ecsRLCcollisionEntry, ecsRLCSLhighFilterAddress=ecsRLCSLhighFilterAddress, genericMSWorkstation=genericMSWorkstation, gauges=gauges, ecsHubTotalCRCErrors=ecsHubTotalCRCErrors, linkBuilderECS=linkBuilderECS, ecsJabberLockProtect=ecsJabberLockProtect, ecsSecRLCLearnMode=ecsSecRLCLearnMode, ecsCRCThreshold=ecsCRCThreshold, ecsAgentDefaultConfig=ecsAgentDefaultConfig, linkBuilder10BTi=linkBuilder10BTi, ecsAgentResetDevice=ecsAgentResetDevice, ecsRxMulticastFrames=ecsRxMulticastFrames, ecsSlotCardName=ecsSlotCardName, ecsRLMainLinkSlot=ecsRLMainLinkSlot, linkBuilderFMS_cards_24utp=linkBuilderFMS_cards_24utp, ecsLampOverRide=ecsLampOverRide, ecsRLCjabberTable=ecsRLCjabberTable, ecsManufacturerId=ecsManufacturerId, endStation=endStation, ecsSecRLCPortIndex=ecsSecRLCPortIndex, products=products, ecsAgentRestart=ecsAgentRestart, ecsAgentLastSystemError=ecsAgentLastSystemError, ecsCRCPortIndex=ecsCRCPortIndex, ecsCRCDecRateValue=ecsCRCDecRateValue, ecsRLCCRCErrors=ecsRLCCRCErrors, linkBuilderFMSLBridge=linkBuilderFMSLBridge, ecsHubTotalByteCount=ecsHubTotalByteCount, ecsCardIsolated=ecsCardIsolated, dedicatedRouteServer=dedicatedRouteServer, tcp=tcp, linkBuilderFMSII=linkBuilderFMSII, ecsManufacturerProductId=ecsManufacturerProductId, icmp=icmp, ecsSecRLCNTKState=ecsSecRLCNTKState, ecsPortSLMode=ecsPortSLMode, terminalServer=terminalServer, ecsRepeaterPartitionState=ecsRepeaterPartitionState, ecsSecRLCReportMode=ecsSecRLCReportMode, ecsRLCPortInfoTable=ecsRLCPortInfoTable, ecsCollisionDecRateValue=ecsCollisionDecRateValue, ecsRepeaterSlotIndex=ecsRepeaterSlotIndex, powerSupplyFailure=powerSupplyFailure, ecsDummyValue=ecsDummyValue, ecsAgentSystemName=ecsAgentSystemName, ecsAlignErrors=ecsAlignErrors, ecsHubTotalJabberErrors=ecsHubTotalJabberErrors, ecsRepeaterPortState=ecsRepeaterPortState, ecsRLCcrcEntry=ecsRLCcrcEntry, security=security, ecsPortLinkTraps=ecsPortLinkTraps, ecsRLCSlotErrorTable=ecsRLCSlotErrorTable, generic=generic, xecsDummyTable=xecsDummyTable, ecsRLCTotalByteCount=ecsRLCTotalByteCount, ecsRLCtrafficTable=ecsRLCtrafficTable, ecsRLCStationLocate=ecsRLCStationLocate, specificTrap=specificTrap, secureRLCportTrap=secureRLCportTrap, configurationChanged=configurationChanged, mib_2=mib_2, ecsRxBroadcastFrames=ecsRxBroadcastFrames, ecsSecRLCLinkState=ecsSecRLCLinkState, ip=ip, ecsAlignHysteresisValue=ecsAlignHysteresisValue, ecsCRCSlotIndex=ecsCRCSlotIndex, ecsHubTotalCollisionsCount=ecsHubTotalCollisionsCount, ecsInfoPortName=ecsInfoPortName, ecsRLCPortErrorEntry=ecsRLCPortErrorEntry, ecsAgentTrapReceiverTable=ecsAgentTrapReceiverTable, localSnmp=localSnmp, ecsRLCSLDataBaseStatus=ecsRLCSLDataBaseStatus, linkBuilderFMSII_cards_24tp_telco=linkBuilderFMSII_cards_24tp_telco, ifExtensions=ifExtensions, ecsRLCNewSLPortIndex=ecsRLCNewSLPortIndex, ecsAgentMACAddress=ecsAgentMACAddress, ecsRLCcarrierTable=ecsRLCcarrierTable, ecsAgentAuthenticationStatus=ecsAgentAuthenticationStatus, mrmResilience=mrmResilience, ecsAgentTrapLevel=ecsAgentTrapLevel, ecsAgentFrontPanelPassword=ecsAgentFrontPanelPassword, ecsAgentFrontPanelLock=ecsAgentFrontPanelLock, ecsCarrierSenseRateValue=ecsCarrierSenseRateValue, ecsDummyIndex=ecsDummyIndex, PhysAddress=PhysAddress, sysLoader=sysLoader, linkBuilderFMSII_cards_12fiber_st=linkBuilderFMSII_cards_12fiber_st, ecsAgentSystemLocation=ecsAgentSystemLocation, ecsCarrierSenseErrors=ecsCarrierSenseErrors, ecsRLCPortErrorTable=ecsRLCPortErrorTable, ecsAgentStatus=ecsAgentStatus, ecsRLCalignTable=ecsRLCalignTable, ecsJabberErrorRate=ecsJabberErrorRate, egp=egp, ecsRLCErrorSlotIndex=ecsRLCErrorSlotIndex, ecsSecureRLCMode=ecsSecureRLCMode, hub=hub, ecsRLStandbyPort=ecsRLStandbyPort, ecsAgentLastTrap=ecsAgentLastTrap, ecsRLMainLinkPort=ecsRLMainLinkPort, ecsInfoSlotIndex=ecsInfoSlotIndex, linkBuilderFMS_cards_fiber=linkBuilderFMS_cards_fiber, ecsSecureRepeaterLineCards=ecsSecureRepeaterLineCards, linkBuilder3GH_cards=linkBuilder3GH_cards, linkBuilderFMS_cards_coax=linkBuilderFMS_cards_coax, resilientLinkTrap=resilientLinkTrap, ecsRLCcollisionTable=ecsRLCcollisionTable, ecsAgentFrontPanelSecurePassword=ecsAgentFrontPanelSecurePassword, powerSupply=powerSupply, ecsAgentAuthTrapState=ecsAgentAuthTrapState, udp=udp, a3Com=a3Com, ecsSecRLCPortState=ecsSecRLCPortState, ecsRLCjabberEntry=ecsRLCjabberEntry, linkBuilderFMSII_cards_24tp_rj45=linkBuilderFMSII_cards_24tp_rj45, ecsPartitions=ecsPartitions, ecsSecureRLCEntry=ecsSecureRLCEntry, ecsRLCPortStatisticsTable=ecsRLCPortStatisticsTable, ecsCollisionPortIndex=ecsCollisionPortIndex, ecsHubTotalAlignErrors=ecsHubTotalAlignErrors, ecsSlotMediaType=ecsSlotMediaType, ecsAgent=ecsAgent, serialIf=serialIf, ecsSecRLCMACAddress=ecsSecRLCMACAddress, snmp=snmp, ecsHubTotalMultiFrames=ecsHubTotalMultiFrames, ecsAlignErrorRate=ecsAlignErrorRate, secureRLCTrap=secureRLCTrap, ecsRLCSlotErrorEntry=ecsRLCSlotErrorEntry, ecsCarrierSenseRateUnits=ecsCarrierSenseRateUnits, ecsRLActiveLink=ecsRLActiveLink, netBuilder_mib=netBuilder_mib, ecsRLCalignEntry=ecsRLCalignEntry, ecsAgentManAccessLevel=ecsAgentManAccessLevel, ecsRLCTotalBroadcasts=ecsRLCTotalBroadcasts, ecsHubTotalPartitions=ecsHubTotalPartitions, ecsSecRLCSlotIndex=ecsSecRLCSlotIndex, ecsCarrierSenseErrorRate=ecsCarrierSenseErrorRate, ecsSlotDeviceType=ecsSlotDeviceType, ecsCarrierSenseHysteresisValue=ecsCarrierSenseHysteresisValue, interfaces=interfaces, ecsAgentManagementAddr=ecsAgentManagementAddr, ecsRLCTotalMulticasts=ecsRLCTotalMulticasts, linkBuilder3GH_mib=linkBuilder3GH_mib, linkBuilderECS_cards=linkBuilderECS_cards, ecsCollisionThreshold=ecsCollisionThreshold, ecsRLCSLPortIndex=ecsRLCSLPortIndex, ecsRLCNumberOfDOBPorts=ecsRLCNumberOfDOBPorts, ecsRLCPartitions=ecsRLCPartitions, lBridgeECS_mib=lBridgeECS_mib, ecsAgentSystemTime=ecsAgentSystemTime, linkBuilder10BTi_cards_utp=linkBuilder10BTi_cards_utp, ecsRLCSLAddress=ecsRLCSLAddress, ecsCRCErrorRate=ecsCRCErrorRate, ecsAgentManagementEntry=ecsAgentManagementEntry, repeaterMgmt=repeaterMgmt, ecsPortTest=ecsPortTest, ecsAlignPortIndex=ecsAlignPortIndex, ecsAgentIpAddr=ecsAgentIpAddr, linkBuilderFMS_cards=linkBuilderFMS_cards, linkBuilderMSH_mib=linkBuilderMSH_mib, multiRepeater=multiRepeater, ecsAgentManagementAccess=ecsAgentManagementAccess, ecsRLCPortStatisticsEntry=ecsRLCPortStatisticsEntry, ecsPortErrorState=ecsPortErrorState, ecsRLCSlotStatisticsEntry=ecsRLCSlotStatisticsEntry, ecsRLCNumberOfResilientLinks=ecsRLCNumberOfResilientLinks, linkBuilderFMS=linkBuilderFMS, ecsRLCResilientLinks=ecsRLCResilientLinks, system=system, ecsDummyEntry=ecsDummyEntry, ecsTrafficDecRateValue=ecsTrafficDecRateValue, ecsAlignDecRateValue=ecsAlignDecRateValue, ecsJabberErrors=ecsJabberErrors, ecsAgentTrapReceiverAddr=ecsAgentTrapReceiverAddr, ecsHardwareVersionNumber=ecsHardwareVersionNumber, ecsJabberDecRateUnits=ecsJabberDecRateUnits, manager=manager, ecsRLCNumbOfSLEntries=ecsRLCNumbOfSLEntries, ecsCRCErrors=ecsCRCErrors, ecsAgentSystemIdentifier=ecsAgentSystemIdentifier, ecsJabberHysteresisValue=ecsJabberHysteresisValue, ecsHubTotalCarrierSenseErrors=ecsHubTotalCarrierSenseErrors, ecsAgentDefaultGateway=ecsAgentDefaultGateway, ecsCardReset=ecsCardReset, ecsSecureTrapRepRate=ecsSecureTrapRepRate, ecsCarrierSenseThreshold=ecsCarrierSenseThreshold, ecsRLCSLSlotIndex=ecsRLCSLSlotIndex, ecsAgentTrapReceiverComm=ecsAgentTrapReceiverComm, setup=setup, ecsJabberSlotIndex=ecsJabberSlotIndex, ecsVideo=ecsVideo, ecsPortPartitionTraps=ecsPortPartitionTraps, ecsRLCStationLocateEntry=ecsRLCStationLocateEntry, linkBuilderFMSII_cards_6fiber_st=linkBuilderFMSII_cards_6fiber_st, fault=fault, ecsRLCSizeOfStationLocateDB=ecsRLCSizeOfStationLocateDB, ecsSlotSoftVerNum=ecsSlotSoftVerNum, ecsSlotConfigEntry=ecsSlotConfigEntry, genExperimental=genExperimental, ecsSlotNumOfPorts=ecsSlotNumOfPorts, ecsTotalByteCount=ecsTotalByteCount, ecsSoftwareVersionNumber=ecsSoftwareVersionNumber, ecsRLCResilientLinkTable=ecsRLCResilientLinkTable, bridgeMgmt=bridgeMgmt, ecsAgentTrapType=ecsAgentTrapType, poll=poll, ecsRLCAlignErrors=ecsRLCAlignErrors, portTrap=portTrap, linkBuilder10BTi_cards=linkBuilder10BTi_cards, chassis=chassis, ecsSlotHardVerNum=ecsSlotHardVerNum, ecsHubTotalGoodRcvdFrames=ecsHubTotalGoodRcvdFrames, rateTrap=rateTrap, ecsRLCPortInfoEntry=ecsRLCPortInfoEntry, ecsResLinkState=ecsResLinkState, ecsErrorSlotIndex=ecsErrorSlotIndex, ecsRLCNewSLAddress=ecsRLCNewSLAddress, tokenRing=tokenRing, linkBuilder3GH=linkBuilder3GH, linkBuilderFMSII_cards_10coax_bnc=linkBuilderFMSII_cards_10coax_bnc, ecsRLCCarrierSenseErrors=ecsRLCCarrierSenseErrors, ecsAlignThreshold=ecsAlignThreshold, unusedGeneric12=unusedGeneric12, ecsRackConfigurationTable=ecsRackConfigurationTable, ecsTrafficPortIndex=ecsTrafficPortIndex, ecsCarrierSlotIndex=ecsCarrierSlotIndex, linkBuilderECS_mib=linkBuilderECS_mib, ecsRLCJabberErrors=ecsRLCJabberErrors, ecsAgentSecureTrapState=ecsAgentSecureTrapState, dedicatedBridgeServer=dedicatedBridgeServer, ecsAgentSecureManagementStatus=ecsAgentSecureManagementStatus, ecsGoodRcvdFrames=ecsGoodRcvdFrames, ecsRLCcarrierEntry=ecsRLCcarrierEntry, ecsJabberDecRateValue=ecsJabberDecRateValue, stationlocateTrap=stationlocateTrap, ecsRLCNewSLSlotIndex=ecsRLCNewSLSlotIndex, testData=testData, ecsRLCResilientLinkEntry=ecsRLCResilientLinkEntry, ecsRLStandbySlot=ecsRLStandbySlot, transmission=transmission, ecsTrafficDecRateUnits=ecsTrafficDecRateUnits, ecsCollisionHysteresisValue=ecsCollisionHysteresisValue, DisplayString=DisplayString, genericUnixServer=genericUnixServer) mibBuilder.exportSymbols("LBHUB-ECS-MIB", ecsSecRLCMultiState=ecsSecRLCMultiState, ecsRLCStationLocateTable=ecsRLCStationLocateTable, ecsCollisionsCount=ecsCollisionsCount, ecsRLCSLowFilterAddress=ecsRLCSLowFilterAddress, ecsCRCDecRateUnits=ecsCRCDecRateUnits, ecsHubStatistics=ecsHubStatistics, cards=cards, ecsRLCCollisionsCount=ecsRLCCollisionsCount, amp_mib=amp_mib, lbecsXENDOFMIB=lbecsXENDOFMIB, fanFailure=fanFailure, at=at, ecsRLCNewStationLocateEntry=ecsRLCNewStationLocateEntry, ecsSecRLCBroadState=ecsSecRLCBroadState, deskMan_mib=deskMan_mib, ecsCardIpAddress=ecsCardIpAddress, ecsAgentIpBroadAddr=ecsAgentIpBroadAddr, linkBuilder10BTi_mib=linkBuilder10BTi_mib, ecsCollisionDecRateUnits=ecsCollisionDecRateUnits, ecsFanStatus=ecsFanStatus, ecsRLCTotalErrorCount=ecsRLCTotalErrorCount, ecsTotalErrorCount=ecsTotalErrorCount, ecsTrafficHysteresisValue=ecsTrafficHysteresisValue, ecsAlignSlotIndex=ecsAlignSlotIndex, ecsRLCNewStationLocateTable=ecsRLCNewStationLocateTable, linkBuilderMSH_cards=linkBuilderMSH_cards, ecsPortReset=ecsPortReset, ecsHubTotalErrorCount=ecsHubTotalErrorCount, ecsAgentFrontPanelDisplay=ecsAgentFrontPanelDisplay, ecsCarrierPortIndex=ecsCarrierPortIndex, ecsSecureRLCTable=ecsSecureRLCTable, ecsCRCHysteresisValue=ecsCRCHysteresisValue, ecsRLCSlotIndex=ecsRLCSlotIndex, ecsRLCSLStatus=ecsRLCSLStatus, ecsTrafficRate=ecsTrafficRate, linkBuilder10BT_cards_utp=linkBuilder10BT_cards_utp, ecsAgentManagementTable=ecsAgentManagementTable, ecsAgentIpNetmask=ecsAgentIpNetmask, genericTrap=genericTrap, viewBuilderApps=viewBuilderApps, linkBuilderFMSII_cards=linkBuilderFMSII_cards, linkBuilderFMS_cards_utp=linkBuilderFMS_cards_utp, ecsRLCtrafficEntry=ecsRLCtrafficEntry, ecsRLCSlotStatisticsTable=ecsRLCSlotStatisticsTable, ecsCollisionRate=ecsCollisionRate, ecsCollisionSlotIndex=ecsCollisionSlotIndex, ecsRLCGoodRcvdFrames=ecsRLCGoodRcvdFrames, ecsSlotConfigIndex=ecsSlotConfigIndex, ecsRepeaterPartitionAlgor=ecsRepeaterPartitionAlgor, ecsRepeaterLineCard=ecsRepeaterLineCard, ecsRLCcrcTable=ecsRLCcrcTable, ecsErrorPortIndex=ecsErrorPortIndex, ecsHubTotalBroadcasts=ecsHubTotalBroadcasts, linkBuilderFMS_cards_12fiber=linkBuilderFMS_cards_12fiber, ecsJabberPortIndex=ecsJabberPortIndex, linkBuilderMSH=linkBuilderMSH, ecsInfoPortIndex=ecsInfoPortIndex, ecsEnvironment=ecsEnvironment, ecsTrafficThreshold=ecsTrafficThreshold, ecsRepeaterPortIndex=ecsRepeaterPortIndex, ecsJabberThreshold=ecsJabberThreshold, genericMSServer=genericMSServer, ecsRackType=ecsRackType, ecsTrafficSlotIndex=ecsTrafficSlotIndex)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, value_size_constraint, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter32, module_identity, object_identity, notification_type, iso, gauge32, unsigned32, enterprises, time_ticks, ip_address, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, counter64, notification_type, mib_identifier, mgmt) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'ModuleIdentity', 'ObjectIdentity', 'NotificationType', 'iso', 'Gauge32', 'Unsigned32', 'enterprises', 'TimeTicks', 'IpAddress', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Counter64', 'NotificationType', 'MibIdentifier', 'mgmt') (display_string, textual_convention, phys_address) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'PhysAddress') mib_2 = mib_identifier((1, 3, 6, 1, 2, 1)).setLabel('mib-2') class Displaystring(OctetString): pass class Physaddress(OctetString): pass system = mib_identifier((1, 3, 6, 1, 2, 1, 1)) interfaces = mib_identifier((1, 3, 6, 1, 2, 1, 2)) at = mib_identifier((1, 3, 6, 1, 2, 1, 3)) ip = mib_identifier((1, 3, 6, 1, 2, 1, 4)) icmp = mib_identifier((1, 3, 6, 1, 2, 1, 5)) tcp = mib_identifier((1, 3, 6, 1, 2, 1, 6)) udp = mib_identifier((1, 3, 6, 1, 2, 1, 7)) egp = mib_identifier((1, 3, 6, 1, 2, 1, 8)) transmission = mib_identifier((1, 3, 6, 1, 2, 1, 10)) snmp = mib_identifier((1, 3, 6, 1, 2, 1, 11)) a3_com = mib_identifier((1, 3, 6, 1, 4, 1, 43)) products = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1)) terminal_server = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 1)) dedicated_bridge_server = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 2)) dedicated_route_server = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 3)) brouter = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 4)) generic_ms_workstation = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 5)) generic_ms_server = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 6)) generic_unix_server = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 7)) hub = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 8)) cards = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9)) link_builder3_gh = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 1)) link_builder10_b_ti = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 2)) link_builder_ecs = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 3)) link_builder_msh = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 4)) link_builder_fms = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 5)) link_builder_fmsl_bridge = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 10)) link_builder_fmsii = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 8, 7)) link_builder3_gh_cards = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 1)).setLabel('linkBuilder3GH-cards') link_builder10_b_ti_cards = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 2)).setLabel('linkBuilder10BTi-cards') link_builder_ecs_cards = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 3)).setLabel('linkBuilderECS-cards') link_builder_msh_cards = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 4)).setLabel('linkBuilderMSH-cards') link_builder_fms_cards = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5)).setLabel('linkBuilderFMS-cards') link_builder_fmsii_cards = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6)).setLabel('linkBuilderFMSII-cards') link_builder10_b_ti_cards_utp = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 2, 1)).setLabel('linkBuilder10BTi-cards-utp') link_builder10_bt_cards_utp = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 2, 2)).setLabel('linkBuilder10BT-cards-utp') link_builder_fms_cards_utp = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 1)).setLabel('linkBuilderFMS-cards-utp') link_builder_fms_cards_coax = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 2)).setLabel('linkBuilderFMS-cards-coax') link_builder_fms_cards_fiber = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 3)).setLabel('linkBuilderFMS-cards-fiber') link_builder_fms_cards_12fiber = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 4)).setLabel('linkBuilderFMS-cards-12fiber') link_builder_fms_cards_24utp = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 5, 5)).setLabel('linkBuilderFMS-cards-24utp') link_builder_fmsii_cards_12tp_rj45 = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 1)).setLabel('linkBuilderFMSII-cards-12tp-rj45') link_builder_fmsii_cards_10coax_bnc = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 2)).setLabel('linkBuilderFMSII-cards-10coax-bnc') link_builder_fmsii_cards_6fiber_st = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 3)).setLabel('linkBuilderFMSII-cards-6fiber-st') link_builder_fmsii_cards_12fiber_st = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 4)).setLabel('linkBuilderFMSII-cards-12fiber-st') link_builder_fmsii_cards_24tp_rj45 = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 5)).setLabel('linkBuilderFMSII-cards-24tp-rj45') link_builder_fmsii_cards_24tp_telco = mib_identifier((1, 3, 6, 1, 4, 1, 43, 1, 9, 6, 6)).setLabel('linkBuilderFMSII-cards-24tp-telco') amp_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 3)).setLabel('amp-mib') generic_trap = mib_identifier((1, 3, 6, 1, 4, 1, 43, 4)) view_builder_apps = mib_identifier((1, 3, 6, 1, 4, 1, 43, 5)) specific_trap = mib_identifier((1, 3, 6, 1, 4, 1, 43, 6)) link_builder3_gh_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 7)).setLabel('linkBuilder3GH-mib') link_builder10_b_ti_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 8)).setLabel('linkBuilder10BTi-mib') link_builder_ecs_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9)).setLabel('linkBuilderECS-mib') generic = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10)) gen_experimental = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 1)) setup = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 2)) sys_loader = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 3)) security = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 4)) gauges = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 5)) ascii_agent = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 6)) serial_if = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 7)) repeater_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 8)) end_station = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 9)) local_snmp = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 10)) manager = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 11)) unused_generic12 = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 12)) chassis = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 14)) mrm_resilience = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 15)) token_ring = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 16)) multi_repeater = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 17)) bridge_mgmt = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 18)) fault = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 19)) poll = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 20)) power_supply = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 21)) test_data = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 1, 1)) if_extensions = mib_identifier((1, 3, 6, 1, 4, 1, 43, 10, 1, 2)) net_builder_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 11)).setLabel('netBuilder-mib') l_bridge_ecs_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 12)).setLabel('lBridgeECS-mib') desk_man_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 13)).setLabel('deskMan-mib') link_builder_msh_mib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 14)).setLabel('linkBuilderMSH-mib') ecs_agent = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 1)) ecs_environment = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 2)) ecs_rlc_resilient_links = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 3)) ecs_secure_repeater_line_cards = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 4)) ecs_repeater_line_card = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 5)) ecs_rlc_station_locate = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 6)) ecs_hub_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 8)) ecs_video = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 9)) lbecs_xendofmib = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 255)) ecs_agent_system_identifier = mib_identifier((1, 3, 6, 1, 4, 1, 43, 9, 1, 1)) ecs_manufacturer_id = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsManufacturerId.setStatus('deprecated') if mibBuilder.loadTexts: ecsManufacturerId.setDescription('An atrribute to identify the manufacturer') ecs_manufacturer_product_id = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsManufacturerProductId.setStatus('mandatory') if mibBuilder.loadTexts: ecsManufacturerProductId.setDescription('An attribute to identify the product id.') ecs_software_version_number = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSoftwareVersionNumber.setStatus('deprecated') if mibBuilder.loadTexts: ecsSoftwareVersionNumber.setDescription('An atrribute to identify the software version.') ecs_hardware_version_number = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHardwareVersionNumber.setStatus('deprecated') if mibBuilder.loadTexts: ecsHardwareVersionNumber.setDescription('An atrribute to identify the hardware version.') ecs_agent_system_name = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(32, 32)).setFixedLength(32)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentSystemName.setStatus('deprecated') if mibBuilder.loadTexts: ecsAgentSystemName.setDescription('This is an informational string that could be used to show the name of the ECSAgent or management agent.') ecs_agent_system_location = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(32, 32)).setFixedLength(32)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentSystemLocation.setStatus('deprecated') if mibBuilder.loadTexts: ecsAgentSystemLocation.setDescription('This is an informational string that could be used to show the physical location (i.e., area) of the ecsAgent or management agent.') ecs_agent_system_time = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 4), time_ticks()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentSystemTime.setStatus('deprecated') if mibBuilder.loadTexts: ecsAgentSystemTime.setDescription('A representation of the system time of the management system, taken from the epoch.') ecs_agent_status = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('offline', 1), ('online', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAgentStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentStatus.setDescription('Indicates that the management agent is on line and operating.') ecs_agent_authentication_status = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAgentAuthenticationStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentAuthenticationStatus.setDescription('Indicates whether management frames are checked against entries in the management tranmiter table.') ecs_agent_secure_management_status = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('secure-menu-entered', 3), ('secure-password-violation', 4), ('secure-config-update', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAgentSecureManagementStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentSecureManagementStatus.setDescription('Indicates whether the remote management of the security features of the ECS are enabled or not.') ecs_agent_front_panel_setup_password = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentFrontPanelSetupPassword.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelSetupPassword.setDescription('The password used to gain access to the configuration features of the front panel control of the device.') ecs_agent_front_panel_display = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentFrontPanelDisplay.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelDisplay.setDescription('The string displayed on the front panel.') ecs_agent_front_panel_password = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentFrontPanelPassword.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelPassword.setDescription('The password used to gain access to the front panel control of the device.') ecs_agent_front_panel_secure_password = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentFrontPanelSecurePassword.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelSecurePassword.setDescription('The password used to gain access to the security features of the front panel control of the device. This attribute is not viewable until secure remote management is enabled.') ecs_agent_front_panel_lock = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentFrontPanelLock.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentFrontPanelLock.setDescription('The station front panel status.') ecs_agent_reset_device = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notreset', 1), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentResetDevice.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentResetDevice.setDescription('Network management module reset status. Writing a 2 to this object will reset the management agent.') ecs_agent_restart = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notrestart', 1), ('restart', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentRestart.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentRestart.setDescription('Network management module restart status. Writing a 2 to his object will restart the management agent. This initializes all the counters, rereads the NVRAM data structure, and starts executing from the beginning of the code.') ecs_agent_default_config = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('reverting', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentDefaultConfig.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentDefaultConfig.setDescription('The device is returned to its factory settings.') ecs_agent_management_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 1, 20)) if mibBuilder.loadTexts: ecsAgentManagementTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManagementTable.setDescription("This entity's management address table. (10 entries)") ecs_agent_management_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 1, 20, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsAgentManagementAddr')) if mibBuilder.loadTexts: ecsAgentManagementEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManagementEntry.setDescription(' A source address address and privileges of a particular management station.') ecs_agent_management_addr = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 1, 20, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentManagementAddr.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManagementAddr.setDescription('IpAddress of the management station. ') ecs_agent_management_access = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 1, 20, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('invalid', 1), ('off', 2), ('superread', 3), ('superreadwrite', 4), ('readonly', 5), ('readwrite', 6), ('readonlysecure', 7), ('readwritesecure', 8)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentManagementAccess.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManagementAccess.setDescription('Setting this object to the value invalid(1) invalidates the corresponding entry in the ecsAgentManagementTable. That is, it effectively disassociates the address identified with the entry by removing the entry from the table.') ecs_agent_man_access_level = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 1, 20, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentManAccessLevel.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentManAccessLevel.setDescription('The level of aceess attributed to tthis entry in the table.') ecs_agent_trap_receiver_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 1, 21)) if mibBuilder.loadTexts: ecsAgentTrapReceiverTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapReceiverTable.setDescription("This entity's Trap Receiver Table. (10 entries)") ecs_agent_trap_receiver_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsAgentTrapReceiverAddr')) if mibBuilder.loadTexts: ecsAgentTrapReceiverEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapReceiverEntry.setDescription(' A destination address and community string for a particular trap receiver.') ecs_agent_trap_receiver_addr = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentTrapReceiverAddr.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapReceiverAddr.setDescription('IpAddress for trap receiver.') ecs_agent_trap_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=named_values(('invalid', 1), ('off-on', 2), ('generic', 3), ('psu', 4), ('fanfail', 5), ('configuractionchange', 6), ('port', 7), ('resilience', 8), ('rate', 9), ('stationlocate', 10), ('secure', 11), ('secureport', 12)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentTrapType.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapType.setDescription('Setting this object to the value invalid(1) invalidates the corresponding entry in the ECSAgentTrapReceiverTable. That is, it effectively disassociates the address identified with the entry by removing the entry from the table.') ecs_agent_trap_receiver_comm = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentTrapReceiverComm.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapReceiverComm.setDescription('Community string used for traps.') ecs_agent_trap_level = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 1, 21, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAgentTrapLevel.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentTrapLevel.setDescription('Indicates the type of traps that will be sent to this address.') ecs_agent_auth_trap_state = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentAuthTrapState.setStatus('deprecated') if mibBuilder.loadTexts: ecsAgentAuthTrapState.setDescription('Enable or disable the use of authentication error trap generation.') ecs_agent_ip_addr = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 23), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentIpAddr.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentIpAddr.setDescription("The network management module's administrative IpAddress. The current operational IpAddress can be obtained from the ipAdEntAddr entry in the ipAddrTable.") ecs_agent_ip_netmask = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 24), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentIpNetmask.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentIpNetmask.setDescription("The network management module's administrative subnet mask. The current operational subnet mask can be obtained from the ipAdEntNetMask entry in the ipAddrTable.") ecs_agent_default_gateway = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 25), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentDefaultGateway.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentDefaultGateway.setDescription("The network management module's administrative default gateway IpAddress. The current operational default gateway's IpAddress can be obtained from the ipRoutingTable.") ecs_agent_ip_broad_addr = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 26), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentIpBroadAddr.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentIpBroadAddr.setDescription("The network management module's adminstrative default broadcast address") ecs_agent_mac_address = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 27), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAgentMACAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentMACAddress.setDescription('The MAC address of the ECS Agent.') ecs_agent_secure_trap_state = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAgentSecureTrapState.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentSecureTrapState.setDescription('Enable or disable the generation of security traps.') ecs_agent_last_system_error = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 29), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAgentLastSystemError.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentLastSystemError.setDescription('The error number of the last system error.') ecs_agent_last_trap = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 1, 30), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAgentLastTrap.setStatus('mandatory') if mibBuilder.loadTexts: ecsAgentLastTrap.setDescription('The time, taken from the epoch when the last trap or event would have been generated.') ecs_rack_type = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('ecs4', 2), ('ecs10', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRackType.setStatus('mandatory') if mibBuilder.loadTexts: ecsRackType.setDescription('The rack type of the LinkBuilder ECS.') ecs_rack_configuration_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 2, 2)) if mibBuilder.loadTexts: ecsRackConfigurationTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRackConfigurationTable.setDescription('The current configuration of the Ether Connect System rack.') ecs_slot_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsSlotConfigIndex')) if mibBuilder.loadTexts: ecsSlotConfigEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotConfigEntry.setDescription('The description of the type of module in each slot.') ecs_slot_config_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSlotConfigIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotConfigIndex.setDescription('The device type found in a slot.') ecs_slot_card_name = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsSlotCardName.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotCardName.setDescription('This is an informational string that could be used to show the name of a card.') ecs_slot_device_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 3), 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))).clone(namedValues=named_values(('empty', 1), ('unknown', 2), ('managementcard', 3), ('thinEthernetCard', 4), ('thinEthernetCardpAUI', 5), ('unshieldedTwistedPair', 6), ('fibre', 7), ('bridge-Line-Card', 8), ('monitor', 9), ('shieldedTwistedPair', 10), ('fanout', 11), ('secureUnshieldedTP', 12), ('secureSheildedTP', 13), ('secureFibre', 14), ('secureFanout', 15), ('secureThinEthernet', 16), ('terminalserver', 17), ('remotebridge', 18), ('videoswitch', 19)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSlotDeviceType.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotDeviceType.setDescription('The device type found in a slot.') ecs_slot_soft_ver_num = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSlotSoftVerNum.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotSoftVerNum.setDescription('A description of the software version number.') ecs_slot_hard_ver_num = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSlotHardVerNum.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotHardVerNum.setDescription('Hardware version number of the card.') ecs_slot_num_of_ports = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSlotNumOfPorts.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotNumOfPorts.setDescription('The number of repeater ports on the card.') ecs_slot_media_type = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSlotMediaType.setStatus('mandatory') if mibBuilder.loadTexts: ecsSlotMediaType.setDescription('The media type associated with this slot can take on the following values: No port, AUI, Cheapernet, FOIRL, UTP, STP, FOASTAR, Through air, Plastic Fibre.') ecs_card_reset = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('not-reset', 1), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCardReset.setStatus('mandatory') if mibBuilder.loadTexts: ecsCardReset.setDescription('The hardware for specified repeater line card is reset.') ecs_lamp_over_ride = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsLampOverRide.setStatus('mandatory') if mibBuilder.loadTexts: ecsLampOverRide.setDescription('The lamps on the specified repeater line card are forced on for normal operation.') ecs_card_isolated = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('not-isolated', 1), ('isolated', 2), ('cant-isolate', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCardIsolated.setStatus('mandatory') if mibBuilder.loadTexts: ecsCardIsolated.setDescription('The LinkBuilder ECS card is isolated from the chassis backplane.') ecs_card_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 2, 2, 1, 11), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCardIpAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsCardIpAddress.setDescription('For some devices the LinkBuilder ECS may be able to determine the IP address of a intelligent card that is in the slot. If the value returned is 0.0.0.0 then this indicates that the address can not be determined.') ecs_psu_status = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ok', 1), ('psu1failed', 2), ('psu2failed', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsPSUStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsPSUStatus.setDescription('The status of the PSUs in the LinkBuilder ECS.') ecs_fan_status = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ok', 1), ('failed', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsFanStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsFanStatus.setDescription('The status of the fans in the LinkBuilder ECS.') ecs_rlc_number_of_resilient_links = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 3, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCNumberOfResilientLinks.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNumberOfResilientLinks.setDescription('The number of resilient links currently configured on the LinkBuilder ECS.') ecs_rlc_number_of_dob_ports = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 3, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCNumberOfDOBPorts.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNumberOfDOBPorts.setDescription('The total number of ports that are disabled on boot, making them suitable for use with resilient links.') ecs_rlc_resilient_link_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 3, 3)) if mibBuilder.loadTexts: ecsRLCResilientLinkTable.setStatus('mandatory') ecs_rlc_resilient_link_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsRLMainLinkSlot'), (0, 'LBHUB-ECS-MIB', 'ecsRLMainLinkPort')) if mibBuilder.loadTexts: ecsRLCResilientLinkEntry.setStatus('mandatory') ecs_rl_main_link_slot = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRLMainLinkSlot.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLMainLinkSlot.setDescription('The Slot Number for the main link of this resilient link.') ecs_rl_main_link_port = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRLMainLinkPort.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLMainLinkPort.setDescription('The Port Number for the main link of this resilient link.') ecs_rl_standby_slot = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRLStandbySlot.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLStandbySlot.setDescription('The Slot Number for the standby link of this resilient link.') ecs_rl_standby_port = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRLStandbyPort.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLStandbyPort.setDescription('The Port Number for the standby link of this resilient link.') ecs_rl_active_link = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('none', 2), ('main', 3), ('standby', 4), ('both', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLActiveLink.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLActiveLink.setDescription('The resilient link currently in use for traffic transmission. For a read the attribute indicates which link is active. A new link will always be configured with the main link being the active link. If the link status cannot be determined, the value unknown(1) is returned.') ecs_res_link_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 3, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10))).clone(namedValues=named_values(('invalid', 1), ('operational', 2), ('non-operational', 3), ('switchlink', 4), ('standby-jumperfault', 5), ('main-absent', 6), ('standby-absent', 7), ('main-failed', 8), ('standby-failed', 9), ('both-failed', 10)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsResLinkState.setStatus('mandatory') ecs_secure_rlc_mode = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSecureRLCMode.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecureRLCMode.setDescription('Determines whether the management of Secure Repeater Line Cards is disabled or not.') ecs_secure_trap_rep_rate = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 4, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('continuous', 1), ('one-minute', 2), ('fifteen-mins', 3), ('sixty-minutes', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsSecureTrapRepRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecureTrapRepRate.setDescription('Determines the rate at which secure traps are sent for a security violation.') ecs_secure_rlc_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 4, 3)) if mibBuilder.loadTexts: ecsSecureRLCTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecureRLCTable.setDescription('A table which allows management of the secure Repeater Line Cards.') ecs_secure_rlc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsSecRLCSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsSecRLCPortIndex')) if mibBuilder.loadTexts: ecsSecureRLCEntry.setStatus('mandatory') ecs_sec_rlc_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSecRLCSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCSlotIndex.setDescription('The secure repeater line card slot index') ecs_sec_rlc_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSecRLCPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCPortIndex.setDescription('The secure repeater line card port index') ecs_sec_rlc_link_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('secure', 2), ('repeater', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsSecRLCLinkState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCLinkState.setDescription('Attribute to determine whether the security features are enabled on this port of the secure Repeater Line Card.') ecs_sec_rlc_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3), ('unauthorised-station-seen', 4), ('unauthorised-station-port-disabled', 5), ('authorised-station-learnt', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsSecRLCPortState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCPortState.setDescription('Attribute to determine whether the port can be normally enabled.') ecs_sec_rlcntk_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsSecRLCNTKState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCNTKState.setDescription('Attribute to determine whether the Need to Know feature is enabled on the secure Repeater Line Card.') ecs_sec_rlc_broad_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsSecRLCBroadState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCBroadState.setDescription('Attribute to determine whether broadcasts are allowed or not allowed to be transmitted.') ecs_sec_rlc_multi_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('disabled', 2), ('enabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsSecRLCMultiState.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCMultiState.setDescription('Attribute to determine whether multicasts are allowed or not allowed to be transmitted.') ecs_sec_rlc_learn_mode = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('single', 2), ('continual', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsSecRLCLearnMode.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCLearnMode.setDescription('Attribute to determine the learning mode of the secure repeater line card.') ecs_sec_rlc_report_mode = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('off', 1), ('reportonly', 2), ('disconnectandreport', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsSecRLCReportMode.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCReportMode.setDescription('Attribute to determine the reporting mode of the secure repeater line card.') ecs_sec_rlcmac_address = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 4, 3, 1, 10), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsSecRLCMACAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsSecRLCMACAddress.setDescription('The MAC address in use by the secure repeater line card.') ecs_rlc_port_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 1)) if mibBuilder.loadTexts: ecsRLCPortStatisticsTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCPortStatisticsTable.setDescription('A table which summaries the statistics for each active port/slot') ecs_rlc_port_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsRepeaterSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsRepeaterPortIndex')) if mibBuilder.loadTexts: ecsRLCPortStatisticsEntry.setStatus('mandatory') ecs_repeater_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRepeaterSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterSlotIndex.setDescription('The repeater slot index.') ecs_repeater_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRepeaterPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterPortIndex.setDescription('The repeater port index.') ecs_repeater_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('disabled-linkdown', 3), ('enabled-linkdown', 4), ('disabled-linkup', 5), ('enabled-linkup', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRepeaterPortState.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterPortState.setDescription('The repeater port state.') ecs_repeater_partition_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('partitioned', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRepeaterPartitionState.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterPartitionState.setDescription('The repeater port partition state.') ecs_good_rcvd_frames = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsGoodRcvdFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsGoodRcvdFrames.setDescription('The number of good frames which have been received and repeted by the specified port.') ecs_total_byte_count = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsTotalByteCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsTotalByteCount.setDescription('The summation of the total number of bytes which have been received in good frames and repeated by the specified port.') ecs_total_error_count = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsTotalErrorCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsTotalErrorCount.setDescription('The summaration of all of the errors recorded in the PortErrors table for the specified port') ecs_rx_broadcast_frames = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRxBroadcastFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsRxBroadcastFrames.setDescription('The number of broadcast frames received on this port.') ecs_rx_multicast_frames = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRxMulticastFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsRxMulticastFrames.setDescription('The number of broadcast frames received on this port.') ecs_rlc_port_error_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 2)) if mibBuilder.loadTexts: ecsRLCPortErrorTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCPortErrorTable.setDescription('A table which summaries the error counts for each active port and slot') ecs_rlc_port_error_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsErrorSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsErrorPortIndex')) if mibBuilder.loadTexts: ecsRLCPortErrorEntry.setStatus('mandatory') ecs_error_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsErrorSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsErrorSlotIndex.setDescription('The repeater slot index') ecs_error_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsErrorPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsErrorPortIndex.setDescription('The repeater port index.') ecs_collisions_count = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCollisionsCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionsCount.setDescription('A count of every attempt to transmit a frame that involved a collision.') ecs_partitions = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsPartitions.setStatus('mandatory') if mibBuilder.loadTexts: ecsPartitions.setDescription('The count of the number of partitions which have been detected by the specified port.') ecs_carrier_sense_errors = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCarrierSenseErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseErrors.setDescription('The number of carrier sense errors which have been detected by the specified port.') ecs_align_errors = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAlignErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignErrors.setDescription('The number of frames with alignment errors which have been received by the specified port.') ecs_crc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCRCErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCErrors.setDescription('The number of frames with CRC errors which have been received by the specified port.') ecs_jabber_errors = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsJabberErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberErrors.setDescription('The number of jabber errors which have been detected by the specified port.') ecs_rlc_port_info_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 3)) if mibBuilder.loadTexts: ecsRLCPortInfoTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCPortInfoTable.setDescription('A table which summaries the status information for each active port/slot') ecs_rlc_port_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsInfoSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsInfoPortIndex')) if mibBuilder.loadTexts: ecsRLCPortInfoEntry.setStatus('mandatory') ecs_info_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsInfoSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsInfoSlotIndex.setDescription('The repeater slot index') ecs_info_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsInfoPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsInfoPortIndex.setDescription('The repeater port index') ecs_info_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsInfoPortName.setStatus('mandatory') if mibBuilder.loadTexts: ecsInfoPortName.setDescription('This is an informational string that could be used to show the name of a port.') ecs_repeater_partition_algor = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRepeaterPartitionAlgor.setStatus('mandatory') if mibBuilder.loadTexts: ecsRepeaterPartitionAlgor.setDescription('The current state of the repeater port algorithm.') ecs_jabber_lock_protect = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsJabberLockProtect.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberLockProtect.setDescription('The current state of the jabber protect switch. This affects all ports on the repeater ULA (not necessarily all ports on the card).') ecs_port_test = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('not-in-test', 1), ('test', 2), ('passed', 3), ('failed', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsPortTest.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortTest.setDescription('The Loopback test is performed on the specified port. This will interrupt traffic on all ports on the repeater ULA (not necessarily all ports on the card in a specified slot) while the test is in progress.') ecs_port_error_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 255))).clone(namedValues=named_values(('none', 1), ('normal', 2), ('hi-collision', 3), ('partition', 4), ('high-crc-errorrate', 5), ('high-alignment-errorrate', 6), ('high-traffic-rate', 7), ('high-jabber-errorrate', 8), ('high-carriersense-errorrate', 9), ('unpartitioned', 10), ('linkstatechange-up', 11), ('linkstatechange-down', 12), ('acknowledged', 255)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsPortErrorState.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortErrorState.setDescription("The error status of the specified port. Under normal conditions this takes the value 'normal' specifying that no error condition has been detected.") ecs_port_reset = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('not-reset', 1), ('reset', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsPortReset.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortReset.setDescription('The specified port is reset. This will interrupt traffic on all ports on the repeater ULA (not necessarily all ports on the card in a specified slot) while the reset is in progress.') ecs_port_partition_traps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('yes', 1), ('no', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsPortPartitionTraps.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortPartitionTraps.setDescription('Determines whether partition traps will be sent for this port.') ecs_port_link_traps = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('yes', 1), ('no', 2), ('not-applicable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsPortLinkTraps.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortLinkTraps.setDescription('Determines whether link traps will be sent for this port.') ecs_port_boot_state = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsPortBootState.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortBootState.setDescription('Determines whether the port is disabled on boot (DOB), and therefore suitable for resilient link use.') ecs_port_sl_mode = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsPortSLMode.setStatus('mandatory') if mibBuilder.loadTexts: ecsPortSLMode.setDescription('Determines whether station locate is enabled for this port.') ecs_rl_ccrc_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 4)) if mibBuilder.loadTexts: ecsRLCcrcTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCcrcTable.setDescription('Level at which port rate error rate trap is produced.') ecs_rl_ccrc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsCRCSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsCRCPortIndex')) if mibBuilder.loadTexts: ecsRLCcrcEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCcrcEntry.setDescription('The number of frames with CRC errors which have been received by the specified port.') ecs_crc_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCRCSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCSlotIndex.setDescription('The repeater slot index') ecs_crc_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCRCPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCPortIndex.setDescription('The repeater port index') ecs_crc_error_rate = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCRCErrorRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCErrorRate.setDescription('The gauge representing the CRC error rate. This is configured using the CRC error rate configuration.') ecs_crc_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCRCThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCThreshold.setDescription('Level at which port rate error rate trap is produced.') ecs_crc_dec_rate_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCRCDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCDecRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ).') ecs_crc_dec_rate_units = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('microseconds', 2), ('milliseconds', 3), ('seconds', 4), ('minutes', 5), ('hours', 6), ('days', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCRCDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecs_crc_hysteresis_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 4, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCRCHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCRCHysteresisValue.setDescription('Specifies the value to which the CRC error guage must fall before another crossing of the threshold results in a trap.') ecs_rl_ctraffic_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 5)) if mibBuilder.loadTexts: ecsRLCtrafficTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCtrafficTable.setDescription('The configuration parameters which must be set up in order to use the traffic rate guage.') ecs_rl_ctraffic_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsTrafficSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsTrafficPortIndex')) if mibBuilder.loadTexts: ecsRLCtrafficEntry.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCtrafficEntry.setDescription('') ecs_traffic_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsTrafficSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficSlotIndex.setDescription('The repeater slot index') ecs_traffic_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsTrafficPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficPortIndex.setDescription('The repeater port index') ecs_traffic_rate = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsTrafficRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficRate.setDescription('The gauge representing the rate at which good frames have been received and repeated. This is configured using the traffic rate configuration.') ecs_traffic_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsTrafficThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficThreshold.setDescription('Level at which port rate error rate trap is produced.') ecs_traffic_dec_rate_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsTrafficDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficDecRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ).') ecs_traffic_dec_rate_units = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('microseconds', 2), ('milliseconds', 3), ('seconds', 4), ('minutes', 5), ('hours', 6), ('days', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsTrafficDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecs_traffic_hysteresis_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 5, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsTrafficHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsTrafficHysteresisValue.setDescription('Specifies the value to which the CRC error guage must fall before another crossing of the threshold results in a trap.') ecs_rl_ccollision_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 6)) if mibBuilder.loadTexts: ecsRLCcollisionTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCcollisionTable.setDescription('The configuration parameters which must be set up in order to use the collision rate guage.') ecs_rl_ccollision_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsCollisionSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsCollisionPortIndex')) if mibBuilder.loadTexts: ecsRLCcollisionEntry.setStatus('mandatory') ecs_collision_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCollisionSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionSlotIndex.setDescription('The repeater slot index') ecs_collision_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCollisionPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionPortIndex.setDescription('The repeater port index') ecs_collision_rate = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCollisionRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionRate.setDescription('The gauge representing the rate at which collisions have been detected. This is configured using the collision rate configuration.') ecs_collision_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCollisionThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionThreshold.setDescription('Level at which the collision rate guage will produce a High Collision rate trap.') ecs_collision_dec_rate_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCollisionDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionDecRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ).') ecs_collision_dec_rate_units = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('microseconds', 2), ('milliseconds', 3), ('seconds', 4), ('minutes', 5), ('hours', 6), ('days', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCollisionDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecs_collision_hysteresis_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 6, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCollisionHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCollisionHysteresisValue.setDescription('Specifies the value to which the Collision guage must fall before another crossing of the threshold results in a trap.') ecs_rl_cjabber_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 7)) if mibBuilder.loadTexts: ecsRLCjabberTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCjabberTable.setDescription('The configuration parameters which must be set up in order to use the jabber rate guage.') ecs_rl_cjabber_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsJabberSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsJabberPortIndex')) if mibBuilder.loadTexts: ecsRLCjabberEntry.setStatus('mandatory') ecs_jabber_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsJabberSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberSlotIndex.setDescription('The repeater slot index') ecs_jabber_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsJabberPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberPortIndex.setDescription('The repeater port index') ecs_jabber_error_rate = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsJabberErrorRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberErrorRate.setDescription('The gauge representing the rate at which jabber errors have been detected. This is configured using the jabber rate configuration.') ecs_jabber_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsJabberThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberThreshold.setDescription('Level at which port rate error rate trap is produced.') ecs_jabber_dec_rate_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsJabberDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberDecRateValue.setDescription('VALUE that, along with Rate Units, determine the Rate Interval, Rate Interval = ( Units * Value )') ecs_jabber_dec_rate_units = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('microseconds', 2), ('milliseconds', 3), ('seconds', 4), ('minutes', 5), ('hours', 6), ('days', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsJabberDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecs_jabber_hysteresis_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 7, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsJabberHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsJabberHysteresisValue.setDescription('Specifies the value to which the jabber error guage must fall before another crossing of the threshold results in a trap.') ecs_rl_calign_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 8)) if mibBuilder.loadTexts: ecsRLCalignTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCalignTable.setDescription('The configuration parameters which must be set up in order to use the alignment error rate guage.') ecs_rl_calign_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsAlignSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsAlignPortIndex')) if mibBuilder.loadTexts: ecsRLCalignEntry.setStatus('mandatory') ecs_align_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAlignSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignSlotIndex.setDescription('The repeater slot index') ecs_align_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAlignPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignPortIndex.setDescription('The repeater port index') ecs_align_error_rate = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsAlignErrorRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignErrorRate.setDescription('The gauge representing the alignment error rate. This is configured using the alignment error rate configuration.') ecs_align_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAlignThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignThreshold.setDescription('Level at which port rate error rate trap is produced.') ecs_align_dec_rate_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAlignDecRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignDecRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ), where UNITS are in ns') ecs_align_dec_rate_units = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('microseconds', 2), ('milliseconds', 3), ('seconds', 4), ('minutes', 5), ('hours', 6), ('days', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAlignDecRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignDecRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecs_align_hysteresis_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 8, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsAlignHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsAlignHysteresisValue.setDescription('Specifies the value to which the CRC error guage must fall before another crossing of the threshold results in a trap.') ecs_rl_ccarrier_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 9)) if mibBuilder.loadTexts: ecsRLCcarrierTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCcarrierTable.setDescription('The configuration parameters which must be set up in order to use the carrier sense error rate guage.') ecs_rl_ccarrier_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsCarrierSlotIndex'), (0, 'LBHUB-ECS-MIB', 'ecsCarrierPortIndex')) if mibBuilder.loadTexts: ecsRLCcarrierEntry.setStatus('mandatory') ecs_carrier_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCarrierSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSlotIndex.setDescription('The repeater slot index') ecs_carrier_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCarrierPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierPortIndex.setDescription('The repeater port index') ecs_carrier_sense_error_rate = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 3), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsCarrierSenseErrorRate.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseErrorRate.setDescription('The gauge representing the rate at which jabber errors have been detected. This is configured using the jabber rate configuration.') ecs_carrier_sense_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCarrierSenseThreshold.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseThreshold.setDescription('Level at which port rate error rate trap is produced.') ecs_carrier_sense_rate_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCarrierSenseRateValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseRateValue.setDescription('VALUE that, along with Rate Units, determines the Rate Interval, (in ns) between decrements of the CRC error guage, Rate Interval = ( Units * Value ).') ecs_carrier_sense_rate_units = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('other', 1), ('microseconds', 2), ('milliseconds', 3), ('seconds', 4), ('minutes', 5), ('hours', 6), ('days', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCarrierSenseRateUnits.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseRateUnits.setDescription('UNITS that, along with Rate value, determine the Rate Interval Rate Interval = ( Units * Value )') ecs_carrier_sense_hysteresis_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 9, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsCarrierSenseHysteresisValue.setStatus('mandatory') if mibBuilder.loadTexts: ecsCarrierSenseHysteresisValue.setDescription('Specifies the value to which the carrier sense error guage must fall before another crossing of the threshold results in a trap.') ecs_rlc_slot_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 10)) if mibBuilder.loadTexts: ecsRLCSlotStatisticsTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSlotStatisticsTable.setDescription('A table which summaries the statistics for each active slot') ecs_rlc_slot_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsRLCSlotIndex')) if mibBuilder.loadTexts: ecsRLCSlotStatisticsEntry.setStatus('mandatory') ecs_rlc_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSlotIndex.setDescription('The slot number of the Repeater Line Card.') ecs_rlc_good_rcvd_frames = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCGoodRcvdFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCGoodRcvdFrames.setDescription('The number of readable frames received by this slot.') ecs_rlc_total_byte_count = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCTotalByteCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCTotalByteCount.setDescription('The number of readable octets received by this Repeater Line Card.') ecs_rlc_total_error_count = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCTotalErrorCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCTotalErrorCount.setDescription('The total number of errors received on this slot.') ecs_rlc_total_broadcasts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCTotalBroadcasts.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCTotalBroadcasts.setDescription('The total number of broadcast frames received on this slot.') ecs_rlc_total_multicasts = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 10, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCTotalMulticasts.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCTotalMulticasts.setDescription('The total number of multicast frames received on this slot.') ecs_rlc_slot_error_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 5, 11)) if mibBuilder.loadTexts: ecsRLCSlotErrorTable.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSlotErrorTable.setDescription('A table which summaries the error statistics for each active slot') ecs_rlc_slot_error_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsRLCErrorSlotIndex')) if mibBuilder.loadTexts: ecsRLCSlotErrorEntry.setStatus('mandatory') ecs_rlc_error_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCErrorSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCErrorSlotIndex.setDescription('The slot number of the Repeater Line Card for which these error statistics pertain.') ecs_rlc_collisions_count = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCCollisionsCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCCollisionsCount.setDescription('The total number of Collisions Reported for this slot.') ecs_rlc_partitions = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCPartitions.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCPartitions.setDescription('The total number of Partitions Reported for this slot.') ecs_rlc_carrier_sense_errors = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCCarrierSenseErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCCarrierSenseErrors.setDescription('The total number of Carrier Sense erros reported for this slot.') ecs_rlc_align_errors = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCAlignErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCAlignErrors.setDescription('The total number of Alignement errors Reported for this slot.') ecs_rlccrc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCCRCErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCCRCErrors.setDescription('The total number of CRC errors reported for this slot.') ecs_rlc_jabber_errors = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 5, 11, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCJabberErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCJabberErrors.setDescription('The total number of jabber errors reported for this slot.') ecs_hub_total_good_rcvd_frames = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalGoodRcvdFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalGoodRcvdFrames.setDescription('The number of readable frames received by this slot.') ecs_hub_total_byte_count = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalByteCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalByteCount.setDescription('The number of readable octets received by this hub.') ecs_hub_total_error_count = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalErrorCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalErrorCount.setDescription('The total number of errored packets detected on the hub.') ecs_hub_total_broadcasts = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalBroadcasts.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalBroadcasts.setDescription('The total number of brodcast packets detected on the hub.') ecs_hub_total_multi_frames = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalMultiFrames.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalMultiFrames.setDescription('The total number of multicast packets detected on the hub.') ecs_hub_total_collisions_count = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalCollisionsCount.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalCollisionsCount.setDescription('The total number of Collisions Reported for the hub.') ecs_hub_total_partitions = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalPartitions.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalPartitions.setDescription('The total number of Partitions Reported for this hub.') ecs_hub_total_carrier_sense_errors = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalCarrierSenseErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalCarrierSenseErrors.setDescription('The total number of Carrier Sense erros reported for this hub.') ecs_hub_total_align_errors = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalAlignErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalAlignErrors.setDescription('The total number of Alignement errors reported for this hub.') ecs_hub_total_crc_errors = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalCRCErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalCRCErrors.setDescription('The total number of CRC errors reported for this hub.') ecs_hub_total_jabber_errors = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 8, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsHubTotalJabberErrors.setStatus('mandatory') if mibBuilder.loadTexts: ecsHubTotalJabberErrors.setDescription('The total number of jabber errors reported for this hub.') ecs_rlc_size_of_station_locate_db = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCSizeOfStationLocateDB.setStatus('mandatory') ecs_rlc_numb_of_sl_entries = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCNumbOfSLEntries.setStatus('mandatory') ecs_rlcsl_data_base_status = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('changed', 1), ('unchanged', 2), ('clear', 3), ('full', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRLCSLDataBaseStatus.setStatus('mandatory') ecs_rlcs_low_filter_address = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 4), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRLCSLowFilterAddress.setStatus('mandatory') ecs_rlcs_lhigh_filter_address = mib_scalar((1, 3, 6, 1, 4, 1, 43, 9, 6, 5), octet_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRLCSLhighFilterAddress.setStatus('mandatory') ecs_rlc_station_locate_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 6, 6)) if mibBuilder.loadTexts: ecsRLCStationLocateTable.setStatus('mandatory') ecs_rlc_station_locate_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsRLCSLAddress')) if mibBuilder.loadTexts: ecsRLCStationLocateEntry.setStatus('mandatory') ecs_rlcsl_address = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCSLAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSLAddress.setDescription('The MAC Address for which one wishes to locate the slot and port.') ecs_rlcsl_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCSLSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSLSlotIndex.setDescription('The slot number for this MAC address declared in ecsRLCStationAddress.') ecs_rlcsl_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCSLPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSLPortIndex.setDescription('The port number for this MAC address declared in ecsRLCStationAddress.') ecs_rlcsl_status = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 6, 6, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsRLCSLStatus.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCSLStatus.setDescription('Writing clear(1) will clear the entry in the LinkBuilder ECS DataBase.') ecs_rlc_new_station_locate_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 6, 7)) if mibBuilder.loadTexts: ecsRLCNewStationLocateTable.setStatus('mandatory') ecs_rlc_new_station_locate_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 6, 7, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsRLCNewSLAddress')) if mibBuilder.loadTexts: ecsRLCNewStationLocateEntry.setStatus('mandatory') ecs_rlc_new_sl_address = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 6, 7, 1, 1), octet_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCNewSLAddress.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNewSLAddress.setDescription('The MAC Address for which one wishes to locate the slot and port.') ecs_rlc_new_sl_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 6, 7, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCNewSLSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNewSLSlotIndex.setDescription('The slot number for this MAC address declared in ecsRLCNewSLAddress.') ecs_rlc_new_sl_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 6, 7, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsRLCNewSLPortIndex.setStatus('mandatory') if mibBuilder.loadTexts: ecsRLCNewSLPortIndex.setDescription('The port number for this MAC address declared in ecsRLCNewSLAddress.') xecs_dummy_table = mib_table((1, 3, 6, 1, 4, 1, 43, 9, 255, 1)) if mibBuilder.loadTexts: xecsDummyTable.setStatus('mandatory') if mibBuilder.loadTexts: xecsDummyTable.setDescription('A dummy table which allows management of all tables (an snm bug).') ecs_dummy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 43, 9, 255, 1, 1)).setIndexNames((0, 'LBHUB-ECS-MIB', 'ecsDummyIndex')) if mibBuilder.loadTexts: ecsDummyEntry.setStatus('mandatory') ecs_dummy_index = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 255, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ecsDummyIndex.setStatus('mandatory') ecs_dummy_value = mib_table_column((1, 3, 6, 1, 4, 1, 43, 9, 255, 1, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ecsDummyValue.setStatus('mandatory') power_supply_failure = notification_type((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0, 0)).setObjects(('LBHUB-ECS-MIB', 'ecsPSUStatus')) if mibBuilder.loadTexts: powerSupplyFailure.setDescription('One of the PSUs has failed, the value of ecsPSUStatus is returned to indicate which PSU has failed.') fan_failure = notification_type((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0, 1)) if mibBuilder.loadTexts: fanFailure.setDescription('A LinkBuilder ECS Fan has failed, requiring immediate attenstion.') configuration_changed = notification_type((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0, 2)) if mibBuilder.loadTexts: configurationChanged.setDescription('The LinkBuilder ECS configuartion has changed. Either a card has been added or removed, a port disabled or enabled from the front panel or a AUI port has been selected/deselected.') port_trap = notification_type((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0, 3)).setObjects(('LBHUB-ECS-MIB', 'ecsInfoSlotIndex'), ('LBHUB-ECS-MIB', 'ecsInfoPortIndex'), ('LBHUB-ECS-MIB', 'ecsPortErrorState')) if mibBuilder.loadTexts: portTrap.setDescription('A port has partitioned/unpartitioned or has changed link state. The values of ecsInfoSlotIndex and ecsInfoPortIndex are returned to indicate the slot and port, the ecsPortErrorState is returned to indicate the type or port error.') resilient_link_trap = notification_type((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0, 4)).setObjects(('LBHUB-ECS-MIB', 'ecsRLMainLinkSlot'), ('LBHUB-ECS-MIB', 'ecsRLMainLinkPort'), ('LBHUB-ECS-MIB', 'ecsRLStandbySlot'), ('LBHUB-ECS-MIB', 'ecsRLStandbyPort'), ('LBHUB-ECS-MIB', 'ecsRLActiveLink'), ('LBHUB-ECS-MIB', 'ecsResLinkState')) if mibBuilder.loadTexts: resilientLinkTrap.setDescription('The LinkBuilder ECS Resilient Link system has operated. The resilient link is returned to determine the action taken.') rate_trap = notification_type((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0, 5)).setObjects(('LBHUB-ECS-MIB', 'ecsInfoSlotIndex'), ('LBHUB-ECS-MIB', 'ecsInfoPortIndex'), ('LBHUB-ECS-MIB', 'ecsPortErrorState')) if mibBuilder.loadTexts: rateTrap.setDescription('A Guage threshold has been exceeded. The slot and port number are given by the vakues if ecsInfoSlotIndex and ecsInfoPortIndex and the guage that has been exceeded is given by the value of ecsPortErrorState.') stationlocate_trap = notification_type((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0, 6)).setObjects(('LBHUB-ECS-MIB', 'ecsRLCSLDataBaseStatus')) if mibBuilder.loadTexts: stationlocateTrap.setDescription('The Station Locate databse has either changed or has become full. The particular condition is shown by the value of ecsRLCSLDataBAseStatus returned.') secure_rlc_trap = notification_type((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0, 7)).setObjects(('LBHUB-ECS-MIB', 'ecsAgentSecureManagementStatus')) if mibBuilder.loadTexts: secureRLCTrap.setDescription('There has been access to the security menus from the front panel menus. The value of ecsAgentSecureManagementStatus reports whether the trap was generated beacuse the security menus were entered, the secure password was violated or the security configuration has been changed.') secure_rl_cport_trap = notification_type((1, 3, 6, 1, 4, 1, 43, 1, 8, 3) + (0, 8)).setObjects(('LBHUB-ECS-MIB', 'ecsSecRLCSlotIndex'), ('LBHUB-ECS-MIB', 'ecsSecRLCPortIndex'), ('LBHUB-ECS-MIB', 'ecsSecRLCPortState'), ('LBHUB-ECS-MIB', 'ecsSecRLCMACAddress')) if mibBuilder.loadTexts: secureRLCportTrap.setDescription('A secure port has either detected an authorised port and taken appropriate action or has learnt an authorised station on the slot and port indicated.') mibBuilder.exportSymbols('LBHUB-ECS-MIB', linkBuilderFMSII_cards_12tp_rj45=linkBuilderFMSII_cards_12tp_rj45, ecsAgentFrontPanelSetupPassword=ecsAgentFrontPanelSetupPassword, asciiAgent=asciiAgent, ecsPortBootState=ecsPortBootState, ecsAgentTrapReceiverEntry=ecsAgentTrapReceiverEntry, brouter=brouter, ecsAlignDecRateUnits=ecsAlignDecRateUnits, ecsPSUStatus=ecsPSUStatus, ecsRLCcollisionEntry=ecsRLCcollisionEntry, ecsRLCSLhighFilterAddress=ecsRLCSLhighFilterAddress, genericMSWorkstation=genericMSWorkstation, gauges=gauges, ecsHubTotalCRCErrors=ecsHubTotalCRCErrors, linkBuilderECS=linkBuilderECS, ecsJabberLockProtect=ecsJabberLockProtect, ecsSecRLCLearnMode=ecsSecRLCLearnMode, ecsCRCThreshold=ecsCRCThreshold, ecsAgentDefaultConfig=ecsAgentDefaultConfig, linkBuilder10BTi=linkBuilder10BTi, ecsAgentResetDevice=ecsAgentResetDevice, ecsRxMulticastFrames=ecsRxMulticastFrames, ecsSlotCardName=ecsSlotCardName, ecsRLMainLinkSlot=ecsRLMainLinkSlot, linkBuilderFMS_cards_24utp=linkBuilderFMS_cards_24utp, ecsLampOverRide=ecsLampOverRide, ecsRLCjabberTable=ecsRLCjabberTable, ecsManufacturerId=ecsManufacturerId, endStation=endStation, ecsSecRLCPortIndex=ecsSecRLCPortIndex, products=products, ecsAgentRestart=ecsAgentRestart, ecsAgentLastSystemError=ecsAgentLastSystemError, ecsCRCPortIndex=ecsCRCPortIndex, ecsCRCDecRateValue=ecsCRCDecRateValue, ecsRLCCRCErrors=ecsRLCCRCErrors, linkBuilderFMSLBridge=linkBuilderFMSLBridge, ecsHubTotalByteCount=ecsHubTotalByteCount, ecsCardIsolated=ecsCardIsolated, dedicatedRouteServer=dedicatedRouteServer, tcp=tcp, linkBuilderFMSII=linkBuilderFMSII, ecsManufacturerProductId=ecsManufacturerProductId, icmp=icmp, ecsSecRLCNTKState=ecsSecRLCNTKState, ecsPortSLMode=ecsPortSLMode, terminalServer=terminalServer, ecsRepeaterPartitionState=ecsRepeaterPartitionState, ecsSecRLCReportMode=ecsSecRLCReportMode, ecsRLCPortInfoTable=ecsRLCPortInfoTable, ecsCollisionDecRateValue=ecsCollisionDecRateValue, ecsRepeaterSlotIndex=ecsRepeaterSlotIndex, powerSupplyFailure=powerSupplyFailure, ecsDummyValue=ecsDummyValue, ecsAgentSystemName=ecsAgentSystemName, ecsAlignErrors=ecsAlignErrors, ecsHubTotalJabberErrors=ecsHubTotalJabberErrors, ecsRepeaterPortState=ecsRepeaterPortState, ecsRLCcrcEntry=ecsRLCcrcEntry, security=security, ecsPortLinkTraps=ecsPortLinkTraps, ecsRLCSlotErrorTable=ecsRLCSlotErrorTable, generic=generic, xecsDummyTable=xecsDummyTable, ecsRLCTotalByteCount=ecsRLCTotalByteCount, ecsRLCtrafficTable=ecsRLCtrafficTable, ecsRLCStationLocate=ecsRLCStationLocate, specificTrap=specificTrap, secureRLCportTrap=secureRLCportTrap, configurationChanged=configurationChanged, mib_2=mib_2, ecsRxBroadcastFrames=ecsRxBroadcastFrames, ecsSecRLCLinkState=ecsSecRLCLinkState, ip=ip, ecsAlignHysteresisValue=ecsAlignHysteresisValue, ecsCRCSlotIndex=ecsCRCSlotIndex, ecsHubTotalCollisionsCount=ecsHubTotalCollisionsCount, ecsInfoPortName=ecsInfoPortName, ecsRLCPortErrorEntry=ecsRLCPortErrorEntry, ecsAgentTrapReceiverTable=ecsAgentTrapReceiverTable, localSnmp=localSnmp, ecsRLCSLDataBaseStatus=ecsRLCSLDataBaseStatus, linkBuilderFMSII_cards_24tp_telco=linkBuilderFMSII_cards_24tp_telco, ifExtensions=ifExtensions, ecsRLCNewSLPortIndex=ecsRLCNewSLPortIndex, ecsAgentMACAddress=ecsAgentMACAddress, ecsRLCcarrierTable=ecsRLCcarrierTable, ecsAgentAuthenticationStatus=ecsAgentAuthenticationStatus, mrmResilience=mrmResilience, ecsAgentTrapLevel=ecsAgentTrapLevel, ecsAgentFrontPanelPassword=ecsAgentFrontPanelPassword, ecsAgentFrontPanelLock=ecsAgentFrontPanelLock, ecsCarrierSenseRateValue=ecsCarrierSenseRateValue, ecsDummyIndex=ecsDummyIndex, PhysAddress=PhysAddress, sysLoader=sysLoader, linkBuilderFMSII_cards_12fiber_st=linkBuilderFMSII_cards_12fiber_st, ecsAgentSystemLocation=ecsAgentSystemLocation, ecsCarrierSenseErrors=ecsCarrierSenseErrors, ecsRLCPortErrorTable=ecsRLCPortErrorTable, ecsAgentStatus=ecsAgentStatus, ecsRLCalignTable=ecsRLCalignTable, ecsJabberErrorRate=ecsJabberErrorRate, egp=egp, ecsRLCErrorSlotIndex=ecsRLCErrorSlotIndex, ecsSecureRLCMode=ecsSecureRLCMode, hub=hub, ecsRLStandbyPort=ecsRLStandbyPort, ecsAgentLastTrap=ecsAgentLastTrap, ecsRLMainLinkPort=ecsRLMainLinkPort, ecsInfoSlotIndex=ecsInfoSlotIndex, linkBuilderFMS_cards_fiber=linkBuilderFMS_cards_fiber, ecsSecureRepeaterLineCards=ecsSecureRepeaterLineCards, linkBuilder3GH_cards=linkBuilder3GH_cards, linkBuilderFMS_cards_coax=linkBuilderFMS_cards_coax, resilientLinkTrap=resilientLinkTrap, ecsRLCcollisionTable=ecsRLCcollisionTable, ecsAgentFrontPanelSecurePassword=ecsAgentFrontPanelSecurePassword, powerSupply=powerSupply, ecsAgentAuthTrapState=ecsAgentAuthTrapState, udp=udp, a3Com=a3Com, ecsSecRLCPortState=ecsSecRLCPortState, ecsRLCjabberEntry=ecsRLCjabberEntry, linkBuilderFMSII_cards_24tp_rj45=linkBuilderFMSII_cards_24tp_rj45, ecsPartitions=ecsPartitions, ecsSecureRLCEntry=ecsSecureRLCEntry, ecsRLCPortStatisticsTable=ecsRLCPortStatisticsTable, ecsCollisionPortIndex=ecsCollisionPortIndex, ecsHubTotalAlignErrors=ecsHubTotalAlignErrors, ecsSlotMediaType=ecsSlotMediaType, ecsAgent=ecsAgent, serialIf=serialIf, ecsSecRLCMACAddress=ecsSecRLCMACAddress, snmp=snmp, ecsHubTotalMultiFrames=ecsHubTotalMultiFrames, ecsAlignErrorRate=ecsAlignErrorRate, secureRLCTrap=secureRLCTrap, ecsRLCSlotErrorEntry=ecsRLCSlotErrorEntry, ecsCarrierSenseRateUnits=ecsCarrierSenseRateUnits, ecsRLActiveLink=ecsRLActiveLink, netBuilder_mib=netBuilder_mib, ecsRLCalignEntry=ecsRLCalignEntry, ecsAgentManAccessLevel=ecsAgentManAccessLevel, ecsRLCTotalBroadcasts=ecsRLCTotalBroadcasts, ecsHubTotalPartitions=ecsHubTotalPartitions, ecsSecRLCSlotIndex=ecsSecRLCSlotIndex, ecsCarrierSenseErrorRate=ecsCarrierSenseErrorRate, ecsSlotDeviceType=ecsSlotDeviceType, ecsCarrierSenseHysteresisValue=ecsCarrierSenseHysteresisValue, interfaces=interfaces, ecsAgentManagementAddr=ecsAgentManagementAddr, ecsRLCTotalMulticasts=ecsRLCTotalMulticasts, linkBuilder3GH_mib=linkBuilder3GH_mib, linkBuilderECS_cards=linkBuilderECS_cards, ecsCollisionThreshold=ecsCollisionThreshold, ecsRLCSLPortIndex=ecsRLCSLPortIndex, ecsRLCNumberOfDOBPorts=ecsRLCNumberOfDOBPorts, ecsRLCPartitions=ecsRLCPartitions, lBridgeECS_mib=lBridgeECS_mib, ecsAgentSystemTime=ecsAgentSystemTime, linkBuilder10BTi_cards_utp=linkBuilder10BTi_cards_utp, ecsRLCSLAddress=ecsRLCSLAddress, ecsCRCErrorRate=ecsCRCErrorRate, ecsAgentManagementEntry=ecsAgentManagementEntry, repeaterMgmt=repeaterMgmt, ecsPortTest=ecsPortTest, ecsAlignPortIndex=ecsAlignPortIndex, ecsAgentIpAddr=ecsAgentIpAddr, linkBuilderFMS_cards=linkBuilderFMS_cards, linkBuilderMSH_mib=linkBuilderMSH_mib, multiRepeater=multiRepeater, ecsAgentManagementAccess=ecsAgentManagementAccess, ecsRLCPortStatisticsEntry=ecsRLCPortStatisticsEntry, ecsPortErrorState=ecsPortErrorState, ecsRLCSlotStatisticsEntry=ecsRLCSlotStatisticsEntry, ecsRLCNumberOfResilientLinks=ecsRLCNumberOfResilientLinks, linkBuilderFMS=linkBuilderFMS, ecsRLCResilientLinks=ecsRLCResilientLinks, system=system, ecsDummyEntry=ecsDummyEntry, ecsTrafficDecRateValue=ecsTrafficDecRateValue, ecsAlignDecRateValue=ecsAlignDecRateValue, ecsJabberErrors=ecsJabberErrors, ecsAgentTrapReceiverAddr=ecsAgentTrapReceiverAddr, ecsHardwareVersionNumber=ecsHardwareVersionNumber, ecsJabberDecRateUnits=ecsJabberDecRateUnits, manager=manager, ecsRLCNumbOfSLEntries=ecsRLCNumbOfSLEntries, ecsCRCErrors=ecsCRCErrors, ecsAgentSystemIdentifier=ecsAgentSystemIdentifier, ecsJabberHysteresisValue=ecsJabberHysteresisValue, ecsHubTotalCarrierSenseErrors=ecsHubTotalCarrierSenseErrors, ecsAgentDefaultGateway=ecsAgentDefaultGateway, ecsCardReset=ecsCardReset, ecsSecureTrapRepRate=ecsSecureTrapRepRate, ecsCarrierSenseThreshold=ecsCarrierSenseThreshold, ecsRLCSLSlotIndex=ecsRLCSLSlotIndex, ecsAgentTrapReceiverComm=ecsAgentTrapReceiverComm, setup=setup, ecsJabberSlotIndex=ecsJabberSlotIndex, ecsVideo=ecsVideo, ecsPortPartitionTraps=ecsPortPartitionTraps, ecsRLCStationLocateEntry=ecsRLCStationLocateEntry, linkBuilderFMSII_cards_6fiber_st=linkBuilderFMSII_cards_6fiber_st, fault=fault, ecsRLCSizeOfStationLocateDB=ecsRLCSizeOfStationLocateDB, ecsSlotSoftVerNum=ecsSlotSoftVerNum, ecsSlotConfigEntry=ecsSlotConfigEntry, genExperimental=genExperimental, ecsSlotNumOfPorts=ecsSlotNumOfPorts, ecsTotalByteCount=ecsTotalByteCount, ecsSoftwareVersionNumber=ecsSoftwareVersionNumber, ecsRLCResilientLinkTable=ecsRLCResilientLinkTable, bridgeMgmt=bridgeMgmt, ecsAgentTrapType=ecsAgentTrapType, poll=poll, ecsRLCAlignErrors=ecsRLCAlignErrors, portTrap=portTrap, linkBuilder10BTi_cards=linkBuilder10BTi_cards, chassis=chassis, ecsSlotHardVerNum=ecsSlotHardVerNum, ecsHubTotalGoodRcvdFrames=ecsHubTotalGoodRcvdFrames, rateTrap=rateTrap, ecsRLCPortInfoEntry=ecsRLCPortInfoEntry, ecsResLinkState=ecsResLinkState, ecsErrorSlotIndex=ecsErrorSlotIndex, ecsRLCNewSLAddress=ecsRLCNewSLAddress, tokenRing=tokenRing, linkBuilder3GH=linkBuilder3GH, linkBuilderFMSII_cards_10coax_bnc=linkBuilderFMSII_cards_10coax_bnc, ecsRLCCarrierSenseErrors=ecsRLCCarrierSenseErrors, ecsAlignThreshold=ecsAlignThreshold, unusedGeneric12=unusedGeneric12, ecsRackConfigurationTable=ecsRackConfigurationTable, ecsTrafficPortIndex=ecsTrafficPortIndex, ecsCarrierSlotIndex=ecsCarrierSlotIndex, linkBuilderECS_mib=linkBuilderECS_mib, ecsRLCJabberErrors=ecsRLCJabberErrors, ecsAgentSecureTrapState=ecsAgentSecureTrapState, dedicatedBridgeServer=dedicatedBridgeServer, ecsAgentSecureManagementStatus=ecsAgentSecureManagementStatus, ecsGoodRcvdFrames=ecsGoodRcvdFrames, ecsRLCcarrierEntry=ecsRLCcarrierEntry, ecsJabberDecRateValue=ecsJabberDecRateValue, stationlocateTrap=stationlocateTrap, ecsRLCNewSLSlotIndex=ecsRLCNewSLSlotIndex, testData=testData, ecsRLCResilientLinkEntry=ecsRLCResilientLinkEntry, ecsRLStandbySlot=ecsRLStandbySlot, transmission=transmission, ecsTrafficDecRateUnits=ecsTrafficDecRateUnits, ecsCollisionHysteresisValue=ecsCollisionHysteresisValue, DisplayString=DisplayString, genericUnixServer=genericUnixServer) mibBuilder.exportSymbols('LBHUB-ECS-MIB', ecsSecRLCMultiState=ecsSecRLCMultiState, ecsRLCStationLocateTable=ecsRLCStationLocateTable, ecsCollisionsCount=ecsCollisionsCount, ecsRLCSLowFilterAddress=ecsRLCSLowFilterAddress, ecsCRCDecRateUnits=ecsCRCDecRateUnits, ecsHubStatistics=ecsHubStatistics, cards=cards, ecsRLCCollisionsCount=ecsRLCCollisionsCount, amp_mib=amp_mib, lbecsXENDOFMIB=lbecsXENDOFMIB, fanFailure=fanFailure, at=at, ecsRLCNewStationLocateEntry=ecsRLCNewStationLocateEntry, ecsSecRLCBroadState=ecsSecRLCBroadState, deskMan_mib=deskMan_mib, ecsCardIpAddress=ecsCardIpAddress, ecsAgentIpBroadAddr=ecsAgentIpBroadAddr, linkBuilder10BTi_mib=linkBuilder10BTi_mib, ecsCollisionDecRateUnits=ecsCollisionDecRateUnits, ecsFanStatus=ecsFanStatus, ecsRLCTotalErrorCount=ecsRLCTotalErrorCount, ecsTotalErrorCount=ecsTotalErrorCount, ecsTrafficHysteresisValue=ecsTrafficHysteresisValue, ecsAlignSlotIndex=ecsAlignSlotIndex, ecsRLCNewStationLocateTable=ecsRLCNewStationLocateTable, linkBuilderMSH_cards=linkBuilderMSH_cards, ecsPortReset=ecsPortReset, ecsHubTotalErrorCount=ecsHubTotalErrorCount, ecsAgentFrontPanelDisplay=ecsAgentFrontPanelDisplay, ecsCarrierPortIndex=ecsCarrierPortIndex, ecsSecureRLCTable=ecsSecureRLCTable, ecsCRCHysteresisValue=ecsCRCHysteresisValue, ecsRLCSlotIndex=ecsRLCSlotIndex, ecsRLCSLStatus=ecsRLCSLStatus, ecsTrafficRate=ecsTrafficRate, linkBuilder10BT_cards_utp=linkBuilder10BT_cards_utp, ecsAgentManagementTable=ecsAgentManagementTable, ecsAgentIpNetmask=ecsAgentIpNetmask, genericTrap=genericTrap, viewBuilderApps=viewBuilderApps, linkBuilderFMSII_cards=linkBuilderFMSII_cards, linkBuilderFMS_cards_utp=linkBuilderFMS_cards_utp, ecsRLCtrafficEntry=ecsRLCtrafficEntry, ecsRLCSlotStatisticsTable=ecsRLCSlotStatisticsTable, ecsCollisionRate=ecsCollisionRate, ecsCollisionSlotIndex=ecsCollisionSlotIndex, ecsRLCGoodRcvdFrames=ecsRLCGoodRcvdFrames, ecsSlotConfigIndex=ecsSlotConfigIndex, ecsRepeaterPartitionAlgor=ecsRepeaterPartitionAlgor, ecsRepeaterLineCard=ecsRepeaterLineCard, ecsRLCcrcTable=ecsRLCcrcTable, ecsErrorPortIndex=ecsErrorPortIndex, ecsHubTotalBroadcasts=ecsHubTotalBroadcasts, linkBuilderFMS_cards_12fiber=linkBuilderFMS_cards_12fiber, ecsJabberPortIndex=ecsJabberPortIndex, linkBuilderMSH=linkBuilderMSH, ecsInfoPortIndex=ecsInfoPortIndex, ecsEnvironment=ecsEnvironment, ecsTrafficThreshold=ecsTrafficThreshold, ecsRepeaterPortIndex=ecsRepeaterPortIndex, ecsJabberThreshold=ecsJabberThreshold, genericMSServer=genericMSServer, ecsRackType=ecsRackType, ecsTrafficSlotIndex=ecsTrafficSlotIndex)
num1 = 10 num2 = 20 num3 = 3838 num3 = 30 num4 = 40
num1 = 10 num2 = 20 num3 = 3838 num3 = 30 num4 = 40
''' Module provides tracking for Derrida's library, its works, and associated instances of those works. It also services as a hub for links between physical copies and their digital representations in the Django admin. ''' default_app_config = 'derrida.books.apps.BooksConfig'
""" Module provides tracking for Derrida's library, its works, and associated instances of those works. It also services as a hub for links between physical copies and their digital representations in the Django admin. """ default_app_config = 'derrida.books.apps.BooksConfig'
# pylint: disable=R0903 (too-few-public-methods) class CorsMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, req): response = self.get_response(req) response["Access-Control-Allow-Origin"] = "*" response["Access-Control-Allow-Headers"] = "Origin, Content-Type, X-Auth-Token" response["Access-Control-Allow-Methods"] = "*" return response
class Corsmiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, req): response = self.get_response(req) response['Access-Control-Allow-Origin'] = '*' response['Access-Control-Allow-Headers'] = 'Origin, Content-Type, X-Auth-Token' response['Access-Control-Allow-Methods'] = '*' return response
""" In this sheet searching algorithms are placed: Binary Search -> to find an element in a sorted array Quick Select -> to find kth smallest element in the array Search In Sorted Matrix -> to find an element in a sorted matrix """ # Common binary search: # Find a target in a sorted array. # Time O(log(N)) / Space O(1) def binarySearch(array, target): left_pointer = 0 right_pointer = len(array) - 1 while right_pointer - left_pointer >= 0: index = int((right_pointer + left_pointer) / 2) if array[index] == target: return index elif array[index] < target: left_pointer = index + 1 else: right_pointer = index - 1 return -1 # Return kth smallest element from the array # Avg: Time O(N) / Space O(1) # Worst: Time O(N*log(N)) / Space O(1) # The idea behind is to use quickSort # technique -> find pivot, place it in # the appropriate place and check at which # index it is. Then you might ignore # some part of your array to find kth element. def quickselect(array, k): if k > len(array): print("k is greater than array length") return start_point = 0 end_point = len(array) - 1 while True: right = end_point pivot = start_point left = pivot + 1 while right >= left: if array[left] > array[pivot] > array[right]: swap(array, left, right) if array[left] <= array[pivot]: left += 1 if array[right] >= array[pivot]: right -= 1 if right == k - 1: return array[pivot] swap(array, pivot, right) if right < k - 1: start_point = right + 1 else: end_point = right - 1 # Search in sorted matrix: Time O(R + C). # If no -> return [-1, -1] # idea: check if target can be in particular # row by comparing the last element in this # row. If no -> move to the next row. def searchInSortedMatrix(matrix, target): r = 0 c = len(matrix[0])-1 while r < len(matrix) and c >= 0: current_point = matrix[r][c] if current_point == target: return [r, c] elif current_point < target: r += 1 else: c -= 1 return [-1, -1] def swap(array, i, j): array[i], array[j] = array[j], array[i]
""" In this sheet searching algorithms are placed: Binary Search -> to find an element in a sorted array Quick Select -> to find kth smallest element in the array Search In Sorted Matrix -> to find an element in a sorted matrix """ def binary_search(array, target): left_pointer = 0 right_pointer = len(array) - 1 while right_pointer - left_pointer >= 0: index = int((right_pointer + left_pointer) / 2) if array[index] == target: return index elif array[index] < target: left_pointer = index + 1 else: right_pointer = index - 1 return -1 def quickselect(array, k): if k > len(array): print('k is greater than array length') return start_point = 0 end_point = len(array) - 1 while True: right = end_point pivot = start_point left = pivot + 1 while right >= left: if array[left] > array[pivot] > array[right]: swap(array, left, right) if array[left] <= array[pivot]: left += 1 if array[right] >= array[pivot]: right -= 1 if right == k - 1: return array[pivot] swap(array, pivot, right) if right < k - 1: start_point = right + 1 else: end_point = right - 1 def search_in_sorted_matrix(matrix, target): r = 0 c = len(matrix[0]) - 1 while r < len(matrix) and c >= 0: current_point = matrix[r][c] if current_point == target: return [r, c] elif current_point < target: r += 1 else: c -= 1 return [-1, -1] def swap(array, i, j): (array[i], array[j]) = (array[j], array[i])
# # PySNMP MIB module ORADB-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ORADB-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:26:18 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") SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection") rdbmsDbIndex, = mibBuilder.importSymbols("RDBMS-MIB", "rdbmsDbIndex") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, MibIdentifier, Counter64, ModuleIdentity, Gauge32, ObjectIdentity, enterprises, iso, TimeTicks, NotificationType, Unsigned32, Integer32, IpAddress, Counter32, experimental = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "MibIdentifier", "Counter64", "ModuleIdentity", "Gauge32", "ObjectIdentity", "enterprises", "iso", "TimeTicks", "NotificationType", "Unsigned32", "Integer32", "IpAddress", "Counter32", "experimental") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class DateAndTime(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 11) class TruthValue(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("true", 1), ("false", 2)) oracle = MibIdentifier((1, 3, 6, 1, 4, 1, 111)) oraDbMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 111, 4)) oraDbObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 111, 4, 1)) oraDbSysTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 1), ) if mibBuilder.loadTexts: oraDbSysTable.setStatus('mandatory') oraDbSysEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex")) if mibBuilder.loadTexts: oraDbSysEntry.setStatus('mandatory') oraDbSysConsistentChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysConsistentChanges.setStatus('mandatory') oraDbSysConsistentGets = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysConsistentGets.setStatus('mandatory') oraDbSysDbBlockChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysDbBlockChanges.setStatus('mandatory') oraDbSysDbBlockGets = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysDbBlockGets.setStatus('mandatory') oraDbSysFreeBufferInspected = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysFreeBufferInspected.setStatus('mandatory') oraDbSysFreeBufferRequested = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysFreeBufferRequested.setStatus('mandatory') oraDbSysParseCount = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysParseCount.setStatus('mandatory') oraDbSysPhysReads = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysPhysReads.setStatus('mandatory') oraDbSysPhysWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysPhysWrites.setStatus('mandatory') oraDbSysRedoEntries = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysRedoEntries.setStatus('mandatory') oraDbSysRedoLogSpaceRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysRedoLogSpaceRequests.setStatus('mandatory') oraDbSysRedoSyncWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysRedoSyncWrites.setStatus('mandatory') oraDbSysSortsDisk = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysSortsDisk.setStatus('mandatory') oraDbSysSortsMemory = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysSortsMemory.setStatus('mandatory') oraDbSysSortsRows = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysSortsRows.setStatus('mandatory') oraDbSysTableFetchRowid = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableFetchRowid.setStatus('mandatory') oraDbSysTableFetchContinuedRow = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableFetchContinuedRow.setStatus('mandatory') oraDbSysTableScanBlocks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableScanBlocks.setStatus('mandatory') oraDbSysTableScanRows = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableScanRows.setStatus('mandatory') oraDbSysTableScansLong = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableScansLong.setStatus('mandatory') oraDbSysTableScansShort = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysTableScansShort.setStatus('mandatory') oraDbSysUserCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysUserCalls.setStatus('mandatory') oraDbSysUserCommits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysUserCommits.setStatus('mandatory') oraDbSysUserRollbacks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysUserRollbacks.setStatus('mandatory') oraDbSysWriteRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSysWriteRequests.setStatus('mandatory') oraDbTablespaceTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 2), ) if mibBuilder.loadTexts: oraDbTablespaceTable.setStatus('mandatory') oraDbTablespaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex"), (0, "ORADB-MIB", "oraDbTablespaceIndex")) if mibBuilder.loadTexts: oraDbTablespaceEntry.setStatus('mandatory') oraDbTablespaceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceIndex.setStatus('mandatory') oraDbTablespaceName = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceName.setStatus('mandatory') oraDbTablespaceSizeAllocated = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceSizeAllocated.setStatus('mandatory') oraDbTablespaceSizeUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceSizeUsed.setStatus('mandatory') oraDbTablespaceState = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("online", 1), ("offline", 2), ("invalid", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceState.setStatus('mandatory') oraDbTablespaceLargestAvailableChunk = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbTablespaceLargestAvailableChunk.setStatus('mandatory') oraDbDataFileTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 3), ) if mibBuilder.loadTexts: oraDbDataFileTable.setStatus('mandatory') oraDbDataFileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex"), (0, "ORADB-MIB", "oraDbDataFileIndex")) if mibBuilder.loadTexts: oraDbDataFileEntry.setStatus('mandatory') oraDbDataFileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileIndex.setStatus('mandatory') oraDbDataFileName = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileName.setStatus('mandatory') oraDbDataFileSizeAllocated = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(-2147483648, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileSizeAllocated.setStatus('mandatory') oraDbDataFileDiskReads = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskReads.setStatus('mandatory') oraDbDataFileDiskWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskWrites.setStatus('mandatory') oraDbDataFileDiskReadBlocks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskReadBlocks.setStatus('mandatory') oraDbDataFileDiskWrittenBlocks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskWrittenBlocks.setStatus('mandatory') oraDbDataFileDiskReadTimeTicks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskReadTimeTicks.setStatus('mandatory') oraDbDataFileDiskWriteTimeTicks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbDataFileDiskWriteTimeTicks.setStatus('mandatory') oraDbLibraryCacheTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 4), ) if mibBuilder.loadTexts: oraDbLibraryCacheTable.setStatus('mandatory') oraDbLibraryCacheEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex"), (0, "ORADB-MIB", "oraDbLibraryCacheIndex")) if mibBuilder.loadTexts: oraDbLibraryCacheEntry.setStatus('mandatory') oraDbLibraryCacheIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheIndex.setStatus('mandatory') oraDbLibraryCacheNameSpace = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheNameSpace.setStatus('mandatory') oraDbLibraryCacheGets = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheGets.setStatus('mandatory') oraDbLibraryCacheGetHits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheGetHits.setStatus('mandatory') oraDbLibraryCachePins = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCachePins.setStatus('mandatory') oraDbLibraryCachePinHits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCachePinHits.setStatus('mandatory') oraDbLibraryCacheReloads = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheReloads.setStatus('mandatory') oraDbLibraryCacheInvalidations = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheInvalidations.setStatus('mandatory') oraDbLibraryCacheSumTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 5), ) if mibBuilder.loadTexts: oraDbLibraryCacheSumTable.setStatus('mandatory') oraDbLibraryCacheSumEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex")) if mibBuilder.loadTexts: oraDbLibraryCacheSumEntry.setStatus('mandatory') oraDbLibraryCacheSumGets = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumGets.setStatus('mandatory') oraDbLibraryCacheSumGetHits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumGetHits.setStatus('mandatory') oraDbLibraryCacheSumPins = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumPins.setStatus('mandatory') oraDbLibraryCacheSumPinHits = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumPinHits.setStatus('mandatory') oraDbLibraryCacheSumReloads = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumReloads.setStatus('mandatory') oraDbLibraryCacheSumInvalidations = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbLibraryCacheSumInvalidations.setStatus('mandatory') oraDbSGATable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 6), ) if mibBuilder.loadTexts: oraDbSGATable.setStatus('mandatory') oraDbSGAEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex")) if mibBuilder.loadTexts: oraDbSGAEntry.setStatus('mandatory') oraDbSGAFixedSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSGAFixedSize.setStatus('mandatory') oraDbSGAVariableSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSGAVariableSize.setStatus('mandatory') oraDbSGADatabaseBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSGADatabaseBuffers.setStatus('mandatory') oraDbSGARedoBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbSGARedoBuffers.setStatus('mandatory') oraDbConfigTable = MibTable((1, 3, 6, 1, 4, 1, 111, 4, 1, 7), ) if mibBuilder.loadTexts: oraDbConfigTable.setStatus('mandatory') oraDbConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1), ).setIndexNames((0, "RDBMS-MIB", "rdbmsDbIndex")) if mibBuilder.loadTexts: oraDbConfigEntry.setStatus('mandatory') oraDbConfigDbBlockBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbBlockBuffers.setStatus('mandatory') oraDbConfigDbBlockCkptBatch = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbBlockCkptBatch.setStatus('mandatory') oraDbConfigDbBlockSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbBlockSize.setStatus('mandatory') oraDbConfigDbFileSimWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbFileSimWrites.setStatus('mandatory') oraDbConfigDbMultiBlockReadCount = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDbMultiBlockReadCount.setStatus('mandatory') oraDbConfigDistLockTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDistLockTimeout.setStatus('mandatory') oraDbConfigDistRecoveryConnectHold = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDistRecoveryConnectHold.setStatus('mandatory') oraDbConfigDistTransactions = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigDistTransactions.setStatus('mandatory') oraDbConfigLogArchiveBufferSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogArchiveBufferSize.setStatus('mandatory') oraDbConfigLogArchiveBuffers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogArchiveBuffers.setStatus('mandatory') oraDbConfigLogBuffer = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogBuffer.setStatus('mandatory') oraDbConfigLogCheckpointInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogCheckpointInterval.setStatus('mandatory') oraDbConfigLogCheckpointTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogCheckpointTimeout.setStatus('mandatory') oraDbConfigLogFiles = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigLogFiles.setStatus('mandatory') oraDbConfigMaxRollbackSegments = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigMaxRollbackSegments.setStatus('mandatory') oraDbConfigMTSMaxDispatchers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigMTSMaxDispatchers.setStatus('mandatory') oraDbConfigMTSMaxServers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigMTSMaxServers.setStatus('mandatory') oraDbConfigMTSServers = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigMTSServers.setStatus('mandatory') oraDbConfigOpenCursors = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 19), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigOpenCursors.setStatus('mandatory') oraDbConfigOpenLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 20), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigOpenLinks.setStatus('mandatory') oraDbConfigOptimizerMode = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 21), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigOptimizerMode.setStatus('mandatory') oraDbConfigProcesses = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 22), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigProcesses.setStatus('mandatory') oraDbConfigSerializable = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 23), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSerializable.setStatus('mandatory') oraDbConfigSessions = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 24), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSessions.setStatus('mandatory') oraDbConfigSharedPool = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 25), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSharedPool.setStatus('mandatory') oraDbConfigSortAreaSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 26), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSortAreaSize.setStatus('mandatory') oraDbConfigSortAreaRetainedSize = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 27), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigSortAreaRetainedSize.setStatus('mandatory') oraDbConfigTransactions = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 28), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigTransactions.setStatus('mandatory') oraDbConfigTransactionsPerRollback = MibTableColumn((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 29), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oraDbConfigTransactionsPerRollback.setStatus('mandatory') mibBuilder.exportSymbols("ORADB-MIB", oraDbSysRedoLogSpaceRequests=oraDbSysRedoLogSpaceRequests, oraDbLibraryCacheSumGets=oraDbLibraryCacheSumGets, oraDbConfigLogArchiveBuffers=oraDbConfigLogArchiveBuffers, oraDbSGADatabaseBuffers=oraDbSGADatabaseBuffers, oraDbConfigTable=oraDbConfigTable, oraDbLibraryCacheTable=oraDbLibraryCacheTable, oraDbLibraryCacheIndex=oraDbLibraryCacheIndex, oraDbSGARedoBuffers=oraDbSGARedoBuffers, oraDbSysFreeBufferInspected=oraDbSysFreeBufferInspected, oraDbLibraryCacheGets=oraDbLibraryCacheGets, oraDbSysConsistentChanges=oraDbSysConsistentChanges, oraDbSysTableScanRows=oraDbSysTableScanRows, oraDbConfigDbBlockCkptBatch=oraDbConfigDbBlockCkptBatch, oraDbConfigDbMultiBlockReadCount=oraDbConfigDbMultiBlockReadCount, oraDbConfigLogArchiveBufferSize=oraDbConfigLogArchiveBufferSize, oraDbDataFileIndex=oraDbDataFileIndex, oraDbSGAEntry=oraDbSGAEntry, oraDbSysDbBlockGets=oraDbSysDbBlockGets, oraDbLibraryCacheSumPins=oraDbLibraryCacheSumPins, oraDbDataFileDiskReads=oraDbDataFileDiskReads, oraDbConfigDistRecoveryConnectHold=oraDbConfigDistRecoveryConnectHold, oraDbSysPhysWrites=oraDbSysPhysWrites, oraDbSysParseCount=oraDbSysParseCount, oraDbSysUserCommits=oraDbSysUserCommits, oraDbSysWriteRequests=oraDbSysWriteRequests, oraDbDataFileDiskWriteTimeTicks=oraDbDataFileDiskWriteTimeTicks, oraDbLibraryCachePinHits=oraDbLibraryCachePinHits, oraDbSysPhysReads=oraDbSysPhysReads, oraDbDataFileDiskWrites=oraDbDataFileDiskWrites, oraDbLibraryCacheGetHits=oraDbLibraryCacheGetHits, oraDbDataFileName=oraDbDataFileName, oraDbSysTableScanBlocks=oraDbSysTableScanBlocks, oraDbConfigMTSMaxDispatchers=oraDbConfigMTSMaxDispatchers, oraDbConfigDistLockTimeout=oraDbConfigDistLockTimeout, oraDbConfigDistTransactions=oraDbConfigDistTransactions, oraDbSGAVariableSize=oraDbSGAVariableSize, oraDbTablespaceSizeAllocated=oraDbTablespaceSizeAllocated, oraDbSysTable=oraDbSysTable, oraDbObjects=oraDbObjects, oraDbConfigProcesses=oraDbConfigProcesses, oraDbConfigOpenCursors=oraDbConfigOpenCursors, oraDbSysTableScansShort=oraDbSysTableScansShort, oraDbConfigLogCheckpointInterval=oraDbConfigLogCheckpointInterval, oraDbSysTableFetchContinuedRow=oraDbSysTableFetchContinuedRow, oraDbConfigTransactions=oraDbConfigTransactions, oraDbSysEntry=oraDbSysEntry, oraDbLibraryCacheInvalidations=oraDbLibraryCacheInvalidations, oraDbDataFileDiskReadTimeTicks=oraDbDataFileDiskReadTimeTicks, oraDbConfigDbBlockBuffers=oraDbConfigDbBlockBuffers, oraDbMIB=oraDbMIB, oraDbConfigDbBlockSize=oraDbConfigDbBlockSize, oraDbSysTableScansLong=oraDbSysTableScansLong, oraDbTablespaceName=oraDbTablespaceName, oraDbTablespaceEntry=oraDbTablespaceEntry, oraDbTablespaceState=oraDbTablespaceState, oraDbConfigMTSServers=oraDbConfigMTSServers, oraDbLibraryCacheSumTable=oraDbLibraryCacheSumTable, TruthValue=TruthValue, oraDbDataFileEntry=oraDbDataFileEntry, oraDbSysDbBlockChanges=oraDbSysDbBlockChanges, oraDbSysRedoSyncWrites=oraDbSysRedoSyncWrites, oraDbConfigSessions=oraDbConfigSessions, oraDbConfigOptimizerMode=oraDbConfigOptimizerMode, oraDbLibraryCacheEntry=oraDbLibraryCacheEntry, oraDbConfigEntry=oraDbConfigEntry, oraDbTablespaceSizeUsed=oraDbTablespaceSizeUsed, oraDbConfigLogFiles=oraDbConfigLogFiles, oraDbTablespaceIndex=oraDbTablespaceIndex, oraDbSysFreeBufferRequested=oraDbSysFreeBufferRequested, oraDbSysUserRollbacks=oraDbSysUserRollbacks, oraDbSGAFixedSize=oraDbSGAFixedSize, oraDbConfigTransactionsPerRollback=oraDbConfigTransactionsPerRollback, oraDbLibraryCacheSumInvalidations=oraDbLibraryCacheSumInvalidations, oraDbConfigLogBuffer=oraDbConfigLogBuffer, oraDbConfigMaxRollbackSegments=oraDbConfigMaxRollbackSegments, oraDbConfigMTSMaxServers=oraDbConfigMTSMaxServers, oraDbDataFileSizeAllocated=oraDbDataFileSizeAllocated, oracle=oracle, oraDbLibraryCacheNameSpace=oraDbLibraryCacheNameSpace, oraDbConfigDbFileSimWrites=oraDbConfigDbFileSimWrites, oraDbSysUserCalls=oraDbSysUserCalls, oraDbDataFileTable=oraDbDataFileTable, oraDbLibraryCacheSumEntry=oraDbLibraryCacheSumEntry, oraDbTablespaceLargestAvailableChunk=oraDbTablespaceLargestAvailableChunk, oraDbConfigSerializable=oraDbConfigSerializable, oraDbConfigSortAreaRetainedSize=oraDbConfigSortAreaRetainedSize, oraDbDataFileDiskReadBlocks=oraDbDataFileDiskReadBlocks, oraDbSysSortsRows=oraDbSysSortsRows, oraDbDataFileDiskWrittenBlocks=oraDbDataFileDiskWrittenBlocks, oraDbSGATable=oraDbSGATable, oraDbSysTableFetchRowid=oraDbSysTableFetchRowid, DateAndTime=DateAndTime, oraDbSysSortsMemory=oraDbSysSortsMemory, oraDbLibraryCacheSumGetHits=oraDbLibraryCacheSumGetHits, oraDbConfigSortAreaSize=oraDbConfigSortAreaSize, oraDbConfigSharedPool=oraDbConfigSharedPool, oraDbSysSortsDisk=oraDbSysSortsDisk, oraDbSysConsistentGets=oraDbSysConsistentGets, oraDbLibraryCachePins=oraDbLibraryCachePins, oraDbLibraryCacheSumPinHits=oraDbLibraryCacheSumPinHits, oraDbSysRedoEntries=oraDbSysRedoEntries, oraDbConfigLogCheckpointTimeout=oraDbConfigLogCheckpointTimeout, oraDbLibraryCacheReloads=oraDbLibraryCacheReloads, oraDbTablespaceTable=oraDbTablespaceTable, oraDbConfigOpenLinks=oraDbConfigOpenLinks, oraDbLibraryCacheSumReloads=oraDbLibraryCacheSumReloads)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, value_size_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection') (rdbms_db_index,) = mibBuilder.importSymbols('RDBMS-MIB', 'rdbmsDbIndex') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, bits, mib_identifier, counter64, module_identity, gauge32, object_identity, enterprises, iso, time_ticks, notification_type, unsigned32, integer32, ip_address, counter32, experimental) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'MibIdentifier', 'Counter64', 'ModuleIdentity', 'Gauge32', 'ObjectIdentity', 'enterprises', 'iso', 'TimeTicks', 'NotificationType', 'Unsigned32', 'Integer32', 'IpAddress', 'Counter32', 'experimental') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Dateandtime(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 11) class Truthvalue(Integer32): subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('true', 1), ('false', 2)) oracle = mib_identifier((1, 3, 6, 1, 4, 1, 111)) ora_db_mib = mib_identifier((1, 3, 6, 1, 4, 1, 111, 4)) ora_db_objects = mib_identifier((1, 3, 6, 1, 4, 1, 111, 4, 1)) ora_db_sys_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 1)) if mibBuilder.loadTexts: oraDbSysTable.setStatus('mandatory') ora_db_sys_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex')) if mibBuilder.loadTexts: oraDbSysEntry.setStatus('mandatory') ora_db_sys_consistent_changes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysConsistentChanges.setStatus('mandatory') ora_db_sys_consistent_gets = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysConsistentGets.setStatus('mandatory') ora_db_sys_db_block_changes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysDbBlockChanges.setStatus('mandatory') ora_db_sys_db_block_gets = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysDbBlockGets.setStatus('mandatory') ora_db_sys_free_buffer_inspected = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysFreeBufferInspected.setStatus('mandatory') ora_db_sys_free_buffer_requested = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysFreeBufferRequested.setStatus('mandatory') ora_db_sys_parse_count = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysParseCount.setStatus('mandatory') ora_db_sys_phys_reads = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysPhysReads.setStatus('mandatory') ora_db_sys_phys_writes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysPhysWrites.setStatus('mandatory') ora_db_sys_redo_entries = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysRedoEntries.setStatus('mandatory') ora_db_sys_redo_log_space_requests = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysRedoLogSpaceRequests.setStatus('mandatory') ora_db_sys_redo_sync_writes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysRedoSyncWrites.setStatus('mandatory') ora_db_sys_sorts_disk = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysSortsDisk.setStatus('mandatory') ora_db_sys_sorts_memory = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysSortsMemory.setStatus('mandatory') ora_db_sys_sorts_rows = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysSortsRows.setStatus('mandatory') ora_db_sys_table_fetch_rowid = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableFetchRowid.setStatus('mandatory') ora_db_sys_table_fetch_continued_row = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableFetchContinuedRow.setStatus('mandatory') ora_db_sys_table_scan_blocks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableScanBlocks.setStatus('mandatory') ora_db_sys_table_scan_rows = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableScanRows.setStatus('mandatory') ora_db_sys_table_scans_long = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableScansLong.setStatus('mandatory') ora_db_sys_table_scans_short = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysTableScansShort.setStatus('mandatory') ora_db_sys_user_calls = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysUserCalls.setStatus('mandatory') ora_db_sys_user_commits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysUserCommits.setStatus('mandatory') ora_db_sys_user_rollbacks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysUserRollbacks.setStatus('mandatory') ora_db_sys_write_requests = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 1, 1, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSysWriteRequests.setStatus('mandatory') ora_db_tablespace_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 2)) if mibBuilder.loadTexts: oraDbTablespaceTable.setStatus('mandatory') ora_db_tablespace_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex'), (0, 'ORADB-MIB', 'oraDbTablespaceIndex')) if mibBuilder.loadTexts: oraDbTablespaceEntry.setStatus('mandatory') ora_db_tablespace_index = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceIndex.setStatus('mandatory') ora_db_tablespace_name = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceName.setStatus('mandatory') ora_db_tablespace_size_allocated = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceSizeAllocated.setStatus('mandatory') ora_db_tablespace_size_used = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceSizeUsed.setStatus('mandatory') ora_db_tablespace_state = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('online', 1), ('offline', 2), ('invalid', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceState.setStatus('mandatory') ora_db_tablespace_largest_available_chunk = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbTablespaceLargestAvailableChunk.setStatus('mandatory') ora_db_data_file_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 3)) if mibBuilder.loadTexts: oraDbDataFileTable.setStatus('mandatory') ora_db_data_file_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex'), (0, 'ORADB-MIB', 'oraDbDataFileIndex')) if mibBuilder.loadTexts: oraDbDataFileEntry.setStatus('mandatory') ora_db_data_file_index = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileIndex.setStatus('mandatory') ora_db_data_file_name = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileName.setStatus('mandatory') ora_db_data_file_size_allocated = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(-2147483648, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileSizeAllocated.setStatus('mandatory') ora_db_data_file_disk_reads = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskReads.setStatus('mandatory') ora_db_data_file_disk_writes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskWrites.setStatus('mandatory') ora_db_data_file_disk_read_blocks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskReadBlocks.setStatus('mandatory') ora_db_data_file_disk_written_blocks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskWrittenBlocks.setStatus('mandatory') ora_db_data_file_disk_read_time_ticks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskReadTimeTicks.setStatus('mandatory') ora_db_data_file_disk_write_time_ticks = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbDataFileDiskWriteTimeTicks.setStatus('mandatory') ora_db_library_cache_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 4)) if mibBuilder.loadTexts: oraDbLibraryCacheTable.setStatus('mandatory') ora_db_library_cache_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex'), (0, 'ORADB-MIB', 'oraDbLibraryCacheIndex')) if mibBuilder.loadTexts: oraDbLibraryCacheEntry.setStatus('mandatory') ora_db_library_cache_index = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheIndex.setStatus('mandatory') ora_db_library_cache_name_space = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheNameSpace.setStatus('mandatory') ora_db_library_cache_gets = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheGets.setStatus('mandatory') ora_db_library_cache_get_hits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheGetHits.setStatus('mandatory') ora_db_library_cache_pins = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCachePins.setStatus('mandatory') ora_db_library_cache_pin_hits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCachePinHits.setStatus('mandatory') ora_db_library_cache_reloads = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheReloads.setStatus('mandatory') ora_db_library_cache_invalidations = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 4, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheInvalidations.setStatus('mandatory') ora_db_library_cache_sum_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 5)) if mibBuilder.loadTexts: oraDbLibraryCacheSumTable.setStatus('mandatory') ora_db_library_cache_sum_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex')) if mibBuilder.loadTexts: oraDbLibraryCacheSumEntry.setStatus('mandatory') ora_db_library_cache_sum_gets = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumGets.setStatus('mandatory') ora_db_library_cache_sum_get_hits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumGetHits.setStatus('mandatory') ora_db_library_cache_sum_pins = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumPins.setStatus('mandatory') ora_db_library_cache_sum_pin_hits = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumPinHits.setStatus('mandatory') ora_db_library_cache_sum_reloads = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumReloads.setStatus('mandatory') ora_db_library_cache_sum_invalidations = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 5, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbLibraryCacheSumInvalidations.setStatus('mandatory') ora_db_sga_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 6)) if mibBuilder.loadTexts: oraDbSGATable.setStatus('mandatory') ora_db_sga_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex')) if mibBuilder.loadTexts: oraDbSGAEntry.setStatus('mandatory') ora_db_sga_fixed_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSGAFixedSize.setStatus('mandatory') ora_db_sga_variable_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSGAVariableSize.setStatus('mandatory') ora_db_sga_database_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSGADatabaseBuffers.setStatus('mandatory') ora_db_sga_redo_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 6, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbSGARedoBuffers.setStatus('mandatory') ora_db_config_table = mib_table((1, 3, 6, 1, 4, 1, 111, 4, 1, 7)) if mibBuilder.loadTexts: oraDbConfigTable.setStatus('mandatory') ora_db_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1)).setIndexNames((0, 'RDBMS-MIB', 'rdbmsDbIndex')) if mibBuilder.loadTexts: oraDbConfigEntry.setStatus('mandatory') ora_db_config_db_block_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbBlockBuffers.setStatus('mandatory') ora_db_config_db_block_ckpt_batch = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbBlockCkptBatch.setStatus('mandatory') ora_db_config_db_block_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbBlockSize.setStatus('mandatory') ora_db_config_db_file_sim_writes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbFileSimWrites.setStatus('mandatory') ora_db_config_db_multi_block_read_count = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDbMultiBlockReadCount.setStatus('mandatory') ora_db_config_dist_lock_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDistLockTimeout.setStatus('mandatory') ora_db_config_dist_recovery_connect_hold = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDistRecoveryConnectHold.setStatus('mandatory') ora_db_config_dist_transactions = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigDistTransactions.setStatus('mandatory') ora_db_config_log_archive_buffer_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogArchiveBufferSize.setStatus('mandatory') ora_db_config_log_archive_buffers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogArchiveBuffers.setStatus('mandatory') ora_db_config_log_buffer = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogBuffer.setStatus('mandatory') ora_db_config_log_checkpoint_interval = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogCheckpointInterval.setStatus('mandatory') ora_db_config_log_checkpoint_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogCheckpointTimeout.setStatus('mandatory') ora_db_config_log_files = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigLogFiles.setStatus('mandatory') ora_db_config_max_rollback_segments = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigMaxRollbackSegments.setStatus('mandatory') ora_db_config_mts_max_dispatchers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigMTSMaxDispatchers.setStatus('mandatory') ora_db_config_mts_max_servers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigMTSMaxServers.setStatus('mandatory') ora_db_config_mts_servers = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigMTSServers.setStatus('mandatory') ora_db_config_open_cursors = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 19), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigOpenCursors.setStatus('mandatory') ora_db_config_open_links = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 20), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigOpenLinks.setStatus('mandatory') ora_db_config_optimizer_mode = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 21), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigOptimizerMode.setStatus('mandatory') ora_db_config_processes = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 22), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigProcesses.setStatus('mandatory') ora_db_config_serializable = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 23), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSerializable.setStatus('mandatory') ora_db_config_sessions = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 24), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSessions.setStatus('mandatory') ora_db_config_shared_pool = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 25), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSharedPool.setStatus('mandatory') ora_db_config_sort_area_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 26), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSortAreaSize.setStatus('mandatory') ora_db_config_sort_area_retained_size = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 27), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigSortAreaRetainedSize.setStatus('mandatory') ora_db_config_transactions = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 28), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigTransactions.setStatus('mandatory') ora_db_config_transactions_per_rollback = mib_table_column((1, 3, 6, 1, 4, 1, 111, 4, 1, 7, 1, 29), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oraDbConfigTransactionsPerRollback.setStatus('mandatory') mibBuilder.exportSymbols('ORADB-MIB', oraDbSysRedoLogSpaceRequests=oraDbSysRedoLogSpaceRequests, oraDbLibraryCacheSumGets=oraDbLibraryCacheSumGets, oraDbConfigLogArchiveBuffers=oraDbConfigLogArchiveBuffers, oraDbSGADatabaseBuffers=oraDbSGADatabaseBuffers, oraDbConfigTable=oraDbConfigTable, oraDbLibraryCacheTable=oraDbLibraryCacheTable, oraDbLibraryCacheIndex=oraDbLibraryCacheIndex, oraDbSGARedoBuffers=oraDbSGARedoBuffers, oraDbSysFreeBufferInspected=oraDbSysFreeBufferInspected, oraDbLibraryCacheGets=oraDbLibraryCacheGets, oraDbSysConsistentChanges=oraDbSysConsistentChanges, oraDbSysTableScanRows=oraDbSysTableScanRows, oraDbConfigDbBlockCkptBatch=oraDbConfigDbBlockCkptBatch, oraDbConfigDbMultiBlockReadCount=oraDbConfigDbMultiBlockReadCount, oraDbConfigLogArchiveBufferSize=oraDbConfigLogArchiveBufferSize, oraDbDataFileIndex=oraDbDataFileIndex, oraDbSGAEntry=oraDbSGAEntry, oraDbSysDbBlockGets=oraDbSysDbBlockGets, oraDbLibraryCacheSumPins=oraDbLibraryCacheSumPins, oraDbDataFileDiskReads=oraDbDataFileDiskReads, oraDbConfigDistRecoveryConnectHold=oraDbConfigDistRecoveryConnectHold, oraDbSysPhysWrites=oraDbSysPhysWrites, oraDbSysParseCount=oraDbSysParseCount, oraDbSysUserCommits=oraDbSysUserCommits, oraDbSysWriteRequests=oraDbSysWriteRequests, oraDbDataFileDiskWriteTimeTicks=oraDbDataFileDiskWriteTimeTicks, oraDbLibraryCachePinHits=oraDbLibraryCachePinHits, oraDbSysPhysReads=oraDbSysPhysReads, oraDbDataFileDiskWrites=oraDbDataFileDiskWrites, oraDbLibraryCacheGetHits=oraDbLibraryCacheGetHits, oraDbDataFileName=oraDbDataFileName, oraDbSysTableScanBlocks=oraDbSysTableScanBlocks, oraDbConfigMTSMaxDispatchers=oraDbConfigMTSMaxDispatchers, oraDbConfigDistLockTimeout=oraDbConfigDistLockTimeout, oraDbConfigDistTransactions=oraDbConfigDistTransactions, oraDbSGAVariableSize=oraDbSGAVariableSize, oraDbTablespaceSizeAllocated=oraDbTablespaceSizeAllocated, oraDbSysTable=oraDbSysTable, oraDbObjects=oraDbObjects, oraDbConfigProcesses=oraDbConfigProcesses, oraDbConfigOpenCursors=oraDbConfigOpenCursors, oraDbSysTableScansShort=oraDbSysTableScansShort, oraDbConfigLogCheckpointInterval=oraDbConfigLogCheckpointInterval, oraDbSysTableFetchContinuedRow=oraDbSysTableFetchContinuedRow, oraDbConfigTransactions=oraDbConfigTransactions, oraDbSysEntry=oraDbSysEntry, oraDbLibraryCacheInvalidations=oraDbLibraryCacheInvalidations, oraDbDataFileDiskReadTimeTicks=oraDbDataFileDiskReadTimeTicks, oraDbConfigDbBlockBuffers=oraDbConfigDbBlockBuffers, oraDbMIB=oraDbMIB, oraDbConfigDbBlockSize=oraDbConfigDbBlockSize, oraDbSysTableScansLong=oraDbSysTableScansLong, oraDbTablespaceName=oraDbTablespaceName, oraDbTablespaceEntry=oraDbTablespaceEntry, oraDbTablespaceState=oraDbTablespaceState, oraDbConfigMTSServers=oraDbConfigMTSServers, oraDbLibraryCacheSumTable=oraDbLibraryCacheSumTable, TruthValue=TruthValue, oraDbDataFileEntry=oraDbDataFileEntry, oraDbSysDbBlockChanges=oraDbSysDbBlockChanges, oraDbSysRedoSyncWrites=oraDbSysRedoSyncWrites, oraDbConfigSessions=oraDbConfigSessions, oraDbConfigOptimizerMode=oraDbConfigOptimizerMode, oraDbLibraryCacheEntry=oraDbLibraryCacheEntry, oraDbConfigEntry=oraDbConfigEntry, oraDbTablespaceSizeUsed=oraDbTablespaceSizeUsed, oraDbConfigLogFiles=oraDbConfigLogFiles, oraDbTablespaceIndex=oraDbTablespaceIndex, oraDbSysFreeBufferRequested=oraDbSysFreeBufferRequested, oraDbSysUserRollbacks=oraDbSysUserRollbacks, oraDbSGAFixedSize=oraDbSGAFixedSize, oraDbConfigTransactionsPerRollback=oraDbConfigTransactionsPerRollback, oraDbLibraryCacheSumInvalidations=oraDbLibraryCacheSumInvalidations, oraDbConfigLogBuffer=oraDbConfigLogBuffer, oraDbConfigMaxRollbackSegments=oraDbConfigMaxRollbackSegments, oraDbConfigMTSMaxServers=oraDbConfigMTSMaxServers, oraDbDataFileSizeAllocated=oraDbDataFileSizeAllocated, oracle=oracle, oraDbLibraryCacheNameSpace=oraDbLibraryCacheNameSpace, oraDbConfigDbFileSimWrites=oraDbConfigDbFileSimWrites, oraDbSysUserCalls=oraDbSysUserCalls, oraDbDataFileTable=oraDbDataFileTable, oraDbLibraryCacheSumEntry=oraDbLibraryCacheSumEntry, oraDbTablespaceLargestAvailableChunk=oraDbTablespaceLargestAvailableChunk, oraDbConfigSerializable=oraDbConfigSerializable, oraDbConfigSortAreaRetainedSize=oraDbConfigSortAreaRetainedSize, oraDbDataFileDiskReadBlocks=oraDbDataFileDiskReadBlocks, oraDbSysSortsRows=oraDbSysSortsRows, oraDbDataFileDiskWrittenBlocks=oraDbDataFileDiskWrittenBlocks, oraDbSGATable=oraDbSGATable, oraDbSysTableFetchRowid=oraDbSysTableFetchRowid, DateAndTime=DateAndTime, oraDbSysSortsMemory=oraDbSysSortsMemory, oraDbLibraryCacheSumGetHits=oraDbLibraryCacheSumGetHits, oraDbConfigSortAreaSize=oraDbConfigSortAreaSize, oraDbConfigSharedPool=oraDbConfigSharedPool, oraDbSysSortsDisk=oraDbSysSortsDisk, oraDbSysConsistentGets=oraDbSysConsistentGets, oraDbLibraryCachePins=oraDbLibraryCachePins, oraDbLibraryCacheSumPinHits=oraDbLibraryCacheSumPinHits, oraDbSysRedoEntries=oraDbSysRedoEntries, oraDbConfigLogCheckpointTimeout=oraDbConfigLogCheckpointTimeout, oraDbLibraryCacheReloads=oraDbLibraryCacheReloads, oraDbTablespaceTable=oraDbTablespaceTable, oraDbConfigOpenLinks=oraDbConfigOpenLinks, oraDbLibraryCacheSumReloads=oraDbLibraryCacheSumReloads)
def checkio(number: int) -> int: if number < 10: return number elif number % 10 == 0: return checkio(number // 10) else: return checkio(number // 10) * (number % 10 ) #These "asserts" using only for self-checking and not necessary for auto-testing if __name__ == '__main__': assert checkio(123405) == 120 assert checkio(999) == 729 assert checkio(1000) == 1 assert checkio(1111) == 1 print("Coding complete? Click 'Check' to review your tests and earn cool rewards!")
def checkio(number: int) -> int: if number < 10: return number elif number % 10 == 0: return checkio(number // 10) else: return checkio(number // 10) * (number % 10) if __name__ == '__main__': assert checkio(123405) == 120 assert checkio(999) == 729 assert checkio(1000) == 1 assert checkio(1111) == 1 print("Coding complete? Click 'Check' to review your tests and earn cool rewards!")
# A binary gap within a positive integer N is any maximal sequence of consecutive zeros # that is surrounded by ones at both ends in the binary representation of N. # # For example, number 9 has binary representation 1001 and contains a binary gap of length 2. # The number 529 has binary representation 1000010001 and contains two binary gaps: # one of length 4 and one of length 3. The number 20 has binary representation 10100 and # contains one binary gap of length 1. The number 15 has binary representation 1111 and has no binary gaps. # The number 32 has binary representation 100000 and has no binary gaps. # # Write a function: # # def solution(N) # # that, given a positive integer N, returns the length of its longest binary gap. # The function should return 0 if N doesn't contain a binary gap. # # For example, given N = 1041 the function should return 5, # because N has binary representation 10000010001 and so its longest binary gap is of length 5. # Given N = 32 the function should return 0, because N has binary representation '100000' and thus no binary gaps. # # Write an efficient algorithm for the following assumptions: # # N is an integer within the range [1..2,147,483,647]. def solution(N): binary_num = format(N, 'b') count_zero = 0 max_zero = 0 for i in binary_num: if i == "1": if (count_zero > max_zero): max_zero = count_zero count_zero = 0 else: count_zero += 1 return max_zero if __name__ == '__main__': print(solution(1041))
def solution(N): binary_num = format(N, 'b') count_zero = 0 max_zero = 0 for i in binary_num: if i == '1': if count_zero > max_zero: max_zero = count_zero count_zero = 0 else: count_zero += 1 return max_zero if __name__ == '__main__': print(solution(1041))
# # PySNMP MIB module IPMS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPMS-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:56:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") ModuleIdentity, iso, Bits, ObjectIdentity, Counter64, IpAddress, Integer32, MibIdentifier, TimeTicks, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Unsigned32, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "ModuleIdentity", "iso", "Bits", "ObjectIdentity", "Counter64", "IpAddress", "Integer32", "MibIdentifier", "TimeTicks", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Unsigned32", "Gauge32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") xylanIpmsArch, = mibBuilder.importSymbols("XYLAN-BASE-MIB", "xylanIpmsArch") ipmsMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1)) ipmsMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1)) class DisplayString(OctetString): pass ipmsGeneralGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 1)) ipmsVersion = MibScalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsVersion.setStatus('mandatory') if mibBuilder.loadTexts: ipmsVersion.setDescription('The current version of IPMS.') ipmsState = MibScalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipmsState.setStatus('mandatory') if mibBuilder.loadTexts: ipmsState.setDescription('The current state of IPMS. When read this flag indicates whether IPMS is enabled or disabled. Setting this flag to enabled causes the IPMS software to be loaded. Setting this flag to disabled causes the IPMS software to be unloaded. If this flag indicates that IPMS is disabled, then no other objects within the IPMS MIB can be accessed (because the IPMS software is not loaded on the switch). In other words, the full IPMS MIB is available only when this flag indicates that IPMS is enabled.') ipmsDIPAddressPortTable = MibTable((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2), ) if mibBuilder.loadTexts: ipmsDIPAddressPortTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPAddressPortTable.setDescription('This table contains entries that list which switch ports have requested membership in a specific IP Multicast Group. There are several slot/port combinations for each IP Multicast Group.') ipmsDIPAddressPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1), ).setIndexNames((0, "IPMS-MIB", "ipmsDIPAddress"), (0, "IPMS-MIB", "ipmsDIPDstVlan"), (0, "IPMS-MIB", "ipmsDIPSlotNumber"), (0, "IPMS-MIB", "ipmsDIPPortNumber"), (0, "IPMS-MIB", "ipmsDIPPortInstance"), (0, "IPMS-MIB", "ipmsDIPPortService")) if mibBuilder.loadTexts: ipmsDIPAddressPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPAddressPortEntry.setDescription('This defines an entry in the Destination IP Address/Port table.') ipmsDIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPAddress.setDescription('This field defines the Destination IP Multicast address for the fields that follow.') ipmsDIPDstVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPDstVlan.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPDstVlan.setDescription('This field contains the VlanId of which the port is a member.') ipmsDIPDstVlanMask = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPDstVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPDstVlanMask.setDescription('This field contains the Vlan Mask for the afforementioned Vlan.') ipmsDIPSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPSlotNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPSlotNumber.setDescription('This field contains the slot number of the port that corresponds to the IP Multicast group that it has joined.') ipmsDIPPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortNumber.setDescription('This value contains the port number for this virtual port.') ipmsDIPPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPPortType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortType.setDescription('This value contains the type of this port.') ipmsDIPPortInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPPortInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortInstance.setDescription('This value contains the instance for this port.') ipmsDIPPortService = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPPortService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortService.setDescription('This value contains the service for this port.') ipmsDIPSrcIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 9), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPSrcIPAddr.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPSrcIPAddr.setDescription('This value contains the IP address of the station sending the membership report.') ipmsDIPPortTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsDIPPortTimeout.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortTimeout.setDescription('This value contains the timeout value in seconds for this port.') ipmsNeighborTable = MibTable((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3), ) if mibBuilder.loadTexts: ipmsNeighborTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNeighborTable.setDescription('This table contains entries that list all known external or neighboring routers.') ipmsNeighborTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1), ).setIndexNames((0, "IPMS-MIB", "ipmsNbrVlanID"), (0, "IPMS-MIB", "ipmsNbrSIPAddress")) if mibBuilder.loadTexts: ipmsNeighborTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNeighborTableEntry.setDescription('This defines an entry in the Neighbor table.') ipmsNbrVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsNbrVlanID.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrVlanID.setDescription('This field contains the VlanId of the neighboring router.') ipmsNbrVlanMask = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsNbrVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrVlanMask.setDescription('This field contains the Vlan Mask of the neighboring router.') ipmsNbrSIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 3), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsNbrSIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrSIPAddress.setDescription('This field defines the IP address of the neighboring router.') ipmsNbrSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsNbrSlotNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrSlotNumber.setDescription('This field contains the slot number of the neighboring router.') ipmsNbrPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsNbrPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortNumber.setDescription('This value contains the port number of the neighboring router.') ipmsNbrPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsNbrPortType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortType.setDescription('This value contains the type of the neighboring router.') ipmsNbrPortInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsNbrPortInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortInstance.setDescription('This value contains the instance of the neighboring router.') ipmsNbrPortService = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsNbrPortService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortService.setDescription('This value contains the service of the neighboring router.') ipmsNbrPortTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsNbrPortTimeout.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortTimeout.setDescription('This value contains the timeout value in seconds of the neighboring router.') ipmsStatsTable = MibTable((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4), ) if mibBuilder.loadTexts: ipmsStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsTable.setDescription('This table contains entries that supply statistical information about the IP Multicast traffic that is being switched and forwarded by this router.') ipmsStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1), ).setIndexNames((0, "IPMS-MIB", "ipmsStatsDIPAddress"), (0, "IPMS-MIB", "ipmsStatsSIPAddress"), (0, "IPMS-MIB", "ipmsStatsVlanID")) if mibBuilder.loadTexts: ipmsStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsEntry.setDescription('This table entry describes the entries included in the above tables.') ipmsStatsDIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsStatsDIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsDIPAddress.setDescription('This field contains the Destinatin IP address of the dest/source entry value. There can be many IP source addresses for a given Destination IP address.') ipmsStatsSIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsStatsSIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsSIPAddress.setDescription('This field contains the Source IP Address for a given Destination IP address.') ipmsStatsVlanID = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsStatsVlanID.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsVlanID.setDescription('This field contains the VlanID of the entry.') ipmsStatsVlanMask = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsStatsVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsVlanMask.setDescription('This field contains the Vlan mask of the entry.') ipmsStatsPacketsOut = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsStatsPacketsOut.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsPacketsOut.setDescription('This field contains the number of packets that have been sent for a given Destination IP/source IP address pair.') ipmsStatsSecsSinceZeroed = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsStatsSecsSinceZeroed.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsSecsSinceZeroed.setDescription('This field contains the number seconds that have elapsed since the statistics have been zeroed.') ipmsStatsAveragePPS = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsStatsAveragePPS.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsAveragePPS.setDescription('This field contains the average number of packets per second for this data flow.') ipmsZeroStatsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 5)) ipmsZeroStatsFlag = MibScalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("zeroStats", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipmsZeroStatsFlag.setStatus('mandatory') if mibBuilder.loadTexts: ipmsZeroStatsFlag.setDescription('Seting this flag to one causes statistics counters to be zeroed.') ipmsForwardingTable = MibTable((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6), ) if mibBuilder.loadTexts: ipmsForwardingTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsForwardingTable.setDescription('This table contains entries that represent the contents of IPMS forwarding table. For each source and destination IP address pair, several slot/port combinations can be assigned.') ipmsFwdTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1), ).setIndexNames((0, "IPMS-MIB", "ipmsFwdDestIP"), (0, "IPMS-MIB", "ipmsFwdSourceIP"), (0, "IPMS-MIB", "ipmsFwdEntryType"), (0, "IPMS-MIB", "ipmsFwdSrcVlan"), (0, "IPMS-MIB", "ipmsFwdDstSlotNumber"), (0, "IPMS-MIB", "ipmsFwdDstPortNumber"), (0, "IPMS-MIB", "ipmsFwdDstPortInstance"), (0, "IPMS-MIB", "ipmsFwdDstPortService")) if mibBuilder.loadTexts: ipmsFwdTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdTableEntry.setDescription('This defines an entry in the Forwarding table.') ipmsFwdDestIP = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDestIP.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDestIP.setDescription('This field defines the Dest IP Multicast address for the fields that follow.') ipmsFwdSourceIP = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdSourceIP.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSourceIP.setDescription('This field defines the Source IP Multicast address for the fields that follow.') ipmsFwdEntryType = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("switched", 1), ("switchedError", 2), ("switchedPrimary", 3), ("routed", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdEntryType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdEntryType.setDescription('This field contains the type of this forwarding entry.') ipmsFwdSrcVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdSrcVlan.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcVlan.setDescription('This field contains the source VlanID of this stream.') ipmsFwdSrcVlanMask = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdSrcVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcVlanMask.setDescription('This field contains the source VlanID Mask of this stream.') ipmsFwdSrcSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdSrcSlotNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcSlotNumber.setDescription('This field contains the slot number of the svpn that is emitting this multicast stream.') ipmsFwdSrcPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdSrcPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcPortNumber.setDescription('This field contains the port number of the aforementioned svpn.') ipmsFwdSrcPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdSrcPortType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcPortType.setDescription('This field contains the port type.') ipmsFwdSrcPortInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdSrcPortInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcPortInstance.setDescription('This field contains the port instance.') ipmsFwdSrcPortService = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdSrcPortService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcPortService.setDescription('This field contains the port service.') ipmsFwdDstVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstVlan.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstVlan.setDescription('This field contains the destination VlanID of this port.') ipmsFwdDstVlanMask = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstVlanMask.setDescription('This field contains the destination VlanID Mask of this port.') ipmsFwdDstSlotNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstSlotNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstSlotNumber.setDescription('This field contains the slot number of the svpn that has requested the multicast stream.') ipmsFwdDstPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortNumber.setDescription('This field contains the port number of the destination svpn.') ipmsFwdDstPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstPortType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortType.setDescription('This field contains the port type.') ipmsFwdDstPortInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 16), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstPortInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortInstance.setDescription('This field contains the port instance.') ipmsFwdDstPortService = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 17), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstPortService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortService.setDescription('This field contains the port service.') ipmsFwdDstPortMbrFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("membershipRequested", 1), ("membershipNotRequested", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstPortMbrFlag.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortMbrFlag.setDescription('This field contains a flag indicating whether or not this port is in the forwarding table due to the reception of an IGMP membership report.') ipmsFwdDstPortNbrFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("portIsNeighbor", 1), ("portIsNotNeighbor", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstPortNbrFlag.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortNbrFlag.setDescription('This field contains a flag indicating whether or not this port is in the forwarding table because their is a neighboring router present on the port.') ipmsFwdDstPortRteFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("portIsRouted", 1), ("portIsNotRouted", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsFwdDstPortRteFlag.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortRteFlag.setDescription('This field contains a flag indicating whether or not this port is in the forwarding table because it is being routed to or not.') ipmsPolManParameters = MibIdentifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 7)) ipmsPolManDefaultPolicy = MibScalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 7, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("permitted", 1), ("denied", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipmsPolManDefaultPolicy.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManDefaultPolicy.setDescription('The default policy for IPMS.') ipmsPolManActiveTimer = MibScalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 7, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipmsPolManActiveTimer.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManActiveTimer.setDescription("The time in seconds that entries in the IPMS Policy Manager cache table remain active before being flagged as 'stale'.") ipmsPolManDeleteTimer = MibScalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 7, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: ipmsPolManDeleteTimer.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManDeleteTimer.setDescription('The time in seconds that entries in the IPMS Policy Manager cache table remain stale before being deleted from the table.') ipmsPolManCacheTable = MibTable((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8), ) if mibBuilder.loadTexts: ipmsPolManCacheTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManCacheTable.setDescription('This table contains entries that represent the contents of IPMS policy manager cache table.') ipmsPolManCacheTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1), ).setIndexNames((0, "IPMS-MIB", "ipmsPolManMCGroup"), (0, "IPMS-MIB", "ipmsPolManSlot"), (0, "IPMS-MIB", "ipmsPolManPort"), (0, "IPMS-MIB", "ipmsPolManType"), (0, "IPMS-MIB", "ipmsPolManInstance"), (0, "IPMS-MIB", "ipmsPolManService")) if mibBuilder.loadTexts: ipmsPolManCacheTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManCacheTableEntry.setDescription('This defines an entry in the Forwarding table.') ipmsPolManMCGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManMCGroup.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManMCGroup.setDescription('This field defines the Dest IP Multicast address for the fields that follow.') ipmsPolManSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManSlot.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManSlot.setDescription('This field defines the slot for this entry.') ipmsPolManPort = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManPort.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManPort.setDescription('This field defines the port for this entry.') ipmsPolManType = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManType.setDescription('This field defines the type for this entry.') ipmsPolManInstance = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManInstance.setDescription('This field defines the instance for this entry.') ipmsPolManService = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManService.setDescription('This field defines the service for this entry.') ipmsPolManVlanGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManVlanGroup.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManVlanGroup.setDescription('This field defines the vlan group for this entry.') ipmsPolManStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("permitted", 1), ("denied", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManStatus.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManStatus.setDescription('This field defines the status of this entry.') ipmsPolManState = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("stale", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManState.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManState.setDescription('This field defines the status for this entry. An entry is active if a response has been received from policy manager before the active timer expires. If the active timer expires, the entry will go into a stale state. If stale for longer than the delete timer, the entry will be deleted.') ipmsPolManTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ipmsPolManTimeout.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManTimeout.setDescription('This field defines the timeout value for this entry.') mibBuilder.exportSymbols("IPMS-MIB", ipmsPolManVlanGroup=ipmsPolManVlanGroup, ipmsStatsDIPAddress=ipmsStatsDIPAddress, ipmsNbrPortService=ipmsNbrPortService, ipmsDIPPortService=ipmsDIPPortService, ipmsPolManType=ipmsPolManType, ipmsFwdDstPortInstance=ipmsFwdDstPortInstance, ipmsDIPSrcIPAddr=ipmsDIPSrcIPAddr, ipmsFwdSrcPortNumber=ipmsFwdSrcPortNumber, ipmsNbrPortNumber=ipmsNbrPortNumber, ipmsDIPAddressPortEntry=ipmsDIPAddressPortEntry, ipmsFwdDstPortNbrFlag=ipmsFwdDstPortNbrFlag, ipmsFwdSourceIP=ipmsFwdSourceIP, ipmsDIPPortType=ipmsDIPPortType, ipmsDIPPortInstance=ipmsDIPPortInstance, ipmsFwdSrcPortInstance=ipmsFwdSrcPortInstance, ipmsNbrSIPAddress=ipmsNbrSIPAddress, ipmsPolManCacheTable=ipmsPolManCacheTable, ipmsDIPDstVlanMask=ipmsDIPDstVlanMask, ipmsFwdSrcPortService=ipmsFwdSrcPortService, ipmsFwdSrcVlan=ipmsFwdSrcVlan, ipmsPolManParameters=ipmsPolManParameters, ipmsState=ipmsState, ipmsFwdSrcVlanMask=ipmsFwdSrcVlanMask, ipmsDIPDstVlan=ipmsDIPDstVlan, ipmsStatsAveragePPS=ipmsStatsAveragePPS, ipmsFwdDstVlanMask=ipmsFwdDstVlanMask, ipmsPolManService=ipmsPolManService, ipmsFwdDstPortService=ipmsFwdDstPortService, ipmsPolManTimeout=ipmsPolManTimeout, ipmsFwdTableEntry=ipmsFwdTableEntry, ipmsStatsEntry=ipmsStatsEntry, ipmsPolManInstance=ipmsPolManInstance, ipmsNbrPortInstance=ipmsNbrPortInstance, ipmsPolManSlot=ipmsPolManSlot, ipmsStatsSIPAddress=ipmsStatsSIPAddress, ipmsFwdDstPortRteFlag=ipmsFwdDstPortRteFlag, ipmsFwdDstSlotNumber=ipmsFwdDstSlotNumber, ipmsFwdEntryType=ipmsFwdEntryType, ipmsFwdDstPortMbrFlag=ipmsFwdDstPortMbrFlag, ipmsFwdSrcSlotNumber=ipmsFwdSrcSlotNumber, ipmsNbrPortTimeout=ipmsNbrPortTimeout, ipmsFwdDstVlan=ipmsFwdDstVlan, ipmsZeroStatsGroup=ipmsZeroStatsGroup, ipmsPolManMCGroup=ipmsPolManMCGroup, ipmsMIBObjects=ipmsMIBObjects, ipmsNeighborTable=ipmsNeighborTable, ipmsPolManStatus=ipmsPolManStatus, ipmsPolManDeleteTimer=ipmsPolManDeleteTimer, ipmsDIPAddress=ipmsDIPAddress, ipmsDIPAddressPortTable=ipmsDIPAddressPortTable, ipmsPolManCacheTableEntry=ipmsPolManCacheTableEntry, ipmsPolManPort=ipmsPolManPort, ipmsForwardingTable=ipmsForwardingTable, ipmsStatsSecsSinceZeroed=ipmsStatsSecsSinceZeroed, ipmsDIPSlotNumber=ipmsDIPSlotNumber, ipmsNbrVlanID=ipmsNbrVlanID, ipmsPolManState=ipmsPolManState, ipmsFwdDstPortNumber=ipmsFwdDstPortNumber, ipmsDIPPortTimeout=ipmsDIPPortTimeout, ipmsNbrPortType=ipmsNbrPortType, ipmsStatsVlanID=ipmsStatsVlanID, ipmsDIPPortNumber=ipmsDIPPortNumber, DisplayString=DisplayString, ipmsFwdDstPortType=ipmsFwdDstPortType, ipmsNeighborTableEntry=ipmsNeighborTableEntry, ipmsStatsTable=ipmsStatsTable, ipmsVersion=ipmsVersion, ipmsGeneralGroup=ipmsGeneralGroup, ipmsStatsPacketsOut=ipmsStatsPacketsOut, ipmsNbrSlotNumber=ipmsNbrSlotNumber, ipmsMIB=ipmsMIB, ipmsPolManActiveTimer=ipmsPolManActiveTimer, ipmsFwdDestIP=ipmsFwdDestIP, ipmsNbrVlanMask=ipmsNbrVlanMask, ipmsFwdSrcPortType=ipmsFwdSrcPortType, ipmsZeroStatsFlag=ipmsZeroStatsFlag, ipmsStatsVlanMask=ipmsStatsVlanMask, ipmsPolManDefaultPolicy=ipmsPolManDefaultPolicy)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, value_range_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (module_identity, iso, bits, object_identity, counter64, ip_address, integer32, mib_identifier, time_ticks, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, unsigned32, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ModuleIdentity', 'iso', 'Bits', 'ObjectIdentity', 'Counter64', 'IpAddress', 'Integer32', 'MibIdentifier', 'TimeTicks', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Unsigned32', 'Gauge32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') (xylan_ipms_arch,) = mibBuilder.importSymbols('XYLAN-BASE-MIB', 'xylanIpmsArch') ipms_mib = mib_identifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1)) ipms_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1)) class Displaystring(OctetString): pass ipms_general_group = mib_identifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 1)) ipms_version = mib_scalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsVersion.setStatus('mandatory') if mibBuilder.loadTexts: ipmsVersion.setDescription('The current version of IPMS.') ipms_state = mib_scalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipmsState.setStatus('mandatory') if mibBuilder.loadTexts: ipmsState.setDescription('The current state of IPMS. When read this flag indicates whether IPMS is enabled or disabled. Setting this flag to enabled causes the IPMS software to be loaded. Setting this flag to disabled causes the IPMS software to be unloaded. If this flag indicates that IPMS is disabled, then no other objects within the IPMS MIB can be accessed (because the IPMS software is not loaded on the switch). In other words, the full IPMS MIB is available only when this flag indicates that IPMS is enabled.') ipms_dip_address_port_table = mib_table((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2)) if mibBuilder.loadTexts: ipmsDIPAddressPortTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPAddressPortTable.setDescription('This table contains entries that list which switch ports have requested membership in a specific IP Multicast Group. There are several slot/port combinations for each IP Multicast Group.') ipms_dip_address_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1)).setIndexNames((0, 'IPMS-MIB', 'ipmsDIPAddress'), (0, 'IPMS-MIB', 'ipmsDIPDstVlan'), (0, 'IPMS-MIB', 'ipmsDIPSlotNumber'), (0, 'IPMS-MIB', 'ipmsDIPPortNumber'), (0, 'IPMS-MIB', 'ipmsDIPPortInstance'), (0, 'IPMS-MIB', 'ipmsDIPPortService')) if mibBuilder.loadTexts: ipmsDIPAddressPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPAddressPortEntry.setDescription('This defines an entry in the Destination IP Address/Port table.') ipms_dip_address = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPAddress.setDescription('This field defines the Destination IP Multicast address for the fields that follow.') ipms_dip_dst_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPDstVlan.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPDstVlan.setDescription('This field contains the VlanId of which the port is a member.') ipms_dip_dst_vlan_mask = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPDstVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPDstVlanMask.setDescription('This field contains the Vlan Mask for the afforementioned Vlan.') ipms_dip_slot_number = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPSlotNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPSlotNumber.setDescription('This field contains the slot number of the port that corresponds to the IP Multicast group that it has joined.') ipms_dip_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortNumber.setDescription('This value contains the port number for this virtual port.') ipms_dip_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPPortType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortType.setDescription('This value contains the type of this port.') ipms_dip_port_instance = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPPortInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortInstance.setDescription('This value contains the instance for this port.') ipms_dip_port_service = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPPortService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortService.setDescription('This value contains the service for this port.') ipms_dip_src_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 9), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPSrcIPAddr.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPSrcIPAddr.setDescription('This value contains the IP address of the station sending the membership report.') ipms_dip_port_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsDIPPortTimeout.setStatus('mandatory') if mibBuilder.loadTexts: ipmsDIPPortTimeout.setDescription('This value contains the timeout value in seconds for this port.') ipms_neighbor_table = mib_table((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3)) if mibBuilder.loadTexts: ipmsNeighborTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNeighborTable.setDescription('This table contains entries that list all known external or neighboring routers.') ipms_neighbor_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1)).setIndexNames((0, 'IPMS-MIB', 'ipmsNbrVlanID'), (0, 'IPMS-MIB', 'ipmsNbrSIPAddress')) if mibBuilder.loadTexts: ipmsNeighborTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNeighborTableEntry.setDescription('This defines an entry in the Neighbor table.') ipms_nbr_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsNbrVlanID.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrVlanID.setDescription('This field contains the VlanId of the neighboring router.') ipms_nbr_vlan_mask = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsNbrVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrVlanMask.setDescription('This field contains the Vlan Mask of the neighboring router.') ipms_nbr_sip_address = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 3), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsNbrSIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrSIPAddress.setDescription('This field defines the IP address of the neighboring router.') ipms_nbr_slot_number = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsNbrSlotNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrSlotNumber.setDescription('This field contains the slot number of the neighboring router.') ipms_nbr_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsNbrPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortNumber.setDescription('This value contains the port number of the neighboring router.') ipms_nbr_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsNbrPortType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortType.setDescription('This value contains the type of the neighboring router.') ipms_nbr_port_instance = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsNbrPortInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortInstance.setDescription('This value contains the instance of the neighboring router.') ipms_nbr_port_service = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsNbrPortService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortService.setDescription('This value contains the service of the neighboring router.') ipms_nbr_port_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 3, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsNbrPortTimeout.setStatus('mandatory') if mibBuilder.loadTexts: ipmsNbrPortTimeout.setDescription('This value contains the timeout value in seconds of the neighboring router.') ipms_stats_table = mib_table((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4)) if mibBuilder.loadTexts: ipmsStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsTable.setDescription('This table contains entries that supply statistical information about the IP Multicast traffic that is being switched and forwarded by this router.') ipms_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1)).setIndexNames((0, 'IPMS-MIB', 'ipmsStatsDIPAddress'), (0, 'IPMS-MIB', 'ipmsStatsSIPAddress'), (0, 'IPMS-MIB', 'ipmsStatsVlanID')) if mibBuilder.loadTexts: ipmsStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsEntry.setDescription('This table entry describes the entries included in the above tables.') ipms_stats_dip_address = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsStatsDIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsDIPAddress.setDescription('This field contains the Destinatin IP address of the dest/source entry value. There can be many IP source addresses for a given Destination IP address.') ipms_stats_sip_address = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsStatsSIPAddress.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsSIPAddress.setDescription('This field contains the Source IP Address for a given Destination IP address.') ipms_stats_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsStatsVlanID.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsVlanID.setDescription('This field contains the VlanID of the entry.') ipms_stats_vlan_mask = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsStatsVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsVlanMask.setDescription('This field contains the Vlan mask of the entry.') ipms_stats_packets_out = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsStatsPacketsOut.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsPacketsOut.setDescription('This field contains the number of packets that have been sent for a given Destination IP/source IP address pair.') ipms_stats_secs_since_zeroed = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsStatsSecsSinceZeroed.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsSecsSinceZeroed.setDescription('This field contains the number seconds that have elapsed since the statistics have been zeroed.') ipms_stats_average_pps = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 4, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsStatsAveragePPS.setStatus('mandatory') if mibBuilder.loadTexts: ipmsStatsAveragePPS.setDescription('This field contains the average number of packets per second for this data flow.') ipms_zero_stats_group = mib_identifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 5)) ipms_zero_stats_flag = mib_scalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 5, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('zeroStats', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipmsZeroStatsFlag.setStatus('mandatory') if mibBuilder.loadTexts: ipmsZeroStatsFlag.setDescription('Seting this flag to one causes statistics counters to be zeroed.') ipms_forwarding_table = mib_table((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6)) if mibBuilder.loadTexts: ipmsForwardingTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsForwardingTable.setDescription('This table contains entries that represent the contents of IPMS forwarding table. For each source and destination IP address pair, several slot/port combinations can be assigned.') ipms_fwd_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1)).setIndexNames((0, 'IPMS-MIB', 'ipmsFwdDestIP'), (0, 'IPMS-MIB', 'ipmsFwdSourceIP'), (0, 'IPMS-MIB', 'ipmsFwdEntryType'), (0, 'IPMS-MIB', 'ipmsFwdSrcVlan'), (0, 'IPMS-MIB', 'ipmsFwdDstSlotNumber'), (0, 'IPMS-MIB', 'ipmsFwdDstPortNumber'), (0, 'IPMS-MIB', 'ipmsFwdDstPortInstance'), (0, 'IPMS-MIB', 'ipmsFwdDstPortService')) if mibBuilder.loadTexts: ipmsFwdTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdTableEntry.setDescription('This defines an entry in the Forwarding table.') ipms_fwd_dest_ip = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDestIP.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDestIP.setDescription('This field defines the Dest IP Multicast address for the fields that follow.') ipms_fwd_source_ip = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdSourceIP.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSourceIP.setDescription('This field defines the Source IP Multicast address for the fields that follow.') ipms_fwd_entry_type = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('switched', 1), ('switchedError', 2), ('switchedPrimary', 3), ('routed', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdEntryType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdEntryType.setDescription('This field contains the type of this forwarding entry.') ipms_fwd_src_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdSrcVlan.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcVlan.setDescription('This field contains the source VlanID of this stream.') ipms_fwd_src_vlan_mask = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdSrcVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcVlanMask.setDescription('This field contains the source VlanID Mask of this stream.') ipms_fwd_src_slot_number = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdSrcSlotNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcSlotNumber.setDescription('This field contains the slot number of the svpn that is emitting this multicast stream.') ipms_fwd_src_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdSrcPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcPortNumber.setDescription('This field contains the port number of the aforementioned svpn.') ipms_fwd_src_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdSrcPortType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcPortType.setDescription('This field contains the port type.') ipms_fwd_src_port_instance = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdSrcPortInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcPortInstance.setDescription('This field contains the port instance.') ipms_fwd_src_port_service = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdSrcPortService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdSrcPortService.setDescription('This field contains the port service.') ipms_fwd_dst_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstVlan.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstVlan.setDescription('This field contains the destination VlanID of this port.') ipms_fwd_dst_vlan_mask = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstVlanMask.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstVlanMask.setDescription('This field contains the destination VlanID Mask of this port.') ipms_fwd_dst_slot_number = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstSlotNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstSlotNumber.setDescription('This field contains the slot number of the svpn that has requested the multicast stream.') ipms_fwd_dst_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortNumber.setDescription('This field contains the port number of the destination svpn.') ipms_fwd_dst_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstPortType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortType.setDescription('This field contains the port type.') ipms_fwd_dst_port_instance = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 16), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstPortInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortInstance.setDescription('This field contains the port instance.') ipms_fwd_dst_port_service = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 17), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstPortService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortService.setDescription('This field contains the port service.') ipms_fwd_dst_port_mbr_flag = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('membershipRequested', 1), ('membershipNotRequested', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstPortMbrFlag.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortMbrFlag.setDescription('This field contains a flag indicating whether or not this port is in the forwarding table due to the reception of an IGMP membership report.') ipms_fwd_dst_port_nbr_flag = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('portIsNeighbor', 1), ('portIsNotNeighbor', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstPortNbrFlag.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortNbrFlag.setDescription('This field contains a flag indicating whether or not this port is in the forwarding table because their is a neighboring router present on the port.') ipms_fwd_dst_port_rte_flag = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 6, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('portIsRouted', 1), ('portIsNotRouted', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsFwdDstPortRteFlag.setStatus('mandatory') if mibBuilder.loadTexts: ipmsFwdDstPortRteFlag.setDescription('This field contains a flag indicating whether or not this port is in the forwarding table because it is being routed to or not.') ipms_pol_man_parameters = mib_identifier((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 7)) ipms_pol_man_default_policy = mib_scalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 7, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('permitted', 1), ('denied', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipmsPolManDefaultPolicy.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManDefaultPolicy.setDescription('The default policy for IPMS.') ipms_pol_man_active_timer = mib_scalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 7, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipmsPolManActiveTimer.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManActiveTimer.setDescription("The time in seconds that entries in the IPMS Policy Manager cache table remain active before being flagged as 'stale'.") ipms_pol_man_delete_timer = mib_scalar((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 7, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: ipmsPolManDeleteTimer.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManDeleteTimer.setDescription('The time in seconds that entries in the IPMS Policy Manager cache table remain stale before being deleted from the table.') ipms_pol_man_cache_table = mib_table((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8)) if mibBuilder.loadTexts: ipmsPolManCacheTable.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManCacheTable.setDescription('This table contains entries that represent the contents of IPMS policy manager cache table.') ipms_pol_man_cache_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1)).setIndexNames((0, 'IPMS-MIB', 'ipmsPolManMCGroup'), (0, 'IPMS-MIB', 'ipmsPolManSlot'), (0, 'IPMS-MIB', 'ipmsPolManPort'), (0, 'IPMS-MIB', 'ipmsPolManType'), (0, 'IPMS-MIB', 'ipmsPolManInstance'), (0, 'IPMS-MIB', 'ipmsPolManService')) if mibBuilder.loadTexts: ipmsPolManCacheTableEntry.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManCacheTableEntry.setDescription('This defines an entry in the Forwarding table.') ipms_pol_man_mc_group = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManMCGroup.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManMCGroup.setDescription('This field defines the Dest IP Multicast address for the fields that follow.') ipms_pol_man_slot = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManSlot.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManSlot.setDescription('This field defines the slot for this entry.') ipms_pol_man_port = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManPort.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManPort.setDescription('This field defines the port for this entry.') ipms_pol_man_type = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManType.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManType.setDescription('This field defines the type for this entry.') ipms_pol_man_instance = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManInstance.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManInstance.setDescription('This field defines the instance for this entry.') ipms_pol_man_service = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManService.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManService.setDescription('This field defines the service for this entry.') ipms_pol_man_vlan_group = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManVlanGroup.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManVlanGroup.setDescription('This field defines the vlan group for this entry.') ipms_pol_man_status = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('permitted', 1), ('denied', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManStatus.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManStatus.setDescription('This field defines the status of this entry.') ipms_pol_man_state = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('stale', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManState.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManState.setDescription('This field defines the status for this entry. An entry is active if a response has been received from policy manager before the active timer expires. If the active timer expires, the entry will go into a stale state. If stale for longer than the delete timer, the entry will be deleted.') ipms_pol_man_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 800, 2, 14, 1, 1, 8, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ipmsPolManTimeout.setStatus('mandatory') if mibBuilder.loadTexts: ipmsPolManTimeout.setDescription('This field defines the timeout value for this entry.') mibBuilder.exportSymbols('IPMS-MIB', ipmsPolManVlanGroup=ipmsPolManVlanGroup, ipmsStatsDIPAddress=ipmsStatsDIPAddress, ipmsNbrPortService=ipmsNbrPortService, ipmsDIPPortService=ipmsDIPPortService, ipmsPolManType=ipmsPolManType, ipmsFwdDstPortInstance=ipmsFwdDstPortInstance, ipmsDIPSrcIPAddr=ipmsDIPSrcIPAddr, ipmsFwdSrcPortNumber=ipmsFwdSrcPortNumber, ipmsNbrPortNumber=ipmsNbrPortNumber, ipmsDIPAddressPortEntry=ipmsDIPAddressPortEntry, ipmsFwdDstPortNbrFlag=ipmsFwdDstPortNbrFlag, ipmsFwdSourceIP=ipmsFwdSourceIP, ipmsDIPPortType=ipmsDIPPortType, ipmsDIPPortInstance=ipmsDIPPortInstance, ipmsFwdSrcPortInstance=ipmsFwdSrcPortInstance, ipmsNbrSIPAddress=ipmsNbrSIPAddress, ipmsPolManCacheTable=ipmsPolManCacheTable, ipmsDIPDstVlanMask=ipmsDIPDstVlanMask, ipmsFwdSrcPortService=ipmsFwdSrcPortService, ipmsFwdSrcVlan=ipmsFwdSrcVlan, ipmsPolManParameters=ipmsPolManParameters, ipmsState=ipmsState, ipmsFwdSrcVlanMask=ipmsFwdSrcVlanMask, ipmsDIPDstVlan=ipmsDIPDstVlan, ipmsStatsAveragePPS=ipmsStatsAveragePPS, ipmsFwdDstVlanMask=ipmsFwdDstVlanMask, ipmsPolManService=ipmsPolManService, ipmsFwdDstPortService=ipmsFwdDstPortService, ipmsPolManTimeout=ipmsPolManTimeout, ipmsFwdTableEntry=ipmsFwdTableEntry, ipmsStatsEntry=ipmsStatsEntry, ipmsPolManInstance=ipmsPolManInstance, ipmsNbrPortInstance=ipmsNbrPortInstance, ipmsPolManSlot=ipmsPolManSlot, ipmsStatsSIPAddress=ipmsStatsSIPAddress, ipmsFwdDstPortRteFlag=ipmsFwdDstPortRteFlag, ipmsFwdDstSlotNumber=ipmsFwdDstSlotNumber, ipmsFwdEntryType=ipmsFwdEntryType, ipmsFwdDstPortMbrFlag=ipmsFwdDstPortMbrFlag, ipmsFwdSrcSlotNumber=ipmsFwdSrcSlotNumber, ipmsNbrPortTimeout=ipmsNbrPortTimeout, ipmsFwdDstVlan=ipmsFwdDstVlan, ipmsZeroStatsGroup=ipmsZeroStatsGroup, ipmsPolManMCGroup=ipmsPolManMCGroup, ipmsMIBObjects=ipmsMIBObjects, ipmsNeighborTable=ipmsNeighborTable, ipmsPolManStatus=ipmsPolManStatus, ipmsPolManDeleteTimer=ipmsPolManDeleteTimer, ipmsDIPAddress=ipmsDIPAddress, ipmsDIPAddressPortTable=ipmsDIPAddressPortTable, ipmsPolManCacheTableEntry=ipmsPolManCacheTableEntry, ipmsPolManPort=ipmsPolManPort, ipmsForwardingTable=ipmsForwardingTable, ipmsStatsSecsSinceZeroed=ipmsStatsSecsSinceZeroed, ipmsDIPSlotNumber=ipmsDIPSlotNumber, ipmsNbrVlanID=ipmsNbrVlanID, ipmsPolManState=ipmsPolManState, ipmsFwdDstPortNumber=ipmsFwdDstPortNumber, ipmsDIPPortTimeout=ipmsDIPPortTimeout, ipmsNbrPortType=ipmsNbrPortType, ipmsStatsVlanID=ipmsStatsVlanID, ipmsDIPPortNumber=ipmsDIPPortNumber, DisplayString=DisplayString, ipmsFwdDstPortType=ipmsFwdDstPortType, ipmsNeighborTableEntry=ipmsNeighborTableEntry, ipmsStatsTable=ipmsStatsTable, ipmsVersion=ipmsVersion, ipmsGeneralGroup=ipmsGeneralGroup, ipmsStatsPacketsOut=ipmsStatsPacketsOut, ipmsNbrSlotNumber=ipmsNbrSlotNumber, ipmsMIB=ipmsMIB, ipmsPolManActiveTimer=ipmsPolManActiveTimer, ipmsFwdDestIP=ipmsFwdDestIP, ipmsNbrVlanMask=ipmsNbrVlanMask, ipmsFwdSrcPortType=ipmsFwdSrcPortType, ipmsZeroStatsFlag=ipmsZeroStatsFlag, ipmsStatsVlanMask=ipmsStatsVlanMask, ipmsPolManDefaultPolicy=ipmsPolManDefaultPolicy)
""" Simply pretty print the adf """ class pprint: """ class to pretty print the data structure behind adf >>> pp = pprint() >>> pp.head() +------------------+------------------+------------------+ | c1 | c2 | c3 | +------------------+------------------+------------------+ | 1 | 11 | 11 | +------------------+------------------+------------------+ | 2 | dsfa | 22 | +------------------+------------------+------------------+ | 3 | 33 | afsd | +------------------+------------------+------------------+ | 4 | 44 | sadgsaafgfdhhf...| +------------------+------------------+------------------+ | 5 | 5 | 5 | +------------------+------------------+------------------+ >>> pp.tail() Showing last 5 rows - +------------------+------------------+------------------+ | c1 | c2 | c3 | +------------------+------------------+------------------+ | 6 | 6 | 6 | +------------------+------------------+------------------+ | 7 | 7 | 7 | | 9 | 9 | sdfa | +------------------+------------------+------------------+ | 8 | 8 | 8 | +------------------+------------------+------------------+ +------------------+------------------+------------------+ >>> """ def __init__(self): """ """ self.data = {"c1": [1,2,3,4,5,6,7,8,9], "c2": [11,"dsfa",33,44,5,6,7,8,9], "c3": [11, 22, "afsd", "sadgsaafgfdhhfdshfdhkdghjlkdfjhdkl", 5, 6, 7, 8, "sdfa"]} self.n = len(self.data.keys()) def show(self, d): """ :param d: :return: """ for row in zip(*([key] + value for key, value in sorted(d.items()))): print('+'+('-'*18+'+')*self.n) print("|", *[str(i).strip() + " "*(18-len(str(i))-1) + "|" if len(str(i)) < 18 else str(i)[0:14] + "...|" for i in row]) print('+' + ('-' * 18 + '+')*self.n) def head(self, n=5): """ :param n: :return: """ print("Showing first " + str(n) + " rows - ") self.show({k: self.data[k][0:5] for k in self.data}) def tail(self, n=5): """ :param n: :return: """ print("Showing last "+str(n)+" rows - ") self.show({k: self.data[k][len(self.data[k])-n+1:] for k in self.data})
""" Simply pretty print the adf """ class Pprint: """ class to pretty print the data structure behind adf >>> pp = pprint() >>> pp.head() +------------------+------------------+------------------+ | c1 | c2 | c3 | +------------------+------------------+------------------+ | 1 | 11 | 11 | +------------------+------------------+------------------+ | 2 | dsfa | 22 | +------------------+------------------+------------------+ | 3 | 33 | afsd | +------------------+------------------+------------------+ | 4 | 44 | sadgsaafgfdhhf...| +------------------+------------------+------------------+ | 5 | 5 | 5 | +------------------+------------------+------------------+ >>> pp.tail() Showing last 5 rows - +------------------+------------------+------------------+ | c1 | c2 | c3 | +------------------+------------------+------------------+ | 6 | 6 | 6 | +------------------+------------------+------------------+ | 7 | 7 | 7 | | 9 | 9 | sdfa | +------------------+------------------+------------------+ | 8 | 8 | 8 | +------------------+------------------+------------------+ +------------------+------------------+------------------+ >>> """ def __init__(self): """ """ self.data = {'c1': [1, 2, 3, 4, 5, 6, 7, 8, 9], 'c2': [11, 'dsfa', 33, 44, 5, 6, 7, 8, 9], 'c3': [11, 22, 'afsd', 'sadgsaafgfdhhfdshfdhkdghjlkdfjhdkl', 5, 6, 7, 8, 'sdfa']} self.n = len(self.data.keys()) def show(self, d): """ :param d: :return: """ for row in zip(*([key] + value for (key, value) in sorted(d.items()))): print('+' + ('-' * 18 + '+') * self.n) print('|', *[str(i).strip() + ' ' * (18 - len(str(i)) - 1) + '|' if len(str(i)) < 18 else str(i)[0:14] + '...|' for i in row]) print('+' + ('-' * 18 + '+') * self.n) def head(self, n=5): """ :param n: :return: """ print('Showing first ' + str(n) + ' rows - ') self.show({k: self.data[k][0:5] for k in self.data}) def tail(self, n=5): """ :param n: :return: """ print('Showing last ' + str(n) + ' rows - ') self.show({k: self.data[k][len(self.data[k]) - n + 1:] for k in self.data})
# Delete Middle Node: Implement an algorithm to delete a node in the middle (i.e., any node but # the first and last node, not necessarily the exact middle) of a singly linked list, given only access to # that node. def delete_mid_node(node): if node is None or node.get_next_mode() is None: return False node.value = node.get_next_mode().get_value() node.set_next_mode(node.get_next_mode().get_next_mode()) return True
def delete_mid_node(node): if node is None or node.get_next_mode() is None: return False node.value = node.get_next_mode().get_value() node.set_next_mode(node.get_next_mode().get_next_mode()) return True
''' Given an array of positive integers. Find the length of the longest sub-sequence such that elements in the subsequence are consecutive integers, the consecutive numbers can be in any order. ''' ## function work...!!!! ''' findLCS() function--> which takes the array arr[] and the size of the array as inputs and returns the length of the longest subsequence of consecutive integers. ''' ## Here we use the hashmap to store element.. def findlcs(arr,n): pass ## Driver code...!!!! if __name__ == "__main__": n = int(input()) arr = list(map(int,input().split())) ''' sample input.. 7 2 6 1 9 4 5 3 '''
""" Given an array of positive integers. Find the length of the longest sub-sequence such that elements in the subsequence are consecutive integers, the consecutive numbers can be in any order. """ '\nfindLCS() function--> which takes the array arr[]\nand the size of the array as inputs and\nreturns the length of the longest subsequence of consecutive integers.\n' def findlcs(arr, n): pass if __name__ == '__main__': n = int(input()) arr = list(map(int, input().split())) '\nsample input..\n7\n2 6 1 9 4 5 3\n'
def make_song(verses = 99, beverage = "soda"): for num in range(verses, -1, -1): if num == 0: yield f"No more {beverage}!" elif num == 1: yield f"Only {num} bottle of {beverage} left!" else: yield f"{num} bottles of {beverage} on the wall." song = make_song(4, "michelada") print(next(song)) print(next(song)) print(next(song)) print(next(song)) print(next(song)) print(next(song))
def make_song(verses=99, beverage='soda'): for num in range(verses, -1, -1): if num == 0: yield f'No more {beverage}!' elif num == 1: yield f'Only {num} bottle of {beverage} left!' else: yield f'{num} bottles of {beverage} on the wall.' song = make_song(4, 'michelada') print(next(song)) print(next(song)) print(next(song)) print(next(song)) print(next(song)) print(next(song))
# par ou impar com funcoes def par_impar(x): if x % 2 == 0: return 'par' else: return 'impar' # Programa principal print(par_impar(int(input('Digite um valor inteiro: '))))
def par_impar(x): if x % 2 == 0: return 'par' else: return 'impar' print(par_impar(int(input('Digite um valor inteiro: '))))
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def isPalindrome(self, head): if not head: return head count = 1 temp = head while temp.next: count += 1 temp = temp.next curr_count = 0 stack = list() temp = head while curr_count != count // 2: stack.append(temp.val) temp = temp.next curr_count += 1 if count % 2 != 0: temp = temp.next while temp: if temp.val != stack.pop(): return False temp = temp.next return True
class Solution: def is_palindrome(self, head): if not head: return head count = 1 temp = head while temp.next: count += 1 temp = temp.next curr_count = 0 stack = list() temp = head while curr_count != count // 2: stack.append(temp.val) temp = temp.next curr_count += 1 if count % 2 != 0: temp = temp.next while temp: if temp.val != stack.pop(): return False temp = temp.next return True
def foo(): f = 0.0 while f < 10000000.0: f = f + 1.0 foo()
def foo(): f = 0.0 while f < 10000000.0: f = f + 1.0 foo()
def helper(arr, left_pos, mid_pos, right_pos): sum1 = sum2 = 0 left_sum = right_sum = -9999 for i in range(mid_pos, left_pos - 1, -1): sum1 += arr[i] if sum1 > left_sum: left_sum = sum1 for i in range(mid_pos + 1, right_pos + 1): sum2 += arr[i] if sum2 > right_sum: right_sum = sum2 maximum = max(left_sum, right_sum, left_sum + right_sum) return maximum def max_subarray_sum(arr, left_pos, right_pos): if left_pos == right_pos: return arr[0] else: mid_pos = (left_pos + right_pos) // 2 left_arr = max_subarray_sum(arr, left_pos, mid_pos) right_arr = max_subarray_sum(arr, mid_pos + 1, right_pos) helper_arr = helper(arr, left_pos, mid_pos, right_pos) maximum = max(left_arr, right_arr, helper_arr) return maximum arr = [2, 3, 4, -100, 5, 7, -4] print(f'Maximum subarray sum is {max_subarray_sum(arr, 0, len(arr) - 1)}')
def helper(arr, left_pos, mid_pos, right_pos): sum1 = sum2 = 0 left_sum = right_sum = -9999 for i in range(mid_pos, left_pos - 1, -1): sum1 += arr[i] if sum1 > left_sum: left_sum = sum1 for i in range(mid_pos + 1, right_pos + 1): sum2 += arr[i] if sum2 > right_sum: right_sum = sum2 maximum = max(left_sum, right_sum, left_sum + right_sum) return maximum def max_subarray_sum(arr, left_pos, right_pos): if left_pos == right_pos: return arr[0] else: mid_pos = (left_pos + right_pos) // 2 left_arr = max_subarray_sum(arr, left_pos, mid_pos) right_arr = max_subarray_sum(arr, mid_pos + 1, right_pos) helper_arr = helper(arr, left_pos, mid_pos, right_pos) maximum = max(left_arr, right_arr, helper_arr) return maximum arr = [2, 3, 4, -100, 5, 7, -4] print(f'Maximum subarray sum is {max_subarray_sum(arr, 0, len(arr) - 1)}')
CH_FONTS={ u'\u4e2d':bytearray([ 0x01,0x00,0x01,0x00,0x01,0x00,0x3f,0xfc, 0x21,0x04,0x21,0x04,0x21,0x04,0x21,0x04, 0x3f,0xfc,0x21,0x04,0x01,0x00,0x01,0x00, 0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00 ]), u'\u6587':bytearray([ 0x01,0x00,0x01,0x00,0x01,0x80,0x7f,0xfc, 0x18,0x10,0x08,0x20,0x0c,0x20,0x04,0x40, 0x02,0xc0,0x03,0x80,0x03,0x80,0x06,0x60, 0x38,0x38,0x60,0x0c,0x00,0x00,0x00,0x00 ]), }
ch_fonts = {u'中': bytearray([1, 0, 1, 0, 1, 0, 63, 252, 33, 4, 33, 4, 33, 4, 33, 4, 63, 252, 33, 4, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0]), u'文': bytearray([1, 0, 1, 0, 1, 128, 127, 252, 24, 16, 8, 32, 12, 32, 4, 64, 2, 192, 3, 128, 3, 128, 6, 96, 56, 56, 96, 12, 0, 0, 0, 0])}
class ConfirmationTypes: """Self explanatory :(""" """Received by server if the client's connection is refused. id:CLIENT_ID, type:CONNECTION_REFUSED""" CONNECTION_REFUSED = "CONNECTION_REFUSED" """Sent by either server or client to reject previous request id:CLIENT_ID, type:REJECTED, request:PREVIOUS_REQUEST""" REJECTED = "REJECTED" class InfoTypes: """Information Types""" """Received by server, storing client id, rsa public key and connection timeout. id:CLIENT_ID, rsa-public-key:KEY, timeout:TIMEOUT(SEC) type:CONNECTION_INFO""" CONNECTION_INFO = "CONNECTION_INFO" """Sent by server, containing all active clients' id's. clients:string_array_of_client_id, type:SERVER_INFO""" SERVER_INFO = "SERVER_INFO" """Stores information of current connection, content:True/False id:CLIENT_ID, content:True/False, type:CONNECTION_STATUS""" CONNECTION_STATUS = "CONNECTION_STATUS" class RequestTypes: """Request Types to create requests""" """Sent by client to establish a connection. id:CLIENT_ID, type:CONNECTION_REQUEST""" CONNECTION_REQUEST = "CONNECTION_REQUEST" """Sent by client to terminate connection. id:CLIENT_ID, type:DISCONNECTION_REQUEST""" DISCONNECTION_REQUEST = "DISCONNECTION_REQUEST" """Sent by client to gather information about the active connections. id:CLIENT_ID, type:SERVER_INFO_REQUEST""" SERVER_INFO_REQUEST = "SERVER_INFO_REQUEST" class MessageTypes: """Text Message Types. Usage: Client sends CARRY_MESSAGE to the server, and server fowards the message as TEXT_MESSAGE.""" """Sent by client to foward the message to another client id:CLIENT_ID, to:string_array_of_client_id, content:MESSAGE, type:CARRY_MESSAGE""" CARRY_MESSAGE = "CARRY_MESSAGE" """Sent by server, to a client. id/from:CLIENT_ID/SENDER_ID, to:string_array_of_client_id, content:MESSAGE, type:TEXT_MESSAGE""" TEXT_MESSAGE = "TEXT_MESSAGE" class TcpTypes: """TCP Communication Message Types""" """Sent by client to maintain connection and prevent timeout. id:CLIENT_ID, type:KEEP_ALIVE""" KEEP_ALIVE = "KEEP_ALIVE"
class Confirmationtypes: """Self explanatory :(""" "Received by server if the client's connection is refused.\n id:CLIENT_ID, type:CONNECTION_REFUSED" connection_refused = 'CONNECTION_REFUSED' 'Sent by either server or client to reject previous request\n id:CLIENT_ID, type:REJECTED, request:PREVIOUS_REQUEST' rejected = 'REJECTED' class Infotypes: """Information Types""" 'Received by server, storing client id, rsa public key and connection timeout.\n id:CLIENT_ID, rsa-public-key:KEY, timeout:TIMEOUT(SEC) type:CONNECTION_INFO' connection_info = 'CONNECTION_INFO' "Sent by server, containing all active clients' id's.\n clients:string_array_of_client_id, type:SERVER_INFO" server_info = 'SERVER_INFO' 'Stores information of current connection, content:True/False\n id:CLIENT_ID, content:True/False, type:CONNECTION_STATUS' connection_status = 'CONNECTION_STATUS' class Requesttypes: """Request Types to create requests""" 'Sent by client to establish a connection.\n id:CLIENT_ID, type:CONNECTION_REQUEST' connection_request = 'CONNECTION_REQUEST' 'Sent by client to terminate connection.\n id:CLIENT_ID, type:DISCONNECTION_REQUEST' disconnection_request = 'DISCONNECTION_REQUEST' 'Sent by client to gather information about the active connections.\n id:CLIENT_ID, type:SERVER_INFO_REQUEST' server_info_request = 'SERVER_INFO_REQUEST' class Messagetypes: """Text Message Types. Usage: Client sends CARRY_MESSAGE to the server, and server fowards the message as TEXT_MESSAGE.""" 'Sent by client to foward the message to another client\n id:CLIENT_ID, to:string_array_of_client_id, content:MESSAGE, type:CARRY_MESSAGE' carry_message = 'CARRY_MESSAGE' 'Sent by server, to a client.\n id/from:CLIENT_ID/SENDER_ID, to:string_array_of_client_id, content:MESSAGE, type:TEXT_MESSAGE' text_message = 'TEXT_MESSAGE' class Tcptypes: """TCP Communication Message Types""" 'Sent by client to maintain connection and prevent timeout.\n id:CLIENT_ID, type:KEEP_ALIVE' keep_alive = 'KEEP_ALIVE'
""" This script includes all the functions for generic interviews """ def binary_to_decimal(decimal_num: str): """ Converts binary number to decimal number. @return: <int> int of the decimal number """ decimal_string = str(decimal_num) if len(decimal_string) > 0: first = decimal_string[0] current = 2**(len(decimal_string) - 1) if first == '1' else 0 decimal_string = decimal_string[1:] return current + binary_to_decimal(decimal_string) return 0
""" This script includes all the functions for generic interviews """ def binary_to_decimal(decimal_num: str): """ Converts binary number to decimal number. @return: <int> int of the decimal number """ decimal_string = str(decimal_num) if len(decimal_string) > 0: first = decimal_string[0] current = 2 ** (len(decimal_string) - 1) if first == '1' else 0 decimal_string = decimal_string[1:] return current + binary_to_decimal(decimal_string) return 0
#encoding:utf-8 subreddit = 'im14andthisisdeep' t_channel = '@wokesouls' def send_post(submission, r2t): return r2t.send_simple(submission)
subreddit = 'im14andthisisdeep' t_channel = '@wokesouls' def send_post(submission, r2t): return r2t.send_simple(submission)
#utilities.py foodsize = 30 SCREEN_WIDTH = 1280 SCREEN_HEIGHT = 1024 RED = (255, 0, 0) BLUE = (0, 0, 255) BACKGROUND_COLOR = (0, 0, 0) AREA = 30 def compreso(num, low, high): """ checks whether or not a number is between low and high """ return num>=low and num<=high if __name__ == '__main__': startx = 20 starty = 40 finishx = finishy = 60 slope = (startx-finishx)/(starty-finishy) print(slope)
foodsize = 30 screen_width = 1280 screen_height = 1024 red = (255, 0, 0) blue = (0, 0, 255) background_color = (0, 0, 0) area = 30 def compreso(num, low, high): """ checks whether or not a number is between low and high """ return num >= low and num <= high if __name__ == '__main__': startx = 20 starty = 40 finishx = finishy = 60 slope = (startx - finishx) / (starty - finishy) print(slope)
bot_token = '<your_bot_token>' fd_token = '<your_football_api_token>' fd_hostname = 'api.football-data.org' fd_protocol = 'https' loglevel = 'DEBUG'
bot_token = '<your_bot_token>' fd_token = '<your_football_api_token>' fd_hostname = 'api.football-data.org' fd_protocol = 'https' loglevel = 'DEBUG'
""" Task Score: 100% Complexity: O(N*log(N)) """ def solution(A): """ Not even going to comment on this one... """ return len(set(A))
""" Task Score: 100% Complexity: O(N*log(N)) """ def solution(A): """ Not even going to comment on this one... """ return len(set(A))
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Contains reference and master data used elsewhere in the program ''' # LED GPIO pin mappings # Used to provide user information on when the photos are being taken # and for the user to trigger the script by pressing the button controller # Need to use BOARD numbering convention (not BCM) PIN_LED_PHOTO_RED = int(4) PIN_LED_PHOTO_YEL = int(25) PIN_LED_PHOTO_GRE = int(24) PIN_SWITCH_IN = int(18) # Folders on the Pi where the files are saved down FOLDER_PHOTOS_ORIGINAL = "/home/pi/Photos/" FOLDER_PHOTOS_CONVERTED = "/home/pi/PhotoBooth/Converted/" FOLDER_PHOTOS_MONTAGE = "/home/pi/PhotoBooth/Montages/" # Configuration of each image # UK passport is 35mm width x 45mm height PASSPORT_IMAGE_WIDTH = 35 PASSPORT_IMAGE_HEIGHT = 45 # Amount to rotate each image taken # Handles different orientations of the camera IMAGE_ROTATE_AMOUNT = 90 # Configuration of the photo montages MONTAGE_NUMBER_OF_PHOTOS = 4 MONTAGE_PHOTO_WIDTH = PASSPORT_IMAGE_WIDTH * 20 MONTAGE_PHOTO_HEIGHT = PASSPORT_IMAGE_HEIGHT * 20 MONTAGE_MARGINS = [25,25,25,25] # [w, t, r, b] MONTAGE_PADDING = 25
""" Contains reference and master data used elsewhere in the program """ pin_led_photo_red = int(4) pin_led_photo_yel = int(25) pin_led_photo_gre = int(24) pin_switch_in = int(18) folder_photos_original = '/home/pi/Photos/' folder_photos_converted = '/home/pi/PhotoBooth/Converted/' folder_photos_montage = '/home/pi/PhotoBooth/Montages/' passport_image_width = 35 passport_image_height = 45 image_rotate_amount = 90 montage_number_of_photos = 4 montage_photo_width = PASSPORT_IMAGE_WIDTH * 20 montage_photo_height = PASSPORT_IMAGE_HEIGHT * 20 montage_margins = [25, 25, 25, 25] montage_padding = 25
class Stack(object): def __init__(self): self.items =[] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def is_empty(self): return len(self.items) == 0 def peek(self): if not self.is_empty(): return self.items[-1] def size(self): return len(self.items) def __len__(self): return self.size() class Queue(object): def __init__(self): self.items = [] def enqueue(self, item): self.items.insert(0,item) def dequeue(self): if not self.is_empty(): return self.items.pop() def is_empty(self): return len(self.items) == 0 def peek(self): if not self.is_empty(): return self.items[-1].value def __len__(self): return self.size() def size(self): return len(self.items) class Node(object): def __init__(self, value): self.value = value self.left = None self.right = None class BinaryTree(object): def __init__(self, root): self.root = Node(root) def print_tree(self, traversal_type): if traversal_type == "preorder": return self.preorder_print(tree.root, "") elif traversal_type == "inorder": return self.inorder_print(tree.root, "") elif traversal_type == "postorder": return self.postorder_print(tree.root, "") elif traversal_type == "levelorder": return self.levelorder_print(tree.root) elif traversal_type == "reverse_levelorder": return self.reverse_levelorder_print(tree.root) else: print("traversal type" + str(traversal_type) + "is not supported") #Root -> Left -> Right #1-2-4-5-3-6-7- def preorder_print(self, start, traversal): if start: traversal += (str(start.value) + "-") traversal = self.preorder_print(start.left, traversal) traversal = self.preorder_print(start.right, traversal) return traversal #Root -> Left -> Right #4-2-5-1-6-3-7 def inorder_print(self, start, traversal): if start: traversal = self.inorder_print(start.left, traversal) traversal += (str(start.value) + "-") traversal = self.inorder_print(start.right, traversal) return traversal #Left->right->Root #4-2-5-6-3-7-1 def postorder_print(self, start, traversal): if start: traversal = self.inorder_print(start.left, traversal) traversal = self.inorder_print(start.right, traversal) traversal += (str(start.value) + "-") return traversal #prints out (from top to bottom) level by level (in order of height) #1-2-3-4-5-6 def levelorder_print(self, start): if start is None: return queue = Queue() queue.enqueue(start) traversal = "" while len(queue) > 0: traversal += str(queue.peek()) + "-" node = queue.dequeue() if node.left: queue.enqueue(node.left) if node.right: queue.enqueue(node.right) return traversal #prints out (from top to bottom) level by level (in order of height) # def reverse_levelorder_print(self, start): if start is None: return queue = Queue() stack = Stack() queue.enqueue(start) traversal = "" while len(queue) > 0: node = queue.dequeue() stack.push(node) if node.right: queue.enqueue(node.right) if node.left: queue.enqueue(node.left) while len(stack) > 0: node = stack.pop() traversal += str(node.value) + "-" return traversal #gives the height og the tree def height(self, node): if node is None: return -1 left_height = self.height(node.left) right_height = self.height(node.right) return 1 + max(left_height, right_height) #gives the size of tree i.e number of nodes #using recursive approaach def size_(self, node): if node is None: return 0 return 1 + self.size_(node.left) + self.size_(node.right) #gives the size of tree i.e number of nodes #using iterative approaach def size(self): if self.root is None: return 0 stack = Stack() stack.push(self.root) size = 1 while stack: node = stack.pop() if node.left: size += 1 stack.push(node.left) if node.right: size += 1 stack.push(node.right) return size
class Stack(object): def __init__(self): self.items = [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def is_empty(self): return len(self.items) == 0 def peek(self): if not self.is_empty(): return self.items[-1] def size(self): return len(self.items) def __len__(self): return self.size() class Queue(object): def __init__(self): self.items = [] def enqueue(self, item): self.items.insert(0, item) def dequeue(self): if not self.is_empty(): return self.items.pop() def is_empty(self): return len(self.items) == 0 def peek(self): if not self.is_empty(): return self.items[-1].value def __len__(self): return self.size() def size(self): return len(self.items) class Node(object): def __init__(self, value): self.value = value self.left = None self.right = None class Binarytree(object): def __init__(self, root): self.root = node(root) def print_tree(self, traversal_type): if traversal_type == 'preorder': return self.preorder_print(tree.root, '') elif traversal_type == 'inorder': return self.inorder_print(tree.root, '') elif traversal_type == 'postorder': return self.postorder_print(tree.root, '') elif traversal_type == 'levelorder': return self.levelorder_print(tree.root) elif traversal_type == 'reverse_levelorder': return self.reverse_levelorder_print(tree.root) else: print('traversal type' + str(traversal_type) + 'is not supported') def preorder_print(self, start, traversal): if start: traversal += str(start.value) + '-' traversal = self.preorder_print(start.left, traversal) traversal = self.preorder_print(start.right, traversal) return traversal def inorder_print(self, start, traversal): if start: traversal = self.inorder_print(start.left, traversal) traversal += str(start.value) + '-' traversal = self.inorder_print(start.right, traversal) return traversal def postorder_print(self, start, traversal): if start: traversal = self.inorder_print(start.left, traversal) traversal = self.inorder_print(start.right, traversal) traversal += str(start.value) + '-' return traversal def levelorder_print(self, start): if start is None: return queue = queue() queue.enqueue(start) traversal = '' while len(queue) > 0: traversal += str(queue.peek()) + '-' node = queue.dequeue() if node.left: queue.enqueue(node.left) if node.right: queue.enqueue(node.right) return traversal def reverse_levelorder_print(self, start): if start is None: return queue = queue() stack = stack() queue.enqueue(start) traversal = '' while len(queue) > 0: node = queue.dequeue() stack.push(node) if node.right: queue.enqueue(node.right) if node.left: queue.enqueue(node.left) while len(stack) > 0: node = stack.pop() traversal += str(node.value) + '-' return traversal def height(self, node): if node is None: return -1 left_height = self.height(node.left) right_height = self.height(node.right) return 1 + max(left_height, right_height) def size_(self, node): if node is None: return 0 return 1 + self.size_(node.left) + self.size_(node.right) def size(self): if self.root is None: return 0 stack = stack() stack.push(self.root) size = 1 while stack: node = stack.pop() if node.left: size += 1 stack.push(node.left) if node.right: size += 1 stack.push(node.right) return size
def match(value, pattern, exact=False): if exact: return value == pattern pattern = pattern.split('*') if len(pattern) == 2: return value.startswith(pattern[0]) elif len(pattern) == 1: return value == pattern[0] else: raise ValueError(pattern) def match_any(value, patterns, exact=False): return any([ match(value, pattern, exact=exact) for pattern in patterns ])
def match(value, pattern, exact=False): if exact: return value == pattern pattern = pattern.split('*') if len(pattern) == 2: return value.startswith(pattern[0]) elif len(pattern) == 1: return value == pattern[0] else: raise value_error(pattern) def match_any(value, patterns, exact=False): return any([match(value, pattern, exact=exact) for pattern in patterns])
# encoding: UTF-8 LOADING_ERROR = u'Error occurred when loading the config file, please check.' CONFIG_KEY_MISSING = u'Key missing in the config file, please check.' DATA_SERVER_CONNECTED = u'Data server connected.' DATA_SERVER_DISCONNECTED = u'Data server disconnected' DATA_SERVER_LOGIN = u'Data server login completed.' DATA_SERVER_LOGOUT = u'Data server logout completed.' TRADING_SERVER_CONNECTED = u'Trading server connected.' TRADING_SERVER_DISCONNECTED = u'Trading server disconnected.' TRADING_SERVER_AUTHENTICATED = u'Trading server authenticated.' TRADING_SERVER_LOGIN = u'Trading server login completed.' TRADING_SERVER_LOGOUT = u'Trading server logout completed.' SETTLEMENT_INFO_CONFIRMED = u'Settlement info confirmed.' CONTRACT_DATA_RECEIVED = u'Contract data received.'
loading_error = u'Error occurred when loading the config file, please check.' config_key_missing = u'Key missing in the config file, please check.' data_server_connected = u'Data server connected.' data_server_disconnected = u'Data server disconnected' data_server_login = u'Data server login completed.' data_server_logout = u'Data server logout completed.' trading_server_connected = u'Trading server connected.' trading_server_disconnected = u'Trading server disconnected.' trading_server_authenticated = u'Trading server authenticated.' trading_server_login = u'Trading server login completed.' trading_server_logout = u'Trading server logout completed.' settlement_info_confirmed = u'Settlement info confirmed.' contract_data_received = u'Contract data received.'
def countSpace(): count = 0 with open('test.txt') as file: for line in file: if ' ' in line: count += line.count(' ') print(count) return count def replaceSpace(): with open('test.txt') as file: content = file.read() content = content.replace(' ', '#') with open('test.txt', 'w') as file: file.write(content) count = countSpace() replaceSpace() print("Space ' '- occurence: ", count)
def count_space(): count = 0 with open('test.txt') as file: for line in file: if ' ' in line: count += line.count(' ') print(count) return count def replace_space(): with open('test.txt') as file: content = file.read() content = content.replace(' ', '#') with open('test.txt', 'w') as file: file.write(content) count = count_space() replace_space() print("Space ' '- occurence: ", count)
# ====================================================================== # Copyright CERFACS (November 2018) # Contributor: Adrien Suau (adrien.suau@cerfacs.fr) # # This software is governed by the CeCILL-B license under French law and # abiding by the rules of distribution of free software. You can use, # modify and/or redistribute the software under the terms of the # CeCILL-B license as circulated by CEA, CNRS and INRIA at the following # URL "http://www.cecill.info". # # As a counterpart to the access to the source code and rights to copy, # modify and redistribute granted by the license, users are provided # only with a limited warranty and the software's author, the holder of # the economic rights, and the successive licensors have only limited # liability. # # In this respect, the user's attention is drawn to the risks associated # with loading, using, modifying and/or developing or reproducing the # software by the user in light of its specific status of free software, # that may mean that it is complicated to manipulate, and that also # therefore means that it is reserved for developers and experienced # professionals having in-depth computer knowledge. Users are therefore # encouraged to load and test the software's suitability as regards # their requirements in conditions enabling the security of their # systems and/or data to be ensured and, more generally, to use and # operate it in the same conditions as regards security. # # The fact that you are presently reading this means that you have had # knowledge of the CeCILL-B license and that you accept its terms. # ====================================================================== """Simplification detection and modification for :py:class:`~.QuantumCircuit`. This package aims at implementing reusable classes/methods to detect and "correct" simplifications in a :py:class:`~.QuantumCircuit`. Definitions: # In the whole package, a :py:class:`~.QuantumCircuit` is said to be "simplifiable" if it admits at least one sub-sequence :math:`S` checking at least one of the following points: * The :py:class:`~.QuantumCircuit` represented by :math:`S` acts on a quantum state as the identity matrix. * The matrix :math:`M` representing :math:`S` represents also a shorter (in terms of quantum gate number) sequence of quantum gates :math:`S'`. """
"""Simplification detection and modification for :py:class:`~.QuantumCircuit`. This package aims at implementing reusable classes/methods to detect and "correct" simplifications in a :py:class:`~.QuantumCircuit`. Definitions: # In the whole package, a :py:class:`~.QuantumCircuit` is said to be "simplifiable" if it admits at least one sub-sequence :math:`S` checking at least one of the following points: * The :py:class:`~.QuantumCircuit` represented by :math:`S` acts on a quantum state as the identity matrix. * The matrix :math:`M` representing :math:`S` represents also a shorter (in terms of quantum gate number) sequence of quantum gates :math:`S'`. """
def nthprime(n: int) -> int: ''' Returns nth prime number. Reference: https://stackoverflow.com/a/48040385/13977061 ''' start = 2 count = 0 while True: if all([start % i for i in range(2, int(start**0.5 + 1))]): count += 1 if count == n: return start start += 1 print(nthprime(1) == 2) print(nthprime(2) == 3) print(nthprime(3) == 5) print(nthprime(4) == 7) print(nthprime(5) == 11) print(nthprime(6) == 13) print(nthprime(7) == 17) print(nthprime(8) == 19) print(nthprime(9) == 23) print(nthprime(10) == 29) print(nthprime(100) == 541)
def nthprime(n: int) -> int: """ Returns nth prime number. Reference: https://stackoverflow.com/a/48040385/13977061 """ start = 2 count = 0 while True: if all([start % i for i in range(2, int(start ** 0.5 + 1))]): count += 1 if count == n: return start start += 1 print(nthprime(1) == 2) print(nthprime(2) == 3) print(nthprime(3) == 5) print(nthprime(4) == 7) print(nthprime(5) == 11) print(nthprime(6) == 13) print(nthprime(7) == 17) print(nthprime(8) == 19) print(nthprime(9) == 23) print(nthprime(10) == 29) print(nthprime(100) == 541)
x=int(input('enter value ')) for i in range(x): for j in range(x): if((i+j==4) or (i+j==5) or(i+j==6)or(i+j==7)or(i+j==8)): print((i+j)-(x-2) ,end=' ') else: print('*',end=' ') print()
x = int(input('enter value ')) for i in range(x): for j in range(x): if i + j == 4 or i + j == 5 or i + j == 6 or (i + j == 7) or (i + j == 8): print(i + j - (x - 2), end=' ') else: print('*', end=' ') print()
def buildsquare(width=0,height=0): spaces = " " * (height // 6) lineshor = "|" + ("_" * (width // 5)) + "|" linesver = "|\n" * (height // 6) print(linesver + lineshor) #NO SNEAKING TO MY CODE, THIS NOT DONE
def buildsquare(width=0, height=0): spaces = ' ' * (height // 6) lineshor = '|' + '_' * (width // 5) + '|' linesver = '|\n' * (height // 6) print(linesver + lineshor)
grid = [[0,0,0,0,0,0,0,2,0], [9,7,0,0,0,0,4,0,0], [0,4,0,1,0,8,0,0,0], [0,0,0,6,0,3,0,7,0], [0,0,0,4,0,0,0,8,5], [0,0,8,0,0,5,0,3,0], [0,5,0,0,0,0,2,0,0], [0,0,0,0,0,1,0,6,3], [3,0,0,7,4,0,0,9,0]] def print_grid (grid) : for i in grid : for j in i : print(j,"\t", end = '') print ("\n", end = '') def possible (x,y,n) : for i in range(9) : if grid[i][y] == n or grid[x][i] == n : return False tmp = x%3 x0 = x - tmp tmp = y%3 y0 = y - tmp for i in range (3) : for j in range (3) : if grid[x0+i][y0+j] == n : return False return True def solve() : global grid for i in range(9) : for j in range(9) : if grid[i][j] == 0 : for x in range(1,10) : if possible (i,j,x) : grid[i][j] = x solve() grid[i][j] = 0 return grid print ("Sudoku Solved !") print_grid (grid) print("Grid :") print_grid (grid) solve()
grid = [[0, 0, 0, 0, 0, 0, 0, 2, 0], [9, 7, 0, 0, 0, 0, 4, 0, 0], [0, 4, 0, 1, 0, 8, 0, 0, 0], [0, 0, 0, 6, 0, 3, 0, 7, 0], [0, 0, 0, 4, 0, 0, 0, 8, 5], [0, 0, 8, 0, 0, 5, 0, 3, 0], [0, 5, 0, 0, 0, 0, 2, 0, 0], [0, 0, 0, 0, 0, 1, 0, 6, 3], [3, 0, 0, 7, 4, 0, 0, 9, 0]] def print_grid(grid): for i in grid: for j in i: print(j, '\t', end='') print('\n', end='') def possible(x, y, n): for i in range(9): if grid[i][y] == n or grid[x][i] == n: return False tmp = x % 3 x0 = x - tmp tmp = y % 3 y0 = y - tmp for i in range(3): for j in range(3): if grid[x0 + i][y0 + j] == n: return False return True def solve(): global grid for i in range(9): for j in range(9): if grid[i][j] == 0: for x in range(1, 10): if possible(i, j, x): grid[i][j] = x solve() grid[i][j] = 0 return grid print('Sudoku Solved !') print_grid(grid) print('Grid :') print_grid(grid) solve()
#Reading input n,k n,k = map(int, input().split()) count = 0 #count denotes number of integers divisible by 3 for _ in range(0, n): t = int(input()) #check for divisibility by 3 if t%k==0: #If t is divisible by 3 increment count by 1 count+=1 #print answer print(count)
(n, k) = map(int, input().split()) count = 0 for _ in range(0, n): t = int(input()) if t % k == 0: count += 1 print(count)
def make_data(data='created some data here'): return data def concat_data(left, right): return left + right def divide_by_zero(): return 1 / 0 def _make_generator(): yield "beep" _GENERATOR = _make_generator() def returns_generator(): return _GENERATOR def returns_fresh_generator(): return _make_generator() def executes_generator(gen): return next(gen)
def make_data(data='created some data here'): return data def concat_data(left, right): return left + right def divide_by_zero(): return 1 / 0 def _make_generator(): yield 'beep' _generator = _make_generator() def returns_generator(): return _GENERATOR def returns_fresh_generator(): return _make_generator() def executes_generator(gen): return next(gen)
# 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 leafSimilar(self, root1: TreeNode, root2: TreeNode) -> bool: return self.getLeaves(root1) == self.getLeaves(root2) def getLeaves(self, root: TreeNode) -> List[TreeNode]: res = [] def dfs(node: TreeNode): if not node: return if not node.left and not node.right: res.append(node.val) else: dfs(node.left) dfs(node.right) dfs(root) return res
class Solution: def leaf_similar(self, root1: TreeNode, root2: TreeNode) -> bool: return self.getLeaves(root1) == self.getLeaves(root2) def get_leaves(self, root: TreeNode) -> List[TreeNode]: res = [] def dfs(node: TreeNode): if not node: return if not node.left and (not node.right): res.append(node.val) else: dfs(node.left) dfs(node.right) dfs(root) return res
"""Bazel rule for loading external repository deps for J2CL.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") _IO_BAZEL_RULES_CLOSURE_VERSION = "master" _BAZEL_SKYLIB_VERSION = "0.7.0" def load_j2cl_repo_deps(): http_archive( name = "io_bazel_rules_closure", strip_prefix = "rules_closure-%s" % _IO_BAZEL_RULES_CLOSURE_VERSION, url = "https://github.com/bazelbuild/rules_closure/archive/%s.zip"% _IO_BAZEL_RULES_CLOSURE_VERSION, ) http_archive( name = "bazel_skylib", strip_prefix = "bazel-skylib-%s" % _BAZEL_SKYLIB_VERSION, url = "https://github.com/bazelbuild/bazel-skylib/archive/%s.zip"% _BAZEL_SKYLIB_VERSION, )
"""Bazel rule for loading external repository deps for J2CL.""" load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive') _io_bazel_rules_closure_version = 'master' _bazel_skylib_version = '0.7.0' def load_j2cl_repo_deps(): http_archive(name='io_bazel_rules_closure', strip_prefix='rules_closure-%s' % _IO_BAZEL_RULES_CLOSURE_VERSION, url='https://github.com/bazelbuild/rules_closure/archive/%s.zip' % _IO_BAZEL_RULES_CLOSURE_VERSION) http_archive(name='bazel_skylib', strip_prefix='bazel-skylib-%s' % _BAZEL_SKYLIB_VERSION, url='https://github.com/bazelbuild/bazel-skylib/archive/%s.zip' % _BAZEL_SKYLIB_VERSION)
# dictionaries method II # dictionaries dont follow input ordering eng2sp={'one':'uno','two':'dos','three':'tres'} print(eng2sp) # dictionaries are mutable # changing elements in a dictionary eng2sp['three']='changed' # to delete dictionaries del eng2sp['two'] print(eng2sp) print(len(eng2sp))
eng2sp = {'one': 'uno', 'two': 'dos', 'three': 'tres'} print(eng2sp) eng2sp['three'] = 'changed' del eng2sp['two'] print(eng2sp) print(len(eng2sp))
class Solution: def XXX(self, x: int) -> int: y=0 while x!=0: if ((y<-214748364)or (y>214748364)) : return 0 y=10*y+x%10 x=x/10 return y
class Solution: def xxx(self, x: int) -> int: y = 0 while x != 0: if y < -214748364 or y > 214748364: return 0 y = 10 * y + x % 10 x = x / 10 return y
"""Level3 configuration information """ #: Filename used to record frames that error out during decoding. ERROR_FILENAME = 'LEVEL3.ERR' #: Expire messages that have not been seen in this many minutes #: The longest interval time between sending is 15 minutes for some #: image products, so time should be greater than this. EXPIRE_MSG_TIME_MINS = 45 #: Run the process to clean out the hash table every this number #: of minutes. EXPUNGE_HASHTABLE_MINS = 10 #: For the standard, PIREPs should expire >= 75 minutes after the time of last reception. #: To be standard compliant, set this to ``False```. #: Setting this to ``True`` decreases processor #: time and doesn't really affect desired behavior. This is especially #: true if using PIREP augmentation to add location information. It #: will greatly decrease database lookups. PIREP_STORE_LEVEL3 = True #: Set to ``True`` if the message should be printed to standard output. #: If you use pretty printing (``--pp``) this will be forced to True. PRINT_TO_STDOUT = False #: Set to ``True`` to write the message to the ``OUTPUT_DIRECTORY``. #: Both ``PRINT_TO_STDOUT`` and ``WRITE_TO_FILE`` can be ``True``. #: This should be set to ``True`` if feeding Harvest with data. #: If you use pretty printing (``--pp``) this will be forced to False. WRITE_TO_FILE = True #: Directory to store processed files to when ``WRITE_TO_FILE`` is #: ``True``. This is mostly for processing by Harvest. OUTPUT_DIRECTORY = "../runtime/harvest"
"""Level3 configuration information """ error_filename = 'LEVEL3.ERR' expire_msg_time_mins = 45 expunge_hashtable_mins = 10 pirep_store_level3 = True print_to_stdout = False write_to_file = True output_directory = '../runtime/harvest'
g = [ list("-A----"), list("-ADDDD"), list("-A----"), list("-A---S"), list("-A---S"), list("PP---S") ] a, d, p, s = 0, 0, 0, 0 uh, ha, hs = 0, 0, 0 for i in range(int(input())): x, y = map(int, input().split()) x, y = x-1, y-1 c = g[y][x] if c == "A": a += 1 elif c == "D": d += 1 elif c == "S": s += 1 elif c == "P": p += 1 g[y][x] = "-" if a == 0: uh += 1 elif a == 5: hs += 1 else: ha += 1 if d == 0: uh += 1 elif d == 4: hs += 1 else: ha += 1 if s == 0: uh += 1 elif s == 3: hs += 1 else: ha += 1 if p == 0: uh += 1 elif p == 2: hs += 1 else: ha += 1 print(f"UNHARMED:{uh}") print(f"HIT BUT AFLOAT:{ha}") print(f"HIT AND SUNK:{hs}")
g = [list('-A----'), list('-ADDDD'), list('-A----'), list('-A---S'), list('-A---S'), list('PP---S')] (a, d, p, s) = (0, 0, 0, 0) (uh, ha, hs) = (0, 0, 0) for i in range(int(input())): (x, y) = map(int, input().split()) (x, y) = (x - 1, y - 1) c = g[y][x] if c == 'A': a += 1 elif c == 'D': d += 1 elif c == 'S': s += 1 elif c == 'P': p += 1 g[y][x] = '-' if a == 0: uh += 1 elif a == 5: hs += 1 else: ha += 1 if d == 0: uh += 1 elif d == 4: hs += 1 else: ha += 1 if s == 0: uh += 1 elif s == 3: hs += 1 else: ha += 1 if p == 0: uh += 1 elif p == 2: hs += 1 else: ha += 1 print(f'UNHARMED:{uh}') print(f'HIT BUT AFLOAT:{ha}') print(f'HIT AND SUNK:{hs}')
class Node: def __init__(self, dataval=None): self.dataval = dataval self.nextval = None class SingleLinkedList: def __init__(self): self.headval = None def traverse(self): printval = self.headval list_string = "" while printval is not None: list_string += str(printval.dataval) + "->" printval = printval.nextval list_string += "(Next Node)" print(list_string) def valueExists(self, value): current_value = self.headval while current_value is not None: if (current_value.dataval == value) and (type(current_value.dataval) == type(value)): return True current_value = current_value.nextval return False def insertAtBegin(self, newdata): newNode = Node(newdata) newNode.nextval = self.headval self.headval = newNode def insertAtEnd(self, newdata): newNode = Node(newdata) if self.headval is None: self.headval = newNode return last = self.headval while(last.nextval): last = last.nextval last.nextval = newNode def insertInbetween(self, middle_node, newdata): if middle_node is None: print("The mentioned node is absent") return newNode = Node(newdata) newNode.nextval = middle_node.nextval middle_node.nextval = newNode def removeNode(self, remove_key): headVal = self.headval if (headVal is not None): if (headVal.dataval == remove_key): self.headval = headVal.nextval headVal = None return while headVal is not None: if headVal.dataval == remove_key: break prev = headVal headVal = headVal.nextval if headVal == None: return prev.nextval = headVal.nextval headVal = None list1 = SingleLinkedList() list1.headval = Node("Mon") e2, e3, e4 = Node("Tue"), Node("Wed"), Node("Thur") list1.headval.nextval = e2 e2.nextval = e3 e3.nextval = e4 list1.insertAtBegin("Sun") list1.insertAtEnd("Fri") list1.insertInbetween(e3.nextval, "WhatDay") list1.insertAtEnd(1) list1.insertAtBegin(0) list1.insertAtEnd(False) list1.removeNode("WhatDay") list1.traverse() if list1.valueExists(False): print("Value Exists") else: print("Value Does not Exist")
class Node: def __init__(self, dataval=None): self.dataval = dataval self.nextval = None class Singlelinkedlist: def __init__(self): self.headval = None def traverse(self): printval = self.headval list_string = '' while printval is not None: list_string += str(printval.dataval) + '->' printval = printval.nextval list_string += '(Next Node)' print(list_string) def value_exists(self, value): current_value = self.headval while current_value is not None: if current_value.dataval == value and type(current_value.dataval) == type(value): return True current_value = current_value.nextval return False def insert_at_begin(self, newdata): new_node = node(newdata) newNode.nextval = self.headval self.headval = newNode def insert_at_end(self, newdata): new_node = node(newdata) if self.headval is None: self.headval = newNode return last = self.headval while last.nextval: last = last.nextval last.nextval = newNode def insert_inbetween(self, middle_node, newdata): if middle_node is None: print('The mentioned node is absent') return new_node = node(newdata) newNode.nextval = middle_node.nextval middle_node.nextval = newNode def remove_node(self, remove_key): head_val = self.headval if headVal is not None: if headVal.dataval == remove_key: self.headval = headVal.nextval head_val = None return while headVal is not None: if headVal.dataval == remove_key: break prev = headVal head_val = headVal.nextval if headVal == None: return prev.nextval = headVal.nextval head_val = None list1 = single_linked_list() list1.headval = node('Mon') (e2, e3, e4) = (node('Tue'), node('Wed'), node('Thur')) list1.headval.nextval = e2 e2.nextval = e3 e3.nextval = e4 list1.insertAtBegin('Sun') list1.insertAtEnd('Fri') list1.insertInbetween(e3.nextval, 'WhatDay') list1.insertAtEnd(1) list1.insertAtBegin(0) list1.insertAtEnd(False) list1.removeNode('WhatDay') list1.traverse() if list1.valueExists(False): print('Value Exists') else: print('Value Does not Exist')
# model model = Model() i1 = Input("op1", "TENSOR_FLOAT32", "{2, 2, 2, 2}") i2 = Input("op2", "TENSOR_FLOAT32", "{2, 2, 2, 2}") act = Int32Scalar("act", 0) # an int32_t scalar fuse_activation i3 = Output("op3", "TENSOR_FLOAT32", "{2, 2, 2, 2}") model = model.Operation("MUL", i1, i2, act).To(i3) # Example 1. Input in operand 0, input0 = {i1: # input 0 [1, 2, -3, -4, -15, 6, 23, 8, -1, -2, 3, 4, 10, -6, 7, -2], i2: # input 1 [-1, -2, 3, 4, -5, -6, 7, -8, 1, -2, -3, -4, -5, 6, 7, 8]} output0 = {i3: # output 0 [-1, -4, -9, -16, 75, -36, 161, -64, -1, 4, -9, -16, -50, -36, 49, -16]} # Instantiate an example Example((input0, output0))
model = model() i1 = input('op1', 'TENSOR_FLOAT32', '{2, 2, 2, 2}') i2 = input('op2', 'TENSOR_FLOAT32', '{2, 2, 2, 2}') act = int32_scalar('act', 0) i3 = output('op3', 'TENSOR_FLOAT32', '{2, 2, 2, 2}') model = model.Operation('MUL', i1, i2, act).To(i3) input0 = {i1: [1, 2, -3, -4, -15, 6, 23, 8, -1, -2, 3, 4, 10, -6, 7, -2], i2: [-1, -2, 3, 4, -5, -6, 7, -8, 1, -2, -3, -4, -5, 6, 7, 8]} output0 = {i3: [-1, -4, -9, -16, 75, -36, 161, -64, -1, 4, -9, -16, -50, -36, 49, -16]} example((input0, output0))
### Author: HIROSE Masaaki <hirose31 _at_ gmail.com> global mysql_options mysql_options = os.getenv('DSTAT_MYSQL') or '' global target_status global _basic_status global _extra_status _basic_status = ( ('Queries' , 'qps'), ('Com_select' , 'sel/s'), ('Com_insert' , 'ins/s'), ('Com_update' , 'upd/s'), ('Com_delete' , 'del/s'), ('Connections' , 'con/s'), ('Threads_connected' , 'thcon'), ('Threads_running' , 'thrun'), ('Slow_queries' , 'slow'), ) _extra_status = ( ('Innodb_rows_read' , 'r#read'), ('Innodb_rows_inserted' , 'r#ins'), ('Innodb_rows_updated' , 'r#upd'), ('Innodb_rows_deleted' , 'r#del'), ('Innodb_data_reads' , 'rdphy'), ('Innodb_buffer_pool_read_requests', 'rdlgc'), ('Innodb_data_writes' , 'wrdat'), ('Innodb_log_writes' , 'wrlog'), ('innodb_buffer_pool_pages_dirty_pct', '%dirty'), ) global calculating_status calculating_status = ( 'Innodb_buffer_pool_pages_total', 'Innodb_buffer_pool_pages_dirty', ) global gauge gauge = { 'Slow_queries' : 1, 'Threads_connected' : 1, 'Threads_running' : 1, } class dstat_plugin(dstat): """ mysql5-innodb, mysql5-innodb-basic, mysql5-innodb-extra display various metircs on MySQL5 and InnoDB. """ def __init__(self): self.name = 'MySQL5 InnoDB ' self.type = 'd' self.width = 5 self.scale = 1000 def check(self): if self.filename.find("basic") >= 0: target_status = _basic_status self.name += 'basic' elif self.filename.find("extra") >= 0: target_status = _extra_status self.name += 'extra' elif self.filename.find("full") >= 0: target_status = _basic_status + _extra_status self.name += 'full' else: target_status = _basic_status + _extra_status self.name += 'full' self.vars = tuple( map((lambda e: e[0]), target_status) ) self.nick = tuple( map((lambda e: e[1]), target_status) ) mysql_candidate = ('/usr/bin/mysql', '/usr/local/bin/mysql') mysql_cmd = '' for mc in mysql_candidate: if os.access(mc, os.X_OK): mysql_cmd = mc break if mysql_cmd: try: self.stdin, self.stdout, self.stderr = dpopen('%s -n %s' % (mysql_cmd, mysql_options)) except IOError: raise Exception('Cannot interface with MySQL binary') return True raise Exception('Needs MySQL binary') def extract(self): try: self.stdin.write('show global status;\n') for line in readpipe(self.stdout): if line == '': break s = line.split() if s[0] in self.vars: self.set2[s[0]] = float(s[1]) elif s[0] in calculating_status: self.set2[s[0]] = float(s[1]) for k in self.vars: if k in gauge: self.val[k] = self.set2[k] elif k == 'innodb_buffer_pool_pages_dirty_pct': self.val[k] = self.set2['Innodb_buffer_pool_pages_dirty'] / self.set2['Innodb_buffer_pool_pages_total'] * 100 else: self.val[k] = (self.set2[k] - self.set1[k]) * 1.0 / elapsed if step == op.delay: self.set1.update(self.set2) except IOError as e: if op.debug > 1: print('%s: lost pipe to mysql, %s' % (self.filename, e)) for name in self.vars: self.val[name] = -1 except Exception as e: if op.debug > 1: print('%s: exception' % (self.filename, e)) for name in self.vars: self.val[name] = -1
global mysql_options mysql_options = os.getenv('DSTAT_MYSQL') or '' global target_status global _basic_status global _extra_status _basic_status = (('Queries', 'qps'), ('Com_select', 'sel/s'), ('Com_insert', 'ins/s'), ('Com_update', 'upd/s'), ('Com_delete', 'del/s'), ('Connections', 'con/s'), ('Threads_connected', 'thcon'), ('Threads_running', 'thrun'), ('Slow_queries', 'slow')) _extra_status = (('Innodb_rows_read', 'r#read'), ('Innodb_rows_inserted', 'r#ins'), ('Innodb_rows_updated', 'r#upd'), ('Innodb_rows_deleted', 'r#del'), ('Innodb_data_reads', 'rdphy'), ('Innodb_buffer_pool_read_requests', 'rdlgc'), ('Innodb_data_writes', 'wrdat'), ('Innodb_log_writes', 'wrlog'), ('innodb_buffer_pool_pages_dirty_pct', '%dirty')) global calculating_status calculating_status = ('Innodb_buffer_pool_pages_total', 'Innodb_buffer_pool_pages_dirty') global gauge gauge = {'Slow_queries': 1, 'Threads_connected': 1, 'Threads_running': 1} class Dstat_Plugin(dstat): """ mysql5-innodb, mysql5-innodb-basic, mysql5-innodb-extra display various metircs on MySQL5 and InnoDB. """ def __init__(self): self.name = 'MySQL5 InnoDB ' self.type = 'd' self.width = 5 self.scale = 1000 def check(self): if self.filename.find('basic') >= 0: target_status = _basic_status self.name += 'basic' elif self.filename.find('extra') >= 0: target_status = _extra_status self.name += 'extra' elif self.filename.find('full') >= 0: target_status = _basic_status + _extra_status self.name += 'full' else: target_status = _basic_status + _extra_status self.name += 'full' self.vars = tuple(map(lambda e: e[0], target_status)) self.nick = tuple(map(lambda e: e[1], target_status)) mysql_candidate = ('/usr/bin/mysql', '/usr/local/bin/mysql') mysql_cmd = '' for mc in mysql_candidate: if os.access(mc, os.X_OK): mysql_cmd = mc break if mysql_cmd: try: (self.stdin, self.stdout, self.stderr) = dpopen('%s -n %s' % (mysql_cmd, mysql_options)) except IOError: raise exception('Cannot interface with MySQL binary') return True raise exception('Needs MySQL binary') def extract(self): try: self.stdin.write('show global status;\n') for line in readpipe(self.stdout): if line == '': break s = line.split() if s[0] in self.vars: self.set2[s[0]] = float(s[1]) elif s[0] in calculating_status: self.set2[s[0]] = float(s[1]) for k in self.vars: if k in gauge: self.val[k] = self.set2[k] elif k == 'innodb_buffer_pool_pages_dirty_pct': self.val[k] = self.set2['Innodb_buffer_pool_pages_dirty'] / self.set2['Innodb_buffer_pool_pages_total'] * 100 else: self.val[k] = (self.set2[k] - self.set1[k]) * 1.0 / elapsed if step == op.delay: self.set1.update(self.set2) except IOError as e: if op.debug > 1: print('%s: lost pipe to mysql, %s' % (self.filename, e)) for name in self.vars: self.val[name] = -1 except Exception as e: if op.debug > 1: print('%s: exception' % (self.filename, e)) for name in self.vars: self.val[name] = -1
findNumber = 40 guessNumber = 0 while guessNumber != findNumber: guessNumber = int(input('Guess a number : ')) if findNumber == guessNumber: print('You guess ! That number is :', guessNumber) elif findNumber > guessNumber: print('Find number is greater than', guessNumber) else: print('Find number is smaller than', guessNumber)
find_number = 40 guess_number = 0 while guessNumber != findNumber: guess_number = int(input('Guess a number : ')) if findNumber == guessNumber: print('You guess ! That number is :', guessNumber) elif findNumber > guessNumber: print('Find number is greater than', guessNumber) else: print('Find number is smaller than', guessNumber)
""" Write a method to determine the number of ways to decode a string. A msg string consists of letters from A-Z, which represent numbers in the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Examples: decodeString("521") => 2 Possible ways of decoding: EBA, EU decodeString("113021") => 0 Take 0 or 30, neither represent any alphabet and hence the entire string can't be decoded! """ #Approach 1, dfs, 2^n def decode_string(msg): if msg is None: return 0 counter = 0 stack = list() addNext(-1, msg, stack) while stack: current = stack.pop() if current[1] == len(msg) - 1: counter += 1 continue addNext(current[1], msg[current[1] + 1:], stack) return counter def addNext(i_so_far, msg, stack): i = 1 while i <= 2: if len(msg) < i: break next_s = msg[:i] if isValid(next_s): stack.append((next_s, i_so_far + i)) i += 1 def isValid(s): if s[0] == "0": return False return 1 <= int(s) <= 26 #Approach 2, O(n) def decode_string(msg): if len(msg) == 0: return 0 previousWays = 0 possibleWays = 1 for i in range(0,len(msg)): if not msg[i].isdigit(): return 0 temp = 0 if msg[i]!='0': temp = possibleWays if i>0 and int(msg[i-1:i+1])<27 and msg[i-1]!= '0': temp += previousWays previousWays = possibleWays possibleWays = temp return possibleWays
""" Write a method to determine the number of ways to decode a string. A msg string consists of letters from A-Z, which represent numbers in the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Examples: decodeString("521") => 2 Possible ways of decoding: EBA, EU decodeString("113021") => 0 Take 0 or 30, neither represent any alphabet and hence the entire string can't be decoded! """ def decode_string(msg): if msg is None: return 0 counter = 0 stack = list() add_next(-1, msg, stack) while stack: current = stack.pop() if current[1] == len(msg) - 1: counter += 1 continue add_next(current[1], msg[current[1] + 1:], stack) return counter def add_next(i_so_far, msg, stack): i = 1 while i <= 2: if len(msg) < i: break next_s = msg[:i] if is_valid(next_s): stack.append((next_s, i_so_far + i)) i += 1 def is_valid(s): if s[0] == '0': return False return 1 <= int(s) <= 26 def decode_string(msg): if len(msg) == 0: return 0 previous_ways = 0 possible_ways = 1 for i in range(0, len(msg)): if not msg[i].isdigit(): return 0 temp = 0 if msg[i] != '0': temp = possibleWays if i > 0 and int(msg[i - 1:i + 1]) < 27 and (msg[i - 1] != '0'): temp += previousWays previous_ways = possibleWays possible_ways = temp return possibleWays
class Solution: # @param A : list of integers # @param B : list of integers # @return an integer def coverPoints(self, A, B): moves = 0 for i in range(len(A) - 1): if abs(A[i] - A[i + 1]) <= abs(B[i] - B[i + 1]): moves += abs(B[i] - B[i + 1]) else: moves += abs(A[i] - A[i + 1]) return moves
class Solution: def cover_points(self, A, B): moves = 0 for i in range(len(A) - 1): if abs(A[i] - A[i + 1]) <= abs(B[i] - B[i + 1]): moves += abs(B[i] - B[i + 1]) else: moves += abs(A[i] - A[i + 1]) return moves
class Volume(): def __init__(self, name, total, maxiops, maxbw): self.name = name self.total = total self.maxiops = maxiops self.maxbw = maxbw
class Volume: def __init__(self, name, total, maxiops, maxbw): self.name = name self.total = total self.maxiops = maxiops self.maxbw = maxbw
def _gradle_build_impl(ctx): args = [] outputs = [ctx.outputs.output_log] args += ["--log_file", ctx.outputs.output_log.path] args += ["--gradle_file", ctx.file.build_file.path] if (ctx.attr.output_file_destinations): for source, dest in zip(ctx.attr.output_file_sources, ctx.outputs.output_file_destinations): outputs += [dest] args += ["--output", source, dest.path] distribution = ctx.attr._distribution.files.to_list()[0] args += ["--distribution", distribution.path] for repo in ctx.files.repos: args += ["--repo", repo.path] for task in ctx.attr.tasks: args += ["--task", task] ctx.actions.run( inputs = ctx.files.data + ctx.files.repos + [ctx.file.build_file, distribution], outputs = outputs, mnemonic = "gradlew", arguments = args, executable = ctx.executable._gradlew, ) # This rule is wrapped to allow the output Label to location map to be expressed as a map in the # build files. _gradle_build_rule = rule( attrs = { "data": attr.label_list(allow_files = True), "output_file_sources": attr.string_list(), "output_file_destinations": attr.output_list(), "tasks": attr.string_list(), "build_file": attr.label( allow_single_file = True, ), "repos": attr.label_list(allow_files = True), "output_log": attr.output(), "_distribution": attr.label( default = Label("//tools/base/build-system:gradle-distrib"), allow_files = True, ), "_gradlew": attr.label( executable = True, cfg = "host", default = Label("//tools/base/bazel:gradlew"), allow_files = True, ), }, implementation = _gradle_build_impl, ) def gradle_build( name = None, build_file = None, data = [], output_file = None, output_file_source = None, output_files = {}, repos = [], tasks = [], tags = []): output_file_destinations = [] output_file_sources = [] if (output_file): output_file_destinations += [output_file] if (output_file_source): output_file_sources += ["build/" + output_file_source] else: output_file_sources += ["build/" + output_file] for output_file_destination, output_file_source_name in output_files.items(): output_file_destinations += [output_file_destination] output_file_sources += [output_file_source_name] _gradle_build_rule( name = name, build_file = build_file, data = data, output_file_sources = output_file_sources, output_file_destinations = output_file_destinations, output_log = name + ".log", repos = repos, tags = tags, tasks = tasks, )
def _gradle_build_impl(ctx): args = [] outputs = [ctx.outputs.output_log] args += ['--log_file', ctx.outputs.output_log.path] args += ['--gradle_file', ctx.file.build_file.path] if ctx.attr.output_file_destinations: for (source, dest) in zip(ctx.attr.output_file_sources, ctx.outputs.output_file_destinations): outputs += [dest] args += ['--output', source, dest.path] distribution = ctx.attr._distribution.files.to_list()[0] args += ['--distribution', distribution.path] for repo in ctx.files.repos: args += ['--repo', repo.path] for task in ctx.attr.tasks: args += ['--task', task] ctx.actions.run(inputs=ctx.files.data + ctx.files.repos + [ctx.file.build_file, distribution], outputs=outputs, mnemonic='gradlew', arguments=args, executable=ctx.executable._gradlew) _gradle_build_rule = rule(attrs={'data': attr.label_list(allow_files=True), 'output_file_sources': attr.string_list(), 'output_file_destinations': attr.output_list(), 'tasks': attr.string_list(), 'build_file': attr.label(allow_single_file=True), 'repos': attr.label_list(allow_files=True), 'output_log': attr.output(), '_distribution': attr.label(default=label('//tools/base/build-system:gradle-distrib'), allow_files=True), '_gradlew': attr.label(executable=True, cfg='host', default=label('//tools/base/bazel:gradlew'), allow_files=True)}, implementation=_gradle_build_impl) def gradle_build(name=None, build_file=None, data=[], output_file=None, output_file_source=None, output_files={}, repos=[], tasks=[], tags=[]): output_file_destinations = [] output_file_sources = [] if output_file: output_file_destinations += [output_file] if output_file_source: output_file_sources += ['build/' + output_file_source] else: output_file_sources += ['build/' + output_file] for (output_file_destination, output_file_source_name) in output_files.items(): output_file_destinations += [output_file_destination] output_file_sources += [output_file_source_name] _gradle_build_rule(name=name, build_file=build_file, data=data, output_file_sources=output_file_sources, output_file_destinations=output_file_destinations, output_log=name + '.log', repos=repos, tags=tags, tasks=tasks)
# Introduction to Python # Non homogeneous collection of elements list1 = [12,12.8,'This is a string'] # Printing the list print(list1) print(list1[0]) print(list1[1]) print(list1[2]) # Adding elements to the list list1.append(50) list1.insert(0,'Another string') print(list1[3]) # Updating List list1[1] = 20 # Deleting elements of the list list1.pop() del list1[2] # Length of the list print(len(list1)) # Looping through List # Method 1 : Using Indexes (Mainly for updating) for i in range(0,len(list1)): print(list1[i]) list1[i] = 12 # Something else # Method 2 : For each technique (Mainly for accessing) for item in list1: print(item)
list1 = [12, 12.8, 'This is a string'] print(list1) print(list1[0]) print(list1[1]) print(list1[2]) list1.append(50) list1.insert(0, 'Another string') print(list1[3]) list1[1] = 20 list1.pop() del list1[2] print(len(list1)) for i in range(0, len(list1)): print(list1[i]) list1[i] = 12 for item in list1: print(item)
# -*- coding: utf-8 -*- __author__ = """Josh Yudaken""" __email__ = 'josh@smyte.com' __version__ = '0.1.0'
__author__ = 'Josh Yudaken' __email__ = 'josh@smyte.com' __version__ = '0.1.0'
class Solution(object): @staticmethod def isPalindrome(x): if x < 0: return False temp = str(x) return temp == temp[::-1] # Press the green button in the gutter to run the script. if __name__ == '__main__': print(Solution.isPalindrome(121)) print(Solution.isPalindrome(-121)) print(Solution.isPalindrome(10))
class Solution(object): @staticmethod def is_palindrome(x): if x < 0: return False temp = str(x) return temp == temp[::-1] if __name__ == '__main__': print(Solution.isPalindrome(121)) print(Solution.isPalindrome(-121)) print(Solution.isPalindrome(10))
# http://codingbat.com/prob/p129981 def make_out_word(out, word): return out[0:2] + word + out[2:4]
def make_out_word(out, word): return out[0:2] + word + out[2:4]
# ************************************************************************* # # Copyright (c) 2021 Andrei Gramakov. All rights reserved. # # This file is licensed under the terms of the MIT license. # For a copy, see: https://opensource.org/licenses/MIT # # site: https://agramakov.me # e-mail: mail@agramakov.me # # ************************************************************************* def get_round(in_list, num): new_l = [] for i in in_list: new_l.append(round(i, num)) return new_l def get_max_deviation(in_list): lmax = float(max(in_list)) lmin = float(min(in_list)) delta = lmax - lmin if not delta: return 0 return delta / lmax
def get_round(in_list, num): new_l = [] for i in in_list: new_l.append(round(i, num)) return new_l def get_max_deviation(in_list): lmax = float(max(in_list)) lmin = float(min(in_list)) delta = lmax - lmin if not delta: return 0 return delta / lmax
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") TOPO_COMMIT = "8866b0a658247683bd4b852839ce91c6ba60f6ac" TOPO_SHA = "dc63356c3d34de18b0afdf04cce01f6de83e2b7264de177e55c0595b05dbcd07" def generate_topo_device(): http_archive( name = "com_github_onosproject_onos_topo", urls = ["https://github.com/onosproject/onos-topo/archive/%s.zip" % TOPO_COMMIT], sha256 = TOPO_SHA, strip_prefix = "onos-topo-%s/api" % TOPO_COMMIT, build_file = "//tools/build/bazel:topo_BUILD", )
load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive') topo_commit = '8866b0a658247683bd4b852839ce91c6ba60f6ac' topo_sha = 'dc63356c3d34de18b0afdf04cce01f6de83e2b7264de177e55c0595b05dbcd07' def generate_topo_device(): http_archive(name='com_github_onosproject_onos_topo', urls=['https://github.com/onosproject/onos-topo/archive/%s.zip' % TOPO_COMMIT], sha256=TOPO_SHA, strip_prefix='onos-topo-%s/api' % TOPO_COMMIT, build_file='//tools/build/bazel:topo_BUILD')
# OutputHTML.py # # This class outputs an HTML page as title headings and tables. # class OutputHTML: def __init__(self): styles = [ "<style>", "<!--", "caption {", "font-size: 16pt;", "padding-top: 1em;", "padding-bottom: 0.5em;", "}", "table {", "border: 1px solid black;", "border-collapse: collapse;", "}", "th {", "border: 1px solid black;", "background-color: #00CCFF;", "padding-left: 1em;", "padding-right: 1em;", "padding-top: 0.5em;", "padding-bottom: 0.5em;", "}", "td {", "border: 1px solid black;", "padding-top: 0.5em;", "padding-bottom: 0.5em;", "text-align: center", "}", "-->", "</style>" ] form = [ '<form action="sample.html">', '<p><input type="radio" name="ident" value="bibleid" checked>BibleId</input>', '<input type="radio" name="ident" value="filesetid">FilesetId</input>', '<input type="text" name="type" /></p>', '<p><br/><label>Detail:</label>', '<input type="radio" name="detail" value="no" checked>No</input>', '<input type="radio" name="detail" value="yes">Yes</input></p>', '<p><br/><label>Output:</label>', '<input type="radio" name="output" value="html" checked>HTML</input>', '<input type="radio" name="output" value="json">JSON</input></p>', '<p><br/><input type="submit"></p>', '</form>' ] self.output = [] self.output.append("<html>\n") self.output.append("<head>\n") self.output.append("\n".join(styles)) self.output.append("</head>\n") self.output.append("<body>\n") self.output.append("\n".join(form)) def title(self, level, text): if level == 1: self.output.append("<h1>%s</h1>\n" % (text)) elif level == 2: self.output.append("<h2>%s</h2>\n" % (text)) elif level == 3: self.output.append("<h3>%s</h3>\n" % (text)) else: self.output.append("<p>%s</p>\n" % (text)) def table(self, name, columns, rows): self.output.append("<table>\n") if name != None: self.output.append("<caption>%s</caption>\n" % (name)) self.output.append("<thead>\n") self.output.append("<tr>") for col in columns: self.output.append("<th>%s</th>" % (col)) self.output.append("</tr>\n") self.output.append("</thead>\n") self.output.append("<tbody>\n") for row in rows: self.output.append("<tr>") for value in row: self.output.append("<td>%s</td>" % (value)) self.output.append("</tr>\n") self.output.append("</tbody>\n") self.output.append("</table>\n") def json(self, name, columns, rows): self.output.append('table: "%s", rows: [ ' % (name)) for row in rows: self.output.append(' { ') for index in range(len(columns)): if index > 0: self.output.append(', ') self.output.append('"%s": "%s"' % (columns[index]), row[index]) self.output.append(' } ') self.append(' ] ') def close(self): self.output.append("</body>\n") self.output.append("</html>\n") def stdout(self): for line in self.output: print(line) def file(self, filename): fp = open(filename, "w") for line in self.output: fp.write(line) fp.close() if __name__ == "__main__": html = OutputHTML() #html.title(1, "What?") html.table("caption", ["col1", "col2", "col3"], [[1, 2, 3], ["a", "b", "c"]]) html.table("caption2", ["col4", "col5", "col6"], [[1, 2, 3], ["a", "b", "c"]]) html.close() html.file("sample.html")
class Outputhtml: def __init__(self): styles = ['<style>', '<!--', 'caption {', 'font-size: 16pt;', 'padding-top: 1em;', 'padding-bottom: 0.5em;', '}', 'table {', 'border: 1px solid black;', 'border-collapse: collapse;', '}', 'th {', 'border: 1px solid black;', 'background-color: #00CCFF;', 'padding-left: 1em;', 'padding-right: 1em;', 'padding-top: 0.5em;', 'padding-bottom: 0.5em;', '}', 'td {', 'border: 1px solid black;', 'padding-top: 0.5em;', 'padding-bottom: 0.5em;', 'text-align: center', '}', '-->', '</style>'] form = ['<form action="sample.html">', '<p><input type="radio" name="ident" value="bibleid" checked>BibleId</input>', '<input type="radio" name="ident" value="filesetid">FilesetId</input>', '<input type="text" name="type" /></p>', '<p><br/><label>Detail:</label>', '<input type="radio" name="detail" value="no" checked>No</input>', '<input type="radio" name="detail" value="yes">Yes</input></p>', '<p><br/><label>Output:</label>', '<input type="radio" name="output" value="html" checked>HTML</input>', '<input type="radio" name="output" value="json">JSON</input></p>', '<p><br/><input type="submit"></p>', '</form>'] self.output = [] self.output.append('<html>\n') self.output.append('<head>\n') self.output.append('\n'.join(styles)) self.output.append('</head>\n') self.output.append('<body>\n') self.output.append('\n'.join(form)) def title(self, level, text): if level == 1: self.output.append('<h1>%s</h1>\n' % text) elif level == 2: self.output.append('<h2>%s</h2>\n' % text) elif level == 3: self.output.append('<h3>%s</h3>\n' % text) else: self.output.append('<p>%s</p>\n' % text) def table(self, name, columns, rows): self.output.append('<table>\n') if name != None: self.output.append('<caption>%s</caption>\n' % name) self.output.append('<thead>\n') self.output.append('<tr>') for col in columns: self.output.append('<th>%s</th>' % col) self.output.append('</tr>\n') self.output.append('</thead>\n') self.output.append('<tbody>\n') for row in rows: self.output.append('<tr>') for value in row: self.output.append('<td>%s</td>' % value) self.output.append('</tr>\n') self.output.append('</tbody>\n') self.output.append('</table>\n') def json(self, name, columns, rows): self.output.append('table: "%s", rows: [ ' % name) for row in rows: self.output.append(' { ') for index in range(len(columns)): if index > 0: self.output.append(', ') self.output.append('"%s": "%s"' % columns[index], row[index]) self.output.append(' } ') self.append(' ] ') def close(self): self.output.append('</body>\n') self.output.append('</html>\n') def stdout(self): for line in self.output: print(line) def file(self, filename): fp = open(filename, 'w') for line in self.output: fp.write(line) fp.close() if __name__ == '__main__': html = output_html() html.table('caption', ['col1', 'col2', 'col3'], [[1, 2, 3], ['a', 'b', 'c']]) html.table('caption2', ['col4', 'col5', 'col6'], [[1, 2, 3], ['a', 'b', 'c']]) html.close() html.file('sample.html')
class Solution: def isAnagram(self, s: str, t: str) -> bool: listS = list(s) listS.sort() listT = list(t) listT.sort() return listS == listT
class Solution: def is_anagram(self, s: str, t: str) -> bool: list_s = list(s) listS.sort() list_t = list(t) listT.sort() return listS == listT
myDict = { "hello": 13, "world": 31, "!" : 71 } # iterating over key-value pairs: for key, value in myDict.items(): print ("key = %s, value = %s" % (key, value)) # iterating over keys: for key in myDict: print ("key = %s" % key) # (is a shortcut for:) for key in myDict.keys(): print ("key = %s" % key) # iterating over values: for value in myDict.values(): print ("value = %s" % value)
my_dict = {'hello': 13, 'world': 31, '!': 71} for (key, value) in myDict.items(): print('key = %s, value = %s' % (key, value)) for key in myDict: print('key = %s' % key) for key in myDict.keys(): print('key = %s' % key) for value in myDict.values(): print('value = %s' % value)
input() e = str(input()).split() j = 1 for i in e: if len(i) == 3: if i[0] == 'O' and i[1] == 'B': print('OBI', end='') elif i[0] == 'U' and i[1] == 'R': print('URI', end='') else: print(i, end='') else: print(i, end='') if j < len(e): print(end=' ') j += 1 print()
input() e = str(input()).split() j = 1 for i in e: if len(i) == 3: if i[0] == 'O' and i[1] == 'B': print('OBI', end='') elif i[0] == 'U' and i[1] == 'R': print('URI', end='') else: print(i, end='') else: print(i, end='') if j < len(e): print(end=' ') j += 1 print()
DURACLOUD_USERNAME = "duracloud_user" DURACLOUD_PASSWORD = "duracloud_password" DURACLOUD_SPACE_ID = "my_streaming_space" DURACLOUD_PROTOCOL = "http" DURACLOUD_HOST = "localhost" DURACLOUD_PORT = "8080"
duracloud_username = 'duracloud_user' duracloud_password = 'duracloud_password' duracloud_space_id = 'my_streaming_space' duracloud_protocol = 'http' duracloud_host = 'localhost' duracloud_port = '8080'
{ 'variables': { 'target_arch%': 'ia32', 'library%': 'static_library', # build chakracore as static library or dll 'component%': 'static_library', # link crt statically or dynamically 'chakra_dir%': 'core', 'icu_args%': '', 'icu_include_path%': '', 'linker_start_group%': '', 'linker_end_group%': '', 'chakra_libs_absolute%': '', 'chakra_disable_jit%':'false', # xplat (non-win32) only 'chakra_config': '<(chakracore_build_config)', # Debug, Release, Test 'chakra_build_flags': ['-v'], 'conditions': [ ['target_arch=="ia32"', { 'Platform': 'x86' }], ['target_arch=="x64"', { 'Platform': 'x64', 'chakra_build_flags+': [ '--arch=amd64' ], }], ['target_arch=="arm"', { 'Platform': 'arm', }], ['target_arch=="arm64"', { 'Platform': 'arm64', 'chakra_build_flags+': [ '--arch=arm64' ], }], ['OS!="win" and v8_enable_i18n_support', { 'icu_include_path': '../<(icu_path)/source/common' }], ['OS=="ios"', { 'chakra_build_flags+': [ '--target=ios' ], }], # xplat (non-win32) only ['chakracore_build_config=="Debug"', { 'chakra_build_flags': [ '-d' ], }, 'chakracore_build_config=="Test"', { 'chakra_build_flags': [ '-t' ], }, { 'chakra_build_flags': [], }], ['chakra_disable_jit=="true"', { 'chakra_build_flags+': [ '--no-jit' ], }], ], }, 'targets': [ { 'target_name': 'chakracore', 'toolsets': ['host'], 'type': 'none', 'conditions': [ ['OS!="win" and v8_enable_i18n_support', { 'dependencies': [ '<(icu_gyp_path):icui18n', '<(icu_gyp_path):icuuc', ], }] ], 'variables': { 'chakracore_header': [ '<(chakra_dir)/lib/Common/ChakraCoreVersion.h', '<(chakra_dir)/lib/Jsrt/ChakraCore.h', '<(chakra_dir)/lib/Jsrt/ChakraCommon.h', '<(chakra_dir)/lib/Jsrt/ChakraCommonWindows.h', '<(chakra_dir)/lib/Jsrt/ChakraDebug.h', ], 'chakracore_win_bin_dir': '<(chakra_dir)/build/vcbuild/bin/<(Platform)_<(chakracore_build_config)', 'xplat_dir': '<(chakra_dir)/out/<(chakra_config)', 'chakra_libs_absolute': '<(PRODUCT_DIR)/../../deps/chakrashim/<(xplat_dir)', 'conditions': [ ['OS=="win"', { 'chakracore_input': '<(chakra_dir)/build/Chakra.Core.sln', 'chakracore_binaries': [ '<(chakracore_win_bin_dir)/chakracore.dll', '<(chakracore_win_bin_dir)/chakracore.pdb', '<(chakracore_win_bin_dir)/chakracore.lib', ] }], ['OS in "linux android"', { 'chakracore_input': '<(chakra_dir)/build.sh', 'chakracore_binaries': [ '<(chakra_libs_absolute)/lib/libChakraCoreStatic.a', ], 'icu_args': [ '--icu=<(icu_include_path)' ], 'linker_start_group': '-Wl,--start-group', 'linker_end_group': [ '-Wl,--end-group', '-lgcc_s', ] }], ['OS=="mac" or OS=="ios"', { 'chakracore_input': '<(chakra_dir)/build.sh', 'chakracore_binaries': [ '<(chakra_libs_absolute)/lib/libChakraCoreStatic.a', ], 'conditions': [ ['v8_enable_i18n_support', { 'icu_args': [ '--icu=<(icu_include_path)' ], },{ 'icu_args': '--no-icu', }], ], 'linker_start_group': '-Wl,-force_load', }] ], }, 'actions': [ { 'action_name': 'build_chakracore', 'inputs': [ '<(chakracore_input)', ], 'outputs': [ '<@(chakracore_binaries)', ], 'conditions': [ ['OS=="win"', { 'action': [ 'msbuild', '/p:Platform=<(Platform)', '/p:Configuration=<(chakracore_build_config)', '/p:RuntimeLib=<(component)', '/p:AdditionalPreprocessorDefinitions=COMPILE_DISABLE_Simdjs=1', '/m', '<@(_inputs)', ], }, { 'action': [ 'bash', '<(chakra_dir)/build.sh', '--without=Simdjs', '--static', '<@(chakracore_parallel_build_flags)', '<@(chakracore_lto_build_flags)', '<@(chakra_build_flags)', '<@(icu_args)', '--libs-only' ], }], ], }, ], 'copies': [ { 'destination': 'include', 'files': [ '<@(chakracore_header)' ], }, { 'destination': '<(PRODUCT_DIR)', 'files': [ '<@(chakracore_binaries)' ], }, ], 'direct_dependent_settings': { 'library_dirs': [ '<(PRODUCT_DIR)' ], 'conditions': [ ['OS=="win"', { }, { 'conditions': [ ['OS=="mac" or OS=="ios"', { 'libraries': [ '-framework CoreFoundation', '-framework Security', ] }] ], 'libraries': [ '-Wl,-undefined,error', '<@(linker_start_group)', '<(chakra_libs_absolute)/lib/libChakraCoreStatic.a ' # keep this single space. '<@(linker_end_group)', # gpy fails to patch with list ], }], ], }, }, # end chakracore ], }
{'variables': {'target_arch%': 'ia32', 'library%': 'static_library', 'component%': 'static_library', 'chakra_dir%': 'core', 'icu_args%': '', 'icu_include_path%': '', 'linker_start_group%': '', 'linker_end_group%': '', 'chakra_libs_absolute%': '', 'chakra_disable_jit%': 'false', 'chakra_config': '<(chakracore_build_config)', 'chakra_build_flags': ['-v'], 'conditions': [['target_arch=="ia32"', {'Platform': 'x86'}], ['target_arch=="x64"', {'Platform': 'x64', 'chakra_build_flags+': ['--arch=amd64']}], ['target_arch=="arm"', {'Platform': 'arm'}], ['target_arch=="arm64"', {'Platform': 'arm64', 'chakra_build_flags+': ['--arch=arm64']}], ['OS!="win" and v8_enable_i18n_support', {'icu_include_path': '../<(icu_path)/source/common'}], ['OS=="ios"', {'chakra_build_flags+': ['--target=ios']}], ['chakracore_build_config=="Debug"', {'chakra_build_flags': ['-d']}, 'chakracore_build_config=="Test"', {'chakra_build_flags': ['-t']}, {'chakra_build_flags': []}], ['chakra_disable_jit=="true"', {'chakra_build_flags+': ['--no-jit']}]]}, 'targets': [{'target_name': 'chakracore', 'toolsets': ['host'], 'type': 'none', 'conditions': [['OS!="win" and v8_enable_i18n_support', {'dependencies': ['<(icu_gyp_path):icui18n', '<(icu_gyp_path):icuuc']}]], 'variables': {'chakracore_header': ['<(chakra_dir)/lib/Common/ChakraCoreVersion.h', '<(chakra_dir)/lib/Jsrt/ChakraCore.h', '<(chakra_dir)/lib/Jsrt/ChakraCommon.h', '<(chakra_dir)/lib/Jsrt/ChakraCommonWindows.h', '<(chakra_dir)/lib/Jsrt/ChakraDebug.h'], 'chakracore_win_bin_dir': '<(chakra_dir)/build/vcbuild/bin/<(Platform)_<(chakracore_build_config)', 'xplat_dir': '<(chakra_dir)/out/<(chakra_config)', 'chakra_libs_absolute': '<(PRODUCT_DIR)/../../deps/chakrashim/<(xplat_dir)', 'conditions': [['OS=="win"', {'chakracore_input': '<(chakra_dir)/build/Chakra.Core.sln', 'chakracore_binaries': ['<(chakracore_win_bin_dir)/chakracore.dll', '<(chakracore_win_bin_dir)/chakracore.pdb', '<(chakracore_win_bin_dir)/chakracore.lib']}], ['OS in "linux android"', {'chakracore_input': '<(chakra_dir)/build.sh', 'chakracore_binaries': ['<(chakra_libs_absolute)/lib/libChakraCoreStatic.a'], 'icu_args': ['--icu=<(icu_include_path)'], 'linker_start_group': '-Wl,--start-group', 'linker_end_group': ['-Wl,--end-group', '-lgcc_s']}], ['OS=="mac" or OS=="ios"', {'chakracore_input': '<(chakra_dir)/build.sh', 'chakracore_binaries': ['<(chakra_libs_absolute)/lib/libChakraCoreStatic.a'], 'conditions': [['v8_enable_i18n_support', {'icu_args': ['--icu=<(icu_include_path)']}, {'icu_args': '--no-icu'}]], 'linker_start_group': '-Wl,-force_load'}]]}, 'actions': [{'action_name': 'build_chakracore', 'inputs': ['<(chakracore_input)'], 'outputs': ['<@(chakracore_binaries)'], 'conditions': [['OS=="win"', {'action': ['msbuild', '/p:Platform=<(Platform)', '/p:Configuration=<(chakracore_build_config)', '/p:RuntimeLib=<(component)', '/p:AdditionalPreprocessorDefinitions=COMPILE_DISABLE_Simdjs=1', '/m', '<@(_inputs)']}, {'action': ['bash', '<(chakra_dir)/build.sh', '--without=Simdjs', '--static', '<@(chakracore_parallel_build_flags)', '<@(chakracore_lto_build_flags)', '<@(chakra_build_flags)', '<@(icu_args)', '--libs-only']}]]}], 'copies': [{'destination': 'include', 'files': ['<@(chakracore_header)']}, {'destination': '<(PRODUCT_DIR)', 'files': ['<@(chakracore_binaries)']}], 'direct_dependent_settings': {'library_dirs': ['<(PRODUCT_DIR)'], 'conditions': [['OS=="win"', {}, {'conditions': [['OS=="mac" or OS=="ios"', {'libraries': ['-framework CoreFoundation', '-framework Security']}]], 'libraries': ['-Wl,-undefined,error', '<@(linker_start_group)', '<(chakra_libs_absolute)/lib/libChakraCoreStatic.a <@(linker_end_group)']}]]}}]}
def som_div_propres(n): sum = 0 for div in range(1, n): if n % div == 0: sum += div return sum def est_presque_parfait(n): return som_div_propres(n) == n - 1 def affiche_presque_parfait(k): for i in range(2**k): if est_presque_parfait(i): print(i) affiche_presque_parfait(10)
def som_div_propres(n): sum = 0 for div in range(1, n): if n % div == 0: sum += div return sum def est_presque_parfait(n): return som_div_propres(n) == n - 1 def affiche_presque_parfait(k): for i in range(2 ** k): if est_presque_parfait(i): print(i) affiche_presque_parfait(10)
summary_features = ['ts', 'event_type', 'SID', 'ECID', 'session', 'game_type', 'game_number', 'episode_number', 'score', 'lines_cleared', 'level', 'criterion', 'crit_game', 'study', 'tetrises_game', 'tetrises_level'] game_state_features = ['curr_zoid', 'next_zoid', 'danger_mode', 'zoid_row', 'zoid_col', 'zoid_rot'] motor_features = ['rots', 'trans', 'path_length', 'min_rots', 'min_trans', 'min_path', 'min_rots_diff', 'min_trans_diff', 'min_path_diff', 'u_drops', 's_drops', 'prop_u_drops', 'initial_lat', 'drop_lat', 'avg_lat'] pile_structure_features = ['all_diffs', 'all_ht', 'all_trans', 'max_diffs', 'max_ht', 'max_ht_diff', 'max_well', 'mean_ht', 'mean_pit_depth', 'min_ht', 'min_ht_diff', 'pits', 'pit_depth', 'pit_rows', 'lumped_pits', 'wells', 'cuml_wells', 'deep_wells', 'full_cells', 'weighted_cells', 'cd_1', 'cd_2', 'cd_3', 'cd_4', 'cd_5', 'cd_6', 'cd_7', 'cd_8', 'cd_9', 'column_9', 'jaggedness', 'pattern_div', 'nine_filled', 'tetris_progress'] zoid_placement_features = ['move_score', 'cleared', 'cuml_cleared', 'eroded_cells', 'cuml_eroded', 'matches', 'd_all_ht', 'd_max_ht', 'd_mean_ht', 'd_pits', 'landing_height', 'col_trans', 'row_trans', 'tetris'] # features analysed in 2019 cog. psy. paper by LIndstedt and Gray) lindstedt_2019_features = ['rots', 'trans', 'min_rots_diff', 'min_trans_diff', 'prop_u_drops', 'initial_lat', 'drop_lat', 'avg_lat', 'cd_1', 'cd_2', 'cd_3', 'cd_4', 'cd_5', 'cd_6', 'cd_7', 'cd_8', 'cd_9', 'col_trans', 'cuml_wells', 'd_max_ht', 'd_pits', 'deep_wells', 'jaggedness', 'landing_height', 'lumped_pits', 'matches', 'max_diffs', 'max_ht', 'max_well', 'mean_ht', 'min_ht', 'pattern_div', 'pit_depth', 'pit_rows', 'pits', 'row_trans', 'weighted_cells', 'wells']
summary_features = ['ts', 'event_type', 'SID', 'ECID', 'session', 'game_type', 'game_number', 'episode_number', 'score', 'lines_cleared', 'level', 'criterion', 'crit_game', 'study', 'tetrises_game', 'tetrises_level'] game_state_features = ['curr_zoid', 'next_zoid', 'danger_mode', 'zoid_row', 'zoid_col', 'zoid_rot'] motor_features = ['rots', 'trans', 'path_length', 'min_rots', 'min_trans', 'min_path', 'min_rots_diff', 'min_trans_diff', 'min_path_diff', 'u_drops', 's_drops', 'prop_u_drops', 'initial_lat', 'drop_lat', 'avg_lat'] pile_structure_features = ['all_diffs', 'all_ht', 'all_trans', 'max_diffs', 'max_ht', 'max_ht_diff', 'max_well', 'mean_ht', 'mean_pit_depth', 'min_ht', 'min_ht_diff', 'pits', 'pit_depth', 'pit_rows', 'lumped_pits', 'wells', 'cuml_wells', 'deep_wells', 'full_cells', 'weighted_cells', 'cd_1', 'cd_2', 'cd_3', 'cd_4', 'cd_5', 'cd_6', 'cd_7', 'cd_8', 'cd_9', 'column_9', 'jaggedness', 'pattern_div', 'nine_filled', 'tetris_progress'] zoid_placement_features = ['move_score', 'cleared', 'cuml_cleared', 'eroded_cells', 'cuml_eroded', 'matches', 'd_all_ht', 'd_max_ht', 'd_mean_ht', 'd_pits', 'landing_height', 'col_trans', 'row_trans', 'tetris'] lindstedt_2019_features = ['rots', 'trans', 'min_rots_diff', 'min_trans_diff', 'prop_u_drops', 'initial_lat', 'drop_lat', 'avg_lat', 'cd_1', 'cd_2', 'cd_3', 'cd_4', 'cd_5', 'cd_6', 'cd_7', 'cd_8', 'cd_9', 'col_trans', 'cuml_wells', 'd_max_ht', 'd_pits', 'deep_wells', 'jaggedness', 'landing_height', 'lumped_pits', 'matches', 'max_diffs', 'max_ht', 'max_well', 'mean_ht', 'min_ht', 'pattern_div', 'pit_depth', 'pit_rows', 'pits', 'row_trans', 'weighted_cells', 'wells']
# Module: Utility # Author: Ajay Arunachalam <ajay.arunachalam08@gmail.com> # License: MIT version_ = "1.10.0" def version(): return version_ def __version__(): return version_
version_ = '1.10.0' def version(): return version_ def __version__(): return version_
# OpenWeatherMap API Key weather_api_key = "Insert API Key" # Google API Key g_key = "Insert API Key"
weather_api_key = 'Insert API Key' g_key = 'Insert API Key'
# This script generates a create table statement # for all of the feature columns of a TSV. # # This table is useful for creating select statements. # # usage # cat mywellformedtsv.tsv | python create_feature_table.py > create_feature_table.sql create_string = """ CREATE TABLE IF NOT EXISTS features ( index INT, feature TEXT ENCODING DICT, name TEXT ENCODING DICT)""" print(create_string)
create_string = '\nCREATE TABLE IF NOT EXISTS features (\n index INT,\n feature TEXT ENCODING DICT,\n name TEXT ENCODING DICT)' print(create_string)
""" Helper functions for the url_breadcrumbs template tag. Configure the template tag to call these helper functions, or functions of your own, by defining URL_BREADCRUMBS_FUNCTIONS in your Django settings and setting the value to a list of one or more callables. Each callable in the URL_BREADCRUMBS_FUNCTIONS setting must accemt three arguments: - context : the template context - request : the current request - path_fragment : the URL path component being converted into a crumb name - is_current_page : True if the path fragment is for the current page, False if it is for any ancestor pages. The callables must return one of the following: - None if they do not wish to set the crumb name - Empty string if the path fragment should not appear in the breadcrumb - String name for the crumb representing the path fragment """ def feincms_page_title(context, request, path_fragment, is_current_page): """ Set the crumb name of the current page to the title of the FeinCMS page in the current context, if any. """ # We only want to set the crumb title for the current page if not is_current_page: return None # If a FeinCMS page with a title is set in the context, use as crumb name if 'feincms_page' in context and hasattr(context['feincms_page'], 'title'): return context['feincms_page'].title # If no titled FeinCMS page is available leave template tag to figure out # an appropriate crumb name return None
""" Helper functions for the url_breadcrumbs template tag. Configure the template tag to call these helper functions, or functions of your own, by defining URL_BREADCRUMBS_FUNCTIONS in your Django settings and setting the value to a list of one or more callables. Each callable in the URL_BREADCRUMBS_FUNCTIONS setting must accemt three arguments: - context : the template context - request : the current request - path_fragment : the URL path component being converted into a crumb name - is_current_page : True if the path fragment is for the current page, False if it is for any ancestor pages. The callables must return one of the following: - None if they do not wish to set the crumb name - Empty string if the path fragment should not appear in the breadcrumb - String name for the crumb representing the path fragment """ def feincms_page_title(context, request, path_fragment, is_current_page): """ Set the crumb name of the current page to the title of the FeinCMS page in the current context, if any. """ if not is_current_page: return None if 'feincms_page' in context and hasattr(context['feincms_page'], 'title'): return context['feincms_page'].title return None
a = '9' * 127 while ('333' in a) or ('999' in a): if ('333' in a): a = a.replace('333','9',1) else: a = a.replace('999','3',1) print(a)
a = '9' * 127 while '333' in a or '999' in a: if '333' in a: a = a.replace('333', '9', 1) else: a = a.replace('999', '3', 1) print(a)
def encode_message(enigma, message): print("Message:", message) message = enigma.encode(message) print("Encoded message:", message)
def encode_message(enigma, message): print('Message:', message) message = enigma.encode(message) print('Encoded message:', message)
letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] for i in range(len(letters)-1): if(i%2!=0): continue; print(letters[i])
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'] for i in range(len(letters) - 1): if i % 2 != 0: continue print(letters[i])
"""2017 - Day 13 Part 1: Packet Scanners. You need to cross a vast firewall. The firewall consists of several layers, each with a security scanner that moves back and forth across the layer. To succeed, you must not be detected by a scanner. By studying the firewall briefly, you are able to record (in your puzzle input) the depth of each layer and the range of the scanning area for the scanner within it, written as depth: range. Each layer has a thickness of exactly 1. A layer at depth 0 begins immediately inside the firewall; a layer at depth 1 would start immediately after that. For example, suppose you've recorded the following: 0: 3 1: 2 4: 4 6: 4 This means that there is a layer immediately inside the firewall (with range 3), a second layer immediately after that (with range 2), a third layer which begins at depth 4 (with range 4), and a fourth layer which begins at depth 6 (also with range 4). Visually, it might look like this: 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] ... [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Within each layer, a security scanner moves back and forth within its range. Each security scanner starts at the top and moves down until it reaches the bottom, then moves up until it reaches the top, and repeats. A security scanner takes one picosecond to move one step. Drawing scanners as S, the first few picoseconds look like this: Picosecond 0: 0 1 2 3 4 5 6 [S] [S] ... ... [S] ... [S] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Picosecond 1: 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] ... [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] Picosecond 2: 0 1 2 3 4 5 6 [ ] [S] ... ... [ ] ... [ ] [ ] [ ] [ ] [ ] [S] [S] [S] [ ] [ ] Picosecond 3: 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] ... [ ] [S] [S] [ ] [ ] [ ] [ ] [ ] [S] [S] Your plan is to hitch a ride on a packet about to move through the firewall. The packet will travel along the top of each layer, and it moves at one layer per picosecond. Each picosecond, the packet moves one layer forward (its first move takes it into layer 0), and then the scanners move one step. If there is a scanner at the top of the layer as your packet enters it, you are caught. (If a scanner moves into the top of its layer while you are there, you are not caught: it doesn't have time to notice you before you leave.) If you were to do this in the configuration above, marking your current position with parentheses, your passage through the firewall would look like this: Initial state: 0 1 2 3 4 5 6 [S] [S] ... ... [S] ... [S] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Picosecond 0: 0 1 2 3 4 5 6 (S) [S] ... ... [S] ... [S] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] 0 1 2 3 4 5 6 ( ) [ ] ... ... [ ] ... [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] Picosecond 1: 0 1 2 3 4 5 6 [ ] ( ) ... ... [ ] ... [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] 0 1 2 3 4 5 6 [ ] (S) ... ... [ ] ... [ ] [ ] [ ] [ ] [ ] [S] [S] [S] [ ] [ ] Picosecond 2: 0 1 2 3 4 5 6 [ ] [S] (.) ... [ ] ... [ ] [ ] [ ] [ ] [ ] [S] [S] [S] [ ] [ ] 0 1 2 3 4 5 6 [ ] [ ] (.) ... [ ] ... [ ] [S] [S] [ ] [ ] [ ] [ ] [ ] [S] [S] Picosecond 3: 0 1 2 3 4 5 6 [ ] [ ] ... (.) [ ] ... [ ] [S] [S] [ ] [ ] [ ] [ ] [ ] [S] [S] 0 1 2 3 4 5 6 [S] [S] ... (.) [ ] ... [ ] [ ] [ ] [ ] [ ] [ ] [S] [S] [ ] [ ] Picosecond 4: 0 1 2 3 4 5 6 [S] [S] ... ... ( ) ... [ ] [ ] [ ] [ ] [ ] [ ] [S] [S] [ ] [ ] 0 1 2 3 4 5 6 [ ] [ ] ... ... ( ) ... [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] Picosecond 5: 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] (.) [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] 0 1 2 3 4 5 6 [ ] [S] ... ... [S] (.) [S] [ ] [ ] [ ] [ ] [S] [ ] [ ] [ ] [ ] Picosecond 6: 0 1 2 3 4 5 6 [ ] [S] ... ... [S] ... (S) [ ] [ ] [ ] [ ] [S] [ ] [ ] [ ] [ ] 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] ... ( ) [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] In this situation, you are caught in layers 0 and 6, because your packet entered the layer when its scanner was at the top when you entered it. You are not caught in layer 1, since the scanner moved into the top of the layer once you were already there. The severity of getting caught on a layer is equal to its depth multiplied by its range. (Ignore layers in which you do not get caught.) The severity of the whole trip is the sum of these values. In the example above, the trip severity is 0*3 + 6*4 = 24. Given the details of the firewall you've recorded, if you leave immediately, what is the severity of your whole trip? """ def solve() -> int: """Solve the puzzle."""
"""2017 - Day 13 Part 1: Packet Scanners. You need to cross a vast firewall. The firewall consists of several layers, each with a security scanner that moves back and forth across the layer. To succeed, you must not be detected by a scanner. By studying the firewall briefly, you are able to record (in your puzzle input) the depth of each layer and the range of the scanning area for the scanner within it, written as depth: range. Each layer has a thickness of exactly 1. A layer at depth 0 begins immediately inside the firewall; a layer at depth 1 would start immediately after that. For example, suppose you've recorded the following: 0: 3 1: 2 4: 4 6: 4 This means that there is a layer immediately inside the firewall (with range 3), a second layer immediately after that (with range 2), a third layer which begins at depth 4 (with range 4), and a fourth layer which begins at depth 6 (also with range 4). Visually, it might look like this: 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] ... [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Within each layer, a security scanner moves back and forth within its range. Each security scanner starts at the top and moves down until it reaches the bottom, then moves up until it reaches the top, and repeats. A security scanner takes one picosecond to move one step. Drawing scanners as S, the first few picoseconds look like this: Picosecond 0: 0 1 2 3 4 5 6 [S] [S] ... ... [S] ... [S] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Picosecond 1: 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] ... [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] Picosecond 2: 0 1 2 3 4 5 6 [ ] [S] ... ... [ ] ... [ ] [ ] [ ] [ ] [ ] [S] [S] [S] [ ] [ ] Picosecond 3: 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] ... [ ] [S] [S] [ ] [ ] [ ] [ ] [ ] [S] [S] Your plan is to hitch a ride on a packet about to move through the firewall. The packet will travel along the top of each layer, and it moves at one layer per picosecond. Each picosecond, the packet moves one layer forward (its first move takes it into layer 0), and then the scanners move one step. If there is a scanner at the top of the layer as your packet enters it, you are caught. (If a scanner moves into the top of its layer while you are there, you are not caught: it doesn't have time to notice you before you leave.) If you were to do this in the configuration above, marking your current position with parentheses, your passage through the firewall would look like this: Initial state: 0 1 2 3 4 5 6 [S] [S] ... ... [S] ... [S] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Picosecond 0: 0 1 2 3 4 5 6 (S) [S] ... ... [S] ... [S] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] 0 1 2 3 4 5 6 ( ) [ ] ... ... [ ] ... [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] Picosecond 1: 0 1 2 3 4 5 6 [ ] ( ) ... ... [ ] ... [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] 0 1 2 3 4 5 6 [ ] (S) ... ... [ ] ... [ ] [ ] [ ] [ ] [ ] [S] [S] [S] [ ] [ ] Picosecond 2: 0 1 2 3 4 5 6 [ ] [S] (.) ... [ ] ... [ ] [ ] [ ] [ ] [ ] [S] [S] [S] [ ] [ ] 0 1 2 3 4 5 6 [ ] [ ] (.) ... [ ] ... [ ] [S] [S] [ ] [ ] [ ] [ ] [ ] [S] [S] Picosecond 3: 0 1 2 3 4 5 6 [ ] [ ] ... (.) [ ] ... [ ] [S] [S] [ ] [ ] [ ] [ ] [ ] [S] [S] 0 1 2 3 4 5 6 [S] [S] ... (.) [ ] ... [ ] [ ] [ ] [ ] [ ] [ ] [S] [S] [ ] [ ] Picosecond 4: 0 1 2 3 4 5 6 [S] [S] ... ... ( ) ... [ ] [ ] [ ] [ ] [ ] [ ] [S] [S] [ ] [ ] 0 1 2 3 4 5 6 [ ] [ ] ... ... ( ) ... [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] Picosecond 5: 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] (.) [ ] [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] 0 1 2 3 4 5 6 [ ] [S] ... ... [S] (.) [S] [ ] [ ] [ ] [ ] [S] [ ] [ ] [ ] [ ] Picosecond 6: 0 1 2 3 4 5 6 [ ] [S] ... ... [S] ... (S) [ ] [ ] [ ] [ ] [S] [ ] [ ] [ ] [ ] 0 1 2 3 4 5 6 [ ] [ ] ... ... [ ] ... ( ) [S] [S] [S] [S] [ ] [ ] [ ] [ ] [ ] In this situation, you are caught in layers 0 and 6, because your packet entered the layer when its scanner was at the top when you entered it. You are not caught in layer 1, since the scanner moved into the top of the layer once you were already there. The severity of getting caught on a layer is equal to its depth multiplied by its range. (Ignore layers in which you do not get caught.) The severity of the whole trip is the sum of these values. In the example above, the trip severity is 0*3 + 6*4 = 24. Given the details of the firewall you've recorded, if you leave immediately, what is the severity of your whole trip? """ def solve() -> int: """Solve the puzzle."""
def test_stickers(app): app.wd.get("http://localhost/litecart") goods = app.wd.find_elements_by_css_selector(".product") for g in goods: stickers = g.find_elements_by_xpath(".//div[contains(@class, 'sticker')]") assert len(stickers) == 1
def test_stickers(app): app.wd.get('http://localhost/litecart') goods = app.wd.find_elements_by_css_selector('.product') for g in goods: stickers = g.find_elements_by_xpath(".//div[contains(@class, 'sticker')]") assert len(stickers) == 1
# -*- coding: utf-8 -*- """ Created on Thu Sep 10 17:04:30 2015 @author: Wasit """ def inc(x=1): yield x+1
""" Created on Thu Sep 10 17:04:30 2015 @author: Wasit """ def inc(x=1): yield (x + 1)
print("*** Dimensions") print(ds.dims) print("\n\n*** Coordinates") print(ds.coords) print("\n\n*** Attributes") print(ds.attrs)
print('*** Dimensions') print(ds.dims) print('\n\n*** Coordinates') print(ds.coords) print('\n\n*** Attributes') print(ds.attrs)
CODE_EXP_TIME = 600 # Expiration time from Codes TOKEN_EXP_TIME = 1000 # Expiration time from Token. CODE_MIN_CHAR = 26 # Miximun number of characteres from Authentication Code CODE_MAX_CHAR = 26 # Maximun number of characteres from Authentication Code CODE_CHARSET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890' # Charset to create the Authentication Code TOKEN_MIN_CHAR = 30 # Miximun number of characteres from Access Token TOKEN_MAX_CHAR = 30 # Miximun number of characteres from Access Token TOKEN_CHARSET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890i.-_' # Charset to create the Access Token REFRESH_MIN_CHAR = 40 # Miximun number of characteres from Refresh Token REFRESH_MAX_CHAR = 40 # Miximun number of characteres from Refresh Token REFRESH_CHARSET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890i.-_' # Charset to create the Refresh Token NONCE_MIN_CHAR = 25 # Miximun number of characteres from Nonce NONCE_MAX_CHAR = 25 # Miximun number of characteres from Nonce NONCE_CHARSET = '1234567890.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-' # Charset to create the Nonce
code_exp_time = 600 token_exp_time = 1000 code_min_char = 26 code_max_char = 26 code_charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890' token_min_char = 30 token_max_char = 30 token_charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890i.-_' refresh_min_char = 40 refresh_max_char = 40 refresh_charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890i.-_' nonce_min_char = 25 nonce_max_char = 25 nonce_charset = '1234567890.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-'
class PodcastError(Exception): """Base class for all podcast exceptions.""" pass class NoResults(PodcastError): """Raised when no results are found.""" pass
class Podcasterror(Exception): """Base class for all podcast exceptions.""" pass class Noresults(PodcastError): """Raised when no results are found.""" pass
class Solution: def numberOfPatterns(self, m: int, n: int) -> int: skip = [[0] * 10 for _ in range(10)] skip[1][3] = skip[3][1] = 2 skip[1][7] = skip[7][1] = 4 skip[3][9] = skip[9][3] = 6 skip[7][9] = skip[9][7] = 8 skip[1][9] = skip[9][1] = skip[2][8] = skip[8][2] = skip[3][7] = skip[7][3] = skip[4][6] = skip[6][4] = 5 visited = [False] * 10 def dfs(curr, remain): if remain == 0: return 1 remain -= 1 count = 0 visited[curr] = True for i in range(1, 10): if not visited[i] and (skip[curr][i] == 0 or visited[skip[curr][i]]): count += dfs(i, remain) visited[curr] = False return count count = 0 for i in range(m, n + 1): count += dfs(1, i - 1) * 4 count += dfs(2, i - 1) * 4 count += dfs(5, i - 1) return count
class Solution: def number_of_patterns(self, m: int, n: int) -> int: skip = [[0] * 10 for _ in range(10)] skip[1][3] = skip[3][1] = 2 skip[1][7] = skip[7][1] = 4 skip[3][9] = skip[9][3] = 6 skip[7][9] = skip[9][7] = 8 skip[1][9] = skip[9][1] = skip[2][8] = skip[8][2] = skip[3][7] = skip[7][3] = skip[4][6] = skip[6][4] = 5 visited = [False] * 10 def dfs(curr, remain): if remain == 0: return 1 remain -= 1 count = 0 visited[curr] = True for i in range(1, 10): if not visited[i] and (skip[curr][i] == 0 or visited[skip[curr][i]]): count += dfs(i, remain) visited[curr] = False return count count = 0 for i in range(m, n + 1): count += dfs(1, i - 1) * 4 count += dfs(2, i - 1) * 4 count += dfs(5, i - 1) return count
class load_api_1: name="hash1" def __init__(self, data=b''): self.data = data def update(self, data=b''): self.data += data def digest(self): return 1516152524156352132515252551426 def hexdigest(self): return hex(self.digest()) class load_api_2: name="hash2" def __init__(self, data=b''): self.data = data def update(self, data=b''): self.data += data def digest(self): return 1234567876543234567897654324562 def hexdigest(self): return hex(self.digest()) class load_api_3: name="hash3" def __init__(self, data=b''): self.data = data def update(self, data=b''): self.data += data def digest(self): return 5232348239489234823948203294829 def hexdigest(self): return hex(self.digest())
class Load_Api_1: name = 'hash1' def __init__(self, data=b''): self.data = data def update(self, data=b''): self.data += data def digest(self): return 1516152524156352132515252551426 def hexdigest(self): return hex(self.digest()) class Load_Api_2: name = 'hash2' def __init__(self, data=b''): self.data = data def update(self, data=b''): self.data += data def digest(self): return 1234567876543234567897654324562 def hexdigest(self): return hex(self.digest()) class Load_Api_3: name = 'hash3' def __init__(self, data=b''): self.data = data def update(self, data=b''): self.data += data def digest(self): return 5232348239489234823948203294829 def hexdigest(self): return hex(self.digest())
# -*- coding: utf-8 -*- """ @Author: Lyzhang @Date: @Description: """
""" @Author: Lyzhang @Date: @Description: """
#!/usr/bin/env python # Copyright (c) 2015: # Istituto Nazionale di Fisica Nucleare (INFN), Italy # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # fgapiserver_queries - Provide queries for fgapiserver tests # __author__ = 'Riccardo Bruno' __copyright__ = '2019' __license__ = 'Apache' __version__ = 'v0.0.0' __maintainer__ = 'Riccardo Bruno' __email__ = 'riccardo.bruno@ct.infn.it' __status__ = 'devel' __update__ = '2019-05-03 17:04:36' fgapiservergui_queries_queries = [ {'id': 0, 'query': 'SELECT VERSION();', 'result': [['test_version', ], ]}, {'id': 1, 'query': ('select uuid, creation, last_access, enabled, cfg_hash ' 'from srv_registry;'), 'result': [['test_uuid1', '1/1/1970', '1/1/1970', 'true', 'test_hash1'], ['test_uuid2', '1/1/1970', '1/1/1970', 'true', 'test_hash2'], ]}, {'id': 2, 'query': ('select id, name, first_name, last_name, institute, mail ' 'from fg_user where name=\'%s\';'), 'result': [[1, 'futuregateway', 'futuregateway', 'futuregateway', 'infn', 'futuregateway@futuregateway'], ]}, ] # fgapiserver tests queries queries = [ {'category': 'fgapiservergui_queries', 'statements': fgapiservergui_queries_queries}]
__author__ = 'Riccardo Bruno' __copyright__ = '2019' __license__ = 'Apache' __version__ = 'v0.0.0' __maintainer__ = 'Riccardo Bruno' __email__ = 'riccardo.bruno@ct.infn.it' __status__ = 'devel' __update__ = '2019-05-03 17:04:36' fgapiservergui_queries_queries = [{'id': 0, 'query': 'SELECT VERSION();', 'result': [['test_version']]}, {'id': 1, 'query': 'select uuid, creation, last_access, enabled, cfg_hash from srv_registry;', 'result': [['test_uuid1', '1/1/1970', '1/1/1970', 'true', 'test_hash1'], ['test_uuid2', '1/1/1970', '1/1/1970', 'true', 'test_hash2']]}, {'id': 2, 'query': "select id, name, first_name, last_name, institute, mail from fg_user where name='%s';", 'result': [[1, 'futuregateway', 'futuregateway', 'futuregateway', 'infn', 'futuregateway@futuregateway']]}] queries = [{'category': 'fgapiservergui_queries', 'statements': fgapiservergui_queries_queries}]
""" An evaluator for problems from the toy-socket suite to demonstrate external evaluation of objectives and constraints in Python """ def evaluate_toy_socket_objectives(suite_name, func, instance, x): y0 = instance * 1e-5 if suite_name == 'toy-socket': if func == 1: # Function 1 is the sum of the absolute x-values return [y0 + sum([abs(xi) for xi in x])] elif func == 2: # Function 2 is the sum of squares of all x-values return [y0 + sum([xi * xi for xi in x])] else: raise ValueError('Suite {} has no function {}'.format(suite_name, func)) elif suite_name == 'toy-socket-biobj': if func == 1 or func == 2: # Objective 1 is the sum of the absolute x-values y1 = y0 + sum([abs(xi) for xi in x]) # Objective 2 is the sum of squares of all x-values y2 = y0 + sum([xi * xi for xi in x]) return [y1, y2] else: raise ValueError('Suite {} has no function {}'.format(suite_name, func)) else: raise ValueError('Suite {} not supported'.format(suite_name)) def evaluate_toy_socket_constraints(suite_name, func, instance, x): y0 = instance * 1e-5 average = y0 + sum([abs(xi) for xi in x]) average = average / len(x) if suite_name == 'toy-socket' and func == 1: # Function 1 of the single-objective suite has two constraints # Violation 1 is the difference between the 0.2 and the average of absolute x-values y1 = (0.2 - average) if average < 0.2 else 0 # Violation 2 is the difference between the average and 0.5 y2 = (average - 0.5) if average > 0.5 else 0 return [y1, y2] elif suite_name == 'toy-socket-biobj' and func == 2: # Function 3 of the bi-objective suite has one constraint # Violation 1 is the difference between the average and 0.5 y1 = (average - 0.5) if average > 0.5 else 0 return [y1] else: raise ValueError('Suite {} function {} does not have constraints'.format(suite_name, func))
""" An evaluator for problems from the toy-socket suite to demonstrate external evaluation of objectives and constraints in Python """ def evaluate_toy_socket_objectives(suite_name, func, instance, x): y0 = instance * 1e-05 if suite_name == 'toy-socket': if func == 1: return [y0 + sum([abs(xi) for xi in x])] elif func == 2: return [y0 + sum([xi * xi for xi in x])] else: raise value_error('Suite {} has no function {}'.format(suite_name, func)) elif suite_name == 'toy-socket-biobj': if func == 1 or func == 2: y1 = y0 + sum([abs(xi) for xi in x]) y2 = y0 + sum([xi * xi for xi in x]) return [y1, y2] else: raise value_error('Suite {} has no function {}'.format(suite_name, func)) else: raise value_error('Suite {} not supported'.format(suite_name)) def evaluate_toy_socket_constraints(suite_name, func, instance, x): y0 = instance * 1e-05 average = y0 + sum([abs(xi) for xi in x]) average = average / len(x) if suite_name == 'toy-socket' and func == 1: y1 = 0.2 - average if average < 0.2 else 0 y2 = average - 0.5 if average > 0.5 else 0 return [y1, y2] elif suite_name == 'toy-socket-biobj' and func == 2: y1 = average - 0.5 if average > 0.5 else 0 return [y1] else: raise value_error('Suite {} function {} does not have constraints'.format(suite_name, func))
# Example variable assignment and comparison x = 12 y = 1 print(x == y) # Test dict label_map = {"anxiety": 0, "depression": 1, "positive_mood": 2, "negative_mood": 3} # Example SQL queries selection_query = ( "SELECT JID, Journal FROM `journal` " "WHERE status = %(unique_timestamp)s " ) # Example SQL queries insertion_query = "INSERT IGNORE INTO `journal_analysis` (JID, AnalysisValue, Flag, Indicators) VALUES (%(JID)s, %(AnalysisValue)s, %(Flag)s, %(Indicators)s) " # Test format a = 1 b = 2 print(a == b)
x = 12 y = 1 print(x == y) label_map = {'anxiety': 0, 'depression': 1, 'positive_mood': 2, 'negative_mood': 3} selection_query = 'SELECT JID, Journal FROM `journal` WHERE status = %(unique_timestamp)s ' insertion_query = 'INSERT IGNORE INTO `journal_analysis` (JID, AnalysisValue, Flag, Indicators) VALUES (%(JID)s, %(AnalysisValue)s, %(Flag)s, %(Indicators)s) ' a = 1 b = 2 print(a == b)
def crevasse_water_depth(x,y,t,thck,topg,*etc): depth = 0.0 if (t >= 10.0): depth = 20.0 if (t >= 20.0): depth = 0.0 return depth
def crevasse_water_depth(x, y, t, thck, topg, *etc): depth = 0.0 if t >= 10.0: depth = 20.0 if t >= 20.0: depth = 0.0 return depth
#----------------------------------------------------------------------------- # Runtime: 44ms # Memory Usage: # Link: #----------------------------------------------------------------------------- class Solution: def permute(self, nums: [int]) -> [[int]]: if len(nums) == 1: return [ nums ] result = [] sub_permutations = self.permute(nums[1:]) for sub_permutation in sub_permutations: for i in range(len(sub_permutation) + 1): result.append(sub_permutation[:i] + [ nums[0] ] + sub_permutation[i:]) return result
class Solution: def permute(self, nums: [int]) -> [[int]]: if len(nums) == 1: return [nums] result = [] sub_permutations = self.permute(nums[1:]) for sub_permutation in sub_permutations: for i in range(len(sub_permutation) + 1): result.append(sub_permutation[:i] + [nums[0]] + sub_permutation[i:]) return result
# Write a method to replace all spaces in a string with '%20'. # You may assume that the string has sufficient space at the end to hold the additional characters, # and that you are given the "true" length of the string. # (Note: if implementing in Java, please use a character array so that you can perform this operation in place.) # Example: # Input: "Mr John Smith ", 13 # Output: "Mr%20John%20Smith" def replace_spaces(str, true_length): return str.replace(' ', '%20') # Testing the function str_1 = 'Mr John Smith ' str1_replaced = replace_spaces(str_1, 13) print(str1_replaced) #Output: Mr%20John%20Smith%20%20%20%20 # The above output is half correct. The correct output should be Mr%20John%20Smith. # The spaces at the end of the string are merely for holding any additional characters. # These additional spaces should not replaced with %20. def replace_string_2(str, true_length): """ Given a string and a true length of the string, replace all spaces with %20. Be careful with the spaces that comes after the last character. Solution: Count the spaces in the string[:true_length] and add 2*count to the true_length... ...when returning the string. """ space_count = 0 for char in str[:true_length]: if char == ' ': space_count += 1 str_2 = str.replace(' ', '%20') return str_2[:true_length + space_count * 2] str_2 = 'Mr John Smith ' str2_replaced = replace_string_2(str_2, 13) print(str2_replaced) #Output: Mr%20John%20Smith str_3 = 'Mr John ' str3_replaced = replace_string_2(str_3, 7) print(str3_replaced) str_4 = 'Mr Set ' str4_replaced = replace_string_2(str_4, 6) print(str4_replaced) #Output: Mr%20John # Great, but can I do better? Perhaps without using the replace method?
def replace_spaces(str, true_length): return str.replace(' ', '%20') str_1 = 'Mr John Smith ' str1_replaced = replace_spaces(str_1, 13) print(str1_replaced) def replace_string_2(str, true_length): """ Given a string and a true length of the string, replace all spaces with %20. Be careful with the spaces that comes after the last character. Solution: Count the spaces in the string[:true_length] and add 2*count to the true_length... ...when returning the string. """ space_count = 0 for char in str[:true_length]: if char == ' ': space_count += 1 str_2 = str.replace(' ', '%20') return str_2[:true_length + space_count * 2] str_2 = 'Mr John Smith ' str2_replaced = replace_string_2(str_2, 13) print(str2_replaced) str_3 = 'Mr John ' str3_replaced = replace_string_2(str_3, 7) print(str3_replaced) str_4 = 'Mr Set ' str4_replaced = replace_string_2(str_4, 6) print(str4_replaced)
class GetChannelError(Exception): """Raises when fetch channel is failed.""" pass class SendMessageToChannelFailed(Exception): """Raises when send message to channel is failed.""" pass class EditChannelFailed(Exception): """Raises when editing the channel is failed.""" pass class DeleteChannelFailed(Exception): """Raises when deleting the channel is failed.""" pass class FetchChannelHistoryFailed(Exception): """Raises when fetching the channel history is failed.""" pass class FetchChannelMessageFailed(Exception): """Raises when fetching the channel message is failed.""" pass class FetchChannelInvitesFailed(Exception): """Raises when fetching the channel invites is failed.""" pass class CreateInviteFailed(Exception): """Raises when creating new invite is failed.""" pass class FetchPinnedMessagesFailed(Exception): """Raises when fetching the pinned messages is failed.""" pass class PinMessageFailed(Exception): """Raises when pinning a message is failed.""" pass class UnpinMessageFailed(Exception): """Raises when unpinning a message is failed.""" pass class EditChannelPermissionsFailed(Exception): """Raises when editing the channel permissions is failed.""" pass class DeleteChannelPermissionsFailed(Exception): """Raises when deleting the channel permissions is failed.""" pass class TriggerTypingFailed(Exception): """Raises when trigger the typing is failed.""" pass class DeleteChannelMessageFailed(Exception): """Raises when deleting a channel message is failed.""" pass class CreateWebhookFailed(Exception): """Raises when creating a webhook is failed.""" pass class FetchWebhooksFailed(Exception): """Raises when fetching the webhooks is failed.""" pass
class Getchannelerror(Exception): """Raises when fetch channel is failed.""" pass class Sendmessagetochannelfailed(Exception): """Raises when send message to channel is failed.""" pass class Editchannelfailed(Exception): """Raises when editing the channel is failed.""" pass class Deletechannelfailed(Exception): """Raises when deleting the channel is failed.""" pass class Fetchchannelhistoryfailed(Exception): """Raises when fetching the channel history is failed.""" pass class Fetchchannelmessagefailed(Exception): """Raises when fetching the channel message is failed.""" pass class Fetchchannelinvitesfailed(Exception): """Raises when fetching the channel invites is failed.""" pass class Createinvitefailed(Exception): """Raises when creating new invite is failed.""" pass class Fetchpinnedmessagesfailed(Exception): """Raises when fetching the pinned messages is failed.""" pass class Pinmessagefailed(Exception): """Raises when pinning a message is failed.""" pass class Unpinmessagefailed(Exception): """Raises when unpinning a message is failed.""" pass class Editchannelpermissionsfailed(Exception): """Raises when editing the channel permissions is failed.""" pass class Deletechannelpermissionsfailed(Exception): """Raises when deleting the channel permissions is failed.""" pass class Triggertypingfailed(Exception): """Raises when trigger the typing is failed.""" pass class Deletechannelmessagefailed(Exception): """Raises when deleting a channel message is failed.""" pass class Createwebhookfailed(Exception): """Raises when creating a webhook is failed.""" pass class Fetchwebhooksfailed(Exception): """Raises when fetching the webhooks is failed.""" pass
MONTHS = ["january", "february", "march", "april", "may", "june","july", "august", "september","october","november", "december"] DAYS = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"] def getDate(): alvin.speak('Today is monday jun 14') def get_date(text): text = text.lower() today = datetime.date.today() if text.count("today") > 0: return today day = -1 day_of_week = -1 month = -1 year = today.year for word in text.split(): if word in MONTHS: month = MONTHS.index(word) + 1 elif word in DAYS: day_of_week = DAYS.index(word) elif word.isdigit(): day = int(word) else: for ext in DAY_EXTENTIONS: found = word.find(ext) if found > 0: try: day = int(word[:found]) except: pass # THE NEW PART STARTS HERE if month < today.month and month != -1: # if the month mentioned is before the current month set the year to the next year = year+1 # This is slighlty different from the video but the correct version if month == -1 and day != -1: # if we didn't find a month, but we have a day if day < today.day: month = today.month + 1 else: month = today.month # if we only found a dta of the week if month == -1 and day == -1 and day_of_week != -1: current_day_of_week = today.weekday() dif = day_of_week - current_day_of_week if dif < 0: dif += 7 if text.count("next") >= 1: dif += 7 return today + datetime.timedelta(dif) if day != -1: return datetime.date(month=month, day=day, year=year)
months = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'] days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'] def get_date(): alvin.speak('Today is monday jun 14') def get_date(text): text = text.lower() today = datetime.date.today() if text.count('today') > 0: return today day = -1 day_of_week = -1 month = -1 year = today.year for word in text.split(): if word in MONTHS: month = MONTHS.index(word) + 1 elif word in DAYS: day_of_week = DAYS.index(word) elif word.isdigit(): day = int(word) else: for ext in DAY_EXTENTIONS: found = word.find(ext) if found > 0: try: day = int(word[:found]) except: pass if month < today.month and month != -1: year = year + 1 if month == -1 and day != -1: if day < today.day: month = today.month + 1 else: month = today.month if month == -1 and day == -1 and (day_of_week != -1): current_day_of_week = today.weekday() dif = day_of_week - current_day_of_week if dif < 0: dif += 7 if text.count('next') >= 1: dif += 7 return today + datetime.timedelta(dif) if day != -1: return datetime.date(month=month, day=day, year=year)
# # Copyright 2019 XEBIALABS # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # def destroyPlan( context ): if delta.operation == "DESTROY": context.addStep(steps.os_script( description = "Upload project for datical [%s]" % (previousDeployed.name), order = 40, script = "datical/datical_upload", freemarker_context = {'deployed': previousDeployed} )) # context.addStep(steps.os_script( # description = "Undeploy datical [%s]" % previousDeployed.name, # order = 43, # script = "datical/datical_undeploy", # freemarker_context={'deployed': previousDeployed} # )) context.addStep(steps.os_script( description = "Remove project [%s] from server" % previousDeployed.name, order = 44, script = "datical/datical_remove", freemarker_context={'deployed': previousDeployed} )) # Optional "Status" steps: if previousDeployed.runStatus : context.addStep(steps.os_script( description = "Status for datical project [%s]" % previousDeployed.name, order = 41, script = "datical/datical_status", freemarker_context={'deployed': previousDeployed} )) # End previousDeployed.runStatus # End if delta.operation == "DESTROY" # End def destroyPlan destroyPlan( context )
def destroy_plan(context): if delta.operation == 'DESTROY': context.addStep(steps.os_script(description='Upload project for datical [%s]' % previousDeployed.name, order=40, script='datical/datical_upload', freemarker_context={'deployed': previousDeployed})) context.addStep(steps.os_script(description='Remove project [%s] from server' % previousDeployed.name, order=44, script='datical/datical_remove', freemarker_context={'deployed': previousDeployed})) if previousDeployed.runStatus: context.addStep(steps.os_script(description='Status for datical project [%s]' % previousDeployed.name, order=41, script='datical/datical_status', freemarker_context={'deployed': previousDeployed})) destroy_plan(context)
num_cases = int(input()) # Graph is small (less than 27 nodes), and we can represent the disjoint set using an array. for c in range(num_cases): forest = [-1] * 26 partition_id = 0 while True: line = input().strip() if line[0] == "*": line = input().strip().split(",") # Report here num_acorns = len(line) - sum(x > 0 for x in forest) num_trees = len(set(forest)) - 1 print("There are {} tree(s) and {} acorn(s).".format(num_trees, num_acorns)) break else: u = ord(line[1]) - ord('A') v = ord(line[3]) - ord('A') if forest[u] == -1: if forest[v] == -1: partition_id += 1 forest[u] = forest[v] = partition_id else: forest[u] = forest[v] else: if forest[v] == -1: forest[v] = forest[u] else: temp = forest[u] for i in range(len(forest)): if forest[i] == temp: forest[i] = forest[v]
num_cases = int(input()) for c in range(num_cases): forest = [-1] * 26 partition_id = 0 while True: line = input().strip() if line[0] == '*': line = input().strip().split(',') num_acorns = len(line) - sum((x > 0 for x in forest)) num_trees = len(set(forest)) - 1 print('There are {} tree(s) and {} acorn(s).'.format(num_trees, num_acorns)) break else: u = ord(line[1]) - ord('A') v = ord(line[3]) - ord('A') if forest[u] == -1: if forest[v] == -1: partition_id += 1 forest[u] = forest[v] = partition_id else: forest[u] = forest[v] elif forest[v] == -1: forest[v] = forest[u] else: temp = forest[u] for i in range(len(forest)): if forest[i] == temp: forest[i] = forest[v]
# r_to_d converts from radius as an integer or float to diameter. def r_to_d ( radius ): if radius < 0: radius = -radius print ( "in function radius= ->{}<-".format(radius) ) diameter = radius * 2 print ( "in function diameter= ->{}<-".format(diameter) ) return (diameter) # Automated Test if __name__ == "__main__": n_err = 0 r = 2 print ( "in test radious={}".format(r) ) x = r_to_d ( r ) if x != 4: n_err = n_err + 1 print ( "Error: Test 1: conversion not working, expected {} got {}".format ( 4, x ) ) r = -2 x = r_to_d ( r ) if x != 4: n_err = n_err + 1 print ( "Error: Test 1: conversion not working, expected {} got {}".format ( 4, x ) ) x = r_to_d ( 0 ) if x != 0: n_err = n_err + 1 print ( "Error: Test 2: conversion not working, expected {} got {}".format ( 0, x ) ) if n_err == 0 : print ( "PASS" ) else: print ( "FAILED" )
def r_to_d(radius): if radius < 0: radius = -radius print('in function radius= ->{}<-'.format(radius)) diameter = radius * 2 print('in function diameter= ->{}<-'.format(diameter)) return diameter if __name__ == '__main__': n_err = 0 r = 2 print('in test radious={}'.format(r)) x = r_to_d(r) if x != 4: n_err = n_err + 1 print('Error: Test 1: conversion not working, expected {} got {}'.format(4, x)) r = -2 x = r_to_d(r) if x != 4: n_err = n_err + 1 print('Error: Test 1: conversion not working, expected {} got {}'.format(4, x)) x = r_to_d(0) if x != 0: n_err = n_err + 1 print('Error: Test 2: conversion not working, expected {} got {}'.format(0, x)) if n_err == 0: print('PASS') else: print('FAILED')
class TransferControl: def __init__(self, req): self.req = req async def check_balance(self): """ :return: """ endpoint = 'balance' return await self.req.get(endpoint=endpoint) async def check_balance_ledger(self): """ :return: """ endpoint = 'balance/ledger' return await self.req.get(endpoint=endpoint) async def resend_otp(self, **kwargs): """ :param kwargs: :return: """ endpoint = "transfer/resend_otp" return await self.req.post(endpoint=endpoint, json=kwargs) async def disable_otp(self): """ :return: """ endpoint = "transfer/disable_otp" return await self.req.post(endpoint=endpoint) async def finalize_disable_otp(self, *, otp): """ :param otp: :return: """ endpoint = "transfer/disable_otp_finalize" return await self.req.post(endpoint=endpoint, json={'otp': otp}) async def enable_otp(self): """ :return: """ endpoint = "transfer/enable_otp" return await self.req.post(endpoint=endpoint)
class Transfercontrol: def __init__(self, req): self.req = req async def check_balance(self): """ :return: """ endpoint = 'balance' return await self.req.get(endpoint=endpoint) async def check_balance_ledger(self): """ :return: """ endpoint = 'balance/ledger' return await self.req.get(endpoint=endpoint) async def resend_otp(self, **kwargs): """ :param kwargs: :return: """ endpoint = 'transfer/resend_otp' return await self.req.post(endpoint=endpoint, json=kwargs) async def disable_otp(self): """ :return: """ endpoint = 'transfer/disable_otp' return await self.req.post(endpoint=endpoint) async def finalize_disable_otp(self, *, otp): """ :param otp: :return: """ endpoint = 'transfer/disable_otp_finalize' return await self.req.post(endpoint=endpoint, json={'otp': otp}) async def enable_otp(self): """ :return: """ endpoint = 'transfer/enable_otp' return await self.req.post(endpoint=endpoint)
set_name(0x80122CDC, "PresOnlyTestRoutine__Fv", SN_NOWARN) set_name(0x80122D04, "FeInitBuffer__Fv", SN_NOWARN) set_name(0x80122D2C, "FeAddEntry__Fii8TXT_JUSTiP7FeTableP5CFont", SN_NOWARN) set_name(0x80122D9C, "FeAddTable__FP11FeMenuTablei", SN_NOWARN) set_name(0x80122E1C, "FeDrawBuffer__Fv", SN_NOWARN) set_name(0x801232AC, "FeNewMenu__FP7FeTable", SN_NOWARN) set_name(0x80123318, "FePrevMenu__Fv", SN_NOWARN) set_name(0x80123390, "FeSelUp__Fi", SN_NOWARN) set_name(0x80123478, "FeSelDown__Fi", SN_NOWARN) set_name(0x8012355C, "FeGetCursor__Fv", SN_NOWARN) set_name(0x80123570, "FeSelect__Fv", SN_NOWARN) set_name(0x801235B4, "FeMainKeyCtrl__FP7CScreen", SN_NOWARN) set_name(0x801237A4, "InitDummyMenu__Fv", SN_NOWARN) set_name(0x801237AC, "InitFrontEnd__FP9FE_CREATE", SN_NOWARN) set_name(0x80123870, "FeInitMainMenu__Fv", SN_NOWARN) set_name(0x801238D0, "FeInitNewGameMenu__Fv", SN_NOWARN) set_name(0x8012391C, "FeNewGameMenuCtrl__Fv", SN_NOWARN) set_name(0x80123A10, "FeInitPlayer1ClassMenu__Fv", SN_NOWARN) set_name(0x80123A60, "FeInitPlayer2ClassMenu__Fv", SN_NOWARN) set_name(0x80123AB0, "FePlayerClassMenuCtrl__Fv", SN_NOWARN) set_name(0x80123AF8, "FeDrawChrClass__Fv", SN_NOWARN) set_name(0x80123F94, "FeInitNewP1NameMenu__Fv", SN_NOWARN) set_name(0x80123FE4, "FeInitNewP2NameMenu__Fv", SN_NOWARN) set_name(0x80124034, "FeNewNameMenuCtrl__Fv", SN_NOWARN) set_name(0x801244BC, "FeCopyPlayerInfoForReturn__Fv", SN_NOWARN) set_name(0x80124560, "FeEnterGame__Fv", SN_NOWARN) set_name(0x80124588, "FeInitLoadMemcardSelect__Fv", SN_NOWARN) set_name(0x801245D0, "FeInitLoadChar1Menu__Fv", SN_NOWARN) set_name(0x8012463C, "FeInitLoadChar2Menu__Fv", SN_NOWARN) set_name(0x801246A8, "FeInitDifficultyMenu__Fv", SN_NOWARN) set_name(0x801246EC, "FeDifficultyMenuCtrl__Fv", SN_NOWARN) set_name(0x801247A4, "FeInitBackgroundMenu__Fv", SN_NOWARN) set_name(0x801247EC, "FeInitBook1Menu__Fv", SN_NOWARN) set_name(0x80124838, "FeInitBook2Menu__Fv", SN_NOWARN) set_name(0x80124884, "FeBackBookMenuCtrl__Fv", SN_NOWARN) set_name(0x80124A80, "PlayDemo__Fv", SN_NOWARN) set_name(0x80124A94, "FrontEndTask__FP4TASK", SN_NOWARN) set_name(0x80124E64, "McMainCharKeyCtrl__Fv", SN_NOWARN) set_name(0x80125128, "___6Dialog", SN_NOWARN) set_name(0x80125150, "__6Dialog", SN_NOWARN) set_name(0x801251AC, "___7CScreen", SN_NOWARN) set_name(0x80125D24, "InitCredits__Fv", SN_NOWARN) set_name(0x80125D60, "PrintCredits__FPciiiii", SN_NOWARN) set_name(0x80126580, "DrawCreditsTitle__Fiiii", SN_NOWARN) set_name(0x80126650, "DrawCreditsSubTitle__Fiiii", SN_NOWARN) set_name(0x80126720, "DoCredits__Fv", SN_NOWARN) set_name(0x8012697C, "PRIM_GetPrim__FPP8POLY_FT4", SN_NOWARN) set_name(0x801269F8, "GetCharHeight__5CFontc", SN_NOWARN) set_name(0x80126A30, "GetCharWidth__5CFontc", SN_NOWARN) set_name(0x80126A88, "___7CScreen_addr_80126A88", SN_NOWARN) set_name(0x80126AA8, "GetFr__7TextDati", SN_NOWARN) set_name(0x8012B0A0, "endian_swap__FPUci", SN_NOWARN) set_name(0x8012B0D4, "to_sjis__Fc", SN_NOWARN) set_name(0x8012B154, "to_ascii__FUs", SN_NOWARN) set_name(0x8012B1D4, "ascii_to_sjis__FPcPUs", SN_NOWARN) set_name(0x8012B268, "sjis_to_ascii__FPUsPc", SN_NOWARN) set_name(0x8012B2F0, "test_hw_event__Fv", SN_NOWARN) set_name(0x8012B380, "read_card_directory__Fi", SN_NOWARN) set_name(0x8012B5B8, "test_card_format__Fi", SN_NOWARN) set_name(0x8012B648, "checksum_data__FPci", SN_NOWARN) set_name(0x8012B684, "delete_card_file__Fii", SN_NOWARN) set_name(0x8012B77C, "read_card_file__FiiiPc", SN_NOWARN) set_name(0x8012B934, "format_card__Fi", SN_NOWARN) set_name(0x8012B9E4, "write_card_file__FiiPcT2PUcPUsiT4", SN_NOWARN) set_name(0x8012BD2C, "new_card__Fi", SN_NOWARN) set_name(0x8012BDA8, "service_card__Fi", SN_NOWARN) set_name(0x801480E4, "GetFileNumber__FiPc", SN_NOWARN) set_name(0x801481A4, "DoSaveCharacter__FPc", SN_NOWARN) set_name(0x8014826C, "DoSaveGame__Fv", SN_NOWARN) set_name(0x8014832C, "DoLoadGame__Fv", SN_NOWARN) set_name(0x8014836C, "DoFrontEndLoadCharacter__FPc", SN_NOWARN) set_name(0x801483C8, "McInitLoadCard1Menu__Fv", SN_NOWARN) set_name(0x80148414, "McInitLoadCard2Menu__Fv", SN_NOWARN) set_name(0x80148460, "ChooseCardLoad__Fv", SN_NOWARN) set_name(0x801484FC, "McInitLoadCharMenu__Fv", SN_NOWARN) set_name(0x80148524, "McInitLoadGameMenu__Fv", SN_NOWARN) set_name(0x80148598, "McMainKeyCtrl__Fv", SN_NOWARN) set_name(0x80148744, "ShowAlertBox__Fv", SN_NOWARN) set_name(0x80148880, "GetLoadStatusMessage__FPc", SN_NOWARN) set_name(0x80148918, "GetSaveStatusMessage__FiPc", SN_NOWARN) set_name(0x80148A00, "SetRGB__6DialogUcUcUc", SN_NOWARN) set_name(0x80148A20, "SetBack__6Dialogi", SN_NOWARN) set_name(0x80148A28, "SetBorder__6Dialogi", SN_NOWARN) set_name(0x80148A30, "___6Dialog_addr_80148A30", SN_NOWARN) set_name(0x80148A58, "__6Dialog_addr_80148A58", SN_NOWARN) set_name(0x80148AB4, "ILoad__Fv", SN_NOWARN) set_name(0x80148B08, "LoadQuest__Fi", SN_NOWARN) set_name(0x80148BD0, "ISave__Fi", SN_NOWARN) set_name(0x80148C30, "SaveQuest__Fi", SN_NOWARN) set_name(0x80148CFC, "PSX_GM_SaveGame__FiPcT1", SN_NOWARN) set_name(0x80148F44, "PSX_GM_LoadGame__FUcii", SN_NOWARN) set_name(0x801491C0, "PSX_CH_LoadGame__Fii", SN_NOWARN) set_name(0x80149304, "PSX_CH_SaveGame__FiPcT1", SN_NOWARN) set_name(0x8012526C, "CreditsTitle", SN_NOWARN) set_name(0x80125414, "CreditsSubTitle", SN_NOWARN) set_name(0x80125888, "CreditsText", SN_NOWARN) set_name(0x80125990, "CreditsTable", SN_NOWARN) set_name(0x80126BA0, "card_dir", SN_NOWARN) set_name(0x801270A0, "card_header", SN_NOWARN) set_name(0x80126AC4, "sjis_table", SN_NOWARN) set_name(0x8012C0E4, "save_buffer", SN_NOWARN) set_name(0x8012C04C, "McLoadGameMenu", SN_NOWARN) set_name(0x8012C02C, "CharFileList", SN_NOWARN) set_name(0x8012C040, "Classes", SN_NOWARN) set_name(0x8012C068, "McLoadCharMenu", SN_NOWARN) set_name(0x8012C084, "McLoadCard1Menu", SN_NOWARN) set_name(0x8012C0A0, "McLoadCard2Menu", SN_NOWARN)
set_name(2148674780, 'PresOnlyTestRoutine__Fv', SN_NOWARN) set_name(2148674820, 'FeInitBuffer__Fv', SN_NOWARN) set_name(2148674860, 'FeAddEntry__Fii8TXT_JUSTiP7FeTableP5CFont', SN_NOWARN) set_name(2148674972, 'FeAddTable__FP11FeMenuTablei', SN_NOWARN) set_name(2148675100, 'FeDrawBuffer__Fv', SN_NOWARN) set_name(2148676268, 'FeNewMenu__FP7FeTable', SN_NOWARN) set_name(2148676376, 'FePrevMenu__Fv', SN_NOWARN) set_name(2148676496, 'FeSelUp__Fi', SN_NOWARN) set_name(2148676728, 'FeSelDown__Fi', SN_NOWARN) set_name(2148676956, 'FeGetCursor__Fv', SN_NOWARN) set_name(2148676976, 'FeSelect__Fv', SN_NOWARN) set_name(2148677044, 'FeMainKeyCtrl__FP7CScreen', SN_NOWARN) set_name(2148677540, 'InitDummyMenu__Fv', SN_NOWARN) set_name(2148677548, 'InitFrontEnd__FP9FE_CREATE', SN_NOWARN) set_name(2148677744, 'FeInitMainMenu__Fv', SN_NOWARN) set_name(2148677840, 'FeInitNewGameMenu__Fv', SN_NOWARN) set_name(2148677916, 'FeNewGameMenuCtrl__Fv', SN_NOWARN) set_name(2148678160, 'FeInitPlayer1ClassMenu__Fv', SN_NOWARN) set_name(2148678240, 'FeInitPlayer2ClassMenu__Fv', SN_NOWARN) set_name(2148678320, 'FePlayerClassMenuCtrl__Fv', SN_NOWARN) set_name(2148678392, 'FeDrawChrClass__Fv', SN_NOWARN) set_name(2148679572, 'FeInitNewP1NameMenu__Fv', SN_NOWARN) set_name(2148679652, 'FeInitNewP2NameMenu__Fv', SN_NOWARN) set_name(2148679732, 'FeNewNameMenuCtrl__Fv', SN_NOWARN) set_name(2148680892, 'FeCopyPlayerInfoForReturn__Fv', SN_NOWARN) set_name(2148681056, 'FeEnterGame__Fv', SN_NOWARN) set_name(2148681096, 'FeInitLoadMemcardSelect__Fv', SN_NOWARN) set_name(2148681168, 'FeInitLoadChar1Menu__Fv', SN_NOWARN) set_name(2148681276, 'FeInitLoadChar2Menu__Fv', SN_NOWARN) set_name(2148681384, 'FeInitDifficultyMenu__Fv', SN_NOWARN) set_name(2148681452, 'FeDifficultyMenuCtrl__Fv', SN_NOWARN) set_name(2148681636, 'FeInitBackgroundMenu__Fv', SN_NOWARN) set_name(2148681708, 'FeInitBook1Menu__Fv', SN_NOWARN) set_name(2148681784, 'FeInitBook2Menu__Fv', SN_NOWARN) set_name(2148681860, 'FeBackBookMenuCtrl__Fv', SN_NOWARN) set_name(2148682368, 'PlayDemo__Fv', SN_NOWARN) set_name(2148682388, 'FrontEndTask__FP4TASK', SN_NOWARN) set_name(2148683364, 'McMainCharKeyCtrl__Fv', SN_NOWARN) set_name(2148684072, '___6Dialog', SN_NOWARN) set_name(2148684112, '__6Dialog', SN_NOWARN) set_name(2148684204, '___7CScreen', SN_NOWARN) set_name(2148687140, 'InitCredits__Fv', SN_NOWARN) set_name(2148687200, 'PrintCredits__FPciiiii', SN_NOWARN) set_name(2148689280, 'DrawCreditsTitle__Fiiii', SN_NOWARN) set_name(2148689488, 'DrawCreditsSubTitle__Fiiii', SN_NOWARN) set_name(2148689696, 'DoCredits__Fv', SN_NOWARN) set_name(2148690300, 'PRIM_GetPrim__FPP8POLY_FT4', SN_NOWARN) set_name(2148690424, 'GetCharHeight__5CFontc', SN_NOWARN) set_name(2148690480, 'GetCharWidth__5CFontc', SN_NOWARN) set_name(2148690568, '___7CScreen_addr_80126A88', SN_NOWARN) set_name(2148690600, 'GetFr__7TextDati', SN_NOWARN) set_name(2148708512, 'endian_swap__FPUci', SN_NOWARN) set_name(2148708564, 'to_sjis__Fc', SN_NOWARN) set_name(2148708692, 'to_ascii__FUs', SN_NOWARN) set_name(2148708820, 'ascii_to_sjis__FPcPUs', SN_NOWARN) set_name(2148708968, 'sjis_to_ascii__FPUsPc', SN_NOWARN) set_name(2148709104, 'test_hw_event__Fv', SN_NOWARN) set_name(2148709248, 'read_card_directory__Fi', SN_NOWARN) set_name(2148709816, 'test_card_format__Fi', SN_NOWARN) set_name(2148709960, 'checksum_data__FPci', SN_NOWARN) set_name(2148710020, 'delete_card_file__Fii', SN_NOWARN) set_name(2148710268, 'read_card_file__FiiiPc', SN_NOWARN) set_name(2148710708, 'format_card__Fi', SN_NOWARN) set_name(2148710884, 'write_card_file__FiiPcT2PUcPUsiT4', SN_NOWARN) set_name(2148711724, 'new_card__Fi', SN_NOWARN) set_name(2148711848, 'service_card__Fi', SN_NOWARN) set_name(2148827364, 'GetFileNumber__FiPc', SN_NOWARN) set_name(2148827556, 'DoSaveCharacter__FPc', SN_NOWARN) set_name(2148827756, 'DoSaveGame__Fv', SN_NOWARN) set_name(2148827948, 'DoLoadGame__Fv', SN_NOWARN) set_name(2148828012, 'DoFrontEndLoadCharacter__FPc', SN_NOWARN) set_name(2148828104, 'McInitLoadCard1Menu__Fv', SN_NOWARN) set_name(2148828180, 'McInitLoadCard2Menu__Fv', SN_NOWARN) set_name(2148828256, 'ChooseCardLoad__Fv', SN_NOWARN) set_name(2148828412, 'McInitLoadCharMenu__Fv', SN_NOWARN) set_name(2148828452, 'McInitLoadGameMenu__Fv', SN_NOWARN) set_name(2148828568, 'McMainKeyCtrl__Fv', SN_NOWARN) set_name(2148828996, 'ShowAlertBox__Fv', SN_NOWARN) set_name(2148829312, 'GetLoadStatusMessage__FPc', SN_NOWARN) set_name(2148829464, 'GetSaveStatusMessage__FiPc', SN_NOWARN) set_name(2148829696, 'SetRGB__6DialogUcUcUc', SN_NOWARN) set_name(2148829728, 'SetBack__6Dialogi', SN_NOWARN) set_name(2148829736, 'SetBorder__6Dialogi', SN_NOWARN) set_name(2148829744, '___6Dialog_addr_80148A30', SN_NOWARN) set_name(2148829784, '__6Dialog_addr_80148A58', SN_NOWARN) set_name(2148829876, 'ILoad__Fv', SN_NOWARN) set_name(2148829960, 'LoadQuest__Fi', SN_NOWARN) set_name(2148830160, 'ISave__Fi', SN_NOWARN) set_name(2148830256, 'SaveQuest__Fi', SN_NOWARN) set_name(2148830460, 'PSX_GM_SaveGame__FiPcT1', SN_NOWARN) set_name(2148831044, 'PSX_GM_LoadGame__FUcii', SN_NOWARN) set_name(2148831680, 'PSX_CH_LoadGame__Fii', SN_NOWARN) set_name(2148832004, 'PSX_CH_SaveGame__FiPcT1', SN_NOWARN) set_name(2148684396, 'CreditsTitle', SN_NOWARN) set_name(2148684820, 'CreditsSubTitle', SN_NOWARN) set_name(2148685960, 'CreditsText', SN_NOWARN) set_name(2148686224, 'CreditsTable', SN_NOWARN) set_name(2148690848, 'card_dir', SN_NOWARN) set_name(2148692128, 'card_header', SN_NOWARN) set_name(2148690628, 'sjis_table', SN_NOWARN) set_name(2148712676, 'save_buffer', SN_NOWARN) set_name(2148712524, 'McLoadGameMenu', SN_NOWARN) set_name(2148712492, 'CharFileList', SN_NOWARN) set_name(2148712512, 'Classes', SN_NOWARN) set_name(2148712552, 'McLoadCharMenu', SN_NOWARN) set_name(2148712580, 'McLoadCard1Menu', SN_NOWARN) set_name(2148712608, 'McLoadCard2Menu', SN_NOWARN)
cards = {} for card in input().split(): cards.setdefault(card[0], 0) cards[card[0]] += 1 print(max(cards.values()))
cards = {} for card in input().split(): cards.setdefault(card[0], 0) cards[card[0]] += 1 print(max(cards.values()))
def change_var(a): global x x=a return x def change_var2(b): x=b return x change_var(3) print(x)
def change_var(a): global x x = a return x def change_var2(b): x = b return x change_var(3) print(x)