content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
expected_output = { "license_usage": { "network-premier_5G": { "entitlement": "ESR_P_5G_P", "count": "1", "status": "IN USE" }, "dna-premier_5G": { "entitlement": "DNA_P_5G_P", "count": "1", "status": "IN USE" }, "hseck9": { "entitlement": "DNA_HSEC", "count": "1", "status": "IN USE" } } }
expected_output = {'license_usage': {'network-premier_5G': {'entitlement': 'ESR_P_5G_P', 'count': '1', 'status': 'IN USE'}, 'dna-premier_5G': {'entitlement': 'DNA_P_5G_P', 'count': '1', 'status': 'IN USE'}, 'hseck9': {'entitlement': 'DNA_HSEC', 'count': '1', 'status': 'IN USE'}}}
class Node: def __init__(self, label, before, after): self.label = label self.before = before self.after = after def __repr__(self): return f'{self.label}' # Build the circular list line = input() first = Node(int(line[0]), None, None) last = first for label in line[1:]: node = Node(int(label), last, None) last.after = node last = node first.before = last last.after = first cur = first for i in range(100): # Splice the next three cups splice_start = cur.after splice_end = splice_start.after.after cur.after = splice_end.after splice_end.after.before = cur # Find the destination cup dest = cur.after goal = cur.label - 1 if cur.label != 1 else 9 while dest.label != goal: dest = dest.after if dest.label != goal and dest == cur: goal = goal - 1 if goal != 1 else 9 # Place the three cups after the destination dest.after.before = splice_end splice_end.after = dest.after dest.after = splice_start splice_start.before = dest # Advance to the next cup cur = cur.after # Display the list after cup one cup_one = first while cup_one.label != 1: cup_one = cup_one.after cur = cup_one.after while cur != cup_one: print(cur.label, end='') cur = cur.after print()
class Node: def __init__(self, label, before, after): self.label = label self.before = before self.after = after def __repr__(self): return f'{self.label}' line = input() first = node(int(line[0]), None, None) last = first for label in line[1:]: node = node(int(label), last, None) last.after = node last = node first.before = last last.after = first cur = first for i in range(100): splice_start = cur.after splice_end = splice_start.after.after cur.after = splice_end.after splice_end.after.before = cur dest = cur.after goal = cur.label - 1 if cur.label != 1 else 9 while dest.label != goal: dest = dest.after if dest.label != goal and dest == cur: goal = goal - 1 if goal != 1 else 9 dest.after.before = splice_end splice_end.after = dest.after dest.after = splice_start splice_start.before = dest cur = cur.after cup_one = first while cup_one.label != 1: cup_one = cup_one.after cur = cup_one.after while cur != cup_one: print(cur.label, end='') cur = cur.after print()
class HJ(): def __init__(self, val, n,i): self.g = [0.0]*n self.g[i] = 1.0 self.f = val class Parametrization(): def __init__(self): self.parameters = {} self.variable_indices = {} def add_parameter(self, key, value, is_variable=False): if key in self.parameters: raise RuntimeError("Key {} already exists!".format(key)) self.parameters[key] = (value, is_variable) def __getitem__(self, key): return self.parameters[key][0] def initialize(self): for key, val in self.parameters.items(): if val[1]: self.variable_indices[key] = len(self.variable_indices) for key, i in self.variable_indices.items(): self.parameters[key] = HJ(self.parameters[key][0],len(self.variable_indices), i) def get_variables(self): x = [] for key in self.variable_indices.keys(): x.append(self.parameters[key]) return x def update(self, x): for key, i in self.variable_indices.items(): self.parameters[key] = x[i] parameters = Parametrization() parameters.add_parameter("l1", 10.0) parameters.add_parameter("l2", 10.0) parameters.add_parameter("h1", 1.0, is_variable=True) parameters.add_parameter("h2", 2.0, is_variable=True) parameters.add_parameter("b1", 0.5) parameters.add_parameter("b2", 0.5) parameters.initialize() print(parameters.parameters) x = parameters.get_variables() print(x) new_x = ["new1", "new2"] parameters.update(new_x) print(parameters.parameters) x = parameters.get_variables() print(x)
class Hj: def __init__(self, val, n, i): self.g = [0.0] * n self.g[i] = 1.0 self.f = val class Parametrization: def __init__(self): self.parameters = {} self.variable_indices = {} def add_parameter(self, key, value, is_variable=False): if key in self.parameters: raise runtime_error('Key {} already exists!'.format(key)) self.parameters[key] = (value, is_variable) def __getitem__(self, key): return self.parameters[key][0] def initialize(self): for (key, val) in self.parameters.items(): if val[1]: self.variable_indices[key] = len(self.variable_indices) for (key, i) in self.variable_indices.items(): self.parameters[key] = hj(self.parameters[key][0], len(self.variable_indices), i) def get_variables(self): x = [] for key in self.variable_indices.keys(): x.append(self.parameters[key]) return x def update(self, x): for (key, i) in self.variable_indices.items(): self.parameters[key] = x[i] parameters = parametrization() parameters.add_parameter('l1', 10.0) parameters.add_parameter('l2', 10.0) parameters.add_parameter('h1', 1.0, is_variable=True) parameters.add_parameter('h2', 2.0, is_variable=True) parameters.add_parameter('b1', 0.5) parameters.add_parameter('b2', 0.5) parameters.initialize() print(parameters.parameters) x = parameters.get_variables() print(x) new_x = ['new1', 'new2'] parameters.update(new_x) print(parameters.parameters) x = parameters.get_variables() print(x)
{ 'targets': [{ 'target_name': 'yatm', 'sources': [ 'src/yatm.cc', 'src/image.cc', 'src/transform.cc' ], 'include_dirs': [ '<!(node -e "require(\'nan\')")', 'deps/include/glib-2.0', 'deps/include', 'deps/lib/glib-2.0/include' ], 'libraries': [ '../deps/lib/libvips-cpp.so', '../deps/lib/libvips.so', '-Wl,-rpath=\'$${ORIGIN}/../../deps/lib\'' ], 'defines': [ '_GLIBCXX_USE_CXX11_ABI=0' ], 'cflags_cc': [ '-fexceptions', '-std=c++0x', '-Wall', '-O3' ] }] }
{'targets': [{'target_name': 'yatm', 'sources': ['src/yatm.cc', 'src/image.cc', 'src/transform.cc'], 'include_dirs': ['<!(node -e "require(\'nan\')")', 'deps/include/glib-2.0', 'deps/include', 'deps/lib/glib-2.0/include'], 'libraries': ['../deps/lib/libvips-cpp.so', '../deps/lib/libvips.so', "-Wl,-rpath='$${ORIGIN}/../../deps/lib'"], 'defines': ['_GLIBCXX_USE_CXX11_ABI=0'], 'cflags_cc': ['-fexceptions', '-std=c++0x', '-Wall', '-O3']}]}
#!/usr/bin/python3 # -*- coding: utf-8 -*- def str0(n): return str(n) if n > 9 else '0%s' % n def strh(t): return '%s:%s' % ( str0(int(t/60)), str0(t % 60) )
def str0(n): return str(n) if n > 9 else '0%s' % n def strh(t): return '%s:%s' % (str0(int(t / 60)), str0(t % 60))
class Address: def __init__(self): self.city: str = "" self.street: str = "" self.telephone: str = "" @classmethod def from_xml(cls, node): address = cls() address.init_from_xml(node) return address def init_from_xml(self, node): self.city = node.attrib['city'] self.street = node.attrib['street'] self.telephone = node.attrib['telephone']
class Address: def __init__(self): self.city: str = '' self.street: str = '' self.telephone: str = '' @classmethod def from_xml(cls, node): address = cls() address.init_from_xml(node) return address def init_from_xml(self, node): self.city = node.attrib['city'] self.street = node.attrib['street'] self.telephone = node.attrib['telephone']
def acronym_buster(message): acronyms = { 'CTA': 'call to action', 'EOD': 'the end of the day', 'IAM': 'in a meeting', 'KPI': 'key performance indicators', 'NRN': 'no reply necessary', 'OOO': 'out of office', 'SWOT': 'strengths, weaknesses, opportunities and threats', 'TBD': 'to be decided', 'WAH': 'work at home' } result = [] for sentence in message.split('.'): tmp = [] for i, word in enumerate(sentence.split()): if word.isupper() and len(word) > 2: try: word = acronyms[word] except KeyError: return ('{} is an acronym. I do not like acronyms. Please' ' remove them from your email.'.format(word)) tmp.append(word[0].upper() + word[1:] if i == 0 else word) result.append(' '.join(tmp)) return '. '.join(result).rstrip()
def acronym_buster(message): acronyms = {'CTA': 'call to action', 'EOD': 'the end of the day', 'IAM': 'in a meeting', 'KPI': 'key performance indicators', 'NRN': 'no reply necessary', 'OOO': 'out of office', 'SWOT': 'strengths, weaknesses, opportunities and threats', 'TBD': 'to be decided', 'WAH': 'work at home'} result = [] for sentence in message.split('.'): tmp = [] for (i, word) in enumerate(sentence.split()): if word.isupper() and len(word) > 2: try: word = acronyms[word] except KeyError: return '{} is an acronym. I do not like acronyms. Please remove them from your email.'.format(word) tmp.append(word[0].upper() + word[1:] if i == 0 else word) result.append(' '.join(tmp)) return '. '.join(result).rstrip()
class Parser: def __new__(self, args: str = None): r = {} if args is None: r['status'] = None else: r['status'] = True if len(args.split(' ')) == 1: r = { 0: args } else: r = {0: args.split(' ')[0]} for each in args.split(' '): if each.startswith('-'): r[each] = args.split(' ')\ [list(args.split(' ')).index(each)+1] return r
class Parser: def __new__(self, args: str=None): r = {} if args is None: r['status'] = None else: r['status'] = True if len(args.split(' ')) == 1: r = {0: args} else: r = {0: args.split(' ')[0]} for each in args.split(' '): if each.startswith('-'): r[each] = args.split(' ')[list(args.split(' ')).index(each) + 1] return r
{ "targets": [ { "target_name": "diskfree", "sources": [ "./src/disk-gyp.cpp", "./src/disk.cpp" ], }, ], }
{'targets': [{'target_name': 'diskfree', 'sources': ['./src/disk-gyp.cpp', './src/disk.cpp']}]}
rolls = input().split() sum_dict = dict() max = 0 for i in range(1, int(rolls[0]) + 1): for j in range(1, int(rolls[1]) + 1): sum = i + j if sum not in sum_dict: sum_dict[sum] = 0 else: sum_dict[sum] += 1 if sum_dict[sum] > max: max = sum_dict[sum] for i in sum_dict: if sum_dict[i] == max: print(i)
rolls = input().split() sum_dict = dict() max = 0 for i in range(1, int(rolls[0]) + 1): for j in range(1, int(rolls[1]) + 1): sum = i + j if sum not in sum_dict: sum_dict[sum] = 0 else: sum_dict[sum] += 1 if sum_dict[sum] > max: max = sum_dict[sum] for i in sum_dict: if sum_dict[i] == max: print(i)
VOTING_MAJORITY = 0.51 CONSENSUS_TYPES = { 0: '0: kick', 1: '1: make admin', 2: '2: revoke admin', 3: '3: add longevity', 4: '4: remove longevity' }
voting_majority = 0.51 consensus_types = {0: '0: kick', 1: '1: make admin', 2: '2: revoke admin', 3: '3: add longevity', 4: '4: remove longevity'}
class TrayError(Exception): def __init__(self, value, caller=None): self.value = value self.caller = caller def __str__(self): return repr(self.value) class NoObservationError(TrayError): pass class NoUndoError(TrayError): pass class PropertyNotFoundError(TrayError): pass class PropertyNotFoundError(TrayError): pass class DoubleEmptyRecordError(TrayError): pass class NoZipFileError(TrayError): pass class BurnInBackgroundError(TrayError): pass
class Trayerror(Exception): def __init__(self, value, caller=None): self.value = value self.caller = caller def __str__(self): return repr(self.value) class Noobservationerror(TrayError): pass class Noundoerror(TrayError): pass class Propertynotfounderror(TrayError): pass class Propertynotfounderror(TrayError): pass class Doubleemptyrecorderror(TrayError): pass class Nozipfileerror(TrayError): pass class Burninbackgrounderror(TrayError): pass
def knapsack(items, maxweight): N = len(items) W = maxweight bestvalues = [[0] * (W + 1) for i in range(N + 1)] for i, (value, weight) in enumerate(items): for capacity in range(maxweight + 1): if weight > capacity: bestvalues[i + 1][capacity] = bestvalues[i][capacity] else: candidate1 = bestvalues[i][capacity] candidate2 = bestvalues[i][capacity - weight] + value bestvalues[i + 1][capacity] = max(candidate1, candidate2) reconstruction = [] j = maxweight for i in range(N, 0, -1): if bestvalues[i][j] != bestvalues[i - 1][j]: reconstruction.append(i - 1) j -= items[i - 1][1] reconstruction.reverse() return bestvalues[len(items)][maxweight], reconstruction
def knapsack(items, maxweight): n = len(items) w = maxweight bestvalues = [[0] * (W + 1) for i in range(N + 1)] for (i, (value, weight)) in enumerate(items): for capacity in range(maxweight + 1): if weight > capacity: bestvalues[i + 1][capacity] = bestvalues[i][capacity] else: candidate1 = bestvalues[i][capacity] candidate2 = bestvalues[i][capacity - weight] + value bestvalues[i + 1][capacity] = max(candidate1, candidate2) reconstruction = [] j = maxweight for i in range(N, 0, -1): if bestvalues[i][j] != bestvalues[i - 1][j]: reconstruction.append(i - 1) j -= items[i - 1][1] reconstruction.reverse() return (bestvalues[len(items)][maxweight], reconstruction)
def getHeadWord(): return { "Work": ["(Work|WORK)", "(WORK EXPERIENCE|Experience(s?)|EXPERIENCE(S?))", "(History|HISTORY)", "(Projects|PROJECTS)"], "Education": ["(Education|EDUCATION)", "(Qualifications|QUALIFICATIONS)"], "Skills": [ "(Skills|SKILLS)", "(Proficiency|PROFICIENCY)", "LANGUAGE", "CERTIFICATION", "(Skill ?(sets?)|SKILLSET)" ] }
def get_head_word(): return {'Work': ['(Work|WORK)', '(WORK EXPERIENCE|Experience(s?)|EXPERIENCE(S?))', '(History|HISTORY)', '(Projects|PROJECTS)'], 'Education': ['(Education|EDUCATION)', '(Qualifications|QUALIFICATIONS)'], 'Skills': ['(Skills|SKILLS)', '(Proficiency|PROFICIENCY)', 'LANGUAGE', 'CERTIFICATION', '(Skill ?(sets?)|SKILLSET)']}
# # PySNMP MIB module ASCEND-SDSL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-SDSL-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:29: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) # wanTypeSdsl, = mibBuilder.importSymbols("ASCEND-WAN-MIB", "wanTypeSdsl") ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") IpAddress, NotificationType, TimeTicks, Counter64, ModuleIdentity, Gauge32, Integer32, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Counter32, ObjectIdentity, MibIdentifier, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "NotificationType", "TimeTicks", "Counter64", "ModuleIdentity", "Gauge32", "Integer32", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Counter32", "ObjectIdentity", "MibIdentifier", "Bits") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") sdslLineStatusTable = MibTable((1, 3, 6, 1, 4, 1, 529, 4, 8, 1), ) if mibBuilder.loadTexts: sdslLineStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineStatusTable.setDescription('SDSL status parameters.') sdslLineStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1), ).setIndexNames((0, "ASCEND-SDSL-MIB", "sdslStatusIfEntryIndex")) if mibBuilder.loadTexts: sdslLineStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineStatusEntry.setDescription('An interface status entry containing objects to describe the interface.') sdslStatusIfEntryIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusIfEntryIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusIfEntryIndex.setDescription('Interface group index assigned to this port.') sdslStatusShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusShelfIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusShelfIndex.setDescription("TNT's SDSL modules Shelf ID.") sdslStatusSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusSlotIndex.setDescription("TNT's SDSL modules Slot ID.") sdslStatusLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusLineIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusLineIndex.setDescription('SDSL modules line ID.') sdslStatusUnitType = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("coe", 2), ("cpe", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusUnitType.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusUnitType.setDescription('Unit type defines if the unit is operating either as a Central Office Equipment (COE) or Customer Premiss equipment (CPE).') sdslStatusLineState = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("other", 1), ("configure", 2), ("deactivate", 3), ("deactive-lost", 4), ("start-up", 5), ("pend-port-up", 6), ("up", 7), ("pend-deactivate", 8), ("out-of-service", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusLineState.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusLineState.setDescription('Interface state describes the current ports operating state. States are: Config, Pend Down, Up, Down, Start-up, or N/A.') sdslStatusUpRate = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2320000, 1568000, 1552000, 1536000, 1168000, 1152000, 1040000, 784000, 768000, 528000, 416000, 400000, 384000, 272000, 208000, 192000, 160000, 144000))).clone(namedValues=NamedValues(("m2320000", 2320000), ("m1568000", 1568000), ("m1552000", 1552000), ("m1536000", 1536000), ("m1168000", 1168000), ("m1152000", 1152000), ("m1040000", 1040000), ("k784000", 784000), ("k768000", 768000), ("k528000", 528000), ("k416000", 416000), ("k400000", 400000), ("k384000", 384000), ("k272000", 272000), ("k208000", 208000), ("k192000", 192000), ("k160000", 160000), ("k144000", 144000)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sdslStatusUpRate.setStatus('deprecated') if mibBuilder.loadTexts: sdslStatusUpRate.setDescription('The current up stream (cpe to coe) rate The object dslStatusUpRate is deprecated. To set line rate the object sdslConfigLineRate of the new sdslLineConfigTable should be used.') sdslStatusDownRate = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2320000, 1568000, 1552000, 1536000, 1168000, 1152000, 1040000, 784000, 768000, 528000, 416000, 400000, 384000, 272000, 208000, 192000, 160000, 144000))).clone(namedValues=NamedValues(("m2320000", 2320000), ("m1568000", 1568000), ("m1552000", 1552000), ("m1536000", 1536000), ("m1168000", 1168000), ("m1152000", 1152000), ("m1040000", 1040000), ("k784000", 784000), ("k768000", 768000), ("k528000", 528000), ("k416000", 416000), ("k400000", 400000), ("k384000", 384000), ("k272000", 272000), ("k208000", 208000), ("k192000", 192000), ("k160000", 160000), ("k144000", 144000)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sdslStatusDownRate.setStatus('deprecated') if mibBuilder.loadTexts: sdslStatusDownRate.setDescription('The current down stream (coe to cpe) rate The object dslStatusDownRate is deprecated. To set line rate the object sdslConfigLineRate of the new sdslLineConfigTable should be used.') sdslStatusVendorId = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusVendorId.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusVendorId.setDescription('Vendor identification.') sdslStatusMajorFirmWareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusMajorFirmWareVer.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusMajorFirmWareVer.setDescription('Major firmware version.') sdslStatusMinorFirmWareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusMinorFirmWareVer.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusMinorFirmWareVer.setDescription('Minor firmware version.') sdslStatusHardWareVer = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 12), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusHardWareVer.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusHardWareVer.setDescription('Hardware version.') sdslStatusLineRate = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2320000, 1568000, 1552000, 1536000, 1168000, 1152000, 1040000, 784000, 768000, 528000, 416000, 400000, 384000, 272000, 208000, 192000, 160000, 144000))).clone(namedValues=NamedValues(("unknown", 1), ("m2320000", 2320000), ("m1568000", 1568000), ("m1552000", 1552000), ("m1536000", 1536000), ("m1168000", 1168000), ("m1152000", 1152000), ("m1040000", 1040000), ("k784000", 784000), ("k768000", 768000), ("k528000", 528000), ("k416000", 416000), ("k400000", 400000), ("k384000", 384000), ("k272000", 272000), ("k208000", 208000), ("k192000", 192000), ("k160000", 160000), ("k144000", 144000)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatusLineRate.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusLineRate.setDescription('The current line rate') sdslLineStatisticTable = MibTable((1, 3, 6, 1, 4, 1, 529, 4, 8, 2), ) if mibBuilder.loadTexts: sdslLineStatisticTable.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineStatisticTable.setDescription('SDSL statistical parameters.') sdslLineStatisticEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1), ).setIndexNames((0, "ASCEND-SDSL-MIB", "sdslStatIfEntryIndex")) if mibBuilder.loadTexts: sdslLineStatisticEntry.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineStatisticEntry.setDescription('An interface statistical entry containing objects to describe the interface.') sdslStatIfEntryIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatIfEntryIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatIfEntryIndex.setDescription('The interface groups interface index is used to index into this table.') sdslStatShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatShelfIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatShelfIndex.setDescription('SDSL modules Shelf ID.') sdslStatSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatSlotIndex.setDescription('SDSL modules Slot ID.') sdslStatLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatLineIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatLineIndex.setDescription('SDSL modules interface ID.') sdslStatConnUpDays = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatConnUpDays.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatConnUpDays.setDescription('Connection up day count.') sdslStatConnUpHours = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatConnUpHours.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatConnUpHours.setDescription('Connection Up 24 hour count.') sdslStatConnUpMinutes = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatConnUpMinutes.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatConnUpMinutes.setDescription('Connection up minute count.') sdslStatRxSignalPresent = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatRxSignalPresent.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatRxSignalPresent.setDescription('Receive signal present detection.') sdslStatLineQualityDb = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatLineQualityDb.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatLineQualityDb.setDescription('Lines noise margin. Reliable data will transfer with a reading of -5db or greater.') sdslStatUpDwnCntr = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 10), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatUpDwnCntr.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatUpDwnCntr.setDescription('Line Up Down counter value displays the number of times the interface transitions from a down to up state.') sdslStatLineSelfTest = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(4, 1, 2, 3))).clone(namedValues=NamedValues(("other", 4), ("selfTestFailed", 1), ("localLoopBackFailed", 2), ("passed", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatLineSelfTest.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatLineSelfTest.setDescription('Line hardware self test results (Passed or Failed).') sdslStatBertTimer = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("one-minute", 1), ("two-minutes", 2), ("three-minutes", 3), ("four-minutes", 4), ("five-minutes", 5), ("ten-minutes", 6), ("fifteen-minutes", 7), ("twenty-minutes", 8), ("thirty-minutes", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sdslStatBertTimer.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatBertTimer.setDescription('BER test duration configuration. The BER test lasts for the duration of this timer.') sdslStatBertEna = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sdslStatBertEna.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatBertEna.setDescription('Enable/disable of the BER test. If nodes are connected, then the BER test is ran between the units. If this node is not connected to a remote node, then the interface is placed into analog loopback and the BER test is started.') sdslStatBertState = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("stopped", 2), ("start-up", 3), ("waiting", 4), ("pend-active", 5), ("bert-los", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatBertState.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatBertState.setDescription("BER test states. When this node is not connected to another node, the test is disabled. When two nodes are connected then the BER test waits for the other node to start it's BER test and then starts collecting bit errors immediately.") sdslStatBertErrorCounter = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 15), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslStatBertErrorCounter.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatBertErrorCounter.setDescription('BER test bit error counter.') sdslLineConfigTable = MibTable((1, 3, 6, 1, 4, 1, 529, 4, 8, 3), ) if mibBuilder.loadTexts: sdslLineConfigTable.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineConfigTable.setDescription('SDSL status parameters.') sdslLineConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1), ).setIndexNames((0, "ASCEND-SDSL-MIB", "sdslConfigIfEntryIndex")) if mibBuilder.loadTexts: sdslLineConfigEntry.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineConfigEntry.setDescription('An interface status entry containing objects to describe the interface.') sdslConfigIfEntryIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslConfigIfEntryIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigIfEntryIndex.setDescription('Interface group index assigned to this port.') sdslConfigShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslConfigShelfIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigShelfIndex.setDescription("TNT's SDSL modules Shelf ID.") sdslConfigSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslConfigSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigSlotIndex.setDescription("TNT's SDSL modules Slot ID.") sdslConfigLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: sdslConfigLineIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigLineIndex.setDescription('SDSL modules line ID.') sdslConfigLineRate = MibTableColumn((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2320000, 1568000, 1552000, 1536000, 1168000, 1152000, 1040000, 784000, 768000, 528000, 416000, 400000, 384000, 272000, 208000, 192000, 160000, 144000))).clone(namedValues=NamedValues(("unknown", 1), ("m2320000", 2320000), ("m1568000", 1568000), ("m1552000", 1552000), ("m1536000", 1536000), ("m1168000", 1168000), ("m1152000", 1152000), ("m1040000", 1040000), ("k784000", 784000), ("k768000", 768000), ("k528000", 528000), ("k416000", 416000), ("k400000", 400000), ("k384000", 384000), ("k272000", 272000), ("k208000", 208000), ("k192000", 192000), ("k160000", 160000), ("k144000", 144000)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: sdslConfigLineRate.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigLineRate.setDescription('The current line rate') mibBuilder.exportSymbols("ASCEND-SDSL-MIB", sdslConfigShelfIndex=sdslConfigShelfIndex, sdslStatusMajorFirmWareVer=sdslStatusMajorFirmWareVer, sdslStatIfEntryIndex=sdslStatIfEntryIndex, sdslStatRxSignalPresent=sdslStatRxSignalPresent, sdslStatusUnitType=sdslStatusUnitType, sdslLineStatusEntry=sdslLineStatusEntry, sdslStatusHardWareVer=sdslStatusHardWareVer, sdslStatConnUpHours=sdslStatConnUpHours, sdslConfigSlotIndex=sdslConfigSlotIndex, sdslStatBertErrorCounter=sdslStatBertErrorCounter, sdslStatusUpRate=sdslStatusUpRate, sdslStatusShelfIndex=sdslStatusShelfIndex, sdslStatConnUpMinutes=sdslStatConnUpMinutes, sdslStatusLineState=sdslStatusLineState, sdslStatusMinorFirmWareVer=sdslStatusMinorFirmWareVer, sdslStatusVendorId=sdslStatusVendorId, sdslStatLineQualityDb=sdslStatLineQualityDb, sdslStatLineSelfTest=sdslStatLineSelfTest, sdslStatConnUpDays=sdslStatConnUpDays, sdslLineStatisticEntry=sdslLineStatisticEntry, sdslStatBertEna=sdslStatBertEna, sdslStatBertState=sdslStatBertState, sdslStatShelfIndex=sdslStatShelfIndex, sdslConfigLineRate=sdslConfigLineRate, sdslStatBertTimer=sdslStatBertTimer, sdslLineConfigTable=sdslLineConfigTable, sdslStatusLineIndex=sdslStatusLineIndex, sdslLineStatusTable=sdslLineStatusTable, sdslConfigIfEntryIndex=sdslConfigIfEntryIndex, sdslStatusIfEntryIndex=sdslStatusIfEntryIndex, sdslConfigLineIndex=sdslConfigLineIndex, sdslStatusDownRate=sdslStatusDownRate, sdslStatLineIndex=sdslStatLineIndex, sdslLineConfigEntry=sdslLineConfigEntry, sdslStatusSlotIndex=sdslStatusSlotIndex, sdslStatUpDwnCntr=sdslStatUpDwnCntr, sdslLineStatisticTable=sdslLineStatisticTable, sdslStatSlotIndex=sdslStatSlotIndex, sdslStatusLineRate=sdslStatusLineRate)
(wan_type_sdsl,) = mibBuilder.importSymbols('ASCEND-WAN-MIB', 'wanTypeSdsl') (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_union, value_size_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (ip_address, notification_type, time_ticks, counter64, module_identity, gauge32, integer32, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, counter32, object_identity, mib_identifier, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'NotificationType', 'TimeTicks', 'Counter64', 'ModuleIdentity', 'Gauge32', 'Integer32', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Counter32', 'ObjectIdentity', 'MibIdentifier', 'Bits') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') sdsl_line_status_table = mib_table((1, 3, 6, 1, 4, 1, 529, 4, 8, 1)) if mibBuilder.loadTexts: sdslLineStatusTable.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineStatusTable.setDescription('SDSL status parameters.') sdsl_line_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1)).setIndexNames((0, 'ASCEND-SDSL-MIB', 'sdslStatusIfEntryIndex')) if mibBuilder.loadTexts: sdslLineStatusEntry.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineStatusEntry.setDescription('An interface status entry containing objects to describe the interface.') sdsl_status_if_entry_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusIfEntryIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusIfEntryIndex.setDescription('Interface group index assigned to this port.') sdsl_status_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusShelfIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusShelfIndex.setDescription("TNT's SDSL modules Shelf ID.") sdsl_status_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusSlotIndex.setDescription("TNT's SDSL modules Slot ID.") sdsl_status_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusLineIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusLineIndex.setDescription('SDSL modules line ID.') sdsl_status_unit_type = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('coe', 2), ('cpe', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusUnitType.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusUnitType.setDescription('Unit type defines if the unit is operating either as a Central Office Equipment (COE) or Customer Premiss equipment (CPE).') sdsl_status_line_state = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('other', 1), ('configure', 2), ('deactivate', 3), ('deactive-lost', 4), ('start-up', 5), ('pend-port-up', 6), ('up', 7), ('pend-deactivate', 8), ('out-of-service', 9)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusLineState.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusLineState.setDescription('Interface state describes the current ports operating state. States are: Config, Pend Down, Up, Down, Start-up, or N/A.') sdsl_status_up_rate = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2320000, 1568000, 1552000, 1536000, 1168000, 1152000, 1040000, 784000, 768000, 528000, 416000, 400000, 384000, 272000, 208000, 192000, 160000, 144000))).clone(namedValues=named_values(('m2320000', 2320000), ('m1568000', 1568000), ('m1552000', 1552000), ('m1536000', 1536000), ('m1168000', 1168000), ('m1152000', 1152000), ('m1040000', 1040000), ('k784000', 784000), ('k768000', 768000), ('k528000', 528000), ('k416000', 416000), ('k400000', 400000), ('k384000', 384000), ('k272000', 272000), ('k208000', 208000), ('k192000', 192000), ('k160000', 160000), ('k144000', 144000)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sdslStatusUpRate.setStatus('deprecated') if mibBuilder.loadTexts: sdslStatusUpRate.setDescription('The current up stream (cpe to coe) rate The object dslStatusUpRate is deprecated. To set line rate the object sdslConfigLineRate of the new sdslLineConfigTable should be used.') sdsl_status_down_rate = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2320000, 1568000, 1552000, 1536000, 1168000, 1152000, 1040000, 784000, 768000, 528000, 416000, 400000, 384000, 272000, 208000, 192000, 160000, 144000))).clone(namedValues=named_values(('m2320000', 2320000), ('m1568000', 1568000), ('m1552000', 1552000), ('m1536000', 1536000), ('m1168000', 1168000), ('m1152000', 1152000), ('m1040000', 1040000), ('k784000', 784000), ('k768000', 768000), ('k528000', 528000), ('k416000', 416000), ('k400000', 400000), ('k384000', 384000), ('k272000', 272000), ('k208000', 208000), ('k192000', 192000), ('k160000', 160000), ('k144000', 144000)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sdslStatusDownRate.setStatus('deprecated') if mibBuilder.loadTexts: sdslStatusDownRate.setDescription('The current down stream (coe to cpe) rate The object dslStatusDownRate is deprecated. To set line rate the object sdslConfigLineRate of the new sdslLineConfigTable should be used.') sdsl_status_vendor_id = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusVendorId.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusVendorId.setDescription('Vendor identification.') sdsl_status_major_firm_ware_ver = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusMajorFirmWareVer.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusMajorFirmWareVer.setDescription('Major firmware version.') sdsl_status_minor_firm_ware_ver = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusMinorFirmWareVer.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusMinorFirmWareVer.setDescription('Minor firmware version.') sdsl_status_hard_ware_ver = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 12), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusHardWareVer.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusHardWareVer.setDescription('Hardware version.') sdsl_status_line_rate = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2320000, 1568000, 1552000, 1536000, 1168000, 1152000, 1040000, 784000, 768000, 528000, 416000, 400000, 384000, 272000, 208000, 192000, 160000, 144000))).clone(namedValues=named_values(('unknown', 1), ('m2320000', 2320000), ('m1568000', 1568000), ('m1552000', 1552000), ('m1536000', 1536000), ('m1168000', 1168000), ('m1152000', 1152000), ('m1040000', 1040000), ('k784000', 784000), ('k768000', 768000), ('k528000', 528000), ('k416000', 416000), ('k400000', 400000), ('k384000', 384000), ('k272000', 272000), ('k208000', 208000), ('k192000', 192000), ('k160000', 160000), ('k144000', 144000)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatusLineRate.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatusLineRate.setDescription('The current line rate') sdsl_line_statistic_table = mib_table((1, 3, 6, 1, 4, 1, 529, 4, 8, 2)) if mibBuilder.loadTexts: sdslLineStatisticTable.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineStatisticTable.setDescription('SDSL statistical parameters.') sdsl_line_statistic_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1)).setIndexNames((0, 'ASCEND-SDSL-MIB', 'sdslStatIfEntryIndex')) if mibBuilder.loadTexts: sdslLineStatisticEntry.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineStatisticEntry.setDescription('An interface statistical entry containing objects to describe the interface.') sdsl_stat_if_entry_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatIfEntryIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatIfEntryIndex.setDescription('The interface groups interface index is used to index into this table.') sdsl_stat_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatShelfIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatShelfIndex.setDescription('SDSL modules Shelf ID.') sdsl_stat_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatSlotIndex.setDescription('SDSL modules Slot ID.') sdsl_stat_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatLineIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatLineIndex.setDescription('SDSL modules interface ID.') sdsl_stat_conn_up_days = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatConnUpDays.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatConnUpDays.setDescription('Connection up day count.') sdsl_stat_conn_up_hours = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatConnUpHours.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatConnUpHours.setDescription('Connection Up 24 hour count.') sdsl_stat_conn_up_minutes = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatConnUpMinutes.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatConnUpMinutes.setDescription('Connection up minute count.') sdsl_stat_rx_signal_present = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatRxSignalPresent.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatRxSignalPresent.setDescription('Receive signal present detection.') sdsl_stat_line_quality_db = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatLineQualityDb.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatLineQualityDb.setDescription('Lines noise margin. Reliable data will transfer with a reading of -5db or greater.') sdsl_stat_up_dwn_cntr = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 10), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatUpDwnCntr.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatUpDwnCntr.setDescription('Line Up Down counter value displays the number of times the interface transitions from a down to up state.') sdsl_stat_line_self_test = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(4, 1, 2, 3))).clone(namedValues=named_values(('other', 4), ('selfTestFailed', 1), ('localLoopBackFailed', 2), ('passed', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatLineSelfTest.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatLineSelfTest.setDescription('Line hardware self test results (Passed or Failed).') sdsl_stat_bert_timer = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('one-minute', 1), ('two-minutes', 2), ('three-minutes', 3), ('four-minutes', 4), ('five-minutes', 5), ('ten-minutes', 6), ('fifteen-minutes', 7), ('twenty-minutes', 8), ('thirty-minutes', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sdslStatBertTimer.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatBertTimer.setDescription('BER test duration configuration. The BER test lasts for the duration of this timer.') sdsl_stat_bert_ena = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sdslStatBertEna.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatBertEna.setDescription('Enable/disable of the BER test. If nodes are connected, then the BER test is ran between the units. If this node is not connected to a remote node, then the interface is placed into analog loopback and the BER test is started.') sdsl_stat_bert_state = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('stopped', 2), ('start-up', 3), ('waiting', 4), ('pend-active', 5), ('bert-los', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatBertState.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatBertState.setDescription("BER test states. When this node is not connected to another node, the test is disabled. When two nodes are connected then the BER test waits for the other node to start it's BER test and then starts collecting bit errors immediately.") sdsl_stat_bert_error_counter = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 2, 1, 15), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslStatBertErrorCounter.setStatus('mandatory') if mibBuilder.loadTexts: sdslStatBertErrorCounter.setDescription('BER test bit error counter.') sdsl_line_config_table = mib_table((1, 3, 6, 1, 4, 1, 529, 4, 8, 3)) if mibBuilder.loadTexts: sdslLineConfigTable.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineConfigTable.setDescription('SDSL status parameters.') sdsl_line_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1)).setIndexNames((0, 'ASCEND-SDSL-MIB', 'sdslConfigIfEntryIndex')) if mibBuilder.loadTexts: sdslLineConfigEntry.setStatus('mandatory') if mibBuilder.loadTexts: sdslLineConfigEntry.setDescription('An interface status entry containing objects to describe the interface.') sdsl_config_if_entry_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslConfigIfEntryIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigIfEntryIndex.setDescription('Interface group index assigned to this port.') sdsl_config_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslConfigShelfIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigShelfIndex.setDescription("TNT's SDSL modules Shelf ID.") sdsl_config_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslConfigSlotIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigSlotIndex.setDescription("TNT's SDSL modules Slot ID.") sdsl_config_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: sdslConfigLineIndex.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigLineIndex.setDescription('SDSL modules line ID.') sdsl_config_line_rate = mib_table_column((1, 3, 6, 1, 4, 1, 529, 4, 8, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2320000, 1568000, 1552000, 1536000, 1168000, 1152000, 1040000, 784000, 768000, 528000, 416000, 400000, 384000, 272000, 208000, 192000, 160000, 144000))).clone(namedValues=named_values(('unknown', 1), ('m2320000', 2320000), ('m1568000', 1568000), ('m1552000', 1552000), ('m1536000', 1536000), ('m1168000', 1168000), ('m1152000', 1152000), ('m1040000', 1040000), ('k784000', 784000), ('k768000', 768000), ('k528000', 528000), ('k416000', 416000), ('k400000', 400000), ('k384000', 384000), ('k272000', 272000), ('k208000', 208000), ('k192000', 192000), ('k160000', 160000), ('k144000', 144000)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: sdslConfigLineRate.setStatus('mandatory') if mibBuilder.loadTexts: sdslConfigLineRate.setDescription('The current line rate') mibBuilder.exportSymbols('ASCEND-SDSL-MIB', sdslConfigShelfIndex=sdslConfigShelfIndex, sdslStatusMajorFirmWareVer=sdslStatusMajorFirmWareVer, sdslStatIfEntryIndex=sdslStatIfEntryIndex, sdslStatRxSignalPresent=sdslStatRxSignalPresent, sdslStatusUnitType=sdslStatusUnitType, sdslLineStatusEntry=sdslLineStatusEntry, sdslStatusHardWareVer=sdslStatusHardWareVer, sdslStatConnUpHours=sdslStatConnUpHours, sdslConfigSlotIndex=sdslConfigSlotIndex, sdslStatBertErrorCounter=sdslStatBertErrorCounter, sdslStatusUpRate=sdslStatusUpRate, sdslStatusShelfIndex=sdslStatusShelfIndex, sdslStatConnUpMinutes=sdslStatConnUpMinutes, sdslStatusLineState=sdslStatusLineState, sdslStatusMinorFirmWareVer=sdslStatusMinorFirmWareVer, sdslStatusVendorId=sdslStatusVendorId, sdslStatLineQualityDb=sdslStatLineQualityDb, sdslStatLineSelfTest=sdslStatLineSelfTest, sdslStatConnUpDays=sdslStatConnUpDays, sdslLineStatisticEntry=sdslLineStatisticEntry, sdslStatBertEna=sdslStatBertEna, sdslStatBertState=sdslStatBertState, sdslStatShelfIndex=sdslStatShelfIndex, sdslConfigLineRate=sdslConfigLineRate, sdslStatBertTimer=sdslStatBertTimer, sdslLineConfigTable=sdslLineConfigTable, sdslStatusLineIndex=sdslStatusLineIndex, sdslLineStatusTable=sdslLineStatusTable, sdslConfigIfEntryIndex=sdslConfigIfEntryIndex, sdslStatusIfEntryIndex=sdslStatusIfEntryIndex, sdslConfigLineIndex=sdslConfigLineIndex, sdslStatusDownRate=sdslStatusDownRate, sdslStatLineIndex=sdslStatLineIndex, sdslLineConfigEntry=sdslLineConfigEntry, sdslStatusSlotIndex=sdslStatusSlotIndex, sdslStatUpDwnCntr=sdslStatUpDwnCntr, sdslLineStatisticTable=sdslLineStatisticTable, sdslStatSlotIndex=sdslStatSlotIndex, sdslStatusLineRate=sdslStatusLineRate)
''' Kattis - powereggs Actually a hard problem, but we read the explanation in CP4 to get this super efficient solution that runs in O(32*k). Time: O(32k), Space: O(1)''' def f(d, k): # number of floors we can determine with d drops and k eggs ans = 0 cur = 1 # d choose i for i in range(1, k+1): cur = cur * (d-i+1) // i # d choose i = d choose (i-1) * (d-i+1) / i ans += cur return ans num_tc = int(input()) for _ in range(num_tc): n, k = map(int, input().split()) for i in range(1, 33): if (f(i, k) >= n): # able to do these many floors print(i) break else: print("Impossible")
""" Kattis - powereggs Actually a hard problem, but we read the explanation in CP4 to get this super efficient solution that runs in O(32*k). Time: O(32k), Space: O(1)""" def f(d, k): ans = 0 cur = 1 for i in range(1, k + 1): cur = cur * (d - i + 1) // i ans += cur return ans num_tc = int(input()) for _ in range(num_tc): (n, k) = map(int, input().split()) for i in range(1, 33): if f(i, k) >= n: print(i) break else: print('Impossible')
class DictPopper: def __init__(self, d): self.__d = d self.__data = dict() def __iter__(self): def f(pair): return self.__d.pop(*pair) return map(f, self.__data.items()) def add(self, key, default = None, spreadKey = False): for k in (key, ) if not spreadKey else key: self.__data[k] = default return self
class Dictpopper: def __init__(self, d): self.__d = d self.__data = dict() def __iter__(self): def f(pair): return self.__d.pop(*pair) return map(f, self.__data.items()) def add(self, key, default=None, spreadKey=False): for k in (key,) if not spreadKey else key: self.__data[k] = default return self
def isPalindrome(x: int): if str(x) == str(x)[::-1]: return True else: return False print(isPalindrome(20011002))
def is_palindrome(x: int): if str(x) == str(x)[::-1]: return True else: return False print(is_palindrome(20011002))
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) """
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)
# # 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
# # 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)
# 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])}
#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)
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'
#!/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)
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
# 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
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))
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)
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)
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'
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])
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
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 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())
#!/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}]
# 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
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')
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)
FONT_NAME = "Verdana" FONT_SIZE1 = "10" FONT_SIZE2 = "11" FONT_SIZE3 = "7" FONT_SIZE4 = "8" COLORS_ABBREVIATED_AUTHOR_NAME = ("#1565C0", "#6A1B9A", "#1A237E", "#311B92", "#4527A0", "#5E35B1", "#4A148C", "#01579B", "#3949AB", "#7B1FA2", "#283593") DEFAULT_FG_COLOR = "#4E5A66" SECOND_FG_COLOR = "#FFFFFF" THRID_FG_COLOR = "#000000" COMMENT_FG_COLOR_LOADED_STATE = "#838b95" TIME_COMMENT_FG_COLOR_READ_STATE = "#808080" DEFAULT_BG_COLOR = "#FFFFFF" SECOND_BG_COLOR = "#06172A" DEFAULT_BC_HIGHLIGHT_COLOR = "#0087E0" SECOND_BC_HIGHLIGHT_COLOR = "#FFFFFF" CONTROLS_BG_COLOR = "#06172a" FILE_CONTAINER1_PADX = 40 FILE_CONTAINER1_PADY = 10 FILE_CONTAINER2_PADX = 140 FILE_CONTAINER2_PADY = 10 LABEL1_TEXT = "Enter the full path of the txt file:" LABEL4_INITIAL_TEXT = " / 00:00:00" IMAGE_PATH_BTN_OPEN_LEAVE = "UI/open_file_btn.png" IMAGE_PATH_BTN_OPEN_ENTER = "UI/open_file_btn_enter.png" IMAGE_PATH_BTN_PLAY_LEAVE = "UI/play_btn.png" IMAGE_PATH_BTN_PLAY_ENTER = "UI/play_btn_enter.png" IMAGE_PATH_BTN_PAUSE_LEAVE = "UI/pause_btn.png" IMAGE_PATH_BTN_PAUSE_ENTER = "UI/pause_btn_enter.png" IMAGE_PATH_CONTROLS_BAR = "UI/controls_bar.png" IMAGE_PATH_TIME_BAR = "UI/time_bar.png" IMAGE_PATH_CURRENT_TIME_BAR = "UI/current_time_bar.png" OPTION_MENU1_VALUES = ("2x", "1.75x", "1.5x", "1.25x", "1x", "0.5x") DEFAULT_OPTION_MENU1_VALUE = "1x" IMAGE_PATH_TIME_BAR_SIZE_MIN = (302, 6) IMAGE_PATH_TIME_BAR_SIZE_MAX = (302, 11) ETR_CURRENT_TIME_NAME = "etrCurrentTime" ETR_CURRENT_TIME_SEPARATOR = ":" ETR_CURRENT_TIME_WARNING_TITLE_MSG = "Current Time Attention" ETR_CURRENT_TIME_WARNING_TEXT_MSG = "Current time is not correct. Expected format: hh:mm:ss." STATUS_BAR_CLOSE_PROGRAM = "Saindo..." MSG_BOX_CLOSE_PROGRAM_TITLE = "Quit" MSG_BOX_CLOSE_PROGRAM_TEXT = "Do you really want to quit?"
font_name = 'Verdana' font_size1 = '10' font_size2 = '11' font_size3 = '7' font_size4 = '8' colors_abbreviated_author_name = ('#1565C0', '#6A1B9A', '#1A237E', '#311B92', '#4527A0', '#5E35B1', '#4A148C', '#01579B', '#3949AB', '#7B1FA2', '#283593') default_fg_color = '#4E5A66' second_fg_color = '#FFFFFF' thrid_fg_color = '#000000' comment_fg_color_loaded_state = '#838b95' time_comment_fg_color_read_state = '#808080' default_bg_color = '#FFFFFF' second_bg_color = '#06172A' default_bc_highlight_color = '#0087E0' second_bc_highlight_color = '#FFFFFF' controls_bg_color = '#06172a' file_container1_padx = 40 file_container1_pady = 10 file_container2_padx = 140 file_container2_pady = 10 label1_text = 'Enter the full path of the txt file:' label4_initial_text = ' / 00:00:00' image_path_btn_open_leave = 'UI/open_file_btn.png' image_path_btn_open_enter = 'UI/open_file_btn_enter.png' image_path_btn_play_leave = 'UI/play_btn.png' image_path_btn_play_enter = 'UI/play_btn_enter.png' image_path_btn_pause_leave = 'UI/pause_btn.png' image_path_btn_pause_enter = 'UI/pause_btn_enter.png' image_path_controls_bar = 'UI/controls_bar.png' image_path_time_bar = 'UI/time_bar.png' image_path_current_time_bar = 'UI/current_time_bar.png' option_menu1_values = ('2x', '1.75x', '1.5x', '1.25x', '1x', '0.5x') default_option_menu1_value = '1x' image_path_time_bar_size_min = (302, 6) image_path_time_bar_size_max = (302, 11) etr_current_time_name = 'etrCurrentTime' etr_current_time_separator = ':' etr_current_time_warning_title_msg = 'Current Time Attention' etr_current_time_warning_text_msg = 'Current time is not correct. Expected format: hh:mm:ss.' status_bar_close_program = 'Saindo...' msg_box_close_program_title = 'Quit' msg_box_close_program_text = 'Do you really want to quit?'
class Config(object): DEBUG = False TESTING = False SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/<YOUR-DEVELOPMENT-DATABASE>' SQLALCHEMY_TRACK_MODIFICATIONS = True class DevelopmentConfig(Config): DEBUG = True class TestingConfig(Config): TESTING = True SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/<YOUR-TEST-DATABASE>'
class Config(object): debug = False testing = False sqlalchemy_database_uri = 'postgresql://localhost/<YOUR-DEVELOPMENT-DATABASE>' sqlalchemy_track_modifications = True class Developmentconfig(Config): debug = True class Testingconfig(Config): testing = True sqlalchemy_database_uri = 'postgresql://localhost/<YOUR-TEST-DATABASE>'
# This script changes the maximum metal layer to use during PnR def replace_line_at_pattern(filename, pattern, text_insert): read_file = open(filename, 'r').readlines() with open(filename,'w') as write_file: for line in read_file: if pattern in line: write_file.write(text_insert + "\n") else: write_file.write(line) adk_file = "./view-standard/adk.tcl" # replace ADK_MAX_ROUTING_LAYER_DC replace_line_at_pattern(adk_file, "set ADK_MAX_ROUTING_LAYER_DC", "set ADK_MAX_ROUTING_LAYER_DC met4") # replace ADK_MAX_ROUTING_LAYER_INNOVUS replace_line_at_pattern(adk_file, "set ADK_MAX_ROUTING_LAYER_INNOVUS", "set ADK_MAX_ROUTING_LAYER_INNOVUS 5") # replace ADK_POWER_MESH_BOT_LAYER replace_line_at_pattern(adk_file, "set ADK_POWER_MESH_BOT_LAYER", "set ADK_POWER_MESH_BOT_LAYER 4") # replace ADK_POWER_MESH_TOP_LAYER replace_line_at_pattern(adk_file, "set ADK_POWER_MESH_TOP_LAYER", "set ADK_POWER_MESH_TOP_LAYER 5")
def replace_line_at_pattern(filename, pattern, text_insert): read_file = open(filename, 'r').readlines() with open(filename, 'w') as write_file: for line in read_file: if pattern in line: write_file.write(text_insert + '\n') else: write_file.write(line) adk_file = './view-standard/adk.tcl' replace_line_at_pattern(adk_file, 'set ADK_MAX_ROUTING_LAYER_DC', 'set ADK_MAX_ROUTING_LAYER_DC met4') replace_line_at_pattern(adk_file, 'set ADK_MAX_ROUTING_LAYER_INNOVUS', 'set ADK_MAX_ROUTING_LAYER_INNOVUS 5') replace_line_at_pattern(adk_file, 'set ADK_POWER_MESH_BOT_LAYER', 'set ADK_POWER_MESH_BOT_LAYER 4') replace_line_at_pattern(adk_file, 'set ADK_POWER_MESH_TOP_LAYER', 'set ADK_POWER_MESH_TOP_LAYER 5')
def LSB(n): return n & -n class FenwickTree: def __init__(self, array): self.len = len(array)+1 self.arr = [0] * self.len for i in range(0, self.len - 1): self.update(i, array[i]) def update(self, index, val): j = index+1 while j < self.len: self.arr[j] += val j += LSB(j) def get_sum(self, index): sum = 0 index += 1 while index > 0: sum += self.arr[index] index -= LSB(index) return sum def get_sum_range(self, start, end): return self.get_sum(end) - self.get_sum(start-1) if __name__ == '__main__': arr = [1, 2, 3, 4, 5, 6, 7, 8] fw = FenwickTree(arr) print(fw.get_sum(3)) print(fw.get_sum(5)) print(fw.get_sum_range(1, 7))
def lsb(n): return n & -n class Fenwicktree: def __init__(self, array): self.len = len(array) + 1 self.arr = [0] * self.len for i in range(0, self.len - 1): self.update(i, array[i]) def update(self, index, val): j = index + 1 while j < self.len: self.arr[j] += val j += lsb(j) def get_sum(self, index): sum = 0 index += 1 while index > 0: sum += self.arr[index] index -= lsb(index) return sum def get_sum_range(self, start, end): return self.get_sum(end) - self.get_sum(start - 1) if __name__ == '__main__': arr = [1, 2, 3, 4, 5, 6, 7, 8] fw = fenwick_tree(arr) print(fw.get_sum(3)) print(fw.get_sum(5)) print(fw.get_sum_range(1, 7))
mylist=[1,2,3,4,5] for i in range(len(mylist)): print(i,len(mylist),range(len(mylist))) mylist.pop()
mylist = [1, 2, 3, 4, 5] for i in range(len(mylist)): print(i, len(mylist), range(len(mylist))) mylist.pop()
''' This is literally ONLY a few functions, but a great example of a file that I might want to fill up with function definitons and import to use at some point. I don't want to run it as a script, I am just going to keep some functions that do things I need...thee is NO main() either and no need to check to see if __name__ == '__main__' ''' def howdy(): '''This is my function that greets the user!''' print('Howdy!') def later(): '''This is my function that tells the user I am outta here!''' print('Later!') ## ## End of file...
""" This is literally ONLY a few functions, but a great example of a file that I might want to fill up with function definitons and import to use at some point. I don't want to run it as a script, I am just going to keep some functions that do things I need...thee is NO main() either and no need to check to see if __name__ == '__main__' """ def howdy(): """This is my function that greets the user!""" print('Howdy!') def later(): """This is my function that tells the user I am outta here!""" print('Later!')