content
stringlengths
7
1.05M
# Features used in this test: #https://www.openstreetmap.org/way/316623706 #https://www.openstreetmap.org/way/343269426 #https://www.openstreetmap.org/way/370123970 #https://www.openstreetmap.org/way/84422829 #https://www.openstreetmap.org/way/316623706 #https://www.openstreetmap.org/way/343269426 #https://www.openstreetmap.org/way/370123970 #https://www.openstreetmap.org/way/84422829 #https://www.openstreetmap.org/way/103256220 # expect these features in _both_ the landuse and POIs layers. for layer in ['pois', 'landuse']: # whitelist zoo values zoo_values = [ (17, 22916, 43711, 316623706, 'enclosure'), # Bear Enclosure (presumably + woods=yes?) (17, 41926, 47147, 343269426, 'petting_zoo'), # Oaklawn Farm Zoo (17, 20927, 45938, 370123970, 'aviary'), # Budgie Buddies (17, 42457, 47102, 84422829, 'wildlife_park') # Shubenacadie Provincial Wildlife Park ] for z, x, y, osm_id, zoo in zoo_values: assert_has_feature( z, x, y, layer, { 'id': osm_id, 'kind': zoo }) # this is a building, so won't show up in landuse. still should be a POI. # Wings of Asia assert_has_feature( 17, 36263, 55884, 'pois', { 'id': 103256220, 'kind': 'aviary' })
def ex041(): nascimento = int(input('Ano de nascimento:\n')) ano_atual = 2021 idade = ano_atual - nascimento print(f'O atleta tem {idade} anos') if idade <= 9: classi = 'MIRIM' elif idade > 25: classi = 'MASTER' elif idade <= 14: classi = 'INFANTIL' elif idade <= 19: classi = 'JÚNIOR' else: classi ='SÊNIOR' print(f'Classifição: {classi}') ex041()
class MasterList: data = [0] # wszystkie bity BER = 0 # suma liczb przekłamanych E = 0 # dane ktore byly dobrze przeslane ReceivedBits = 0 # wszyskie proby przeslania danych do obliczen SizeOfWindow = 0 # wielkosc okna typeOfProtocol = 0 typeOfCode = 0 propability = 0 # prawdopodobienstwo def __init__(self, data, BER, E, ReceivedBits, SizeOfWindow, typeOfProtocol, typeOfCode, propability): self.data = data self.BER = BER self.E = E self.ReceivedBits = ReceivedBits self.SizeOfWindow = SizeOfWindow self.typeOfProtocol = typeOfProtocol self.typeOfCode = typeOfCode self.propability = propability
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. # # Maintainer: Jonathan Lange """ Asynchronous unit testing framework. Trial extends Python's builtin C{unittest} to provide support for asynchronous tests. Maintainer: Jonathan Lange Trial strives to be compatible with other Python xUnit testing frameworks. "Compatibility" is a difficult things to define. In practice, it means that: - L{twisted.trial.unittest.TestCase} objects should be able to be used by other test runners without those runners requiring special support for Trial tests. - Tests that subclass the standard library C{TestCase} and don't do anything "too weird" should be able to be discoverable and runnable by the Trial test runner without the authors of those tests having to jump through hoops. - Tests that implement the interface provided by the standard library C{TestCase} should be runnable by the Trial runner. - The Trial test runner and Trial L{unittest.TestCase} objects ought to be able to use standard library C{TestResult} objects, and third party C{TestResult} objects based on the standard library. This list is not necessarily exhaustive -- compatibility is hard to define. Contributors who discover more helpful ways of defining compatibility are encouraged to update this document. Examples: B{Timeouts} for tests should be implemented in the runner. If this is done, then timeouts could work for third-party TestCase objects as well as for L{twisted.trial.unittest.TestCase} objects. Further, Twisted C{TestCase} objects will run in other runners without timing out. See U{http://twistedmatrix.com/trac/ticket/2675}. Running tests in a temporary directory should be a feature of the test case, because often tests themselves rely on this behaviour. If the feature is implemented in the runner, then tests will change behaviour (possibly breaking) when run in a different test runner. Further, many tests don't even care about the filesystem. See U{http://twistedmatrix.com/trac/ticket/2916}. """
#symbol symbol = { 'PAD': 0, 'A': 1, 'T': 2, 'C': 3, 'G': 4, 'LOST': 5, 'CLS': 6, 'MASK': 7 } vocab_size = len(symbol) #pre-train embed_len = 256 context_len = 512 lm_input_len = 2 * context_len + 2 drop_1_prob = 0.1 drop_1_ratio = 0.2 drop_x_prob = 0.15 drop_x_ratio = 0.4 lm_heads_num = 8 lm_trans_num = 8 lm_hidden_num = 256 lm_linear_dropout = 0.5 lm_batch = 4 data_queue_max = 4096 lm_step_samples = 1024 lm_show_samples = 1024 lm_save_samples = 102400 # 1000000 pre_lr = 1e-4 lm_model_out = './lm.pth' lm_record_out = './lm.rec' #access-train dna_least_len = 50 test_ratio = 0.1 valid_ratio = 0.05 access_heads_num = 4 access_trans_num = 2 access_hidden_dim = lm_hidden_num access_linear_dropout = 0.5 access_lr = 2e-5 #MT MU NO NP PC PH access_data_name = 'SNEDE0000EPC' access_model_out = './PC.pth' dna_len = 767 access_epochs = 5 access_input_len = dna_len + 1 access_batch = 64
report = { "Water": 300, "Milk": 200, "Coffee": 100, "Money": 0, } prices = { "espresso": 1.50, "latte": 2.50, "cappuccino": 3.00, } ingredients = { "espresso": {"Water": 50, "Coffee": 18,}, "latte": {"Water": 200, "Coffee": 24, "Milk": 150,}, "cappuccino": {"Water": 250, "Coffee": 24, "Milk": 100,}, } def get_coffee(coffee_type): global report global num_pennies global num_nickels global num_dimes global num_quarters print("Please enter the coins.") try: num_quarters = int(input("Quarters: ")) num_dimes = int(input("Dimes: ")) num_nickels = int(input("Nickels: ")) num_pennies = int(input("Pennies: ")) except ValueError: num_quarters = 0 num_dimes = 0 num_nickels = 0 num_pennies = 0 total_money = num_quarters * 0.25 + num_dimes * 0.10 + num_nickels * 0.05 + num_pennies * 0.01 if total_money > prices[coffee_type]: print(f"Here is your change: ${round(total_money - 1.50, 2)}.") print(f"Here is your espresso.\nEnjoy!") report["Water"] -= ingredients[coffee_type]["Water"] report["Coffee"] -= ingredients[coffee_type]["Coffee"] report["Money"] += prices[coffee_type] try: report["Milk"] -= ingredients[coffee_type]["Milk"] except KeyError: pass else: print("That is not enough money.") while True: the_input = input("What would you like? " "Type 'report' for a list of the resources. " "Type 'restock' to reload the resources. (espresso/latte/cappuccino/report/restock): ") the_input = the_input.lower() if the_input == 'report': print(f"Water: {report['Water']}ml\n" f"Milk: {report['Milk']}ml\n" f"Coffee: {report['Coffee']}g\n" f"Money: ${report['Money']}") elif the_input == 'restock': print("Resources restocked.") report["Milk"] += 500 report["Water"] += 500 report["Coffee"] += 100 elif the_input == "espresso": if report["Water"] < 50: print("There isn't enough water.") exit() elif report["Coffee"] < 18: print("There isn't enough coffee.") exit() get_coffee("espresso") elif the_input == "latte": if report["Water"] < 200: print("There isn't enough water.") exit() elif report["Coffee"] < 24: print("There isn't enough coffee.") exit() elif report["Milk"] < 150: print("There isn't enough milk.") exit() get_coffee("latte") elif the_input == "cappuccino": if report["Water"] < 250: print("There isn't enough water.") exit() elif report["Coffee"] < 24: print("There isn't enough coffee.") exit() elif report["Milk"] < 100: print("There isn't enough milk.") exit() get_coffee("cappuccino") elif the_input == "exit": print("Goodbye") exit() else: print("That is not a coffee.")
class IncompatibleStateToRuleException(RuntimeError): def __init__(self): RuntimeError.__init__(self, "State incompatible to any rule from grammar.")
class NoOpTrainer(object): def train(self,batcher,dir,dev_batcher): pass
""" """ load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external") load("@bazelrio//:deps.bzl", "setup_bazelrio_dependencies") load("@rules_jvm_external//:defs.bzl", "maven_install") load("@rules_pmd//pmd:toolchains.bzl", "rules_pmd_toolchains") load("@rules_python//python:pip.bzl", "pip_install") def activate_dependencies(): """ Final step of dependencies initialization. Does the various installation steps (pip_install, maven_intstall, etc) """ PMD_VERSION = "6.39.0" rules_pmd_toolchains(pmd_version = PMD_VERSION) pip_install( name = "gos_pip_deps", requirements = "//:requirements.txt", ) pip_install( name = "__bazelrio_deploy_pip_deps", requirements = "@bazelrio//scripts/deploy:requirements.txt", ) setup_bazelrio_dependencies() jvm_maven_import_external( name = "snobot_sim", artifact = "org.snobotv2:snobot_sim_java:2022.2.2.0", artifact_sha256 = "656a265bd7cc7eb3035341a7880ce24940b4afcec184123247774c3511872e9b", server_urls = ["https://raw.githubusercontent.com/snobotsim/maven_repo/master/release"], ) maven_install( name = "maven", artifacts = [ "com.google.guava:guava:21.0", "org.fxmisc.easybind:easybind:1.0.3", "junit:junit:4.12", "org.ejml:ejml-simple:0.38", ], repositories = ["https://repo1.maven.org/maven2", "http://raw.githubusercontent.com/snobotsim/maven_repo/master/development"], maven_install_json = "//build_scripts/bazel/deps:maven_install.json", ) # Separate this because the maven_install_json doesn't download other OS native files maven_install( name = "maven_javafx", artifacts = [ "org.openjfx:javafx-base:11", "org.openjfx:javafx-controls:11", "org.openjfx:javafx-fxml:11", "org.openjfx:javafx-graphics:11", "org.openjfx:javafx-swing:11", "org.openjfx:javafx-media:11", "org.openjfx:javafx-web:11", ], repositories = [ "https://repo1.maven.org/maven2", "https://repo.maven.apache.org/maven2/", ], )
SERIES_URL = 'https://api.themoviedb.org/3/tv/popular?language=en-US' GENRE_SERIES_URL = 'https://api.themoviedb.org/3/genre/tv/list?language=en-US' GENRE_MOVIES_URL = 'https://api.themoviedb.org/3/genre/movie/list?language=en-US' paramAPI = '&api_key=' paramPage = '&page='
""" A jyotiSha computation package! A note on time: We internally use julian dates in the UTC time scale (See wiki article: https://en.wikipedia.org/wiki/Time_standard ). This is different from the Terrestrial time (TT), which contuines from the former Ephemeris time(ET) standard. Note on swiss ephemeris API: Please don't call it directly - there should always a layer inbetween the ephemeris API and our logic. This wrapper layer is located in the packages temporal, spatio_temporal, graha and zodiac. Using this wrapper allows us to easily adjust to ephemeris API changes, and to ensure correctness (eg. sending time in UTC rather than ET time scale). Note on storing variables: Please remember that most objects here (including panchAnga-s) are serialized as JSON objects. That means that you CANNOT (re)store python dictionaries with numeric keys. Please don't do that. Use plain arrays of arrays if you must. Note on core vs peripheral parts of the code: Please don't put your custom tex/ md/ ics whatever code in core code and pollute core library functions. Wrap them in your own functions if you must. Functions should be atomic. """
# See http://webpython.codepoint.net/mod_python_publisher_uri_traversal s = """\ <html><body> <h2>Hello %s!</h2> </body></html> """ def index(): return s % 'World' def everybody(): return s % 'everybody'
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 19-1-3 下午10:43 # @Author : yangsen # @Mail : 0@keepangry.com # @File : word_cut.py # @Software: PyCharm """ 数据集:http://sighan.cs.uchicago.edu/bakeoff2005/ 1、生成样本 character_tagging.py 2、训练模型 3、给模型输入 character_split.py 4、模型输出 转化为分词结果 character_2_word.py """
class numtup(tuple): def __add__(self, other): if isinstance(other, tuple): assert len(self) == len(other) return numtup(lhs + rhs for lhs, rhs in zip(self, other)) return numtup(lhs + other for lhs in self) def __mul__(self, other): if isinstance(other, tuple): assert len(self) == len(other) return numtup(lhs * rhs for lhs, rhs in zip(self, other)) return numtup(lhs * other for lhs in self)
# FIND THE DUPLICATE NUMBER LEETCODE SOLUTION: # creating a class. class Solution(object): # creating a function to solve the problem. def findDuplicate(self, nums): # creating an iterable set. elements = set() # creating a for-loop to iterate for the elements in the list. for i in nums: # creating a nested if-statement to find the duplicated in the list. if i not in elements: # if the element is not initially present, we add it to the iterable set. elements.add(i) # creating an if-statement for returning the element if it is found more than once. else: # returning the element found more than once if the condition is met. return i
# -*- coding: utf-8 -*- # This Python file uses the following encoding: utf-8 """ > db.persons.findOne() { "_id" : "P_55", "name" : "Anna Margaretha* /Falkengren/", "sex" : "F", "grpNameGiven" : "704 6942", "grpNameLast" : "4419", "death" : { "date" : "17640827", "source" : "*1 Klinte CI:2, Sidan 195", "quality": 1, "tag" : "BURI", "place" : "Klinte (I)", "normPlaceUid" : "1675" }, "birth" : < EVENT - same as death>, "type" : "person", "refId" : "I1223" } > db.families.findOne() { "_id" : "F_19", "marriage" : < EVENT >, "type" : "family", "refId" : "F01" } > db.relations.findOne() { "_id" : ObjectId("59bf643db75a5412169767d6"), "famId" : "F_47", "persId" : "P_123", "relTyp" : "husb" #can be child, husb, wife } > db.originalData.findOne({'type': 'person'}) { "_id" : ObjectId("59d47b1fb75a541d97959d63"), "recordId" : "P_270", "type" : "person", "data" : [ { "contributionId" : "A_31", "record" : <person-record for _id P_270>, "gedcom" : "0 @I1223@ INDI\n1 SEX F\n1 NAME Anna Margaretha* /Falkengren/\n1 BIRT\n2 DATE 15 JUN 1705\n2 SOUR Fardhem AI:2 (1751-1769) Bild 430 / sid 37\n1 DEAT\n2 DATE 27 AUG 1764\n2 PLAC Klinte (I)\n2 SOUR Klinte CI:2 (1758-1828) Bild 1020 / sid 195 (AID: v61999.b1020.s195, NAD: SE/ViLA/23050)\n1 FAMS @F01@\n1 CHAN\n2 DATE 29 AUG 2017\n3 TIME 11:59:00" } ] } > db.originalData.findOne({'type': 'family'}) { "_id" : ObjectId("59d47b1fb75a541d97959d74"), "recordId" : "F_117", "type" : "family", "relation" : [ <relation-record with "famId": "F_117">, <relation-record with "famId": "F_117">, ... ], "data" : [ { "contributionId" : "A_31", "record" : <family-record with id F_117>, "gedcom" : "0 @F01@ FAM\n1 MARR\n2 SOUR Visby Stifts Herdaminne\n1 HUSB @A_31-I5115@\n1 WIFE @A_31-I1223@\n1 CHIL @I78017@\n1 CHIL @I1705@\n1 CHIL @I78016@\n1 CHIL @I1798@\n1 CHIL @I2137@\n1 CHAN\n2 DATE 29 AUG 2017\n3 TIME 11:28:00" } ], } ?? > db.matches_admin_P.findOne() { "_id" : ObjectId("59bec3ccb75a540d58761efa"), "status" : "rOK", "matchid" : "P_68", "workid" : "P_55", "score" : 10.606552124023438, "familysim" : 0, "nodesim" : 0.8333333333333334, "cosScore" : 0.6689936080056726, "svmscore" : 0.9999973174618935 } > db.fam_matches_admin_P.findOne() { "_id" : ObjectId("59bec3ccb75a540d58761f0c"), "status" : "FamEjOK", "matchRefId" : "gedcom_F01", "workRefId" : "gedcom_F04", "wife" : <match-record>, "matchid" : "F_23", "workid" : "F_22", "summary" : { "status" : "Manuell", "husb" : "Match", "children" : [ ], "wife" : "EjMatch" }, "husb" : <match-record>, "children" : [ { <match-record>, "sort" : "0", !!KOLLA!! }, { "status" : "", "sort" : "17340721", "pwork" : <person-record>, #or pmatch "workid" : "P_64" }, ] } """ #rename to getFamily def getFamilyFromChild(childId, familyDB, relationsDB): """ Build a full family record (husb,wife,marriage,children) from a person record where person is child in the family """ family = relationsDB.find_one({'relTyp': 'child', 'persId': childId}) if family: return getFamilyFromId(family['famId'], familyDB, relationsDB) else: return None """ if family: famRecord = familyDB.find_one({'_id': family['famId']}) famRecord['children'] = [] for member in relationsDB.find({'famId': family['famId']}): if member['relTyp'] == 'child': famRecord['children'].append(member['persId']) else: famRecord[member['relTyp']] = member['persId'] #if 'husb' in member: famRecord['husb'] = member['husb'] #elif 'wife' in member: famRecord['wife'] = member['wife'] #elif 'child' in member: famRecord['children'].append(member['child']) return famRecord else: return None """ def getFamilyFromId(famId, familyDB, relationsDB): """ Build a full family record (husb,wife,marriage,children) from a familyId """ famRecord = familyDB.find_one({'_id': famId}) if famRecord is None: return None famRecord['husb'] = None famRecord['wife'] = None famRecord['children'] = [] for member in relationsDB.find({'famId': famRecord['_id']}): if member['relTyp'] == 'child': famRecord['children'].append(member['persId']) else: famRecord[member['relTyp']] = member['persId'] #if 'husb' in member: famRecord['husb'] = member['husb'] #elif 'wife' in member: famRecord['wife'] = member['wife'] #elif 'child' in member: famRecord['children'].append(member['child']) return famRecord
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"read_headers": "03_convert_files.ipynb", "parse_header_line": "03_convert_files.ipynb", "restore_header": "03_convert_files.ipynb", "read__write_from_sep_sv": "03_convert_files.ipynb", "run_subprocess": "04_generate_report.ipynb", "create_base_directories": "02_initalise_repository.ipynb", "directory_is_empty": "02_initalise_repository.ipynb", "parse_directory_date_to_datetime": "02_initalise_repository.ipynb", "datetime_to_timestamp": "02_initalise_repository.ipynb", "delete_files_in_repository_directory": "02_initalise_repository.ipynb", "copy_directory_to_directory": "02_initalise_repository.ipynb", "rename_all_files_in_directory_from_txt_to_csv": "02_initalise_repository.ipynb", "add_all_new_files_to_respository": "02_initalise_repository.ipynb", "commit_repository": "02_initalise_repository.ipynb", "branch_exists": "02_initalise_repository.ipynb", "create_branch": "02_initalise_repository.ipynb", "switch_to_branch": "02_initalise_repository.ipynb", "repository_exists": "02_initalise_repository.ipynb", "create_repository": "02_initalise_repository.ipynb", "add_directory_to_repository": "02_initalise_repository.ipynb", "copy_into_repository": "02_initalise_repository.ipynb", "write_from_sep_sv": "03_convert_files.ipynb", "restore_header_in_mem": "03_convert_files.ipynb", "convert_directory": "03_convert_files.ipynb", "convert_dirs": "03_convert_files.ipynb", "get_output_from_cmd": "04_generate_report.ipynb", "verbose": "04_generate_report.ipynb", "show_progress": "04_generate_report.ipynb", "GitRepositoryReader": "04_generate_report.ipynb", "parse_commitstr_to_datetime": "04_generate_report.ipynb", "copyfile_fullpath": "04_generate_report.ipynb", "mkdir_for_fullpath": "04_generate_report.ipynb", "remove_files_from_output_branch": "04_generate_report.ipynb", "remove_files_from_output": "04_generate_report.ipynb", "get_report_name_refs": "04_generate_report.ipynb", "make_output_directories": "04_generate_report.ipynb", "get_relative_path": "04_generate_report.ipynb", "copy_style_and_bootstrap": "04_generate_report.ipynb", "bootstrap_navbar": "04_generate_report.ipynb", "header": "04_generate_report.ipynb", "footer": "04_generate_report.ipynb", "page": "04_generate_report.ipynb", "diff2html_template": "04_generate_report.ipynb", "default_footer": "04_generate_report.ipynb", "generate_difference_report_page": "04_generate_report.ipynb", "BranchComparisonReport": "04_generate_report.ipynb", "FileChangeHistoryReportForBranch": "04_generate_report.ipynb"} modules = ["csv_header_restore.py", "convert_to_csv.py", "initalise_repository.py", "convert_files.py", "generate_report.py"] doc_url = "https://3ideas.github.io/config_tracker/" git_url = "https://github.com/3ideas/config_tracker/tree/master/" def custom_doc_links(name): return None
class Solution: @staticmethod def longest_palindromic(s: str) -> str: pass def expandAroundCenter (s, left, right): while left >= 0 and right < len(s) and s[left] == s[right]: left -=1 right +=1 return s[left+1:right] longestSub = "" for i in range(len(s)): center = expandAroundCenter(s, i, i) inBetween = expandAroundCenter(s, i, i+1) longestSub = max(longestSub, center, inBetween, key=len) return print("Output : ", longestSub) s =input("input : s = ") Solution.longest_palindromic(s)
""" Count the number of prime numbers less than a non-negative number, n. """ class Solution(object): def countPrimes(self, n): """ :type n: int :rtype: int """ if n < 2: return 0 sieve = [True] * n sieve[0] = False sieve[1] = False for i in range(2, n): if sieve[i]: for j in range(i * i, n, i): sieve[j] = False count = 0 i = 0 while i < n: if sieve[i]: count = count + 1 i += 1 return count A = 10 s = Solution() print(s.countPrimes(A))
# PROGRESSÃO ARITMÉTICA com while v2.0 print('=' * 44) print('{:^44}'.format(' PROGRESSÃO ARITMÉTICA ')) print('{:^44}'.format('Exibindo os dez primeiros termos de uma PA')) print('=' * 44) a1 = int(input('Primeiro termo: _ ')) r = int(input('Razão: _ ')) an = a1 # enésimo termo (inicia igual ao primeiro) a = [] # matriz pra guardar todos os termos (opcional meu) n = 1 # inicia o contador de termos t = 0 # total de termos (começa em zero para ser somado ao 'mais') m = 10 # quantos serão exibidos 'a mais' (começa valendo 10) while m != 0: t += m # soma 'mais' ao total while n <= t: a.append(an) print('{}'.format(an), end='') print(', ' if n != t else '.', end='') an += r n += 1 print('\n' + '-' * 30) m = int(input('Quer exibir mais quantos termos? (digite 0 para sair) _ ')) print('\nA PA completa, de razão {} e iniciando em {},\nficou com {} termos e pode ser conferida a seguir:\n{}'.format(r, a1, t, a)) print('Fim do programa!')
# # PySNMP MIB module PET-EVENTS (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PET-EVENTS # Produced by pysmi-0.3.4 at Wed May 1 14:40:13 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, iso, TimeTicks, ModuleIdentity, IpAddress, enterprises, Gauge32, MibIdentifier, Bits, NotificationType, Integer32, ObjectIdentity, Counter64, NotificationType, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "iso", "TimeTicks", "ModuleIdentity", "IpAddress", "enterprises", "Gauge32", "MibIdentifier", "Bits", "NotificationType", "Integer32", "ObjectIdentity", "Counter64", "NotificationType", "Counter32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") wiredformgmt = MibIdentifier((1, 3, 6, 1, 4, 1, 3183)) pet = MibIdentifier((1, 3, 6, 1, 4, 1, 3183, 1)) petEvts = MibIdentifier((1, 3, 6, 1, 4, 1, 3183, 1, 1)) petTrapUnderTemperatureWarning = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,65792)) if mibBuilder.loadTexts: petTrapUnderTemperatureWarning.setDescription('Under-Temperature Warning (Lower non-critical, going low)') petTrapUnderTemperatureCritical = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,65794)) if mibBuilder.loadTexts: petTrapUnderTemperatureCritical.setDescription('Critical Under-Temperature Problem (Lower Critical - going low)') petTrapOverTemperatureWarning = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,65799)) if mibBuilder.loadTexts: petTrapOverTemperatureWarning.setDescription('Over-Temperature Warning (Upper non-critical, going high)') petTrapOverTemperatureCritical = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,65801)) if mibBuilder.loadTexts: petTrapOverTemperatureCritical.setDescription('Critical Over-Temperature Problem (Upper Critical - going high)') petTrapGenericCriticalTemperature = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,67330)) if mibBuilder.loadTexts: petTrapGenericCriticalTemperature.setDescription('Generic Critical Temperature Problem (Transition to Critical from less severe)') petTrapGenericTemperatureWarning = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,67331)) if mibBuilder.loadTexts: petTrapGenericTemperatureWarning.setDescription('Generic Temperature Warning (Transition to Warning from less severe)') petTrapUnderAnalogVoltageCritical = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,131330)) if mibBuilder.loadTexts: petTrapUnderAnalogVoltageCritical.setDescription('Critical Under-Voltage Problem (Lower Critical - going low)') petTrapOverAnalogVoltageCritical = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,131337)) if mibBuilder.loadTexts: petTrapOverAnalogVoltageCritical.setDescription('Critical Over-Voltage Problem (Upper Critical - going high)') petTrapGenericCriticalDiscreteVoltage2 = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,132866)) if mibBuilder.loadTexts: petTrapGenericCriticalDiscreteVoltage2.setDescription('Generic Critical Voltage Problem (Transition to Critical from less severe)') petTrapGenericDiscreteVoltageWarning = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,132867)) if mibBuilder.loadTexts: petTrapGenericDiscreteVoltageWarning.setDescription('Generic Voltage Warning (Transition to Non-Critical from less severe)') petTrapGenericCriticalFan = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,263938)) if mibBuilder.loadTexts: petTrapGenericCriticalFan.setDescription('Generic Critical Fan failure (Transition to Critical from less severe)') petTrapGenericFanWarning = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,263169)) if mibBuilder.loadTexts: petTrapGenericFanWarning.setDescription('Generic Predictive Fan failure (predictive failure asserted)') petTrapFanSpeedproblem = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,262402)) if mibBuilder.loadTexts: petTrapFanSpeedproblem.setDescription('Fan Speed Problem (speed too low to meet chassis cooling specs)') petTrapFanSpeedWarning = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,262400)) if mibBuilder.loadTexts: petTrapFanSpeedWarning.setDescription('Fan speed warning (Fan speed below expected speed. Cooling still adequate)') petTrapPowerSupplyFailureDetected = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,552705)) if mibBuilder.loadTexts: petTrapPowerSupplyFailureDetected.setDescription('Power supply Failure detected') petTrapPowerSupplyWarning = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,552706)) if mibBuilder.loadTexts: petTrapPowerSupplyWarning.setDescription('Power supply Warning') petTrapProcessorInternalError = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,487168)) if mibBuilder.loadTexts: petTrapProcessorInternalError.setDescription('Processor Internal Error') petTrapProcessorThermalTrip = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,487169)) if mibBuilder.loadTexts: petTrapProcessorThermalTrip.setDescription('Processor Thermal Trip (Over Temperature Shutdown)') petTrapProcessorBistError = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,487170)) if mibBuilder.loadTexts: petTrapProcessorBistError.setDescription('Processor Fault Resilient Booting (FRB) 1 / BIST (Built In Self Test) Failure') petTrapProcessorFRB2Failure = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,487171)) if mibBuilder.loadTexts: petTrapProcessorFRB2Failure.setDescription('Processor Fault Resilient Booting (FRB) 2 / Hang in Power On Self Test (POST) Failure') petTrapProcessorFRB3Failure = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,487172)) if mibBuilder.loadTexts: petTrapProcessorFRB3Failure.setDescription('Processor Fault Resilient Booting (FRB) 3 / Processor Setup / Initialization Failure') petTrapMemoryUncorrectableECC = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,814849)) if mibBuilder.loadTexts: petTrapMemoryUncorrectableECC.setDescription('Uncorrectable ECC or other uncorrectable memory error') petTrapChassisIntrusion = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,356096)) if mibBuilder.loadTexts: petTrapChassisIntrusion.setDescription('Chassis Intrusion - Physical Security Violation') petTrapCriticalInterruptBusTimeout = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,1273601)) if mibBuilder.loadTexts: petTrapCriticalInterruptBusTimeout.setDescription('Critical Interrupt, Bus Timeout error') petTrapCriticalInterruptIOChannelNMI = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,1273602)) if mibBuilder.loadTexts: petTrapCriticalInterruptIOChannelNMI.setDescription('Critical Interrupt, IO Channel check NMI error') petTrapCriticalInterruptSoftwareNMI = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,1273603)) if mibBuilder.loadTexts: petTrapCriticalInterruptSoftwareNMI.setDescription('Critical Interrupt, software NMI error') petTrapCriticalInterruptPCIPERR = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,1273604)) if mibBuilder.loadTexts: petTrapCriticalInterruptPCIPERR.setDescription('Critical Interrupt, PCI PERR parity error') petTrapCriticalInterruptPCISERR = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,1273605)) if mibBuilder.loadTexts: petTrapCriticalInterruptPCISERR.setDescription('Critical Interrupt, PCI SERR parity error') petTrapCriticalInterruptBusUncorrect = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,1273608)) if mibBuilder.loadTexts: petTrapCriticalInterruptBusUncorrect.setDescription('Critical Interrupt, Bus Uncorrectable error') petTrapCriticalInterruptFatalNMI = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,1273609)) if mibBuilder.loadTexts: petTrapCriticalInterruptFatalNMI.setDescription('Critical Interrupt, Fatal NMI error') petTrapBIOSPOSTCodeError = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,1011456)) if mibBuilder.loadTexts: petTrapBIOSPOSTCodeError.setDescription('System Firmware Progress: BIOS POST code error') petTrapWatchdogReset = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,2322177)) if mibBuilder.loadTexts: petTrapWatchdogReset.setDescription('Watchdog Reset') petTrapWatchdogPowerDown = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,2322178)) if mibBuilder.loadTexts: petTrapWatchdogPowerDown.setDescription('Watchdog Power Down') petTrapWatchdogPowerCycle = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,2322179)) if mibBuilder.loadTexts: petTrapWatchdogPowerCycle.setDescription('Watchdog Power Cycle') petTrapOEMSystemBootEvent = NotificationType((1, 3, 6, 1, 4, 1, 3183, 1, 1) + (0,1208065)) if mibBuilder.loadTexts: petTrapOEMSystemBootEvent.setDescription('OEM System Boot Event') mibBuilder.exportSymbols("PET-EVENTS", petTrapUnderTemperatureCritical=petTrapUnderTemperatureCritical, wiredformgmt=wiredformgmt, petTrapUnderAnalogVoltageCritical=petTrapUnderAnalogVoltageCritical, petEvts=petEvts, petTrapOverTemperatureWarning=petTrapOverTemperatureWarning, petTrapFanSpeedWarning=petTrapFanSpeedWarning, petTrapProcessorThermalTrip=petTrapProcessorThermalTrip, petTrapProcessorBistError=petTrapProcessorBistError, petTrapGenericDiscreteVoltageWarning=petTrapGenericDiscreteVoltageWarning, petTrapGenericCriticalTemperature=petTrapGenericCriticalTemperature, petTrapProcessorFRB2Failure=petTrapProcessorFRB2Failure, petTrapWatchdogPowerDown=petTrapWatchdogPowerDown, petTrapWatchdogReset=petTrapWatchdogReset, petTrapCriticalInterruptSoftwareNMI=petTrapCriticalInterruptSoftwareNMI, petTrapOEMSystemBootEvent=petTrapOEMSystemBootEvent, petTrapGenericCriticalFan=petTrapGenericCriticalFan, petTrapGenericCriticalDiscreteVoltage2=petTrapGenericCriticalDiscreteVoltage2, petTrapOverAnalogVoltageCritical=petTrapOverAnalogVoltageCritical, petTrapMemoryUncorrectableECC=petTrapMemoryUncorrectableECC, petTrapPowerSupplyWarning=petTrapPowerSupplyWarning, petTrapCriticalInterruptBusUncorrect=petTrapCriticalInterruptBusUncorrect, petTrapProcessorFRB3Failure=petTrapProcessorFRB3Failure, petTrapOverTemperatureCritical=petTrapOverTemperatureCritical, petTrapGenericFanWarning=petTrapGenericFanWarning, petTrapUnderTemperatureWarning=petTrapUnderTemperatureWarning, petTrapCriticalInterruptFatalNMI=petTrapCriticalInterruptFatalNMI, petTrapWatchdogPowerCycle=petTrapWatchdogPowerCycle, petTrapProcessorInternalError=petTrapProcessorInternalError, petTrapCriticalInterruptIOChannelNMI=petTrapCriticalInterruptIOChannelNMI, petTrapCriticalInterruptBusTimeout=petTrapCriticalInterruptBusTimeout, petTrapFanSpeedproblem=petTrapFanSpeedproblem, petTrapCriticalInterruptPCIPERR=petTrapCriticalInterruptPCIPERR, petTrapChassisIntrusion=petTrapChassisIntrusion, petTrapBIOSPOSTCodeError=petTrapBIOSPOSTCodeError, petTrapCriticalInterruptPCISERR=petTrapCriticalInterruptPCISERR, petTrapPowerSupplyFailureDetected=petTrapPowerSupplyFailureDetected, pet=pet, petTrapGenericTemperatureWarning=petTrapGenericTemperatureWarning)
andres = { "nombre": "Andres", "apellido": "Velasco", "edad": 22, "sueldo": 1.01, "hijos": [], "casado": False, "lotera": None, "mascota": { "nombre": "Cachetes", "edad": 3, }, } if andres: print("Si") else: print("No") print(andres['nombre']) print(andres['mascota']['nombre']) andres.pop("casado") print(andres) # Iterar por valores for valor in andres.values(): print(f"Valor: {valor}") # Iterar por llaves for llave in andres.keys(): print(f"Llave: {llave} Valor: {andres[llave]} {andres.get(llave)}") # Otra forma de iterar el diccionario for clave, valor in andres.items(): print(f"clave: {clave} valor: {valor}") # Agregar un nuevo atributo al diccionario andres["profesion"] = "Maestro" andres.update({"peso": 0, "altura": 1}) print(andres)
#PALAVRAS_CHAVE1 for i in palavras_chave1: count = sum(1 for _ in re.finditer(r'\b%s\b' % re.escape(i), curriculum.lower())) if count > 0: pc_1_x.append(i) pc_1_y.append(count) #print(i, 'count:', count) plt.figure() plt.plot(pc_1_x, pc_1_y) plt.xlabel('Palavras-chave') plt.ylabel('Aparecimento') plt.title('Softwares de escritório') plt.savefig(nome_pdf + ' 1') #plt.show() # O POS tagger é horrível na língua portuguesa # nouns = [word for (word, pos) in palavras_tagueadas if pos in ['NN','NNP','NNS','NNPS']] # verbs = [word for (word, pos) in palavras_tagueadas if pos in ['VBD', 'VBG', 'VBN', 'VB', 'VBP', 'VBZ']] #print(nouns) # Frequências # from nltk.probability import FreqDist # # fdist = FreqDist() # # for word in post_punctuation: # frequência dessa lista de 'palavras' # fdist[word.lower()]+=1 # fdist_top10 = fdist.most_common(10) # print(fdist_top10) # Stemming # from nltk.stem import RSLPStemmer # stemmer = RSLPStemmer() # for word in post_punctuation: # #print(word + ":" + stemmer.stem(word)) # palavras_stemm = stemmer.stem(word) # #print(palavras_stemm) # # subtree # def extract_np(psent): # for subtree in psent.subtrees(): # if subtree.label() == 'NP': # yield ' '.join(word for word, tag in subtree.leaves()) # # cp = nltk.RegexpParser(grammar) # parsed_sent = cp.parse(sentences) # for npstr in extract_np(parsed_sent): # print(npstr)
def aumentar (n=0,p=0): v = n*(1+p/100) return v def diminuir (n=0,p=0): v = n*(1-p/100) return v def dobro(n=0): v=n*2 return v def metade (n): v=n/2 return v def moeda (preço=0, moeda='R$'): return f'{moeda}{preço:>.2f}'.replace('.',',')
class Listened: def __init__(self, times): self.times = times def params_str(self): return "{{times: '{}'}}".format(self.times)
''' Question 03: Write code in python to print various datatypes of variable x. My Solution: ''' a = "fruits" b = 20 c = 20.5 d = 1j e = ["apple", "orange", "pomegranate"] f = ("banana", "strawberry", "grape") g = range(8) h = {"pomegranate" : "fruit", "class" : "flora" } i = {"kiwi", "dragon fruit", "custard apple"} j = frozenset({"kiwi", "dragon fruit", "custard apple"}) k = True l = b"Hello" m = bytearray(5) n = memoryview(bytes(5)) print(type(a)) print(type(b)) print(type(c)) print(type(d)) print(type(e)) print(type(f)) print(type(g)) print(type(h)) print(type(i)) print(type(j)) print(type(k)) print(type(l)) print(type(m)) print(type(n))
VARS_COMMAND = 'command' VARS_SUBCOMMAND = 'subcommand' VARS_DEFAULT = 'default' API_BASE_URL = 'https://api.epsagon.com'
class Pessoa: #Atributos def __init__(self, nome="Pessoa", idade=0 , altura=0.0 , peso=0): self.nome = nome self.idade = idade self.altura = altura self.peso = peso #Metodos def crescer(self, cm): self.altura += cm / 100 print("{} cresceu {} cm, e agora tem {:.3f} m de altura".format(self.nome, cm, self.altura)) def engordar(self, kg): self.peso += kg print("{} você engordou {}kg, agora seu peso atual é {}kg".format(self.nome, kg, self.peso)) def emagrecer(self, kg): self.peso -= kg print("{} você emagreceu {}kg, agora seu peso atual é {}kg".format(self.nome, kg, self.peso)) def envelhercer (self, anos): cresc = 0 if self.idade + anos <= 21: cresc = anos * 0.5 if self.idade < 21: if self.idade + anos > 21: cresc = ((21 - self.idade) * 0.5) self.idade += anos print("{} agora você está com {} anos de idade".format(self.nome, self.idade)) self.crescer(cresc) #executando def main(): Lucas = Pessoa("Lucas", 21, 1.50, 65) print("A altura do {}: é {} cm".format(Lucas.nome, Lucas.altura)) Cr = int(input("O quanto deseja crescer? (cm): ")) Lucas.crescer(Cr) print() print("O peso do {}: é {} kg".format(Lucas.nome, Lucas.peso)) Pe = int(input("O quanto deseja engorgar: (kg): ")) Lucas.engordar(Pe) print() print("O peso do {}: é {} kg".format(Lucas.nome, Lucas.peso)) Em = int(input("O quanto deseja emagrecer: (kg): ")) Lucas.emagrecer(Em) print() print("A idade do {}: é {} cm".format(Lucas.nome, Lucas.idade)) An = int(input("O quanto deseja envelhecer? (idade): ")) Lucas.envelhercer(An) print() main()
''' An object class for a value of a parameter. ''' class Value: def __init__(self, p, v): self.param_name = p self.value = v self.visited = False self.visited_num = 0
parentToChildrenBags = {} with open("C:\\Privat\\advent_of_code20\\puzzle7\\input1.txt") as f: for line in f: line = line.strip() print(line) lineSplit = line.split('contain') startingColorSplit = lineSplit[0].split(' ') startingColor = startingColorSplit[0] + ' ' + startingColorSplit[1] if not startingColor in parentToChildrenBags: parentToChildrenBags[startingColor] = [] print(lineSplit) lineSplit2 = lineSplit[1].split(',') print(lineSplit2) for bag in lineSplit2: if 'no other bags' in bag: continue bagSplit = bag.strip().split(' ') bagString = bagSplit[1] + ' ' + bagSplit[2] if not bagString in parentToChildrenBags[startingColor]: parentToChildrenBags[startingColor].append((bagString, bagSplit[0])) print(parentToChildrenBags) baggs = [] def recurse(parentToChildrenBags, bagTuples): for bagTuple in bagTuples: i = 0 while i < int(bagTuple[1]): recurse(parentToChildrenBags, parentToChildrenBags[bagTuple[0]]) i += 1 baggs.append(bagTuple[0]) recurse(parentToChildrenBags, parentToChildrenBags['shiny gold']) #print(baggs) print("Number of bags that are contained in a shiny gold bag: " + str(len(baggs)))
def main() -> None: # fermat's little theorem n, k, m = map(int, input().split()) # m^(k^n) MOD = 998_244_353 m %= MOD print(0 if m == 0 else pow(m, pow(k, n, MOD - 1), MOD)) # k^n % (MOD - 1) might be 0. # 0^0 is defined as 1 in Python. # but if m == 0, answer shoud be 0 # (Fermat's Little Theorem cannot be applied when m == 0). if __name__ == "__main__": main()
lista = ['99', '102', '89', '120', '117'] cont = 0 maximo = lista[1] while cont < 3: if lista[cont] > lista[cont+1]: maximo = lista[cont+1] cont = cont + 1 print(maximo)
logo = """ ___________ __ .__ __________ \__ ___/_ __________/ |_| | ____ \______ \_____ ____ ____ | | | | \_ __ \ __\ | _/ __ \ | _/\__ \ _/ ___\/ __ \ | | | | /| | \/| | | |_\ ___/ | | \ / __ \\ \__\ ___/ |____| |____/ |__| |__| |____/\___ > |____|_ /(____ /\___ >___ > \/ \/ \/ \/ \/ """
def calculateHandlen(hand): """ Returns the length (number of letters) in the current hand. hand: dictionary (string int) returns: integer """ result = 0 for item in hand.keys(): result += hand[item] return result hand = {'h':1, 'e':1, 'l':2, 'o':1} print(calculateHandlen(hand))
t = int(input()) for _ in range(t): fib = [1,1] n = int(input()) if n == 1: print('IsFibo') else: while n > fib[1]: fib.insert(2, fib[0] + fib[1]) fib.remove(fib[0]) if fib[1] == n: print('IsFibo') else: print('IsNotFibo')
def g(x): b = 0 i = 1 while i < x: j = i + 1 while j <= x: b += gcd(i, j) j += 1 i += 1 return b def gcd(a, b): while not b == 0: a, b = b, a % b return a a = int(input()) while a: a = g(a) print(a) a = int(input())
class ExampleError(Exception): pass def bad_function(): raise ExampleError('this is a message', 1, 2, 'other1', 'other2', 'other3') try: bad_function() except ExampleError as err: message, x, y, *others = err.args print(f'[I] {message}') print(f'[I] Others: {others}')
# Created by MechAviv # Kinesis Introduction # Map ID :: 331001110 # Hideout :: Training Room 1 if "1" not in sm.getQuestEx(22700, "E1"): sm.lockForIntro() sm.playSound("Sound/Field.img/masteryBook/EnchantSuccess") sm.showClearStageExpWindow(350) sm.giveExp(350) sm.playExclSoundWithDownBGM("Voice3.img/Kinesis/guide_04", 100) sm.sendDelay(2500) sm.setQuestEx(22700, "E1", "1") sm.unlockForIntro() sm.warp(331001120, 0)
""" Given a binary tree root and an integer target, delete all the leaf nodes with value target. Note that once you delete a leaf node with value target, if it's parent node becomes a leaf node and has the value target, it should also be deleted (you need to continue doing that until you can't). Example Input: root = [1,2,3,2,null,2,4], target = 2 Output: [1,null,3,null,4] Explanation: Leaf nodes in green with value (target = 2) are removed (Picture in left). After removing, new nodes become leaf nodes with value (target = 2) (Picture in center). Example: Input: root = [1,3,3,3,2], target = 3 Output: [1,3,null,null,2] Example: Input: root = [1,2,null,2,null,2], target = 2 Output: [1] Explanation: Leaf nodes in green with value (target = 2) are removed at each step. Example: Input: root = [1,1,1], target = 1 Output: [] Example: Input: root = [1,2,3], target = 1 Output: [1,2,3] Constraints: - 1 <= target <= 1000 - The given binary tree will have between 1 and 3000 nodes. - Each node's value is between [1, 1000]. """ #Difficulty: Medium #50 / 50 test cases passed. #Runtime: 72 ms #Memory Usage: 14 MB #Runtime: 72 ms, faster than 35.26% of Python3 online submissions for Delete Leaves With a Given Value. #Memory Usage: 14 MB, less than 90.57% of Python3 online submissions for Delete Leaves With a Given Value. # 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 removeLeafNodes(self, root: TreeNode, target: int) -> TreeNode: self.dfs(root, target) if root and root.val == target and not root.left and not root.right: root = None return root def dfs(self, root, target): if not root: return self.dfs(root.left, target) self.dfs(root.right, target) if root.left and root.left.val == target and not root.left.left and not root.left.right: root.left = None if root.right and root.right.val == target and not root.right.left and not root.right.right: root.right = None
""" memory.py Represents a file memory. """ class Memory(): def write(self, line): f = open("results", "a") template = f"{line}\n" f.write(template) f.close()
USD = [ "amazon.com", "ebay.com", "newegg.com", ] EUR = [ "amazon.de" ] def get_currency(url): if url in USD: return "$" elif url in EUR: return "€" else: return "₺"
""" CONTINUAÇÃO... conjuntos.py """ # Assim como toda outra coleção Python podemos colocar tipos de dados misturados em sets s = {1, True, 'b', 34.42, 55} print(s) print(type(s)) # Podemos iterar em um set normalmente for valor in s: print(valor) # Usos interessantes com sets # Imagine que fizemos um formulário de cadastro de visitantes em uma feira ou museu. # Os visitantes informam manualmente a cidade de onde vieram. # Nós adicionamos cada cidade em uma lista python, # já que em uma lista podemos adicionar novos elementos e ter repetição cidades = ['Belo Horizonte', 'São Paulo', 'Cuiaba', 'Campo Grande', 'São Paulo', 'Campo Grande', 'Cuiaba'] print(cidades) print(len(cidades)) # Agora precisamos saber quantas cidades distintas, ou seja, únicas, temos. # O que você faria? Faria um loop na lista...? # Podemos utilizar o set para isso: print(len(set(cidades)))
#TheBestTimeToParty # celebrities Comes Goes # beyonce 6 7 # Taylor 7 9 # Brad 10 11 # Katy 10 12 # Tom 8 10 # Drake 9 11 # Alicia 6 8 # [6 7) <- notice that at 6:59, Beyonce is there, but 7, she will be gone # but the great thing about this, is that python intervals are integer; why does this help us? # Answer: The range when someone is there, say 9-11 only needs to care about the times [9,10], inclusive. # therefore python's natural usage of lists that start inclusively at the first value, and end non-inclusive are perfect. # e.g. mylist[9:11] means it represents 9, 10 but not 11 ###### # How to build this array above to represent my celebs and their comes/goes times? # I chose two arrays; one for the celebs, and one for the times. In reality, the names of the celebs aren't given, however # I think I will keep a list of their names. def firstAttempt(): celebs = ['beyonce', 'taylor', 'brad', 'katy', 'tom', 'drake', 'alicia'] times = [list(range(6,7)), list(range(7,9)), list(range(10,12)), list(range(10,12)), list(range(8,10)), list(range(9,11)), list(range(6,8))] maxcount = 0 maxindex = 0 celebNames=['' for x in range(max(max(times)) + 1)] count=[0 for x in range(max(max(times)) + 1)] #print (times) #print (min(min(times))) for j in range(min(min(times)) , max(max(times))+1): for index, time in enumerate(times): if(time[0] == j): count[j] = count[j]+1 celebNames[j] = ' '.join([celebNames[j],celebs[index-len(celebs)]]) elif(len(time) > 1): if(time[0] <= j) and (j < (time[len(time)-1] + 1)): count[j] = count[j] + 1 celebNames[j] = ' '.join([celebNames[j],celebs[index-len(celebs)]]) if(maxcount < count[j]): maxindex = j maxcount = count[j] print("The best time to meet a celebrity is at ", maxindex, " and you would meet these people: ", celebNames[maxindex]) firstAttempt()
class Heap: def __init__(self, initial_size=10): self.cbt = [None for _ in range(initial_size)] # initialize arrays self.next_index = 0 # denotes next index where new element should go def insert(self, data): # insert element at the next index self.cbt[self.next_index] = data # heapify self._up_heapify() # increase index by 1 self.next_index += 1 # double the array and copy elements if next_index goes out of array bounds if self.next_index >= len(self.cbt): temp = self.cbt self.cbt = [None for _ in range(2 * len(self.cbt))] for index in range(self.next_index): self.cbt[index] = temp[index] def remove(self): if self.size() == 0: return None self.next_index -= 1 to_remove = self.cbt[0] last_element = self.cbt[self.next_index] # place last element of the cbt at the root self.cbt[0] = last_element # we do not remove the elementm, rather we allow next `insert` operation to overwrite it self.cbt[self.next_index] = to_remove self._down_heapify() return to_remove def size(self): return self.next_index def is_empty(self): return self.size() == 0 def _up_heapify(self): # print("inside heapify") child_index = self.next_index while child_index >= 1: parent_index = (child_index - 1) // 2 parent_element = self.cbt[parent_index] child_element = self.cbt[child_index] if parent_element > child_element: self.cbt[parent_index] = child_element self.cbt[child_index] = parent_element child_index = parent_index else: break def _down_heapify(self): parent_index = 0 while parent_index < self.next_index: left_child_index = 2 * parent_index + 1 right_child_index = 2 * parent_index + 2 parent = self.cbt[parent_index] left_child = None right_child = None min_element = parent # check if left child exists if left_child_index < self.next_index: left_child = self.cbt[left_child_index] # check if right child exists if right_child_index < self.next_index: right_child = self.cbt[right_child_index] # compare with left child if left_child is not None: min_element = min(parent, left_child) # compare with right child if right_child is not None: min_element = min(right_child, min_element) # check if parent is rightly placed if min_element == parent: return if min_element == left_child: self.cbt[left_child_index] = parent self.cbt[parent_index] = min_element parent = left_child_index elif min_element == right_child: self.cbt[right_child_index] = parent self.cbt[parent_index] = min_element parent = right_child_index def get_minimum(self): # Returns the minimum element present in the heap if self.size() == 0: return None return self.cbt[0] if __name__ == '__main__': heap_size = 5 heap = Heap(heap_size) elements = [1, 2, 3, 4, 1, 2] for element in elements: heap.insert(element) print('Inserted elements: {}'.format(elements)) print('size of heap: {}'.format(heap.size())) for _ in range(4): print('Call remove: {}'.format(heap.remove())) print('Call get_minimum: {}'.format(heap.get_minimum())) for _ in range(2): print('Call remove: {}'.format(heap.remove())) print('size of heap: {}'.format(heap.size())) print('Call remove: {}'.format(heap.remove())) print('Call is_empty: {}'.format(heap.is_empty()))
class Solution: def specialArray(self, nums: List[int]) -> int: for i in range(len(nums) + 1): count = 0 for num in nums: if num >= i: count += 1 if count > i: break if count == i: return i return -1
#!/usr/bin/env python3 #Faça um programa que leia 5 números e informe o maior número. #Exemplo com FOR lista=[] for num in range(0,5,1): lista.append(int(input("Digite o número: "))) print("O maior número digitado é: "+str(max(lista))) #Exemplo com WHILE #lista=[] #while len(lista)<5: #lista.append(input("Digite o numero: ")) #print("O maior numero digitado é: "+str(max(lista)))
decoration_prices = { 'ornament set': 2, 'tree skirt': 5, 'tree garlands': 3, 'tree lights': 15, } quantity = int(input()) days = int(input()) total_spirit = 0 total_cost = 0 for day in range(2, days+1): if day % 11 == 0: quantity += 2 if day % 2 == 0: total_spirit += 5 total_cost += decoration_prices['ornament set'] * quantity if day % 3 == 0: total_spirit += 13 total_cost += ( decoration_prices['tree skirt'] + decoration_prices['tree garlands'] ) * quantity if day % 5 == 0: total_spirit += 17 total_cost += decoration_prices['tree lights'] * quantity if day % 3 == 0: total_spirit += 30 if day % 10 == 0: total_spirit -= 20 total_cost += ( decoration_prices['tree skirt'] + decoration_prices['tree garlands'] + decoration_prices['tree lights'] ) if day == days: total_spirit -= 30 print(f'cost {total_cost}') print(f'spirit {total_spirit}')
# Leetcode 35. Search Insert Position # # Link: https://leetcode.com/problems/search-insert-position/ # Difficulty: Easy # Solution using BinarySearch # Complexity: # O(logN) time | where N represent the number of elements in the input array # O(1) space class Solution: def searchInsert(self, nums: List[int], target: int) -> int: left, right = 0, len(nums) - 1 while left <= right: pivot = (left + right) // 2 if nums[pivot] > target: right = pivot - 1 elif nums[pivot] < target: left = pivot + 1 else: return pivot return left
def darken(hex_str: str, amount: int) -> str: rgb = hex_to_rgb(hex_str) rgb_result = tuple(map(lambda x: clamp(x - amount, 0, 255), rgb)) return rgb_to_hex(rgb_result) def hex_to_rgb(hex_str: str) -> tuple: hex_ = hex_str.lstrip('#') return tuple(int(hex_[i:i+2], 16) for i in (0, 2, 4)) def rgb_to_hex(rgb: tuple) -> str: return '#' + ''.join(map(lambda x: (str(hex(x))[2:4]).zfill(2), rgb)) def clamp(value: int, min_: int, max_: int) -> int: return min(max_, max(min_, value))
""" @Author: huuuuusy @GitHub: https://github.com/huuuuusy 系统: Ubuntu 18.04 IDE: VS Code 1.36 工具: python == 3.7.3 """ """ 思路: 注意补数的含义,采用二进制计算 结果: 执行用时 : 48 ms, 在所有 Python3 提交中击败了55.23%的用户 内存消耗 : 13.8 MB, 在所有 Python3 提交中击败了100%的用户 """ class Solution: def findComplement(self, num): return 2**(len(bin(num))-2)- 1 - num if __name__ == "__main__": num = 5 answer = Solution().findComplement(num) print(answer)
# spread # Manas Dash # 24th aug 2020 # Implements javascript's [].concat(...arr). Flattens the list(non-deep) and returns a list. def spread(arg): ret = [] for i in arg: if isinstance(i, list): ret.extend(i) else: ret.append(i) return ret print(spread([1, 2, 3, [4, 5, 6], [7], 8, 9])) print(spread(['The', 'quick', 'brown', ['fox', 'jumps', 'over'], ['the'], 'lazy', 'dog'])) # Output # [1,2,3,4,5,6,7,8,9] # ['The', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog']
# testnet_nanoswap_pools = {(77279127, 77279142): 77282939} # (asset1_id, asset2_id) -> app_id ASSET1_ID = 77279127 ASSET2_ID = 77279142 # Test UST asset # Set to zero to initialize a new test asset USTEST_ID = 0 # USTEST_ID = 85382910 # USTEST_ID = 80691763 # MetaPool App Id # Set to zero to initialize a new metapool METAPOOL_APP_ID = 0 # METAPOOL_APP_ID = 85383055 # METAPOOL_APP_ID = 83592564 # metaswap_contract_id = 81880111 # Default Pool argument MIN_INCREMENT = 1000 FEE_BPS = 30
quant_atual = int(input('Quanto desse produto temos?')) quant_max = 95 quant_min = 10 quant_media = ((quant_max + quant_min)/2) if quant_atual >= quant_media: print('Não efetuar compra') else: print('Efetuar compra')
num = int(input()) isHave = False for i in range(1, 31): for j in range(1, 31): for k in range(1, 31): if i < j < k: sum = i + j + k if sum == num: print(f'{i} + {j} + {k} = {sum}') isHave=True if i > j > k: sum = i * j * k if sum == num: print(f'{i} * {j} * {k} = {sum}') isHave=True if not isHave: print('No!') # for i in range(3, num+1): # for j in range(2, num): # if j > i: # continue # for k in range(1, num - 1): # if i > j > k: # sum = i * j * k # if sum == num: # print(f'{i} * {j} * {k} = {sum}')
class MOD(object): """ mod K 上の演算ライブラリ """ def __init__(self, modulo: int): self.modulo = modulo self.size = 2 self.fact = [1, 1] self.inv = [1, 1] self.finv = [0, 1] def comb(self, n: int, k: int) -> int: """ nCk (組み合わせ) を求める """ if n < k or n < 0 or k < 0: return 0 if n == 0 or k == 0 or n == k: return 1 if self.size < n: for i in range(self.size, n + 1): self.fact.append(self.fact[-1] * i % self.modulo) self.inv.append(self.modulo - self.inv[self.modulo % i] * (self.modulo // i) % self.modulo) self.finv.append(self.finv[-1] * self.inv[i] % self.modulo) self.size = n return self.fact[n] * (self.finv[k] * self.finv[n - k] % self.modulo) % self.modulo M = 10 ** 9 + 7 n = int(input()) aa = list(map(int, input().split())) ans = 0 m = MOD(M) for i, a in enumerate(aa): c = m.comb(n - 1, i) ans += c * a ans %= M print(ans)
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()
# Crie um programa onde o usuário possa digitar vários valores numéricos e cadastre-os em uma lista. Caso o número já exista lá dentro, ele não será adicionado. No final, serão exibidos todos os valores únicos digitados, em ordem crescente. valores = [] while True: num = int(input('Digite um valor: ')) if num in valores: print('Valor duplicado! Não será adicionado.') else: valores.append(num) print('Valor adicionado com sucesso!') resposta = str(input('Deseja continuar? [S/N]: ')).strip().upper()[0] while resposta not in 'SN': resposta = str(input('Tente novamente. Deseja continuar? [S/N]: ')).strip().upper()[0] if resposta == 'N': break print('=' * 30) valores.sort() print(f'Você digitou os valores {valores}')
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)
{ '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' ] }] }
# https://leetcode.com/problems/3sum/ # Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? # Find all unique triplets in the array which gives the sum of zero. # # Note: # The solution set must not contain duplicate triplets. # # Example: # Given array nums = [-1, 0, 1, 2, -1, -4], # # A solution set is: # [ # [-1, 0, 1], # [-1, -1, 2] # ] # # Related Topics Array Two Pointers # 从 nums 中找到三个数,满足和为 0 def sum3(nums): if len(nums) < 3: return [] nums.sort() res = [] for k, v in enumerate(nums[:-2]): if k >= 1 and v == nums[k - 1]: continue cache = {} for n in nums[k + 1 :]: if n not in cache: cache[-v - n] = 1 else: tmp = [v, -v - n, n] if tmp not in res: res += [tmp] return res assert sum3([-1, 0]) == [] assert sum3([0, 0, 0, 0]) == [[0, 0, 0]] assert sum3([-1, 0, 1, 2, -1, -4]) == [[-1, 0, 1], [-1, -1, 2]]
string = list(input()) print(string) arr_alpha = ['a', 'b', 'c', 'd', 'e', 'f','g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] arr_index = [-1] * 26 for char in string: arr_index[arr_alpha.index(char)] = string.index(char) for i in arr_index: print(i, end=' ') '''틀왜맞???ㅋㅋㅋㅋㅋㅋㅋㅋ 내가 생각할 때, 같은 알파벳이 뒤에 나오는 경우 그 인덱스로 바뀌는 줄 알았는데 아님....왜??? idea : 최초에 -1일때만 자리값을 넣어주도록 하기 ''' '''다른 사람 코드 word = input() alph = list(range(97, 123)) for x in alph: print(word.find(chr(x)), end=' ') '''
#!/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) )
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']
#Number to Day Translation Days = { 0: {"Name": "Pondělí"}, 1: {"Name": "Úterý"}, 2: {"Name": "Středa"}, 3: {"Name": "Čtvrtek"}, 4: {"Name": "Pátek"}, 5: {"Name": "Pondělí"}, #Should be "Sobota" or "Saturday", but using "Monday" since embeds skip weekends 6: {"Name": "Úterý"} #Should be "Neděle" or "Sunday", but using "Tuesday" since embeds skip weekends }
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()
# -*- coding: utf-8 -*- """Top-level package for PyPITest.""" __author__ = """Wanhu Tang""" __email__ = 'test@test.com' __version__ = '0.1.0'
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 Solution: def maximumProduct(self, nums): nums.sort() a, b, c = nums[:3] # 前三个 e, d, f = nums[-3:] # 后三个 return max(e * d * f, a * b * f) slu = Solution() print(slu.maximumProduct([1, 2, 2, 3]))
{ "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)
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 Data: def __init__(self, data_string): self.data_string = data_string @classmethod def data_format(cls, data): try: cls.my_data = list(map(int, data.split('-'))) print(cls.my_data) except ValueError: print("В дате должны быть только цифры") @staticmethod def data_validation(string): try: my_date = list(map(int, Data(string).data_string.split('-'))) print(string) if (my_date[0] <= 31 and my_date[1] <= 12) else print("Date is invalid") except ValueError: print("В дате должны быть только цифры") a = Data("12-01-2020") Data.data_format("12-03-2020") a.data_format("13-04-2020") a.data_validation("64-06-2020")
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
"""Switch between Google or open source dependencies.""" # Switch between Google and OSS dependencies USE_OSS = True # Per-dependency switches determining whether each dependency is ready # to be replaced by its OSS equivalence. # TODO(danmane,mrry,opensource): Flip these switches, then remove them OSS_APP = True OSS_FLAGS = True OSS_GFILE = True OSS_GOOGLETEST = True OSS_LOGGING = True OSS_PARAMETERIZED = True
"""This is the starting point for a Python package. """ __version__ = '0.0.1'
class Solution(object): def restoreIpAddresses(self, s): """ :type s: str :rtype: List[str] """ return self.restoreHelper(s, 0, len(s)) def restoreHelper(self, s, index, length, string="", dot=0): result = [] if dot == 3: if int(s[index:]) <= 255 and (s[index] != "0" or length == 1): return [string + s[index:]] else: for i in range(1, min(length, 4)): num = s[index:index+i] if int(num) <= 255 and (s[index] != "0" or i == 1): result += self.restoreHelper(s, index+i, length-i, string+num+".", dot+1) return result
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)" ] }
# # 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)
''' 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")
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 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) '''
# This class is an object blueprint for all video content class Video(): def __init__(self, title, duration, rating): """Video class - Normally subclassed""" #constructor self.title = title self.duration = duration self.rating = rating
#!/usr/bin/env python3 # -*- coding: utf-8 -*- if __name__ == "__main__": str1 = str(input('Введите что-нибудь --> ')).lower() str2 = str(input('Введите что-нибудь ещё раз --> ')).lower() common_letters = set(str1) & set(str2) print(common_letters)
class WorksheetExt: def __init__(self, worksheet): self.worksheet = worksheet self.row = 0 self.is_pvs = False def row_inc(self): self.row += 1 def get_row(self): return self.row def is_pvs_added(self): return self.is_pvs def add_header_row(self, hlist, hformat): column = 0 for item in hlist: self.worksheet.write(self.row, column, item, hformat) column += 1 self.row_inc() def add_subheader(self, text, cformat): self.row_inc() self.worksheet.write(self.row, 0, text, cformat) for i in range(1, 4): self.worksheet.write(self.row, i, "", cformat) self.row_inc() def add_pvs(self, cformat): self.is_pvs = True self.add_subheader("PVS Report:", cformat)
class Solution: """ @param ratings: Children's ratings @return: the minimum candies you must give """ def candy(self, ratings): if not ratings: return 0 pre_rating = ratings[0] now_candy = 1 left2right_candies = [now_candy] for rating in ratings[1:]: if rating > pre_rating: now_candy += 1 left2right_candies.append(now_candy) else: now_candy = 1 left2right_candies.append(now_candy) pre_rating = rating pre_rating = ratings[-1] now_candy = 1 right2left_candies = [now_candy] for rating in ratings[:-1][::-1]: if rating > pre_rating: now_candy += 1 right2left_candies.append(now_candy) else: now_candy = 1 right2left_candies.append(now_candy) pre_rating = rating candies = [max(left2right_candies[i], right2left_candies[-i-1]) for i in range(len(ratings))] return sum(candies) # class Solution: # """ # @param ratings: Children's ratings # @return: the minimum candies you must give # """ # def candy(self, ratings): # if not ratings: # return 0 # if len(ratings) == 1: # return 1 # pre_rating = ratings[0] # now_candy = 1 # ans = now_candy # increasing = 1 if ratings[1] > pre_rating else -1 # top = 0 # now_top = 0 # for rating in ratings[1:]: # if increasing * rating > increasing * pre_rating: # now_candy += 1 # now_top = now_candy # ans += now_candy # elif rating == pre_rating: # now_candy = 1 # ans += now_candy # now_top = now_candy # else: # if increasing < 0: # if now_top >= top and top != 0: # ans += now_top - top + 1 # now_top = now_candy = 2 # else: # top = now_top # now_top = now_candy = 1 # ans += now_candy # increasing = -increasing # pre_rating = rating # print(ans) # print((increasing, now_top, top)) # if increasing < 0 and now_top >= top and top != 0: # ans += now_top - top + 1 # return ans
# # 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)
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'
#MaBe def linhas(titulo): print("-" * (len(titulo)+4)) print(f' {titulo}') print("-" * (len(titulo)+4)) linhas('Olá, Mundo!')
# 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
""" In this sheet searching algorithms are placed: Binary Search -> to find an element in a sorted array Quick Select -> to find kth smallest element in the array Search In Sorted Matrix -> to find an element in a sorted matrix """ # Common binary search: # Find a target in a sorted array. # Time O(log(N)) / Space O(1) def binarySearch(array, target): left_pointer = 0 right_pointer = len(array) - 1 while right_pointer - left_pointer >= 0: index = int((right_pointer + left_pointer) / 2) if array[index] == target: return index elif array[index] < target: left_pointer = index + 1 else: right_pointer = index - 1 return -1 # Return kth smallest element from the array # Avg: Time O(N) / Space O(1) # Worst: Time O(N*log(N)) / Space O(1) # The idea behind is to use quickSort # technique -> find pivot, place it in # the appropriate place and check at which # index it is. Then you might ignore # some part of your array to find kth element. def quickselect(array, k): if k > len(array): print("k is greater than array length") return start_point = 0 end_point = len(array) - 1 while True: right = end_point pivot = start_point left = pivot + 1 while right >= left: if array[left] > array[pivot] > array[right]: swap(array, left, right) if array[left] <= array[pivot]: left += 1 if array[right] >= array[pivot]: right -= 1 if right == k - 1: return array[pivot] swap(array, pivot, right) if right < k - 1: start_point = right + 1 else: end_point = right - 1 # Search in sorted matrix: Time O(R + C). # If no -> return [-1, -1] # idea: check if target can be in particular # row by comparing the last element in this # row. If no -> move to the next row. def searchInSortedMatrix(matrix, target): r = 0 c = len(matrix[0])-1 while r < len(matrix) and c >= 0: current_point = matrix[r][c] if current_point == target: return [r, c] elif current_point < target: r += 1 else: c -= 1 return [-1, -1] def swap(array, i, j): array[i], array[j] = array[j], array[i]
# # 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)
# Exercício 13 lista 1 print("--------Calcula o gasto total da granja para identificar todos os frangos-----------") qtdFrangos = int(input("Digite a quantidade de frangos:")) chipAlimentacao = float(input("Digite o valor do chip alimentação:")) chipIdentidade = float(input("Digite o valor do chip identificação:")) diferencaValor = abs(chipAlimentacao - chipIdentidade) maior = 0 print(diferencaValor) if(chipIdentidade > chipAlimentacao): if( diferencaValor <= (0.20 * chipIdentidade)): totalChipIdentidade = chipIdentidade * qtdFrangos aumento = qtdFrangos* 0.20 qtdFrangosAjustada = qtdFrangos + aumento totalChipAlimentacao = (qtdFrangosAjustada * chipAlimentacao) * 2 print("Os chips de alimentação sofreram um aumento de 20% :",qtdFrangosAjustada) else: totalChipAlimentacao = (qtdFrangos * chipAlimentacao) * 2 totalChipIdentidade = qtdFrangos * chipIdentidade else: if( diferencaValor <= (0.20 * chipAlimentacao)): aumento = qtdFrangos* 0.20 qtdFrangosAjustada = qtdFrangos + aumento totalChipIdentidade = (chipIdentidade * qtdFrangosAjustada) totalChipAlimentacao = (qtdFrangos * chipAlimentacao) * 2 print("Os chips de identificação sofreram um aumento de 20% :",qtdFrangosAjustada) else: totalChipAlimentacao = (qtdFrangos * chipAlimentacao) * 2 totalChipIdentidade = qtdFrangos * chipIdentidade print("O valor total para identificar os frangos é:") print("Chip alimentação: R$ %.2f"%round(totalChipAlimentacao, 2)) print("Chip identificação: R$ %.2f"%round(totalChipIdentidade, 2)) print("Valor total: R$ %.2f"%round((totalChipIdentidade + totalChipAlimentacao), 2))
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!")
# 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))
# # 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)