content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
class State: def __init__(self): self.StateId = 0 self.StateName = "" class City: def __init__(self): self.CityId = 0 self.CityName = "" self.StateId = 0 class Properties: def __init__(self): self.Area=0 self.Age=0 self.Rooms=0 self.CityId=0 self.Price=0 self.Type=0
class State: def __init__(self): self.StateId = 0 self.StateName = '' class City: def __init__(self): self.CityId = 0 self.CityName = '' self.StateId = 0 class Properties: def __init__(self): self.Area = 0 self.Age = 0 self.Rooms = 0 self.CityId = 0 self.Price = 0 self.Type = 0
# substituindo com o metodo replace s1 = 'Um mafagafinho, dois mafagafinhos, tres mafagafinhos...' print(s1.replace('mafagafinho', 'gatinho')) # podemos adicionar a quantidade substituicao que sera feitas print(s1.replace('mafagafinho', 'gatinho', 1))
s1 = 'Um mafagafinho, dois mafagafinhos, tres mafagafinhos...' print(s1.replace('mafagafinho', 'gatinho')) print(s1.replace('mafagafinho', 'gatinho', 1))
class Movies(object): def __init__(self, **kwargs): short_plot = kwargs.get('Plot')[0:170] self.title = kwargs.get('Title') self.poster_link = kwargs.get('Poster') self.rated = kwargs.get('Rated') self.type = kwargs.get('Type') self.awards = kwargs.get('Awards') self.year = kwargs.get('Year') self.released = kwargs.get('Released') self.genre = kwargs.get('Genre') self.runtime = kwargs.get('Runtime') self.actors = kwargs.get('Actors') self.director = kwargs.get('Director') self.writer = kwargs.get('Writer') self.link_id = 'http://www.imdb.com/title/' + kwargs.get('imdbID') self.plot = short_plot # self.plot = kwargs.get('Plot') self.imdb_rating = kwargs.get('imdbRating') self.imdb_votes = kwargs.get('imdbVotes') self.language = kwargs.get('Language') self.trailer = kwargs.get('trailer') def __str__(self): return str(self.title) def get_imdb_link(self): pass def get_youtube_trailer_link(self): pass
class Movies(object): def __init__(self, **kwargs): short_plot = kwargs.get('Plot')[0:170] self.title = kwargs.get('Title') self.poster_link = kwargs.get('Poster') self.rated = kwargs.get('Rated') self.type = kwargs.get('Type') self.awards = kwargs.get('Awards') self.year = kwargs.get('Year') self.released = kwargs.get('Released') self.genre = kwargs.get('Genre') self.runtime = kwargs.get('Runtime') self.actors = kwargs.get('Actors') self.director = kwargs.get('Director') self.writer = kwargs.get('Writer') self.link_id = 'http://www.imdb.com/title/' + kwargs.get('imdbID') self.plot = short_plot self.imdb_rating = kwargs.get('imdbRating') self.imdb_votes = kwargs.get('imdbVotes') self.language = kwargs.get('Language') self.trailer = kwargs.get('trailer') def __str__(self): return str(self.title) def get_imdb_link(self): pass def get_youtube_trailer_link(self): pass
class Solution: def maxLength(self, arr: List[str]) -> int: results = [""] max_len = 0 for word in arr: for concat_str in results: new_str = concat_str + word if len(new_str) == len(set(new_str)): results.append(new_str) max_len = max(max_len, len(new_str)) return max_len class Solution: def maxLength(self, arr: List[str]) -> int: str_bitmap = {} refined_array = [] def str_to_bitmap(string): bitmap = 0 for letter in string: next_bitmap = bitmap | (1 << (ord(letter) - ord('a'))) if next_bitmap == bitmap: return False, None bitmap = next_bitmap return True, bitmap # Filter out strings that contain duplicated characters # convert the string to its corresponding bitmap for string in arr: is_unique, bitmap = str_to_bitmap(string) if is_unique: refined_array.append(string) str_bitmap[string] = bitmap max_len = float('-inf') # generate all possible permutations def backtrack(curr_index, curr_bitmap, curr_len): nonlocal max_len max_len = max(max_len, curr_len) for next_index in range(curr_index, len(refined_array)): string = refined_array[next_index] # check there is no duplicate when appending a new string concat_bitmap = str_bitmap[string] | curr_bitmap check_bitmap = str_bitmap[string] ^ curr_bitmap if concat_bitmap == check_bitmap: backtrack(next_index+1, concat_bitmap, curr_len + len(string)) backtrack(0, 0, 0) return max_len
class Solution: def max_length(self, arr: List[str]) -> int: results = [''] max_len = 0 for word in arr: for concat_str in results: new_str = concat_str + word if len(new_str) == len(set(new_str)): results.append(new_str) max_len = max(max_len, len(new_str)) return max_len class Solution: def max_length(self, arr: List[str]) -> int: str_bitmap = {} refined_array = [] def str_to_bitmap(string): bitmap = 0 for letter in string: next_bitmap = bitmap | 1 << ord(letter) - ord('a') if next_bitmap == bitmap: return (False, None) bitmap = next_bitmap return (True, bitmap) for string in arr: (is_unique, bitmap) = str_to_bitmap(string) if is_unique: refined_array.append(string) str_bitmap[string] = bitmap max_len = float('-inf') def backtrack(curr_index, curr_bitmap, curr_len): nonlocal max_len max_len = max(max_len, curr_len) for next_index in range(curr_index, len(refined_array)): string = refined_array[next_index] concat_bitmap = str_bitmap[string] | curr_bitmap check_bitmap = str_bitmap[string] ^ curr_bitmap if concat_bitmap == check_bitmap: backtrack(next_index + 1, concat_bitmap, curr_len + len(string)) backtrack(0, 0, 0) return max_len
class Solution: def longestCommonSubsequence(self, text1: str, text2: str) -> int: # The idea is to use 2D dynamic programming from the top-left # if the characters are match, # we set the cell = 1 + top-left # if the characters aren't match, # we set the cell = max(top or left) dp = [[0 for _ in range(len(text2))] for _ in range(len(text1))] for i in range(len(text1)): for j in range(len(text2)): if text1[i] == text2[j]: dp[i][j] = 1 + (dp[i-1][j-1] if (i > 0 and j > 0) else 0) else: dp[i][j] = max(dp[i-1][j] if i > 0 else 0, dp[i][j-1] if j > 0 else 0) return dp[-1][-1]
class Solution: def longest_common_subsequence(self, text1: str, text2: str) -> int: dp = [[0 for _ in range(len(text2))] for _ in range(len(text1))] for i in range(len(text1)): for j in range(len(text2)): if text1[i] == text2[j]: dp[i][j] = 1 + (dp[i - 1][j - 1] if i > 0 and j > 0 else 0) else: dp[i][j] = max(dp[i - 1][j] if i > 0 else 0, dp[i][j - 1] if j > 0 else 0) return dp[-1][-1]
N=int(input()) for i in range (-(N-1),N): for j in range (-2*(N-1),2*(N-1)+1): if j%2==0 and (abs(j//2)+abs(i))< N: print (chr(abs(j//2)+abs(i)+ord('a')),end='') else: print('-',end='') print()
n = int(input()) for i in range(-(N - 1), N): for j in range(-2 * (N - 1), 2 * (N - 1) + 1): if j % 2 == 0 and abs(j // 2) + abs(i) < N: print(chr(abs(j // 2) + abs(i) + ord('a')), end='') else: print('-', end='') print()
# coding: utf8 # try something like def index(): rows = db((db.activity.type=='project')&(db.activity.status=='accepted')).select() if rows: return dict(projects=rows) else: return plugin_flatpage() @auth.requires_login() def apply(): project = db.activity[request.args(1)] partaker = db((db.partaker.activity == request.args(1)) & (db.partaker.user_id == auth.user_id)).select().first() db.partaker.user_id.default = auth.user_id db.partaker.user_id.writable = False db.partaker.user_id.readable = False db.partaker.activity.default = request.args(1) db.partaker.activity.writable = False db.partaker.activity.readable = False if partaker is None: form = SQLFORM(db.partaker) if form.accepts(request.vars, session, formname="new"): if not form.vars.activity in (None, ""): db.partaker.insert(user_id=auth.user_id, activity=form.vars.activity) session.flash = T("Thanks for joining the partakers list") redirect(URL(c="projects", f="index")) else: db.partaker.id.readable = False form = SQLFORM(db.partaker, partaker.id) if form.accepts(request.vars, session, formname="update"): session.flash = T("Your project's info was updated") redirect(URL(c="projects", f="index")) return dict(form=form, partaker=partaker, project=project) @auth.requires_login() def dismiss(): partaker = db.partaker[request.args(1)] project = partaker.activity partaker.delete_record() session.flash = T("You dismissed the project" + " " + str(project.title)) redirect(URL(c="projects", f="index")) @auth.requires(user_is_author_or_manager(activity_id=request.args(1))) def partakers(): project = db.activity[request.args(1)] partakers = db(db.partaker.activity == project.id).select() return dict(partakers=partakers, project=project)
def index(): rows = db((db.activity.type == 'project') & (db.activity.status == 'accepted')).select() if rows: return dict(projects=rows) else: return plugin_flatpage() @auth.requires_login() def apply(): project = db.activity[request.args(1)] partaker = db((db.partaker.activity == request.args(1)) & (db.partaker.user_id == auth.user_id)).select().first() db.partaker.user_id.default = auth.user_id db.partaker.user_id.writable = False db.partaker.user_id.readable = False db.partaker.activity.default = request.args(1) db.partaker.activity.writable = False db.partaker.activity.readable = False if partaker is None: form = sqlform(db.partaker) if form.accepts(request.vars, session, formname='new'): if not form.vars.activity in (None, ''): db.partaker.insert(user_id=auth.user_id, activity=form.vars.activity) session.flash = t('Thanks for joining the partakers list') redirect(url(c='projects', f='index')) else: db.partaker.id.readable = False form = sqlform(db.partaker, partaker.id) if form.accepts(request.vars, session, formname='update'): session.flash = t("Your project's info was updated") redirect(url(c='projects', f='index')) return dict(form=form, partaker=partaker, project=project) @auth.requires_login() def dismiss(): partaker = db.partaker[request.args(1)] project = partaker.activity partaker.delete_record() session.flash = t('You dismissed the project' + ' ' + str(project.title)) redirect(url(c='projects', f='index')) @auth.requires(user_is_author_or_manager(activity_id=request.args(1))) def partakers(): project = db.activity[request.args(1)] partakers = db(db.partaker.activity == project.id).select() return dict(partakers=partakers, project=project)
N = int(input()) C = set() for _ in range(N): S, T = map(str, input().split()) C.add(tuple([S, T])) if len(C) == N: print("No") else: print("Yes")
n = int(input()) c = set() for _ in range(N): (s, t) = map(str, input().split()) C.add(tuple([S, T])) if len(C) == N: print('No') else: print('Yes')
class DoubleLinkedList: def __init__(self, value): self.prev = self self.next = self self.value = value def get_next(self): return self.next def get_prev(self): return self.prev def get_value(self): return self.value def move_clockwise(self, steps=1): node = self for i in range(steps): node = node.get_next() return node def move_counter_clockwise(self, steps=1): node = self for i in range(steps): node = node.get_prev() return node def insert_node(self, node): node.prev = self node.next = self.next self.next.prev = node self.next = node def remove_node(self): self.prev.next = self.next self.next.prev = self.prev return self.next
class Doublelinkedlist: def __init__(self, value): self.prev = self self.next = self self.value = value def get_next(self): return self.next def get_prev(self): return self.prev def get_value(self): return self.value def move_clockwise(self, steps=1): node = self for i in range(steps): node = node.get_next() return node def move_counter_clockwise(self, steps=1): node = self for i in range(steps): node = node.get_prev() return node def insert_node(self, node): node.prev = self node.next = self.next self.next.prev = node self.next = node def remove_node(self): self.prev.next = self.next self.next.prev = self.prev return self.next
golfcube = dm.sample_data.golf() stratcube = dm.cube.StratigraphyCube.from_DataCube(golfcube, dz=0.05) stratcube.register_section('demo', dm.section.StrikeSection(distance_idx=10)) fig, ax = plt.subplots(5, 1, sharex=True, sharey=True, figsize=(12, 9)) ax = ax.flatten() for i, var in enumerate(['time', 'eta', 'velocity', 'discharge', 'sandfrac']): stratcube.show_section('demo', var, ax=ax[i], label=True, style='shaded', data='stratigraphy')
golfcube = dm.sample_data.golf() stratcube = dm.cube.StratigraphyCube.from_DataCube(golfcube, dz=0.05) stratcube.register_section('demo', dm.section.StrikeSection(distance_idx=10)) (fig, ax) = plt.subplots(5, 1, sharex=True, sharey=True, figsize=(12, 9)) ax = ax.flatten() for (i, var) in enumerate(['time', 'eta', 'velocity', 'discharge', 'sandfrac']): stratcube.show_section('demo', var, ax=ax[i], label=True, style='shaded', data='stratigraphy')
def test_malware_have_actors(attck_fixture): """ All MITRE Enterprise ATT&CK Malware should have Actors Args: attck_fixture ([type]): our default MITRE Enterprise ATT&CK JSON fixture """ for malware in attck_fixture.enterprise.malwares: if malware.actors: assert getattr(malware,'actors') def test_malware_have_techniques(attck_fixture): """ All MITRE Enterprise ATT&CK Malware should havre techniques Args: attck_fixture ([type]): our default MITRE Enterprise ATT&CK JSON fixture """ for malware in attck_fixture.enterprise.malwares: if malware.techniques: assert getattr(malware,'techniques')
def test_malware_have_actors(attck_fixture): """ All MITRE Enterprise ATT&CK Malware should have Actors Args: attck_fixture ([type]): our default MITRE Enterprise ATT&CK JSON fixture """ for malware in attck_fixture.enterprise.malwares: if malware.actors: assert getattr(malware, 'actors') def test_malware_have_techniques(attck_fixture): """ All MITRE Enterprise ATT&CK Malware should havre techniques Args: attck_fixture ([type]): our default MITRE Enterprise ATT&CK JSON fixture """ for malware in attck_fixture.enterprise.malwares: if malware.techniques: assert getattr(malware, 'techniques')
__all__ = ['USBQException', 'USBQInvocationError', 'USBQDeviceNotConnected'] class USBQException(Exception): 'Base of all USBQ exceptions' class USBQInvocationError(USBQException): 'Error invoking USBQ' class USBQDeviceNotConnected(USBQException): 'USBQ device not connected.'
__all__ = ['USBQException', 'USBQInvocationError', 'USBQDeviceNotConnected'] class Usbqexception(Exception): """Base of all USBQ exceptions""" class Usbqinvocationerror(USBQException): """Error invoking USBQ""" class Usbqdevicenotconnected(USBQException): """USBQ device not connected."""
""" [2017-11-13] Challenge #340 [Easy] First Recurring Character https://www.reddit.com/r/dailyprogrammer/comments/7cnqtw/20171113_challenge_340_easy_first_recurring/ # Description Write a program that outputs the first recurring character in a string. # Formal Inputs & Outputs ## Input Description A string of alphabetical characters. Example: ABCDEBC ## Output description The first recurring character from the input. From the above example: B # Challenge Input IKEUNFUVFV PXLJOUDJVZGQHLBHGXIW *l1J?)yn%R[}9~1"=k7]9;0[$ # Bonus Return the index (0 or 1 based, but please specify) where the original character is found in the string. # Credit This challenge was suggested by user /u/HydratedCabbage, many thanks! Have a good challenge idea? Consider submitting it to /r/dailyprogrammer_ideas and there's a good chance we'll use it. """ def main(): pass if __name__ == "__main__": main()
""" [2017-11-13] Challenge #340 [Easy] First Recurring Character https://www.reddit.com/r/dailyprogrammer/comments/7cnqtw/20171113_challenge_340_easy_first_recurring/ # Description Write a program that outputs the first recurring character in a string. # Formal Inputs & Outputs ## Input Description A string of alphabetical characters. Example: ABCDEBC ## Output description The first recurring character from the input. From the above example: B # Challenge Input IKEUNFUVFV PXLJOUDJVZGQHLBHGXIW *l1J?)yn%R[}9~1"=k7]9;0[$ # Bonus Return the index (0 or 1 based, but please specify) where the original character is found in the string. # Credit This challenge was suggested by user /u/HydratedCabbage, many thanks! Have a good challenge idea? Consider submitting it to /r/dailyprogrammer_ideas and there's a good chance we'll use it. """ def main(): pass if __name__ == '__main__': main()
def test_exposed(ua): """Test if the UnitAgent exposes all required methods.""" assert ua.update_forecast is ua.model.update_forecast assert ua.init_negotiation is ua.planner.init_negotiation assert ua.stop_negotiation is ua.planner.stop_negotiation assert ua.set_schedule is ua.unit.set_schedule assert ua.update is ua.planner.update def test_registered(ua, ctrl_mock): """Test if the UnitAgents registers with the ControllerAgent.""" assert len(ctrl_mock.registered) == 1 print(ctrl_mock.registered) assert ctrl_mock.registered[0][0]._path[-1] == ua.addr[-1] # Test proxy assert ctrl_mock.registered[0][1] == ua.addr
def test_exposed(ua): """Test if the UnitAgent exposes all required methods.""" assert ua.update_forecast is ua.model.update_forecast assert ua.init_negotiation is ua.planner.init_negotiation assert ua.stop_negotiation is ua.planner.stop_negotiation assert ua.set_schedule is ua.unit.set_schedule assert ua.update is ua.planner.update def test_registered(ua, ctrl_mock): """Test if the UnitAgents registers with the ControllerAgent.""" assert len(ctrl_mock.registered) == 1 print(ctrl_mock.registered) assert ctrl_mock.registered[0][0]._path[-1] == ua.addr[-1] assert ctrl_mock.registered[0][1] == ua.addr
test = { 'name': 'nodots', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" scm> (nodots '(1 . 2)) (1 2) """, 'hidden': False, 'locked': False }, { 'code': r""" scm> (nodots '(1 2 . 3)) (1 2 3) """, 'hidden': False, 'locked': False }, { 'code': r""" scm> (nodots '((1 . 2) 3)) ((1 2) 3) """, 'hidden': False, 'locked': False }, { 'code': r""" scm> (nodots '(1 (2 3 . 4) . 3)) (1 (2 3 4) 3) """, 'hidden': False, 'locked': False }, { 'code': r""" scm> (nodots '(1 . ((2 3 . 4) . 3))) (1 (2 3 4) 3) """, 'hidden': False, 'locked': False } ], 'scored': True, 'setup': r""" scm> (load 'hw08) """, 'teardown': '', 'type': 'scheme' } ] }
test = {'name': 'nodots', 'points': 1, 'suites': [{'cases': [{'code': "\n scm> (nodots '(1 . 2))\n (1 2)\n ", 'hidden': False, 'locked': False}, {'code': "\n scm> (nodots '(1 2 . 3))\n (1 2 3)\n ", 'hidden': False, 'locked': False}, {'code': "\n scm> (nodots '((1 . 2) 3))\n ((1 2) 3)\n ", 'hidden': False, 'locked': False}, {'code': "\n scm> (nodots '(1 (2 3 . 4) . 3))\n (1 (2 3 4) 3)\n ", 'hidden': False, 'locked': False}, {'code': "\n scm> (nodots '(1 . ((2 3 . 4) . 3)))\n (1 (2 3 4) 3)\n ", 'hidden': False, 'locked': False}], 'scored': True, 'setup': "\n scm> (load 'hw08)\n ", 'teardown': '', 'type': 'scheme'}]}
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { 'target_name': 'security_tests', 'type': 'shared_library', 'sources': [ '../../../sandbox/win/tests/validation_tests/commands.cc', '../../../sandbox/win/tests/validation_tests/commands.h', 'ipc_security_tests.cc', 'ipc_security_tests.h', 'security_tests.cc', ], }, ], }
{'variables': {'chromium_code': 1}, 'targets': [{'target_name': 'security_tests', 'type': 'shared_library', 'sources': ['../../../sandbox/win/tests/validation_tests/commands.cc', '../../../sandbox/win/tests/validation_tests/commands.h', 'ipc_security_tests.cc', 'ipc_security_tests.h', 'security_tests.cc']}]}
""" generates high value cutoff filtered versions for case study 1 and 2 converted delay measurements """ DATA_PATHS = [ 'CS1_SendFixed_50ms_JoinDupFilter', 'CS1_SendFixed_50ms_JoinNoFilter', 'CS1_SendFixed_100ms_JoinDupFilter', 'CS1_SendFixed_100ms_JoinNoFilter', 'CS1_SendVariable_50ms_JoinDupFilter', 'CS1_SendVariable_50ms_JoinNoFilter', 'CS1_SendVariable_100ms_JoinDupFilter', 'CS1_SendVariable_100ms_JoinNoFilter', 'CS2_SendFixed_50ms_JoinDupFilter', 'CS2_SendFixed_50ms_JoinNoFilter', 'CS2_SendFixed_100ms_JoinDupFilter', 'CS2_SendFixed_100ms_JoinNoFilter', 'CS2_SendVariable_50ms_JoinDupFilter', 'CS2_SendVariable_50ms_JoinNoFilter', 'CS2_SendVariable_100ms_JoinDupFilter', 'CS2_SendVariable_100ms_JoinNoFilter', ] filepaths = ['D:/temp/' + d + '/delay_converted.log' for d in DATA_PATHS] converted_filepaths = ['D:/temp/' + d + '/delay_converted_filtered.log' for d in DATA_PATHS] for idx, fp in enumerate(filepaths): with open(fp, mode='r') as file: content = file.readlines() filtered_content = filter(lambda x: int(x.split(' ')[1]) < 1000, content) with open(converted_filepaths[idx], mode='w') as file: file.writelines(filtered_content)
""" generates high value cutoff filtered versions for case study 1 and 2 converted delay measurements """ data_paths = ['CS1_SendFixed_50ms_JoinDupFilter', 'CS1_SendFixed_50ms_JoinNoFilter', 'CS1_SendFixed_100ms_JoinDupFilter', 'CS1_SendFixed_100ms_JoinNoFilter', 'CS1_SendVariable_50ms_JoinDupFilter', 'CS1_SendVariable_50ms_JoinNoFilter', 'CS1_SendVariable_100ms_JoinDupFilter', 'CS1_SendVariable_100ms_JoinNoFilter', 'CS2_SendFixed_50ms_JoinDupFilter', 'CS2_SendFixed_50ms_JoinNoFilter', 'CS2_SendFixed_100ms_JoinDupFilter', 'CS2_SendFixed_100ms_JoinNoFilter', 'CS2_SendVariable_50ms_JoinDupFilter', 'CS2_SendVariable_50ms_JoinNoFilter', 'CS2_SendVariable_100ms_JoinDupFilter', 'CS2_SendVariable_100ms_JoinNoFilter'] filepaths = ['D:/temp/' + d + '/delay_converted.log' for d in DATA_PATHS] converted_filepaths = ['D:/temp/' + d + '/delay_converted_filtered.log' for d in DATA_PATHS] for (idx, fp) in enumerate(filepaths): with open(fp, mode='r') as file: content = file.readlines() filtered_content = filter(lambda x: int(x.split(' ')[1]) < 1000, content) with open(converted_filepaths[idx], mode='w') as file: file.writelines(filtered_content)
""" 0845. Longest Mountain in Array Medium Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold: B.length >= 3 There exists some 0 < i < B.length - 1 such that B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B[B.length - 1] (Note that B could be any subarray of A, including the entire array A.) Given an array A of integers, return the length of the longest mountain. Return 0 if there is no mountain. Example 1: Input: [2,1,4,7,3,2,5] Output: 5 Explanation: The largest mountain is [1,4,7,3,2] which has length 5. Example 2: Input: [2,2,2] Output: 0 Explanation: There is no mountain. Note: 0 <= A.length <= 10000 0 <= A[i] <= 10000 Follow up: Can you solve it using only one pass? Can you solve it in O(1) space? """ class Solution: def longestMountain(self, A: List[int]) -> int: res = up = down = 0 for i in range(1, len(A)): if down and A[i-1] < A[i] or A[i-1] == A[i]: up = down = 0 up += A[i-1] < A[i] down += A[i-1] > A[i] if up and down: res = max(res, up + down + 1) return res
""" 0845. Longest Mountain in Array Medium Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold: B.length >= 3 There exists some 0 < i < B.length - 1 such that B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B[B.length - 1] (Note that B could be any subarray of A, including the entire array A.) Given an array A of integers, return the length of the longest mountain. Return 0 if there is no mountain. Example 1: Input: [2,1,4,7,3,2,5] Output: 5 Explanation: The largest mountain is [1,4,7,3,2] which has length 5. Example 2: Input: [2,2,2] Output: 0 Explanation: There is no mountain. Note: 0 <= A.length <= 10000 0 <= A[i] <= 10000 Follow up: Can you solve it using only one pass? Can you solve it in O(1) space? """ class Solution: def longest_mountain(self, A: List[int]) -> int: res = up = down = 0 for i in range(1, len(A)): if down and A[i - 1] < A[i] or A[i - 1] == A[i]: up = down = 0 up += A[i - 1] < A[i] down += A[i - 1] > A[i] if up and down: res = max(res, up + down + 1) return res
#!/usr/bin/env python # encoding: utf-8 ''' @author: Jason Lee @license: (C) Copyright @ Jason Lee @contact: [email protected] @file: money_dp.py @time: 2019/4/22 23:17 @desc: find least number of money to achieve a total amount ''' def money_dp(total): money = [1, 5, 11] # value of each money number = [0]*(total+1) # we need number[i] changes to achieve totally i money for i in range(1, total + 1): cost = float('inf') if i - money[2] >= 0: cost = min(cost, number[i - money[2]] + 1) if i - money[1] >= 0: cost = min(cost, number[i - money[1]] + 1) if i - money[0] >= 0: cost = min(cost, number[i - money[0]] + 1) number[i] = cost print(f"f[{i}] = {number[i]}") return number[total] def money_dp_output(total): money = [1, 5, 11] number = [0]*(total+1) vector = [0]*(total+1) for i in range(1, total+1): cost = float('inf') value = 0 for j in money: if i-j >= 0 and cost > number[i-j] + 1: cost = number[i-j] + 1 value = j number[i] = cost vector[i] = value print(f"f[{i}] = {number[i]}") return number[total], vector if __name__ == '__main__': total = 5 _, vector = money_dp_output(total) combine = [] k = total while k>0: combine.append(vector[k]) k = k - vector[k] print(combine)
""" @author: Jason Lee @license: (C) Copyright @ Jason Lee @contact: [email protected] @file: money_dp.py @time: 2019/4/22 23:17 @desc: find least number of money to achieve a total amount """ def money_dp(total): money = [1, 5, 11] number = [0] * (total + 1) for i in range(1, total + 1): cost = float('inf') if i - money[2] >= 0: cost = min(cost, number[i - money[2]] + 1) if i - money[1] >= 0: cost = min(cost, number[i - money[1]] + 1) if i - money[0] >= 0: cost = min(cost, number[i - money[0]] + 1) number[i] = cost print(f'f[{i}] = {number[i]}') return number[total] def money_dp_output(total): money = [1, 5, 11] number = [0] * (total + 1) vector = [0] * (total + 1) for i in range(1, total + 1): cost = float('inf') value = 0 for j in money: if i - j >= 0 and cost > number[i - j] + 1: cost = number[i - j] + 1 value = j number[i] = cost vector[i] = value print(f'f[{i}] = {number[i]}') return (number[total], vector) if __name__ == '__main__': total = 5 (_, vector) = money_dp_output(total) combine = [] k = total while k > 0: combine.append(vector[k]) k = k - vector[k] print(combine)
class Solution: def majorityElement(self, nums) -> int: dic={} for num in nums: dic[num]=dic.get(num,0)+1 #guess,dic.get(num,0)=dic.get(num,0)+1 is non-existential,for in syntax field,we can't assign to function call for num in nums: if dic.get(num,0)>=len(nums)/2: return num
class Solution: def majority_element(self, nums) -> int: dic = {} for num in nums: dic[num] = dic.get(num, 0) + 1 for num in nums: if dic.get(num, 0) >= len(nums) / 2: return num
class BaseAnnotationAdapter(object): def __iter__(self): return self def __next__(self): """ Needs to be implemented in order to iterate through the annotations :return: A tuple (leaf_annotation, image_path, i) where leaf annotation is a list of coordinates [x,y,x,y,x,y,...] image_path is a full or relative path to the image i is a running index used for example to name the leaf picture """ raise NotImplementedError() class RotatableAdapter(BaseAnnotationAdapter): def __next__(self): raise NotImplementedError() def get_point(self, index): """ Get the points of a leaf if they exist in the annotation file :param index: Index passed with the leaf annotation by the collection :return: A tuple of arrays ([x, y],[x,y]) with the location of the points if they exist if points doesn't exists for this leaf, returns None """ raise NotImplementedError()
class Baseannotationadapter(object): def __iter__(self): return self def __next__(self): """ Needs to be implemented in order to iterate through the annotations :return: A tuple (leaf_annotation, image_path, i) where leaf annotation is a list of coordinates [x,y,x,y,x,y,...] image_path is a full or relative path to the image i is a running index used for example to name the leaf picture """ raise not_implemented_error() class Rotatableadapter(BaseAnnotationAdapter): def __next__(self): raise not_implemented_error() def get_point(self, index): """ Get the points of a leaf if they exist in the annotation file :param index: Index passed with the leaf annotation by the collection :return: A tuple of arrays ([x, y],[x,y]) with the location of the points if they exist if points doesn't exists for this leaf, returns None """ raise not_implemented_error()
[2,8,"t","pncmjxlvckfbtrjh"], [8,9,"l","lzllllldsl"], [3,11,"c","ccchcccccclxnkcmc"], [3,10,"h","xcvxkdqshh"], [4,5,"s","gssss"], [7,14,"m","mmcmqmmxmmmnmmrmcxc"], [3,12,"n","grnxnbsmzttnzbnnn"], [5,9,"j","ddqwznjhjcjn"], [8,9,"d","fddddddmd"], [6,8,"t","qtlwttsqg"], [7,15,"m","lxzxrdbmmtvwhgm"], [6,10,"h","hhnhhhhxhkh"], [6,8,"z","zhgztgjzzfzqzzvnbmv"], [5,6,"j","jjjjgt"], [2,3,"m","mmmfxzm"], [6,7,"n","nnnqgdnn"], [8,13,"b","bbbbbbbbqjbbb"], [7,8,"k","kkgkkbskkk"], [1,3,"g","gdmvgb"], [5,15,"g","gggzgpsgsgglxgqdfggg"], [12,16,"s","snhsmxszbsszzclp"], [2,3,"n","vhnnn"], [5,7,"l","slllclllkc"], [2,4,"g","rnggggdkhjm"], [1,3,"x","wxcxhxx"], [7,12,"c","cxzcwcjqgcmpccchc"], [4,5,"x","lnfsxjxwxx"], [9,10,"n","nnnnnngnzxnnn"], [3,4,"h","rhhk"], [3,11,"r","xrrcnrjrrzsvrrplr"], [6,11,"r","rrrwrrrrrrrrrrrr"], [3,4,"x","xmxz"], [1,2,"l","lllllk"], [5,11,"h","cmxhhhhhrhd"], [2,11,"h","mhzlzshjvtcrrcf"], [6,15,"g","ggggfgwggkcggqz"], [3,4,"q","qqsc"], [2,8,"m","wmwxvmsmfqlkgzwhxqdv"], [3,9,"b","pnrdsgbbbrbgb"], [1,7,"w","ddqtjwwxgwkqsgswvwkl"], [3,4,"t","lxtt"], [4,6,"g","ggxngg"], [12,13,"d","dddddddddddjjd"], [10,20,"n","nnnnnnnnnnnnnnnnnnnp"], [15,20,"j","kjjjljjjjjjjjjjhjjjn"], [5,11,"r","rwrrrrvrbrrrrr"], [2,4,"w","wwww"], [6,10,"v","vvvbvsvvvv"], [3,6,"d","tkbcdddzddd"], [10,13,"r","rrrrrrrrrlrrhrr"], [3,6,"w","ggsxkwjzfpnmkw"], [2,6,"b","bbqbbq"], [7,8,"t","tztttwtttvt"], [1,3,"t","twrttzbfdhrkvdzgn"], [4,10,"c","jxcxvcpnfccvc"], [8,17,"r","rrrrrrlvrrrrrrcsrrrh"], [1,3,"g","gsggjsn"], [6,8,"l","lllclmjllf"], [11,15,"b","bbbzbbbhbbbbbnbb"], [7,9,"l","lflblhzllml"], [9,12,"v","pvtvrvvvrvvhgmvnv"], [1,3,"t","zbrtjt"], [5,6,"f","ffffcf"], [3,4,"q","cqtz"], [13,14,"n","wnnnnnnnngnnnhpnnsn"], [1,12,"d","bdddmdqcsdhd"], [9,11,"h","hhhhhxhhhjqh"], [7,11,"w","wwwwwwswtkww"], [12,14,"m","mmmmbmdmmmmmmmzmjmv"], [1,7,"x","qdtjxmxhw"], [3,5,"n","nnnnn"], [10,13,"d","ldcrdvcvvxdpd"], [4,8,"m","mrfmwmzgmrp"], [3,8,"s","ssssssssss"], [1,7,"h","qhhhhhhhhh"], [9,10,"q","kqqqqqqmhqqqqhqr"], [5,6,"c","cmcccl"], [3,4,"q","qqqw"], [2,8,"v","vtvvvvvvv"], [1,5,"z","zzzzqz"], [7,8,"k","kkkrkqmkkkkk"], [14,16,"j","jjjjjjjjjjjjjjjs"], [6,7,"t","tttttpc"], [3,5,"s","xsxsss"], [4,5,"v","gvvpjv"], [3,5,"t","vqgft"], [3,4,"c","ccwcc"], [3,7,"s","sslwsss"], [2,5,"t","tnbgprqgzm"], [16,20,"b","bbbbbbbsjbbbbbbbbgbd"], [6,8,"p","ppqppwph"], [12,13,"m","mmmmmmmmmmmml"], [10,13,"r","rrrntrrrrhrrr"], [9,11,"f","fffhffffhfcfmf"], [4,8,"l","lmsrlllllzmlll"], [4,11,"p","sxpnpbzpjppgbn"], [3,8,"c","fcccqmfcccxrhmccw"], [6,7,"s","sqsjdbssbsrssd"], [3,4,"g","gggt"], [1,3,"t","tstnsnksfsbgt"], [3,4,"v","vvvcv"], [13,18,"g","tggggppggggggwgggpg"], [4,8,"m","mmmlmfdm"], [1,3,"z","fzzz"], [1,12,"f","ffzfffffmffrnff"], [10,11,"f","ffkffffffff"], [11,12,"m","mmpmdmmrmmmtmmm"], [9,11,"k","zkkkfkkkkkzkkh"], [16,19,"b","bbbbbbbbbbbbbbbvbbjb"], [3,4,"v","vvvhvz"], [1,6,"l","xllllll"], [8,15,"c","cccccccccccccccccc"], [10,12,"m","mmvmlzrmrnmmmm"], [1,3,"c","whcc"], [2,3,"q","kqgq"], [2,13,"s","sbssscrslnssldsxtssg"], [2,4,"v","bfdr"], [7,19,"c","ccccccccckfgpgcmccf"], [7,9,"f","fxvfffffsf"], [1,5,"n","nnnns"], [13,15,"g","gggggggggggghggg"], [9,10,"w","hdwcwqswpwwwwww"], [14,17,"j","jjjjjmjjjjjjfqjjjjj"], [2,5,"k","pkrfrdtfbvkkrkk"], [2,3,"s","ssss"], [1,8,"d","vsxtlvdqpltcj"], [3,7,"b","nlqhbbb"], [6,10,"x","xfxxxrmxxxdx"], [5,6,"n","nnnnnm"], [5,6,"r","rrrprr"], [6,7,"t","dfttttqtwktttgrkkj"], [1,2,"p","npnf"], [6,8,"p","ppppptppp"], [4,8,"k","bkkkkqkkq"], [11,12,"l","kmlnhhmkdlhl"], [14,16,"b","bmbbbbbbbbbbbcbbb"], [3,5,"r","rrfrrrr"], [5,10,"v","glglvvmvkvvvgvrv"], [2,3,"h","whhcsqjhtx"], [7,8,"d","ddddbpddddhdhdddddd"], [2,3,"k","kkkkkkksgkkkkg"], [2,6,"n","cnrpdmtgwncklll"], [3,14,"s","sssckrswlqxshdts"], [3,4,"w","wwgww"], [15,19,"q","qqpqxqqqqqqwqsqqqqz"], [1,5,"t","vrtkttttj"], [2,7,"z","lmpzjbh"], [11,15,"g","gkghtgpwrgngggggvng"], [4,17,"b","bbbbbbbbbbbbbbbbbb"], [4,6,"c","bswcml"], [3,4,"v","vvxg"], [2,4,"m","mmmmm"], [2,4,"w","kwqwjwt"], [7,14,"x","ghflqcwxcrxzrxm"], [6,7,"f","fffjffsff"], [11,12,"s","sssssssssssr"], [3,13,"v","vvzcvrvjgxvkcvh"], [3,8,"k","jkhgbzgkkfwvt"], [6,7,"l","llltllljl"], [8,10,"p","pppppppkvp"], [1,12,"l","lbhxdplkxdstmllwncnl"], [2,6,"c","cqcwrwnbjc"], [2,5,"v","vvkvvvbbv"], [3,4,"g","ggnkg"], [3,4,"z","rczzhbwmszgzhfszd"], [8,10,"t","fvrttqnwjtft"], [11,17,"l","cllqltnlldcllnwnllll"], [2,9,"r","jrrwrrcjrr"], [3,5,"s","skmsssh"], [5,6,"q","qqqqtq"], [7,16,"k","ktzxwrxcdrmkqfpk"], [7,12,"s","hfsssssssssmsk"], [3,11,"s","gssjsdxdxsqgpns"], [9,11,"s","sssssssssss"], [5,9,"t","xtwthrdtvj"], [5,7,"q","qjqxqjq"], [2,10,"r","zlrrrrrtrr"], [2,18,"w","trwqhcfwrmqwwwqfgwww"], [2,5,"k","kkkkwkp"], [1,4,"s","fqss"], [1,4,"l","xtflz"], [10,12,"q","qqqqqqqqqnssq"], [3,4,"s","sssd"], [10,20,"m","mnmmmmqwmjnpbmmmmbmn"], [3,5,"l","clpln"], [2,11,"v","mhrvdkgsxvvvdxvhgv"], [15,16,"j","jjjjjjjjjjsjjjkj"], [2,5,"f","gzvzffsnxdcf"], [8,10,"m","jmmmmmmrmmmmm"], [1,2,"k","fmhkpmssvdkh"], [4,7,"l","vgtldqpbmmj"], [2,3,"v","kdvcgvnw"], [15,17,"g","ggggggggnggggglgj"], [4,5,"w","kjwnw"], [6,16,"j","fjjrjkbjsjjvljzjjdj"], [2,4,"g","bgvgqs"], [9,12,"k","lkkgkkkkzfkqkcj"], [6,13,"b","bbbbbmbbbcbbqb"], [7,8,"m","mmcmmmmp"], [4,5,"v","vvvvg"], [11,15,"n","nnqxnnnnnqmnnnnfnpn"], [1,5,"z","gkvwtv"], [4,5,"l","llllk"], [3,4,"d","ddss"], [1,4,"v","vvvl"], [2,3,"v","vjcvvvvq"], [9,13,"v","vvvvbvvvvgppv"], [11,14,"d","ldhdddddddwpdddddddd"], [2,12,"p","rrpppwppxjplprpp"], [5,11,"p","spfcjpmplbpzpppgpp"], [3,6,"q","lkqfqcq"], [2,4,"x","xvxwxv"], [2,12,"x","bxxxxjxxxtxhktkx"], [1,14,"c","cccccccccccccpc"], [5,16,"t","qstttfxttmtvvgtzt"], [7,8,"q","kqqqqqwq"], [5,6,"c","cccccdcccccc"], [7,9,"v","dvnbvvjmh"], [5,7,"s","sdssswvr"], [1,2,"t","vtsttt"], [6,8,"d","dgdwdcdd"], [5,18,"j","qjjjjjjtjjjjjjjljlj"], [2,16,"r","ksrtrrrrrlchrljrz"], [5,7,"m","mmmkmmvmxbflctjhhfxc"], [4,10,"f","mfftfrfffff"], [6,12,"x","xxxxxxxxxxxbx"], [9,12,"s","ssssssssdsshs"], [12,14,"v","vvvhvvvvvzvvvrzvlvg"], [14,17,"d","ddhdddddddddddpdd"], [1,5,"c","rcchc"], [1,9,"n","npnnnrxnh"], [1,4,"n","mnnn"], [2,3,"q","qklxpwr"], [7,8,"j","djjjjfjnjjv"], [4,5,"h","hhrcbhc"], [6,8,"t","txtfclvtz"], [8,11,"w","grhwwqwhwwww"], [1,5,"r","rrkrxl"], [3,6,"v","jgtdsvlpgx"], [14,18,"r","rrrrrrrrrsrrrhrrrr"], [5,13,"g","xggsggggggggggn"], [18,19,"x","xxxxxxxxxxxxxxxxxfx"], [4,5,"n","dpnnnwnntpwgntqnj"], [4,12,"c","ccccmcccczrspfrcpx"], [15,16,"h","hwhzhnhhhhshhhhhhhhh"], [3,4,"v","vvvg"], [3,4,"j","jpjs"], [10,13,"h","bhhhhhrhhhhhsdh"], [2,4,"v","svvclvv"], [12,13,"k","zkkkkkdskkkpkwwkk"], [8,9,"b","bxbhjbbjb"], [1,10,"k","kpkmkstkhtkl"], [5,6,"d","qddddx"], [1,3,"m","mmmm"], [1,5,"r","trrrrrr"], [2,5,"l","llvlnlllm"], [9,18,"d","dddjhddddvdddtddddd"], [9,20,"j","nxfjfjjbjjljjjjcjjjj"], [5,7,"v","zkvvzpxvtctvmcvvvvv"], [1,6,"d","lmcmvwdwq"], [1,5,"v","dbdvv"], [6,11,"n","snnzlnnnwnd"], [11,17,"l","lwlltvlplldlllllsll"], [6,8,"k","kkkkktkkp"], [9,14,"q","nclswjgmqwvhjrs"], [7,10,"c","cgccfccccl"], [2,3,"z","zqkzzj"], [14,15,"v","vvvvvvvvvvvvvvg"], [7,9,"z","zzzztzzqtz"], [11,17,"n","vnnnnnnnrnnnnnnnqn"], [15,16,"l","lllllqlllllllllz"], [1,14,"t","pgskddftttttxtflt"], [2,3,"d","bdpqd"], [3,18,"k","dkkpkkkkkjjtjgkkkxs"], [6,10,"p","qlptppdjppllppp"], [8,9,"s","sssssssss"], [11,16,"q","qqjqqqhqqqqqdqqmq"], [7,8,"p","pprqppvhpqp"], [5,12,"q","qqqqbqqqqqqqqqqqqq"], [1,5,"b","wbbbjbb"], [9,17,"m","fdhmxtmmccxpmmfbmtbm"], [2,5,"b","tbbptwkghzvsbvcb"], [12,16,"w","wwwwwfwwwwvwfwwww"], [4,5,"h","hfhggh"], [11,16,"z","zlzzdrzzxtxzzzzqz"], [3,6,"x","xxwxxm"], [3,9,"w","vmpsthqww"], [5,9,"q","qqqqpqqqq"], [17,18,"g","gggggggggggggggggw"], [3,8,"s","sscmsssssf"], [7,15,"v","vvvvzvttvvvvvvgvvvv"], [14,19,"h","mdpmhtmhsdsxxhthhhd"], [1,3,"h","hbhcbvhxfmjqdgt"], [15,17,"p","xmnhkrgcxxrdtpprzhfh"], [2,5,"w","dqqrwwbvq"], [16,17,"c","ccccccccccccccccc"], [1,4,"p","plcvxpp"], [10,15,"b","bbbnbbbbbvlzbvgb"], [9,10,"g","gggwggggcp"], [3,4,"d","dtdcd"], [1,5,"v","vjslbjjtxldvvknn"], [2,4,"n","fhgnl"], [2,3,"x","xnjm"], [3,8,"j","tzvjbjvxchjk"], [1,10,"g","wgggggghghggq"], [5,7,"q","dqlwqqqkqqhq"], [6,7,"d","dddrddhdld"], [2,4,"x","kxbxxmchtx"], [1,2,"w","wwjg"], [19,20,"r","hfjrqwdxppgzppwchrjr"], [10,16,"r","rrrrrzrrrrrvrrrt"], [1,3,"m","cmmlm"], [14,17,"h","hhhhhhhhhhhhzhlbphh"], [2,4,"f","bfhf"], [3,6,"j","mkdmmmpjjbqmk"], [6,7,"x","flxxxqxxx"], [12,15,"q","qqqqnqqqqqqnqqs"], [9,10,"w","wgwdwxrlwgwwwmwwcgd"], [6,7,"k","kdnrppkkkkkkrj"], [2,3,"n","pntsmsnb"], [1,5,"c","cqcctccqcccccn"], [9,10,"f","txffffffffcff"], [2,6,"b","smtckkcqrsbkzjbtpbtb"], [10,14,"k","kkckkkkkkhkkkd"], [9,11,"m","jnwmbmjmmqsfz"], [9,10,"h","hhhhhhhhhh"], [5,6,"h","hhhhhvh"], [3,6,"c","cccccr"], [10,11,"l","llllllgplll"], [6,11,"r","prprnrrrqrr"], [13,14,"p","pppppppppppphp"], [5,8,"j","pkjjqjjjjh"], [7,9,"f","zfjfcfhcfkffffxv"], [9,10,"w","wwwwwwwwwhw"], [2,3,"z","tzszz"], [2,3,"t","ntdt"], [7,10,"l","llllllqllkl"], [4,10,"j","bmsjjtjjjlbp"], [1,3,"t","kbrxpnstztz"], [2,3,"h","chbwpmvdh"], [2,11,"p","qwqzlpdbpvpxp"], [8,11,"c","tzcbpcccgfj"], [4,5,"g","rgcdg"], [1,8,"t","pwtkzttdlrd"], [2,3,"l","ldlrvsl"], [4,5,"j","jjjrj"], [2,4,"k","vkfk"], [18,20,"v","vvvvvvvfvvvvvvvvvvvj"], [5,11,"w","gbjwwwwzxsl"], [10,12,"d","ddddddddddqd"], [1,4,"r","rrqr"], [7,8,"p","pppppzpp"], [7,8,"c","cccscmcfch"], [6,7,"c","crncccvtc"], [6,8,"z","zkzlxzcb"], [3,4,"h","hhfs"], [12,13,"t","ttttttttttthmt"], [2,12,"x","xdxxxxxxxxxxxxx"], [2,5,"n","cnnnknnn"], [10,11,"x","xxxxxxxxxsx"], [3,9,"q","fgfqjqxzqtlqqmgk"], [1,4,"g","gzsk"], [11,14,"h","hhhrhwhhsqhchxclhhh"], [5,15,"q","nqzqqqqnqkqfqqqqqq"], [10,14,"b","bbbbbbbbbhbbbqbb"], [5,6,"v","rpfvdvjvvvvvdxjgwc"], [6,7,"r","rrrrzwrhrdv"], [3,4,"f","fffb"], [9,12,"q","qqqqqqqqqqqqqqqqq"], [15,19,"c","cccclcccxcccctccccs"], [2,3,"b","jbwqq"], [5,6,"h","hhchpm"], [11,12,"f","fffffffffffl"], [5,9,"s","fsggxprbsssklhhbsl"], [12,15,"f","ffffcfzfffkrfffnh"], [1,2,"s","fstz"], [1,6,"b","nbfbhb"], [2,11,"k","xfdjrwptgrkk"], [18,20,"k","kkkwkkkkkkkpkkkkkkkr"], [4,8,"r","rgcsrgkdrrrrtwr"], [3,5,"k","kkkkvgkkkkn"], [9,13,"b","bjgbkxqzbbbjtbx"], [1,2,"n","rmbgdnjt"], [3,6,"k","kqnkkk"], [3,6,"c","gzggcpxszscccccc"], [15,17,"r","rrjnrrrrtrrrrhrrxrr"], [11,12,"d","dddddddddddx"], [4,8,"s","sxztltlssksqwthss"], [12,13,"l","llxllllskllqvdlll"], [4,6,"j","cjxdvjjlx"], [1,4,"t","mwttttttttttttt"], [7,8,"p","pbpdpbdpmppjpp"], [11,13,"l","lkjlgdllkllvnl"], [9,10,"b","sbbbbbbbrb"], [9,13,"l","lzlllllllljlllll"], [6,7,"r","tnkpjrhkxzdzwwxv"], [1,4,"x","hdnxxlx"], [4,5,"b","kvhwb"], [1,2,"p","pxmhbcp"], [2,5,"s","csgfssjssstcq"], [3,7,"k","htnkkhprxkc"], [14,20,"c","rlkhpgccjsjchccjmkbg"], [2,3,"t","ttxt"], [13,18,"p","pppppppppppwvppppq"], [9,10,"j","jjqjjjjjdbj"], [10,12,"m","mmmmmmgmmlmm"], [5,11,"l","qrwgblsqjxtll"], [1,5,"m","mqwnn"], [7,12,"p","pppppppppppppppppp"], [4,8,"d","bdrntdzdd"], [14,15,"g","gggggggggggzggc"], [3,4,"m","mmmc"], [2,9,"d","hsqjddjfdcqzsjr"], [5,9,"h","hhhhsffhk"], [5,7,"f","ffffcff"], [6,8,"z","wzkzzzzjzzczg"], [2,9,"q","dqqqgbqdnlfqqws"], [6,11,"m","mhmmpmxmxtxmp"], [7,11,"n","nvjtglngnzmbnnqjnjgp"], [11,12,"v","vvvvvvvvvvdg"], [2,3,"z","vmzz"], [6,8,"z","zzzzzzzbzzzzzzzzzzz"], [6,13,"k","hkvkhpkqkkkkwsdkmk"], [1,9,"k","gkkkkkkkkk"], [2,5,"g","gngggxg"], [12,14,"m","mmmmmmmjmmmrmhm"], [1,6,"f","cqffffsb"], [10,11,"p","xppxpqbplpp"], [3,17,"j","wdjldqqbxqxbcrbkjfth"], [5,8,"w","wlhwvkwwwzkww"], [4,6,"t","vtthtt"], [6,9,"m","rkmtgbzrfmg"], [10,11,"g","gggrgggsggbgmg"], [5,7,"x","xxxxrxdxx"], [9,12,"k","kbgkkgpkkrkkqv"], [10,14,"z","nzzwjznbpzztzm"], [7,16,"t","ttttttwbtltttcltt"], [13,18,"l","lllllltllllltllllll"], [5,18,"v","mvvvzjvvvvvmvvsnjzv"], [12,19,"b","bbsbbbbbbmbbbwbbbbdb"], [15,16,"n","nndgcnnnnnnnnnnpnnnf"], [4,11,"j","gqdkjblvkgbwjjmtfjg"], [12,13,"s","ssssssstssmpbsss"], [5,7,"j","jmgxjjw"], [4,9,"p","pptlvpppp"], [13,17,"q","fqqqqqqqrqqqhqqqqngq"], [4,6,"j","xzjcxjjpcrl"], [4,10,"w","swwwspwwql"], [10,13,"s","sssssssssjsss"], [2,4,"k","nktjkkkm"], [2,6,"z","vzqzfzncz"], [4,10,"l","llplslghlwvlh"], [5,6,"d","ddhdvqd"], [5,10,"r","rrrrrbrrrjrd"], [1,5,"d","ddddn"], [2,4,"t","tttr"], [4,7,"d","dsddpdkfsdd"], [3,8,"r","klrclrkzbrrscrpd"], [16,18,"j","jjjjjjjjwjjjjjjzjj"], [18,20,"p","tppjpppppppppppppcpp"], [9,11,"m","mmmmmmmmmmt"], [8,12,"d","dtxdvddpddmq"], [4,8,"d","qdcddddcd"], [16,17,"w","wwwwwwwwwwwwwwwzwww"], [3,4,"v","hpvhvvpvxnd"], [3,5,"x","dpxxj"], [18,19,"d","ddddddddddddddddddbd"], [13,16,"z","pzzzzhzzqzzzmzzzzzg"], [2,6,"b","bglglbnbdb"], [9,10,"t","ttttttttxmttt"], [1,7,"g","fgggvgm"], [8,11,"t","ttmrwtttttp"], [7,8,"d","ddxddddrddddgdddddd"], [1,4,"p","mpdbdkghzqpkpxbp"], [8,10,"d","dddjdddzdxd"], [3,4,"l","lllwl"], [6,9,"m","mmmmmfmmm"], [2,6,"d","dvjddj"], [5,19,"n","ctnnnnnnvngnnqndwnn"], [4,7,"z","zzwdzdpzzd"], [9,12,"w","wwwwwwwwkpwww"], [13,14,"t","tttttttttttwztt"], [2,3,"z","zzwp"], [4,12,"q","hqtqshlcjsmqjrt"], [6,13,"s","bssqsssstflsw"], [15,16,"l","llllllllllllllllll"], [9,10,"c","ccccccccgq"], [14,15,"m","mrmmrmmmmmbmmmcmm"], [1,6,"r","rrrrrcrrrrr"], [4,6,"s","zqrdvshjbgpssj"], [3,6,"h","mmhxthhbshhb"], [17,19,"q","qqqqqqqqqqqqqqqqrqqq"], [4,12,"x","fqvxcghgqxkwx"], [2,5,"q","qqxqdrjrqxkfmq"], [3,8,"z","wfzzzzzz"], [6,7,"c","ccccqmc"], [1,5,"h","hhhhh"], [3,4,"f","svsf"], [7,8,"x","xxxxxxxsx"], [4,8,"g","gggggggngggg"], [4,5,"w","lwwwx"], [2,3,"g","ggsqg"], [4,6,"q","qqqqqq"], [3,7,"j","jtjdjncjq"], [7,9,"k","kkkkkkkcf"], [4,11,"z","pvdzfbzxzfhbf"], [6,17,"n","nnvnnxnnnnnnnnnnnnn"], [2,5,"c","ccrlttnnccdlcmjvx"], [3,9,"l","llllllllpl"], [1,2,"c","vccc"], [2,6,"c","qfcncx"], [1,3,"k","kkvkkkk"], [1,5,"q","qqjkhq"], [3,8,"p","pvpppzpgpp"], [4,7,"b","bbbbbbhbb"], [8,15,"x","xxxvxlvxxdknxxxxx"], [5,6,"n","nnnnnv"], [4,7,"h","hhhbhhth"], [9,16,"h","hxhhhhhhqhhhpbhlh"], [8,10,"k","kkkkkghkkkwnk"], [4,12,"w","bwwwwmwwwwwmwwwwswww"], [1,5,"q","mzhmqtzlbzvtlwqzpxf"], [11,12,"x","xxxxxxxxxxds"], [16,17,"s","sssssrssssssssspwsw"], [1,4,"q","qwqcq"], [1,12,"w","wwwwrpwwwwwqwwmwlw"], [5,6,"m","tlgzvmqcjt"], [12,18,"c","ccccccccccccccccccc"], [6,10,"g","jpgggdgbddgg"], [11,14,"w","hwwkxwhhkfwcjfdkkwfn"], [3,4,"n","nmdnlnbjxcjsp"], [3,4,"w","bwvj"], [12,14,"f","cmqznmfzlsbpfd"], [1,3,"t","txsttsttzqls"], [3,4,"w","sdsw"], [6,12,"b","sbfbqvbbbstb"], [17,19,"g","nggggggggggggggxngtg"], [15,17,"h","hhhhhhhhhhhhhhrhh"], [2,3,"p","ppcpp"], [5,9,"n","nvnnncqnnhnn"], [1,4,"r","rzrrrr"], [2,10,"b","zbbbkbbctkbbwngbbbsl"], [1,3,"r","rrpn"], [3,6,"q","mmlqxqqq"], [12,13,"x","xxxxxxxxjqxkxtxx"], [3,5,"l","nlllhpcc"], [3,11,"x","jxxgcxxbfxpxxfml"], [3,6,"l","nllqlln"], [9,14,"j","jjjjjjjjhjjjjj"], [11,13,"j","jjjjjjjbsjjjj"], [19,20,"k","kkkkkkkkkkkkkkkkkkkv"], [7,11,"n","ndnnnnxfnbnnnn"], [5,6,"g","gggtgh"], [1,9,"f","nfffbnffffc"], [4,6,"d","sdxlgtrmd"], [18,20,"n","nnnnwnnnnnnnnnnnnhnn"], [9,11,"j","jjjdjljjjljtj"], [3,4,"z","bwcsnqzzz"], [1,4,"j","jzjj"], [9,13,"k","cdvwnnwqklwplbzk"], [5,9,"q","hvqpqqtqh"], [2,7,"f","vdkrwpz"], [12,13,"z","zzhzzpwmzzzzq"], [7,13,"s","nsssssfssssss"], [4,6,"s","kgmksst"], [17,19,"p","pfbcgcnxkbpptcbxpsp"], [12,13,"s","ssssssssssspm"], [11,12,"g","gggggggvggsg"], [6,8,"g","gggggzgz"], [1,3,"j","jjjj"], [5,7,"d","ddddgdd"], [6,7,"r","kmrjsbpkrrnpr"], [6,9,"m","mmmmmmmmmm"], [5,6,"b","bxbbvbb"], [5,10,"h","thxgvlhchhzhnfhhhhh"], [11,13,"l","vcllllnhlllvvllll"], [1,9,"j","wjjjjjjjnjjjj"], [4,8,"n","xnlbndngnn"], [4,5,"f","fffmfz"], [7,8,"c","pwmzcxvc"], [15,17,"z","zzzzfzzzzzzzzzzzx"], [4,8,"d","krddfddxddd"], [1,2,"w","wpzxcbxmcktpjmspw"], [4,14,"t","ptcdtvtttbpwtttt"], [8,13,"f","fmfkffdffqfff"], [6,7,"j","jwnxpjlnrlxdjxvzhsll"], [2,5,"m","mmmmmm"], [3,4,"c","cccc"], [3,11,"f","fffrvfzqnmffd"], [3,5,"k","kkxrkkk"], [5,8,"k","kkkvskvkkkhsk"], [12,14,"k","jkkkkdkkkmfzkknkpkk"], [1,2,"h","vhspjh"], [3,4,"p","pppn"], [5,6,"v","vrvdvg"], [7,8,"j","jxrjjjtdjjj"], [3,12,"z","fzzxzgzzzzzhzz"], [10,12,"v","vvvvvvvvgvxxv"], [12,13,"k","kkkplnlpvwkkkkkt"], [4,8,"t","dvjtltttptt"], [15,16,"z","zzzzlzzzzzlwzzzhzz"], [15,17,"n","nnnnnnnnnnnnnnlnn"], [12,15,"z","zjzzzzzzzzzzzzs"], [7,8,"x","hzxnxlxlfxxxxvxxxnx"], [9,10,"r","rrrrrwrrrp"], [1,7,"r","vrfslcr"], [6,15,"t","tttttsttttttttt"], [3,6,"j","wjjdnjznwfclpskvdq"], [2,4,"v","vzlvls"], [9,10,"j","jjjjjjjjwj"], [8,9,"r","kxrrrtqnr"], [14,16,"h","hhhhhhhhhhhfhlhjhhh"], [14,15,"x","xxxxxxxxxxxxxmx"], [8,10,"h","hhhhhhhhhhh"], [10,11,"m","mmmmmmmmmnnmm"], [3,17,"r","fwmqrcjkgrkhzcnfrb"], [1,15,"q","qqqmqzqgcnrqqlkrq"], [2,13,"w","wdwwwwwwwtwww"], [1,8,"l","lllbllln"], [4,7,"n","nnnnnnbnnn"], [11,18,"l","lkllnllqktnllzllll"], [4,5,"d","gddbrlb"], [12,13,"l","llllllnllllztl"], [2,6,"m","lbhptlvgcsmksqspmtk"], [1,2,"t","wtctt"], [3,4,"w","wwbw"], [9,12,"g","gcggvzggqzgggggsgnt"], [2,6,"b","bbrcbc"], [9,12,"m","mmgmkmmmbmmm"], [14,17,"m","mgpjmmqmmmmmmmmmt"], [6,8,"p","dpvzpskp"], [12,18,"x","xxxxxxxxxxxtxxxxxf"], [7,12,"r","xvjvrrrprrrvrrrcbr"], [3,5,"q","rqqxhqq"], [6,16,"s","ssssskssssssssssss"], [6,9,"c","cccqccccxc"], [8,16,"r","rrrrrrrrrrcrrrhr"], [5,9,"t","ctwttthtjl"], [16,18,"t","ttttttttmttttttttgtt"], [13,16,"t","zrtttgttttttmttttt"], [6,10,"k","kntkplgkkkkkmh"], [2,4,"c","vhsccfcc"], [1,4,"v","vvvqvvgpvvvvvzzv"], [3,4,"g","grgvgd"], [5,9,"p","pppbppppdv"], [3,4,"x","lxxxx"], [8,9,"q","qqqqqqzqqqqq"], [14,15,"c","cpcccccccmcccdcc"], [7,10,"p","ppfppppppppg"], [1,2,"h","thrk"], [1,3,"m","mzlzmtmqrm"], [3,5,"x","xxxxp"], [4,6,"t","gtstvvjzqtxdtsrfc"], [6,15,"p","pppwppwspppcppn"], [4,5,"g","tkhgj"], [10,14,"m","mmmmmmmmmnrmmmm"], [2,3,"b","pnbxfzxxbbrt"], [5,16,"b","tfvlbmbzbvxbtdjl"], [16,19,"w","wwwwwwwwjwwlbwwvwwwr"], [14,15,"w","wwwwwwwwwwwwwgwww"], [3,6,"n","npvzfntbfvngns"], [8,10,"s","sgsssssssz"], [2,5,"n","nnnkcnkn"], [12,15,"n","nnnnnnnnnnqnnnq"], [1,4,"p","qppk"], [5,10,"h","ghdhhcsxtzsdphwh"], [5,7,"k","kkkkkkb"], [10,11,"f","ffhlfffcnffmfrffcnff"], [6,7,"f","fffjfxf"], [11,17,"j","jjjjjjjjnjjjjjjjj"], [2,4,"z","wgrdp"], [5,6,"d","dpmdddfmxzgwd"], [8,12,"h","qhhhxhnhhhsmhlhh"], [7,19,"w","wwwwwwwwwwwwwwwwwwmw"], [1,4,"x","mmlxlc"], [1,9,"g","mgggggggggggg"], [1,12,"z","mtkfgpzmjrgs"], [7,8,"v","vvvgvvzvd"], [10,12,"j","djjjjjjjjbjj"], [3,4,"r","srjsfjbrp"], [1,4,"r","trrr"], [3,8,"j","jjjjjjjpj"], [6,7,"l","lltllwl"], [13,14,"g","gggggggggggggg"], [1,4,"w","wwrxww"], [1,10,"l","xfllllldll"], [5,7,"s","xmwsqpsr"], [6,17,"p","pkpnpppznppppplpl"], [11,12,"s","sssssssssdsf"], [14,19,"c","bsxlpshjmwcflcdhlhcr"], [8,12,"b","xbnbbbbbmbbkbbbb"], [14,16,"w","wwwcwwwwwwtwwswww"], [13,14,"f","zfsfbbffffffsf"], [13,15,"s","swssssssjsssxss"], [1,3,"v","vvnvxrwbrbgdc"], [8,10,"t","mkstnqtttt"], [14,15,"g","gggptgggggggggtg"], [12,15,"r","rrrrrrrrrrrrrrkr"], [2,5,"w","cjwpg"], [13,14,"w","wwwwwwwwwwwwqw"], [5,12,"s","bkrrcczsgsfshpwjr"], [4,9,"w","wwwwwwwwwsnw"], [3,4,"x","xxxzv"], [3,6,"g","rggghqvgfk"], [9,12,"h","hhhdhshwhhkrqhh"], [8,11,"q","zqqqqqqmqqhq"], [5,7,"j","ngxjlbhjjjj"], [8,9,"p","rpxpdqcpkp"], [11,13,"d","htbdddddddjdddd"], [2,3,"p","hpbp"], [3,4,"x","xxxq"], [4,7,"m","mmmlmmm"], [7,8,"r","rrrrrrqr"], [9,11,"x","xxxxxxxxxxx"], [5,8,"h","hhhhflbv"], [1,2,"k","vkrkzjpwtbk"], [8,10,"p","pppppppxpg"], [9,10,"h","lhbhhhhhnqhh"], [3,9,"x","xxmqxxxxgx"], [17,18,"p","ppppppppppppppzpqwp"], [8,9,"x","xxxxxxxxx"], [1,6,"l","lrblvjllhll"], [1,4,"k","klkk"], [6,8,"m","mmmmmbmmmm"], [1,6,"h","hhvhqkh"], [5,7,"n","nnnnwnss"], [6,7,"k","kkkkkzkksl"], [6,9,"b","bbbbbbbbm"], [9,14,"k","kbkkfkkkkkchtklkg"], [3,4,"f","fcjpff"], [6,12,"f","fzfxfrqlvhwflfglftpb"], [7,8,"j","djjjjjjsj"], [13,15,"v","vvvvvvvrvvvvvbvvvvv"], [2,11,"p","qpnpfmppphxpp"], [3,4,"g","ggwgg"], [1,4,"q","nqqq"], [4,9,"t","thpqpkxntg"], [1,16,"l","dllllllljlllllllll"], [3,8,"w","dbwwhxwzqwph"], [13,15,"p","ppppppppppppqpm"], [4,5,"b","bbmbqbthmbn"], [2,4,"d","zddq"], [2,7,"x","vpmchtzdbxxxxnxd"], [11,13,"x","xxxxxxxxxxjxxx"], [7,9,"m","mmdjmmmnm"], [10,12,"j","jjjjjjjjjjjx"], [12,14,"j","wfcvflhjvblzdf"], [2,12,"j","lqfjjjzncbgjhj"], [2,7,"j","jtlfjqjbjgqrxgjm"], [4,5,"t","ttttc"], [5,8,"v","vvvvvbvpvv"], [4,10,"b","qghbgkcbbs"], [12,14,"n","nnnnnnnnnnnnnhnn"], [13,19,"v","vvvvvvvvvvvrvvvvvvv"], [4,16,"z","znzvzzzwgzzzzzzzzdz"], [4,13,"q","qqqlqqqqqnqqlqqm"], [9,10,"q","qqqqqqqqrs"], [2,12,"q","qpqszqxqqqqkq"], [10,16,"v","vvfvvvvvsxvznfvv"], [1,3,"f","fvjpkglwfjbcgnbc"], [2,7,"v","vfvqvvv"], [6,8,"l","llllcllllll"], [9,14,"v","vvvvvvvvzvvvvwb"], [10,11,"s","ssmsssssssxsls"], [9,10,"b","bxbbfbbxbzbzjbbm"], [3,15,"x","xcxxxxpxxxxxdgxg"], [10,13,"k","kkkpkjmkscgxkhkbkgd"], [2,4,"j","djqhc"], [9,10,"c","cccccrccds"], [7,10,"v","vvbvvvvjjpvkv"], [13,16,"n","nnnnnnndnnnnqnnsnnnc"], [2,4,"g","qfgg"], [3,13,"v","hvvvvvzrvqvcpvvhj"], [5,12,"n","rnsnnpnnnnntnnn"], [7,8,"p","pppptpppp"], [1,6,"d","cdddqdddddd"], [3,5,"h","cwzhhhbwlhtd"], [8,17,"j","jnjdscnljmhrljrjjmjj"], [3,4,"j","jccj"], [4,14,"m","mmjkmmhwqbkjqmg"], [2,4,"b","bbbd"], [4,7,"v","vhlvvvq"], [1,4,"p","jppm"], [9,12,"g","vggzgppggggnggcdfp"], [5,6,"r","rrrrrp"], [6,13,"t","bxztttrtbttrm"], [17,19,"d","ddddddrddddwddddpdk"], [1,3,"w","jwjwwc"], [5,6,"k","kkkkkk"], [5,6,"f","ffffjxff"], [8,10,"x","xxxxxxxwxl"], [6,8,"q","qqqqqqqq"], [5,8,"d","fddtdbfdkddddddjd"], [7,15,"k","kkkkklnfkqkkxqkkvkk"], [2,5,"x","cqzxxx"], [3,4,"j","jjjb"], [7,8,"w","wwwwwwlw"], [18,20,"g","gggggggggggggggggggg"], [10,11,"w","hwwwwwwwnwmwws"], [2,10,"d","xsdjqqrqzdnhgmvlhkgm"], [2,3,"s","rsxhms"], [7,8,"n","tdnnznwpnnn"], [10,12,"g","gggggggggggg"], [7,13,"z","zfxzqzzmzzzrndzkvz"], [11,12,"k","kkkkkkkkkkkk"], [6,7,"t","ttjxxtc"], [4,6,"n","nwzlfxnnn"], [4,6,"j","jjjdmj"], [8,14,"p","xgspprprpppppppp"], [6,7,"k","kkkjkkzktn"], [5,8,"d","dddddmdt"], [4,6,"j","jfhjjb"], [3,4,"k","jrkckdwqjbcctpklm"], [6,9,"w","wwwqwxqwzkwgwwwvqbs"], [1,4,"t","gthttttttt"], [3,4,"h","bhhb"], [4,6,"t","ttqltktv"], [11,17,"v","vvvvdvvvvvpvvvvvvvv"], [13,14,"d","ddndddwddkcdvkddddkn"], [3,4,"b","xhdb"], [3,7,"w","zwcptvwlkswv"], [8,11,"p","pptpppppppm"], [5,14,"p","wpmpnplrppppppptp"], [1,3,"q","stqdkc"], [10,11,"c","ccccccccccv"], [1,7,"s","msszslsps"], [12,14,"h","hhghhnhhhhhhhmh"], [14,16,"g","gscwmsggggdgggmg"], [7,12,"z","htztzwzzkzzkrzzzlz"], [3,6,"n","dcnnvn"], [3,7,"k","kkkkkkj"], [2,3,"m","vmlkkjn"], [12,13,"r","rrrrlrrrrrrrrr"], [6,7,"z","zzzzhxxczzsd"], [2,7,"g","htjgfggbllbgxggq"], [13,17,"m","xhhnpmdxfpvsmjzwb"], [7,9,"h","hhhhhhhhjh"], [3,4,"z","zrzzz"], [1,5,"l","llgwlszllvxxmflglldt"], [7,9,"v","vvvvvvmvcq"], [5,7,"r","rrzcwsmrrgrwxnrg"], [14,16,"t","twttpttntttttttlt"], [7,14,"j","qjsmcdzdqjgjpjjcjj"], [2,3,"s","sshscbks"], [3,10,"p","vppkpwpplpvp"], [2,5,"t","ftrrt"], [3,7,"c","cgrsczccpcpcc"], [9,10,"v","vvvvvvvvvxvvvvv"], [2,3,"v","vvsvw"], [9,11,"d","dddddxdjddbd"], [3,4,"p","pdpgrpj"], [9,10,"p","pwppppwpvpp"], [4,18,"r","hmrdmwvrnggrcgrsrrwg"], [3,4,"n","nnnnnf"], [1,8,"x","tblrxhhxwjb"], [10,19,"f","ffbffffpfffhfksflfkf"], [5,12,"s","sssjtsssssss"], [5,6,"z","zzzzfz"], [7,8,"n","nfnnnnrn"], [8,9,"x","xxxcxxxxx"], [4,8,"x","tcdxxxxdx"], [3,4,"x","xxwc"], [6,8,"h","whnhrvdlhhhhhhhxkd"], [14,15,"q","qqqjqmrnnqktdtq"], [5,9,"f","fhffkhfxhc"], [6,8,"c","cccccccwc"], [17,19,"s","ssssssssssmssssszss"], [10,12,"f","hffffffffzff"], [6,7,"k","nkmkkdkk"], [4,9,"v","bvvvvvxvwnvcv"], [19,20,"v","vvvvvvvvvvvvvvvvvvvv"], [4,8,"h","nhnhhhhvtvfh"], [12,13,"l","lltllllllllqll"], [13,17,"s","ssssssssssssnsssgs"], [6,9,"g","gdvctgcgzgrgf"], [13,15,"w","wwwwwwwwwwwwswb"], [4,8,"l","lllfllcglllljl"], [8,9,"q","flqqqqqrrqq"], [4,5,"w","wwwmww"], [2,5,"v","dqkgvhlmqvv"], [6,8,"g","gvtggvgg"], [3,11,"t","ntvttnqtgltttttt"], [3,7,"m","mmqmjmmm"], [9,13,"d","dddzddddddddndd"], [3,7,"j","jjqjhjt"], [13,14,"q","qqqqqqqqqqqqbq"], [5,11,"x","lxxxhxxxckxx"], [5,6,"q","qnqqqwqqq"], [2,5,"z","hzzskzzckj"], [2,3,"j","jjzm"], [3,4,"g","wggs"], [1,3,"v","vzsbsvv"], [2,4,"z","mrnz"], [16,19,"x","fxxxxbxxxxxxxxjxxxf"], [6,7,"x","xxxxxtx"], [1,6,"v","qvrvvvv"], [4,5,"w","hwwdww"], [3,4,"d","tljd"], [6,13,"v","nvcdjvjrvvvmqj"], [6,10,"v","gfqjlnxfvhw"], [6,8,"f","kzvffvffff"], [5,6,"r","rvrctrrwcrvr"], [6,11,"s","csfcvsxhgcsvh"], [8,11,"b","bbbwwmdbbbjjbtb"], [5,13,"x","lvxxbvtxbhvdx"], [3,6,"h","dhhhvmscwwbhbrbk"], [4,5,"s","gmpqsw"], [2,12,"z","pzncbwqpfbhsfzzz"], [5,6,"w","dwwbwqhgb"], [2,13,"l","llllllllllllcllllll"], [1,9,"v","vjjvvvvnvvvtvvd"], [12,14,"f","ffjffzftfcfrffbf"], [2,5,"b","brwzbs"], [6,10,"s","tnfszsnjvbwzzhtwqg"], [5,6,"p","pfkppppppppp"], [3,5,"n","vstnnnprjn"], [9,18,"s","sssssssssssssssssr"], [1,6,"d","wdldddnvdndfqvd"], [3,5,"t","kttjlcpttzt"], [5,7,"z","zzzzhlzz"], [2,9,"p","ppppppppjp"], [7,9,"v","vvzvvvvvvvvcv"], [3,6,"r","zrrtrrfpwgzbrtskt"], [9,12,"s","mptshmsssssslssss"], [5,10,"c","nccmccchjjthdtlcj"], [18,20,"r","rrrrrrrrrmrrrrrrrxrr"], [2,14,"f","frplctstcgdfff"], [9,15,"h","hfhzhhhhhvmfjhhfjhhh"], [1,6,"w","wwwwrpm"], [4,6,"f","hfffhcfjfszdzbbg"], [7,10,"w","xwwwwzhwrpwkw"], [9,10,"r","rrrrrrrrzr"], [14,16,"n","pngnnnnnnvnnnnnsnn"], [14,15,"p","gppppdpppjppzptpppp"], [1,4,"n","wnnnnnn"], [12,13,"t","tttttttttttgt"], [4,5,"n","nnwsd"], [9,10,"l","vlllllllln"], [5,16,"p","pppfxpxpspppmpkgppp"], [1,10,"v","vlvvtvlkvmgcdwvvtrv"], [14,15,"s","ssssssssjssskrg"], [4,5,"n","gxnnnn"], [4,10,"b","lvbqbjbbbbw"], [5,6,"k","xkrkfldcs"], [5,6,"n","nnsnnznfjnf"], [6,9,"v","gqvvmvvvpb"], [14,18,"f","sdffffwffflffsfffn"], [2,4,"m","mmdm"], [11,12,"g","ggnmgdmfhrpgzgr"], [14,15,"z","zzzzzzhzzzzzmzcz"], [7,13,"s","ssssssstssssj"], [4,6,"g","zgtbcg"], [2,7,"t","rttskmdpmvk"], [6,20,"n","nnkpnnnlnfnnbnpnnnnm"], [9,10,"w","zfpwwhwjwdwwwpwwjww"], [3,9,"d","ddldddddwdddd"], [4,5,"f","hfftmfcq"], [1,2,"w","zwbjt"], [7,11,"g","cggggkxggvgggtbmm"], [5,9,"d","dwgfdltddgndwd"], [3,4,"b","rbrbb"], [6,10,"z","fzzzzxzzkzxz"], [4,5,"z","zzhzjzffcz"], [8,10,"x","wwsxdbkxgd"], [9,10,"t","lttttfttdtttc"], [13,17,"d","dddddddtdnddddddrdd"], [13,15,"w","wwcwwwwwwwwwlwdwq"], [4,18,"r","rvrrrkwtrmrbrrrzfwlj"], [11,14,"j","jxjjjjjjtjjjjjv"], [8,15,"m","mkmmlmmmmmmmmrqmmm"], [1,3,"g","gsng"], [3,11,"n","ttdplnfpkmnrwcrqwbvr"], [5,10,"n","wgnqrlcnnnnnnn"], [7,9,"c","jgwbrcclt"], [1,4,"l","flml"], [8,13,"s","sjssqssrgssrz"], [6,7,"x","xlxbclxxxzxbwqx"], [12,19,"g","qlzcctgmgfmrvxgwvgzj"], [4,5,"w","wwwrr"], [11,18,"m","kmgxmjskmmmmmmmmmz"], [12,16,"f","ffqlfhzflqffffkfz"], [1,6,"k","kzkhrfxkkk"], [10,11,"x","vxfxxxbxxxxx"], [4,6,"d","gvqdwrclzsdmhglrz"], [5,9,"d","dwjddjddd"], [1,3,"n","ndcqcn"], [4,5,"r","rrrrh"], [5,10,"g","pkbxgvczgn"], [4,6,"w","wggwpfww"], [2,4,"g","glgggg"], [7,8,"h","hhhhhhhh"], [12,16,"h","nkvzdqlbsptvnrzh"], [8,14,"w","bwlwbwghwwwwtwwl"], [4,11,"q","vqsllpqnqdcbbtvqrqxb"], [2,5,"x","xkxxx"], [4,10,"c","cccjncjsccr"], [10,18,"h","xkswshrhghxlnmhqzr"], [5,18,"k","kkkkkkkhkkkklkkkknk"], [9,10,"t","ttttttttnt"], [10,11,"x","xxxxxxxxxcv"],
([2, 8, 't', 'pncmjxlvckfbtrjh'],) ([8, 9, 'l', 'lzllllldsl'],) ([3, 11, 'c', 'ccchcccccclxnkcmc'],) ([3, 10, 'h', 'xcvxkdqshh'],) ([4, 5, 's', 'gssss'],) ([7, 14, 'm', 'mmcmqmmxmmmnmmrmcxc'],) ([3, 12, 'n', 'grnxnbsmzttnzbnnn'],) ([5, 9, 'j', 'ddqwznjhjcjn'],) ([8, 9, 'd', 'fddddddmd'],) ([6, 8, 't', 'qtlwttsqg'],) ([7, 15, 'm', 'lxzxrdbmmtvwhgm'],) ([6, 10, 'h', 'hhnhhhhxhkh'],) ([6, 8, 'z', 'zhgztgjzzfzqzzvnbmv'],) ([5, 6, 'j', 'jjjjgt'],) ([2, 3, 'm', 'mmmfxzm'],) ([6, 7, 'n', 'nnnqgdnn'],) ([8, 13, 'b', 'bbbbbbbbqjbbb'],) ([7, 8, 'k', 'kkgkkbskkk'],) ([1, 3, 'g', 'gdmvgb'],) ([5, 15, 'g', 'gggzgpsgsgglxgqdfggg'],) ([12, 16, 's', 'snhsmxszbsszzclp'],) ([2, 3, 'n', 'vhnnn'],) ([5, 7, 'l', 'slllclllkc'],) ([2, 4, 'g', 'rnggggdkhjm'],) ([1, 3, 'x', 'wxcxhxx'],) ([7, 12, 'c', 'cxzcwcjqgcmpccchc'],) ([4, 5, 'x', 'lnfsxjxwxx'],) ([9, 10, 'n', 'nnnnnngnzxnnn'],) ([3, 4, 'h', 'rhhk'],) ([3, 11, 'r', 'xrrcnrjrrzsvrrplr'],) ([6, 11, 'r', 'rrrwrrrrrrrrrrrr'],) ([3, 4, 'x', 'xmxz'],) ([1, 2, 'l', 'lllllk'],) ([5, 11, 'h', 'cmxhhhhhrhd'],) ([2, 11, 'h', 'mhzlzshjvtcrrcf'],) ([6, 15, 'g', 'ggggfgwggkcggqz'],) ([3, 4, 'q', 'qqsc'],) ([2, 8, 'm', 'wmwxvmsmfqlkgzwhxqdv'],) ([3, 9, 'b', 'pnrdsgbbbrbgb'],) ([1, 7, 'w', 'ddqtjwwxgwkqsgswvwkl'],) ([3, 4, 't', 'lxtt'],) ([4, 6, 'g', 'ggxngg'],) ([12, 13, 'd', 'dddddddddddjjd'],) ([10, 20, 'n', 'nnnnnnnnnnnnnnnnnnnp'],) ([15, 20, 'j', 'kjjjljjjjjjjjjjhjjjn'],) ([5, 11, 'r', 'rwrrrrvrbrrrrr'],) ([2, 4, 'w', 'wwww'],) ([6, 10, 'v', 'vvvbvsvvvv'],) ([3, 6, 'd', 'tkbcdddzddd'],) ([10, 13, 'r', 'rrrrrrrrrlrrhrr'],) ([3, 6, 'w', 'ggsxkwjzfpnmkw'],) ([2, 6, 'b', 'bbqbbq'],) ([7, 8, 't', 'tztttwtttvt'],) ([1, 3, 't', 'twrttzbfdhrkvdzgn'],) ([4, 10, 'c', 'jxcxvcpnfccvc'],) ([8, 17, 'r', 'rrrrrrlvrrrrrrcsrrrh'],) ([1, 3, 'g', 'gsggjsn'],) ([6, 8, 'l', 'lllclmjllf'],) ([11, 15, 'b', 'bbbzbbbhbbbbbnbb'],) ([7, 9, 'l', 'lflblhzllml'],) ([9, 12, 'v', 'pvtvrvvvrvvhgmvnv'],) ([1, 3, 't', 'zbrtjt'],) ([5, 6, 'f', 'ffffcf'],) ([3, 4, 'q', 'cqtz'],) ([13, 14, 'n', 'wnnnnnnnngnnnhpnnsn'],) ([1, 12, 'd', 'bdddmdqcsdhd'],) ([9, 11, 'h', 'hhhhhxhhhjqh'],) ([7, 11, 'w', 'wwwwwwswtkww'],) ([12, 14, 'm', 'mmmmbmdmmmmmmmzmjmv'],) ([1, 7, 'x', 'qdtjxmxhw'],) ([3, 5, 'n', 'nnnnn'],) ([10, 13, 'd', 'ldcrdvcvvxdpd'],) ([4, 8, 'm', 'mrfmwmzgmrp'],) ([3, 8, 's', 'ssssssssss'],) ([1, 7, 'h', 'qhhhhhhhhh'],) ([9, 10, 'q', 'kqqqqqqmhqqqqhqr'],) ([5, 6, 'c', 'cmcccl'],) ([3, 4, 'q', 'qqqw'],) ([2, 8, 'v', 'vtvvvvvvv'],) ([1, 5, 'z', 'zzzzqz'],) ([7, 8, 'k', 'kkkrkqmkkkkk'],) ([14, 16, 'j', 'jjjjjjjjjjjjjjjs'],) ([6, 7, 't', 'tttttpc'],) ([3, 5, 's', 'xsxsss'],) ([4, 5, 'v', 'gvvpjv'],) ([3, 5, 't', 'vqgft'],) ([3, 4, 'c', 'ccwcc'],) ([3, 7, 's', 'sslwsss'],) ([2, 5, 't', 'tnbgprqgzm'],) ([16, 20, 'b', 'bbbbbbbsjbbbbbbbbgbd'],) ([6, 8, 'p', 'ppqppwph'],) ([12, 13, 'm', 'mmmmmmmmmmmml'],) ([10, 13, 'r', 'rrrntrrrrhrrr'],) ([9, 11, 'f', 'fffhffffhfcfmf'],) ([4, 8, 'l', 'lmsrlllllzmlll'],) ([4, 11, 'p', 'sxpnpbzpjppgbn'],) ([3, 8, 'c', 'fcccqmfcccxrhmccw'],) ([6, 7, 's', 'sqsjdbssbsrssd'],) ([3, 4, 'g', 'gggt'],) ([1, 3, 't', 'tstnsnksfsbgt'],) ([3, 4, 'v', 'vvvcv'],) ([13, 18, 'g', 'tggggppggggggwgggpg'],) ([4, 8, 'm', 'mmmlmfdm'],) ([1, 3, 'z', 'fzzz'],) ([1, 12, 'f', 'ffzfffffmffrnff'],) ([10, 11, 'f', 'ffkffffffff'],) ([11, 12, 'm', 'mmpmdmmrmmmtmmm'],) ([9, 11, 'k', 'zkkkfkkkkkzkkh'],) ([16, 19, 'b', 'bbbbbbbbbbbbbbbvbbjb'],) ([3, 4, 'v', 'vvvhvz'],) ([1, 6, 'l', 'xllllll'],) ([8, 15, 'c', 'cccccccccccccccccc'],) ([10, 12, 'm', 'mmvmlzrmrnmmmm'],) ([1, 3, 'c', 'whcc'],) ([2, 3, 'q', 'kqgq'],) ([2, 13, 's', 'sbssscrslnssldsxtssg'],) ([2, 4, 'v', 'bfdr'],) ([7, 19, 'c', 'ccccccccckfgpgcmccf'],) ([7, 9, 'f', 'fxvfffffsf'],) ([1, 5, 'n', 'nnnns'],) ([13, 15, 'g', 'gggggggggggghggg'],) ([9, 10, 'w', 'hdwcwqswpwwwwww'],) ([14, 17, 'j', 'jjjjjmjjjjjjfqjjjjj'],) ([2, 5, 'k', 'pkrfrdtfbvkkrkk'],) ([2, 3, 's', 'ssss'],) ([1, 8, 'd', 'vsxtlvdqpltcj'],) ([3, 7, 'b', 'nlqhbbb'],) ([6, 10, 'x', 'xfxxxrmxxxdx'],) ([5, 6, 'n', 'nnnnnm'],) ([5, 6, 'r', 'rrrprr'],) ([6, 7, 't', 'dfttttqtwktttgrkkj'],) ([1, 2, 'p', 'npnf'],) ([6, 8, 'p', 'ppppptppp'],) ([4, 8, 'k', 'bkkkkqkkq'],) ([11, 12, 'l', 'kmlnhhmkdlhl'],) ([14, 16, 'b', 'bmbbbbbbbbbbbcbbb'],) ([3, 5, 'r', 'rrfrrrr'],) ([5, 10, 'v', 'glglvvmvkvvvgvrv'],) ([2, 3, 'h', 'whhcsqjhtx'],) ([7, 8, 'd', 'ddddbpddddhdhdddddd'],) ([2, 3, 'k', 'kkkkkkksgkkkkg'],) ([2, 6, 'n', 'cnrpdmtgwncklll'],) ([3, 14, 's', 'sssckrswlqxshdts'],) ([3, 4, 'w', 'wwgww'],) ([15, 19, 'q', 'qqpqxqqqqqqwqsqqqqz'],) ([1, 5, 't', 'vrtkttttj'],) ([2, 7, 'z', 'lmpzjbh'],) ([11, 15, 'g', 'gkghtgpwrgngggggvng'],) ([4, 17, 'b', 'bbbbbbbbbbbbbbbbbb'],) ([4, 6, 'c', 'bswcml'],) ([3, 4, 'v', 'vvxg'],) ([2, 4, 'm', 'mmmmm'],) ([2, 4, 'w', 'kwqwjwt'],) ([7, 14, 'x', 'ghflqcwxcrxzrxm'],) ([6, 7, 'f', 'fffjffsff'],) ([11, 12, 's', 'sssssssssssr'],) ([3, 13, 'v', 'vvzcvrvjgxvkcvh'],) ([3, 8, 'k', 'jkhgbzgkkfwvt'],) ([6, 7, 'l', 'llltllljl'],) ([8, 10, 'p', 'pppppppkvp'],) ([1, 12, 'l', 'lbhxdplkxdstmllwncnl'],) ([2, 6, 'c', 'cqcwrwnbjc'],) ([2, 5, 'v', 'vvkvvvbbv'],) ([3, 4, 'g', 'ggnkg'],) ([3, 4, 'z', 'rczzhbwmszgzhfszd'],) ([8, 10, 't', 'fvrttqnwjtft'],) ([11, 17, 'l', 'cllqltnlldcllnwnllll'],) ([2, 9, 'r', 'jrrwrrcjrr'],) ([3, 5, 's', 'skmsssh'],) ([5, 6, 'q', 'qqqqtq'],) ([7, 16, 'k', 'ktzxwrxcdrmkqfpk'],) ([7, 12, 's', 'hfsssssssssmsk'],) ([3, 11, 's', 'gssjsdxdxsqgpns'],) ([9, 11, 's', 'sssssssssss'],) ([5, 9, 't', 'xtwthrdtvj'],) ([5, 7, 'q', 'qjqxqjq'],) ([2, 10, 'r', 'zlrrrrrtrr'],) ([2, 18, 'w', 'trwqhcfwrmqwwwqfgwww'],) ([2, 5, 'k', 'kkkkwkp'],) ([1, 4, 's', 'fqss'],) ([1, 4, 'l', 'xtflz'],) ([10, 12, 'q', 'qqqqqqqqqnssq'],) ([3, 4, 's', 'sssd'],) ([10, 20, 'm', 'mnmmmmqwmjnpbmmmmbmn'],) ([3, 5, 'l', 'clpln'],) ([2, 11, 'v', 'mhrvdkgsxvvvdxvhgv'],) ([15, 16, 'j', 'jjjjjjjjjjsjjjkj'],) ([2, 5, 'f', 'gzvzffsnxdcf'],) ([8, 10, 'm', 'jmmmmmmrmmmmm'],) ([1, 2, 'k', 'fmhkpmssvdkh'],) ([4, 7, 'l', 'vgtldqpbmmj'],) ([2, 3, 'v', 'kdvcgvnw'],) ([15, 17, 'g', 'ggggggggnggggglgj'],) ([4, 5, 'w', 'kjwnw'],) ([6, 16, 'j', 'fjjrjkbjsjjvljzjjdj'],) ([2, 4, 'g', 'bgvgqs'],) ([9, 12, 'k', 'lkkgkkkkzfkqkcj'],) ([6, 13, 'b', 'bbbbbmbbbcbbqb'],) ([7, 8, 'm', 'mmcmmmmp'],) ([4, 5, 'v', 'vvvvg'],) ([11, 15, 'n', 'nnqxnnnnnqmnnnnfnpn'],) ([1, 5, 'z', 'gkvwtv'],) ([4, 5, 'l', 'llllk'],) ([3, 4, 'd', 'ddss'],) ([1, 4, 'v', 'vvvl'],) ([2, 3, 'v', 'vjcvvvvq'],) ([9, 13, 'v', 'vvvvbvvvvgppv'],) ([11, 14, 'd', 'ldhdddddddwpdddddddd'],) ([2, 12, 'p', 'rrpppwppxjplprpp'],) ([5, 11, 'p', 'spfcjpmplbpzpppgpp'],) ([3, 6, 'q', 'lkqfqcq'],) ([2, 4, 'x', 'xvxwxv'],) ([2, 12, 'x', 'bxxxxjxxxtxhktkx'],) ([1, 14, 'c', 'cccccccccccccpc'],) ([5, 16, 't', 'qstttfxttmtvvgtzt'],) ([7, 8, 'q', 'kqqqqqwq'],) ([5, 6, 'c', 'cccccdcccccc'],) ([7, 9, 'v', 'dvnbvvjmh'],) ([5, 7, 's', 'sdssswvr'],) ([1, 2, 't', 'vtsttt'],) ([6, 8, 'd', 'dgdwdcdd'],) ([5, 18, 'j', 'qjjjjjjtjjjjjjjljlj'],) ([2, 16, 'r', 'ksrtrrrrrlchrljrz'],) ([5, 7, 'm', 'mmmkmmvmxbflctjhhfxc'],) ([4, 10, 'f', 'mfftfrfffff'],) ([6, 12, 'x', 'xxxxxxxxxxxbx'],) ([9, 12, 's', 'ssssssssdsshs'],) ([12, 14, 'v', 'vvvhvvvvvzvvvrzvlvg'],) ([14, 17, 'd', 'ddhdddddddddddpdd'],) ([1, 5, 'c', 'rcchc'],) ([1, 9, 'n', 'npnnnrxnh'],) ([1, 4, 'n', 'mnnn'],) ([2, 3, 'q', 'qklxpwr'],) ([7, 8, 'j', 'djjjjfjnjjv'],) ([4, 5, 'h', 'hhrcbhc'],) ([6, 8, 't', 'txtfclvtz'],) ([8, 11, 'w', 'grhwwqwhwwww'],) ([1, 5, 'r', 'rrkrxl'],) ([3, 6, 'v', 'jgtdsvlpgx'],) ([14, 18, 'r', 'rrrrrrrrrsrrrhrrrr'],) ([5, 13, 'g', 'xggsggggggggggn'],) ([18, 19, 'x', 'xxxxxxxxxxxxxxxxxfx'],) ([4, 5, 'n', 'dpnnnwnntpwgntqnj'],) ([4, 12, 'c', 'ccccmcccczrspfrcpx'],) ([15, 16, 'h', 'hwhzhnhhhhshhhhhhhhh'],) ([3, 4, 'v', 'vvvg'],) ([3, 4, 'j', 'jpjs'],) ([10, 13, 'h', 'bhhhhhrhhhhhsdh'],) ([2, 4, 'v', 'svvclvv'],) ([12, 13, 'k', 'zkkkkkdskkkpkwwkk'],) ([8, 9, 'b', 'bxbhjbbjb'],) ([1, 10, 'k', 'kpkmkstkhtkl'],) ([5, 6, 'd', 'qddddx'],) ([1, 3, 'm', 'mmmm'],) ([1, 5, 'r', 'trrrrrr'],) ([2, 5, 'l', 'llvlnlllm'],) ([9, 18, 'd', 'dddjhddddvdddtddddd'],) ([9, 20, 'j', 'nxfjfjjbjjljjjjcjjjj'],) ([5, 7, 'v', 'zkvvzpxvtctvmcvvvvv'],) ([1, 6, 'd', 'lmcmvwdwq'],) ([1, 5, 'v', 'dbdvv'],) ([6, 11, 'n', 'snnzlnnnwnd'],) ([11, 17, 'l', 'lwlltvlplldlllllsll'],) ([6, 8, 'k', 'kkkkktkkp'],) ([9, 14, 'q', 'nclswjgmqwvhjrs'],) ([7, 10, 'c', 'cgccfccccl'],) ([2, 3, 'z', 'zqkzzj'],) ([14, 15, 'v', 'vvvvvvvvvvvvvvg'],) ([7, 9, 'z', 'zzzztzzqtz'],) ([11, 17, 'n', 'vnnnnnnnrnnnnnnnqn'],) ([15, 16, 'l', 'lllllqlllllllllz'],) ([1, 14, 't', 'pgskddftttttxtflt'],) ([2, 3, 'd', 'bdpqd'],) ([3, 18, 'k', 'dkkpkkkkkjjtjgkkkxs'],) ([6, 10, 'p', 'qlptppdjppllppp'],) ([8, 9, 's', 'sssssssss'],) ([11, 16, 'q', 'qqjqqqhqqqqqdqqmq'],) ([7, 8, 'p', 'pprqppvhpqp'],) ([5, 12, 'q', 'qqqqbqqqqqqqqqqqqq'],) ([1, 5, 'b', 'wbbbjbb'],) ([9, 17, 'm', 'fdhmxtmmccxpmmfbmtbm'],) ([2, 5, 'b', 'tbbptwkghzvsbvcb'],) ([12, 16, 'w', 'wwwwwfwwwwvwfwwww'],) ([4, 5, 'h', 'hfhggh'],) ([11, 16, 'z', 'zlzzdrzzxtxzzzzqz'],) ([3, 6, 'x', 'xxwxxm'],) ([3, 9, 'w', 'vmpsthqww'],) ([5, 9, 'q', 'qqqqpqqqq'],) ([17, 18, 'g', 'gggggggggggggggggw'],) ([3, 8, 's', 'sscmsssssf'],) ([7, 15, 'v', 'vvvvzvttvvvvvvgvvvv'],) ([14, 19, 'h', 'mdpmhtmhsdsxxhthhhd'],) ([1, 3, 'h', 'hbhcbvhxfmjqdgt'],) ([15, 17, 'p', 'xmnhkrgcxxrdtpprzhfh'],) ([2, 5, 'w', 'dqqrwwbvq'],) ([16, 17, 'c', 'ccccccccccccccccc'],) ([1, 4, 'p', 'plcvxpp'],) ([10, 15, 'b', 'bbbnbbbbbvlzbvgb'],) ([9, 10, 'g', 'gggwggggcp'],) ([3, 4, 'd', 'dtdcd'],) ([1, 5, 'v', 'vjslbjjtxldvvknn'],) ([2, 4, 'n', 'fhgnl'],) ([2, 3, 'x', 'xnjm'],) ([3, 8, 'j', 'tzvjbjvxchjk'],) ([1, 10, 'g', 'wgggggghghggq'],) ([5, 7, 'q', 'dqlwqqqkqqhq'],) ([6, 7, 'd', 'dddrddhdld'],) ([2, 4, 'x', 'kxbxxmchtx'],) ([1, 2, 'w', 'wwjg'],) ([19, 20, 'r', 'hfjrqwdxppgzppwchrjr'],) ([10, 16, 'r', 'rrrrrzrrrrrvrrrt'],) ([1, 3, 'm', 'cmmlm'],) ([14, 17, 'h', 'hhhhhhhhhhhhzhlbphh'],) ([2, 4, 'f', 'bfhf'],) ([3, 6, 'j', 'mkdmmmpjjbqmk'],) ([6, 7, 'x', 'flxxxqxxx'],) ([12, 15, 'q', 'qqqqnqqqqqqnqqs'],) ([9, 10, 'w', 'wgwdwxrlwgwwwmwwcgd'],) ([6, 7, 'k', 'kdnrppkkkkkkrj'],) ([2, 3, 'n', 'pntsmsnb'],) ([1, 5, 'c', 'cqcctccqcccccn'],) ([9, 10, 'f', 'txffffffffcff'],) ([2, 6, 'b', 'smtckkcqrsbkzjbtpbtb'],) ([10, 14, 'k', 'kkckkkkkkhkkkd'],) ([9, 11, 'm', 'jnwmbmjmmqsfz'],) ([9, 10, 'h', 'hhhhhhhhhh'],) ([5, 6, 'h', 'hhhhhvh'],) ([3, 6, 'c', 'cccccr'],) ([10, 11, 'l', 'llllllgplll'],) ([6, 11, 'r', 'prprnrrrqrr'],) ([13, 14, 'p', 'pppppppppppphp'],) ([5, 8, 'j', 'pkjjqjjjjh'],) ([7, 9, 'f', 'zfjfcfhcfkffffxv'],) ([9, 10, 'w', 'wwwwwwwwwhw'],) ([2, 3, 'z', 'tzszz'],) ([2, 3, 't', 'ntdt'],) ([7, 10, 'l', 'llllllqllkl'],) ([4, 10, 'j', 'bmsjjtjjjlbp'],) ([1, 3, 't', 'kbrxpnstztz'],) ([2, 3, 'h', 'chbwpmvdh'],) ([2, 11, 'p', 'qwqzlpdbpvpxp'],) ([8, 11, 'c', 'tzcbpcccgfj'],) ([4, 5, 'g', 'rgcdg'],) ([1, 8, 't', 'pwtkzttdlrd'],) ([2, 3, 'l', 'ldlrvsl'],) ([4, 5, 'j', 'jjjrj'],) ([2, 4, 'k', 'vkfk'],) ([18, 20, 'v', 'vvvvvvvfvvvvvvvvvvvj'],) ([5, 11, 'w', 'gbjwwwwzxsl'],) ([10, 12, 'd', 'ddddddddddqd'],) ([1, 4, 'r', 'rrqr'],) ([7, 8, 'p', 'pppppzpp'],) ([7, 8, 'c', 'cccscmcfch'],) ([6, 7, 'c', 'crncccvtc'],) ([6, 8, 'z', 'zkzlxzcb'],) ([3, 4, 'h', 'hhfs'],) ([12, 13, 't', 'ttttttttttthmt'],) ([2, 12, 'x', 'xdxxxxxxxxxxxxx'],) ([2, 5, 'n', 'cnnnknnn'],) ([10, 11, 'x', 'xxxxxxxxxsx'],) ([3, 9, 'q', 'fgfqjqxzqtlqqmgk'],) ([1, 4, 'g', 'gzsk'],) ([11, 14, 'h', 'hhhrhwhhsqhchxclhhh'],) ([5, 15, 'q', 'nqzqqqqnqkqfqqqqqq'],) ([10, 14, 'b', 'bbbbbbbbbhbbbqbb'],) ([5, 6, 'v', 'rpfvdvjvvvvvdxjgwc'],) ([6, 7, 'r', 'rrrrzwrhrdv'],) ([3, 4, 'f', 'fffb'],) ([9, 12, 'q', 'qqqqqqqqqqqqqqqqq'],) ([15, 19, 'c', 'cccclcccxcccctccccs'],) ([2, 3, 'b', 'jbwqq'],) ([5, 6, 'h', 'hhchpm'],) ([11, 12, 'f', 'fffffffffffl'],) ([5, 9, 's', 'fsggxprbsssklhhbsl'],) ([12, 15, 'f', 'ffffcfzfffkrfffnh'],) ([1, 2, 's', 'fstz'],) ([1, 6, 'b', 'nbfbhb'],) ([2, 11, 'k', 'xfdjrwptgrkk'],) ([18, 20, 'k', 'kkkwkkkkkkkpkkkkkkkr'],) ([4, 8, 'r', 'rgcsrgkdrrrrtwr'],) ([3, 5, 'k', 'kkkkvgkkkkn'],) ([9, 13, 'b', 'bjgbkxqzbbbjtbx'],) ([1, 2, 'n', 'rmbgdnjt'],) ([3, 6, 'k', 'kqnkkk'],) ([3, 6, 'c', 'gzggcpxszscccccc'],) ([15, 17, 'r', 'rrjnrrrrtrrrrhrrxrr'],) ([11, 12, 'd', 'dddddddddddx'],) ([4, 8, 's', 'sxztltlssksqwthss'],) ([12, 13, 'l', 'llxllllskllqvdlll'],) ([4, 6, 'j', 'cjxdvjjlx'],) ([1, 4, 't', 'mwttttttttttttt'],) ([7, 8, 'p', 'pbpdpbdpmppjpp'],) ([11, 13, 'l', 'lkjlgdllkllvnl'],) ([9, 10, 'b', 'sbbbbbbbrb'],) ([9, 13, 'l', 'lzlllllllljlllll'],) ([6, 7, 'r', 'tnkpjrhkxzdzwwxv'],) ([1, 4, 'x', 'hdnxxlx'],) ([4, 5, 'b', 'kvhwb'],) ([1, 2, 'p', 'pxmhbcp'],) ([2, 5, 's', 'csgfssjssstcq'],) ([3, 7, 'k', 'htnkkhprxkc'],) ([14, 20, 'c', 'rlkhpgccjsjchccjmkbg'],) ([2, 3, 't', 'ttxt'],) ([13, 18, 'p', 'pppppppppppwvppppq'],) ([9, 10, 'j', 'jjqjjjjjdbj'],) ([10, 12, 'm', 'mmmmmmgmmlmm'],) ([5, 11, 'l', 'qrwgblsqjxtll'],) ([1, 5, 'm', 'mqwnn'],) ([7, 12, 'p', 'pppppppppppppppppp'],) ([4, 8, 'd', 'bdrntdzdd'],) ([14, 15, 'g', 'gggggggggggzggc'],) ([3, 4, 'm', 'mmmc'],) ([2, 9, 'd', 'hsqjddjfdcqzsjr'],) ([5, 9, 'h', 'hhhhsffhk'],) ([5, 7, 'f', 'ffffcff'],) ([6, 8, 'z', 'wzkzzzzjzzczg'],) ([2, 9, 'q', 'dqqqgbqdnlfqqws'],) ([6, 11, 'm', 'mhmmpmxmxtxmp'],) ([7, 11, 'n', 'nvjtglngnzmbnnqjnjgp'],) ([11, 12, 'v', 'vvvvvvvvvvdg'],) ([2, 3, 'z', 'vmzz'],) ([6, 8, 'z', 'zzzzzzzbzzzzzzzzzzz'],) ([6, 13, 'k', 'hkvkhpkqkkkkwsdkmk'],) ([1, 9, 'k', 'gkkkkkkkkk'],) ([2, 5, 'g', 'gngggxg'],) ([12, 14, 'm', 'mmmmmmmjmmmrmhm'],) ([1, 6, 'f', 'cqffffsb'],) ([10, 11, 'p', 'xppxpqbplpp'],) ([3, 17, 'j', 'wdjldqqbxqxbcrbkjfth'],) ([5, 8, 'w', 'wlhwvkwwwzkww'],) ([4, 6, 't', 'vtthtt'],) ([6, 9, 'm', 'rkmtgbzrfmg'],) ([10, 11, 'g', 'gggrgggsggbgmg'],) ([5, 7, 'x', 'xxxxrxdxx'],) ([9, 12, 'k', 'kbgkkgpkkrkkqv'],) ([10, 14, 'z', 'nzzwjznbpzztzm'],) ([7, 16, 't', 'ttttttwbtltttcltt'],) ([13, 18, 'l', 'lllllltllllltllllll'],) ([5, 18, 'v', 'mvvvzjvvvvvmvvsnjzv'],) ([12, 19, 'b', 'bbsbbbbbbmbbbwbbbbdb'],) ([15, 16, 'n', 'nndgcnnnnnnnnnnpnnnf'],) ([4, 11, 'j', 'gqdkjblvkgbwjjmtfjg'],) ([12, 13, 's', 'ssssssstssmpbsss'],) ([5, 7, 'j', 'jmgxjjw'],) ([4, 9, 'p', 'pptlvpppp'],) ([13, 17, 'q', 'fqqqqqqqrqqqhqqqqngq'],) ([4, 6, 'j', 'xzjcxjjpcrl'],) ([4, 10, 'w', 'swwwspwwql'],) ([10, 13, 's', 'sssssssssjsss'],) ([2, 4, 'k', 'nktjkkkm'],) ([2, 6, 'z', 'vzqzfzncz'],) ([4, 10, 'l', 'llplslghlwvlh'],) ([5, 6, 'd', 'ddhdvqd'],) ([5, 10, 'r', 'rrrrrbrrrjrd'],) ([1, 5, 'd', 'ddddn'],) ([2, 4, 't', 'tttr'],) ([4, 7, 'd', 'dsddpdkfsdd'],) ([3, 8, 'r', 'klrclrkzbrrscrpd'],) ([16, 18, 'j', 'jjjjjjjjwjjjjjjzjj'],) ([18, 20, 'p', 'tppjpppppppppppppcpp'],) ([9, 11, 'm', 'mmmmmmmmmmt'],) ([8, 12, 'd', 'dtxdvddpddmq'],) ([4, 8, 'd', 'qdcddddcd'],) ([16, 17, 'w', 'wwwwwwwwwwwwwwwzwww'],) ([3, 4, 'v', 'hpvhvvpvxnd'],) ([3, 5, 'x', 'dpxxj'],) ([18, 19, 'd', 'ddddddddddddddddddbd'],) ([13, 16, 'z', 'pzzzzhzzqzzzmzzzzzg'],) ([2, 6, 'b', 'bglglbnbdb'],) ([9, 10, 't', 'ttttttttxmttt'],) ([1, 7, 'g', 'fgggvgm'],) ([8, 11, 't', 'ttmrwtttttp'],) ([7, 8, 'd', 'ddxddddrddddgdddddd'],) ([1, 4, 'p', 'mpdbdkghzqpkpxbp'],) ([8, 10, 'd', 'dddjdddzdxd'],) ([3, 4, 'l', 'lllwl'],) ([6, 9, 'm', 'mmmmmfmmm'],) ([2, 6, 'd', 'dvjddj'],) ([5, 19, 'n', 'ctnnnnnnvngnnqndwnn'],) ([4, 7, 'z', 'zzwdzdpzzd'],) ([9, 12, 'w', 'wwwwwwwwkpwww'],) ([13, 14, 't', 'tttttttttttwztt'],) ([2, 3, 'z', 'zzwp'],) ([4, 12, 'q', 'hqtqshlcjsmqjrt'],) ([6, 13, 's', 'bssqsssstflsw'],) ([15, 16, 'l', 'llllllllllllllllll'],) ([9, 10, 'c', 'ccccccccgq'],) ([14, 15, 'm', 'mrmmrmmmmmbmmmcmm'],) ([1, 6, 'r', 'rrrrrcrrrrr'],) ([4, 6, 's', 'zqrdvshjbgpssj'],) ([3, 6, 'h', 'mmhxthhbshhb'],) ([17, 19, 'q', 'qqqqqqqqqqqqqqqqrqqq'],) ([4, 12, 'x', 'fqvxcghgqxkwx'],) ([2, 5, 'q', 'qqxqdrjrqxkfmq'],) ([3, 8, 'z', 'wfzzzzzz'],) ([6, 7, 'c', 'ccccqmc'],) ([1, 5, 'h', 'hhhhh'],) ([3, 4, 'f', 'svsf'],) ([7, 8, 'x', 'xxxxxxxsx'],) ([4, 8, 'g', 'gggggggngggg'],) ([4, 5, 'w', 'lwwwx'],) ([2, 3, 'g', 'ggsqg'],) ([4, 6, 'q', 'qqqqqq'],) ([3, 7, 'j', 'jtjdjncjq'],) ([7, 9, 'k', 'kkkkkkkcf'],) ([4, 11, 'z', 'pvdzfbzxzfhbf'],) ([6, 17, 'n', 'nnvnnxnnnnnnnnnnnnn'],) ([2, 5, 'c', 'ccrlttnnccdlcmjvx'],) ([3, 9, 'l', 'llllllllpl'],) ([1, 2, 'c', 'vccc'],) ([2, 6, 'c', 'qfcncx'],) ([1, 3, 'k', 'kkvkkkk'],) ([1, 5, 'q', 'qqjkhq'],) ([3, 8, 'p', 'pvpppzpgpp'],) ([4, 7, 'b', 'bbbbbbhbb'],) ([8, 15, 'x', 'xxxvxlvxxdknxxxxx'],) ([5, 6, 'n', 'nnnnnv'],) ([4, 7, 'h', 'hhhbhhth'],) ([9, 16, 'h', 'hxhhhhhhqhhhpbhlh'],) ([8, 10, 'k', 'kkkkkghkkkwnk'],) ([4, 12, 'w', 'bwwwwmwwwwwmwwwwswww'],) ([1, 5, 'q', 'mzhmqtzlbzvtlwqzpxf'],) ([11, 12, 'x', 'xxxxxxxxxxds'],) ([16, 17, 's', 'sssssrssssssssspwsw'],) ([1, 4, 'q', 'qwqcq'],) ([1, 12, 'w', 'wwwwrpwwwwwqwwmwlw'],) ([5, 6, 'm', 'tlgzvmqcjt'],) ([12, 18, 'c', 'ccccccccccccccccccc'],) ([6, 10, 'g', 'jpgggdgbddgg'],) ([11, 14, 'w', 'hwwkxwhhkfwcjfdkkwfn'],) ([3, 4, 'n', 'nmdnlnbjxcjsp'],) ([3, 4, 'w', 'bwvj'],) ([12, 14, 'f', 'cmqznmfzlsbpfd'],) ([1, 3, 't', 'txsttsttzqls'],) ([3, 4, 'w', 'sdsw'],) ([6, 12, 'b', 'sbfbqvbbbstb'],) ([17, 19, 'g', 'nggggggggggggggxngtg'],) ([15, 17, 'h', 'hhhhhhhhhhhhhhrhh'],) ([2, 3, 'p', 'ppcpp'],) ([5, 9, 'n', 'nvnnncqnnhnn'],) ([1, 4, 'r', 'rzrrrr'],) ([2, 10, 'b', 'zbbbkbbctkbbwngbbbsl'],) ([1, 3, 'r', 'rrpn'],) ([3, 6, 'q', 'mmlqxqqq'],) ([12, 13, 'x', 'xxxxxxxxjqxkxtxx'],) ([3, 5, 'l', 'nlllhpcc'],) ([3, 11, 'x', 'jxxgcxxbfxpxxfml'],) ([3, 6, 'l', 'nllqlln'],) ([9, 14, 'j', 'jjjjjjjjhjjjjj'],) ([11, 13, 'j', 'jjjjjjjbsjjjj'],) ([19, 20, 'k', 'kkkkkkkkkkkkkkkkkkkv'],) ([7, 11, 'n', 'ndnnnnxfnbnnnn'],) ([5, 6, 'g', 'gggtgh'],) ([1, 9, 'f', 'nfffbnffffc'],) ([4, 6, 'd', 'sdxlgtrmd'],) ([18, 20, 'n', 'nnnnwnnnnnnnnnnnnhnn'],) ([9, 11, 'j', 'jjjdjljjjljtj'],) ([3, 4, 'z', 'bwcsnqzzz'],) ([1, 4, 'j', 'jzjj'],) ([9, 13, 'k', 'cdvwnnwqklwplbzk'],) ([5, 9, 'q', 'hvqpqqtqh'],) ([2, 7, 'f', 'vdkrwpz'],) ([12, 13, 'z', 'zzhzzpwmzzzzq'],) ([7, 13, 's', 'nsssssfssssss'],) ([4, 6, 's', 'kgmksst'],) ([17, 19, 'p', 'pfbcgcnxkbpptcbxpsp'],) ([12, 13, 's', 'ssssssssssspm'],) ([11, 12, 'g', 'gggggggvggsg'],) ([6, 8, 'g', 'gggggzgz'],) ([1, 3, 'j', 'jjjj'],) ([5, 7, 'd', 'ddddgdd'],) ([6, 7, 'r', 'kmrjsbpkrrnpr'],) ([6, 9, 'm', 'mmmmmmmmmm'],) ([5, 6, 'b', 'bxbbvbb'],) ([5, 10, 'h', 'thxgvlhchhzhnfhhhhh'],) ([11, 13, 'l', 'vcllllnhlllvvllll'],) ([1, 9, 'j', 'wjjjjjjjnjjjj'],) ([4, 8, 'n', 'xnlbndngnn'],) ([4, 5, 'f', 'fffmfz'],) ([7, 8, 'c', 'pwmzcxvc'],) ([15, 17, 'z', 'zzzzfzzzzzzzzzzzx'],) ([4, 8, 'd', 'krddfddxddd'],) ([1, 2, 'w', 'wpzxcbxmcktpjmspw'],) ([4, 14, 't', 'ptcdtvtttbpwtttt'],) ([8, 13, 'f', 'fmfkffdffqfff'],) ([6, 7, 'j', 'jwnxpjlnrlxdjxvzhsll'],) ([2, 5, 'm', 'mmmmmm'],) ([3, 4, 'c', 'cccc'],) ([3, 11, 'f', 'fffrvfzqnmffd'],) ([3, 5, 'k', 'kkxrkkk'],) ([5, 8, 'k', 'kkkvskvkkkhsk'],) ([12, 14, 'k', 'jkkkkdkkkmfzkknkpkk'],) ([1, 2, 'h', 'vhspjh'],) ([3, 4, 'p', 'pppn'],) ([5, 6, 'v', 'vrvdvg'],) ([7, 8, 'j', 'jxrjjjtdjjj'],) ([3, 12, 'z', 'fzzxzgzzzzzhzz'],) ([10, 12, 'v', 'vvvvvvvvgvxxv'],) ([12, 13, 'k', 'kkkplnlpvwkkkkkt'],) ([4, 8, 't', 'dvjtltttptt'],) ([15, 16, 'z', 'zzzzlzzzzzlwzzzhzz'],) ([15, 17, 'n', 'nnnnnnnnnnnnnnlnn'],) ([12, 15, 'z', 'zjzzzzzzzzzzzzs'],) ([7, 8, 'x', 'hzxnxlxlfxxxxvxxxnx'],) ([9, 10, 'r', 'rrrrrwrrrp'],) ([1, 7, 'r', 'vrfslcr'],) ([6, 15, 't', 'tttttsttttttttt'],) ([3, 6, 'j', 'wjjdnjznwfclpskvdq'],) ([2, 4, 'v', 'vzlvls'],) ([9, 10, 'j', 'jjjjjjjjwj'],) ([8, 9, 'r', 'kxrrrtqnr'],) ([14, 16, 'h', 'hhhhhhhhhhhfhlhjhhh'],) ([14, 15, 'x', 'xxxxxxxxxxxxxmx'],) ([8, 10, 'h', 'hhhhhhhhhhh'],) ([10, 11, 'm', 'mmmmmmmmmnnmm'],) ([3, 17, 'r', 'fwmqrcjkgrkhzcnfrb'],) ([1, 15, 'q', 'qqqmqzqgcnrqqlkrq'],) ([2, 13, 'w', 'wdwwwwwwwtwww'],) ([1, 8, 'l', 'lllbllln'],) ([4, 7, 'n', 'nnnnnnbnnn'],) ([11, 18, 'l', 'lkllnllqktnllzllll'],) ([4, 5, 'd', 'gddbrlb'],) ([12, 13, 'l', 'llllllnllllztl'],) ([2, 6, 'm', 'lbhptlvgcsmksqspmtk'],) ([1, 2, 't', 'wtctt'],) ([3, 4, 'w', 'wwbw'],) ([9, 12, 'g', 'gcggvzggqzgggggsgnt'],) ([2, 6, 'b', 'bbrcbc'],) ([9, 12, 'm', 'mmgmkmmmbmmm'],) ([14, 17, 'm', 'mgpjmmqmmmmmmmmmt'],) ([6, 8, 'p', 'dpvzpskp'],) ([12, 18, 'x', 'xxxxxxxxxxxtxxxxxf'],) ([7, 12, 'r', 'xvjvrrrprrrvrrrcbr'],) ([3, 5, 'q', 'rqqxhqq'],) ([6, 16, 's', 'ssssskssssssssssss'],) ([6, 9, 'c', 'cccqccccxc'],) ([8, 16, 'r', 'rrrrrrrrrrcrrrhr'],) ([5, 9, 't', 'ctwttthtjl'],) ([16, 18, 't', 'ttttttttmttttttttgtt'],) ([13, 16, 't', 'zrtttgttttttmttttt'],) ([6, 10, 'k', 'kntkplgkkkkkmh'],) ([2, 4, 'c', 'vhsccfcc'],) ([1, 4, 'v', 'vvvqvvgpvvvvvzzv'],) ([3, 4, 'g', 'grgvgd'],) ([5, 9, 'p', 'pppbppppdv'],) ([3, 4, 'x', 'lxxxx'],) ([8, 9, 'q', 'qqqqqqzqqqqq'],) ([14, 15, 'c', 'cpcccccccmcccdcc'],) ([7, 10, 'p', 'ppfppppppppg'],) ([1, 2, 'h', 'thrk'],) ([1, 3, 'm', 'mzlzmtmqrm'],) ([3, 5, 'x', 'xxxxp'],) ([4, 6, 't', 'gtstvvjzqtxdtsrfc'],) ([6, 15, 'p', 'pppwppwspppcppn'],) ([4, 5, 'g', 'tkhgj'],) ([10, 14, 'm', 'mmmmmmmmmnrmmmm'],) ([2, 3, 'b', 'pnbxfzxxbbrt'],) ([5, 16, 'b', 'tfvlbmbzbvxbtdjl'],) ([16, 19, 'w', 'wwwwwwwwjwwlbwwvwwwr'],) ([14, 15, 'w', 'wwwwwwwwwwwwwgwww'],) ([3, 6, 'n', 'npvzfntbfvngns'],) ([8, 10, 's', 'sgsssssssz'],) ([2, 5, 'n', 'nnnkcnkn'],) ([12, 15, 'n', 'nnnnnnnnnnqnnnq'],) ([1, 4, 'p', 'qppk'],) ([5, 10, 'h', 'ghdhhcsxtzsdphwh'],) ([5, 7, 'k', 'kkkkkkb'],) ([10, 11, 'f', 'ffhlfffcnffmfrffcnff'],) ([6, 7, 'f', 'fffjfxf'],) ([11, 17, 'j', 'jjjjjjjjnjjjjjjjj'],) ([2, 4, 'z', 'wgrdp'],) ([5, 6, 'd', 'dpmdddfmxzgwd'],) ([8, 12, 'h', 'qhhhxhnhhhsmhlhh'],) ([7, 19, 'w', 'wwwwwwwwwwwwwwwwwwmw'],) ([1, 4, 'x', 'mmlxlc'],) ([1, 9, 'g', 'mgggggggggggg'],) ([1, 12, 'z', 'mtkfgpzmjrgs'],) ([7, 8, 'v', 'vvvgvvzvd'],) ([10, 12, 'j', 'djjjjjjjjbjj'],) ([3, 4, 'r', 'srjsfjbrp'],) ([1, 4, 'r', 'trrr'],) ([3, 8, 'j', 'jjjjjjjpj'],) ([6, 7, 'l', 'lltllwl'],) ([13, 14, 'g', 'gggggggggggggg'],) ([1, 4, 'w', 'wwrxww'],) ([1, 10, 'l', 'xfllllldll'],) ([5, 7, 's', 'xmwsqpsr'],) ([6, 17, 'p', 'pkpnpppznppppplpl'],) ([11, 12, 's', 'sssssssssdsf'],) ([14, 19, 'c', 'bsxlpshjmwcflcdhlhcr'],) ([8, 12, 'b', 'xbnbbbbbmbbkbbbb'],) ([14, 16, 'w', 'wwwcwwwwwwtwwswww'],) ([13, 14, 'f', 'zfsfbbffffffsf'],) ([13, 15, 's', 'swssssssjsssxss'],) ([1, 3, 'v', 'vvnvxrwbrbgdc'],) ([8, 10, 't', 'mkstnqtttt'],) ([14, 15, 'g', 'gggptgggggggggtg'],) ([12, 15, 'r', 'rrrrrrrrrrrrrrkr'],) ([2, 5, 'w', 'cjwpg'],) ([13, 14, 'w', 'wwwwwwwwwwwwqw'],) ([5, 12, 's', 'bkrrcczsgsfshpwjr'],) ([4, 9, 'w', 'wwwwwwwwwsnw'],) ([3, 4, 'x', 'xxxzv'],) ([3, 6, 'g', 'rggghqvgfk'],) ([9, 12, 'h', 'hhhdhshwhhkrqhh'],) ([8, 11, 'q', 'zqqqqqqmqqhq'],) ([5, 7, 'j', 'ngxjlbhjjjj'],) ([8, 9, 'p', 'rpxpdqcpkp'],) ([11, 13, 'd', 'htbdddddddjdddd'],) ([2, 3, 'p', 'hpbp'],) ([3, 4, 'x', 'xxxq'],) ([4, 7, 'm', 'mmmlmmm'],) ([7, 8, 'r', 'rrrrrrqr'],) ([9, 11, 'x', 'xxxxxxxxxxx'],) ([5, 8, 'h', 'hhhhflbv'],) ([1, 2, 'k', 'vkrkzjpwtbk'],) ([8, 10, 'p', 'pppppppxpg'],) ([9, 10, 'h', 'lhbhhhhhnqhh'],) ([3, 9, 'x', 'xxmqxxxxgx'],) ([17, 18, 'p', 'ppppppppppppppzpqwp'],) ([8, 9, 'x', 'xxxxxxxxx'],) ([1, 6, 'l', 'lrblvjllhll'],) ([1, 4, 'k', 'klkk'],) ([6, 8, 'm', 'mmmmmbmmmm'],) ([1, 6, 'h', 'hhvhqkh'],) ([5, 7, 'n', 'nnnnwnss'],) ([6, 7, 'k', 'kkkkkzkksl'],) ([6, 9, 'b', 'bbbbbbbbm'],) ([9, 14, 'k', 'kbkkfkkkkkchtklkg'],) ([3, 4, 'f', 'fcjpff'],) ([6, 12, 'f', 'fzfxfrqlvhwflfglftpb'],) ([7, 8, 'j', 'djjjjjjsj'],) ([13, 15, 'v', 'vvvvvvvrvvvvvbvvvvv'],) ([2, 11, 'p', 'qpnpfmppphxpp'],) ([3, 4, 'g', 'ggwgg'],) ([1, 4, 'q', 'nqqq'],) ([4, 9, 't', 'thpqpkxntg'],) ([1, 16, 'l', 'dllllllljlllllllll'],) ([3, 8, 'w', 'dbwwhxwzqwph'],) ([13, 15, 'p', 'ppppppppppppqpm'],) ([4, 5, 'b', 'bbmbqbthmbn'],) ([2, 4, 'd', 'zddq'],) ([2, 7, 'x', 'vpmchtzdbxxxxnxd'],) ([11, 13, 'x', 'xxxxxxxxxxjxxx'],) ([7, 9, 'm', 'mmdjmmmnm'],) ([10, 12, 'j', 'jjjjjjjjjjjx'],) ([12, 14, 'j', 'wfcvflhjvblzdf'],) ([2, 12, 'j', 'lqfjjjzncbgjhj'],) ([2, 7, 'j', 'jtlfjqjbjgqrxgjm'],) ([4, 5, 't', 'ttttc'],) ([5, 8, 'v', 'vvvvvbvpvv'],) ([4, 10, 'b', 'qghbgkcbbs'],) ([12, 14, 'n', 'nnnnnnnnnnnnnhnn'],) ([13, 19, 'v', 'vvvvvvvvvvvrvvvvvvv'],) ([4, 16, 'z', 'znzvzzzwgzzzzzzzzdz'],) ([4, 13, 'q', 'qqqlqqqqqnqqlqqm'],) ([9, 10, 'q', 'qqqqqqqqrs'],) ([2, 12, 'q', 'qpqszqxqqqqkq'],) ([10, 16, 'v', 'vvfvvvvvsxvznfvv'],) ([1, 3, 'f', 'fvjpkglwfjbcgnbc'],) ([2, 7, 'v', 'vfvqvvv'],) ([6, 8, 'l', 'llllcllllll'],) ([9, 14, 'v', 'vvvvvvvvzvvvvwb'],) ([10, 11, 's', 'ssmsssssssxsls'],) ([9, 10, 'b', 'bxbbfbbxbzbzjbbm'],) ([3, 15, 'x', 'xcxxxxpxxxxxdgxg'],) ([10, 13, 'k', 'kkkpkjmkscgxkhkbkgd'],) ([2, 4, 'j', 'djqhc'],) ([9, 10, 'c', 'cccccrccds'],) ([7, 10, 'v', 'vvbvvvvjjpvkv'],) ([13, 16, 'n', 'nnnnnnndnnnnqnnsnnnc'],) ([2, 4, 'g', 'qfgg'],) ([3, 13, 'v', 'hvvvvvzrvqvcpvvhj'],) ([5, 12, 'n', 'rnsnnpnnnnntnnn'],) ([7, 8, 'p', 'pppptpppp'],) ([1, 6, 'd', 'cdddqdddddd'],) ([3, 5, 'h', 'cwzhhhbwlhtd'],) ([8, 17, 'j', 'jnjdscnljmhrljrjjmjj'],) ([3, 4, 'j', 'jccj'],) ([4, 14, 'm', 'mmjkmmhwqbkjqmg'],) ([2, 4, 'b', 'bbbd'],) ([4, 7, 'v', 'vhlvvvq'],) ([1, 4, 'p', 'jppm'],) ([9, 12, 'g', 'vggzgppggggnggcdfp'],) ([5, 6, 'r', 'rrrrrp'],) ([6, 13, 't', 'bxztttrtbttrm'],) ([17, 19, 'd', 'ddddddrddddwddddpdk'],) ([1, 3, 'w', 'jwjwwc'],) ([5, 6, 'k', 'kkkkkk'],) ([5, 6, 'f', 'ffffjxff'],) ([8, 10, 'x', 'xxxxxxxwxl'],) ([6, 8, 'q', 'qqqqqqqq'],) ([5, 8, 'd', 'fddtdbfdkddddddjd'],) ([7, 15, 'k', 'kkkkklnfkqkkxqkkvkk'],) ([2, 5, 'x', 'cqzxxx'],) ([3, 4, 'j', 'jjjb'],) ([7, 8, 'w', 'wwwwwwlw'],) ([18, 20, 'g', 'gggggggggggggggggggg'],) ([10, 11, 'w', 'hwwwwwwwnwmwws'],) ([2, 10, 'd', 'xsdjqqrqzdnhgmvlhkgm'],) ([2, 3, 's', 'rsxhms'],) ([7, 8, 'n', 'tdnnznwpnnn'],) ([10, 12, 'g', 'gggggggggggg'],) ([7, 13, 'z', 'zfxzqzzmzzzrndzkvz'],) ([11, 12, 'k', 'kkkkkkkkkkkk'],) ([6, 7, 't', 'ttjxxtc'],) ([4, 6, 'n', 'nwzlfxnnn'],) ([4, 6, 'j', 'jjjdmj'],) ([8, 14, 'p', 'xgspprprpppppppp'],) ([6, 7, 'k', 'kkkjkkzktn'],) ([5, 8, 'd', 'dddddmdt'],) ([4, 6, 'j', 'jfhjjb'],) ([3, 4, 'k', 'jrkckdwqjbcctpklm'],) ([6, 9, 'w', 'wwwqwxqwzkwgwwwvqbs'],) ([1, 4, 't', 'gthttttttt'],) ([3, 4, 'h', 'bhhb'],) ([4, 6, 't', 'ttqltktv'],) ([11, 17, 'v', 'vvvvdvvvvvpvvvvvvvv'],) ([13, 14, 'd', 'ddndddwddkcdvkddddkn'],) ([3, 4, 'b', 'xhdb'],) ([3, 7, 'w', 'zwcptvwlkswv'],) ([8, 11, 'p', 'pptpppppppm'],) ([5, 14, 'p', 'wpmpnplrppppppptp'],) ([1, 3, 'q', 'stqdkc'],) ([10, 11, 'c', 'ccccccccccv'],) ([1, 7, 's', 'msszslsps'],) ([12, 14, 'h', 'hhghhnhhhhhhhmh'],) ([14, 16, 'g', 'gscwmsggggdgggmg'],) ([7, 12, 'z', 'htztzwzzkzzkrzzzlz'],) ([3, 6, 'n', 'dcnnvn'],) ([3, 7, 'k', 'kkkkkkj'],) ([2, 3, 'm', 'vmlkkjn'],) ([12, 13, 'r', 'rrrrlrrrrrrrrr'],) ([6, 7, 'z', 'zzzzhxxczzsd'],) ([2, 7, 'g', 'htjgfggbllbgxggq'],) ([13, 17, 'm', 'xhhnpmdxfpvsmjzwb'],) ([7, 9, 'h', 'hhhhhhhhjh'],) ([3, 4, 'z', 'zrzzz'],) ([1, 5, 'l', 'llgwlszllvxxmflglldt'],) ([7, 9, 'v', 'vvvvvvmvcq'],) ([5, 7, 'r', 'rrzcwsmrrgrwxnrg'],) ([14, 16, 't', 'twttpttntttttttlt'],) ([7, 14, 'j', 'qjsmcdzdqjgjpjjcjj'],) ([2, 3, 's', 'sshscbks'],) ([3, 10, 'p', 'vppkpwpplpvp'],) ([2, 5, 't', 'ftrrt'],) ([3, 7, 'c', 'cgrsczccpcpcc'],) ([9, 10, 'v', 'vvvvvvvvvxvvvvv'],) ([2, 3, 'v', 'vvsvw'],) ([9, 11, 'd', 'dddddxdjddbd'],) ([3, 4, 'p', 'pdpgrpj'],) ([9, 10, 'p', 'pwppppwpvpp'],) ([4, 18, 'r', 'hmrdmwvrnggrcgrsrrwg'],) ([3, 4, 'n', 'nnnnnf'],) ([1, 8, 'x', 'tblrxhhxwjb'],) ([10, 19, 'f', 'ffbffffpfffhfksflfkf'],) ([5, 12, 's', 'sssjtsssssss'],) ([5, 6, 'z', 'zzzzfz'],) ([7, 8, 'n', 'nfnnnnrn'],) ([8, 9, 'x', 'xxxcxxxxx'],) ([4, 8, 'x', 'tcdxxxxdx'],) ([3, 4, 'x', 'xxwc'],) ([6, 8, 'h', 'whnhrvdlhhhhhhhxkd'],) ([14, 15, 'q', 'qqqjqmrnnqktdtq'],) ([5, 9, 'f', 'fhffkhfxhc'],) ([6, 8, 'c', 'cccccccwc'],) ([17, 19, 's', 'ssssssssssmssssszss'],) ([10, 12, 'f', 'hffffffffzff'],) ([6, 7, 'k', 'nkmkkdkk'],) ([4, 9, 'v', 'bvvvvvxvwnvcv'],) ([19, 20, 'v', 'vvvvvvvvvvvvvvvvvvvv'],) ([4, 8, 'h', 'nhnhhhhvtvfh'],) ([12, 13, 'l', 'lltllllllllqll'],) ([13, 17, 's', 'ssssssssssssnsssgs'],) ([6, 9, 'g', 'gdvctgcgzgrgf'],) ([13, 15, 'w', 'wwwwwwwwwwwwswb'],) ([4, 8, 'l', 'lllfllcglllljl'],) ([8, 9, 'q', 'flqqqqqrrqq'],) ([4, 5, 'w', 'wwwmww'],) ([2, 5, 'v', 'dqkgvhlmqvv'],) ([6, 8, 'g', 'gvtggvgg'],) ([3, 11, 't', 'ntvttnqtgltttttt'],) ([3, 7, 'm', 'mmqmjmmm'],) ([9, 13, 'd', 'dddzddddddddndd'],) ([3, 7, 'j', 'jjqjhjt'],) ([13, 14, 'q', 'qqqqqqqqqqqqbq'],) ([5, 11, 'x', 'lxxxhxxxckxx'],) ([5, 6, 'q', 'qnqqqwqqq'],) ([2, 5, 'z', 'hzzskzzckj'],) ([2, 3, 'j', 'jjzm'],) ([3, 4, 'g', 'wggs'],) ([1, 3, 'v', 'vzsbsvv'],) ([2, 4, 'z', 'mrnz'],) ([16, 19, 'x', 'fxxxxbxxxxxxxxjxxxf'],) ([6, 7, 'x', 'xxxxxtx'],) ([1, 6, 'v', 'qvrvvvv'],) ([4, 5, 'w', 'hwwdww'],) ([3, 4, 'd', 'tljd'],) ([6, 13, 'v', 'nvcdjvjrvvvmqj'],) ([6, 10, 'v', 'gfqjlnxfvhw'],) ([6, 8, 'f', 'kzvffvffff'],) ([5, 6, 'r', 'rvrctrrwcrvr'],) ([6, 11, 's', 'csfcvsxhgcsvh'],) ([8, 11, 'b', 'bbbwwmdbbbjjbtb'],) ([5, 13, 'x', 'lvxxbvtxbhvdx'],) ([3, 6, 'h', 'dhhhvmscwwbhbrbk'],) ([4, 5, 's', 'gmpqsw'],) ([2, 12, 'z', 'pzncbwqpfbhsfzzz'],) ([5, 6, 'w', 'dwwbwqhgb'],) ([2, 13, 'l', 'llllllllllllcllllll'],) ([1, 9, 'v', 'vjjvvvvnvvvtvvd'],) ([12, 14, 'f', 'ffjffzftfcfrffbf'],) ([2, 5, 'b', 'brwzbs'],) ([6, 10, 's', 'tnfszsnjvbwzzhtwqg'],) ([5, 6, 'p', 'pfkppppppppp'],) ([3, 5, 'n', 'vstnnnprjn'],) ([9, 18, 's', 'sssssssssssssssssr'],) ([1, 6, 'd', 'wdldddnvdndfqvd'],) ([3, 5, 't', 'kttjlcpttzt'],) ([5, 7, 'z', 'zzzzhlzz'],) ([2, 9, 'p', 'ppppppppjp'],) ([7, 9, 'v', 'vvzvvvvvvvvcv'],) ([3, 6, 'r', 'zrrtrrfpwgzbrtskt'],) ([9, 12, 's', 'mptshmsssssslssss'],) ([5, 10, 'c', 'nccmccchjjthdtlcj'],) ([18, 20, 'r', 'rrrrrrrrrmrrrrrrrxrr'],) ([2, 14, 'f', 'frplctstcgdfff'],) ([9, 15, 'h', 'hfhzhhhhhvmfjhhfjhhh'],) ([1, 6, 'w', 'wwwwrpm'],) ([4, 6, 'f', 'hfffhcfjfszdzbbg'],) ([7, 10, 'w', 'xwwwwzhwrpwkw'],) ([9, 10, 'r', 'rrrrrrrrzr'],) ([14, 16, 'n', 'pngnnnnnnvnnnnnsnn'],) ([14, 15, 'p', 'gppppdpppjppzptpppp'],) ([1, 4, 'n', 'wnnnnnn'],) ([12, 13, 't', 'tttttttttttgt'],) ([4, 5, 'n', 'nnwsd'],) ([9, 10, 'l', 'vlllllllln'],) ([5, 16, 'p', 'pppfxpxpspppmpkgppp'],) ([1, 10, 'v', 'vlvvtvlkvmgcdwvvtrv'],) ([14, 15, 's', 'ssssssssjssskrg'],) ([4, 5, 'n', 'gxnnnn'],) ([4, 10, 'b', 'lvbqbjbbbbw'],) ([5, 6, 'k', 'xkrkfldcs'],) ([5, 6, 'n', 'nnsnnznfjnf'],) ([6, 9, 'v', 'gqvvmvvvpb'],) ([14, 18, 'f', 'sdffffwffflffsfffn'],) ([2, 4, 'm', 'mmdm'],) ([11, 12, 'g', 'ggnmgdmfhrpgzgr'],) ([14, 15, 'z', 'zzzzzzhzzzzzmzcz'],) ([7, 13, 's', 'ssssssstssssj'],) ([4, 6, 'g', 'zgtbcg'],) ([2, 7, 't', 'rttskmdpmvk'],) ([6, 20, 'n', 'nnkpnnnlnfnnbnpnnnnm'],) ([9, 10, 'w', 'zfpwwhwjwdwwwpwwjww'],) ([3, 9, 'd', 'ddldddddwdddd'],) ([4, 5, 'f', 'hfftmfcq'],) ([1, 2, 'w', 'zwbjt'],) ([7, 11, 'g', 'cggggkxggvgggtbmm'],) ([5, 9, 'd', 'dwgfdltddgndwd'],) ([3, 4, 'b', 'rbrbb'],) ([6, 10, 'z', 'fzzzzxzzkzxz'],) ([4, 5, 'z', 'zzhzjzffcz'],) ([8, 10, 'x', 'wwsxdbkxgd'],) ([9, 10, 't', 'lttttfttdtttc'],) ([13, 17, 'd', 'dddddddtdnddddddrdd'],) ([13, 15, 'w', 'wwcwwwwwwwwwlwdwq'],) ([4, 18, 'r', 'rvrrrkwtrmrbrrrzfwlj'],) ([11, 14, 'j', 'jxjjjjjjtjjjjjv'],) ([8, 15, 'm', 'mkmmlmmmmmmmmrqmmm'],) ([1, 3, 'g', 'gsng'],) ([3, 11, 'n', 'ttdplnfpkmnrwcrqwbvr'],) ([5, 10, 'n', 'wgnqrlcnnnnnnn'],) ([7, 9, 'c', 'jgwbrcclt'],) ([1, 4, 'l', 'flml'],) ([8, 13, 's', 'sjssqssrgssrz'],) ([6, 7, 'x', 'xlxbclxxxzxbwqx'],) ([12, 19, 'g', 'qlzcctgmgfmrvxgwvgzj'],) ([4, 5, 'w', 'wwwrr'],) ([11, 18, 'm', 'kmgxmjskmmmmmmmmmz'],) ([12, 16, 'f', 'ffqlfhzflqffffkfz'],) ([1, 6, 'k', 'kzkhrfxkkk'],) ([10, 11, 'x', 'vxfxxxbxxxxx'],) ([4, 6, 'd', 'gvqdwrclzsdmhglrz'],) ([5, 9, 'd', 'dwjddjddd'],) ([1, 3, 'n', 'ndcqcn'],) ([4, 5, 'r', 'rrrrh'],) ([5, 10, 'g', 'pkbxgvczgn'],) ([4, 6, 'w', 'wggwpfww'],) ([2, 4, 'g', 'glgggg'],) ([7, 8, 'h', 'hhhhhhhh'],) ([12, 16, 'h', 'nkvzdqlbsptvnrzh'],) ([8, 14, 'w', 'bwlwbwghwwwwtwwl'],) ([4, 11, 'q', 'vqsllpqnqdcbbtvqrqxb'],) ([2, 5, 'x', 'xkxxx'],) ([4, 10, 'c', 'cccjncjsccr'],) ([10, 18, 'h', 'xkswshrhghxlnmhqzr'],) ([5, 18, 'k', 'kkkkkkkhkkkklkkkknk'],) ([9, 10, 't', 'ttttttttnt'],) ([10, 11, 'x', 'xxxxxxxxxcv'],)
# Rename this to keys.py if running locally, # and replace the API keys with your own information. # This project uses an EC2 instance with # Elasticache providing the redis broker and an # RDS instance of postgresql. EMAIL_HOST_USER = '[email protected]' EMAIL_HOST_PASSWORD = 'YOUR_EMAIL_PASSWORD' SETTINGS_KEY = 'YOUR_SETTINGS_KEY' SITE_URL = 'LOCALHOST_OR_YOUR_URL' TWILIO_SID = 'YOUR_TWILIO_SID' TWILIO_TOKEN = 'YOUR_TWILIO_TOKEN' SERVER_NUMBER = 'YOUR_TWILIO_NUMBER' TWILIO_CALLBACK_URL = 'http://YOUR_SITE_URL.com/api/calls/call_data/' TWITTER_CONS_KEY = 'YOUR_TWITTER_CONSUMER_KEY' TWITTER_SECRET = 'YOUR_TWITTER_SECRET_KEY' TWITTER_TOKEN_KEY = 'YOUR_TWITTER_TOKEN_KEY' TWITTER_TOKEN_SECRET = 'YOUR_TWITTER_TOKEN_SECRET' TWITTER_SCREEN_NAME = 'YOUR_TWITTER_HANDLE' POSTGRES_PW = 'YOUR_POSTGRES_PASSWORD' POSTGRES_USER = 'YOUR_POSTGRES_USER' POSTGRES_NAME = 'YOUR_POSTGRES_NAME' POSTGRES_HOST = 'YOUR_POSTGRES_AWS_URL' POSTGRES_PORT = 'YOUR_POSTGRES_PORT'
email_host_user = '[email protected]' email_host_password = 'YOUR_EMAIL_PASSWORD' settings_key = 'YOUR_SETTINGS_KEY' site_url = 'LOCALHOST_OR_YOUR_URL' twilio_sid = 'YOUR_TWILIO_SID' twilio_token = 'YOUR_TWILIO_TOKEN' server_number = 'YOUR_TWILIO_NUMBER' twilio_callback_url = 'http://YOUR_SITE_URL.com/api/calls/call_data/' twitter_cons_key = 'YOUR_TWITTER_CONSUMER_KEY' twitter_secret = 'YOUR_TWITTER_SECRET_KEY' twitter_token_key = 'YOUR_TWITTER_TOKEN_KEY' twitter_token_secret = 'YOUR_TWITTER_TOKEN_SECRET' twitter_screen_name = 'YOUR_TWITTER_HANDLE' postgres_pw = 'YOUR_POSTGRES_PASSWORD' postgres_user = 'YOUR_POSTGRES_USER' postgres_name = 'YOUR_POSTGRES_NAME' postgres_host = 'YOUR_POSTGRES_AWS_URL' postgres_port = 'YOUR_POSTGRES_PORT'
a = [2, 3] for n in range(5, 10 ** 7, 2): i = 1 while a[i] <= n ** .5: if n % a[i] == 0: break i = i + 1 else: a.append(n) print(a)
a = [2, 3] for n in range(5, 10 ** 7, 2): i = 1 while a[i] <= n ** 0.5: if n % a[i] == 0: break i = i + 1 else: a.append(n) print(a)
# Time: O(n + m), m is the number of targets # Space: O(n) class Solution(object): def findReplaceString(self, S, indexes, sources, targets): """ :type S: str :type indexes: List[int] :type sources: List[str] :type targets: List[str] :rtype: str """ S = list(S) bucket = [None] * len(S) for i in xrange(len(indexes)): if all(indexes[i]+k < len(S) and S[indexes[i]+k] == sources[i][k] for k in xrange(len(sources[i]))): bucket[indexes[i]] = (len(sources[i]), list(targets[i])) result = [] last = 0 for i in xrange(len(S)): if bucket[i]: result.extend(bucket[i][1]) last = i + bucket[i][0] elif i >= last: result.append(S[i]) return "".join(result) # Time: O(mlogm + m * n) # Space: O(n + m) class Solution2(object): def findReplaceString(self, S, indexes, sources, targets): """ :type S: str :type indexes: List[int] :type sources: List[str] :type targets: List[str] :rtype: str """ for i, s, t in sorted(zip(indexes, sources, targets), reverse=True): if S[i:i+len(s)] == s: S = S[:i] + t + S[i+len(s):] return S
class Solution(object): def find_replace_string(self, S, indexes, sources, targets): """ :type S: str :type indexes: List[int] :type sources: List[str] :type targets: List[str] :rtype: str """ s = list(S) bucket = [None] * len(S) for i in xrange(len(indexes)): if all((indexes[i] + k < len(S) and S[indexes[i] + k] == sources[i][k] for k in xrange(len(sources[i])))): bucket[indexes[i]] = (len(sources[i]), list(targets[i])) result = [] last = 0 for i in xrange(len(S)): if bucket[i]: result.extend(bucket[i][1]) last = i + bucket[i][0] elif i >= last: result.append(S[i]) return ''.join(result) class Solution2(object): def find_replace_string(self, S, indexes, sources, targets): """ :type S: str :type indexes: List[int] :type sources: List[str] :type targets: List[str] :rtype: str """ for (i, s, t) in sorted(zip(indexes, sources, targets), reverse=True): if S[i:i + len(s)] == s: s = S[:i] + t + S[i + len(s):] return S
""" The Procedure to add new version: 1.New Version created 2.Add the new version to GATHER_COMMANDS_VERSION dictionary 3.Ask the developer about new files on new version 4.Add file names to relevant list OCS4.6 Link: https://github.com/openshift/ocs-operator/blob/fefc8a0e04e314801809df2e5292a20fae8456b8/must-gather/collection-scripts/ OCS4.5 Link: https://github.com/openshift/ocs-operator/blob/de48c9c00f8964f0f8813d7b3ddd25f7bc318449/must-gather/collection-scripts/ """ GATHER_COMMANDS_CEPH = [ "ceph-volume_raw_list", "ceph_auth_list", "ceph_balancer_status", "ceph_config-key_ls", "ceph_config_dump", "ceph_crash_stat", "ceph_device_ls", "ceph_df", "ceph_fs_dump", "ceph_fs_ls", "ceph_fs_status", "ceph_fs_subvolume_ls_ocs-storagecluster-cephfilesystem_csi", "ceph_fs_subvolumegroup_ls_ocs-storagecluster-cephfilesystem", "ceph_health_detail", "ceph_mds_stat", "ceph_mgr_dump", "ceph_mgr_module_ls", "ceph_mgr_services", "ceph_mon_dump", "ceph_mon_stat", "ceph_osd_blocked-by", "ceph_osd_crush_class_ls", "ceph_osd_crush_dump", "ceph_osd_crush_rule_dump", "ceph_osd_crush_rule_ls", "ceph_osd_crush_show-tunables", "ceph_osd_crush_weight-set_dump", "ceph_osd_df", "ceph_osd_df_tree", "ceph_osd_dump", "ceph_osd_getmaxosd", "ceph_osd_lspools", "ceph_osd_numa-status", "ceph_osd_perf", "ceph_osd_pool_ls_detail", "ceph_osd_stat", "ceph_osd_tree", "ceph_osd_utilization", "ceph_pg_dump", "ceph_pg_stat", "ceph_progress", "ceph_quorum_status", "ceph_report", "ceph_service_dump", "ceph_status", "ceph_time-sync-status", "ceph_versions", ] GATHER_COMMANDS_JSON = [ "ceph_auth_list_--format_json-pretty", "ceph_balancer_pool_ls_--format_json-pretty", "ceph_balancer_status_--format_json-pretty", "ceph_config-key_ls_--format_json-pretty", "ceph_config_dump_--format_json-pretty", "ceph_crash_ls_--format_json-pretty", "ceph_crash_stat_--format_json-pretty", "ceph_device_ls_--format_json-pretty", "ceph_df_--format_json-pretty", "ceph_fs_dump_--format_json-pretty", "ceph_fs_ls_--format_json-pretty", "ceph_fs_status_--format_json-pretty", "ceph_fs_subvolume_ls_ocs-storagecluster-cephfilesystem_csi_--format_json-pretty", "ceph_fs_subvolumegroup_ls_ocs-storagecluster-cephfilesystem_--format_json-pretty", "ceph_health_detail_--format_json-pretty", "ceph_mds_stat_--format_json-pretty", "ceph_mgr_dump_--format_json-pretty", "ceph_mgr_module_ls_--format_json-pretty", "ceph_mgr_services_--format_json-pretty", "ceph_mon_dump_--format_json-pretty", "ceph_mon_stat_--format_json-pretty", "ceph_osd_blacklist_ls_--format_json-pretty", "ceph_osd_blocked-by_--format_json-pretty", "ceph_osd_crush_class_ls_--format_json-pretty", "ceph_osd_crush_dump_--format_json-pretty", "ceph_osd_crush_rule_dump_--format_json-pretty", "ceph_osd_crush_rule_ls_--format_json-pretty", "ceph_osd_crush_show-tunables_--format_json-pretty", "ceph_osd_crush_weight-set_dump_--format_json-pretty", "ceph_osd_crush_weight-set_ls_--format_json-pretty", "ceph_osd_df_--format_json-pretty", "ceph_osd_df_tree_--format_json-pretty", "ceph_osd_dump_--format_json-pretty", "ceph_osd_getmaxosd_--format_json-pretty", "ceph_osd_lspools_--format_json-pretty", "ceph_osd_numa-status_--format_json-pretty", "ceph_osd_perf_--format_json-pretty", "ceph_osd_pool_ls_detail_--format_json-pretty", "ceph_osd_stat_--format_json-pretty", "ceph_osd_tree_--format_json-pretty", "ceph_osd_utilization_--format_json-pretty", "ceph_pg_dump_--format_json-pretty", "ceph_pg_stat_--format_json-pretty", "ceph_progress_--format_json-pretty", "ceph_progress_json", "ceph_progress_json_--format_json-pretty", "ceph_quorum_status_--format_json-pretty", "ceph_report_--format_json-pretty", "ceph_service_dump_--format_json-pretty", "ceph_status_--format_json-pretty", "ceph_time-sync-status_--format_json-pretty", "ceph_versions_--format_json-pretty", ] GATHER_COMMANDS_OTHERS = [ "buildconfigs.yaml", "builds.yaml", "configmaps.yaml", "cronjobs.yaml", "daemonsets.yaml", "db-noobaa-db-0.yaml", "deploymentconfigs.yaml", "deployments.yaml", "endpoints.yaml", "events.yaml", "horizontalpodautoscalers.yaml", "imagestreams.yaml", "jobs.yaml", "my-alertmanager-claim-alertmanager-main-0.yaml", "my-alertmanager-claim-alertmanager-main-1.yaml", "my-alertmanager-claim-alertmanager-main-2.yaml", "my-prometheus-claim-prometheus-k8s-0.yaml", "my-prometheus-claim-prometheus-k8s-1.yaml", "noobaa-core-0.log", "noobaa-core-0.yaml", "noobaa-db-0.log", "noobaa-db-0.yaml", "noobaa-default-backing-store.yaml", "noobaa-default-bucket-class.yaml", "noobaa.yaml", "ocs-storagecluster-cephblockpool.yaml", "ocs-storagecluster-cephcluster.yaml", "ocs-storagecluster-cephfilesystem.yaml", "openshift-storage.yaml", "persistentvolumeclaims.yaml", "pods.yaml", "pools_rbd_ocs-storagecluster-cephblockpool", "registry-cephfs-rwx-pvc.yaml", "replicasets.yaml", "replicationcontrollers.yaml", "routes.yaml", "secrets.yaml", "services.yaml", "statefulsets.yaml", "storagecluster.yaml", ] GATHER_COMMANDS_CEPH_4_5 = [ "ceph_osd_blacklist_ls", ] GATHER_COMMANDS_JSON_4_5 = [] GATHER_COMMANDS_OTHERS_4_5 = [ "describe_nodes", "describe_pods_-n_openshift-storage", "get_clusterversion_-oyaml", "get_csv_-n_openshift-storage", "get_events_-n_openshift-storage", "get_infrastructures.config_-oyaml", "get_installplan_-n_openshift-storage", "get_nodes_--show-labels", "get_pods_-owide_-n_openshift-storage", "get_pv", "get_pvc_--all-namespaces", "get_sc", "get_subscription_-n_openshift-storage", ] GATHER_COMMANDS_CEPH_4_6 = [] GATHER_COMMANDS_JSON_4_6 = [] GATHER_COMMANDS_OTHERS_4_6 = [ "volumesnapshotclass", "storagecluster", "get_clusterrole", "desc_clusterrole", "desc_nodes", "get_infrastructures.config", "get_clusterrolebinding", "desc_pv", "get_clusterversion", "get_sc", "desc_clusterrolebinding", "get_nodes_-o_wide_--show-labels", "desc_clusterversion", "get_pv", "desc_sc", "desc_infrastructures.config", "csv", "rolebinding", "all", "role", "storagecluster.yaml", "admin.yaml", "aggregate-olm-edit.yaml", "aggregate-olm-view.yaml", "alertmanager-main.yaml", "alertmanager-main.yaml", "backingstores.noobaa.io-v1alpha1-admin.yaml", "backingstores.noobaa.io-v1alpha1-crdview.yaml", "backingstores.noobaa.io-v1alpha1-edit.yaml", "backingstores.noobaa.io-v1alpha1-view.yaml", "basic-user.yaml", "basic-users.yaml", "bucketclasses.noobaa.io-v1alpha1-admin.yaml", "bucketclasses.noobaa.io-v1alpha1-crdview.yaml", "bucketclasses.noobaa.io-v1alpha1-edit.yaml", "bucketclasses.noobaa.io-v1alpha1-view.yaml", "cephblockpools.ceph.rook.io-v1-admin.yaml", "cephblockpools.ceph.rook.io-v1-crdview.yaml", "cephblockpools.ceph.rook.io-v1-edit.yaml", "cephblockpools.ceph.rook.io-v1-view.yaml", "cephclients.ceph.rook.io-v1-admin.yaml", "cephclients.ceph.rook.io-v1-crdview.yaml", "cephclients.ceph.rook.io-v1-edit.yaml", "cephclients.ceph.rook.io-v1-view.yaml", "cephclusters.ceph.rook.io-v1-admin.yaml", "cephclusters.ceph.rook.io-v1-crdview.yaml", "cephclusters.ceph.rook.io-v1-edit.yaml", "cephclusters.ceph.rook.io-v1-view.yaml", "cephfilesystems.ceph.rook.io-v1-admin.yaml", "cephfilesystems.ceph.rook.io-v1-crdview.yaml", "cephfilesystems.ceph.rook.io-v1-edit.yaml", "cephfilesystems.ceph.rook.io-v1-view.yaml", "cephnfses.ceph.rook.io-v1-admin.yaml", "cephnfses.ceph.rook.io-v1-crdview.yaml", "cephnfses.ceph.rook.io-v1-edit.yaml", "cephnfses.ceph.rook.io-v1-view.yaml", "cephobjectrealms.ceph.rook.io-v1-admin.yaml", "cephobjectrealms.ceph.rook.io-v1-crdview.yaml", "cephobjectrealms.ceph.rook.io-v1-edit.yaml", "cephobjectrealms.ceph.rook.io-v1-view.yaml", "cephobjectstores.ceph.rook.io-v1-admin.yaml", "cephobjectstores.ceph.rook.io-v1-crdview.yaml", "cephobjectstores.ceph.rook.io-v1-edit.yaml", "cephobjectstores.ceph.rook.io-v1-view.yaml", "cephobjectstoreusers.ceph.rook.io-v1-admin.yaml", "cephobjectstoreusers.ceph.rook.io-v1-crdview.yaml", "cephobjectstoreusers.ceph.rook.io-v1-edit.yaml", "cephobjectstoreusers.ceph.rook.io-v1-view.yaml", "cephobjectzonegroups.ceph.rook.io-v1-admin.yaml", "cephobjectzonegroups.ceph.rook.io-v1-crdview.yaml", "cephobjectzonegroups.ceph.rook.io-v1-edit.yaml", "cephobjectzonegroups.ceph.rook.io-v1-view.yaml", "cephobjectzones.ceph.rook.io-v1-admin.yaml", "cephobjectzones.ceph.rook.io-v1-crdview.yaml", "cephobjectzones.ceph.rook.io-v1-edit.yaml", "cephobjectzones.ceph.rook.io-v1-view.yaml", "cephrbdmirrors.ceph.rook.io-v1-admin.yaml", "cephrbdmirrors.ceph.rook.io-v1-crdview.yaml", "cephrbdmirrors.ceph.rook.io-v1-edit.yaml", "cephrbdmirrors.ceph.rook.io-v1-view.yaml", "cloud-credential-operator-role.yaml", "cloud-credential-operator-rolebinding.yaml", "cluster-admin.yaml", "cluster-admin.yaml", "cluster-admins.yaml", "cluster-autoscaler-operator.yaml", "cluster-autoscaler-operator.yaml", "cluster-autoscaler-operator:cluster-reader.yaml", "cluster-autoscaler.yaml", "cluster-autoscaler.yaml", "cluster-debugger.yaml", "cluster-image-registry-operator.yaml", "cluster-monitoring-operator.yaml", "cluster-monitoring-operator.yaml", "cluster-monitoring-view.yaml", "cluster-node-tuning-operator.yaml", "cluster-node-tuning-operator.yaml", "cluster-node-tuning:tuned.yaml", "cluster-node-tuning:tuned.yaml", "cluster-reader.yaml", "cluster-readers.yaml", "cluster-samples-operator-proxy-reader.yaml", "cluster-samples-operator-proxy-reader.yaml", "cluster-samples-operator.yaml", "cluster-samples-operator.yaml", "cluster-status-binding.yaml", "cluster-status.yaml", "cluster-storage-operator-role.yaml", "cluster-version-operator.yaml", "cluster.yaml", "console-extensions-reader.yaml", "console-extensions-reader.yaml", "console-operator-auth-delegator.yaml", "console-operator.yaml", "console-operator.yaml", "console.yaml", "console.yaml", "default-account-cluster-image-registry-operator.yaml", "default-account-cluster-network-operator.yaml", "default-account-openshift-machine-config-operator.yaml", "endpointslices.yaml", "events", "insights-operator-auth.yaml", "insights-operator-gather-reader.yaml", "insights-operator-gather.yaml", "insights-operator-gather.yaml", "insights-operator.yaml", "insights-operator.yaml", "installplan", "node-exporter.yaml", "node-exporter.yaml", "ocs-storagecluster-cephfs.yaml", "ocs-storagecluster-cephfsplugin-snapclass.yaml", "ocs-storagecluster-rbdplugin-snapclass.yaml", "ocsinitializations.ocs.openshift.io-v1-admin.yaml", "ocsinitializations.ocs.openshift.io-v1-crdview.yaml", "ocsinitializations.ocs.openshift.io-v1-edit.yaml", "ocsinitializations.ocs.openshift.io-v1-view.yaml", "olm-operator-binding-openshift-operator-lifecycle-manager.yaml", "olm-operators-admin.yaml", "olm-operators-edit.yaml", "olm-operators-view.yaml", "openshift-cluster-monitoring-admin.yaml", "openshift-cluster-monitoring-edit.yaml", "openshift-cluster-monitoring-view.yaml", "openshift-csi-snapshot-controller-role.yaml", "openshift-csi-snapshot-controller-runner.yaml", "openshift-dns-operator.yaml", "openshift-dns-operator.yaml", "openshift-dns.yaml", "openshift-dns.yaml", "openshift-image-registry-pruner.yaml", "openshift-ingress-operator.yaml", "openshift-ingress-operator.yaml", "openshift-ingress-router.yaml", "openshift-ingress-router.yaml", "openshift-sdn-controller.yaml", "openshift-sdn-controller.yaml", "openshift-sdn.yaml", "openshift-sdn.yaml", "openshift-state-metrics.yaml", "openshift-state-metrics.yaml", "openshift-storage-operatorgroup-admin.yaml", "openshift-storage-operatorgroup-edit.yaml", "openshift-storage-operatorgroup-view.yaml", "openshift-storage.noobaa.io.yaml", "operatorhub-config-reader.yaml", "packagemanifests-v1-admin.yaml", "packagemanifests-v1-edit.yaml", "packagemanifests-v1-view.yaml", "packageserver-service-system:auth-delegator.yaml", "pods", "pods_-owide", "prometheus-adapter-view.yaml", "prometheus-adapter.yaml", "prometheus-adapter.yaml", "prometheus-k8s.yaml", "prometheus-k8s.yaml", "prometheus-operator.yaml", "prometheus-operator.yaml", "pvc_all_namespaces", "registry-admin.yaml", "registry-editor.yaml", "registry-monitoring.yaml", "registry-monitoring.yaml", "registry-registry-role.yaml", "registry-viewer.yaml", "self-access-reviewer.yaml", "self-access-reviewers.yaml", "self-provisioner.yaml", "self-provisioners.yaml", "storage-admin.yaml", "storage-version-migration-migrator.yaml", "storagecluster", "storageclusters.ocs.openshift.io-v1-admin.yaml", "storageclusters.ocs.openshift.io-v1-crdview.yaml", "storageclusters.ocs.openshift.io-v1-edit.yaml", "storageclusters.ocs.openshift.io-v1-view.yaml", "subscription", "sudoer.yaml", "system-bootstrap-node-bootstrapper.yaml", "system-bootstrap-node-renewal.yaml", "system:aggregate-to-admin.yaml", "system:aggregate-to-edit.yaml", "system:aggregate-to-view.yaml", "system:aggregated-metrics-reader.yaml", "system:auth-delegator.yaml", "system:basic-user.yaml", "system:basic-user.yaml", "system:build-strategy-custom.yaml", "system:build-strategy-docker-binding.yaml", "system:build-strategy-docker.yaml", "system:build-strategy-jenkinspipeline-binding.yaml", "system:build-strategy-jenkinspipeline.yaml", "system:build-strategy-source-binding.yaml", "system:build-strategy-source.yaml", "system:certificates.k8s.io:certificatesigningrequests:nodeclient.yaml", "system:certificates.k8s.io:certificatesigningrequests:selfnodeclient.yaml", "system:certificates.k8s.io:kube-apiserver-client-approver.yaml", "system:certificates.k8s.io:kube-apiserver-client-kubelet-approver.yaml", "system:certificates.k8s.io:kubelet-serving-approver.yaml", "system:certificates.k8s.io:legacy-unknown-approver.yaml", "system:controller:attachdetach-controller.yaml", "system:controller:attachdetach-controller.yaml", "system:controller:certificate-controller.yaml", "system:controller:certificate-controller.yaml", "system:controller:clusterrole-aggregation-controller.yaml", "system:controller:clusterrole-aggregation-controller.yaml", "system:controller:cronjob-controller.yaml", "system:controller:cronjob-controller.yaml", "system:controller:daemon-set-controller.yaml", "system:controller:daemon-set-controller.yaml", "system:controller:deployment-controller.yaml", "system:controller:deployment-controller.yaml", "system:controller:disruption-controller.yaml", "system:controller:disruption-controller.yaml", "system:controller:endpoint-controller.yaml", "system:controller:endpoint-controller.yaml", "system:controller:endpointslice-controller.yaml", "system:controller:endpointslice-controller.yaml", "system:controller:endpointslicemirroring-controller.yaml", "system:controller:endpointslicemirroring-controller.yaml", "system:controller:expand-controller.yaml", "system:controller:expand-controller.yaml", "system:controller:generic-garbage-collector.yaml", "system:controller:generic-garbage-collector.yaml", "system:controller:horizontal-pod-autoscaler.yaml", "system:controller:horizontal-pod-autoscaler.yaml", "system:controller:job-controller.yaml", "system:controller:job-controller.yaml", "system:controller:namespace-controller.yaml", "system:controller:namespace-controller.yaml", "system:controller:node-controller.yaml", "system:controller:node-controller.yaml", "system:controller:operator-lifecycle-manager.yaml", "system:controller:persistent-volume-binder.yaml", "system:controller:persistent-volume-binder.yaml", "system:controller:pod-garbage-collector.yaml", "system:controller:pod-garbage-collector.yaml", "system:controller:pv-protection-controller.yaml", "system:controller:pv-protection-controller.yaml", "system:controller:pvc-protection-controller.yaml", "system:controller:pvc-protection-controller.yaml", "system:controller:replicaset-controller.yaml", "system:controller:replicaset-controller.yaml", "system:controller:replication-controller.yaml", "system:controller:replication-controller.yaml", "system:controller:resourcequota-controller.yaml", "system:controller:resourcequota-controller.yaml", "system:controller:route-controller.yaml", "system:controller:route-controller.yaml", "system:controller:service-account-controller.yaml", "system:controller:service-account-controller.yaml", "system:controller:service-controller.yaml", "system:controller:service-controller.yaml", "system:controller:statefulset-controller.yaml", "system:controller:statefulset-controller.yaml", "system:controller:ttl-controller.yaml", "system:controller:ttl-controller.yaml", "system:deployer.yaml", "system:deployer.yaml", "system:discovery.yaml", "system:discovery.yaml", "system:heapster.yaml", "system:image-auditor.yaml", "system:image-builder.yaml", "system:image-builder.yaml", "system:image-pruner.yaml", "system:image-puller.yaml", "system:image-puller.yaml", "system:image-pusher.yaml", "system:image-signer.yaml", "system:kube-aggregator.yaml", "system:kube-controller-manager.yaml", "system:kube-controller-manager.yaml", "system:kube-dns.yaml", "system:kube-dns.yaml", "system:kube-scheduler.yaml", "system:kube-scheduler.yaml", "system:kubelet-api-admin.yaml", "system:master.yaml", "system:masters.yaml", "system:node-admin.yaml", "system:node-admin.yaml", "system:node-admins.yaml", "system:node-bootstrapper.yaml", "system:node-bootstrapper.yaml", "system:node-problem-detector.yaml", "system:node-proxier.yaml", "system:node-proxier.yaml", "system:node-proxiers.yaml", "system:node-reader.yaml", "system:node.yaml", "system:node.yaml", "system:oauth-token-deleter.yaml", "system:oauth-token-deleters.yaml", "system:openshift:aggregate-snapshots-to-admin.yaml", "system:openshift:aggregate-snapshots-to-basic-user.yaml", "system:openshift:aggregate-snapshots-to-storage-admin.yaml", "system:openshift:aggregate-snapshots-to-view.yaml", "system:openshift:aggregate-to-admin.yaml", "system:openshift:aggregate-to-basic-user.yaml", "system:openshift:aggregate-to-cluster-reader.yaml", "system:openshift:aggregate-to-edit.yaml", "system:openshift:aggregate-to-storage-admin.yaml", "system:openshift:aggregate-to-view.yaml", "system:openshift:cloud-credential-operator:cluster-reader.yaml", "system:openshift:cluster-config-operator:cluster-reader.yaml", "system:openshift:cluster-samples-operator:cluster-reader.yaml", "system:openshift:controller:build-config-change-controller.yaml", "system:openshift:controller:build-config-change-controller.yaml", "system:openshift:controller:build-controller.yaml", "system:openshift:controller:build-controller.yaml", "system:openshift:controller:check-endpoints-crd-reader.yaml", "system:openshift:controller:check-endpoints-node-reader.yaml", "system:openshift:controller:check-endpoints.yaml", "system:openshift:controller:cluster-quota-reconciliation-controller.yaml", "system:openshift:controller:cluster-quota-reconciliation-controller.yaml", "system:openshift:controller:default-rolebindings-controller.yaml", "system:openshift:controller:default-rolebindings-controller.yaml", "system:openshift:controller:deployer-controller.yaml", "system:openshift:controller:deployer-controller.yaml", "system:openshift:controller:deploymentconfig-controller.yaml", "system:openshift:controller:deploymentconfig-controller.yaml", "system:openshift:controller:horizontal-pod-autoscaler.yaml", "system:openshift:controller:horizontal-pod-autoscaler.yaml", "system:openshift:controller:image-import-controller.yaml", "system:openshift:controller:image-import-controller.yaml", "system:openshift:controller:image-trigger-controller.yaml", "system:openshift:controller:image-trigger-controller.yaml", "system:openshift:controller:kube-apiserver-check-endpoints-auth-delegator.yaml", "system:openshift:controller:kube-apiserver-check-endpoints-crd-reader.yaml", "system:openshift:controller:kube-apiserver-check-endpoints-node-reader.yaml", "system:openshift:controller:machine-approver.yaml", "system:openshift:controller:machine-approver.yaml", "system:openshift:controller:namespace-security-allocation-controller.yaml", "system:openshift:controller:namespace-security-allocation-controller.yaml", "system:openshift:controller:origin-namespace-controller.yaml", "system:openshift:controller:origin-namespace-controller.yaml", "system:openshift:controller:pv-recycler-controller.yaml", "system:openshift:controller:pv-recycler-controller.yaml", "system:openshift:controller:resourcequota-controller.yaml", "system:openshift:controller:resourcequota-controller.yaml", "system:openshift:controller:service-ca.yaml", "system:openshift:controller:service-ca.yaml", "system:openshift:controller:service-ingress-ip-controller.yaml", "system:openshift:controller:service-ingress-ip-controller.yaml", "system:openshift:controller:service-serving-cert-controller.yaml", "system:openshift:controller:service-serving-cert-controller.yaml", "system:openshift:controller:serviceaccount-controller.yaml", "system:openshift:controller:serviceaccount-controller.yaml", "system:openshift:controller:serviceaccount-pull-secrets-controller.yaml", "system:openshift:controller:serviceaccount-pull-secrets-controller.yaml", "system:openshift:controller:template-instance-controller.yaml", "system:openshift:controller:template-instance-controller.yaml", "system:openshift:controller:template-instance-controller:admin.yaml", "system:openshift:controller:template-instance-finalizer-controller.yaml", "system:openshift:controller:template-instance-finalizer-controller.yaml", "system:openshift:controller:template-instance-finalizer-controller:admin.yaml", "system:openshift:controller:template-service-broker.yaml", "system:openshift:controller:template-service-broker.yaml", "system:openshift:controller:unidling-controller.yaml", "system:openshift:controller:unidling-controller.yaml", "system:openshift:discovery.yaml", "system:openshift:discovery.yaml", "system:openshift:kube-controller-manager:gce-cloud-provider.yaml", "system:openshift:kube-controller-manager:gce-cloud-provider.yaml", "system:openshift:machine-config-operator:cluster-reader.yaml", "system:openshift:oauth-apiserver.yaml", "system:openshift:openshift-apiserver.yaml", "system:openshift:openshift-authentication.yaml", "system:openshift:openshift-controller-manager.yaml", "system:openshift:openshift-controller-manager.yaml", "system:openshift:openshift-controller-manager:ingress-to-route-controller.yaml", "system:openshift:openshift-controller-manager:ingress-to-route-controller.yaml", "system:openshift:operator:authentication.yaml", "system:openshift:operator:cluster-kube-scheduler-operator.yaml", "system:openshift:operator:etcd-operator.yaml", "system:openshift:operator:kube-apiserver-operator.yaml", "system:openshift:operator:kube-apiserver-recovery.yaml", "system:openshift:operator:kube-controller-manager-operator.yaml", "system:openshift:operator:kube-controller-manager-recovery.yaml", "system:openshift:operator:kube-scheduler-recovery.yaml", "system:openshift:operator:kube-scheduler:public-2.yaml", "system:openshift:operator:kube-storage-version-migrator-operator.yaml", "system:openshift:operator:openshift-apiserver-operator.yaml", "system:openshift:operator:openshift-config-operator.yaml", "system:openshift:operator:openshift-controller-manager-operator.yaml", "system:openshift:operator:openshift-etcd-installer.yaml", "system:openshift:operator:openshift-kube-apiserver-installer.yaml", "system:openshift:operator:openshift-kube-controller-manager-installer.yaml", "system:openshift:operator:openshift-kube-scheduler-installer.yaml", "system:openshift:operator:service-ca-operator.yaml", "system:openshift:public-info-viewer.yaml", "system:openshift:public-info-viewer.yaml", "system:openshift:scc:anyuid.yaml", "system:openshift:scc:hostaccess.yaml", "system:openshift:scc:hostmount.yaml", "system:openshift:scc:hostnetwork.yaml", "system:openshift:scc:nonroot.yaml", "system:openshift:scc:privileged.yaml", "system:openshift:scc:restricted.yaml", "system:openshift:templateservicebroker-client.yaml", "system:openshift:tokenreview-openshift-controller-manager.yaml", "system:openshift:tokenreview-openshift-controller-manager.yaml", "system:persistent-volume-provisioner.yaml", "system:public-info-viewer.yaml", "system:public-info-viewer.yaml", "system:registry.yaml", "system:router.yaml", "system:scope-impersonation.yaml", "system:scope-impersonation.yaml", "system:sdn-manager.yaml", "system:sdn-reader.yaml", "system:sdn-readers.yaml", "system:volume-scheduler.yaml", "system:volume-scheduler.yaml", "system:webhook.yaml", "system:webhooks.yaml", "telemeter-client-view.yaml", "telemeter-client.yaml", "telemeter-client.yaml", "thanos-querier.yaml", "thanos-querier.yaml", "version.yaml", "view.yaml", "volumesnapshotclass", "whereabouts-cni.yaml", ] GATHER_COMMANDS_OTHERS_EXTERNAL = GATHER_COMMANDS_OTHERS + [ "ocs-external-storagecluster-ceph-rbd.yaml", "ocs-external-storagecluster-ceph-rgw.yaml", "ocs-external-storagecluster-cephfs.yaml", ] GATHER_COMMANDS_OTHERS_EXTERNAL_EXCLUDE = [ "ocs-storagecluster-cephblockpool.yaml", "ocs-storagecluster-cephcluster.yaml", "ocs-storagecluster-cephfilesystem.yaml", "pools_rbd_ocs-storagecluster-cephblockpool", "ocs-storagecluster-ceph-rbd.yaml", "ocs-storagecluster-ceph-rgw.yaml", "ocs-storagecluster-cephfs.yaml", "ocs-storagecluster-cephfsplugin-snapclass.yaml", "ocs-storagecluster-rbdplugin-snapclass.yaml", ] # TODO: Remove monitoring_registry_pvc_list once issue #3465 is fixed # https://github.com/red-hat-storage/ocs-ci/issues/3465 monitoring_registry_pvc_list = [ "my-alertmanager-claim-alertmanager-main-0.yaml", "my-alertmanager-claim-alertmanager-main-1.yaml", "my-alertmanager-claim-alertmanager-main-2.yaml", "my-prometheus-claim-prometheus-k8s-0.yaml", "my-prometheus-claim-prometheus-k8s-1.yaml", "registry-cephfs-rwx-pvc.yaml", ] GATHER_COMMANDS_OTHERS_EXTERNAL_EXCLUDE.extend(monitoring_registry_pvc_list) GATHER_COMMANDS_OTHERS_EXTERNAL_4_5 = list( set(GATHER_COMMANDS_OTHERS_EXTERNAL + GATHER_COMMANDS_OTHERS_4_5) - set(GATHER_COMMANDS_OTHERS_EXTERNAL_EXCLUDE) ) GATHER_COMMANDS_OTHERS_EXTERNAL_4_6 = list( set(GATHER_COMMANDS_OTHERS_EXTERNAL + GATHER_COMMANDS_OTHERS_4_6) - set(GATHER_COMMANDS_OTHERS_EXTERNAL_EXCLUDE) ) + [ "ocs-external-storagecluster-cephfsplugin-snapclass.yaml", "ocs-external-storagecluster-rbdplugin-snapclass.yaml", ] GATHER_COMMANDS_VERSION = { 4.5: { "CEPH": GATHER_COMMANDS_CEPH + GATHER_COMMANDS_CEPH_4_5, "JSON": GATHER_COMMANDS_JSON + GATHER_COMMANDS_JSON_4_5, "OTHERS": GATHER_COMMANDS_OTHERS + GATHER_COMMANDS_OTHERS_4_5, "OTHERS_EXTERNAL": GATHER_COMMANDS_OTHERS_EXTERNAL_4_5, }, 4.6: { "CEPH": GATHER_COMMANDS_CEPH + GATHER_COMMANDS_CEPH_4_6, "JSON": GATHER_COMMANDS_JSON + GATHER_COMMANDS_JSON_4_6, "OTHERS": GATHER_COMMANDS_OTHERS + GATHER_COMMANDS_OTHERS_4_6, "OTHERS_EXTERNAL": GATHER_COMMANDS_OTHERS_EXTERNAL_4_6, }, }
""" The Procedure to add new version: 1.New Version created 2.Add the new version to GATHER_COMMANDS_VERSION dictionary 3.Ask the developer about new files on new version 4.Add file names to relevant list OCS4.6 Link: https://github.com/openshift/ocs-operator/blob/fefc8a0e04e314801809df2e5292a20fae8456b8/must-gather/collection-scripts/ OCS4.5 Link: https://github.com/openshift/ocs-operator/blob/de48c9c00f8964f0f8813d7b3ddd25f7bc318449/must-gather/collection-scripts/ """ gather_commands_ceph = ['ceph-volume_raw_list', 'ceph_auth_list', 'ceph_balancer_status', 'ceph_config-key_ls', 'ceph_config_dump', 'ceph_crash_stat', 'ceph_device_ls', 'ceph_df', 'ceph_fs_dump', 'ceph_fs_ls', 'ceph_fs_status', 'ceph_fs_subvolume_ls_ocs-storagecluster-cephfilesystem_csi', 'ceph_fs_subvolumegroup_ls_ocs-storagecluster-cephfilesystem', 'ceph_health_detail', 'ceph_mds_stat', 'ceph_mgr_dump', 'ceph_mgr_module_ls', 'ceph_mgr_services', 'ceph_mon_dump', 'ceph_mon_stat', 'ceph_osd_blocked-by', 'ceph_osd_crush_class_ls', 'ceph_osd_crush_dump', 'ceph_osd_crush_rule_dump', 'ceph_osd_crush_rule_ls', 'ceph_osd_crush_show-tunables', 'ceph_osd_crush_weight-set_dump', 'ceph_osd_df', 'ceph_osd_df_tree', 'ceph_osd_dump', 'ceph_osd_getmaxosd', 'ceph_osd_lspools', 'ceph_osd_numa-status', 'ceph_osd_perf', 'ceph_osd_pool_ls_detail', 'ceph_osd_stat', 'ceph_osd_tree', 'ceph_osd_utilization', 'ceph_pg_dump', 'ceph_pg_stat', 'ceph_progress', 'ceph_quorum_status', 'ceph_report', 'ceph_service_dump', 'ceph_status', 'ceph_time-sync-status', 'ceph_versions'] gather_commands_json = ['ceph_auth_list_--format_json-pretty', 'ceph_balancer_pool_ls_--format_json-pretty', 'ceph_balancer_status_--format_json-pretty', 'ceph_config-key_ls_--format_json-pretty', 'ceph_config_dump_--format_json-pretty', 'ceph_crash_ls_--format_json-pretty', 'ceph_crash_stat_--format_json-pretty', 'ceph_device_ls_--format_json-pretty', 'ceph_df_--format_json-pretty', 'ceph_fs_dump_--format_json-pretty', 'ceph_fs_ls_--format_json-pretty', 'ceph_fs_status_--format_json-pretty', 'ceph_fs_subvolume_ls_ocs-storagecluster-cephfilesystem_csi_--format_json-pretty', 'ceph_fs_subvolumegroup_ls_ocs-storagecluster-cephfilesystem_--format_json-pretty', 'ceph_health_detail_--format_json-pretty', 'ceph_mds_stat_--format_json-pretty', 'ceph_mgr_dump_--format_json-pretty', 'ceph_mgr_module_ls_--format_json-pretty', 'ceph_mgr_services_--format_json-pretty', 'ceph_mon_dump_--format_json-pretty', 'ceph_mon_stat_--format_json-pretty', 'ceph_osd_blacklist_ls_--format_json-pretty', 'ceph_osd_blocked-by_--format_json-pretty', 'ceph_osd_crush_class_ls_--format_json-pretty', 'ceph_osd_crush_dump_--format_json-pretty', 'ceph_osd_crush_rule_dump_--format_json-pretty', 'ceph_osd_crush_rule_ls_--format_json-pretty', 'ceph_osd_crush_show-tunables_--format_json-pretty', 'ceph_osd_crush_weight-set_dump_--format_json-pretty', 'ceph_osd_crush_weight-set_ls_--format_json-pretty', 'ceph_osd_df_--format_json-pretty', 'ceph_osd_df_tree_--format_json-pretty', 'ceph_osd_dump_--format_json-pretty', 'ceph_osd_getmaxosd_--format_json-pretty', 'ceph_osd_lspools_--format_json-pretty', 'ceph_osd_numa-status_--format_json-pretty', 'ceph_osd_perf_--format_json-pretty', 'ceph_osd_pool_ls_detail_--format_json-pretty', 'ceph_osd_stat_--format_json-pretty', 'ceph_osd_tree_--format_json-pretty', 'ceph_osd_utilization_--format_json-pretty', 'ceph_pg_dump_--format_json-pretty', 'ceph_pg_stat_--format_json-pretty', 'ceph_progress_--format_json-pretty', 'ceph_progress_json', 'ceph_progress_json_--format_json-pretty', 'ceph_quorum_status_--format_json-pretty', 'ceph_report_--format_json-pretty', 'ceph_service_dump_--format_json-pretty', 'ceph_status_--format_json-pretty', 'ceph_time-sync-status_--format_json-pretty', 'ceph_versions_--format_json-pretty'] gather_commands_others = ['buildconfigs.yaml', 'builds.yaml', 'configmaps.yaml', 'cronjobs.yaml', 'daemonsets.yaml', 'db-noobaa-db-0.yaml', 'deploymentconfigs.yaml', 'deployments.yaml', 'endpoints.yaml', 'events.yaml', 'horizontalpodautoscalers.yaml', 'imagestreams.yaml', 'jobs.yaml', 'my-alertmanager-claim-alertmanager-main-0.yaml', 'my-alertmanager-claim-alertmanager-main-1.yaml', 'my-alertmanager-claim-alertmanager-main-2.yaml', 'my-prometheus-claim-prometheus-k8s-0.yaml', 'my-prometheus-claim-prometheus-k8s-1.yaml', 'noobaa-core-0.log', 'noobaa-core-0.yaml', 'noobaa-db-0.log', 'noobaa-db-0.yaml', 'noobaa-default-backing-store.yaml', 'noobaa-default-bucket-class.yaml', 'noobaa.yaml', 'ocs-storagecluster-cephblockpool.yaml', 'ocs-storagecluster-cephcluster.yaml', 'ocs-storagecluster-cephfilesystem.yaml', 'openshift-storage.yaml', 'persistentvolumeclaims.yaml', 'pods.yaml', 'pools_rbd_ocs-storagecluster-cephblockpool', 'registry-cephfs-rwx-pvc.yaml', 'replicasets.yaml', 'replicationcontrollers.yaml', 'routes.yaml', 'secrets.yaml', 'services.yaml', 'statefulsets.yaml', 'storagecluster.yaml'] gather_commands_ceph_4_5 = ['ceph_osd_blacklist_ls'] gather_commands_json_4_5 = [] gather_commands_others_4_5 = ['describe_nodes', 'describe_pods_-n_openshift-storage', 'get_clusterversion_-oyaml', 'get_csv_-n_openshift-storage', 'get_events_-n_openshift-storage', 'get_infrastructures.config_-oyaml', 'get_installplan_-n_openshift-storage', 'get_nodes_--show-labels', 'get_pods_-owide_-n_openshift-storage', 'get_pv', 'get_pvc_--all-namespaces', 'get_sc', 'get_subscription_-n_openshift-storage'] gather_commands_ceph_4_6 = [] gather_commands_json_4_6 = [] gather_commands_others_4_6 = ['volumesnapshotclass', 'storagecluster', 'get_clusterrole', 'desc_clusterrole', 'desc_nodes', 'get_infrastructures.config', 'get_clusterrolebinding', 'desc_pv', 'get_clusterversion', 'get_sc', 'desc_clusterrolebinding', 'get_nodes_-o_wide_--show-labels', 'desc_clusterversion', 'get_pv', 'desc_sc', 'desc_infrastructures.config', 'csv', 'rolebinding', 'all', 'role', 'storagecluster.yaml', 'admin.yaml', 'aggregate-olm-edit.yaml', 'aggregate-olm-view.yaml', 'alertmanager-main.yaml', 'alertmanager-main.yaml', 'backingstores.noobaa.io-v1alpha1-admin.yaml', 'backingstores.noobaa.io-v1alpha1-crdview.yaml', 'backingstores.noobaa.io-v1alpha1-edit.yaml', 'backingstores.noobaa.io-v1alpha1-view.yaml', 'basic-user.yaml', 'basic-users.yaml', 'bucketclasses.noobaa.io-v1alpha1-admin.yaml', 'bucketclasses.noobaa.io-v1alpha1-crdview.yaml', 'bucketclasses.noobaa.io-v1alpha1-edit.yaml', 'bucketclasses.noobaa.io-v1alpha1-view.yaml', 'cephblockpools.ceph.rook.io-v1-admin.yaml', 'cephblockpools.ceph.rook.io-v1-crdview.yaml', 'cephblockpools.ceph.rook.io-v1-edit.yaml', 'cephblockpools.ceph.rook.io-v1-view.yaml', 'cephclients.ceph.rook.io-v1-admin.yaml', 'cephclients.ceph.rook.io-v1-crdview.yaml', 'cephclients.ceph.rook.io-v1-edit.yaml', 'cephclients.ceph.rook.io-v1-view.yaml', 'cephclusters.ceph.rook.io-v1-admin.yaml', 'cephclusters.ceph.rook.io-v1-crdview.yaml', 'cephclusters.ceph.rook.io-v1-edit.yaml', 'cephclusters.ceph.rook.io-v1-view.yaml', 'cephfilesystems.ceph.rook.io-v1-admin.yaml', 'cephfilesystems.ceph.rook.io-v1-crdview.yaml', 'cephfilesystems.ceph.rook.io-v1-edit.yaml', 'cephfilesystems.ceph.rook.io-v1-view.yaml', 'cephnfses.ceph.rook.io-v1-admin.yaml', 'cephnfses.ceph.rook.io-v1-crdview.yaml', 'cephnfses.ceph.rook.io-v1-edit.yaml', 'cephnfses.ceph.rook.io-v1-view.yaml', 'cephobjectrealms.ceph.rook.io-v1-admin.yaml', 'cephobjectrealms.ceph.rook.io-v1-crdview.yaml', 'cephobjectrealms.ceph.rook.io-v1-edit.yaml', 'cephobjectrealms.ceph.rook.io-v1-view.yaml', 'cephobjectstores.ceph.rook.io-v1-admin.yaml', 'cephobjectstores.ceph.rook.io-v1-crdview.yaml', 'cephobjectstores.ceph.rook.io-v1-edit.yaml', 'cephobjectstores.ceph.rook.io-v1-view.yaml', 'cephobjectstoreusers.ceph.rook.io-v1-admin.yaml', 'cephobjectstoreusers.ceph.rook.io-v1-crdview.yaml', 'cephobjectstoreusers.ceph.rook.io-v1-edit.yaml', 'cephobjectstoreusers.ceph.rook.io-v1-view.yaml', 'cephobjectzonegroups.ceph.rook.io-v1-admin.yaml', 'cephobjectzonegroups.ceph.rook.io-v1-crdview.yaml', 'cephobjectzonegroups.ceph.rook.io-v1-edit.yaml', 'cephobjectzonegroups.ceph.rook.io-v1-view.yaml', 'cephobjectzones.ceph.rook.io-v1-admin.yaml', 'cephobjectzones.ceph.rook.io-v1-crdview.yaml', 'cephobjectzones.ceph.rook.io-v1-edit.yaml', 'cephobjectzones.ceph.rook.io-v1-view.yaml', 'cephrbdmirrors.ceph.rook.io-v1-admin.yaml', 'cephrbdmirrors.ceph.rook.io-v1-crdview.yaml', 'cephrbdmirrors.ceph.rook.io-v1-edit.yaml', 'cephrbdmirrors.ceph.rook.io-v1-view.yaml', 'cloud-credential-operator-role.yaml', 'cloud-credential-operator-rolebinding.yaml', 'cluster-admin.yaml', 'cluster-admin.yaml', 'cluster-admins.yaml', 'cluster-autoscaler-operator.yaml', 'cluster-autoscaler-operator.yaml', 'cluster-autoscaler-operator:cluster-reader.yaml', 'cluster-autoscaler.yaml', 'cluster-autoscaler.yaml', 'cluster-debugger.yaml', 'cluster-image-registry-operator.yaml', 'cluster-monitoring-operator.yaml', 'cluster-monitoring-operator.yaml', 'cluster-monitoring-view.yaml', 'cluster-node-tuning-operator.yaml', 'cluster-node-tuning-operator.yaml', 'cluster-node-tuning:tuned.yaml', 'cluster-node-tuning:tuned.yaml', 'cluster-reader.yaml', 'cluster-readers.yaml', 'cluster-samples-operator-proxy-reader.yaml', 'cluster-samples-operator-proxy-reader.yaml', 'cluster-samples-operator.yaml', 'cluster-samples-operator.yaml', 'cluster-status-binding.yaml', 'cluster-status.yaml', 'cluster-storage-operator-role.yaml', 'cluster-version-operator.yaml', 'cluster.yaml', 'console-extensions-reader.yaml', 'console-extensions-reader.yaml', 'console-operator-auth-delegator.yaml', 'console-operator.yaml', 'console-operator.yaml', 'console.yaml', 'console.yaml', 'default-account-cluster-image-registry-operator.yaml', 'default-account-cluster-network-operator.yaml', 'default-account-openshift-machine-config-operator.yaml', 'endpointslices.yaml', 'events', 'insights-operator-auth.yaml', 'insights-operator-gather-reader.yaml', 'insights-operator-gather.yaml', 'insights-operator-gather.yaml', 'insights-operator.yaml', 'insights-operator.yaml', 'installplan', 'node-exporter.yaml', 'node-exporter.yaml', 'ocs-storagecluster-cephfs.yaml', 'ocs-storagecluster-cephfsplugin-snapclass.yaml', 'ocs-storagecluster-rbdplugin-snapclass.yaml', 'ocsinitializations.ocs.openshift.io-v1-admin.yaml', 'ocsinitializations.ocs.openshift.io-v1-crdview.yaml', 'ocsinitializations.ocs.openshift.io-v1-edit.yaml', 'ocsinitializations.ocs.openshift.io-v1-view.yaml', 'olm-operator-binding-openshift-operator-lifecycle-manager.yaml', 'olm-operators-admin.yaml', 'olm-operators-edit.yaml', 'olm-operators-view.yaml', 'openshift-cluster-monitoring-admin.yaml', 'openshift-cluster-monitoring-edit.yaml', 'openshift-cluster-monitoring-view.yaml', 'openshift-csi-snapshot-controller-role.yaml', 'openshift-csi-snapshot-controller-runner.yaml', 'openshift-dns-operator.yaml', 'openshift-dns-operator.yaml', 'openshift-dns.yaml', 'openshift-dns.yaml', 'openshift-image-registry-pruner.yaml', 'openshift-ingress-operator.yaml', 'openshift-ingress-operator.yaml', 'openshift-ingress-router.yaml', 'openshift-ingress-router.yaml', 'openshift-sdn-controller.yaml', 'openshift-sdn-controller.yaml', 'openshift-sdn.yaml', 'openshift-sdn.yaml', 'openshift-state-metrics.yaml', 'openshift-state-metrics.yaml', 'openshift-storage-operatorgroup-admin.yaml', 'openshift-storage-operatorgroup-edit.yaml', 'openshift-storage-operatorgroup-view.yaml', 'openshift-storage.noobaa.io.yaml', 'operatorhub-config-reader.yaml', 'packagemanifests-v1-admin.yaml', 'packagemanifests-v1-edit.yaml', 'packagemanifests-v1-view.yaml', 'packageserver-service-system:auth-delegator.yaml', 'pods', 'pods_-owide', 'prometheus-adapter-view.yaml', 'prometheus-adapter.yaml', 'prometheus-adapter.yaml', 'prometheus-k8s.yaml', 'prometheus-k8s.yaml', 'prometheus-operator.yaml', 'prometheus-operator.yaml', 'pvc_all_namespaces', 'registry-admin.yaml', 'registry-editor.yaml', 'registry-monitoring.yaml', 'registry-monitoring.yaml', 'registry-registry-role.yaml', 'registry-viewer.yaml', 'self-access-reviewer.yaml', 'self-access-reviewers.yaml', 'self-provisioner.yaml', 'self-provisioners.yaml', 'storage-admin.yaml', 'storage-version-migration-migrator.yaml', 'storagecluster', 'storageclusters.ocs.openshift.io-v1-admin.yaml', 'storageclusters.ocs.openshift.io-v1-crdview.yaml', 'storageclusters.ocs.openshift.io-v1-edit.yaml', 'storageclusters.ocs.openshift.io-v1-view.yaml', 'subscription', 'sudoer.yaml', 'system-bootstrap-node-bootstrapper.yaml', 'system-bootstrap-node-renewal.yaml', 'system:aggregate-to-admin.yaml', 'system:aggregate-to-edit.yaml', 'system:aggregate-to-view.yaml', 'system:aggregated-metrics-reader.yaml', 'system:auth-delegator.yaml', 'system:basic-user.yaml', 'system:basic-user.yaml', 'system:build-strategy-custom.yaml', 'system:build-strategy-docker-binding.yaml', 'system:build-strategy-docker.yaml', 'system:build-strategy-jenkinspipeline-binding.yaml', 'system:build-strategy-jenkinspipeline.yaml', 'system:build-strategy-source-binding.yaml', 'system:build-strategy-source.yaml', 'system:certificates.k8s.io:certificatesigningrequests:nodeclient.yaml', 'system:certificates.k8s.io:certificatesigningrequests:selfnodeclient.yaml', 'system:certificates.k8s.io:kube-apiserver-client-approver.yaml', 'system:certificates.k8s.io:kube-apiserver-client-kubelet-approver.yaml', 'system:certificates.k8s.io:kubelet-serving-approver.yaml', 'system:certificates.k8s.io:legacy-unknown-approver.yaml', 'system:controller:attachdetach-controller.yaml', 'system:controller:attachdetach-controller.yaml', 'system:controller:certificate-controller.yaml', 'system:controller:certificate-controller.yaml', 'system:controller:clusterrole-aggregation-controller.yaml', 'system:controller:clusterrole-aggregation-controller.yaml', 'system:controller:cronjob-controller.yaml', 'system:controller:cronjob-controller.yaml', 'system:controller:daemon-set-controller.yaml', 'system:controller:daemon-set-controller.yaml', 'system:controller:deployment-controller.yaml', 'system:controller:deployment-controller.yaml', 'system:controller:disruption-controller.yaml', 'system:controller:disruption-controller.yaml', 'system:controller:endpoint-controller.yaml', 'system:controller:endpoint-controller.yaml', 'system:controller:endpointslice-controller.yaml', 'system:controller:endpointslice-controller.yaml', 'system:controller:endpointslicemirroring-controller.yaml', 'system:controller:endpointslicemirroring-controller.yaml', 'system:controller:expand-controller.yaml', 'system:controller:expand-controller.yaml', 'system:controller:generic-garbage-collector.yaml', 'system:controller:generic-garbage-collector.yaml', 'system:controller:horizontal-pod-autoscaler.yaml', 'system:controller:horizontal-pod-autoscaler.yaml', 'system:controller:job-controller.yaml', 'system:controller:job-controller.yaml', 'system:controller:namespace-controller.yaml', 'system:controller:namespace-controller.yaml', 'system:controller:node-controller.yaml', 'system:controller:node-controller.yaml', 'system:controller:operator-lifecycle-manager.yaml', 'system:controller:persistent-volume-binder.yaml', 'system:controller:persistent-volume-binder.yaml', 'system:controller:pod-garbage-collector.yaml', 'system:controller:pod-garbage-collector.yaml', 'system:controller:pv-protection-controller.yaml', 'system:controller:pv-protection-controller.yaml', 'system:controller:pvc-protection-controller.yaml', 'system:controller:pvc-protection-controller.yaml', 'system:controller:replicaset-controller.yaml', 'system:controller:replicaset-controller.yaml', 'system:controller:replication-controller.yaml', 'system:controller:replication-controller.yaml', 'system:controller:resourcequota-controller.yaml', 'system:controller:resourcequota-controller.yaml', 'system:controller:route-controller.yaml', 'system:controller:route-controller.yaml', 'system:controller:service-account-controller.yaml', 'system:controller:service-account-controller.yaml', 'system:controller:service-controller.yaml', 'system:controller:service-controller.yaml', 'system:controller:statefulset-controller.yaml', 'system:controller:statefulset-controller.yaml', 'system:controller:ttl-controller.yaml', 'system:controller:ttl-controller.yaml', 'system:deployer.yaml', 'system:deployer.yaml', 'system:discovery.yaml', 'system:discovery.yaml', 'system:heapster.yaml', 'system:image-auditor.yaml', 'system:image-builder.yaml', 'system:image-builder.yaml', 'system:image-pruner.yaml', 'system:image-puller.yaml', 'system:image-puller.yaml', 'system:image-pusher.yaml', 'system:image-signer.yaml', 'system:kube-aggregator.yaml', 'system:kube-controller-manager.yaml', 'system:kube-controller-manager.yaml', 'system:kube-dns.yaml', 'system:kube-dns.yaml', 'system:kube-scheduler.yaml', 'system:kube-scheduler.yaml', 'system:kubelet-api-admin.yaml', 'system:master.yaml', 'system:masters.yaml', 'system:node-admin.yaml', 'system:node-admin.yaml', 'system:node-admins.yaml', 'system:node-bootstrapper.yaml', 'system:node-bootstrapper.yaml', 'system:node-problem-detector.yaml', 'system:node-proxier.yaml', 'system:node-proxier.yaml', 'system:node-proxiers.yaml', 'system:node-reader.yaml', 'system:node.yaml', 'system:node.yaml', 'system:oauth-token-deleter.yaml', 'system:oauth-token-deleters.yaml', 'system:openshift:aggregate-snapshots-to-admin.yaml', 'system:openshift:aggregate-snapshots-to-basic-user.yaml', 'system:openshift:aggregate-snapshots-to-storage-admin.yaml', 'system:openshift:aggregate-snapshots-to-view.yaml', 'system:openshift:aggregate-to-admin.yaml', 'system:openshift:aggregate-to-basic-user.yaml', 'system:openshift:aggregate-to-cluster-reader.yaml', 'system:openshift:aggregate-to-edit.yaml', 'system:openshift:aggregate-to-storage-admin.yaml', 'system:openshift:aggregate-to-view.yaml', 'system:openshift:cloud-credential-operator:cluster-reader.yaml', 'system:openshift:cluster-config-operator:cluster-reader.yaml', 'system:openshift:cluster-samples-operator:cluster-reader.yaml', 'system:openshift:controller:build-config-change-controller.yaml', 'system:openshift:controller:build-config-change-controller.yaml', 'system:openshift:controller:build-controller.yaml', 'system:openshift:controller:build-controller.yaml', 'system:openshift:controller:check-endpoints-crd-reader.yaml', 'system:openshift:controller:check-endpoints-node-reader.yaml', 'system:openshift:controller:check-endpoints.yaml', 'system:openshift:controller:cluster-quota-reconciliation-controller.yaml', 'system:openshift:controller:cluster-quota-reconciliation-controller.yaml', 'system:openshift:controller:default-rolebindings-controller.yaml', 'system:openshift:controller:default-rolebindings-controller.yaml', 'system:openshift:controller:deployer-controller.yaml', 'system:openshift:controller:deployer-controller.yaml', 'system:openshift:controller:deploymentconfig-controller.yaml', 'system:openshift:controller:deploymentconfig-controller.yaml', 'system:openshift:controller:horizontal-pod-autoscaler.yaml', 'system:openshift:controller:horizontal-pod-autoscaler.yaml', 'system:openshift:controller:image-import-controller.yaml', 'system:openshift:controller:image-import-controller.yaml', 'system:openshift:controller:image-trigger-controller.yaml', 'system:openshift:controller:image-trigger-controller.yaml', 'system:openshift:controller:kube-apiserver-check-endpoints-auth-delegator.yaml', 'system:openshift:controller:kube-apiserver-check-endpoints-crd-reader.yaml', 'system:openshift:controller:kube-apiserver-check-endpoints-node-reader.yaml', 'system:openshift:controller:machine-approver.yaml', 'system:openshift:controller:machine-approver.yaml', 'system:openshift:controller:namespace-security-allocation-controller.yaml', 'system:openshift:controller:namespace-security-allocation-controller.yaml', 'system:openshift:controller:origin-namespace-controller.yaml', 'system:openshift:controller:origin-namespace-controller.yaml', 'system:openshift:controller:pv-recycler-controller.yaml', 'system:openshift:controller:pv-recycler-controller.yaml', 'system:openshift:controller:resourcequota-controller.yaml', 'system:openshift:controller:resourcequota-controller.yaml', 'system:openshift:controller:service-ca.yaml', 'system:openshift:controller:service-ca.yaml', 'system:openshift:controller:service-ingress-ip-controller.yaml', 'system:openshift:controller:service-ingress-ip-controller.yaml', 'system:openshift:controller:service-serving-cert-controller.yaml', 'system:openshift:controller:service-serving-cert-controller.yaml', 'system:openshift:controller:serviceaccount-controller.yaml', 'system:openshift:controller:serviceaccount-controller.yaml', 'system:openshift:controller:serviceaccount-pull-secrets-controller.yaml', 'system:openshift:controller:serviceaccount-pull-secrets-controller.yaml', 'system:openshift:controller:template-instance-controller.yaml', 'system:openshift:controller:template-instance-controller.yaml', 'system:openshift:controller:template-instance-controller:admin.yaml', 'system:openshift:controller:template-instance-finalizer-controller.yaml', 'system:openshift:controller:template-instance-finalizer-controller.yaml', 'system:openshift:controller:template-instance-finalizer-controller:admin.yaml', 'system:openshift:controller:template-service-broker.yaml', 'system:openshift:controller:template-service-broker.yaml', 'system:openshift:controller:unidling-controller.yaml', 'system:openshift:controller:unidling-controller.yaml', 'system:openshift:discovery.yaml', 'system:openshift:discovery.yaml', 'system:openshift:kube-controller-manager:gce-cloud-provider.yaml', 'system:openshift:kube-controller-manager:gce-cloud-provider.yaml', 'system:openshift:machine-config-operator:cluster-reader.yaml', 'system:openshift:oauth-apiserver.yaml', 'system:openshift:openshift-apiserver.yaml', 'system:openshift:openshift-authentication.yaml', 'system:openshift:openshift-controller-manager.yaml', 'system:openshift:openshift-controller-manager.yaml', 'system:openshift:openshift-controller-manager:ingress-to-route-controller.yaml', 'system:openshift:openshift-controller-manager:ingress-to-route-controller.yaml', 'system:openshift:operator:authentication.yaml', 'system:openshift:operator:cluster-kube-scheduler-operator.yaml', 'system:openshift:operator:etcd-operator.yaml', 'system:openshift:operator:kube-apiserver-operator.yaml', 'system:openshift:operator:kube-apiserver-recovery.yaml', 'system:openshift:operator:kube-controller-manager-operator.yaml', 'system:openshift:operator:kube-controller-manager-recovery.yaml', 'system:openshift:operator:kube-scheduler-recovery.yaml', 'system:openshift:operator:kube-scheduler:public-2.yaml', 'system:openshift:operator:kube-storage-version-migrator-operator.yaml', 'system:openshift:operator:openshift-apiserver-operator.yaml', 'system:openshift:operator:openshift-config-operator.yaml', 'system:openshift:operator:openshift-controller-manager-operator.yaml', 'system:openshift:operator:openshift-etcd-installer.yaml', 'system:openshift:operator:openshift-kube-apiserver-installer.yaml', 'system:openshift:operator:openshift-kube-controller-manager-installer.yaml', 'system:openshift:operator:openshift-kube-scheduler-installer.yaml', 'system:openshift:operator:service-ca-operator.yaml', 'system:openshift:public-info-viewer.yaml', 'system:openshift:public-info-viewer.yaml', 'system:openshift:scc:anyuid.yaml', 'system:openshift:scc:hostaccess.yaml', 'system:openshift:scc:hostmount.yaml', 'system:openshift:scc:hostnetwork.yaml', 'system:openshift:scc:nonroot.yaml', 'system:openshift:scc:privileged.yaml', 'system:openshift:scc:restricted.yaml', 'system:openshift:templateservicebroker-client.yaml', 'system:openshift:tokenreview-openshift-controller-manager.yaml', 'system:openshift:tokenreview-openshift-controller-manager.yaml', 'system:persistent-volume-provisioner.yaml', 'system:public-info-viewer.yaml', 'system:public-info-viewer.yaml', 'system:registry.yaml', 'system:router.yaml', 'system:scope-impersonation.yaml', 'system:scope-impersonation.yaml', 'system:sdn-manager.yaml', 'system:sdn-reader.yaml', 'system:sdn-readers.yaml', 'system:volume-scheduler.yaml', 'system:volume-scheduler.yaml', 'system:webhook.yaml', 'system:webhooks.yaml', 'telemeter-client-view.yaml', 'telemeter-client.yaml', 'telemeter-client.yaml', 'thanos-querier.yaml', 'thanos-querier.yaml', 'version.yaml', 'view.yaml', 'volumesnapshotclass', 'whereabouts-cni.yaml'] gather_commands_others_external = GATHER_COMMANDS_OTHERS + ['ocs-external-storagecluster-ceph-rbd.yaml', 'ocs-external-storagecluster-ceph-rgw.yaml', 'ocs-external-storagecluster-cephfs.yaml'] gather_commands_others_external_exclude = ['ocs-storagecluster-cephblockpool.yaml', 'ocs-storagecluster-cephcluster.yaml', 'ocs-storagecluster-cephfilesystem.yaml', 'pools_rbd_ocs-storagecluster-cephblockpool', 'ocs-storagecluster-ceph-rbd.yaml', 'ocs-storagecluster-ceph-rgw.yaml', 'ocs-storagecluster-cephfs.yaml', 'ocs-storagecluster-cephfsplugin-snapclass.yaml', 'ocs-storagecluster-rbdplugin-snapclass.yaml'] monitoring_registry_pvc_list = ['my-alertmanager-claim-alertmanager-main-0.yaml', 'my-alertmanager-claim-alertmanager-main-1.yaml', 'my-alertmanager-claim-alertmanager-main-2.yaml', 'my-prometheus-claim-prometheus-k8s-0.yaml', 'my-prometheus-claim-prometheus-k8s-1.yaml', 'registry-cephfs-rwx-pvc.yaml'] GATHER_COMMANDS_OTHERS_EXTERNAL_EXCLUDE.extend(monitoring_registry_pvc_list) gather_commands_others_external_4_5 = list(set(GATHER_COMMANDS_OTHERS_EXTERNAL + GATHER_COMMANDS_OTHERS_4_5) - set(GATHER_COMMANDS_OTHERS_EXTERNAL_EXCLUDE)) gather_commands_others_external_4_6 = list(set(GATHER_COMMANDS_OTHERS_EXTERNAL + GATHER_COMMANDS_OTHERS_4_6) - set(GATHER_COMMANDS_OTHERS_EXTERNAL_EXCLUDE)) + ['ocs-external-storagecluster-cephfsplugin-snapclass.yaml', 'ocs-external-storagecluster-rbdplugin-snapclass.yaml'] gather_commands_version = {4.5: {'CEPH': GATHER_COMMANDS_CEPH + GATHER_COMMANDS_CEPH_4_5, 'JSON': GATHER_COMMANDS_JSON + GATHER_COMMANDS_JSON_4_5, 'OTHERS': GATHER_COMMANDS_OTHERS + GATHER_COMMANDS_OTHERS_4_5, 'OTHERS_EXTERNAL': GATHER_COMMANDS_OTHERS_EXTERNAL_4_5}, 4.6: {'CEPH': GATHER_COMMANDS_CEPH + GATHER_COMMANDS_CEPH_4_6, 'JSON': GATHER_COMMANDS_JSON + GATHER_COMMANDS_JSON_4_6, 'OTHERS': GATHER_COMMANDS_OTHERS + GATHER_COMMANDS_OTHERS_4_6, 'OTHERS_EXTERNAL': GATHER_COMMANDS_OTHERS_EXTERNAL_4_6}}
def extract_coupon(description): coupon = '' for s in range(len(description)): if description[s].isnumeric() or description[s] == '.': coupon = coupon + description[s] #print(c) if description[s] == '%': break try: float(coupon) except: coupon = coupon[1:] float(coupon) return coupon
def extract_coupon(description): coupon = '' for s in range(len(description)): if description[s].isnumeric() or description[s] == '.': coupon = coupon + description[s] if description[s] == '%': break try: float(coupon) except: coupon = coupon[1:] float(coupon) return coupon
key = [int(num) for num in input().split()] data = input() length = len(key) results_dict = {} while not data == 'find': message = "" counter = 0 for el in data: if counter == length: counter = 0 asc = ord(el) asc -= key[counter] ord_asc = chr(asc) message += ord_asc counter += 1 find_item = message.find('&') find_position = message.find('<') type_found = "" coordinates = "" for sym in range(find_item + 1, len(message) + 1): if message[sym] == "&": break type_found += message[sym] for sym in range(find_position + 1, len(message) + 1): if message[sym] == ">": break coordinates += message[sym] if type_found not in results_dict: results_dict[type_found] = coordinates data = input() for item, numbers in results_dict.items(): print(f"Found {item} at {numbers}")
key = [int(num) for num in input().split()] data = input() length = len(key) results_dict = {} while not data == 'find': message = '' counter = 0 for el in data: if counter == length: counter = 0 asc = ord(el) asc -= key[counter] ord_asc = chr(asc) message += ord_asc counter += 1 find_item = message.find('&') find_position = message.find('<') type_found = '' coordinates = '' for sym in range(find_item + 1, len(message) + 1): if message[sym] == '&': break type_found += message[sym] for sym in range(find_position + 1, len(message) + 1): if message[sym] == '>': break coordinates += message[sym] if type_found not in results_dict: results_dict[type_found] = coordinates data = input() for (item, numbers) in results_dict.items(): print(f'Found {item} at {numbers}')
# use the with key word to open file ass mb_object with open("mbox-short.txt", "r") as mb_object: # Iterate over each line and remove leading spaces; # print contents after converting them to uppercase for line in mb_object: line = line.strip() print(line.upper())
with open('mbox-short.txt', 'r') as mb_object: for line in mb_object: line = line.strip() print(line.upper())
################ # First class functions allow us to treat functions as any other variables or objects # Closures are functions that are local inner functions within outer functions that remember the arguments passed to the outer functions ################# def square(x): return x*x def my_map_function(func , arg_list): result = [] for item in arg_list: result.append(func(item)) return result int_array = [1,2,3,4,5] f = my_map_function(square , int_array) #print(f) #print(my_map_function(square , int_array)) def logger(msg): def log_message(): print('Log:' , msg) return log_message log_hi = logger('Hi') log_hi() #Closure Example def my_log(msg): def logging(*args): print('Log Message {} , Logging Message {} '.format(msg , args)) return logging log_hi = my_log('Console 1') log_hi('Hi')
def square(x): return x * x def my_map_function(func, arg_list): result = [] for item in arg_list: result.append(func(item)) return result int_array = [1, 2, 3, 4, 5] f = my_map_function(square, int_array) def logger(msg): def log_message(): print('Log:', msg) return log_message log_hi = logger('Hi') log_hi() def my_log(msg): def logging(*args): print('Log Message {} , Logging Message {} '.format(msg, args)) return logging log_hi = my_log('Console 1') log_hi('Hi')
class AbstractPlayer: def __init__(self): raise NotImplementedError() def explain(self, word, n_words): raise NotImplementedError() def guess(self, words, n_words): raise NotImplementedError() class LocalDummyPlayer(AbstractPlayer): def __init__(self): pass def explain(self, word, n_words): return "Hi! My name is LocalDummyPlayer! What's yours?".split()[:n_words] def guess(self, words, n_words): return "I guess it's a word, but don't have any idea which one!".split()[:n_words] class LocalFasttextPlayer(AbstractPlayer): def __init__(self, model): self.model = model def find_words_for_sentence(self, sentence, n_closest): neighbours = self.model.get_nearest_neighbors(sentence) words = [word for similariry, word in neighbours][:n_closest] return words def explain(self, word, n_words): return self.find_words_for_sentence(word, n_words) def guess(self, words, n_words): words_for_sentence = self.find_words_for_sentence(" ".join(words), n_words) return words_for_sentence
class Abstractplayer: def __init__(self): raise not_implemented_error() def explain(self, word, n_words): raise not_implemented_error() def guess(self, words, n_words): raise not_implemented_error() class Localdummyplayer(AbstractPlayer): def __init__(self): pass def explain(self, word, n_words): return "Hi! My name is LocalDummyPlayer! What's yours?".split()[:n_words] def guess(self, words, n_words): return "I guess it's a word, but don't have any idea which one!".split()[:n_words] class Localfasttextplayer(AbstractPlayer): def __init__(self, model): self.model = model def find_words_for_sentence(self, sentence, n_closest): neighbours = self.model.get_nearest_neighbors(sentence) words = [word for (similariry, word) in neighbours][:n_closest] return words def explain(self, word, n_words): return self.find_words_for_sentence(word, n_words) def guess(self, words, n_words): words_for_sentence = self.find_words_for_sentence(' '.join(words), n_words) return words_for_sentence
""" 1108. Defanging an IP Address Given a valid (IPv4) IP address, return a defanged version of that IP address. A defanged IP address replaces every period "." with "[.]". Example 1: Input: address = "1.1.1.1" Output: "1[.]1[.]1[.]1" Example 2: Input: address = "255.100.50.0" Output: "255[.]100[.]50[.]0" Constraints: The given address is a valid IPv4 address. """ class Solution(object): def defangIPaddr(self, address): """ :type address: str :rtype: str """ return address.replace(".","[.]")
""" 1108. Defanging an IP Address Given a valid (IPv4) IP address, return a defanged version of that IP address. A defanged IP address replaces every period "." with "[.]". Example 1: Input: address = "1.1.1.1" Output: "1[.]1[.]1[.]1" Example 2: Input: address = "255.100.50.0" Output: "255[.]100[.]50[.]0" Constraints: The given address is a valid IPv4 address. """ class Solution(object): def defang_i_paddr(self, address): """ :type address: str :rtype: str """ return address.replace('.', '[.]')
# Acesso as elementos da tupla numeros = 1,2,3,5,7,11 print(numeros[0]) print(numeros[1]) print(numeros[2]) print(numeros[3]) print(numeros[4]) print(numeros[5])
numeros = (1, 2, 3, 5, 7, 11) print(numeros[0]) print(numeros[1]) print(numeros[2]) print(numeros[3]) print(numeros[4]) print(numeros[5])
__title__ = 'contactTree-api' __package_name = 'contactTree-api' __version__ = '0.1.0' __description__ = '' __author__ = 'Dionisis Pettas' __email__ = '' __github__ = 'https://github.com/deepettas/contact-tree' __licence__ = 'MIT'
__title__ = 'contactTree-api' __package_name = 'contactTree-api' __version__ = '0.1.0' __description__ = '' __author__ = 'Dionisis Pettas' __email__ = '' __github__ = 'https://github.com/deepettas/contact-tree' __licence__ = 'MIT'
def add_native_methods(clazz): def nOpen__int__(a0, a1): raise NotImplementedError() def nClose__long__(a0, a1): raise NotImplementedError() def nSendShortMessage__long__int__long__(a0, a1, a2, a3): raise NotImplementedError() def nSendLongMessage__long__byte____int__long__(a0, a1, a2, a3, a4): raise NotImplementedError() def nGetTimeStamp__long__(a0, a1): raise NotImplementedError() clazz.nOpen__int__ = nOpen__int__ clazz.nClose__long__ = nClose__long__ clazz.nSendShortMessage__long__int__long__ = nSendShortMessage__long__int__long__ clazz.nSendLongMessage__long__byte____int__long__ = nSendLongMessage__long__byte____int__long__ clazz.nGetTimeStamp__long__ = nGetTimeStamp__long__
def add_native_methods(clazz): def n_open__int__(a0, a1): raise not_implemented_error() def n_close__long__(a0, a1): raise not_implemented_error() def n_send_short_message__long__int__long__(a0, a1, a2, a3): raise not_implemented_error() def n_send_long_message__long__byte____int__long__(a0, a1, a2, a3, a4): raise not_implemented_error() def n_get_time_stamp__long__(a0, a1): raise not_implemented_error() clazz.nOpen__int__ = nOpen__int__ clazz.nClose__long__ = nClose__long__ clazz.nSendShortMessage__long__int__long__ = nSendShortMessage__long__int__long__ clazz.nSendLongMessage__long__byte____int__long__ = nSendLongMessage__long__byte____int__long__ clazz.nGetTimeStamp__long__ = nGetTimeStamp__long__
""" django: https://docs.djangoproject.com/en/3.0/ref/settings/#allowed-hosts https://docs.djangoproject.com/en/3.0/ref/settings/#internal-ips """ ALLOWED_HOSTS = "*" INTERNAL_IPS = ("127.0.0.1", "localhost", "172.18.0.1")
""" django: https://docs.djangoproject.com/en/3.0/ref/settings/#allowed-hosts https://docs.djangoproject.com/en/3.0/ref/settings/#internal-ips """ allowed_hosts = '*' internal_ips = ('127.0.0.1', 'localhost', '172.18.0.1')
i = 4 # variation on testWhile.py while (i < 9): i = i+2 print(i)
i = 4 while i < 9: i = i + 2 print(i)
"""TODO Ecrire un paquet de tools Ecrire un outil XSS Ecrire un README avec https://github.com/RichardLitt/standard-readme/blob/master/README.md Completer touts les script avec PayloadAllTheThing pour ajouter des payloads a chaque exploit Rassembler toutes les LFI dans une classe / pareil pour les RFI -Faire un analyser pour le dispatcher (analyser l'url, la page, recuperer des forms, ect...) (en sortie une liste de dictionnaire avec {'url':url,'exploit':['XSS','LFI','PHP_ASSERT']} -Faire un dispatcher pour le crawler """
"""TODO Ecrire un paquet de tools Ecrire un outil XSS Ecrire un README avec https://github.com/RichardLitt/standard-readme/blob/master/README.md Completer touts les script avec PayloadAllTheThing pour ajouter des payloads a chaque exploit Rassembler toutes les LFI dans une classe / pareil pour les RFI -Faire un analyser pour le dispatcher (analyser l'url, la page, recuperer des forms, ect...) (en sortie une liste de dictionnaire avec {'url':url,'exploit':['XSS','LFI','PHP_ASSERT']} -Faire un dispatcher pour le crawler """
class RelayOutput: def enable_relay(self, name: str): pass def reset(self): pass
class Relayoutput: def enable_relay(self, name: str): pass def reset(self): pass
''' Create a tuple with some words. Show for each word its vowels. ''' vowels = ('a', 'e', 'i', 'o', 'u') words = ( 'Learn', 'Programming', 'Language', 'Python', 'Course', 'Free', 'Study', 'Practice', 'Work', 'Market', 'Programmer', 'Future' ) for word in words: print(f'\nThe word \033[34m{word}\033[m contains', end=' -> ') for letter in word: if letter in vowels: print(f'\033[32m{letter}\033[m', end=' ')
""" Create a tuple with some words. Show for each word its vowels. """ vowels = ('a', 'e', 'i', 'o', 'u') words = ('Learn', 'Programming', 'Language', 'Python', 'Course', 'Free', 'Study', 'Practice', 'Work', 'Market', 'Programmer', 'Future') for word in words: print(f'\nThe word \x1b[34m{word}\x1b[m contains', end=' -> ') for letter in word: if letter in vowels: print(f'\x1b[32m{letter}\x1b[m', end=' ')
f = open('surf.txt') maior = 0 for linha in f: nome, pontos = linha.split() if float(pontos) > maior: maior = float(pontos) f.close() print (maior)
f = open('surf.txt') maior = 0 for linha in f: (nome, pontos) = linha.split() if float(pontos) > maior: maior = float(pontos) f.close() print(maior)
""" errors module """ class PyungoError(Exception): """ pyungo custom exception """ pass
""" errors module """ class Pyungoerror(Exception): """ pyungo custom exception """ pass
#!/usr/bin.env python # Copyright (C) Pearson Assessments - 2020. All Rights Reserved. # Proprietary - Use with Pearson Written Permission Only memo = {} class Solution(object): def wordBreak(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: bool """ if s in memo: return memo[s] if len(s) == 0: return False if len(s) == 1: return (s in wordDict) if s in wordDict: return True for word in wordDict: len_word = len(word) if len_word > len(s): continue left = s[:len_word + 1] right = s[len_word + 1:] if left in wordDict: if right in wordDict: memo[s] = True return True else: right_verdict = self.wordBreak(right, wordDict) memo[s] = right_verdict if right_verdict: return True memo[s] = False return False obj = Solution() #print(obj.wordBreak("leetcode", ["leet", "code"])) print(obj.wordBreak("applepenapple", ["apple", "pen"])) #print(obj.wordBreak("a", ["apple", "pen", "a"])) #print(obj.wordBreak("catsandog", ["cats", "dog", "sand", "and", "cat"])) # print(obj.wordBreak( # "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab", # ["a","aa","aaa","aaaa","aaaaa","aaaaaa","aaaaaaa","aaaaaaaa", # "aaaaaaaaa","aaaaaaaaaa"])) print(memo)
memo = {} class Solution(object): def word_break(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: bool """ if s in memo: return memo[s] if len(s) == 0: return False if len(s) == 1: return s in wordDict if s in wordDict: return True for word in wordDict: len_word = len(word) if len_word > len(s): continue left = s[:len_word + 1] right = s[len_word + 1:] if left in wordDict: if right in wordDict: memo[s] = True return True else: right_verdict = self.wordBreak(right, wordDict) memo[s] = right_verdict if right_verdict: return True memo[s] = False return False obj = solution() print(obj.wordBreak('applepenapple', ['apple', 'pen'])) print(memo)
'''https://leetcode.com/problems/palindrome-linked-list/''' # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None # Solution 1 # Time Complexity - O(n) # Space Complexity - O(n) class Solution: def isPalindrome(self, head: ListNode) -> bool: s = [] while head: s+= [head.val] head = head.next return s==s[::-1] # Solution 1 # Time Complexity - O(n) # Space Complexity - O(1) class Solution: def isPalindrome(self, head: ListNode) -> bool: #find mid element slow = fast = head while fast and fast.next: slow = slow.next fast = fast.next.next #reverse second half prev = None #will store the reversed array while slow: nxt = slow.next slow.next = prev prev = slow slow = nxt #compare first half and reversed second half while head and prev: if prev.val != head.val: return False head = head.next prev = prev.next return True
"""https://leetcode.com/problems/palindrome-linked-list/""" class Solution: def is_palindrome(self, head: ListNode) -> bool: s = [] while head: s += [head.val] head = head.next return s == s[::-1] class Solution: def is_palindrome(self, head: ListNode) -> bool: slow = fast = head while fast and fast.next: slow = slow.next fast = fast.next.next prev = None while slow: nxt = slow.next slow.next = prev prev = slow slow = nxt while head and prev: if prev.val != head.val: return False head = head.next prev = prev.next return True
def calculate(**kwargs): operation_lookup = { 'add': kwargs.get('first', 0) + kwargs.get('second', 0), 'subtract': kwargs.get('first', 0) - kwargs.get('second', 0), 'divide': kwargs.get('first', 0) / kwargs.get('second', 1), 'multiply': kwargs.get('first', 0) * kwargs.get('second', 0) } is_float = kwargs.get('make_float', False) operation_value = operation_lookup[kwargs.get('operation', '')] if is_float: final = "{} {}".format(kwargs.get( 'message', 'The result is'), float(operation_value)) else: final = "{} {}".format(kwargs.get( 'message', 'the result is'), int(operation_value)) return final # print(calculate(make_float=False, operation='add', message='You just added', # first=2, second=4)) # "You just added 6" # print(calculate(make_float=True, operation='divide', # first=3.5, second=5)) # "The result is 0.7" def greet_boss(employee = None, boss = None): print(f"{employee} greets {boss}") names = {"boss": "Bob", "employee": "Colt"} greet_boss() greet_boss(**names) cube = lambda num: num**3 print(cube(2)) print(cube(3)) print(cube(8))
def calculate(**kwargs): operation_lookup = {'add': kwargs.get('first', 0) + kwargs.get('second', 0), 'subtract': kwargs.get('first', 0) - kwargs.get('second', 0), 'divide': kwargs.get('first', 0) / kwargs.get('second', 1), 'multiply': kwargs.get('first', 0) * kwargs.get('second', 0)} is_float = kwargs.get('make_float', False) operation_value = operation_lookup[kwargs.get('operation', '')] if is_float: final = '{} {}'.format(kwargs.get('message', 'The result is'), float(operation_value)) else: final = '{} {}'.format(kwargs.get('message', 'the result is'), int(operation_value)) return final def greet_boss(employee=None, boss=None): print(f'{employee} greets {boss}') names = {'boss': 'Bob', 'employee': 'Colt'} greet_boss() greet_boss(**names) cube = lambda num: num ** 3 print(cube(2)) print(cube(3)) print(cube(8))
# --------------------------------------------------------------------------------------- # # Title: Permutations # # Link: https://leetcode.com/problems/permutations/ # # Difficulty: Medium # # Language: Python # # --------------------------------------------------------------------------------------- class Permutations: def permute(self, nums): return self.phelper(nums, [], []) def phelper(self, nums, x, y): for i in nums: if i not in x: x.append(i) if len(x) == len(nums): y.append(x.copy()) else: y = self.phelper(nums,x,y) del x[len(x)-1] return y if __name__ == "__main__": p = [1,2,3] z = Permutations() print( z.permute(p) )
class Permutations: def permute(self, nums): return self.phelper(nums, [], []) def phelper(self, nums, x, y): for i in nums: if i not in x: x.append(i) if len(x) == len(nums): y.append(x.copy()) else: y = self.phelper(nums, x, y) del x[len(x) - 1] return y if __name__ == '__main__': p = [1, 2, 3] z = permutations() print(z.permute(p))
"""Top-level package for nesc-coo.""" __author__ = """Betterme""" __email__ = '[email protected]' __version__ = '0.0.0'
"""Top-level package for nesc-coo.""" __author__ = 'Betterme' __email__ = '[email protected]' __version__ = '0.0.0'
"""APIv3-specific CLI settings """ __all__ = [] # Abaco settings # Aloe settings # Keys settings
"""APIv3-specific CLI settings """ __all__ = []
''' modifier: 01 eqtime: 25 ''' def main(): info('Jan Air Script x1') gosub('jan:WaitForMiniboneAccess') gosub('jan:PrepareForAirShot') gosub('jan:EvacPipette2') gosub('common:FillPipette2') gosub('jan:PrepareForAirShotExpansion') gosub('common:ExpandPipette2')
""" modifier: 01 eqtime: 25 """ def main(): info('Jan Air Script x1') gosub('jan:WaitForMiniboneAccess') gosub('jan:PrepareForAirShot') gosub('jan:EvacPipette2') gosub('common:FillPipette2') gosub('jan:PrepareForAirShotExpansion') gosub('common:ExpandPipette2')
def SaveOrder(orderDict): file = open("orderLog.txt", 'w') total = 0 for item, price in orderDict.items(): file.write(item+'-->'+str(price)+'\n') total += price file.write('Total = '+str(total)) file.close() def main(): order = { 'Pizza':100, 'Snaks':200, 'Pasta':500, 'Coke' :50 } SaveOrder(order) print("Log successfully added") main()
def save_order(orderDict): file = open('orderLog.txt', 'w') total = 0 for (item, price) in orderDict.items(): file.write(item + '-->' + str(price) + '\n') total += price file.write('Total = ' + str(total)) file.close() def main(): order = {'Pizza': 100, 'Snaks': 200, 'Pasta': 500, 'Coke': 50} save_order(order) print('Log successfully added') main()
# Generator A starts with 783 # Generator B starts with 325 REAL_START=[783, 325] SAMPLE_START=[65, 8921] FACTORS=[16807, 48271] DIVISOR=2147483647 # 0b1111111111111111111111111111111 2^31 def next_a_value(val, factor): while True: val = (val * factor) % DIVISOR if val & 3 == 0: return val def next_b_value(val, factor): while True: val = (val * factor) % DIVISOR if val & 7 == 0: return val def calc_16_bit_matches(times, start): matches = 0 a, b = start for i in range(times): a = next_a_value(a, FACTORS[0]) b = next_b_value(b, FACTORS[1]) if a & 0b1111111111111111 == b & 0b1111111111111111: matches +=1 return matches print(calc_16_bit_matches(5_000_000, REAL_START)) # 336
real_start = [783, 325] sample_start = [65, 8921] factors = [16807, 48271] divisor = 2147483647 def next_a_value(val, factor): while True: val = val * factor % DIVISOR if val & 3 == 0: return val def next_b_value(val, factor): while True: val = val * factor % DIVISOR if val & 7 == 0: return val def calc_16_bit_matches(times, start): matches = 0 (a, b) = start for i in range(times): a = next_a_value(a, FACTORS[0]) b = next_b_value(b, FACTORS[1]) if a & 65535 == b & 65535: matches += 1 return matches print(calc_16_bit_matches(5000000, REAL_START))
# -*- coding: utf-8 -*- class ArgumentTypeError(TypeError): pass class ArgumentValueError(ValueError): pass
class Argumenttypeerror(TypeError): pass class Argumentvalueerror(ValueError): pass
""" Manage stakeholders like a pro! """ __author__ = "critical-path" __version__ = "0.1.6"
""" Manage stakeholders like a pro! """ __author__ = 'critical-path' __version__ = '0.1.6'
# VALIDAR SE A CIDADE DIGITADA INICIA COM O NOME SANTO: cidade = str(input('Digite a cidade em que nasceu... ')).strip() print(cidade[:5].upper() == 'SANTO')
cidade = str(input('Digite a cidade em que nasceu... ')).strip() print(cidade[:5].upper() == 'SANTO')
ls = list(map(int, input().split())) count = 0 for i in ls: if ls[i] == 1: count += 1 print(count)
ls = list(map(int, input().split())) count = 0 for i in ls: if ls[i] == 1: count += 1 print(count)
def abc(a,b,c): for i in a: b(a) if c(): if b(a) > 100: b(a) elif 100 > 0: b(a) else: b(a) else: b(100) return 100 def ex(): try: fh = open("testfile", "w") fh.write("a") except IOError: print("b") else: print("c") fh.close() def funa(a): b = a(3) def funab(f): return f(5) def funac(f): return f(5) def funcb(f): return funab(f) return funab(b) def funb(): while 1: for i in range(10): if 1: for j in range(100): print(j) return 1 elif 2: return 2 else: return 3 def func(): if 1: for j in range(100): print(j) return 1 elif 2: return 2 else: return 3
def abc(a, b, c): for i in a: b(a) if c(): if b(a) > 100: b(a) elif 100 > 0: b(a) else: b(a) else: b(100) return 100 def ex(): try: fh = open('testfile', 'w') fh.write('a') except IOError: print('b') else: print('c') fh.close() def funa(a): b = a(3) def funab(f): return f(5) def funac(f): return f(5) def funcb(f): return funab(f) return funab(b) def funb(): while 1: for i in range(10): if 1: for j in range(100): print(j) return 1 elif 2: return 2 else: return 3 def func(): if 1: for j in range(100): print(j) return 1 elif 2: return 2 else: return 3
# 4. Write a Python program to check a list is empty or not. Take few lists with one of them empty. fruits = ['apple', 'cherry', 'pear', 'lemon', 'banana'] fruits1 = [] fruits2 = ['mango', 'strawberry', 'peach'] # print (fruits[3]) # print (fruits[-2]) # print (fruits[1]) # # # print (fruits[0]) # print (fruits) # # fruits = [] # print (fruits) fruits. append('apple') fruits.append('banana') fruits.append ('pear') fruits.append('cherry') print(fruits) fruits. append('apple') fruits.append('banana') fruits.append ('pear') fruits.append('cherry') print(fruits) # # # print (fruits[0]) # print (fruits2[2]) #
fruits = ['apple', 'cherry', 'pear', 'lemon', 'banana'] fruits1 = [] fruits2 = ['mango', 'strawberry', 'peach'] fruits.append('apple') fruits.append('banana') fruits.append('pear') fruits.append('cherry') print(fruits) fruits.append('apple') fruits.append('banana') fruits.append('pear') fruits.append('cherry') print(fruits)
class Solution: def isPalindrome(self, x): """ :type x: int :rtype: bool """ y = [i for i in str(x)] y.reverse() try: y = int(''.join(y)) except ValueError: pass return x == y
class Solution: def is_palindrome(self, x): """ :type x: int :rtype: bool """ y = [i for i in str(x)] y.reverse() try: y = int(''.join(y)) except ValueError: pass return x == y
include("common.py") def cyanamidationGen(): r = RuleGen("Cyanamidation") r.left.extend([ '# H2NCN', 'edge [ source 0 target 1 label "#" ]', '# The other', 'edge [ source 105 target 150 label "-" ]', ]) r.context.extend([ '# H2NCN', 'node [ id 0 label "N" ]', 'node [ id 1 label "C" ]', 'node [ id 2 label "N" ]', 'node [ id 3 label "H" ]', 'node [ id 4 label "H" ]', 'edge [ source 2 target 3 label "-" ]', 'edge [ source 2 target 4 label "-" ]', 'edge [ source 1 target 2 label "-" ]', '# The other', 'node [ id 150 label "H" ]', ]) r.right.extend([ 'edge [ source 0 target 1 label "=" ]', 'edge [ source 0 target 150 label "-" ]', 'edge [ source 1 target 105 label "-" ]', ]) rOld = r for atom in "SN": r = rOld.clone() r.name += ", %s" % atom r.context.extend([ 'node [ id 105 label "%s" ]' % atom, ]) if atom == "S": for end in "CH": r1 = r.clone() r1.name += end r1.context.extend([ '# C or H', 'node [ id 100 label "%s" ]' % end, 'edge [ source 100 target 105 label "-" ]', ]) yield r1.loadRule() continue assert atom == "N" for r in attach_2_H_C(r, 105, 100, True): yield r.loadRule() cyanamidation = [a for a in cyanamidationGen()]
include('common.py') def cyanamidation_gen(): r = rule_gen('Cyanamidation') r.left.extend(['# H2NCN', 'edge [ source 0 target 1 label "#" ]', '# The other', 'edge [ source 105 target 150 label "-" ]']) r.context.extend(['# H2NCN', 'node [ id 0 label "N" ]', 'node [ id 1 label "C" ]', 'node [ id 2 label "N" ]', 'node [ id 3 label "H" ]', 'node [ id 4 label "H" ]', 'edge [ source 2 target 3 label "-" ]', 'edge [ source 2 target 4 label "-" ]', 'edge [ source 1 target 2 label "-" ]', '# The other', 'node [ id 150 label "H" ]']) r.right.extend(['edge [ source 0 target 1 label "=" ]', 'edge [ source 0 target 150 label "-" ]', 'edge [ source 1 target 105 label "-" ]']) r_old = r for atom in 'SN': r = rOld.clone() r.name += ', %s' % atom r.context.extend(['node [ id 105 label "%s" ]' % atom]) if atom == 'S': for end in 'CH': r1 = r.clone() r1.name += end r1.context.extend(['# C or H', 'node [ id 100 label "%s" ]' % end, 'edge [ source 100 target 105 label "-" ]']) yield r1.loadRule() continue assert atom == 'N' for r in attach_2_h_c(r, 105, 100, True): yield r.loadRule() cyanamidation = [a for a in cyanamidation_gen()]
number = int(input()) divider = number // 2 numbers = '' while divider != 1: if 0 == number % divider: numbers += " " + str(divider) divider -= 1 if 0 == len(numbers): print('Prime Number') else: print(numbers[1:])
number = int(input()) divider = number // 2 numbers = '' while divider != 1: if 0 == number % divider: numbers += ' ' + str(divider) divider -= 1 if 0 == len(numbers): print('Prime Number') else: print(numbers[1:])
class Solution: def XXX(self, nums: List[int]) -> List[List[int]]: return reduce(lambda x, y: x + [i + [y] for i in x], nums, [[]])
class Solution: def xxx(self, nums: List[int]) -> List[List[int]]: return reduce(lambda x, y: x + [i + [y] for i in x], nums, [[]])
HEARTBEAT = "0" TESTREQUEST = "1" RESENDREQUEST = "2" REJECT = "3" SEQUENCERESET = "4" LOGOUT = "5" IOI = "6" ADVERTISEMENT = "7" EXECUTIONREPORT = "8" ORDERCANCELREJECT = "9" QUOTESTATUSREQUEST = "a" LOGON = "A" DERIVATIVESECURITYLIST = "AA" NEWORDERMULTILEG = "AB" MULTILEGORDERCANCELREPLACE = "AC" TRADECAPTUREREPORTREQUEST = "AD" TRADECAPTUREREPORT = "AE" ORDERMASSSTATUSREQUEST = "AF" QUOTEREQUESTREJECT = "AG" RFQREQUEST = "AH" QUOTESTATUSREPORT = "AI" QUOTERESPONSE = "AJ" CONFIRMATION = "AK" POSITIONMAINTENANCEREQUEST = "AL" POSITIONMAINTENANCEREPORT = "AM" REQUESTFORPOSITIONS = "AN" REQUESTFORPOSITIONSACK = "AO" POSITIONREPORT = "AP" TRADECAPTUREREPORTREQUESTACK = "AQ" TRADECAPTUREREPORTACK = "AR" ALLOCATIONREPORT = "AS" ALLOCATIONREPORTACK = "AT" CONFIRMATIONACK = "AU" SETTLEMENTINSTRUCTIONREQUEST = "AV" ASSIGNMENTREPORT = "AW" COLLATERALREQUEST = "AX" COLLATERALASSIGNMENT = "AY" COLLATERALRESPONSE = "AZ" NEWS = "B" MASSQUOTEACKNOWLEDGEMENT = "b" COLLATERALREPORT = "BA" COLLATERALINQUIRY = "BB" NETWORKCOUNTERPARTYSYSTEMSTATUSREQUEST = "BC" NETWORKCOUNTERPARTYSYSTEMSTATUSRESPONSE = "BD" USERREQUEST = "BE" USERRESPONSE = "BF" COLLATERALINQUIRYACK = "BG" CONFIRMATIONREQUEST = "BH" EMAIL = "C" SECURITYDEFINITIONREQUEST = "c" SECURITYDEFINITION = "d" NEWORDERSINGLE = "D" SECURITYSTATUSREQUEST = "e" NEWORDERLIST = "E" ORDERCANCELREQUEST = "F" SECURITYSTATUS = "f" ORDERCANCELREPLACEREQUEST = "G" TRADINGSESSIONSTATUSREQUEST = "g" ORDERSTATUSREQUEST = "H" TRADINGSESSIONSTATUS = "h" MASSQUOTE = "i" BUSINESSMESSAGEREJECT = "j" ALLOCATIONINSTRUCTION = "J" BIDREQUEST = "k" LISTCANCELREQUEST = "K" BIDRESPONSE = "l" LISTEXECUTE = "L" LISTSTRIKEPRICE = "m" LISTSTATUSREQUEST = "M" XMLNONFIX = "n" LISTSTATUS = "N" REGISTRATIONINSTRUCTIONS = "o" REGISTRATIONINSTRUCTIONSRESPONSE = "p" ALLOCATIONINSTRUCTIONACK = "P" ORDERMASSCANCELREQUEST = "q" DONTKNOWTRADEDK = "Q" QUOTEREQUEST = "R" ORDERMASSCANCELREPORT = "r" QUOTE = "S" NEWORDERCROSS = "s" SETTLEMENTINSTRUCTIONS = "T" CROSSORDERCANCELREPLACEREQUEST = "t" CROSSORDERCANCELREQUEST = "u" MARKETDATAREQUEST = "V" SECURITYTYPEREQUEST = "v" SECURITYTYPES = "w" MARKETDATASNAPSHOTFULLREFRESH = "W" SECURITYLISTREQUEST = "x" MARKETDATAINCREMENTALREFRESH = "X" MARKETDATAREQUESTREJECT = "Y" SECURITYLIST = "y" QUOTECANCEL = "Z" DERIVATIVESECURITYLISTREQUEST = "z" sessionMessageTypes = [HEARTBEAT, TESTREQUEST, RESENDREQUEST, REJECT, SEQUENCERESET, LOGOUT, LOGON, XMLNONFIX] tags = {} for x in dir(): tags[str(globals()[x])] = x def msgTypeToName(n): try: return tags[n] except KeyError: return str(n)
heartbeat = '0' testrequest = '1' resendrequest = '2' reject = '3' sequencereset = '4' logout = '5' ioi = '6' advertisement = '7' executionreport = '8' ordercancelreject = '9' quotestatusrequest = 'a' logon = 'A' derivativesecuritylist = 'AA' newordermultileg = 'AB' multilegordercancelreplace = 'AC' tradecapturereportrequest = 'AD' tradecapturereport = 'AE' ordermassstatusrequest = 'AF' quoterequestreject = 'AG' rfqrequest = 'AH' quotestatusreport = 'AI' quoteresponse = 'AJ' confirmation = 'AK' positionmaintenancerequest = 'AL' positionmaintenancereport = 'AM' requestforpositions = 'AN' requestforpositionsack = 'AO' positionreport = 'AP' tradecapturereportrequestack = 'AQ' tradecapturereportack = 'AR' allocationreport = 'AS' allocationreportack = 'AT' confirmationack = 'AU' settlementinstructionrequest = 'AV' assignmentreport = 'AW' collateralrequest = 'AX' collateralassignment = 'AY' collateralresponse = 'AZ' news = 'B' massquoteacknowledgement = 'b' collateralreport = 'BA' collateralinquiry = 'BB' networkcounterpartysystemstatusrequest = 'BC' networkcounterpartysystemstatusresponse = 'BD' userrequest = 'BE' userresponse = 'BF' collateralinquiryack = 'BG' confirmationrequest = 'BH' email = 'C' securitydefinitionrequest = 'c' securitydefinition = 'd' newordersingle = 'D' securitystatusrequest = 'e' neworderlist = 'E' ordercancelrequest = 'F' securitystatus = 'f' ordercancelreplacerequest = 'G' tradingsessionstatusrequest = 'g' orderstatusrequest = 'H' tradingsessionstatus = 'h' massquote = 'i' businessmessagereject = 'j' allocationinstruction = 'J' bidrequest = 'k' listcancelrequest = 'K' bidresponse = 'l' listexecute = 'L' liststrikeprice = 'm' liststatusrequest = 'M' xmlnonfix = 'n' liststatus = 'N' registrationinstructions = 'o' registrationinstructionsresponse = 'p' allocationinstructionack = 'P' ordermasscancelrequest = 'q' dontknowtradedk = 'Q' quoterequest = 'R' ordermasscancelreport = 'r' quote = 'S' newordercross = 's' settlementinstructions = 'T' crossordercancelreplacerequest = 't' crossordercancelrequest = 'u' marketdatarequest = 'V' securitytyperequest = 'v' securitytypes = 'w' marketdatasnapshotfullrefresh = 'W' securitylistrequest = 'x' marketdataincrementalrefresh = 'X' marketdatarequestreject = 'Y' securitylist = 'y' quotecancel = 'Z' derivativesecuritylistrequest = 'z' session_message_types = [HEARTBEAT, TESTREQUEST, RESENDREQUEST, REJECT, SEQUENCERESET, LOGOUT, LOGON, XMLNONFIX] tags = {} for x in dir(): tags[str(globals()[x])] = x def msg_type_to_name(n): try: return tags[n] except KeyError: return str(n)
# Given two integers, swap them with no additional variable # 1. With temporal variable t def swap(a,b): t = b a = b b = t return a, b # 2. With no variable def swap(a,b): a = b - a b = b - a # b = b -(b-a) = a a = b + a # b = a + b - a = b...Swapped return a, b # With bitwise operator XOR def swap(a,b): a = a ^ b b = a ^ b # b = a ^ b ^ b = a ^ 0 = a a = b ^ a # a = a ^ a^ b = a^a^b = b^0 = b return a, b
def swap(a, b): t = b a = b b = t return (a, b) def swap(a, b): a = b - a b = b - a a = b + a return (a, b) def swap(a, b): a = a ^ b b = a ^ b a = b ^ a return (a, b)
# Time: O(n) # Space: O(1) # dp class Solution(object): def minimumTime(self, s): """ :type s: str :rtype: int """ left = 0 result = left+(len(s)-0) for i in xrange(1, len(s)+1): left = min(left+2*(s[i-1] == '1'), i) result = min(result, left+(len(s)-i)) return result # Time: O(n) # Space: O(n) # dp class Solution2(object): def minimumTime(self, s): """ :type s: str :rtype: int """ result, right = len(s), [0]*(len(s)+1) for i in reversed(xrange(len(s))): right[i] = min(right[i+1]+2*(s[i] == '1'), len(s)-i) left = 0 result = left+right[0] for i in xrange(1, len(s)+1): left = min(left+2*(s[i-1] == '1'), i) result = min(result, left+right[i]) return result
class Solution(object): def minimum_time(self, s): """ :type s: str :rtype: int """ left = 0 result = left + (len(s) - 0) for i in xrange(1, len(s) + 1): left = min(left + 2 * (s[i - 1] == '1'), i) result = min(result, left + (len(s) - i)) return result class Solution2(object): def minimum_time(self, s): """ :type s: str :rtype: int """ (result, right) = (len(s), [0] * (len(s) + 1)) for i in reversed(xrange(len(s))): right[i] = min(right[i + 1] + 2 * (s[i] == '1'), len(s) - i) left = 0 result = left + right[0] for i in xrange(1, len(s) + 1): left = min(left + 2 * (s[i - 1] == '1'), i) result = min(result, left + right[i]) return result
class Solution: def subarrayBitwiseORs(self, A): """ :type A: List[int] :rtype: int """ res, cur = set(), set() for x in A: cur = {x | y for y in cur} | {x} res |= cur return len(res)
class Solution: def subarray_bitwise_o_rs(self, A): """ :type A: List[int] :rtype: int """ (res, cur) = (set(), set()) for x in A: cur = {x | y for y in cur} | {x} res |= cur return len(res)
def merge_sort(sorting_list): """ Sorts a list in ascending order Returns a new sorted list Divide: Find the midpoint of the list and divide into sublist Conquer: Recursively sort the sublist created in previous step Combine: Merge the sorted sublist created in previous step Takes O(n log n) time """ if len(sorting_list) <= 1: return sorting_list left_half, right_half = split(sorting_list) left = merge_sort(left_half) right = merge_sort(right_half) return merge(left, right) def split(sorting_list): """ Divide the unsorted list at midpoint into sublist Returns two sublist - left and right Takes overall O(log n) time """ mid = len(sorting_list) // 2 left = sorting_list[: mid] right = sorting_list[mid:] return left, right def merge(left, right): """ Merges two lists (arrays), sorting them in the process Returns a new merged list Takes overall O(n) time """ l = [] i = 0 j = 0 while i < len(left) and j < len(right): if left[i] < right[j]: l.append(left[i]) i += 1 else: l.append(right[j]) j += 1 while i < len(left): l.append(left[i]) i += 1 while j < len(right): l.append(right[j]) j += 1 return l def verify(sorted_list): n = len(sorted_list) if n == 0 or n == 1: return True return sorted_list[0] < sorted_list[1] and verify(sorted_list[1:]) a_list = [23, 61, 1, 2, 63, 7, 3, 9, 54, 66] result = merge_sort(a_list) print(verify(result))
def merge_sort(sorting_list): """ Sorts a list in ascending order Returns a new sorted list Divide: Find the midpoint of the list and divide into sublist Conquer: Recursively sort the sublist created in previous step Combine: Merge the sorted sublist created in previous step Takes O(n log n) time """ if len(sorting_list) <= 1: return sorting_list (left_half, right_half) = split(sorting_list) left = merge_sort(left_half) right = merge_sort(right_half) return merge(left, right) def split(sorting_list): """ Divide the unsorted list at midpoint into sublist Returns two sublist - left and right Takes overall O(log n) time """ mid = len(sorting_list) // 2 left = sorting_list[:mid] right = sorting_list[mid:] return (left, right) def merge(left, right): """ Merges two lists (arrays), sorting them in the process Returns a new merged list Takes overall O(n) time """ l = [] i = 0 j = 0 while i < len(left) and j < len(right): if left[i] < right[j]: l.append(left[i]) i += 1 else: l.append(right[j]) j += 1 while i < len(left): l.append(left[i]) i += 1 while j < len(right): l.append(right[j]) j += 1 return l def verify(sorted_list): n = len(sorted_list) if n == 0 or n == 1: return True return sorted_list[0] < sorted_list[1] and verify(sorted_list[1:]) a_list = [23, 61, 1, 2, 63, 7, 3, 9, 54, 66] result = merge_sort(a_list) print(verify(result))
# -*- coding: utf-8 -*- """ Created on Wed Jun 8 11:21:27 2016 @author: ericgrimson """ mysum = 0 for i in range(5, 11, 2): mysum += i if mysum == 5: break print(mysum)
""" Created on Wed Jun 8 11:21:27 2016 @author: ericgrimson """ mysum = 0 for i in range(5, 11, 2): mysum += i if mysum == 5: break print(mysum)
# coding: utf-8 def test_default_value(printer): assert printer._inverse is False def test_changing_no_value(printer): printer.inverse() assert printer._inverse is False def test_changing_state_on(printer): printer.inverse(True) assert printer._inverse is True def test_changing_state_off(printer): printer.inverse(False) assert printer._inverse is False def test_reset_value(printer): printer.reset() assert printer._inverse is False
def test_default_value(printer): assert printer._inverse is False def test_changing_no_value(printer): printer.inverse() assert printer._inverse is False def test_changing_state_on(printer): printer.inverse(True) assert printer._inverse is True def test_changing_state_off(printer): printer.inverse(False) assert printer._inverse is False def test_reset_value(printer): printer.reset() assert printer._inverse is False
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class RenameObjectParamProto(object): """Implementation of the 'RenameObjectParamProto' model. Message to specify the prefix/suffix added to rename an object. At least one of prefix or suffix must be specified. Please note that both prefix and suffix can be specified. Attributes: prefix (string): Prefix to be added to a name. suffix (string): Suffix to be added to a name. """ # Create a mapping from Model property names to API property names _names = { "prefix":'prefix', "suffix":'suffix' } def __init__(self, prefix=None, suffix=None): """Constructor for the RenameObjectParamProto class""" # Initialize members of the class self.prefix = prefix self.suffix = suffix @classmethod def from_dictionary(cls, dictionary): """Creates an instance of this model from a dictionary Args: dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server's response. The keys MUST match property names in the API description. Returns: object: An instance of this structure class. """ if dictionary is None: return None # Extract variables from the dictionary prefix = dictionary.get('prefix') suffix = dictionary.get('suffix') # Return an object of this model return cls(prefix, suffix)
class Renameobjectparamproto(object): """Implementation of the 'RenameObjectParamProto' model. Message to specify the prefix/suffix added to rename an object. At least one of prefix or suffix must be specified. Please note that both prefix and suffix can be specified. Attributes: prefix (string): Prefix to be added to a name. suffix (string): Suffix to be added to a name. """ _names = {'prefix': 'prefix', 'suffix': 'suffix'} def __init__(self, prefix=None, suffix=None): """Constructor for the RenameObjectParamProto class""" self.prefix = prefix self.suffix = suffix @classmethod def from_dictionary(cls, dictionary): """Creates an instance of this model from a dictionary Args: dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server's response. The keys MUST match property names in the API description. Returns: object: An instance of this structure class. """ if dictionary is None: return None prefix = dictionary.get('prefix') suffix = dictionary.get('suffix') return cls(prefix, suffix)
# program to merge two linked list class Node: def __init__(self, data, next): self.data = data self.next = next def merge(L1,L2): L3 = Node(None, None) prev = L3 while L1 != None and L2 != None: if L1.data <= L2.data: prev.next = L2.data L1 = L1.next else: prev.data = L1.data L2 = L2.next prev = prev.next if L1.data == None: prev.next = L2 elif L2.data == None: prev.next = L1 return L3.next if __name__ == '__main__': n3 = Node(10, None) n2 = Node(n3, 7) n1 = Node(n2, 5) L1 = n1 n7 = Node(12, None) n6 = Node(n7, 9) n5 = Node(n6, 6) n4 = Node(n5, 2) L2 = n4 merged = merge(L1, L2) while merged != None: print(str(merged.data) + '->') merged = merged.next print('None')
class Node: def __init__(self, data, next): self.data = data self.next = next def merge(L1, L2): l3 = node(None, None) prev = L3 while L1 != None and L2 != None: if L1.data <= L2.data: prev.next = L2.data l1 = L1.next else: prev.data = L1.data l2 = L2.next prev = prev.next if L1.data == None: prev.next = L2 elif L2.data == None: prev.next = L1 return L3.next if __name__ == '__main__': n3 = node(10, None) n2 = node(n3, 7) n1 = node(n2, 5) l1 = n1 n7 = node(12, None) n6 = node(n7, 9) n5 = node(n6, 6) n4 = node(n5, 2) l2 = n4 merged = merge(L1, L2) while merged != None: print(str(merged.data) + '->') merged = merged.next print('None')
local_webserver = '/var/www/html' ssh = dict( host = '', username = '', password = '', remote_path = '' )
local_webserver = '/var/www/html' ssh = dict(host='', username='', password='', remote_path='')
class FibIterator(object): def __init__(self, n): self.n = n self.current = 0 self.num1 = 0 self.num2 = 1 def __next__(self): if self.current < self.n: item = self.num1 self.num1, self.num2 = self.num2, self.num1+self.num2 self.current += 1 return item else: raise StopIteration def __iter__(self): return self if __name__ == '__main__': fib = FibIterator(20) for num in fib: print(num, end=" ") print("\n", list(FibIterator(10)))
class Fibiterator(object): def __init__(self, n): self.n = n self.current = 0 self.num1 = 0 self.num2 = 1 def __next__(self): if self.current < self.n: item = self.num1 (self.num1, self.num2) = (self.num2, self.num1 + self.num2) self.current += 1 return item else: raise StopIteration def __iter__(self): return self if __name__ == '__main__': fib = fib_iterator(20) for num in fib: print(num, end=' ') print('\n', list(fib_iterator(10)))
cpgf._import(None, "builtin.debug"); cpgf._import(None, "builtin.core"); class SAppContext: device = None, counter = 0, listbox = None Context = SAppContext(); GUI_ID_QUIT_BUTTON = 101; GUI_ID_NEW_WINDOW_BUTTON = 102; GUI_ID_FILE_OPEN_BUTTON = 103; GUI_ID_TRANSPARENCY_SCROLL_BAR = 104; def makeMyEventReceiver(receiver) : def OnEvent(me, event) : if event.EventType == irr.EET_GUI_EVENT : id = event.GUIEvent.Caller.getID(); env = Context.device.getGUIEnvironment(); if event.GUIEvent.EventType == irr.EGET_SCROLL_BAR_CHANGED : if id == GUI_ID_TRANSPARENCY_SCROLL_BAR : pos = cpgf.cast(event.GUIEvent.Caller, irr.IGUIScrollBar).getPos(); skin = env.getSkin(); for i in range(irr.EGDC_COUNT) : col = skin.getColor(i); col.setAlpha(pos); skin.setColor(i, col); elif event.GUIEvent.EventType == irr.EGET_BUTTON_CLICKED : if id == GUI_ID_QUIT_BUTTON : Context.device.closeDevice(); return True; elif id == GUI_ID_NEW_WINDOW_BUTTON : Context.listbox.addItem("Window created"); Context.counter = Context.counter + 30; if Context.counter > 200 : Context.counter = 0; window = env.addWindow(irr.rect_s32(100 + Context.counter, 100 + Context.counter, 300 + Context.counter, 200 + Context.counter), False, "Test window"); env.addStaticText("Please close me", irr.rect_s32(35,35,140,50), True, False, window); return True; elif id == GUI_ID_FILE_OPEN_BUTTON : Context.listbox.addItem("File open"); env.addFileOpenDialog("Please choose a file."); return True; return False; receiver.OnEvent = OnEvent; def start() : driverType = irr.driverChoiceConsole(); if driverType == irr.EDT_COUNT : return 1; device = irr.createDevice(driverType, irr.dimension2d_u32(640, 480)); if device == None : return 1; device.setWindowCaption("cpgf Irrlicht Python Binding - User Interface Demo"); device.setResizable(True); driver = device.getVideoDriver(); env = device.getGUIEnvironment(); skin = env.getSkin(); font = env.getFont("../../media/fonthaettenschweiler.bmp"); if font : skin.setFont(font); skin.setFont(env.getBuiltInFont(), irr.EGDF_TOOLTIP); env.addButton(irr.rect_s32(10,240,110,240 + 32), None, GUI_ID_QUIT_BUTTON, "Quit", "Exits Program"); env.addButton(irr.rect_s32(10,280,110,280 + 32), None, GUI_ID_NEW_WINDOW_BUTTON, "New Window", "Launches a Window"); env.addButton(irr.rect_s32(10,320,110,320 + 32), None, GUI_ID_FILE_OPEN_BUTTON, "File Open", "Opens a file"); env.addStaticText("Transparent Control:", irr.rect_s32(150,20,350,40), True); scrollbar = env.addScrollBar(True, irr.rect_s32(150, 45, 350, 60), None, GUI_ID_TRANSPARENCY_SCROLL_BAR); scrollbar.setMax(255); scrollbar.setPos(env.getSkin().getColor(irr.EGDC_WINDOW).getAlpha()); env.addStaticText("Logging ListBox:", irr.rect_s32(50,110,250,130), True); listbox = env.addListBox(irr.rect_s32(50, 140, 250, 210)); env.addEditBox("Editable Text", irr.rect_s32(350, 80, 550, 100)); Context.device = device; Context.counter = 0; Context.listbox = listbox; MyEventReceiver = cpgf.cloneClass(irr.IEventReceiverWrapper); makeMyEventReceiver(MyEventReceiver); receiver = MyEventReceiver(); device.setEventReceiver(receiver); env.addImage(driver.getTexture("../../media/irrlichtlogo2.png"), irr.position2d_s32(10,10)); while device.run() and driver : if device.isWindowActive() : driver.beginScene(True, True, irr.SColor(0,200,200,200)); env.drawAll(); driver.endScene(); device.drop(); return 0; start();
cpgf._import(None, 'builtin.debug') cpgf._import(None, 'builtin.core') class Sappcontext: device = (None,) counter = (0,) listbox = None context = s_app_context() gui_id_quit_button = 101 gui_id_new_window_button = 102 gui_id_file_open_button = 103 gui_id_transparency_scroll_bar = 104 def make_my_event_receiver(receiver): def on_event(me, event): if event.EventType == irr.EET_GUI_EVENT: id = event.GUIEvent.Caller.getID() env = Context.device.getGUIEnvironment() if event.GUIEvent.EventType == irr.EGET_SCROLL_BAR_CHANGED: if id == GUI_ID_TRANSPARENCY_SCROLL_BAR: pos = cpgf.cast(event.GUIEvent.Caller, irr.IGUIScrollBar).getPos() skin = env.getSkin() for i in range(irr.EGDC_COUNT): col = skin.getColor(i) col.setAlpha(pos) skin.setColor(i, col) elif event.GUIEvent.EventType == irr.EGET_BUTTON_CLICKED: if id == GUI_ID_QUIT_BUTTON: Context.device.closeDevice() return True elif id == GUI_ID_NEW_WINDOW_BUTTON: Context.listbox.addItem('Window created') Context.counter = Context.counter + 30 if Context.counter > 200: Context.counter = 0 window = env.addWindow(irr.rect_s32(100 + Context.counter, 100 + Context.counter, 300 + Context.counter, 200 + Context.counter), False, 'Test window') env.addStaticText('Please close me', irr.rect_s32(35, 35, 140, 50), True, False, window) return True elif id == GUI_ID_FILE_OPEN_BUTTON: Context.listbox.addItem('File open') env.addFileOpenDialog('Please choose a file.') return True return False receiver.OnEvent = OnEvent def start(): driver_type = irr.driverChoiceConsole() if driverType == irr.EDT_COUNT: return 1 device = irr.createDevice(driverType, irr.dimension2d_u32(640, 480)) if device == None: return 1 device.setWindowCaption('cpgf Irrlicht Python Binding - User Interface Demo') device.setResizable(True) driver = device.getVideoDriver() env = device.getGUIEnvironment() skin = env.getSkin() font = env.getFont('../../media/fonthaettenschweiler.bmp') if font: skin.setFont(font) skin.setFont(env.getBuiltInFont(), irr.EGDF_TOOLTIP) env.addButton(irr.rect_s32(10, 240, 110, 240 + 32), None, GUI_ID_QUIT_BUTTON, 'Quit', 'Exits Program') env.addButton(irr.rect_s32(10, 280, 110, 280 + 32), None, GUI_ID_NEW_WINDOW_BUTTON, 'New Window', 'Launches a Window') env.addButton(irr.rect_s32(10, 320, 110, 320 + 32), None, GUI_ID_FILE_OPEN_BUTTON, 'File Open', 'Opens a file') env.addStaticText('Transparent Control:', irr.rect_s32(150, 20, 350, 40), True) scrollbar = env.addScrollBar(True, irr.rect_s32(150, 45, 350, 60), None, GUI_ID_TRANSPARENCY_SCROLL_BAR) scrollbar.setMax(255) scrollbar.setPos(env.getSkin().getColor(irr.EGDC_WINDOW).getAlpha()) env.addStaticText('Logging ListBox:', irr.rect_s32(50, 110, 250, 130), True) listbox = env.addListBox(irr.rect_s32(50, 140, 250, 210)) env.addEditBox('Editable Text', irr.rect_s32(350, 80, 550, 100)) Context.device = device Context.counter = 0 Context.listbox = listbox my_event_receiver = cpgf.cloneClass(irr.IEventReceiverWrapper) make_my_event_receiver(MyEventReceiver) receiver = my_event_receiver() device.setEventReceiver(receiver) env.addImage(driver.getTexture('../../media/irrlichtlogo2.png'), irr.position2d_s32(10, 10)) while device.run() and driver: if device.isWindowActive(): driver.beginScene(True, True, irr.SColor(0, 200, 200, 200)) env.drawAll() driver.endScene() device.drop() return 0 start()
""" The api endpoint paths stored as constants """ PLACE_ORDER = 'PlaceOrder' MODIFY_ORDER = 'ModifyOrder' CANCEL_ORDER = 'CancelOrder' EXIT_SNO_ORDER = 'ExitSNOOrder' GET_ORDER_MARGIN = 'GetOrderMargin' GET_BASKET_MARGIN = 'GetBasketMargin' ORDER_BOOK = 'OrderBook' MULTILEG_ORDER_BOOK = 'MultiLegOrderBook' SINGLE_ORDER_HISTORY = 'SingleOrdHist' TRADE_BOOK = 'TradeBook' POSITION_BOOK = 'PositionBook' CONVERT_PRODUCT = 'ProductConversion'
""" The api endpoint paths stored as constants """ place_order = 'PlaceOrder' modify_order = 'ModifyOrder' cancel_order = 'CancelOrder' exit_sno_order = 'ExitSNOOrder' get_order_margin = 'GetOrderMargin' get_basket_margin = 'GetBasketMargin' order_book = 'OrderBook' multileg_order_book = 'MultiLegOrderBook' single_order_history = 'SingleOrdHist' trade_book = 'TradeBook' position_book = 'PositionBook' convert_product = 'ProductConversion'
class SoftplusParams: __slots__ = ["beta"] def __init__(self, beta=100): self.beta = beta class GeometricInitParams: __slots__ = ["bias"] def __init__(self, bias=0.6): self.bias = bias class IDRHyperParams: def __init__(self, softplus=None, geometric_init=None): self.softplus = softplus if softplus is None: self.softplus = SoftplusParams() self.geometric_init = geometric_init if geometric_init is None: self.geometric_init = GeometricInitParams()
class Softplusparams: __slots__ = ['beta'] def __init__(self, beta=100): self.beta = beta class Geometricinitparams: __slots__ = ['bias'] def __init__(self, bias=0.6): self.bias = bias class Idrhyperparams: def __init__(self, softplus=None, geometric_init=None): self.softplus = softplus if softplus is None: self.softplus = softplus_params() self.geometric_init = geometric_init if geometric_init is None: self.geometric_init = geometric_init_params()
# Coin Change 8 class Solution: def change(self, amount, coins): # Classic DP problem? dp = [0] * (amount + 1) dp[0] = 1 for coin in coins: for am in range(1, amount + 1): if am >= coin: dp[am] += dp[am - coin] return dp[amount] if __name__ == "__main__": sol = Solution() amount = 5 coins = [1, 2, 5] print(sol.change(amount, coins))
class Solution: def change(self, amount, coins): dp = [0] * (amount + 1) dp[0] = 1 for coin in coins: for am in range(1, amount + 1): if am >= coin: dp[am] += dp[am - coin] return dp[amount] if __name__ == '__main__': sol = solution() amount = 5 coins = [1, 2, 5] print(sol.change(amount, coins))
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def insertIntoMaxTree(self, root: TreeNode, val: int) -> TreeNode: if root is None or root.val < val: node = TreeNode(val) node.left = root return node else: root.right = self.insertIntoMaxTree(root.right, val) return root class Solution2: def insertIntoMaxTree(self, root: TreeNode, val: int) -> TreeNode: prev = None curr = root while curr and curr.val > val: prev = curr curr = curr.right node = TreeNode(val) node.left = curr if prev: prev.right = node return root if prev else node
class Treenode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def insert_into_max_tree(self, root: TreeNode, val: int) -> TreeNode: if root is None or root.val < val: node = tree_node(val) node.left = root return node else: root.right = self.insertIntoMaxTree(root.right, val) return root class Solution2: def insert_into_max_tree(self, root: TreeNode, val: int) -> TreeNode: prev = None curr = root while curr and curr.val > val: prev = curr curr = curr.right node = tree_node(val) node.left = curr if prev: prev.right = node return root if prev else node
#------------------------------------------------------------- # Name: Michael Dinh # Date: 10/10/2018 # Reference: Pg. 169, Problem #6 # Title: Book Club Points # Inputs: User inputs number of books bought from a store # Processes: Determines point value based on number of books bought # Outputs: Number of points user earns in correlation to number of books input #------------------------------------------------------------- #Start defining modules #getBooks() prompts the user for the number of books bought def getBooks(): books = int(input("Welcome to the Serendipity Booksellers Book Club Awards Points Calculator! Please enter the number of books you've purchased today: ")) return books #defPoints() determines what points tier a user qualifies for based on book value def detPoints(books): if books < 1: print("You've earned 0 points; buy at least one book to qualify!") elif books == 1: print("You've earned 5 points!") elif books == 2: print("You've earned 15 points!") elif books == 3: print("You've earned 30 points!") elif books > 3: print("Super reader! You've earned 60 points!") else: print("Error!") #Define main() def main(): #Intialize local variable books = 0.0 #Begin calling modules books = getBooks() detPoints(books) #Call main main()
def get_books(): books = int(input("Welcome to the Serendipity Booksellers Book Club Awards Points Calculator! Please enter the number of books you've purchased today: ")) return books def det_points(books): if books < 1: print("You've earned 0 points; buy at least one book to qualify!") elif books == 1: print("You've earned 5 points!") elif books == 2: print("You've earned 15 points!") elif books == 3: print("You've earned 30 points!") elif books > 3: print("Super reader! You've earned 60 points!") else: print('Error!') def main(): books = 0.0 books = get_books() det_points(books) main()
def arraypermute(collection, key): return [ str(i) + str(j) for i in collection for j in key ] class FilterModule(object): def filters(self): return { 'arraypermute': arraypermute }
def arraypermute(collection, key): return [str(i) + str(j) for i in collection for j in key] class Filtermodule(object): def filters(self): return {'arraypermute': arraypermute}
# # PySNMP MIB module SNIA-SML-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SNIA-SML-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:00:04 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") NotificationType, MibIdentifier, ObjectIdentity, Bits, iso, TimeTicks, enterprises, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Counter32, Gauge32, ModuleIdentity, Counter64, Unsigned32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "MibIdentifier", "ObjectIdentity", "Bits", "iso", "TimeTicks", "enterprises", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Counter32", "Gauge32", "ModuleIdentity", "Counter64", "Unsigned32", "IpAddress") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") class UShortReal(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 65535) class CimDateTime(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(24, 24) fixedLength = 24 class UINT64(OctetString): subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class UINT32(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 2147483647) class UINT16(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 65535) snia = MibIdentifier((1, 3, 6, 1, 4, 1, 14851)) experimental = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 1)) common = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 2)) libraries = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3)) smlRoot = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1)) smlMibVersion = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: smlMibVersion.setStatus('mandatory') smlCimVersion = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: smlCimVersion.setStatus('mandatory') productGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3)) product_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: product_Name.setStatus('mandatory') product_IdentifyingNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-IdentifyingNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: product_IdentifyingNumber.setStatus('mandatory') product_Vendor = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-Vendor").setMaxAccess("readonly") if mibBuilder.loadTexts: product_Vendor.setStatus('mandatory') product_Version = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-Version").setMaxAccess("readonly") if mibBuilder.loadTexts: product_Version.setStatus('mandatory') product_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("product-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: product_ElementName.setStatus('mandatory') chassisGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4)) chassis_Manufacturer = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("chassis-Manufacturer").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_Manufacturer.setStatus('mandatory') chassis_Model = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("chassis-Model").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_Model.setStatus('mandatory') chassis_SerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("chassis-SerialNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_SerialNumber.setStatus('mandatory') chassis_LockPresent = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("chassis-LockPresent").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_LockPresent.setStatus('mandatory') chassis_SecurityBreach = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("noBreach", 3), ("breachAttempted", 4), ("breachSuccessful", 5)))).setLabel("chassis-SecurityBreach").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_SecurityBreach.setStatus('mandatory') chassis_IsLocked = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("chassis-IsLocked").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_IsLocked.setStatus('mandatory') chassis_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("chassis-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_Tag.setStatus('mandatory') chassis_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("chassis-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: chassis_ElementName.setStatus('mandatory') numberOfsubChassis = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfsubChassis.setStatus('mandatory') subChassisTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10), ) if mibBuilder.loadTexts: subChassisTable.setStatus('mandatory') subChassisEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1), ).setIndexNames((0, "SNIA-SML-MIB", "subChassisIndex")) if mibBuilder.loadTexts: subChassisEntry.setStatus('mandatory') subChassisIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: subChassisIndex.setStatus('mandatory') subChassis_Manufacturer = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("subChassis-Manufacturer").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_Manufacturer.setStatus('mandatory') subChassis_Model = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("subChassis-Model").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_Model.setStatus('mandatory') subChassis_SerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("subChassis-SerialNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_SerialNumber.setStatus('mandatory') subChassis_LockPresent = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("subChassis-LockPresent").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_LockPresent.setStatus('mandatory') subChassis_SecurityBreach = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("other", 2), ("noBreach", 3), ("breachAttempted", 4), ("breachSuccessful", 5)))).setLabel("subChassis-SecurityBreach").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_SecurityBreach.setStatus('mandatory') subChassis_IsLocked = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("subChassis-IsLocked").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_IsLocked.setStatus('mandatory') subChassis_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("subChassis-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_Tag.setStatus('mandatory') subChassis_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("subChassis-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_ElementName.setStatus('mandatory') subChassis_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("subChassis-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_OperationalStatus.setStatus('mandatory') subChassis_PackageType = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 17, 18, 19, 32769))).clone(namedValues=NamedValues(("unknown", 0), ("mainSystemChassis", 17), ("expansionChassis", 18), ("subChassis", 19), ("serviceBay", 32769)))).setLabel("subChassis-PackageType").setMaxAccess("readonly") if mibBuilder.loadTexts: subChassis_PackageType.setStatus('mandatory') storageLibraryGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5)) storageLibrary_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageLibrary-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_Name.setStatus('deprecated') storageLibrary_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageLibrary-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_Description.setStatus('deprecated') storageLibrary_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("storageLibrary-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_Caption.setStatus('deprecated') storageLibrary_Status = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setLabel("storageLibrary-Status").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_Status.setStatus('deprecated') storageLibrary_InstallDate = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 5), CimDateTime()).setLabel("storageLibrary-InstallDate").setMaxAccess("readonly") if mibBuilder.loadTexts: storageLibrary_InstallDate.setStatus('deprecated') mediaAccessDeviceGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6)) numberOfMediaAccessDevices = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfMediaAccessDevices.setStatus('mandatory') mediaAccessDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2), ) if mibBuilder.loadTexts: mediaAccessDeviceTable.setStatus('mandatory') mediaAccessDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "mediaAccessDeviceIndex")) if mibBuilder.loadTexts: mediaAccessDeviceEntry.setStatus('mandatory') mediaAccessDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDeviceIndex.setStatus('mandatory') mediaAccessDeviceObjectType = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 0), ("wormDrive", 1), ("magnetoOpticalDrive", 2), ("tapeDrive", 3), ("dvdDrive", 4), ("cdromDrive", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDeviceObjectType.setStatus('mandatory') mediaAccessDevice_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("mediaAccessDevice-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Name.setStatus('deprecated') mediaAccessDevice_Status = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setLabel("mediaAccessDevice-Status").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Status.setStatus('deprecated') mediaAccessDevice_Availability = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("runningFullPower", 3), ("warning", 4), ("inTest", 5), ("notApplicable", 6), ("powerOff", 7), ("offLine", 8), ("offDuty", 9), ("degraded", 10), ("notInstalled", 11), ("installError", 12), ("powerSaveUnknown", 13), ("powerSaveLowPowerMode", 14), ("powerSaveStandby", 15), ("powerCycle", 16), ("powerSaveWarning", 17), ("paused", 18), ("notReady", 19), ("notConfigured", 20), ("quiesced", 21)))).setLabel("mediaAccessDevice-Availability").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Availability.setStatus('mandatory') mediaAccessDevice_NeedsCleaning = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("mediaAccessDevice-NeedsCleaning").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_NeedsCleaning.setStatus('mandatory') mediaAccessDevice_MountCount = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 7), UINT64()).setLabel("mediaAccessDevice-MountCount").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_MountCount.setStatus('mandatory') mediaAccessDevice_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("mediaAccessDevice-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_DeviceID.setStatus('mandatory') mediaAccessDevice_PowerOnHours = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 9), UINT64()).setLabel("mediaAccessDevice-PowerOnHours").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_PowerOnHours.setStatus('mandatory') mediaAccessDevice_TotalPowerOnHours = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 10), UINT64()).setLabel("mediaAccessDevice-TotalPowerOnHours").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_TotalPowerOnHours.setStatus('mandatory') mediaAccessDevice_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("mediaAccessDevice-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_OperationalStatus.setStatus('mandatory') mediaAccessDevice_Realizes_StorageLocationIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 12), UINT32()).setLabel("mediaAccessDevice-Realizes-StorageLocationIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Realizes_StorageLocationIndex.setStatus('mandatory') mediaAccessDevice_Realizes_softwareElementIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 13), UINT32()).setLabel("mediaAccessDevice-Realizes-softwareElementIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: mediaAccessDevice_Realizes_softwareElementIndex.setStatus('mandatory') physicalPackageGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8)) numberOfPhysicalPackages = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfPhysicalPackages.setStatus('mandatory') physicalPackageTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2), ) if mibBuilder.loadTexts: physicalPackageTable.setStatus('mandatory') physicalPackageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "physicalPackageIndex")) if mibBuilder.loadTexts: physicalPackageEntry.setStatus('mandatory') physicalPackageIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackageIndex.setStatus('mandatory') physicalPackage_Manufacturer = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("physicalPackage-Manufacturer").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_Manufacturer.setStatus('mandatory') physicalPackage_Model = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("physicalPackage-Model").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_Model.setStatus('mandatory') physicalPackage_SerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("physicalPackage-SerialNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_SerialNumber.setStatus('mandatory') physicalPackage_Realizes_MediaAccessDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 5), Integer32()).setLabel("physicalPackage-Realizes-MediaAccessDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_Realizes_MediaAccessDeviceIndex.setStatus('mandatory') physicalPackage_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("physicalPackage-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: physicalPackage_Tag.setStatus('mandatory') softwareElementGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9)) numberOfSoftwareElements = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfSoftwareElements.setStatus('mandatory') softwareElementTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2), ) if mibBuilder.loadTexts: softwareElementTable.setStatus('mandatory') softwareElementEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "softwareElementIndex")) if mibBuilder.loadTexts: softwareElementEntry.setStatus('mandatory') softwareElementIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElementIndex.setStatus('mandatory') softwareElement_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("softwareElement-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_Name.setStatus('deprecated') softwareElement_Version = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("softwareElement-Version").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_Version.setStatus('mandatory') softwareElement_SoftwareElementID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("softwareElement-SoftwareElementID").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_SoftwareElementID.setStatus('mandatory') softwareElement_Manufacturer = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-Manufacturer").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_Manufacturer.setStatus('mandatory') softwareElement_BuildNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-BuildNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_BuildNumber.setStatus('mandatory') softwareElement_SerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-SerialNumber").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_SerialNumber.setStatus('mandatory') softwareElement_CodeSet = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-CodeSet").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_CodeSet.setStatus('deprecated') softwareElement_IdentificationCode = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("softwareElement-IdentificationCode").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_IdentificationCode.setStatus('deprecated') softwareElement_LanguageEdition = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setLabel("softwareElement-LanguageEdition").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_LanguageEdition.setStatus('deprecated') softwareElement_InstanceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("softwareElement-InstanceID").setMaxAccess("readonly") if mibBuilder.loadTexts: softwareElement_InstanceID.setStatus('mandatory') computerSystemGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10)) computerSystem_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_ElementName.setStatus('mandatory') computerSystem_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("computerSystem-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_OperationalStatus.setStatus('mandatory') computerSystem_Name = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-Name").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Name.setStatus('mandatory') computerSystem_NameFormat = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-NameFormat").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_NameFormat.setStatus('mandatory') computerSystem_Dedicated = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20))).clone(namedValues=NamedValues(("notDedicated", 0), ("unknown", 1), ("other", 2), ("storage", 3), ("router", 4), ("switch", 5), ("layer3switch", 6), ("centralOfficeSwitch", 7), ("hub", 8), ("accessServer", 9), ("firewall", 10), ("print", 11), ("io", 12), ("webCaching", 13), ("management", 14), ("blockServer", 15), ("fileServer", 16), ("mobileUserDevice", 17), ("repeater", 18), ("bridgeExtender", 19), ("gateway", 20)))).setLabel("computerSystem-Dedicated").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Dedicated.setStatus('mandatory') computerSystem_PrimaryOwnerContact = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-PrimaryOwnerContact").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_PrimaryOwnerContact.setStatus('mandatory') computerSystem_PrimaryOwnerName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-PrimaryOwnerName").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_PrimaryOwnerName.setStatus('mandatory') computerSystem_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("computerSystem-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Description.setStatus('mandatory') computerSystem_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("computerSystem-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Caption.setStatus('mandatory') computerSystem_Realizes_softwareElementIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 10), UINT32()).setLabel("computerSystem-Realizes-softwareElementIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: computerSystem_Realizes_softwareElementIndex.setStatus('mandatory') changerDeviceGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11)) numberOfChangerDevices = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfChangerDevices.setStatus('mandatory') changerDeviceTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2), ) if mibBuilder.loadTexts: changerDeviceTable.setStatus('mandatory') changerDeviceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "changerDeviceIndex")) if mibBuilder.loadTexts: changerDeviceEntry.setStatus('mandatory') changerDeviceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: changerDeviceIndex.setStatus('mandatory') changerDevice_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("changerDevice-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_DeviceID.setStatus('mandatory') changerDevice_MediaFlipSupported = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setLabel("changerDevice-MediaFlipSupported").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_MediaFlipSupported.setStatus('mandatory') changerDevice_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("changerDevice-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_ElementName.setStatus('mandatory') changerDevice_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("changerDevice-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_Caption.setStatus('mandatory') changerDevice_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("changerDevice-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_Description.setStatus('mandatory') changerDevice_Availability = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("runningFullPower", 3), ("warning", 4), ("inTest", 5), ("notApplicable", 6), ("powerOff", 7), ("offLine", 8), ("offDuty", 9), ("degraded", 10), ("notInstalled", 11), ("installError", 12), ("powerSaveUnknown", 13), ("powerSaveLowPowerMode", 14), ("powerSaveStandby", 15), ("powerCycle", 16), ("powerSaveWarning", 17), ("paused", 18), ("notReady", 19), ("notConfigured", 20), ("quiesced", 21)))).setLabel("changerDevice-Availability").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_Availability.setStatus('mandatory') changerDevice_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("changerDevice-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_OperationalStatus.setStatus('mandatory') changerDevice_Realizes_StorageLocationIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 10), UINT32()).setLabel("changerDevice-Realizes-StorageLocationIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: changerDevice_Realizes_StorageLocationIndex.setStatus('mandatory') scsiProtocolControllerGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12)) numberOfSCSIProtocolControllers = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfSCSIProtocolControllers.setStatus('mandatory') scsiProtocolControllerTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2), ) if mibBuilder.loadTexts: scsiProtocolControllerTable.setStatus('mandatory') scsiProtocolControllerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "scsiProtocolControllerIndex")) if mibBuilder.loadTexts: scsiProtocolControllerEntry.setStatus('mandatory') scsiProtocolControllerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolControllerIndex.setStatus('mandatory') scsiProtocolController_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("scsiProtocolController-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_DeviceID.setStatus('mandatory') scsiProtocolController_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("scsiProtocolController-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_ElementName.setStatus('mandatory') scsiProtocolController_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("scsiProtocolController-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_OperationalStatus.setStatus('mandatory') scsiProtocolController_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("scsiProtocolController-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_Description.setStatus('mandatory') scsiProtocolController_Availability = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("runningFullPower", 3), ("warning", 4), ("inTest", 5), ("notApplicable", 6), ("powerOff", 7), ("offLine", 8), ("offDuty", 9), ("degraded", 10), ("notInstalled", 11), ("installError", 12), ("powerSaveUnknown", 13), ("powerSaveLowPowerMode", 14), ("powerSaveStandby", 15), ("powerCycle", 16), ("powerSaveWarning", 17), ("paused", 18), ("notReady", 19), ("notConfigured", 20), ("quiesced", 21)))).setLabel("scsiProtocolController-Availability").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_Availability.setStatus('mandatory') scsiProtocolController_Realizes_ChangerDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 7), UINT32()).setLabel("scsiProtocolController-Realizes-ChangerDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_Realizes_ChangerDeviceIndex.setStatus('mandatory') scsiProtocolController_Realizes_MediaAccessDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 8), UINT32()).setLabel("scsiProtocolController-Realizes-MediaAccessDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: scsiProtocolController_Realizes_MediaAccessDeviceIndex.setStatus('mandatory') storageMediaLocationGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13)) numberOfStorageMediaLocations = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfStorageMediaLocations.setStatus('mandatory') numberOfPhysicalMedias = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOfPhysicalMedias.setStatus('mandatory') storageMediaLocationTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3), ) if mibBuilder.loadTexts: storageMediaLocationTable.setStatus('mandatory') storageMediaLocationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1), ).setIndexNames((0, "SNIA-SML-MIB", "storageMediaLocationIndex")) if mibBuilder.loadTexts: storageMediaLocationEntry.setStatus('mandatory') storageMediaLocationIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocationIndex.setStatus('mandatory') storageMediaLocation_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_Tag.setStatus('mandatory') storageMediaLocation_LocationType = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("slot", 2), ("magazine", 3), ("mediaAccessDevice", 4), ("interLibraryPort", 5), ("limitedAccessPort", 6), ("door", 7), ("shelf", 8), ("vault", 9)))).setLabel("storageMediaLocation-LocationType").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_LocationType.setStatus('mandatory') storageMediaLocation_LocationCoordinates = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-LocationCoordinates").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_LocationCoordinates.setStatus('mandatory') storageMediaLocation_MediaTypesSupported = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("tape", 2), ("qic", 3), ("ait", 4), ("dtf", 5), ("dat", 6), ("eightmmTape", 7), ("nineteenmmTape", 8), ("dlt", 9), ("halfInchMO", 10), ("catridgeDisk", 11), ("jazDisk", 12), ("zipDisk", 13), ("syQuestDisk", 14), ("winchesterDisk", 15), ("cdRom", 16), ("cdRomXA", 17), ("cdI", 18), ("cdRecordable", 19), ("wORM", 20), ("magneto-Optical", 21), ("dvd", 22), ("dvdRWPlus", 23), ("dvdRAM", 24), ("dvdROM", 25), ("dvdVideo", 26), ("divx", 27), ("floppyDiskette", 28), ("hardDisk", 29), ("memoryCard", 30), ("hardCopy", 31), ("clikDisk", 32), ("cdRW", 33), ("cdDA", 34), ("cdPlus", 35), ("dvdRecordable", 36), ("dvdRW", 37), ("dvdAudio", 38), ("dvd5", 39), ("dvd9", 40), ("dvd10", 41), ("dvd18", 42), ("moRewriteable", 43), ("moWriteOnce", 44), ("moLIMDOW", 45), ("phaseChangeWO", 46), ("phaseChangeRewriteable", 47), ("phaseChangeDualRewriteable", 48), ("ablativeWriteOnce", 49), ("nearField", 50), ("miniQic", 51), ("travan", 52), ("eightmmMetal", 53), ("eightmmAdvanced", 54), ("nctp", 55), ("ltoUltrium", 56), ("ltoAccelis", 57), ("tape9Track", 58), ("tape18Track", 59), ("tape36Track", 60), ("magstar3590", 61), ("magstarMP", 62), ("d2Tape", 63), ("dstSmall", 64), ("dstMedium", 65), ("dstLarge", 66)))).setLabel("storageMediaLocation-MediaTypesSupported").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_MediaTypesSupported.setStatus('mandatory') storageMediaLocation_MediaCapacity = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 6), UINT32()).setLabel("storageMediaLocation-MediaCapacity").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_MediaCapacity.setStatus('mandatory') storageMediaLocation_Association_ChangerDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 7), UINT32()).setLabel("storageMediaLocation-Association-ChangerDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_Association_ChangerDeviceIndex.setStatus('mandatory') storageMediaLocation_PhysicalMediaPresent = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMediaPresent").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMediaPresent.setStatus('mandatory') storageMediaLocation_PhysicalMedia_Removable = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-Removable").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Removable.setStatus('mandatory') storageMediaLocation_PhysicalMedia_Replaceable = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-Replaceable").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Replaceable.setStatus('mandatory') storageMediaLocation_PhysicalMedia_HotSwappable = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-HotSwappable").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_HotSwappable.setStatus('mandatory') storageMediaLocation_PhysicalMedia_Capacity = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 14), UINT64()).setLabel("storageMediaLocation-PhysicalMedia-Capacity").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Capacity.setStatus('mandatory') storageMediaLocation_PhysicalMedia_MediaType = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("tape", 2), ("qic", 3), ("ait", 4), ("dtf", 5), ("dat", 6), ("eightmmTape", 7), ("nineteenmmTape", 8), ("dlt", 9), ("halfInchMO", 10), ("catridgeDisk", 11), ("jazDisk", 12), ("zipDisk", 13), ("syQuestDisk", 14), ("winchesterDisk", 15), ("cdRom", 16), ("cdRomXA", 17), ("cdI", 18), ("cdRecordable", 19), ("wORM", 20), ("magneto-Optical", 21), ("dvd", 22), ("dvdRWPlus", 23), ("dvdRAM", 24), ("dvdROM", 25), ("dvdVideo", 26), ("divx", 27), ("floppyDiskette", 28), ("hardDisk", 29), ("memoryCard", 30), ("hardCopy", 31), ("clikDisk", 32), ("cdRW", 33), ("cdDA", 34), ("cdPlus", 35), ("dvdRecordable", 36), ("dvdRW", 37), ("dvdAudio", 38), ("dvd5", 39), ("dvd9", 40), ("dvd10", 41), ("dvd18", 42), ("moRewriteable", 43), ("moWriteOnce", 44), ("moLIMDOW", 45), ("phaseChangeWO", 46), ("phaseChangeRewriteable", 47), ("phaseChangeDualRewriteable", 48), ("ablativeWriteOnce", 49), ("nearField", 50), ("miniQic", 51), ("travan", 52), ("eightmmMetal", 53), ("eightmmAdvanced", 54), ("nctp", 55), ("ltoUltrium", 56), ("ltoAccelis", 57), ("tape9Track", 58), ("tape18Track", 59), ("tape36Track", 60), ("magstar3590", 61), ("magstarMP", 62), ("d2Tape", 63), ("dstSmall", 64), ("dstMedium", 65), ("dstLarge", 66)))).setLabel("storageMediaLocation-PhysicalMedia-MediaType").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_MediaType.setStatus('mandatory') storageMediaLocation_PhysicalMedia_MediaDescription = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-PhysicalMedia-MediaDescription").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_MediaDescription.setStatus('mandatory') storageMediaLocation_PhysicalMedia_CleanerMedia = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-CleanerMedia").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_CleanerMedia.setStatus('mandatory') storageMediaLocation_PhysicalMedia_DualSided = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unknown", 0), ("true", 1), ("false", 2)))).setLabel("storageMediaLocation-PhysicalMedia-DualSided").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_DualSided.setStatus('mandatory') storageMediaLocation_PhysicalMedia_PhysicalLabel = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 19), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-PhysicalMedia-PhysicalLabel").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_PhysicalLabel.setStatus('mandatory') storageMediaLocation_PhysicalMedia_Tag = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("storageMediaLocation-PhysicalMedia-Tag").setMaxAccess("readonly") if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Tag.setStatus('mandatory') limitedAccessPortGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14)) numberOflimitedAccessPorts = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOflimitedAccessPorts.setStatus('mandatory') limitedAccessPortTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2), ) if mibBuilder.loadTexts: limitedAccessPortTable.setStatus('mandatory') limitedAccessPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "limitedAccessPortIndex")) if mibBuilder.loadTexts: limitedAccessPortEntry.setStatus('mandatory') limitedAccessPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPortIndex.setStatus('mandatory') limitedAccessPort_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("limitedAccessPort-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_DeviceID.setStatus('mandatory') limitedAccessPort_Extended = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setLabel("limitedAccessPort-Extended").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_Extended.setStatus('mandatory') limitedAccessPort_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("limitedAccessPort-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_ElementName.setStatus('mandatory') limitedAccessPort_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("limitedAccessPort-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_Caption.setStatus('mandatory') limitedAccessPort_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("limitedAccessPort-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_Description.setStatus('mandatory') limitedAccessPort_Realizes_StorageLocationIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 7), UINT32()).setLabel("limitedAccessPort-Realizes-StorageLocationIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: limitedAccessPort_Realizes_StorageLocationIndex.setStatus('mandatory') fCPortGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15)) numberOffCPorts = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: numberOffCPorts.setStatus('mandatory') fCPortTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2), ) if mibBuilder.loadTexts: fCPortTable.setStatus('mandatory') fCPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1), ).setIndexNames((0, "SNIA-SML-MIB", "fCPortIndex")) if mibBuilder.loadTexts: fCPortEntry.setStatus('mandatory') fCPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 1), UINT32()).setMaxAccess("readonly") if mibBuilder.loadTexts: fCPortIndex.setStatus('mandatory') fCPort_DeviceID = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("fCPort-DeviceID").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_DeviceID.setStatus('mandatory') fCPort_ElementName = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("fCPort-ElementName").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_ElementName.setStatus('mandatory') fCPort_Caption = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("fCPort-Caption").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_Caption.setStatus('mandatory') fCPort_Description = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setLabel("fCPort-Description").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_Description.setStatus('mandatory') fCPortController_OperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setLabel("fCPortController-OperationalStatus").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPortController_OperationalStatus.setStatus('mandatory') fCPort_PermanentAddress = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setLabel("fCPort-PermanentAddress").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_PermanentAddress.setStatus('mandatory') fCPort_Realizes_scsiProtocolControllerIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 8), UINT32()).setLabel("fCPort-Realizes-scsiProtocolControllerIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: fCPort_Realizes_scsiProtocolControllerIndex.setStatus('mandatory') trapGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16)) trapsEnabled = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapsEnabled.setStatus('mandatory') trapDriveAlertSummary = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60))).clone(namedValues=NamedValues(("readWarning", 1), ("writeWarning", 2), ("hardError", 3), ("media", 4), ("readFailure", 5), ("writeFailure", 6), ("mediaLife", 7), ("notDataGrade", 8), ("writeProtect", 9), ("noRemoval", 10), ("cleaningMedia", 11), ("unsupportedFormat", 12), ("recoverableSnappedTape", 13), ("unrecoverableSnappedTape", 14), ("memoryChipInCartridgeFailure", 15), ("forcedEject", 16), ("readOnlyFormat", 17), ("directoryCorruptedOnLoad", 18), ("nearingMediaLife", 19), ("cleanNow", 20), ("cleanPeriodic", 21), ("expiredCleaningMedia", 22), ("invalidCleaningMedia", 23), ("retentionRequested", 24), ("dualPortInterfaceError", 25), ("coolingFanError", 26), ("powerSupplyFailure", 27), ("powerConsumption", 28), ("driveMaintenance", 29), ("hardwareA", 30), ("hardwareB", 31), ("interface", 32), ("ejectMedia", 33), ("downloadFailure", 34), ("driveHumidity", 35), ("driveTemperature", 36), ("driveVoltage", 37), ("predictiveFailure", 38), ("diagnosticsRequired", 39), ("lostStatistics", 50), ("mediaDirectoryInvalidAtUnload", 51), ("mediaSystemAreaWriteFailure", 52), ("mediaSystemAreaReadFailure", 53), ("noStartOfData", 54), ("loadingFailure", 55), ("unrecoverableUnloadFailure", 56), ("automationInterfaceFailure", 57), ("firmwareFailure", 58), ("wormMediumIntegrityCheckFailed", 59), ("wormMediumOverwriteAttempted", 60)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trapDriveAlertSummary.setStatus('mandatory') trap_Association_MediaAccessDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 3), UINT32()).setLabel("trap-Association-MediaAccessDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: trap_Association_MediaAccessDeviceIndex.setStatus('mandatory') trapChangerAlertSummary = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))).clone(namedValues=NamedValues(("libraryHardwareA", 1), ("libraryHardwareB", 2), ("libraryHardwareC", 3), ("libraryHardwareD", 4), ("libraryDiagnosticsRequired", 5), ("libraryInterface", 6), ("failurePrediction", 7), ("libraryMaintenance", 8), ("libraryHumidityLimits", 9), ("libraryTemperatureLimits", 10), ("libraryVoltageLimits", 11), ("libraryStrayMedia", 12), ("libraryPickRetry", 13), ("libraryPlaceRetry", 14), ("libraryLoadRetry", 15), ("libraryDoor", 16), ("libraryMailslot", 17), ("libraryMagazine", 18), ("librarySecurity", 19), ("librarySecurityMode", 20), ("libraryOffline", 21), ("libraryDriveOffline", 22), ("libraryScanRetry", 23), ("libraryInventory", 24), ("libraryIllegalOperation", 25), ("dualPortInterfaceError", 26), ("coolingFanFailure", 27), ("powerSupply", 28), ("powerConsumption", 29), ("passThroughMechanismFailure", 30), ("cartridgeInPassThroughMechanism", 31), ("unreadableBarCodeLabels", 32)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trapChangerAlertSummary.setStatus('mandatory') trap_Association_ChangerDeviceIndex = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 5), UINT32()).setLabel("trap-Association-ChangerDeviceIndex").setMaxAccess("readonly") if mibBuilder.loadTexts: trap_Association_ChangerDeviceIndex.setStatus('mandatory') trapPerceivedSeverity = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("information", 2), ("degradedWarning", 3), ("minor", 4), ("major", 5), ("critical", 6), ("fatalNonRecoverable", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: trapPerceivedSeverity.setStatus('mandatory') trapDestinationTable = MibTable((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7), ) if mibBuilder.loadTexts: trapDestinationTable.setStatus('mandatory') trapDestinationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1), ).setIndexNames((0, "SNIA-SML-MIB", "numberOfTrapDestinations")) if mibBuilder.loadTexts: trapDestinationEntry.setStatus('mandatory') numberOfTrapDestinations = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: numberOfTrapDestinations.setStatus('mandatory') trapDestinationHostType = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("iPv4", 1), ("iPv6", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestinationHostType.setStatus('mandatory') trapDestinationHostAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestinationHostAddr.setStatus('mandatory') trapDestinationPort = MibTableColumn((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trapDestinationPort.setStatus('mandatory') driveAlert = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1) + (0,0)).setObjects(("SNIA-SML-MIB", "trapDriveAlertSummary"), ("SNIA-SML-MIB", "trap_Association_MediaAccessDeviceIndex"), ("SNIA-SML-MIB", "trapPerceivedSeverity")) changerAlert = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1) + (0,1)).setObjects(("SNIA-SML-MIB", "trapChangerAlertSummary"), ("SNIA-SML-MIB", "trap_Association_ChangerDeviceIndex"), ("SNIA-SML-MIB", "trapPerceivedSeverity")) trapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 8)) currentOperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setMaxAccess("readonly") if mibBuilder.loadTexts: currentOperationalStatus.setStatus('mandatory') oldOperationalStatus = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=NamedValues(("unknown", 0), ("other", 1), ("ok", 2), ("degraded", 3), ("stressed", 4), ("predictiveFailure", 5), ("error", 6), ("non-RecoverableError", 7), ("starting", 8), ("stopping", 9), ("stopped", 10), ("inService", 11), ("noContact", 12), ("lostCommunication", 13), ("aborted", 14), ("dormant", 15), ("supportingEntityInError", 16), ("completed", 17), ("powerMode", 18), ("dMTFReserved", 19), ("vendorReserved", 32768)))).setMaxAccess("readonly") if mibBuilder.loadTexts: oldOperationalStatus.setStatus('mandatory') libraryAddedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,3)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name")) libraryDeletedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,4)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name")) libraryOpStatusChangedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,5)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "currentOperationalStatus"), ("SNIA-SML-MIB", "oldOperationalStatus")) driveAddedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,6)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "mediaAccessDevice_DeviceID")) driveDeletedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,7)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "mediaAccessDevice_DeviceID")) driveOpStatusChangedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,8)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "mediaAccessDevice_DeviceID"), ("SNIA-SML-MIB", "currentOperationalStatus"), ("SNIA-SML-MIB", "oldOperationalStatus")) changerAddedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,9)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "changerDevice_DeviceID")) changerDeletedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,10)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "changerDevice_DeviceID")) changerOpStatusChangedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,11)).setObjects(("SNIA-SML-MIB", "storageLibrary_Name"), ("SNIA-SML-MIB", "changerDevice_DeviceID"), ("SNIA-SML-MIB", "currentOperationalStatus"), ("SNIA-SML-MIB", "oldOperationalStatus")) physicalMediaAddedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,12)).setObjects(("SNIA-SML-MIB", "storageMediaLocation_PhysicalMedia_Tag")) physicalMediaDeletedTrap = NotificationType((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0,13)).setObjects(("SNIA-SML-MIB", "storageMediaLocation_PhysicalMedia_Tag")) endOfSmlMib = MibScalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 17), ObjectIdentifier()) if mibBuilder.loadTexts: endOfSmlMib.setStatus('mandatory') mibBuilder.exportSymbols("SNIA-SML-MIB", storageMediaLocation_PhysicalMedia_CleanerMedia=storageMediaLocation_PhysicalMedia_CleanerMedia, scsiProtocolController_ElementName=scsiProtocolController_ElementName, smlCimVersion=smlCimVersion, product_ElementName=product_ElementName, physicalPackageIndex=physicalPackageIndex, trapDestinationPort=trapDestinationPort, trap_Association_ChangerDeviceIndex=trap_Association_ChangerDeviceIndex, storageLibrary_Caption=storageLibrary_Caption, experimental=experimental, numberOfSoftwareElements=numberOfSoftwareElements, changerDevice_Realizes_StorageLocationIndex=changerDevice_Realizes_StorageLocationIndex, storageMediaLocation_PhysicalMedia_DualSided=storageMediaLocation_PhysicalMedia_DualSided, storageMediaLocation_MediaCapacity=storageMediaLocation_MediaCapacity, subChassis_Manufacturer=subChassis_Manufacturer, chassis_SecurityBreach=chassis_SecurityBreach, scsiProtocolController_DeviceID=scsiProtocolController_DeviceID, mediaAccessDevice_DeviceID=mediaAccessDevice_DeviceID, storageMediaLocation_Association_ChangerDeviceIndex=storageMediaLocation_Association_ChangerDeviceIndex, driveAddedTrap=driveAddedTrap, subChassisIndex=subChassisIndex, subChassis_OperationalStatus=subChassis_OperationalStatus, mediaAccessDevice_MountCount=mediaAccessDevice_MountCount, storageMediaLocationEntry=storageMediaLocationEntry, product_Version=product_Version, mediaAccessDeviceGroup=mediaAccessDeviceGroup, scsiProtocolController_Realizes_MediaAccessDeviceIndex=scsiProtocolController_Realizes_MediaAccessDeviceIndex, trapDestinationHostType=trapDestinationHostType, softwareElementGroup=softwareElementGroup, limitedAccessPort_Extended=limitedAccessPort_Extended, softwareElement_Version=softwareElement_Version, driveOpStatusChangedTrap=driveOpStatusChangedTrap, CimDateTime=CimDateTime, smlMibVersion=smlMibVersion, physicalPackage_Model=physicalPackage_Model, mediaAccessDevice_Realizes_softwareElementIndex=mediaAccessDevice_Realizes_softwareElementIndex, changerDevice_Caption=changerDevice_Caption, scsiProtocolController_Description=scsiProtocolController_Description, mediaAccessDevice_PowerOnHours=mediaAccessDevice_PowerOnHours, libraryOpStatusChangedTrap=libraryOpStatusChangedTrap, physicalMediaAddedTrap=physicalMediaAddedTrap, changerDevice_Availability=changerDevice_Availability, trapGroup=trapGroup, fCPortGroup=fCPortGroup, changerDevice_Description=changerDevice_Description, subChassisEntry=subChassisEntry, fCPortIndex=fCPortIndex, storageMediaLocation_PhysicalMedia_Replaceable=storageMediaLocation_PhysicalMedia_Replaceable, subChassis_SecurityBreach=subChassis_SecurityBreach, storageLibrary_Name=storageLibrary_Name, numberOfSCSIProtocolControllers=numberOfSCSIProtocolControllers, storageLibraryGroup=storageLibraryGroup, computerSystem_OperationalStatus=computerSystem_OperationalStatus, storageMediaLocation_PhysicalMedia_Capacity=storageMediaLocation_PhysicalMedia_Capacity, driveAlert=driveAlert, limitedAccessPort_Realizes_StorageLocationIndex=limitedAccessPort_Realizes_StorageLocationIndex, storageMediaLocation_PhysicalMedia_MediaDescription=storageMediaLocation_PhysicalMedia_MediaDescription, changerDeviceIndex=changerDeviceIndex, numberOfTrapDestinations=numberOfTrapDestinations, limitedAccessPort_ElementName=limitedAccessPort_ElementName, numberOffCPorts=numberOffCPorts, scsiProtocolControllerEntry=scsiProtocolControllerEntry, chassis_IsLocked=chassis_IsLocked, numberOfMediaAccessDevices=numberOfMediaAccessDevices, scsiProtocolController_OperationalStatus=scsiProtocolController_OperationalStatus, changerAddedTrap=changerAddedTrap, trapDriveAlertSummary=trapDriveAlertSummary, trapDestinationHostAddr=trapDestinationHostAddr, physicalPackageGroup=physicalPackageGroup, softwareElementEntry=softwareElementEntry, trapPerceivedSeverity=trapPerceivedSeverity, trapsEnabled=trapsEnabled, UShortReal=UShortReal, fCPort_Caption=fCPort_Caption, subChassis_Model=subChassis_Model, scsiProtocolController_Realizes_ChangerDeviceIndex=scsiProtocolController_Realizes_ChangerDeviceIndex, computerSystem_Caption=computerSystem_Caption, product_IdentifyingNumber=product_IdentifyingNumber, mediaAccessDevice_TotalPowerOnHours=mediaAccessDevice_TotalPowerOnHours, storageMediaLocation_LocationType=storageMediaLocation_LocationType, limitedAccessPortEntry=limitedAccessPortEntry, computerSystem_Name=computerSystem_Name, numberOflimitedAccessPorts=numberOflimitedAccessPorts, numberOfPhysicalPackages=numberOfPhysicalPackages, limitedAccessPort_Description=limitedAccessPort_Description, storageMediaLocation_PhysicalMedia_Removable=storageMediaLocation_PhysicalMedia_Removable, computerSystem_PrimaryOwnerContact=computerSystem_PrimaryOwnerContact, storageMediaLocation_PhysicalMedia_PhysicalLabel=storageMediaLocation_PhysicalMedia_PhysicalLabel, limitedAccessPort_Caption=limitedAccessPort_Caption, productGroup=productGroup, fCPort_PermanentAddress=fCPort_PermanentAddress, libraryAddedTrap=libraryAddedTrap, computerSystem_NameFormat=computerSystem_NameFormat, smlRoot=smlRoot, oldOperationalStatus=oldOperationalStatus, libraries=libraries, mediaAccessDeviceEntry=mediaAccessDeviceEntry, softwareElement_InstanceID=softwareElement_InstanceID, UINT64=UINT64, mediaAccessDeviceIndex=mediaAccessDeviceIndex, storageLibrary_Description=storageLibrary_Description, numberOfPhysicalMedias=numberOfPhysicalMedias, changerDeviceGroup=changerDeviceGroup, changerAlert=changerAlert, mediaAccessDevice_Availability=mediaAccessDevice_Availability, storageMediaLocation_PhysicalMediaPresent=storageMediaLocation_PhysicalMediaPresent, fCPort_Description=fCPort_Description, softwareElement_CodeSet=softwareElement_CodeSet, storageMediaLocation_PhysicalMedia_HotSwappable=storageMediaLocation_PhysicalMedia_HotSwappable, fCPort_Realizes_scsiProtocolControllerIndex=fCPort_Realizes_scsiProtocolControllerIndex, softwareElement_Manufacturer=softwareElement_Manufacturer, changerDeviceEntry=changerDeviceEntry, mediaAccessDevice_Realizes_StorageLocationIndex=mediaAccessDevice_Realizes_StorageLocationIndex, scsiProtocolControllerIndex=scsiProtocolControllerIndex, driveDeletedTrap=driveDeletedTrap, storageMediaLocationGroup=storageMediaLocationGroup, softwareElement_IdentificationCode=softwareElement_IdentificationCode, chassis_ElementName=chassis_ElementName, computerSystemGroup=computerSystemGroup, storageMediaLocationTable=storageMediaLocationTable, subChassis_LockPresent=subChassis_LockPresent, subChassis_IsLocked=subChassis_IsLocked, numberOfStorageMediaLocations=numberOfStorageMediaLocations, trap_Association_MediaAccessDeviceIndex=trap_Association_MediaAccessDeviceIndex, fCPort_ElementName=fCPort_ElementName, UINT32=UINT32, trapChangerAlertSummary=trapChangerAlertSummary, storageMediaLocation_PhysicalMedia_Tag=storageMediaLocation_PhysicalMedia_Tag, endOfSmlMib=endOfSmlMib, softwareElementTable=softwareElementTable, numberOfChangerDevices=numberOfChangerDevices, changerDevice_DeviceID=changerDevice_DeviceID, mediaAccessDevice_Name=mediaAccessDevice_Name, softwareElement_SoftwareElementID=softwareElement_SoftwareElementID, mediaAccessDevice_Status=mediaAccessDevice_Status, limitedAccessPortIndex=limitedAccessPortIndex, product_Name=product_Name, storageLibrary_InstallDate=storageLibrary_InstallDate, subChassis_ElementName=subChassis_ElementName, mediaAccessDevice_OperationalStatus=mediaAccessDevice_OperationalStatus, storageMediaLocation_MediaTypesSupported=storageMediaLocation_MediaTypesSupported, mediaAccessDeviceObjectType=mediaAccessDeviceObjectType, mediaAccessDevice_NeedsCleaning=mediaAccessDevice_NeedsCleaning, physicalMediaDeletedTrap=physicalMediaDeletedTrap, chassis_Manufacturer=chassis_Manufacturer, subChassis_Tag=subChassis_Tag, computerSystem_Dedicated=computerSystem_Dedicated, computerSystem_Description=computerSystem_Description, fCPortController_OperationalStatus=fCPortController_OperationalStatus, snia=snia, changerDevice_MediaFlipSupported=changerDevice_MediaFlipSupported, limitedAccessPortGroup=limitedAccessPortGroup, currentOperationalStatus=currentOperationalStatus, computerSystem_ElementName=computerSystem_ElementName, physicalPackage_Manufacturer=physicalPackage_Manufacturer, scsiProtocolControllerTable=scsiProtocolControllerTable, physicalPackage_SerialNumber=physicalPackage_SerialNumber, computerSystem_Realizes_softwareElementIndex=computerSystem_Realizes_softwareElementIndex, physicalPackage_Realizes_MediaAccessDeviceIndex=physicalPackage_Realizes_MediaAccessDeviceIndex, chassis_LockPresent=chassis_LockPresent, softwareElement_LanguageEdition=softwareElement_LanguageEdition, trapObjects=trapObjects, subChassisTable=subChassisTable, softwareElement_Name=softwareElement_Name, changerDevice_ElementName=changerDevice_ElementName, fCPortTable=fCPortTable, mediaAccessDeviceTable=mediaAccessDeviceTable, softwareElement_SerialNumber=softwareElement_SerialNumber, fCPortEntry=fCPortEntry, storageMediaLocationIndex=storageMediaLocationIndex, physicalPackageEntry=physicalPackageEntry, softwareElement_BuildNumber=softwareElement_BuildNumber, subChassis_SerialNumber=subChassis_SerialNumber, changerDeviceTable=changerDeviceTable, libraryDeletedTrap=libraryDeletedTrap, chassis_Model=chassis_Model, trapDestinationEntry=trapDestinationEntry, scsiProtocolController_Availability=scsiProtocolController_Availability, changerDevice_OperationalStatus=changerDevice_OperationalStatus, changerDeletedTrap=changerDeletedTrap, limitedAccessPort_DeviceID=limitedAccessPort_DeviceID, trapDestinationTable=trapDestinationTable, numberOfsubChassis=numberOfsubChassis, storageMediaLocation_PhysicalMedia_MediaType=storageMediaLocation_PhysicalMedia_MediaType, chassis_Tag=chassis_Tag, scsiProtocolControllerGroup=scsiProtocolControllerGroup, fCPort_DeviceID=fCPort_DeviceID, chassisGroup=chassisGroup, physicalPackage_Tag=physicalPackage_Tag, limitedAccessPortTable=limitedAccessPortTable, computerSystem_PrimaryOwnerName=computerSystem_PrimaryOwnerName, subChassis_PackageType=subChassis_PackageType, UINT16=UINT16, product_Vendor=product_Vendor, chassis_SerialNumber=chassis_SerialNumber, changerOpStatusChangedTrap=changerOpStatusChangedTrap, softwareElementIndex=softwareElementIndex, storageLibrary_Status=storageLibrary_Status, storageMediaLocation_LocationCoordinates=storageMediaLocation_LocationCoordinates, storageMediaLocation_Tag=storageMediaLocation_Tag, physicalPackageTable=physicalPackageTable, common=common)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, constraints_intersection, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (notification_type, mib_identifier, object_identity, bits, iso, time_ticks, enterprises, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, counter32, gauge32, module_identity, counter64, unsigned32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'MibIdentifier', 'ObjectIdentity', 'Bits', 'iso', 'TimeTicks', 'enterprises', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Counter32', 'Gauge32', 'ModuleIdentity', 'Counter64', 'Unsigned32', 'IpAddress') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') class Ushortreal(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 65535) class Cimdatetime(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(24, 24) fixed_length = 24 class Uint64(OctetString): subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8) fixed_length = 8 class Uint32(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 2147483647) class Uint16(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 65535) snia = mib_identifier((1, 3, 6, 1, 4, 1, 14851)) experimental = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 1)) common = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 2)) libraries = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3)) sml_root = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1)) sml_mib_version = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: smlMibVersion.setStatus('mandatory') sml_cim_version = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: smlCimVersion.setStatus('mandatory') product_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3)) product__name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('product-Name').setMaxAccess('readonly') if mibBuilder.loadTexts: product_Name.setStatus('mandatory') product__identifying_number = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('product-IdentifyingNumber').setMaxAccess('readonly') if mibBuilder.loadTexts: product_IdentifyingNumber.setStatus('mandatory') product__vendor = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('product-Vendor').setMaxAccess('readonly') if mibBuilder.loadTexts: product_Vendor.setStatus('mandatory') product__version = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('product-Version').setMaxAccess('readonly') if mibBuilder.loadTexts: product_Version.setStatus('mandatory') product__element_name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 3, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('product-ElementName').setMaxAccess('readonly') if mibBuilder.loadTexts: product_ElementName.setStatus('mandatory') chassis_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4)) chassis__manufacturer = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('chassis-Manufacturer').setMaxAccess('readonly') if mibBuilder.loadTexts: chassis_Manufacturer.setStatus('mandatory') chassis__model = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('chassis-Model').setMaxAccess('readonly') if mibBuilder.loadTexts: chassis_Model.setStatus('mandatory') chassis__serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('chassis-SerialNumber').setMaxAccess('readonly') if mibBuilder.loadTexts: chassis_SerialNumber.setStatus('mandatory') chassis__lock_present = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('chassis-LockPresent').setMaxAccess('readonly') if mibBuilder.loadTexts: chassis_LockPresent.setStatus('mandatory') chassis__security_breach = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('noBreach', 3), ('breachAttempted', 4), ('breachSuccessful', 5)))).setLabel('chassis-SecurityBreach').setMaxAccess('readonly') if mibBuilder.loadTexts: chassis_SecurityBreach.setStatus('mandatory') chassis__is_locked = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('chassis-IsLocked').setMaxAccess('readonly') if mibBuilder.loadTexts: chassis_IsLocked.setStatus('mandatory') chassis__tag = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('chassis-Tag').setMaxAccess('readonly') if mibBuilder.loadTexts: chassis_Tag.setStatus('mandatory') chassis__element_name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('chassis-ElementName').setMaxAccess('readonly') if mibBuilder.loadTexts: chassis_ElementName.setStatus('mandatory') number_ofsub_chassis = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOfsubChassis.setStatus('mandatory') sub_chassis_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10)) if mibBuilder.loadTexts: subChassisTable.setStatus('mandatory') sub_chassis_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'subChassisIndex')) if mibBuilder.loadTexts: subChassisEntry.setStatus('mandatory') sub_chassis_index = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 1), uint32()).setMaxAccess('readonly') if mibBuilder.loadTexts: subChassisIndex.setStatus('mandatory') sub_chassis__manufacturer = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('subChassis-Manufacturer').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_Manufacturer.setStatus('mandatory') sub_chassis__model = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('subChassis-Model').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_Model.setStatus('mandatory') sub_chassis__serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('subChassis-SerialNumber').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_SerialNumber.setStatus('mandatory') sub_chassis__lock_present = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('subChassis-LockPresent').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_LockPresent.setStatus('mandatory') sub_chassis__security_breach = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('other', 2), ('noBreach', 3), ('breachAttempted', 4), ('breachSuccessful', 5)))).setLabel('subChassis-SecurityBreach').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_SecurityBreach.setStatus('mandatory') sub_chassis__is_locked = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('subChassis-IsLocked').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_IsLocked.setStatus('mandatory') sub_chassis__tag = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('subChassis-Tag').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_Tag.setStatus('mandatory') sub_chassis__element_name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('subChassis-ElementName').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_ElementName.setStatus('mandatory') sub_chassis__operational_status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('ok', 2), ('degraded', 3), ('stressed', 4), ('predictiveFailure', 5), ('error', 6), ('non-RecoverableError', 7), ('starting', 8), ('stopping', 9), ('stopped', 10), ('inService', 11), ('noContact', 12), ('lostCommunication', 13), ('aborted', 14), ('dormant', 15), ('supportingEntityInError', 16), ('completed', 17), ('powerMode', 18), ('dMTFReserved', 19), ('vendorReserved', 32768)))).setLabel('subChassis-OperationalStatus').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_OperationalStatus.setStatus('mandatory') sub_chassis__package_type = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 4, 10, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 17, 18, 19, 32769))).clone(namedValues=named_values(('unknown', 0), ('mainSystemChassis', 17), ('expansionChassis', 18), ('subChassis', 19), ('serviceBay', 32769)))).setLabel('subChassis-PackageType').setMaxAccess('readonly') if mibBuilder.loadTexts: subChassis_PackageType.setStatus('mandatory') storage_library_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5)) storage_library__name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('storageLibrary-Name').setMaxAccess('readonly') if mibBuilder.loadTexts: storageLibrary_Name.setStatus('deprecated') storage_library__description = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('storageLibrary-Description').setMaxAccess('readonly') if mibBuilder.loadTexts: storageLibrary_Description.setStatus('deprecated') storage_library__caption = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('storageLibrary-Caption').setMaxAccess('readonly') if mibBuilder.loadTexts: storageLibrary_Caption.setStatus('deprecated') storage_library__status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setLabel('storageLibrary-Status').setMaxAccess('readonly') if mibBuilder.loadTexts: storageLibrary_Status.setStatus('deprecated') storage_library__install_date = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 5, 5), cim_date_time()).setLabel('storageLibrary-InstallDate').setMaxAccess('readonly') if mibBuilder.loadTexts: storageLibrary_InstallDate.setStatus('deprecated') media_access_device_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6)) number_of_media_access_devices = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOfMediaAccessDevices.setStatus('mandatory') media_access_device_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2)) if mibBuilder.loadTexts: mediaAccessDeviceTable.setStatus('mandatory') media_access_device_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'mediaAccessDeviceIndex')) if mibBuilder.loadTexts: mediaAccessDeviceEntry.setStatus('mandatory') media_access_device_index = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 1), uint32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDeviceIndex.setStatus('mandatory') media_access_device_object_type = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 0), ('wormDrive', 1), ('magnetoOpticalDrive', 2), ('tapeDrive', 3), ('dvdDrive', 4), ('cdromDrive', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDeviceObjectType.setStatus('mandatory') media_access_device__name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('mediaAccessDevice-Name').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_Name.setStatus('deprecated') media_access_device__status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setLabel('mediaAccessDevice-Status').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_Status.setStatus('deprecated') media_access_device__availability = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('runningFullPower', 3), ('warning', 4), ('inTest', 5), ('notApplicable', 6), ('powerOff', 7), ('offLine', 8), ('offDuty', 9), ('degraded', 10), ('notInstalled', 11), ('installError', 12), ('powerSaveUnknown', 13), ('powerSaveLowPowerMode', 14), ('powerSaveStandby', 15), ('powerCycle', 16), ('powerSaveWarning', 17), ('paused', 18), ('notReady', 19), ('notConfigured', 20), ('quiesced', 21)))).setLabel('mediaAccessDevice-Availability').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_Availability.setStatus('mandatory') media_access_device__needs_cleaning = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('mediaAccessDevice-NeedsCleaning').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_NeedsCleaning.setStatus('mandatory') media_access_device__mount_count = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 7), uint64()).setLabel('mediaAccessDevice-MountCount').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_MountCount.setStatus('mandatory') media_access_device__device_id = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('mediaAccessDevice-DeviceID').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_DeviceID.setStatus('mandatory') media_access_device__power_on_hours = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 9), uint64()).setLabel('mediaAccessDevice-PowerOnHours').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_PowerOnHours.setStatus('mandatory') media_access_device__total_power_on_hours = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 10), uint64()).setLabel('mediaAccessDevice-TotalPowerOnHours').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_TotalPowerOnHours.setStatus('mandatory') media_access_device__operational_status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('ok', 2), ('degraded', 3), ('stressed', 4), ('predictiveFailure', 5), ('error', 6), ('non-RecoverableError', 7), ('starting', 8), ('stopping', 9), ('stopped', 10), ('inService', 11), ('noContact', 12), ('lostCommunication', 13), ('aborted', 14), ('dormant', 15), ('supportingEntityInError', 16), ('completed', 17), ('powerMode', 18), ('dMTFReserved', 19), ('vendorReserved', 32768)))).setLabel('mediaAccessDevice-OperationalStatus').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_OperationalStatus.setStatus('mandatory') media_access_device__realizes__storage_location_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 12), uint32()).setLabel('mediaAccessDevice-Realizes-StorageLocationIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_Realizes_StorageLocationIndex.setStatus('mandatory') media_access_device__realizes_software_element_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 6, 2, 1, 13), uint32()).setLabel('mediaAccessDevice-Realizes-softwareElementIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: mediaAccessDevice_Realizes_softwareElementIndex.setStatus('mandatory') physical_package_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8)) number_of_physical_packages = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOfPhysicalPackages.setStatus('mandatory') physical_package_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2)) if mibBuilder.loadTexts: physicalPackageTable.setStatus('mandatory') physical_package_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'physicalPackageIndex')) if mibBuilder.loadTexts: physicalPackageEntry.setStatus('mandatory') physical_package_index = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 1), uint32()).setMaxAccess('readonly') if mibBuilder.loadTexts: physicalPackageIndex.setStatus('mandatory') physical_package__manufacturer = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('physicalPackage-Manufacturer').setMaxAccess('readonly') if mibBuilder.loadTexts: physicalPackage_Manufacturer.setStatus('mandatory') physical_package__model = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('physicalPackage-Model').setMaxAccess('readonly') if mibBuilder.loadTexts: physicalPackage_Model.setStatus('mandatory') physical_package__serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('physicalPackage-SerialNumber').setMaxAccess('readonly') if mibBuilder.loadTexts: physicalPackage_SerialNumber.setStatus('mandatory') physical_package__realizes__media_access_device_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 5), integer32()).setLabel('physicalPackage-Realizes-MediaAccessDeviceIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: physicalPackage_Realizes_MediaAccessDeviceIndex.setStatus('mandatory') physical_package__tag = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 8, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('physicalPackage-Tag').setMaxAccess('readonly') if mibBuilder.loadTexts: physicalPackage_Tag.setStatus('mandatory') software_element_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9)) number_of_software_elements = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOfSoftwareElements.setStatus('mandatory') software_element_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2)) if mibBuilder.loadTexts: softwareElementTable.setStatus('mandatory') software_element_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'softwareElementIndex')) if mibBuilder.loadTexts: softwareElementEntry.setStatus('mandatory') software_element_index = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 1), uint32()).setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElementIndex.setStatus('mandatory') software_element__name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('softwareElement-Name').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_Name.setStatus('deprecated') software_element__version = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('softwareElement-Version').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_Version.setStatus('mandatory') software_element__software_element_id = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('softwareElement-SoftwareElementID').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_SoftwareElementID.setStatus('mandatory') software_element__manufacturer = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('softwareElement-Manufacturer').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_Manufacturer.setStatus('mandatory') software_element__build_number = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('softwareElement-BuildNumber').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_BuildNumber.setStatus('mandatory') software_element__serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('softwareElement-SerialNumber').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_SerialNumber.setStatus('mandatory') software_element__code_set = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('softwareElement-CodeSet').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_CodeSet.setStatus('deprecated') software_element__identification_code = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('softwareElement-IdentificationCode').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_IdentificationCode.setStatus('deprecated') software_element__language_edition = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setLabel('softwareElement-LanguageEdition').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_LanguageEdition.setStatus('deprecated') software_element__instance_id = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 9, 2, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('softwareElement-InstanceID').setMaxAccess('readonly') if mibBuilder.loadTexts: softwareElement_InstanceID.setStatus('mandatory') computer_system_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10)) computer_system__element_name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('computerSystem-ElementName').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_ElementName.setStatus('mandatory') computer_system__operational_status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('ok', 2), ('degraded', 3), ('stressed', 4), ('predictiveFailure', 5), ('error', 6), ('non-RecoverableError', 7), ('starting', 8), ('stopping', 9), ('stopped', 10), ('inService', 11), ('noContact', 12), ('lostCommunication', 13), ('aborted', 14), ('dormant', 15), ('supportingEntityInError', 16), ('completed', 17), ('powerMode', 18), ('dMTFReserved', 19), ('vendorReserved', 32768)))).setLabel('computerSystem-OperationalStatus').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_OperationalStatus.setStatus('mandatory') computer_system__name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('computerSystem-Name').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_Name.setStatus('mandatory') computer_system__name_format = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('computerSystem-NameFormat').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_NameFormat.setStatus('mandatory') computer_system__dedicated = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20))).clone(namedValues=named_values(('notDedicated', 0), ('unknown', 1), ('other', 2), ('storage', 3), ('router', 4), ('switch', 5), ('layer3switch', 6), ('centralOfficeSwitch', 7), ('hub', 8), ('accessServer', 9), ('firewall', 10), ('print', 11), ('io', 12), ('webCaching', 13), ('management', 14), ('blockServer', 15), ('fileServer', 16), ('mobileUserDevice', 17), ('repeater', 18), ('bridgeExtender', 19), ('gateway', 20)))).setLabel('computerSystem-Dedicated').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_Dedicated.setStatus('mandatory') computer_system__primary_owner_contact = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('computerSystem-PrimaryOwnerContact').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_PrimaryOwnerContact.setStatus('mandatory') computer_system__primary_owner_name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('computerSystem-PrimaryOwnerName').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_PrimaryOwnerName.setStatus('mandatory') computer_system__description = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('computerSystem-Description').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_Description.setStatus('mandatory') computer_system__caption = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('computerSystem-Caption').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_Caption.setStatus('mandatory') computer_system__realizes_software_element_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 10, 10), uint32()).setLabel('computerSystem-Realizes-softwareElementIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: computerSystem_Realizes_softwareElementIndex.setStatus('mandatory') changer_device_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11)) number_of_changer_devices = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOfChangerDevices.setStatus('mandatory') changer_device_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2)) if mibBuilder.loadTexts: changerDeviceTable.setStatus('mandatory') changer_device_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'changerDeviceIndex')) if mibBuilder.loadTexts: changerDeviceEntry.setStatus('mandatory') changer_device_index = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 1), uint32()).setMaxAccess('readonly') if mibBuilder.loadTexts: changerDeviceIndex.setStatus('mandatory') changer_device__device_id = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('changerDevice-DeviceID').setMaxAccess('readonly') if mibBuilder.loadTexts: changerDevice_DeviceID.setStatus('mandatory') changer_device__media_flip_supported = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setLabel('changerDevice-MediaFlipSupported').setMaxAccess('readonly') if mibBuilder.loadTexts: changerDevice_MediaFlipSupported.setStatus('mandatory') changer_device__element_name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('changerDevice-ElementName').setMaxAccess('readonly') if mibBuilder.loadTexts: changerDevice_ElementName.setStatus('mandatory') changer_device__caption = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('changerDevice-Caption').setMaxAccess('readonly') if mibBuilder.loadTexts: changerDevice_Caption.setStatus('mandatory') changer_device__description = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('changerDevice-Description').setMaxAccess('readonly') if mibBuilder.loadTexts: changerDevice_Description.setStatus('mandatory') changer_device__availability = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('runningFullPower', 3), ('warning', 4), ('inTest', 5), ('notApplicable', 6), ('powerOff', 7), ('offLine', 8), ('offDuty', 9), ('degraded', 10), ('notInstalled', 11), ('installError', 12), ('powerSaveUnknown', 13), ('powerSaveLowPowerMode', 14), ('powerSaveStandby', 15), ('powerCycle', 16), ('powerSaveWarning', 17), ('paused', 18), ('notReady', 19), ('notConfigured', 20), ('quiesced', 21)))).setLabel('changerDevice-Availability').setMaxAccess('readonly') if mibBuilder.loadTexts: changerDevice_Availability.setStatus('mandatory') changer_device__operational_status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('ok', 2), ('degraded', 3), ('stressed', 4), ('predictiveFailure', 5), ('error', 6), ('non-RecoverableError', 7), ('starting', 8), ('stopping', 9), ('stopped', 10), ('inService', 11), ('noContact', 12), ('lostCommunication', 13), ('aborted', 14), ('dormant', 15), ('supportingEntityInError', 16), ('completed', 17), ('powerMode', 18), ('dMTFReserved', 19), ('vendorReserved', 32768)))).setLabel('changerDevice-OperationalStatus').setMaxAccess('readonly') if mibBuilder.loadTexts: changerDevice_OperationalStatus.setStatus('mandatory') changer_device__realizes__storage_location_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 11, 2, 1, 10), uint32()).setLabel('changerDevice-Realizes-StorageLocationIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: changerDevice_Realizes_StorageLocationIndex.setStatus('mandatory') scsi_protocol_controller_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12)) number_of_scsi_protocol_controllers = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOfSCSIProtocolControllers.setStatus('mandatory') scsi_protocol_controller_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2)) if mibBuilder.loadTexts: scsiProtocolControllerTable.setStatus('mandatory') scsi_protocol_controller_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'scsiProtocolControllerIndex')) if mibBuilder.loadTexts: scsiProtocolControllerEntry.setStatus('mandatory') scsi_protocol_controller_index = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 1), uint32()).setMaxAccess('readonly') if mibBuilder.loadTexts: scsiProtocolControllerIndex.setStatus('mandatory') scsi_protocol_controller__device_id = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('scsiProtocolController-DeviceID').setMaxAccess('readonly') if mibBuilder.loadTexts: scsiProtocolController_DeviceID.setStatus('mandatory') scsi_protocol_controller__element_name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('scsiProtocolController-ElementName').setMaxAccess('readonly') if mibBuilder.loadTexts: scsiProtocolController_ElementName.setStatus('mandatory') scsi_protocol_controller__operational_status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('ok', 2), ('degraded', 3), ('stressed', 4), ('predictiveFailure', 5), ('error', 6), ('non-RecoverableError', 7), ('starting', 8), ('stopping', 9), ('stopped', 10), ('inService', 11), ('noContact', 12), ('lostCommunication', 13), ('aborted', 14), ('dormant', 15), ('supportingEntityInError', 16), ('completed', 17), ('powerMode', 18), ('dMTFReserved', 19), ('vendorReserved', 32768)))).setLabel('scsiProtocolController-OperationalStatus').setMaxAccess('readonly') if mibBuilder.loadTexts: scsiProtocolController_OperationalStatus.setStatus('mandatory') scsi_protocol_controller__description = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('scsiProtocolController-Description').setMaxAccess('readonly') if mibBuilder.loadTexts: scsiProtocolController_Description.setStatus('mandatory') scsi_protocol_controller__availability = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('runningFullPower', 3), ('warning', 4), ('inTest', 5), ('notApplicable', 6), ('powerOff', 7), ('offLine', 8), ('offDuty', 9), ('degraded', 10), ('notInstalled', 11), ('installError', 12), ('powerSaveUnknown', 13), ('powerSaveLowPowerMode', 14), ('powerSaveStandby', 15), ('powerCycle', 16), ('powerSaveWarning', 17), ('paused', 18), ('notReady', 19), ('notConfigured', 20), ('quiesced', 21)))).setLabel('scsiProtocolController-Availability').setMaxAccess('readonly') if mibBuilder.loadTexts: scsiProtocolController_Availability.setStatus('mandatory') scsi_protocol_controller__realizes__changer_device_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 7), uint32()).setLabel('scsiProtocolController-Realizes-ChangerDeviceIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: scsiProtocolController_Realizes_ChangerDeviceIndex.setStatus('mandatory') scsi_protocol_controller__realizes__media_access_device_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 12, 2, 1, 8), uint32()).setLabel('scsiProtocolController-Realizes-MediaAccessDeviceIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: scsiProtocolController_Realizes_MediaAccessDeviceIndex.setStatus('mandatory') storage_media_location_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13)) number_of_storage_media_locations = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOfStorageMediaLocations.setStatus('mandatory') number_of_physical_medias = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOfPhysicalMedias.setStatus('mandatory') storage_media_location_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3)) if mibBuilder.loadTexts: storageMediaLocationTable.setStatus('mandatory') storage_media_location_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'storageMediaLocationIndex')) if mibBuilder.loadTexts: storageMediaLocationEntry.setStatus('mandatory') storage_media_location_index = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 1), uint32()).setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocationIndex.setStatus('mandatory') storage_media_location__tag = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('storageMediaLocation-Tag').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_Tag.setStatus('mandatory') storage_media_location__location_type = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('slot', 2), ('magazine', 3), ('mediaAccessDevice', 4), ('interLibraryPort', 5), ('limitedAccessPort', 6), ('door', 7), ('shelf', 8), ('vault', 9)))).setLabel('storageMediaLocation-LocationType').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_LocationType.setStatus('mandatory') storage_media_location__location_coordinates = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('storageMediaLocation-LocationCoordinates').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_LocationCoordinates.setStatus('mandatory') storage_media_location__media_types_supported = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('tape', 2), ('qic', 3), ('ait', 4), ('dtf', 5), ('dat', 6), ('eightmmTape', 7), ('nineteenmmTape', 8), ('dlt', 9), ('halfInchMO', 10), ('catridgeDisk', 11), ('jazDisk', 12), ('zipDisk', 13), ('syQuestDisk', 14), ('winchesterDisk', 15), ('cdRom', 16), ('cdRomXA', 17), ('cdI', 18), ('cdRecordable', 19), ('wORM', 20), ('magneto-Optical', 21), ('dvd', 22), ('dvdRWPlus', 23), ('dvdRAM', 24), ('dvdROM', 25), ('dvdVideo', 26), ('divx', 27), ('floppyDiskette', 28), ('hardDisk', 29), ('memoryCard', 30), ('hardCopy', 31), ('clikDisk', 32), ('cdRW', 33), ('cdDA', 34), ('cdPlus', 35), ('dvdRecordable', 36), ('dvdRW', 37), ('dvdAudio', 38), ('dvd5', 39), ('dvd9', 40), ('dvd10', 41), ('dvd18', 42), ('moRewriteable', 43), ('moWriteOnce', 44), ('moLIMDOW', 45), ('phaseChangeWO', 46), ('phaseChangeRewriteable', 47), ('phaseChangeDualRewriteable', 48), ('ablativeWriteOnce', 49), ('nearField', 50), ('miniQic', 51), ('travan', 52), ('eightmmMetal', 53), ('eightmmAdvanced', 54), ('nctp', 55), ('ltoUltrium', 56), ('ltoAccelis', 57), ('tape9Track', 58), ('tape18Track', 59), ('tape36Track', 60), ('magstar3590', 61), ('magstarMP', 62), ('d2Tape', 63), ('dstSmall', 64), ('dstMedium', 65), ('dstLarge', 66)))).setLabel('storageMediaLocation-MediaTypesSupported').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_MediaTypesSupported.setStatus('mandatory') storage_media_location__media_capacity = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 6), uint32()).setLabel('storageMediaLocation-MediaCapacity').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_MediaCapacity.setStatus('mandatory') storage_media_location__association__changer_device_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 7), uint32()).setLabel('storageMediaLocation-Association-ChangerDeviceIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_Association_ChangerDeviceIndex.setStatus('mandatory') storage_media_location__physical_media_present = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setLabel('storageMediaLocation-PhysicalMediaPresent').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMediaPresent.setStatus('mandatory') storage_media_location__physical_media__removable = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('storageMediaLocation-PhysicalMedia-Removable').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Removable.setStatus('mandatory') storage_media_location__physical_media__replaceable = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('storageMediaLocation-PhysicalMedia-Replaceable').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Replaceable.setStatus('mandatory') storage_media_location__physical_media__hot_swappable = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('storageMediaLocation-PhysicalMedia-HotSwappable').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_HotSwappable.setStatus('mandatory') storage_media_location__physical_media__capacity = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 14), uint64()).setLabel('storageMediaLocation-PhysicalMedia-Capacity').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Capacity.setStatus('mandatory') storage_media_location__physical_media__media_type = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('tape', 2), ('qic', 3), ('ait', 4), ('dtf', 5), ('dat', 6), ('eightmmTape', 7), ('nineteenmmTape', 8), ('dlt', 9), ('halfInchMO', 10), ('catridgeDisk', 11), ('jazDisk', 12), ('zipDisk', 13), ('syQuestDisk', 14), ('winchesterDisk', 15), ('cdRom', 16), ('cdRomXA', 17), ('cdI', 18), ('cdRecordable', 19), ('wORM', 20), ('magneto-Optical', 21), ('dvd', 22), ('dvdRWPlus', 23), ('dvdRAM', 24), ('dvdROM', 25), ('dvdVideo', 26), ('divx', 27), ('floppyDiskette', 28), ('hardDisk', 29), ('memoryCard', 30), ('hardCopy', 31), ('clikDisk', 32), ('cdRW', 33), ('cdDA', 34), ('cdPlus', 35), ('dvdRecordable', 36), ('dvdRW', 37), ('dvdAudio', 38), ('dvd5', 39), ('dvd9', 40), ('dvd10', 41), ('dvd18', 42), ('moRewriteable', 43), ('moWriteOnce', 44), ('moLIMDOW', 45), ('phaseChangeWO', 46), ('phaseChangeRewriteable', 47), ('phaseChangeDualRewriteable', 48), ('ablativeWriteOnce', 49), ('nearField', 50), ('miniQic', 51), ('travan', 52), ('eightmmMetal', 53), ('eightmmAdvanced', 54), ('nctp', 55), ('ltoUltrium', 56), ('ltoAccelis', 57), ('tape9Track', 58), ('tape18Track', 59), ('tape36Track', 60), ('magstar3590', 61), ('magstarMP', 62), ('d2Tape', 63), ('dstSmall', 64), ('dstMedium', 65), ('dstLarge', 66)))).setLabel('storageMediaLocation-PhysicalMedia-MediaType').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_MediaType.setStatus('mandatory') storage_media_location__physical_media__media_description = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('storageMediaLocation-PhysicalMedia-MediaDescription').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_MediaDescription.setStatus('mandatory') storage_media_location__physical_media__cleaner_media = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('storageMediaLocation-PhysicalMedia-CleanerMedia').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_CleanerMedia.setStatus('mandatory') storage_media_location__physical_media__dual_sided = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unknown', 0), ('true', 1), ('false', 2)))).setLabel('storageMediaLocation-PhysicalMedia-DualSided').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_DualSided.setStatus('mandatory') storage_media_location__physical_media__physical_label = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 19), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('storageMediaLocation-PhysicalMedia-PhysicalLabel').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_PhysicalLabel.setStatus('mandatory') storage_media_location__physical_media__tag = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 13, 3, 1, 20), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('storageMediaLocation-PhysicalMedia-Tag').setMaxAccess('readonly') if mibBuilder.loadTexts: storageMediaLocation_PhysicalMedia_Tag.setStatus('mandatory') limited_access_port_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14)) number_oflimited_access_ports = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOflimitedAccessPorts.setStatus('mandatory') limited_access_port_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2)) if mibBuilder.loadTexts: limitedAccessPortTable.setStatus('mandatory') limited_access_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'limitedAccessPortIndex')) if mibBuilder.loadTexts: limitedAccessPortEntry.setStatus('mandatory') limited_access_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 1), uint32()).setMaxAccess('readonly') if mibBuilder.loadTexts: limitedAccessPortIndex.setStatus('mandatory') limited_access_port__device_id = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('limitedAccessPort-DeviceID').setMaxAccess('readonly') if mibBuilder.loadTexts: limitedAccessPort_DeviceID.setStatus('mandatory') limited_access_port__extended = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setLabel('limitedAccessPort-Extended').setMaxAccess('readonly') if mibBuilder.loadTexts: limitedAccessPort_Extended.setStatus('mandatory') limited_access_port__element_name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('limitedAccessPort-ElementName').setMaxAccess('readonly') if mibBuilder.loadTexts: limitedAccessPort_ElementName.setStatus('mandatory') limited_access_port__caption = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('limitedAccessPort-Caption').setMaxAccess('readonly') if mibBuilder.loadTexts: limitedAccessPort_Caption.setStatus('mandatory') limited_access_port__description = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('limitedAccessPort-Description').setMaxAccess('readonly') if mibBuilder.loadTexts: limitedAccessPort_Description.setStatus('mandatory') limited_access_port__realizes__storage_location_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 14, 2, 1, 7), uint32()).setLabel('limitedAccessPort-Realizes-StorageLocationIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: limitedAccessPort_Realizes_StorageLocationIndex.setStatus('mandatory') f_c_port_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15)) number_off_c_ports = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: numberOffCPorts.setStatus('mandatory') f_c_port_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2)) if mibBuilder.loadTexts: fCPortTable.setStatus('mandatory') f_c_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'fCPortIndex')) if mibBuilder.loadTexts: fCPortEntry.setStatus('mandatory') f_c_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 1), uint32()).setMaxAccess('readonly') if mibBuilder.loadTexts: fCPortIndex.setStatus('mandatory') f_c_port__device_id = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('fCPort-DeviceID').setMaxAccess('readonly') if mibBuilder.loadTexts: fCPort_DeviceID.setStatus('mandatory') f_c_port__element_name = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('fCPort-ElementName').setMaxAccess('readonly') if mibBuilder.loadTexts: fCPort_ElementName.setStatus('mandatory') f_c_port__caption = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('fCPort-Caption').setMaxAccess('readonly') if mibBuilder.loadTexts: fCPort_Caption.setStatus('mandatory') f_c_port__description = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setLabel('fCPort-Description').setMaxAccess('readonly') if mibBuilder.loadTexts: fCPort_Description.setStatus('mandatory') f_c_port_controller__operational_status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('ok', 2), ('degraded', 3), ('stressed', 4), ('predictiveFailure', 5), ('error', 6), ('non-RecoverableError', 7), ('starting', 8), ('stopping', 9), ('stopped', 10), ('inService', 11), ('noContact', 12), ('lostCommunication', 13), ('aborted', 14), ('dormant', 15), ('supportingEntityInError', 16), ('completed', 17), ('powerMode', 18), ('dMTFReserved', 19), ('vendorReserved', 32768)))).setLabel('fCPortController-OperationalStatus').setMaxAccess('readonly') if mibBuilder.loadTexts: fCPortController_OperationalStatus.setStatus('mandatory') f_c_port__permanent_address = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setLabel('fCPort-PermanentAddress').setMaxAccess('readonly') if mibBuilder.loadTexts: fCPort_PermanentAddress.setStatus('mandatory') f_c_port__realizes_scsi_protocol_controller_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 15, 2, 1, 8), uint32()).setLabel('fCPort-Realizes-scsiProtocolControllerIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: fCPort_Realizes_scsiProtocolControllerIndex.setStatus('mandatory') trap_group = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16)) traps_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trapsEnabled.setStatus('mandatory') trap_drive_alert_summary = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60))).clone(namedValues=named_values(('readWarning', 1), ('writeWarning', 2), ('hardError', 3), ('media', 4), ('readFailure', 5), ('writeFailure', 6), ('mediaLife', 7), ('notDataGrade', 8), ('writeProtect', 9), ('noRemoval', 10), ('cleaningMedia', 11), ('unsupportedFormat', 12), ('recoverableSnappedTape', 13), ('unrecoverableSnappedTape', 14), ('memoryChipInCartridgeFailure', 15), ('forcedEject', 16), ('readOnlyFormat', 17), ('directoryCorruptedOnLoad', 18), ('nearingMediaLife', 19), ('cleanNow', 20), ('cleanPeriodic', 21), ('expiredCleaningMedia', 22), ('invalidCleaningMedia', 23), ('retentionRequested', 24), ('dualPortInterfaceError', 25), ('coolingFanError', 26), ('powerSupplyFailure', 27), ('powerConsumption', 28), ('driveMaintenance', 29), ('hardwareA', 30), ('hardwareB', 31), ('interface', 32), ('ejectMedia', 33), ('downloadFailure', 34), ('driveHumidity', 35), ('driveTemperature', 36), ('driveVoltage', 37), ('predictiveFailure', 38), ('diagnosticsRequired', 39), ('lostStatistics', 50), ('mediaDirectoryInvalidAtUnload', 51), ('mediaSystemAreaWriteFailure', 52), ('mediaSystemAreaReadFailure', 53), ('noStartOfData', 54), ('loadingFailure', 55), ('unrecoverableUnloadFailure', 56), ('automationInterfaceFailure', 57), ('firmwareFailure', 58), ('wormMediumIntegrityCheckFailed', 59), ('wormMediumOverwriteAttempted', 60)))).setMaxAccess('readonly') if mibBuilder.loadTexts: trapDriveAlertSummary.setStatus('mandatory') trap__association__media_access_device_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 3), uint32()).setLabel('trap-Association-MediaAccessDeviceIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: trap_Association_MediaAccessDeviceIndex.setStatus('mandatory') trap_changer_alert_summary = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))).clone(namedValues=named_values(('libraryHardwareA', 1), ('libraryHardwareB', 2), ('libraryHardwareC', 3), ('libraryHardwareD', 4), ('libraryDiagnosticsRequired', 5), ('libraryInterface', 6), ('failurePrediction', 7), ('libraryMaintenance', 8), ('libraryHumidityLimits', 9), ('libraryTemperatureLimits', 10), ('libraryVoltageLimits', 11), ('libraryStrayMedia', 12), ('libraryPickRetry', 13), ('libraryPlaceRetry', 14), ('libraryLoadRetry', 15), ('libraryDoor', 16), ('libraryMailslot', 17), ('libraryMagazine', 18), ('librarySecurity', 19), ('librarySecurityMode', 20), ('libraryOffline', 21), ('libraryDriveOffline', 22), ('libraryScanRetry', 23), ('libraryInventory', 24), ('libraryIllegalOperation', 25), ('dualPortInterfaceError', 26), ('coolingFanFailure', 27), ('powerSupply', 28), ('powerConsumption', 29), ('passThroughMechanismFailure', 30), ('cartridgeInPassThroughMechanism', 31), ('unreadableBarCodeLabels', 32)))).setMaxAccess('readonly') if mibBuilder.loadTexts: trapChangerAlertSummary.setStatus('mandatory') trap__association__changer_device_index = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 5), uint32()).setLabel('trap-Association-ChangerDeviceIndex').setMaxAccess('readonly') if mibBuilder.loadTexts: trap_Association_ChangerDeviceIndex.setStatus('mandatory') trap_perceived_severity = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('information', 2), ('degradedWarning', 3), ('minor', 4), ('major', 5), ('critical', 6), ('fatalNonRecoverable', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: trapPerceivedSeverity.setStatus('mandatory') trap_destination_table = mib_table((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7)) if mibBuilder.loadTexts: trapDestinationTable.setStatus('mandatory') trap_destination_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1)).setIndexNames((0, 'SNIA-SML-MIB', 'numberOfTrapDestinations')) if mibBuilder.loadTexts: trapDestinationEntry.setStatus('mandatory') number_of_trap_destinations = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: numberOfTrapDestinations.setStatus('mandatory') trap_destination_host_type = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('iPv4', 1), ('iPv6', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trapDestinationHostType.setStatus('mandatory') trap_destination_host_addr = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: trapDestinationHostAddr.setStatus('mandatory') trap_destination_port = mib_table_column((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 7, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trapDestinationPort.setStatus('mandatory') drive_alert = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1) + (0, 0)).setObjects(('SNIA-SML-MIB', 'trapDriveAlertSummary'), ('SNIA-SML-MIB', 'trap_Association_MediaAccessDeviceIndex'), ('SNIA-SML-MIB', 'trapPerceivedSeverity')) changer_alert = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1) + (0, 1)).setObjects(('SNIA-SML-MIB', 'trapChangerAlertSummary'), ('SNIA-SML-MIB', 'trap_Association_ChangerDeviceIndex'), ('SNIA-SML-MIB', 'trapPerceivedSeverity')) trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 8)) current_operational_status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 8, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('ok', 2), ('degraded', 3), ('stressed', 4), ('predictiveFailure', 5), ('error', 6), ('non-RecoverableError', 7), ('starting', 8), ('stopping', 9), ('stopped', 10), ('inService', 11), ('noContact', 12), ('lostCommunication', 13), ('aborted', 14), ('dormant', 15), ('supportingEntityInError', 16), ('completed', 17), ('powerMode', 18), ('dMTFReserved', 19), ('vendorReserved', 32768)))).setMaxAccess('readonly') if mibBuilder.loadTexts: currentOperationalStatus.setStatus('mandatory') old_operational_status = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16, 8, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 32768))).clone(namedValues=named_values(('unknown', 0), ('other', 1), ('ok', 2), ('degraded', 3), ('stressed', 4), ('predictiveFailure', 5), ('error', 6), ('non-RecoverableError', 7), ('starting', 8), ('stopping', 9), ('stopped', 10), ('inService', 11), ('noContact', 12), ('lostCommunication', 13), ('aborted', 14), ('dormant', 15), ('supportingEntityInError', 16), ('completed', 17), ('powerMode', 18), ('dMTFReserved', 19), ('vendorReserved', 32768)))).setMaxAccess('readonly') if mibBuilder.loadTexts: oldOperationalStatus.setStatus('mandatory') library_added_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 3)).setObjects(('SNIA-SML-MIB', 'storageLibrary_Name')) library_deleted_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 4)).setObjects(('SNIA-SML-MIB', 'storageLibrary_Name')) library_op_status_changed_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 5)).setObjects(('SNIA-SML-MIB', 'storageLibrary_Name'), ('SNIA-SML-MIB', 'currentOperationalStatus'), ('SNIA-SML-MIB', 'oldOperationalStatus')) drive_added_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 6)).setObjects(('SNIA-SML-MIB', 'storageLibrary_Name'), ('SNIA-SML-MIB', 'mediaAccessDevice_DeviceID')) drive_deleted_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 7)).setObjects(('SNIA-SML-MIB', 'storageLibrary_Name'), ('SNIA-SML-MIB', 'mediaAccessDevice_DeviceID')) drive_op_status_changed_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 8)).setObjects(('SNIA-SML-MIB', 'storageLibrary_Name'), ('SNIA-SML-MIB', 'mediaAccessDevice_DeviceID'), ('SNIA-SML-MIB', 'currentOperationalStatus'), ('SNIA-SML-MIB', 'oldOperationalStatus')) changer_added_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 9)).setObjects(('SNIA-SML-MIB', 'storageLibrary_Name'), ('SNIA-SML-MIB', 'changerDevice_DeviceID')) changer_deleted_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 10)).setObjects(('SNIA-SML-MIB', 'storageLibrary_Name'), ('SNIA-SML-MIB', 'changerDevice_DeviceID')) changer_op_status_changed_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 11)).setObjects(('SNIA-SML-MIB', 'storageLibrary_Name'), ('SNIA-SML-MIB', 'changerDevice_DeviceID'), ('SNIA-SML-MIB', 'currentOperationalStatus'), ('SNIA-SML-MIB', 'oldOperationalStatus')) physical_media_added_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 12)).setObjects(('SNIA-SML-MIB', 'storageMediaLocation_PhysicalMedia_Tag')) physical_media_deleted_trap = notification_type((1, 3, 6, 1, 4, 1, 14851, 3, 1, 16) + (0, 13)).setObjects(('SNIA-SML-MIB', 'storageMediaLocation_PhysicalMedia_Tag')) end_of_sml_mib = mib_scalar((1, 3, 6, 1, 4, 1, 14851, 3, 1, 17), object_identifier()) if mibBuilder.loadTexts: endOfSmlMib.setStatus('mandatory') mibBuilder.exportSymbols('SNIA-SML-MIB', storageMediaLocation_PhysicalMedia_CleanerMedia=storageMediaLocation_PhysicalMedia_CleanerMedia, scsiProtocolController_ElementName=scsiProtocolController_ElementName, smlCimVersion=smlCimVersion, product_ElementName=product_ElementName, physicalPackageIndex=physicalPackageIndex, trapDestinationPort=trapDestinationPort, trap_Association_ChangerDeviceIndex=trap_Association_ChangerDeviceIndex, storageLibrary_Caption=storageLibrary_Caption, experimental=experimental, numberOfSoftwareElements=numberOfSoftwareElements, changerDevice_Realizes_StorageLocationIndex=changerDevice_Realizes_StorageLocationIndex, storageMediaLocation_PhysicalMedia_DualSided=storageMediaLocation_PhysicalMedia_DualSided, storageMediaLocation_MediaCapacity=storageMediaLocation_MediaCapacity, subChassis_Manufacturer=subChassis_Manufacturer, chassis_SecurityBreach=chassis_SecurityBreach, scsiProtocolController_DeviceID=scsiProtocolController_DeviceID, mediaAccessDevice_DeviceID=mediaAccessDevice_DeviceID, storageMediaLocation_Association_ChangerDeviceIndex=storageMediaLocation_Association_ChangerDeviceIndex, driveAddedTrap=driveAddedTrap, subChassisIndex=subChassisIndex, subChassis_OperationalStatus=subChassis_OperationalStatus, mediaAccessDevice_MountCount=mediaAccessDevice_MountCount, storageMediaLocationEntry=storageMediaLocationEntry, product_Version=product_Version, mediaAccessDeviceGroup=mediaAccessDeviceGroup, scsiProtocolController_Realizes_MediaAccessDeviceIndex=scsiProtocolController_Realizes_MediaAccessDeviceIndex, trapDestinationHostType=trapDestinationHostType, softwareElementGroup=softwareElementGroup, limitedAccessPort_Extended=limitedAccessPort_Extended, softwareElement_Version=softwareElement_Version, driveOpStatusChangedTrap=driveOpStatusChangedTrap, CimDateTime=CimDateTime, smlMibVersion=smlMibVersion, physicalPackage_Model=physicalPackage_Model, mediaAccessDevice_Realizes_softwareElementIndex=mediaAccessDevice_Realizes_softwareElementIndex, changerDevice_Caption=changerDevice_Caption, scsiProtocolController_Description=scsiProtocolController_Description, mediaAccessDevice_PowerOnHours=mediaAccessDevice_PowerOnHours, libraryOpStatusChangedTrap=libraryOpStatusChangedTrap, physicalMediaAddedTrap=physicalMediaAddedTrap, changerDevice_Availability=changerDevice_Availability, trapGroup=trapGroup, fCPortGroup=fCPortGroup, changerDevice_Description=changerDevice_Description, subChassisEntry=subChassisEntry, fCPortIndex=fCPortIndex, storageMediaLocation_PhysicalMedia_Replaceable=storageMediaLocation_PhysicalMedia_Replaceable, subChassis_SecurityBreach=subChassis_SecurityBreach, storageLibrary_Name=storageLibrary_Name, numberOfSCSIProtocolControllers=numberOfSCSIProtocolControllers, storageLibraryGroup=storageLibraryGroup, computerSystem_OperationalStatus=computerSystem_OperationalStatus, storageMediaLocation_PhysicalMedia_Capacity=storageMediaLocation_PhysicalMedia_Capacity, driveAlert=driveAlert, limitedAccessPort_Realizes_StorageLocationIndex=limitedAccessPort_Realizes_StorageLocationIndex, storageMediaLocation_PhysicalMedia_MediaDescription=storageMediaLocation_PhysicalMedia_MediaDescription, changerDeviceIndex=changerDeviceIndex, numberOfTrapDestinations=numberOfTrapDestinations, limitedAccessPort_ElementName=limitedAccessPort_ElementName, numberOffCPorts=numberOffCPorts, scsiProtocolControllerEntry=scsiProtocolControllerEntry, chassis_IsLocked=chassis_IsLocked, numberOfMediaAccessDevices=numberOfMediaAccessDevices, scsiProtocolController_OperationalStatus=scsiProtocolController_OperationalStatus, changerAddedTrap=changerAddedTrap, trapDriveAlertSummary=trapDriveAlertSummary, trapDestinationHostAddr=trapDestinationHostAddr, physicalPackageGroup=physicalPackageGroup, softwareElementEntry=softwareElementEntry, trapPerceivedSeverity=trapPerceivedSeverity, trapsEnabled=trapsEnabled, UShortReal=UShortReal, fCPort_Caption=fCPort_Caption, subChassis_Model=subChassis_Model, scsiProtocolController_Realizes_ChangerDeviceIndex=scsiProtocolController_Realizes_ChangerDeviceIndex, computerSystem_Caption=computerSystem_Caption, product_IdentifyingNumber=product_IdentifyingNumber, mediaAccessDevice_TotalPowerOnHours=mediaAccessDevice_TotalPowerOnHours, storageMediaLocation_LocationType=storageMediaLocation_LocationType, limitedAccessPortEntry=limitedAccessPortEntry, computerSystem_Name=computerSystem_Name, numberOflimitedAccessPorts=numberOflimitedAccessPorts, numberOfPhysicalPackages=numberOfPhysicalPackages, limitedAccessPort_Description=limitedAccessPort_Description, storageMediaLocation_PhysicalMedia_Removable=storageMediaLocation_PhysicalMedia_Removable, computerSystem_PrimaryOwnerContact=computerSystem_PrimaryOwnerContact, storageMediaLocation_PhysicalMedia_PhysicalLabel=storageMediaLocation_PhysicalMedia_PhysicalLabel, limitedAccessPort_Caption=limitedAccessPort_Caption, productGroup=productGroup, fCPort_PermanentAddress=fCPort_PermanentAddress, libraryAddedTrap=libraryAddedTrap, computerSystem_NameFormat=computerSystem_NameFormat, smlRoot=smlRoot, oldOperationalStatus=oldOperationalStatus, libraries=libraries, mediaAccessDeviceEntry=mediaAccessDeviceEntry, softwareElement_InstanceID=softwareElement_InstanceID, UINT64=UINT64, mediaAccessDeviceIndex=mediaAccessDeviceIndex, storageLibrary_Description=storageLibrary_Description, numberOfPhysicalMedias=numberOfPhysicalMedias, changerDeviceGroup=changerDeviceGroup, changerAlert=changerAlert, mediaAccessDevice_Availability=mediaAccessDevice_Availability, storageMediaLocation_PhysicalMediaPresent=storageMediaLocation_PhysicalMediaPresent, fCPort_Description=fCPort_Description, softwareElement_CodeSet=softwareElement_CodeSet, storageMediaLocation_PhysicalMedia_HotSwappable=storageMediaLocation_PhysicalMedia_HotSwappable, fCPort_Realizes_scsiProtocolControllerIndex=fCPort_Realizes_scsiProtocolControllerIndex, softwareElement_Manufacturer=softwareElement_Manufacturer, changerDeviceEntry=changerDeviceEntry, mediaAccessDevice_Realizes_StorageLocationIndex=mediaAccessDevice_Realizes_StorageLocationIndex, scsiProtocolControllerIndex=scsiProtocolControllerIndex, driveDeletedTrap=driveDeletedTrap, storageMediaLocationGroup=storageMediaLocationGroup, softwareElement_IdentificationCode=softwareElement_IdentificationCode, chassis_ElementName=chassis_ElementName, computerSystemGroup=computerSystemGroup, storageMediaLocationTable=storageMediaLocationTable, subChassis_LockPresent=subChassis_LockPresent, subChassis_IsLocked=subChassis_IsLocked, numberOfStorageMediaLocations=numberOfStorageMediaLocations, trap_Association_MediaAccessDeviceIndex=trap_Association_MediaAccessDeviceIndex, fCPort_ElementName=fCPort_ElementName, UINT32=UINT32, trapChangerAlertSummary=trapChangerAlertSummary, storageMediaLocation_PhysicalMedia_Tag=storageMediaLocation_PhysicalMedia_Tag, endOfSmlMib=endOfSmlMib, softwareElementTable=softwareElementTable, numberOfChangerDevices=numberOfChangerDevices, changerDevice_DeviceID=changerDevice_DeviceID, mediaAccessDevice_Name=mediaAccessDevice_Name, softwareElement_SoftwareElementID=softwareElement_SoftwareElementID, mediaAccessDevice_Status=mediaAccessDevice_Status, limitedAccessPortIndex=limitedAccessPortIndex, product_Name=product_Name, storageLibrary_InstallDate=storageLibrary_InstallDate, subChassis_ElementName=subChassis_ElementName, mediaAccessDevice_OperationalStatus=mediaAccessDevice_OperationalStatus, storageMediaLocation_MediaTypesSupported=storageMediaLocation_MediaTypesSupported, mediaAccessDeviceObjectType=mediaAccessDeviceObjectType, mediaAccessDevice_NeedsCleaning=mediaAccessDevice_NeedsCleaning, physicalMediaDeletedTrap=physicalMediaDeletedTrap, chassis_Manufacturer=chassis_Manufacturer, subChassis_Tag=subChassis_Tag, computerSystem_Dedicated=computerSystem_Dedicated, computerSystem_Description=computerSystem_Description, fCPortController_OperationalStatus=fCPortController_OperationalStatus, snia=snia, changerDevice_MediaFlipSupported=changerDevice_MediaFlipSupported, limitedAccessPortGroup=limitedAccessPortGroup, currentOperationalStatus=currentOperationalStatus, computerSystem_ElementName=computerSystem_ElementName, physicalPackage_Manufacturer=physicalPackage_Manufacturer, scsiProtocolControllerTable=scsiProtocolControllerTable, physicalPackage_SerialNumber=physicalPackage_SerialNumber, computerSystem_Realizes_softwareElementIndex=computerSystem_Realizes_softwareElementIndex, physicalPackage_Realizes_MediaAccessDeviceIndex=physicalPackage_Realizes_MediaAccessDeviceIndex, chassis_LockPresent=chassis_LockPresent, softwareElement_LanguageEdition=softwareElement_LanguageEdition, trapObjects=trapObjects, subChassisTable=subChassisTable, softwareElement_Name=softwareElement_Name, changerDevice_ElementName=changerDevice_ElementName, fCPortTable=fCPortTable, mediaAccessDeviceTable=mediaAccessDeviceTable, softwareElement_SerialNumber=softwareElement_SerialNumber, fCPortEntry=fCPortEntry, storageMediaLocationIndex=storageMediaLocationIndex, physicalPackageEntry=physicalPackageEntry, softwareElement_BuildNumber=softwareElement_BuildNumber, subChassis_SerialNumber=subChassis_SerialNumber, changerDeviceTable=changerDeviceTable, libraryDeletedTrap=libraryDeletedTrap, chassis_Model=chassis_Model, trapDestinationEntry=trapDestinationEntry, scsiProtocolController_Availability=scsiProtocolController_Availability, changerDevice_OperationalStatus=changerDevice_OperationalStatus, changerDeletedTrap=changerDeletedTrap, limitedAccessPort_DeviceID=limitedAccessPort_DeviceID, trapDestinationTable=trapDestinationTable, numberOfsubChassis=numberOfsubChassis, storageMediaLocation_PhysicalMedia_MediaType=storageMediaLocation_PhysicalMedia_MediaType, chassis_Tag=chassis_Tag, scsiProtocolControllerGroup=scsiProtocolControllerGroup, fCPort_DeviceID=fCPort_DeviceID, chassisGroup=chassisGroup, physicalPackage_Tag=physicalPackage_Tag, limitedAccessPortTable=limitedAccessPortTable, computerSystem_PrimaryOwnerName=computerSystem_PrimaryOwnerName, subChassis_PackageType=subChassis_PackageType, UINT16=UINT16, product_Vendor=product_Vendor, chassis_SerialNumber=chassis_SerialNumber, changerOpStatusChangedTrap=changerOpStatusChangedTrap, softwareElementIndex=softwareElementIndex, storageLibrary_Status=storageLibrary_Status, storageMediaLocation_LocationCoordinates=storageMediaLocation_LocationCoordinates, storageMediaLocation_Tag=storageMediaLocation_Tag, physicalPackageTable=physicalPackageTable, common=common)
class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: dic = {} for i in range(len(nums)): if dic.get(target - nums[i]) is not None: return [dic[target - nums[i]], i] dic[nums[i]] = i
class Solution: def two_sum(self, nums: List[int], target: int) -> List[int]: dic = {} for i in range(len(nums)): if dic.get(target - nums[i]) is not None: return [dic[target - nums[i]], i] dic[nums[i]] = i
""" LeetCode #561: https://leetcode.com/problems/array-partition-i/description/ """ class Solution(object): def arrayPairSum(self, nums): """ :type nums: List[int] :rtype: int """ return sum(sorted(nums)[::2])
""" LeetCode #561: https://leetcode.com/problems/array-partition-i/description/ """ class Solution(object): def array_pair_sum(self, nums): """ :type nums: List[int] :rtype: int """ return sum(sorted(nums)[::2])
#!/usr/bin/env python3 ARP = [ {'mac_addr': '0062.ec29.70fe', 'ip_addr': '10.220.88.1', 'interface': 'gi0/0/0'}, {'mac_addr': 'c89c.1dea.0eb6', 'ip_addr': '10.220.88.20', 'interface': 'gi0/0/0'}, {'mac_addr': 'a093.5141.b780', 'ip_addr': '10.220.88.22', 'interface': 'gi0/0/0'}, {'mac_addr': '0001.00ff.0001', 'ip_addr': '10.220.88.37', 'interface': 'gi0/0/0'}, {'mac_addr': '0002.00ff.0001', 'ip_addr': '10.220.88.38', 'interface': 'gi0/0/0'}, ] print(ARP) x = type(ARP) print(x) y = len(ARP) print(y)
arp = [{'mac_addr': '0062.ec29.70fe', 'ip_addr': '10.220.88.1', 'interface': 'gi0/0/0'}, {'mac_addr': 'c89c.1dea.0eb6', 'ip_addr': '10.220.88.20', 'interface': 'gi0/0/0'}, {'mac_addr': 'a093.5141.b780', 'ip_addr': '10.220.88.22', 'interface': 'gi0/0/0'}, {'mac_addr': '0001.00ff.0001', 'ip_addr': '10.220.88.37', 'interface': 'gi0/0/0'}, {'mac_addr': '0002.00ff.0001', 'ip_addr': '10.220.88.38', 'interface': 'gi0/0/0'}] print(ARP) x = type(ARP) print(x) y = len(ARP) print(y)
#!/usr/bin/env python # encoding: utf-8 def run(whatweb, pluginname): whatweb.recog_from_file(pluginname, "Script/FocusSlide.js", "southidc") whatweb.recog_from_content(pluginname, "southidc") whatweb.recog_from_file(pluginname,"Script/Html.js", "southidc")
def run(whatweb, pluginname): whatweb.recog_from_file(pluginname, 'Script/FocusSlide.js', 'southidc') whatweb.recog_from_content(pluginname, 'southidc') whatweb.recog_from_file(pluginname, 'Script/Html.js', 'southidc')
''' width search Explore all of the neighbors nodes at the present depth ''' three_d_array = [[[i for k in range(4)] for j in range(4)] for i in range(4)] sum = three_d_array[1][2][3] + three_d_array[2][3][1] + three_d_array[0][0][0] print(sum)
""" width search Explore all of the neighbors nodes at the present depth """ three_d_array = [[[i for k in range(4)] for j in range(4)] for i in range(4)] sum = three_d_array[1][2][3] + three_d_array[2][3][1] + three_d_array[0][0][0] print(sum)
class MapperError(Exception): """Broken mapper configuration error.""" pass
class Mappererror(Exception): """Broken mapper configuration error.""" pass
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next """ 5 5 """ class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: root = n = ListNode(0) carry = 0 sum = 0 # loop through, add num and track carry # while both pointers valid while l1 or l2 or carry > 0: if l1: sum += l1.val l1 = l1.next if l2: sum += l2.val l2 = l2.next n.next = ListNode((sum+carry) % 10) n = n.next carry = (sum+carry) // 10 sum = 0 return root.next
""" 5 5 """ class Solution: def add_two_numbers(self, l1: ListNode, l2: ListNode) -> ListNode: root = n = list_node(0) carry = 0 sum = 0 while l1 or l2 or carry > 0: if l1: sum += l1.val l1 = l1.next if l2: sum += l2.val l2 = l2.next n.next = list_node((sum + carry) % 10) n = n.next carry = (sum + carry) // 10 sum = 0 return root.next
def txt_category_to_dict(category_str): """ Parameters ---------- category_str: str of nominal values from dataset meta information Returns ------- dict of the nominal values and their one letter encoding Example ------- "bell=b, convex=x" -> {"bell": "b", "convex": "x"} """ string_as_words = category_str.split() result_dict = {} for word in string_as_words: seperator_pos = word.find("=") key = word[: seperator_pos] val = word[seperator_pos + 1 :][0] result_dict[key] = val return result_dict def replace_comma_in_text(text): """ Parameters ---------- text: str of nominal values for a single mushroom species from primary_data_edited.csv Returns ------- replace commas outside of angular brackets with semicolons (but not inside of them) Example ------- text = "[a, b], [c, d]" return: "[a, b]; [c, d]" """ result_text = "" replace = True for sign in text: if sign == '[': replace = False if sign == ']': replace = True if sign == ',': if replace: result_text += ';' else: result_text += sign else: result_text += sign return result_text def generate_str_of_list_elements_with_indices(list_name, list_size): """ Parameters ---------- list_name: str, name of the list list_size: int, number of list elements Returns ------- str of list elements with angular bracket indexation separated with commas Example ------- list_name = "l" list_size = 3 return = "l[0], l[1], l[2]" """ result_str = "" for i in range(0, list_size): result_str += list_name + "[" + str(i) + "], " return result_str[: -2] # checks if a str is a number that could be interpreted as a float def is_number(val): """ Parameters ---------- val: str, arbitrary input Returns ------- bool, True if val is interpretable as a float and False else """ try: float(val) return True except ValueError: return False if __name__ == "__main__": print(txt_category_to_dict("cobwebby=c, evanescent=e, flaring=r, grooved=g"))
def txt_category_to_dict(category_str): """ Parameters ---------- category_str: str of nominal values from dataset meta information Returns ------- dict of the nominal values and their one letter encoding Example ------- "bell=b, convex=x" -> {"bell": "b", "convex": "x"} """ string_as_words = category_str.split() result_dict = {} for word in string_as_words: seperator_pos = word.find('=') key = word[:seperator_pos] val = word[seperator_pos + 1:][0] result_dict[key] = val return result_dict def replace_comma_in_text(text): """ Parameters ---------- text: str of nominal values for a single mushroom species from primary_data_edited.csv Returns ------- replace commas outside of angular brackets with semicolons (but not inside of them) Example ------- text = "[a, b], [c, d]" return: "[a, b]; [c, d]" """ result_text = '' replace = True for sign in text: if sign == '[': replace = False if sign == ']': replace = True if sign == ',': if replace: result_text += ';' else: result_text += sign else: result_text += sign return result_text def generate_str_of_list_elements_with_indices(list_name, list_size): """ Parameters ---------- list_name: str, name of the list list_size: int, number of list elements Returns ------- str of list elements with angular bracket indexation separated with commas Example ------- list_name = "l" list_size = 3 return = "l[0], l[1], l[2]" """ result_str = '' for i in range(0, list_size): result_str += list_name + '[' + str(i) + '], ' return result_str[:-2] def is_number(val): """ Parameters ---------- val: str, arbitrary input Returns ------- bool, True if val is interpretable as a float and False else """ try: float(val) return True except ValueError: return False if __name__ == '__main__': print(txt_category_to_dict('cobwebby=c, evanescent=e, flaring=r, grooved=g'))
""" Web fragments. """ __version__ = '0.3.2' default_app_config = 'web_fragments.apps.WebFragmentsConfig' # pylint: disable=invalid-name
""" Web fragments. """ __version__ = '0.3.2' default_app_config = 'web_fragments.apps.WebFragmentsConfig'
def f(x): print('a') y = x print('b') while y > 0: print('c') y -= 1 print('d') yield y print('e') print('f') return None for val in f(3): print(val) #gen = f(3) #print(gen) #print(gen.__next__()) #print(gen.__next__()) #print(gen.__next__()) #print(gen.__next__()) # test printing, but only the first chars that match CPython print(repr(f(0))[0:17]) print("PASS")
def f(x): print('a') y = x print('b') while y > 0: print('c') y -= 1 print('d') yield y print('e') print('f') return None for val in f(3): print(val) print(repr(f(0))[0:17]) print('PASS')
file = open("test/TopCompiler/"+input("filename: "), mode= "w") sizeOfFunc = input("size of func: ") lines = input("lines of code: ") out = [] for i in range(int(int(lines) / int(sizeOfFunc)+2)): out.append("def func"+str(i)+"() =\n") for c in range(int(sizeOfFunc)): out.append(' println "hello world" \n') file.write("".join(out)) file.close()
file = open('test/TopCompiler/' + input('filename: '), mode='w') size_of_func = input('size of func: ') lines = input('lines of code: ') out = [] for i in range(int(int(lines) / int(sizeOfFunc) + 2)): out.append('def func' + str(i) + '() =\n') for c in range(int(sizeOfFunc)): out.append(' println "hello world" \n') file.write(''.join(out)) file.close()
#! /usr/bin/env python3 ''' Disjoint Set Class that provides basic functionality. Implemented according the functionality provided here: https://en.wikipedia.org/wiki/Disjoint-set_data_structure @author: Paul Miller (github.com/138paulmiller) ''' class DisjointSet: ''' Disjoint Set : Utility class that helps implement Kruskal MST algorithm Allows to check whether to keys belong to the same set and to union sets together ''' class Element: def __init__(self, key): self.key = key self.parent = self self.rank = 0 def __eq__(self, other): return self.key == other.key def __ne__(self, other): return self.key != other.key def __init__(self): ''' Tree = element map where each node is a (key, parent, rank) Sets are represented as subtrees whose root is identified with a self referential parent ''' self.tree = {} def make_set(self, key): ''' Creates a new singleton set. @params key : id of the element @return None ''' # Create and add a new element to the tree e = self.Element(key) if not key in self.tree.keys(): self.tree[key] = e def find(self, key): ''' Finds a given element in the tree by the key. @params key(hashable) : id of the element @return Element : root of the set which contains element with the key ''' if key in self.tree.keys(): element = self.tree[key] # root is element with itself as parent # if not root continue if element.parent != element: element.parent = self.find(element.parent.key) return element.parent def union(self, element_a, element_b): ''' Creates a new set that contains all elements in both element_a and element_b's sets Pass into union the Elements returned by the find operation @params element_a(Element) : Element or key of set a element_b(Element) : Element of set b @return None ''' root_a = self.find(element_a.key) root_b = self.find(element_b.key) # if not in the same subtree (set) if root_a != root_b: #merge the sets if root_a.rank < root_b.rank: root_a.parent = root_b elif root_a.rank > root_b.rank: root_b.parent = root_a else: # same rank, set and increment arbitrary root as parent root_b.parent = root_a root_a.rank+=1
""" Disjoint Set Class that provides basic functionality. Implemented according the functionality provided here: https://en.wikipedia.org/wiki/Disjoint-set_data_structure @author: Paul Miller (github.com/138paulmiller) """ class Disjointset: """ Disjoint Set : Utility class that helps implement Kruskal MST algorithm Allows to check whether to keys belong to the same set and to union sets together """ class Element: def __init__(self, key): self.key = key self.parent = self self.rank = 0 def __eq__(self, other): return self.key == other.key def __ne__(self, other): return self.key != other.key def __init__(self): """ Tree = element map where each node is a (key, parent, rank) Sets are represented as subtrees whose root is identified with a self referential parent """ self.tree = {} def make_set(self, key): """ Creates a new singleton set. @params key : id of the element @return None """ e = self.Element(key) if not key in self.tree.keys(): self.tree[key] = e def find(self, key): """ Finds a given element in the tree by the key. @params key(hashable) : id of the element @return Element : root of the set which contains element with the key """ if key in self.tree.keys(): element = self.tree[key] if element.parent != element: element.parent = self.find(element.parent.key) return element.parent def union(self, element_a, element_b): """ Creates a new set that contains all elements in both element_a and element_b's sets Pass into union the Elements returned by the find operation @params element_a(Element) : Element or key of set a element_b(Element) : Element of set b @return None """ root_a = self.find(element_a.key) root_b = self.find(element_b.key) if root_a != root_b: if root_a.rank < root_b.rank: root_a.parent = root_b elif root_a.rank > root_b.rank: root_b.parent = root_a else: root_b.parent = root_a root_a.rank += 1
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under the GNU Public Licence, v2 or any higher version # # Please cite your use of MDAnalysis in published work: # # R. J. Gowers, M. Linke, J. Barnoud, T. J. E. Reddy, M. N. Melo, S. L. Seyler, # D. L. Dotson, J. Domanski, S. Buchoux, I. M. Kenney, and O. Beckstein. # MDAnalysis: A Python package for the rapid analysis of molecular dynamics # simulations. In S. Benthall and S. Rostrup editors, Proceedings of the 15th # Python in Science Conference, pages 102-109, Austin, TX, 2016. SciPy. # doi: 10.25080/majora-629e541a-00e # # N. Michaud-Agrawal, E. J. Denning, T. B. Woolf, and O. Beckstein. # MDAnalysis: A Toolkit for the Analysis of Molecular Dynamics Simulations. # J. Comput. Chem. 32 (2011), 2319--2327, doi:10.1002/jcc.21787 # """ :mod:`MDAnalysis.analysis` --- Analysis code based on MDAnalysis ================================================================ The :mod:`MDAnalysis.analysis` sub-package contains various recipes and algorithms that can be used to analyze MD trajectories. If you use them please check if the documentation mentions any specific caveats and also if there are any published papers associated with these algorithms. Available analysis modules -------------------------- :mod:`~MDAnalysis.analysis.align` Fitting and aligning of coordinate frames, including the option to use a sequence alignment to define equivalent atoms to fit on. :mod:`~MDAnalysis.analysis.contacts` Analyse the number of native contacts relative to a reference state, also known as a "q1-q2" analysis. :mod:`~MDAnalysis.analysis.density` Creating and manipulating densities such as the density ow water molecules around a protein. Makes use of the external GridDataFormats_ package. :mod:`~MDAnalysis.analysis.distances` Functions to calculate distances between atoms and selections; it contains the often-used :func:`~MDAnalysis.analysis.distances.distance_array` function. :mod:`~MDAnalysis.analysis.hbonds` Analyze hydrogen bonds, including both the per frame results as well as the dynamic properties and lifetimes. :mod:`~MDAnalysis.analysis.helanal` Analysis of helices with the HELANAL_ algorithm. :mod:`~MDAnalysis.analysis.hole` Run and process output from the :program:`HOLE` program to analyze pores, tunnels and cavities in proteins. :mod:`~MDAnalysis.analysis.gnm` Gaussian normal mode analysis of MD trajectories with the help of an elastic network. :mod:`~MDAnalysis.analysis.leaflet` Find lipids in the upper and lower (or inner and outer) leaflet of a bilayer; the algorithm can deal with any deformations as long as the two leaflets are topologically distinct. :mod:`~MDAnalysis.analysis.nuclinfo` Analyse the nucleic acid for the backbone dihedrals, chi, sugar pucker, and Watson-Crick distance (minor and major groove distances). :mod:`~MDAnalysis.analysis.psa` Perform Path Similarity Analysis (PSA) on a set of trajectories to measure their mutual similarities, including the ability to perform hierarchical clustering and generate heat map-dendrogram plots. :mod:`~MDAnalysis.analysis.rdf` Calculation of pair distribution functions :mod:`~MDAnalysis.analysis.rms` Calculation of RMSD and RMSF. :mod:`~MDAnalysis.analysis.waterdynamics` Analysis of water. :mod:`~MDAnalysis.analysis.legacy.x3dna` Analysis of helicoidal parameters driven by X3DNA_. (Note that this module is not fully supported any more and needs to be explicitly imported from :mod:`MDAnalysis.analysis.legacy`.) .. _GridDataFormats: https://github.com/orbeckst/GridDataFormats .. _HELANAL: http://www.ccrnp.ncifcrf.gov/users/kumarsan/HELANAL/helanal.html .. _X3DNA: http://x3dna.org/ .. versionchanged:: 0.10.0 The analysis submodules are not automatically imported any more. Manually import any submodule that you need. .. versionchanged:: 0.16.0 :mod:`~MDAnalysis.analysis.legacy.x3dna` was moved to the :mod:`MDAnalysis.analysis.legacy` package """ __all__ = [ 'align', 'base', 'contacts', 'density', 'distances', 'gnm', 'hbonds', 'hydrogenbonds', 'helanal', 'hole', 'leaflet', 'nuclinfo', 'polymer', 'psa', 'rdf', 'rdf_s', 'rms', 'waterdynamics', ]
""" :mod:`MDAnalysis.analysis` --- Analysis code based on MDAnalysis ================================================================ The :mod:`MDAnalysis.analysis` sub-package contains various recipes and algorithms that can be used to analyze MD trajectories. If you use them please check if the documentation mentions any specific caveats and also if there are any published papers associated with these algorithms. Available analysis modules -------------------------- :mod:`~MDAnalysis.analysis.align` Fitting and aligning of coordinate frames, including the option to use a sequence alignment to define equivalent atoms to fit on. :mod:`~MDAnalysis.analysis.contacts` Analyse the number of native contacts relative to a reference state, also known as a "q1-q2" analysis. :mod:`~MDAnalysis.analysis.density` Creating and manipulating densities such as the density ow water molecules around a protein. Makes use of the external GridDataFormats_ package. :mod:`~MDAnalysis.analysis.distances` Functions to calculate distances between atoms and selections; it contains the often-used :func:`~MDAnalysis.analysis.distances.distance_array` function. :mod:`~MDAnalysis.analysis.hbonds` Analyze hydrogen bonds, including both the per frame results as well as the dynamic properties and lifetimes. :mod:`~MDAnalysis.analysis.helanal` Analysis of helices with the HELANAL_ algorithm. :mod:`~MDAnalysis.analysis.hole` Run and process output from the :program:`HOLE` program to analyze pores, tunnels and cavities in proteins. :mod:`~MDAnalysis.analysis.gnm` Gaussian normal mode analysis of MD trajectories with the help of an elastic network. :mod:`~MDAnalysis.analysis.leaflet` Find lipids in the upper and lower (or inner and outer) leaflet of a bilayer; the algorithm can deal with any deformations as long as the two leaflets are topologically distinct. :mod:`~MDAnalysis.analysis.nuclinfo` Analyse the nucleic acid for the backbone dihedrals, chi, sugar pucker, and Watson-Crick distance (minor and major groove distances). :mod:`~MDAnalysis.analysis.psa` Perform Path Similarity Analysis (PSA) on a set of trajectories to measure their mutual similarities, including the ability to perform hierarchical clustering and generate heat map-dendrogram plots. :mod:`~MDAnalysis.analysis.rdf` Calculation of pair distribution functions :mod:`~MDAnalysis.analysis.rms` Calculation of RMSD and RMSF. :mod:`~MDAnalysis.analysis.waterdynamics` Analysis of water. :mod:`~MDAnalysis.analysis.legacy.x3dna` Analysis of helicoidal parameters driven by X3DNA_. (Note that this module is not fully supported any more and needs to be explicitly imported from :mod:`MDAnalysis.analysis.legacy`.) .. _GridDataFormats: https://github.com/orbeckst/GridDataFormats .. _HELANAL: http://www.ccrnp.ncifcrf.gov/users/kumarsan/HELANAL/helanal.html .. _X3DNA: http://x3dna.org/ .. versionchanged:: 0.10.0 The analysis submodules are not automatically imported any more. Manually import any submodule that you need. .. versionchanged:: 0.16.0 :mod:`~MDAnalysis.analysis.legacy.x3dna` was moved to the :mod:`MDAnalysis.analysis.legacy` package """ __all__ = ['align', 'base', 'contacts', 'density', 'distances', 'gnm', 'hbonds', 'hydrogenbonds', 'helanal', 'hole', 'leaflet', 'nuclinfo', 'polymer', 'psa', 'rdf', 'rdf_s', 'rms', 'waterdynamics']
#!/usr/bin/python # https://code.google.com/codejam/contest/2933486/dashboard # application of insertion sort N = int(input().strip()) for i in range(N): M = int(input().strip()) deck = [] count = 0 for j in range(M): deck.append(input().strip()) p = 0 for k in range(len(deck)): if k > 0 and deck[k] < deck[p]: count += 1 else: p = k print(f'Case #{i + 1}: {count}')
n = int(input().strip()) for i in range(N): m = int(input().strip()) deck = [] count = 0 for j in range(M): deck.append(input().strip()) p = 0 for k in range(len(deck)): if k > 0 and deck[k] < deck[p]: count += 1 else: p = k print(f'Case #{i + 1}: {count}')
def sum(arr: list, start: int, end: int)->int: if start > end: return 0 elif start == end: return arr[start] else: midpoint: int = int(start + (end - start) / 2) return sum(arr, start, midpoint) + sum(arr, midpoint + 1, end) numbers1: list = [] numbers2: list = [1] numbers3: list = [1, 2, 3] print(sum(numbers1, 0, len(numbers1) - 1)) print(sum(numbers2, 0, len(numbers2) - 1)) print(sum(numbers3, 0, len(numbers3) - 1))
def sum(arr: list, start: int, end: int) -> int: if start > end: return 0 elif start == end: return arr[start] else: midpoint: int = int(start + (end - start) / 2) return sum(arr, start, midpoint) + sum(arr, midpoint + 1, end) numbers1: list = [] numbers2: list = [1] numbers3: list = [1, 2, 3] print(sum(numbers1, 0, len(numbers1) - 1)) print(sum(numbers2, 0, len(numbers2) - 1)) print(sum(numbers3, 0, len(numbers3) - 1))
class Car: def __init__(self, pMake, pModel, pColor, pPrice): self.make = pMake self.model = pModel self.color = pColor self.price = pPrice def __str__(self): return 'Make = %s, Model = %s, Color = %s, Price = %s' %(self.make, self.model, self.color, self.price) def selecColor(self): self.color = input('What is the new color? ') def calculateTax(self): priceWithTax = 1.1*self.price return priceWithTax myFirstCar = Car(pMake = 'Honda', pModel = 'Civic', pColor = 'White', pPrice = '15000') print(myFirstCar) # changing the price from 15000 to 18000 myFirstCar.price = 18000 print(myFirstCar) myFirstCar.color = 'Orange' print(myFirstCar) finalPrice = myFirstCar.calculateTax() print('The final price is $%s' %(finalPrice))
class Car: def __init__(self, pMake, pModel, pColor, pPrice): self.make = pMake self.model = pModel self.color = pColor self.price = pPrice def __str__(self): return 'Make = %s, Model = %s, Color = %s, Price = %s' % (self.make, self.model, self.color, self.price) def selec_color(self): self.color = input('What is the new color? ') def calculate_tax(self): price_with_tax = 1.1 * self.price return priceWithTax my_first_car = car(pMake='Honda', pModel='Civic', pColor='White', pPrice='15000') print(myFirstCar) myFirstCar.price = 18000 print(myFirstCar) myFirstCar.color = 'Orange' print(myFirstCar) final_price = myFirstCar.calculateTax() print('The final price is $%s' % finalPrice)
class SimpleTreeNode: def __init__(self, val, left=None, right=None) -> None: self.val = val self.left = left self.right = right class AdvanceTreeNode: def __init__(self, val, parent=None, left=None, right=None) -> None: self.val = val self.parent: AdvanceTreeNode = parent self.left: AdvanceTreeNode = left self.right: AdvanceTreeNode = right class SingleListNode: def __init__(self, val, next=None) -> None: self.val = val self.next = next class DoubleListNode: def __init__(self, val, next=None, prev=None) -> None: self.val = val self.next = next self.prev = prev
class Simpletreenode: def __init__(self, val, left=None, right=None) -> None: self.val = val self.left = left self.right = right class Advancetreenode: def __init__(self, val, parent=None, left=None, right=None) -> None: self.val = val self.parent: AdvanceTreeNode = parent self.left: AdvanceTreeNode = left self.right: AdvanceTreeNode = right class Singlelistnode: def __init__(self, val, next=None) -> None: self.val = val self.next = next class Doublelistnode: def __init__(self, val, next=None, prev=None) -> None: self.val = val self.next = next self.prev = prev
# # PySNMP MIB module CISCO-OPTICAL-MONITOR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-OPTICAL-MONITOR-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:08:51 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") Unsigned32, Bits, ObjectIdentity, MibIdentifier, ModuleIdentity, TimeTicks, Counter32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, iso, Gauge32, Integer32, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "Unsigned32", "Bits", "ObjectIdentity", "MibIdentifier", "ModuleIdentity", "TimeTicks", "Counter32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "iso", "Gauge32", "Integer32", "Counter64") TextualConvention, TimeStamp, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TimeStamp", "DisplayString") ciscoOpticalMonitorMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 264)) ciscoOpticalMonitorMIB.setRevisions(('2007-01-02 00:00', '2002-05-10 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setRevisionsDescriptions(('Add cOpticalMonIfTimeGroup, cOpticalMIBEnableConfigGroup, cOpticalMIBIntervalConfigGroup, cOpticalMonThreshSourceGroup.', 'The initial revision of this MIB.',)) if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setLastUpdated('200701020000Z') if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 Tel: +1 800 553-NETS E-mail: [email protected]') if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setDescription('This MIB module defines objects to monitor optical characteristics and set corresponding thresholds on the optical interfaces in a network element. ') class OpticalParameterType(TextualConvention, Integer32): description = 'This value indicates the optical parameter that is being monitored. Valid values are - power (1) : Optical Power (AC + DC) in 1/10ths of dBm acPower (2) : Optical AC Power in 1/10ths of dBm ambientTemp (3) : Ambient Temperature in 1/10ths of degrees centigrade laserTemp (4) : Laser Temperature in 1/10ths of degrees centigrade biasCurrent (5) : Laser bias current in 100s of microamperes peltierCurrent (6) : Laser peltier current in milliamperes xcvrVoltage (7) : Transceiver voltage in millivolts ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7)) namedValues = NamedValues(("power", 1), ("acPower", 2), ("ambientTemp", 3), ("laserTemp", 4), ("biasCurrent", 5), ("peltierCurrent", 6), ("xcvrVoltage", 7)) class OpticalParameterValue(TextualConvention, Integer32): description = "The value of the optical parameter that is being monitored. The range of values varies depending on the type of optical parameter being monitored, as identified by a corresponding object with syntax OpticalParameterType. When the optical parameter being monitored is 'power' or 'acPower', the supported range is from -400 to 250, in 1/10ths of dBm. Example: A value of -300 represents a power level of -30.0 dBm. When the optical parameter being monitored is 'laserTemp' or 'ambientTemp', the supported range is from -500 to 850, in 1/10ths of degrees centigrade. Example: A value of 235 represents a temperature reading of 23.5 degrees C. When the optical parameter being monitored is 'biasCurrent', the supported range is from 0 to 10000, in 100s of microamperes. Example: A value of 500 represents a bias current reading of 50,000 microamperes. When the optical parameter being monitored is 'peltierCurrent', the supported range is from -10000 to 10000, in milliamperes. When the optical parameter being monitored is 'xcvrVoltage', the supported range is from 0 to 10000, in millivolts. The distinguished value of '-1000000' indicates that the object has not yet been initialized or does not apply. " status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(-1000000, 1000000) class OpticalIfDirection(TextualConvention, Integer32): description = 'This value indicates the direction being monitored at the optical interface. ' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("receive", 1), ("transmit", 2), ("notApplicable", 3)) class OpticalIfMonLocation(TextualConvention, Integer32): description = "This value applies when there are multiple points at which optical characteristics can be measured, in the given direction, at an interface. It indicates whether the optical characteristics are measured before or after adjustment (e.g. optical amplification or attenuation). The codepoint 'notApplicable' should be used if no amplifier/attenuator exists at an interface. " status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("beforeAdjustment", 1), ("afterAdjustment", 2), ("notApplicable", 3)) class OpticalAlarmStatus(TextualConvention, OctetString): reference = 'Telcordia Technologies Generic Requirements GR-2918-CORE, Issue 4, December 1999, Section 8.11' description = 'A bitmap that indicates the current status of thresholds on an interface. The bit is set to 1 if the threshold is currently being exceeded on the interface and will be set to 0 otherwise. (MSB) (LSB) 7 6 5 4 3 2 1 0 +----------------------+ | | +----------------------+ | | | | | | | +-- High alarm threshold | | +----- High warning threshold | +-------- Low alarm threshold +----------- Low warning threshold To minimize the probability of prematurely reacting to momentary signal variations, a soak time may be incorporated into the status indications in the following manner. The indication is set when the threshold violation persists for a period of time that exceeds the set soak interval. The indication is cleared when no threshold violation occurs for a period of time which exceeds the clear soak interval. In GR-2918-CORE, the recommended set soak interval is 2.5 seconds (plus/minus 0.5 seconds), and the recommended clear soak interval is 10 seconds (plus/minus 0.5 seconds). ' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 1) fixedLength = 1 class OpticalAlarmSeverity(TextualConvention, Integer32): reference = 'Telcordia Technologies Generic Requirements GR-474-CORE, Issue 1, December 1997, Section 2.2' description = "The severity of a trouble condition. A smaller enumerated integer value indicates that the condition is more severe. The severities are defined as follows: 'critical' An alarm used to indicate a severe, service-affecting condition has occurred and that immediate corrective action is imperative, regardless of the time of day or day of the week. 'major' An alarm used for hardware or software conditions that indicate a serious disruption of service or malfunctioning or failure of important hardware. These troubles require the immediate attention and response of a technician to restore or maintain system capability. The urgency is less than in critical situations because of a lesser immediate or impending effect on service or system performance. 'minor' An alarm used for troubles that do not have a serious effect on service to customers or for troubles in hardware that are not essential to the operation of the system. 'notAlarmed' An event used for troubles that do not require action, for troubles that are reported as a result of manually initiated diagnostics, or for transient events such as crossing warning thresholds. This event can also be used to raise attention to a condition that could possibly be an impending problem. 'notReported' An event used for troubles similar to those described under 'notAlarmed', and that do not cause notifications to be generated. The information for these events is retrievable from the network element. 'cleared' This value indicates that a previously occuring alarm condition has been cleared, or that no trouble condition is present. " status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6)) namedValues = NamedValues(("critical", 1), ("major", 2), ("minor", 3), ("notAlarmed", 4), ("notReported", 5), ("cleared", 6)) class OpticalAlarmSeverityOrZero(TextualConvention, Integer32): description = "A value of either '0' or a valid optical alarm severity." status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 6) class OpticalPMPeriod(TextualConvention, Integer32): description = 'This value indicates the time period over which performance monitoring data has been collected.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("fifteenMin", 1), ("twentyFourHour", 2)) cOpticalMonitorMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1)) cOpticalMonGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1)) cOpticalPMGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2)) cOpticalMonTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1), ) if mibBuilder.loadTexts: cOpticalMonTable.setStatus('current') if mibBuilder.loadTexts: cOpticalMonTable.setDescription('This table provides objects to monitor optical parameters in a network element. It also provides objects for setting high and low threshold levels, with configurable severities, on these monitored parameters.') cOpticalMonEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonDirection"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonLocation"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonParameterType")) if mibBuilder.loadTexts: cOpticalMonEntry.setStatus('current') if mibBuilder.loadTexts: cOpticalMonEntry.setDescription('An entry in the cOpticalMonTable provides objects to monitor an optical parameter and set threshold levels on that parameter, at an optical interface. Note that the set of monitored optical parameters may vary based on interface type, direction, and monitoring location. Examples of interfaces that can have an entry in this table include optical transceivers, interfaces before and after optical amplifiers, and interfaces before and after optical attenuators.') cOpticalMonDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 1), OpticalIfDirection()) if mibBuilder.loadTexts: cOpticalMonDirection.setStatus('current') if mibBuilder.loadTexts: cOpticalMonDirection.setDescription('This object indicates the direction monitored for the optical interface, in this entry.') cOpticalMonLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 2), OpticalIfMonLocation()) if mibBuilder.loadTexts: cOpticalMonLocation.setStatus('current') if mibBuilder.loadTexts: cOpticalMonLocation.setDescription('This object indicates whether the optical characteristics are measured before or after adjustment (e.g. optical amplification or attenuation), at this interface.') cOpticalMonParameterType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 3), OpticalParameterType()) if mibBuilder.loadTexts: cOpticalMonParameterType.setStatus('current') if mibBuilder.loadTexts: cOpticalMonParameterType.setDescription('This object specifies the optical parameter that is being monitored in this entry.') cOpticalParameterValue = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 4), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParameterValue.setStatus('current') if mibBuilder.loadTexts: cOpticalParameterValue.setDescription('This object gives the value measured for the particular optical parameter specified by the cOpticalMonParameterType object.') cOpticalParamHighAlarmThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 5), OpticalParameterValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamHighAlarmThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamHighAlarmThresh.setDescription("This object is used to set a high alarm threshold on the optical parameter being monitored. An alarm condition will be raised if the value given by cOpticalParameterValue goes from below the value configured in this object to above the value configured in this object, or if the initial value of cOpticalParameterValue exceeds the value configured in this object. For network elements that incorporate a soak time in the status indications, this alarm will be indicated in the cOpticalParamAlarmStatus object only after it persists for a period of time that equals the set soak interval. The severity level of the alarm is specified by the cOpticalParamHighAlarmSev object. When the cOpticalMonParameterType object is set to 'power' for the receive direction at a transceiver, this object specifies the receiver saturation level.") cOpticalParamHighAlarmSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 6), OpticalAlarmSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamHighAlarmSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamHighAlarmSev.setDescription("This object is used to specify a severity level associated with the high alarm threshold given by the cOpticalParamHighAlarmThresh object. The values 'notAlarmed', 'notReported', and 'cleared' do not apply. The severity level configured in this object must be higher than the level configured in the cOpticalParamHighWarningSev object.") cOpticalParamHighWarningThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 7), OpticalParameterValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamHighWarningThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamHighWarningThresh.setDescription('This object is used to set a high warning threshold on the optical parameter being monitored. A threshold crossing condition will be indicated if the value given by cOpticalParameterValue goes from below the value configured in this object to above the value configured in this object, or if the initial value of cOpticalParameterValue exceeds the value configured in this object. For network elements that incorporate a soak time in the status indications, this threshold violation will be indicated in the cOpticalParamAlarmStatus object only after it persists for a period of time that equals the set soak interval. This threshold crossing may or may not be alarmed or reported, based on the severity level specified by the cOpticalParamHighWarningSev object.') cOpticalParamHighWarningSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 8), OpticalAlarmSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamHighWarningSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamHighWarningSev.setDescription("This object is used to specify a severity level associated with the high warning threshold given by the cOpticalParamHighWarningThresh object. The values 'critical', 'major', and 'cleared' do not apply. The severity level configured in this object must be lower than the level configured in the cOpticalParamHighAlarmSev object. If this object is set to 'notReported', no notifications will be generated when this threshold is exceeded, irrespective of the value configured in the cOpticalNotifyEnable object.") cOpticalParamLowAlarmThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 9), OpticalParameterValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamLowAlarmThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamLowAlarmThresh.setDescription("This object is used to set a low alarm threshold on the optical parameter being monitored. An alarm condition will be raised if the value given by cOpticalParameterValue goes from above the value configured in this object to below the value configured in this object, or if the initial value of cOpticalParameterValue is lower than the value configured in this object. For network elements that incorporate a soak time in the status indications, this alarm will be indicated in the cOpticalParamAlarmStatus object only after it persists for a period of time that equals the set soak interval. The severity level of this alarm is specified by the cOpticalParamLowAlarmSev object. When the cOpticalMonParameterType object is set to 'power' for the receive direction and when the interface supports alarms based on loss of light, this object specifies the optical power threshold for declaring loss of light. Also, when optical amplifiers are present in the network, in the receive direction, this value may need to be configured, since the noise floor may be higher than the minimum sensitivity of the receiver.") cOpticalParamLowAlarmSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 10), OpticalAlarmSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamLowAlarmSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamLowAlarmSev.setDescription("This object is used to specify a severity level associated with the low alarm threshold given by the cOpticalParamLowAlarmThresh object. The values 'notAlarmed', 'notReported', and 'cleared' do not apply. The severity level configured in this object must be higher than the level configured in the cOpticalParamLowWarningSev object.") cOpticalParamLowWarningThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 11), OpticalParameterValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamLowWarningThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamLowWarningThresh.setDescription('This object is used to set a low warning threshold on the optical parameter being monitored. A threshold crossing condition will be indicated if the value given by cOpticalParameterValue goes from above the value configured in this object to below the value configured in this object, or if the initial value of cOpticalParameterValue object is lower than the value configured in this object. For network elements that incorporate a soak time in the status indications, this threshold violation will be indicated in the cOpticalParamAlarmStatus object only after it persists for a period of time that equals the set soak interval. This threshold crossing may or may not be alarmed or reported, based on the severity level specified by the cOpticalParamLowWarningSev object.') cOpticalParamLowWarningSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 12), OpticalAlarmSeverity()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamLowWarningSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamLowWarningSev.setDescription("This object is used to specify a severity level associated with the low warning threshold given by the cOpticalParamLowWarningThresh object. The values 'critical', 'major', and 'cleared' do not apply. The severity level configured in this object must be lower than the level configured in the cOpticalParamLowAlarmSev object. If this object is set to 'notReported', no notifications will be generated when this threshold is exceeded, irrespective of the value configured in the cOpticalNotifyEnable object.") cOpticalParamAlarmStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 13), OpticalAlarmStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParamAlarmStatus.setStatus('current') if mibBuilder.loadTexts: cOpticalParamAlarmStatus.setDescription('This object is used to indicate the current status of the thresholds for the monitored optical parameter on the interface. If a threshold is currently being exceeded on the interface, the corresponding bit in this object will be set to 1. Otherwise, the bit will be set to 0.') cOpticalParamAlarmCurMaxThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 14), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxThresh.setDescription("This object indicates the threshold value of the highest severity threshold that is currently being exceeded on the interface, for the optical parameter. If no threshold value is currently being exceeded, then the value '-1000000' is returned.") cOpticalParamAlarmCurMaxSev = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 15), OpticalAlarmSeverity()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxSev.setDescription('This object indicates the maximum severity of any thresholds that are currently being exceeded on the interface, for the optical parameter.') cOpticalParamAlarmLastChange = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 16), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalParamAlarmLastChange.setStatus('current') if mibBuilder.loadTexts: cOpticalParamAlarmLastChange.setDescription('This object specifies the value of sysUpTime at the last time a threshold related to a particular optical parameter was exceeded or cleared on the interface.') cOpticalMon15MinValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 17), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalMon15MinValidIntervals.setStatus('current') if mibBuilder.loadTexts: cOpticalMon15MinValidIntervals.setDescription('This object gives the number of previous 15 minute intervals for which valid performance monitoring data has been stored on the interface. The value of this object will be n (where n is the maximum number of 15 minute intervals supported at this interface), unless the measurement was (re-)started within the last (nx15) minutes, in which case the value will be the number of previous 15 minute intervals for which the agent has some data.') cOpticalMon24HrValidIntervals = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 18), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalMon24HrValidIntervals.setStatus('current') if mibBuilder.loadTexts: cOpticalMon24HrValidIntervals.setDescription('This object gives the number of previous 24 hour intervals for which valid performance monitoring data has been stored on the interface. The value of this object will be 0 if the measurement was (re-)started within the last 24 hours, or 1 otherwise.') cOpticalParamThreshSource = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 19), Bits().clone(namedValues=NamedValues(("highAlarmDefThresh", 0), ("highWarnDefThresh", 1), ("lowAlarmDefThresh", 2), ("lowWarnDefThresh", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalParamThreshSource.setStatus('current') if mibBuilder.loadTexts: cOpticalParamThreshSource.setDescription("This object indicates if the current value of a particular threshold in this entry is user configured value or it is a system default value. It also allows user to specify the list of thresholds for this entry which should be restored to their system default values. The bit 'highAlarmThresh' corresponds to the object cOpticalParamHighAlarmThresh. The bit 'highWarnThresh' corresponds to the object cOpticalParamHighWarningThresh. The bit 'lowAlarmThresh' corresponds to the object cOpticalParamLowAlarmThresh. The bit 'lowWarnThresh' corresponds to the object cOpticalParamLowWarningThresh. A value of 0 for a bit indicates that corresponding object has system default value of threshold. A value of 1 for a bit indicates that corresponding object has user configured threshold value. A user may only change value of each of the bits to zero. Setting a bit to 0 will reset the corresponding threshold to its default value. System will change a bit from 0 to 1 when its corresponding threshold is changed by user from its default to any other value.") cOpticalNotifyEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 2), OpticalAlarmSeverityOrZero()).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalNotifyEnable.setStatus('current') if mibBuilder.loadTexts: cOpticalNotifyEnable.setDescription("This object specifies the minimum severity threshold governing the generation of cOpticalMonParameterStatus notifications. For example, if the value of this object is set to 'major', then the agent generates these notifications if and only if the severity of the alarm being indicated is 'major' or 'critical'. The values of 'notReported', and 'cleared' do not apply. The value of '0' disables the generation of notifications.") cOpticalMonEnable = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 3), Bits().clone(namedValues=NamedValues(("all", 0)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalMonEnable.setStatus('current') if mibBuilder.loadTexts: cOpticalMonEnable.setDescription("This object specifies the types of transceivers for which optical monitoring is enabled. A value of 1 for the bit 'all', specifies that optical monitoring functionality is enabled for all the types of transceivers which are supported by system and have optical monitoring capability.") cOpticalMonPollInterval = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 4), Unsigned32()).setUnits('minutes').setMaxAccess("readwrite") if mibBuilder.loadTexts: cOpticalMonPollInterval.setStatus('current') if mibBuilder.loadTexts: cOpticalMonPollInterval.setDescription('This object specifies the interval in minutes after which optical transceiver data will be polled by system repeatedly and updated in cOpticalMonTable when one or more bits in cOpticalMonEnable is set.') cOpticalMonIfTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5), ) if mibBuilder.loadTexts: cOpticalMonIfTable.setStatus('current') if mibBuilder.loadTexts: cOpticalMonIfTable.setDescription('This table contains the list of optical interfaces populated in cOpticalMonTable.') cOpticalMonIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cOpticalMonIfEntry.setStatus('current') if mibBuilder.loadTexts: cOpticalMonIfEntry.setDescription('An entry containing the information for a particular optical interface.') cOpticalMonIfTimeInSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1, 1), Unsigned32()).setUnits('seconds').setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalMonIfTimeInSlot.setStatus('current') if mibBuilder.loadTexts: cOpticalMonIfTimeInSlot.setDescription('This object indicates when this optical transceiver was detected by the system.') cOpticalPMCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1), ) if mibBuilder.loadTexts: cOpticalPMCurrentTable.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentTable.setDescription('This table contains performance monitoring data for the various optical parameters, collected over the current 15 minute or the current 24 hour interval.') cOpticalPMCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1), ).setIndexNames((0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentPeriod"), (0, "IF-MIB", "ifIndex"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentDirection"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentLocation"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentParamType")) if mibBuilder.loadTexts: cOpticalPMCurrentEntry.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentEntry.setDescription('An entry in the cOpticalPMCurrentTable. It contains performance monitoring data for a monitored optical parameter at an interface, collected over the current 15 minute or the current 24 hour interval. Note that the set of monitored optical parameters may vary based on interface type, direction, and monitoring location. Examples of interfaces that can have an entry in this table include optical transceivers, interfaces before and after optical amplifiers, and interfaces before and after optical attenuators.') cOpticalPMCurrentPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 1), OpticalPMPeriod()) if mibBuilder.loadTexts: cOpticalPMCurrentPeriod.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentPeriod.setDescription('This object indicates whether the optical parameter values given in this entry are collected over the current 15 minute or the current 24 hour interval.') cOpticalPMCurrentDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 2), OpticalIfDirection()) if mibBuilder.loadTexts: cOpticalPMCurrentDirection.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentDirection.setDescription('This object indicates the direction monitored for the optical interface, in this entry.') cOpticalPMCurrentLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 3), OpticalIfMonLocation()) if mibBuilder.loadTexts: cOpticalPMCurrentLocation.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentLocation.setDescription('This object indicates whether the optical characteristics are measured before or after adjustment (e.g. optical amplification or attenuation), at this interface.') cOpticalPMCurrentParamType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 4), OpticalParameterType()) if mibBuilder.loadTexts: cOpticalPMCurrentParamType.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentParamType.setDescription('This object specifies the optical parameter that is being monitored, in this entry.') cOpticalPMCurrentMaxParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 5), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMCurrentMaxParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentMaxParam.setDescription('This object gives the maximum value measured for the monitored optical parameter, in the current 15 minute or the current 24 hour interval.') cOpticalPMCurrentMinParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 6), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMCurrentMinParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentMinParam.setDescription('This object gives the minimum value measured for the monitored optical parameter, in the current 15 minute or the current 24 hour interval.') cOpticalPMCurrentMeanParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 7), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMCurrentMeanParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentMeanParam.setDescription('This object gives the average value of the monitored optical parameter, in the current 15 minute or the current 24 hour interval.') cOpticalPMCurrentUnavailSecs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 86400))).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMCurrentUnavailSecs.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentUnavailSecs.setDescription('This object is used to indicate the number of seconds, in the current 15 minute or the current 24 hour interval, for which the optical performance data is not accounted for. In the receive direction, the performance data could be unavailable during these periods for multiple reasons like the interface being administratively down or if there is a Loss of Light alarm on the interface. In the transmit direction, performance data could be unavailable when the laser is shutdown.') cOpticalPMIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2), ) if mibBuilder.loadTexts: cOpticalPMIntervalTable.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalTable.setDescription('This table stores performance monitoring data for the various optical parameters, collected over previous intervals. This table can have entries for one complete 24 hour interval and up to 96 complete 15 minute intervals. A system is required to store at least 4 completed 15 minute intervals. The number of valid 15 minute intervals in this table is indicated by the cOpticalMon15MinValidIntervals object and the number of valid 24 hour intervals is indicated by the cOpticalMon24HrValidIntervals object.') cOpticalPMIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1), ).setIndexNames((0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalPeriod"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalNumber"), (0, "IF-MIB", "ifIndex"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalDirection"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalLocation"), (0, "CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalParamType")) if mibBuilder.loadTexts: cOpticalPMIntervalEntry.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalEntry.setDescription('An entry in the cOpticalPMIntervalTable. It contains performance monitoring data for an optical parameter, collected over a previous interval. Note that the set of monitored optical parameters may vary based on interface type, direction, and monitoring location. Examples of interfaces that can have an entry in this table include optical transceivers, interfaces before and after optical amplifiers, and interfaces before and after optical attenuators.') cOpticalPMIntervalPeriod = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 1), OpticalPMPeriod()) if mibBuilder.loadTexts: cOpticalPMIntervalPeriod.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalPeriod.setDescription('This object indicates whether the optical parameter values, given in this entry, are collected over a period of 15 minutes or 24 hours.') cOpticalPMIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))) if mibBuilder.loadTexts: cOpticalPMIntervalNumber.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalNumber.setDescription('A number between 1 and 96, which identifies the interval for which the set of optical parameter values is available. The interval identified by 1 is the most recently completed 15 minute or 24 hour interval, and the interval identified by N is the interval immediately preceding the one identified by N-1.') cOpticalPMIntervalDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 3), OpticalIfDirection()) if mibBuilder.loadTexts: cOpticalPMIntervalDirection.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalDirection.setDescription('This object indicates the direction monitored for the optical interface, in this entry.') cOpticalPMIntervalLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 4), OpticalIfMonLocation()) if mibBuilder.loadTexts: cOpticalPMIntervalLocation.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalLocation.setDescription('This object indicates whether the optical characteristics are measured before or after adjustment (e.g. optical amplification or attenuation), at this interface.') cOpticalPMIntervalParamType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 5), OpticalParameterType()) if mibBuilder.loadTexts: cOpticalPMIntervalParamType.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalParamType.setDescription('This object specifies the optical parameter that is being monitored, in this entry.') cOpticalPMIntervalMaxParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 6), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMIntervalMaxParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalMaxParam.setDescription('This object gives the maximum value measured for the optical parameter, in a particular 15 minute or 24 hour interval.') cOpticalPMIntervalMinParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 7), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMIntervalMinParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalMinParam.setDescription('This object gives the minimum value measured for the optical parameter, in a particular 15 minute or 24 hour interval.') cOpticalPMIntervalMeanParam = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 8), OpticalParameterValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMIntervalMeanParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalMeanParam.setDescription('This object gives the average value of the measured optical parameter, in a particular 15 minute or 24 hour interval.') cOpticalPMIntervalUnavailSecs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 86400))).setMaxAccess("readonly") if mibBuilder.loadTexts: cOpticalPMIntervalUnavailSecs.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalUnavailSecs.setDescription('This object is used to indicate the number of seconds, in the particular 15 minute or 24 hour interval, for which the optical performance data is not accounted for. In the receive direction, the performance data could be unavailable during these periods for multiple reasons like the interface being administratively down or if there is a Loss of Light alarm on the interface. In the transmit direction, performance data could be unavailable when the laser is shutdown.') cOpticalMonitorMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2)) cOpticalMonNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0)) cOpticalMonParameterStatus = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0, 1)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParameterValue"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmStatus"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmLastChange")) if mibBuilder.loadTexts: cOpticalMonParameterStatus.setStatus('current') if mibBuilder.loadTexts: cOpticalMonParameterStatus.setDescription("This notification is sent when any threshold related to an optical parameter is exceeded or cleared on an interface. This notification may be suppressed under the following conditions: - depending on the value of the cOpticalNotifyEnable object, or - if the severity of the threshold as specified by the cOpticalParamHighWarningSev or cOpticalParamLowWarningSev object is 'notReported'. ") cOpticalMonitorMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3)) cOpticalMonitorMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1)) cOpticalMonitorMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2)) cOpticalMonitorMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 1)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBMonGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBThresholdGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBSeverityGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBPMGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifyEnableGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMonitorMIBCompliance = cOpticalMonitorMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: cOpticalMonitorMIBCompliance.setDescription('The compliance statement for network elements that monitor optical characteristics and set thresholds on the optical interfaces in a network element.') cOpticalMonitorMIBComplianceRev = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 2)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBMonGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBThresholdGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBSeverityGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBPMGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonIfTimeGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifyEnableGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBNotifGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBEnableConfigGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMIBIntervalConfigGroup"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonThreshSourceGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMonitorMIBComplianceRev = cOpticalMonitorMIBComplianceRev.setStatus('current') if mibBuilder.loadTexts: cOpticalMonitorMIBComplianceRev.setDescription('The compliance statement for network elements that monitor optical characteristics and set thresholds on the optical interfaces in a network element.') cOpticalMIBMonGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 1)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParameterValue")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBMonGroup = cOpticalMIBMonGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBMonGroup.setDescription('A mandatory object that provides monitoring of optical characteristics.') cOpticalMIBThresholdGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 2)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighAlarmThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighWarningThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowAlarmThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowWarningThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmStatus"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxThresh"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmLastChange")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBThresholdGroup = cOpticalMIBThresholdGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBThresholdGroup.setDescription('A collection of objects that support thresholds on optical parameters and provide status information when the thresholds are exceeded or cleared.') cOpticalMIBSeverityGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 3)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighAlarmSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamHighWarningSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowAlarmSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamLowWarningSev"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamAlarmCurMaxSev")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBSeverityGroup = cOpticalMIBSeverityGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBSeverityGroup.setDescription('A collection of objects that support severities for thresholds on optical parameters.') cOpticalMIBPMGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 4)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMon15MinValidIntervals"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMon24HrValidIntervals"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentMaxParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentMinParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentMeanParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMCurrentUnavailSecs"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalMaxParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalMinParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalMeanParam"), ("CISCO-OPTICAL-MONITOR-MIB", "cOpticalPMIntervalUnavailSecs")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBPMGroup = cOpticalMIBPMGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBPMGroup.setDescription('A collection of objects that provide optical performance monitoring data for 15 minute and 24 hour intervals.') cOpticalMIBNotifyEnableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 5)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalNotifyEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBNotifyEnableGroup = cOpticalMIBNotifyEnableGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBNotifyEnableGroup.setDescription('An object to control the generation of notifications.') cOpticalMIBNotifGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 6)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonParameterStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBNotifGroup = cOpticalMIBNotifGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBNotifGroup.setDescription('A notification generated when a threshold on an optical parameter is exceeded or cleared.') cOpticalMonIfTimeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 7)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonIfTimeInSlot")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMonIfTimeGroup = cOpticalMonIfTimeGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMonIfTimeGroup.setDescription('A collection of object(s) that provide time related information for transceivers in the system.') cOpticalMIBEnableConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 8)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonEnable")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBEnableConfigGroup = cOpticalMIBEnableConfigGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBEnableConfigGroup.setDescription('A collection of object(s) to enable/disable optical monitoring.') cOpticalMIBIntervalConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 9)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalMonPollInterval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMIBIntervalConfigGroup = cOpticalMIBIntervalConfigGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBIntervalConfigGroup.setDescription('A collection of object(s) to specify polling interval for monitoring optical transceivers.') cOpticalMonThreshSourceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 10)).setObjects(("CISCO-OPTICAL-MONITOR-MIB", "cOpticalParamThreshSource")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cOpticalMonThreshSourceGroup = cOpticalMonThreshSourceGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMonThreshSourceGroup.setDescription('A collection of object(s) to restore a given threshold to its default value.') mibBuilder.exportSymbols("CISCO-OPTICAL-MONITOR-MIB", OpticalParameterValue=OpticalParameterValue, cOpticalMonitorMIBComplianceRev=cOpticalMonitorMIBComplianceRev, cOpticalPMCurrentParamType=cOpticalPMCurrentParamType, cOpticalPMIntervalLocation=cOpticalPMIntervalLocation, cOpticalPMCurrentTable=cOpticalPMCurrentTable, OpticalAlarmSeverityOrZero=OpticalAlarmSeverityOrZero, cOpticalPMIntervalUnavailSecs=cOpticalPMIntervalUnavailSecs, cOpticalMonGroup=cOpticalMonGroup, cOpticalParamThreshSource=cOpticalParamThreshSource, cOpticalMonThreshSourceGroup=cOpticalMonThreshSourceGroup, cOpticalPMCurrentMaxParam=cOpticalPMCurrentMaxParam, cOpticalMIBMonGroup=cOpticalMIBMonGroup, cOpticalMon15MinValidIntervals=cOpticalMon15MinValidIntervals, cOpticalParamLowAlarmThresh=cOpticalParamLowAlarmThresh, OpticalIfDirection=OpticalIfDirection, cOpticalMonIfEntry=cOpticalMonIfEntry, cOpticalPMCurrentLocation=cOpticalPMCurrentLocation, cOpticalPMGroup=cOpticalPMGroup, cOpticalParamAlarmStatus=cOpticalParamAlarmStatus, cOpticalPMIntervalParamType=cOpticalPMIntervalParamType, cOpticalMIBEnableConfigGroup=cOpticalMIBEnableConfigGroup, cOpticalMonParameterType=cOpticalMonParameterType, OpticalIfMonLocation=OpticalIfMonLocation, ciscoOpticalMonitorMIB=ciscoOpticalMonitorMIB, cOpticalMIBThresholdGroup=cOpticalMIBThresholdGroup, cOpticalPMCurrentDirection=cOpticalPMCurrentDirection, cOpticalPMCurrentMinParam=cOpticalPMCurrentMinParam, cOpticalMIBNotifGroup=cOpticalMIBNotifGroup, OpticalPMPeriod=OpticalPMPeriod, cOpticalParamHighAlarmThresh=cOpticalParamHighAlarmThresh, cOpticalMonitorMIBObjects=cOpticalMonitorMIBObjects, cOpticalPMIntervalEntry=cOpticalPMIntervalEntry, cOpticalParamLowWarningSev=cOpticalParamLowWarningSev, cOpticalPMCurrentUnavailSecs=cOpticalPMCurrentUnavailSecs, cOpticalMonIfTimeInSlot=cOpticalMonIfTimeInSlot, OpticalParameterType=OpticalParameterType, cOpticalNotifyEnable=cOpticalNotifyEnable, cOpticalParamHighAlarmSev=cOpticalParamHighAlarmSev, cOpticalPMIntervalTable=cOpticalPMIntervalTable, cOpticalMonIfTable=cOpticalMonIfTable, cOpticalPMIntervalMaxParam=cOpticalPMIntervalMaxParam, cOpticalMonitorMIBNotifications=cOpticalMonitorMIBNotifications, cOpticalMonPollInterval=cOpticalMonPollInterval, cOpticalParamAlarmCurMaxThresh=cOpticalParamAlarmCurMaxThresh, cOpticalParamAlarmLastChange=cOpticalParamAlarmLastChange, cOpticalMIBSeverityGroup=cOpticalMIBSeverityGroup, cOpticalMIBIntervalConfigGroup=cOpticalMIBIntervalConfigGroup, cOpticalPMCurrentPeriod=cOpticalPMCurrentPeriod, cOpticalMon24HrValidIntervals=cOpticalMon24HrValidIntervals, cOpticalMonDirection=cOpticalMonDirection, cOpticalPMIntervalPeriod=cOpticalPMIntervalPeriod, cOpticalParamHighWarningSev=cOpticalParamHighWarningSev, cOpticalMonitorMIBCompliance=cOpticalMonitorMIBCompliance, cOpticalMonitorMIBCompliances=cOpticalMonitorMIBCompliances, OpticalAlarmSeverity=OpticalAlarmSeverity, OpticalAlarmStatus=OpticalAlarmStatus, PYSNMP_MODULE_ID=ciscoOpticalMonitorMIB, cOpticalPMIntervalMinParam=cOpticalPMIntervalMinParam, cOpticalMonEntry=cOpticalMonEntry, cOpticalMonNotificationPrefix=cOpticalMonNotificationPrefix, cOpticalParamLowWarningThresh=cOpticalParamLowWarningThresh, cOpticalParamLowAlarmSev=cOpticalParamLowAlarmSev, cOpticalPMCurrentEntry=cOpticalPMCurrentEntry, cOpticalMIBNotifyEnableGroup=cOpticalMIBNotifyEnableGroup, cOpticalMIBPMGroup=cOpticalMIBPMGroup, cOpticalParamAlarmCurMaxSev=cOpticalParamAlarmCurMaxSev, cOpticalMonIfTimeGroup=cOpticalMonIfTimeGroup, cOpticalParameterValue=cOpticalParameterValue, cOpticalMonitorMIBConformance=cOpticalMonitorMIBConformance, cOpticalPMIntervalDirection=cOpticalPMIntervalDirection, cOpticalParamHighWarningThresh=cOpticalParamHighWarningThresh, cOpticalPMIntervalMeanParam=cOpticalPMIntervalMeanParam, cOpticalPMIntervalNumber=cOpticalPMIntervalNumber, cOpticalMonParameterStatus=cOpticalMonParameterStatus, cOpticalMonTable=cOpticalMonTable, cOpticalMonLocation=cOpticalMonLocation, cOpticalMonEnable=cOpticalMonEnable, cOpticalMonitorMIBGroups=cOpticalMonitorMIBGroups, cOpticalPMCurrentMeanParam=cOpticalPMCurrentMeanParam)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, constraints_union, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (object_group, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'NotificationGroup', 'ModuleCompliance') (unsigned32, bits, object_identity, mib_identifier, module_identity, time_ticks, counter32, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, iso, gauge32, integer32, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'Unsigned32', 'Bits', 'ObjectIdentity', 'MibIdentifier', 'ModuleIdentity', 'TimeTicks', 'Counter32', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'iso', 'Gauge32', 'Integer32', 'Counter64') (textual_convention, time_stamp, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TimeStamp', 'DisplayString') cisco_optical_monitor_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 264)) ciscoOpticalMonitorMIB.setRevisions(('2007-01-02 00:00', '2002-05-10 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setRevisionsDescriptions(('Add cOpticalMonIfTimeGroup, cOpticalMIBEnableConfigGroup, cOpticalMIBIntervalConfigGroup, cOpticalMonThreshSourceGroup.', 'The initial revision of this MIB.')) if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setLastUpdated('200701020000Z') if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setOrganization('Cisco Systems, Inc.') if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 Tel: +1 800 553-NETS E-mail: [email protected]') if mibBuilder.loadTexts: ciscoOpticalMonitorMIB.setDescription('This MIB module defines objects to monitor optical characteristics and set corresponding thresholds on the optical interfaces in a network element. ') class Opticalparametertype(TextualConvention, Integer32): description = 'This value indicates the optical parameter that is being monitored. Valid values are - power (1) : Optical Power (AC + DC) in 1/10ths of dBm acPower (2) : Optical AC Power in 1/10ths of dBm ambientTemp (3) : Ambient Temperature in 1/10ths of degrees centigrade laserTemp (4) : Laser Temperature in 1/10ths of degrees centigrade biasCurrent (5) : Laser bias current in 100s of microamperes peltierCurrent (6) : Laser peltier current in milliamperes xcvrVoltage (7) : Transceiver voltage in millivolts ' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7)) named_values = named_values(('power', 1), ('acPower', 2), ('ambientTemp', 3), ('laserTemp', 4), ('biasCurrent', 5), ('peltierCurrent', 6), ('xcvrVoltage', 7)) class Opticalparametervalue(TextualConvention, Integer32): description = "The value of the optical parameter that is being monitored. The range of values varies depending on the type of optical parameter being monitored, as identified by a corresponding object with syntax OpticalParameterType. When the optical parameter being monitored is 'power' or 'acPower', the supported range is from -400 to 250, in 1/10ths of dBm. Example: A value of -300 represents a power level of -30.0 dBm. When the optical parameter being monitored is 'laserTemp' or 'ambientTemp', the supported range is from -500 to 850, in 1/10ths of degrees centigrade. Example: A value of 235 represents a temperature reading of 23.5 degrees C. When the optical parameter being monitored is 'biasCurrent', the supported range is from 0 to 10000, in 100s of microamperes. Example: A value of 500 represents a bias current reading of 50,000 microamperes. When the optical parameter being monitored is 'peltierCurrent', the supported range is from -10000 to 10000, in milliamperes. When the optical parameter being monitored is 'xcvrVoltage', the supported range is from 0 to 10000, in millivolts. The distinguished value of '-1000000' indicates that the object has not yet been initialized or does not apply. " status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(-1000000, 1000000) class Opticalifdirection(TextualConvention, Integer32): description = 'This value indicates the direction being monitored at the optical interface. ' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('receive', 1), ('transmit', 2), ('notApplicable', 3)) class Opticalifmonlocation(TextualConvention, Integer32): description = "This value applies when there are multiple points at which optical characteristics can be measured, in the given direction, at an interface. It indicates whether the optical characteristics are measured before or after adjustment (e.g. optical amplification or attenuation). The codepoint 'notApplicable' should be used if no amplifier/attenuator exists at an interface. " status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('beforeAdjustment', 1), ('afterAdjustment', 2), ('notApplicable', 3)) class Opticalalarmstatus(TextualConvention, OctetString): reference = 'Telcordia Technologies Generic Requirements GR-2918-CORE, Issue 4, December 1999, Section 8.11' description = 'A bitmap that indicates the current status of thresholds on an interface. The bit is set to 1 if the threshold is currently being exceeded on the interface and will be set to 0 otherwise. (MSB) (LSB) 7 6 5 4 3 2 1 0 +----------------------+ | | +----------------------+ | | | | | | | +-- High alarm threshold | | +----- High warning threshold | +-------- Low alarm threshold +----------- Low warning threshold To minimize the probability of prematurely reacting to momentary signal variations, a soak time may be incorporated into the status indications in the following manner. The indication is set when the threshold violation persists for a period of time that exceeds the set soak interval. The indication is cleared when no threshold violation occurs for a period of time which exceeds the clear soak interval. In GR-2918-CORE, the recommended set soak interval is 2.5 seconds (plus/minus 0.5 seconds), and the recommended clear soak interval is 10 seconds (plus/minus 0.5 seconds). ' status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 1) fixed_length = 1 class Opticalalarmseverity(TextualConvention, Integer32): reference = 'Telcordia Technologies Generic Requirements GR-474-CORE, Issue 1, December 1997, Section 2.2' description = "The severity of a trouble condition. A smaller enumerated integer value indicates that the condition is more severe. The severities are defined as follows: 'critical' An alarm used to indicate a severe, service-affecting condition has occurred and that immediate corrective action is imperative, regardless of the time of day or day of the week. 'major' An alarm used for hardware or software conditions that indicate a serious disruption of service or malfunctioning or failure of important hardware. These troubles require the immediate attention and response of a technician to restore or maintain system capability. The urgency is less than in critical situations because of a lesser immediate or impending effect on service or system performance. 'minor' An alarm used for troubles that do not have a serious effect on service to customers or for troubles in hardware that are not essential to the operation of the system. 'notAlarmed' An event used for troubles that do not require action, for troubles that are reported as a result of manually initiated diagnostics, or for transient events such as crossing warning thresholds. This event can also be used to raise attention to a condition that could possibly be an impending problem. 'notReported' An event used for troubles similar to those described under 'notAlarmed', and that do not cause notifications to be generated. The information for these events is retrievable from the network element. 'cleared' This value indicates that a previously occuring alarm condition has been cleared, or that no trouble condition is present. " status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6)) named_values = named_values(('critical', 1), ('major', 2), ('minor', 3), ('notAlarmed', 4), ('notReported', 5), ('cleared', 6)) class Opticalalarmseverityorzero(TextualConvention, Integer32): description = "A value of either '0' or a valid optical alarm severity." status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 6) class Opticalpmperiod(TextualConvention, Integer32): description = 'This value indicates the time period over which performance monitoring data has been collected.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('fifteenMin', 1), ('twentyFourHour', 2)) c_optical_monitor_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1)) c_optical_mon_group = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1)) c_optical_pm_group = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2)) c_optical_mon_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1)) if mibBuilder.loadTexts: cOpticalMonTable.setStatus('current') if mibBuilder.loadTexts: cOpticalMonTable.setDescription('This table provides objects to monitor optical parameters in a network element. It also provides objects for setting high and low threshold levels, with configurable severities, on these monitored parameters.') c_optical_mon_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonDirection'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonLocation'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonParameterType')) if mibBuilder.loadTexts: cOpticalMonEntry.setStatus('current') if mibBuilder.loadTexts: cOpticalMonEntry.setDescription('An entry in the cOpticalMonTable provides objects to monitor an optical parameter and set threshold levels on that parameter, at an optical interface. Note that the set of monitored optical parameters may vary based on interface type, direction, and monitoring location. Examples of interfaces that can have an entry in this table include optical transceivers, interfaces before and after optical amplifiers, and interfaces before and after optical attenuators.') c_optical_mon_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 1), optical_if_direction()) if mibBuilder.loadTexts: cOpticalMonDirection.setStatus('current') if mibBuilder.loadTexts: cOpticalMonDirection.setDescription('This object indicates the direction monitored for the optical interface, in this entry.') c_optical_mon_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 2), optical_if_mon_location()) if mibBuilder.loadTexts: cOpticalMonLocation.setStatus('current') if mibBuilder.loadTexts: cOpticalMonLocation.setDescription('This object indicates whether the optical characteristics are measured before or after adjustment (e.g. optical amplification or attenuation), at this interface.') c_optical_mon_parameter_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 3), optical_parameter_type()) if mibBuilder.loadTexts: cOpticalMonParameterType.setStatus('current') if mibBuilder.loadTexts: cOpticalMonParameterType.setDescription('This object specifies the optical parameter that is being monitored in this entry.') c_optical_parameter_value = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 4), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParameterValue.setStatus('current') if mibBuilder.loadTexts: cOpticalParameterValue.setDescription('This object gives the value measured for the particular optical parameter specified by the cOpticalMonParameterType object.') c_optical_param_high_alarm_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 5), optical_parameter_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamHighAlarmThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamHighAlarmThresh.setDescription("This object is used to set a high alarm threshold on the optical parameter being monitored. An alarm condition will be raised if the value given by cOpticalParameterValue goes from below the value configured in this object to above the value configured in this object, or if the initial value of cOpticalParameterValue exceeds the value configured in this object. For network elements that incorporate a soak time in the status indications, this alarm will be indicated in the cOpticalParamAlarmStatus object only after it persists for a period of time that equals the set soak interval. The severity level of the alarm is specified by the cOpticalParamHighAlarmSev object. When the cOpticalMonParameterType object is set to 'power' for the receive direction at a transceiver, this object specifies the receiver saturation level.") c_optical_param_high_alarm_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 6), optical_alarm_severity()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamHighAlarmSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamHighAlarmSev.setDescription("This object is used to specify a severity level associated with the high alarm threshold given by the cOpticalParamHighAlarmThresh object. The values 'notAlarmed', 'notReported', and 'cleared' do not apply. The severity level configured in this object must be higher than the level configured in the cOpticalParamHighWarningSev object.") c_optical_param_high_warning_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 7), optical_parameter_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamHighWarningThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamHighWarningThresh.setDescription('This object is used to set a high warning threshold on the optical parameter being monitored. A threshold crossing condition will be indicated if the value given by cOpticalParameterValue goes from below the value configured in this object to above the value configured in this object, or if the initial value of cOpticalParameterValue exceeds the value configured in this object. For network elements that incorporate a soak time in the status indications, this threshold violation will be indicated in the cOpticalParamAlarmStatus object only after it persists for a period of time that equals the set soak interval. This threshold crossing may or may not be alarmed or reported, based on the severity level specified by the cOpticalParamHighWarningSev object.') c_optical_param_high_warning_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 8), optical_alarm_severity()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamHighWarningSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamHighWarningSev.setDescription("This object is used to specify a severity level associated with the high warning threshold given by the cOpticalParamHighWarningThresh object. The values 'critical', 'major', and 'cleared' do not apply. The severity level configured in this object must be lower than the level configured in the cOpticalParamHighAlarmSev object. If this object is set to 'notReported', no notifications will be generated when this threshold is exceeded, irrespective of the value configured in the cOpticalNotifyEnable object.") c_optical_param_low_alarm_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 9), optical_parameter_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamLowAlarmThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamLowAlarmThresh.setDescription("This object is used to set a low alarm threshold on the optical parameter being monitored. An alarm condition will be raised if the value given by cOpticalParameterValue goes from above the value configured in this object to below the value configured in this object, or if the initial value of cOpticalParameterValue is lower than the value configured in this object. For network elements that incorporate a soak time in the status indications, this alarm will be indicated in the cOpticalParamAlarmStatus object only after it persists for a period of time that equals the set soak interval. The severity level of this alarm is specified by the cOpticalParamLowAlarmSev object. When the cOpticalMonParameterType object is set to 'power' for the receive direction and when the interface supports alarms based on loss of light, this object specifies the optical power threshold for declaring loss of light. Also, when optical amplifiers are present in the network, in the receive direction, this value may need to be configured, since the noise floor may be higher than the minimum sensitivity of the receiver.") c_optical_param_low_alarm_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 10), optical_alarm_severity()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamLowAlarmSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamLowAlarmSev.setDescription("This object is used to specify a severity level associated with the low alarm threshold given by the cOpticalParamLowAlarmThresh object. The values 'notAlarmed', 'notReported', and 'cleared' do not apply. The severity level configured in this object must be higher than the level configured in the cOpticalParamLowWarningSev object.") c_optical_param_low_warning_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 11), optical_parameter_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamLowWarningThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamLowWarningThresh.setDescription('This object is used to set a low warning threshold on the optical parameter being monitored. A threshold crossing condition will be indicated if the value given by cOpticalParameterValue goes from above the value configured in this object to below the value configured in this object, or if the initial value of cOpticalParameterValue object is lower than the value configured in this object. For network elements that incorporate a soak time in the status indications, this threshold violation will be indicated in the cOpticalParamAlarmStatus object only after it persists for a period of time that equals the set soak interval. This threshold crossing may or may not be alarmed or reported, based on the severity level specified by the cOpticalParamLowWarningSev object.') c_optical_param_low_warning_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 12), optical_alarm_severity()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamLowWarningSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamLowWarningSev.setDescription("This object is used to specify a severity level associated with the low warning threshold given by the cOpticalParamLowWarningThresh object. The values 'critical', 'major', and 'cleared' do not apply. The severity level configured in this object must be lower than the level configured in the cOpticalParamLowAlarmSev object. If this object is set to 'notReported', no notifications will be generated when this threshold is exceeded, irrespective of the value configured in the cOpticalNotifyEnable object.") c_optical_param_alarm_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 13), optical_alarm_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParamAlarmStatus.setStatus('current') if mibBuilder.loadTexts: cOpticalParamAlarmStatus.setDescription('This object is used to indicate the current status of the thresholds for the monitored optical parameter on the interface. If a threshold is currently being exceeded on the interface, the corresponding bit in this object will be set to 1. Otherwise, the bit will be set to 0.') c_optical_param_alarm_cur_max_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 14), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxThresh.setStatus('current') if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxThresh.setDescription("This object indicates the threshold value of the highest severity threshold that is currently being exceeded on the interface, for the optical parameter. If no threshold value is currently being exceeded, then the value '-1000000' is returned.") c_optical_param_alarm_cur_max_sev = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 15), optical_alarm_severity()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxSev.setStatus('current') if mibBuilder.loadTexts: cOpticalParamAlarmCurMaxSev.setDescription('This object indicates the maximum severity of any thresholds that are currently being exceeded on the interface, for the optical parameter.') c_optical_param_alarm_last_change = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 16), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalParamAlarmLastChange.setStatus('current') if mibBuilder.loadTexts: cOpticalParamAlarmLastChange.setDescription('This object specifies the value of sysUpTime at the last time a threshold related to a particular optical parameter was exceeded or cleared on the interface.') c_optical_mon15_min_valid_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 17), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 96))).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalMon15MinValidIntervals.setStatus('current') if mibBuilder.loadTexts: cOpticalMon15MinValidIntervals.setDescription('This object gives the number of previous 15 minute intervals for which valid performance monitoring data has been stored on the interface. The value of this object will be n (where n is the maximum number of 15 minute intervals supported at this interface), unless the measurement was (re-)started within the last (nx15) minutes, in which case the value will be the number of previous 15 minute intervals for which the agent has some data.') c_optical_mon24_hr_valid_intervals = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 18), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 1))).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalMon24HrValidIntervals.setStatus('current') if mibBuilder.loadTexts: cOpticalMon24HrValidIntervals.setDescription('This object gives the number of previous 24 hour intervals for which valid performance monitoring data has been stored on the interface. The value of this object will be 0 if the measurement was (re-)started within the last 24 hours, or 1 otherwise.') c_optical_param_thresh_source = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 1, 1, 19), bits().clone(namedValues=named_values(('highAlarmDefThresh', 0), ('highWarnDefThresh', 1), ('lowAlarmDefThresh', 2), ('lowWarnDefThresh', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalParamThreshSource.setStatus('current') if mibBuilder.loadTexts: cOpticalParamThreshSource.setDescription("This object indicates if the current value of a particular threshold in this entry is user configured value or it is a system default value. It also allows user to specify the list of thresholds for this entry which should be restored to their system default values. The bit 'highAlarmThresh' corresponds to the object cOpticalParamHighAlarmThresh. The bit 'highWarnThresh' corresponds to the object cOpticalParamHighWarningThresh. The bit 'lowAlarmThresh' corresponds to the object cOpticalParamLowAlarmThresh. The bit 'lowWarnThresh' corresponds to the object cOpticalParamLowWarningThresh. A value of 0 for a bit indicates that corresponding object has system default value of threshold. A value of 1 for a bit indicates that corresponding object has user configured threshold value. A user may only change value of each of the bits to zero. Setting a bit to 0 will reset the corresponding threshold to its default value. System will change a bit from 0 to 1 when its corresponding threshold is changed by user from its default to any other value.") c_optical_notify_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 2), optical_alarm_severity_or_zero()).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalNotifyEnable.setStatus('current') if mibBuilder.loadTexts: cOpticalNotifyEnable.setDescription("This object specifies the minimum severity threshold governing the generation of cOpticalMonParameterStatus notifications. For example, if the value of this object is set to 'major', then the agent generates these notifications if and only if the severity of the alarm being indicated is 'major' or 'critical'. The values of 'notReported', and 'cleared' do not apply. The value of '0' disables the generation of notifications.") c_optical_mon_enable = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 3), bits().clone(namedValues=named_values(('all', 0)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalMonEnable.setStatus('current') if mibBuilder.loadTexts: cOpticalMonEnable.setDescription("This object specifies the types of transceivers for which optical monitoring is enabled. A value of 1 for the bit 'all', specifies that optical monitoring functionality is enabled for all the types of transceivers which are supported by system and have optical monitoring capability.") c_optical_mon_poll_interval = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 4), unsigned32()).setUnits('minutes').setMaxAccess('readwrite') if mibBuilder.loadTexts: cOpticalMonPollInterval.setStatus('current') if mibBuilder.loadTexts: cOpticalMonPollInterval.setDescription('This object specifies the interval in minutes after which optical transceiver data will be polled by system repeatedly and updated in cOpticalMonTable when one or more bits in cOpticalMonEnable is set.') c_optical_mon_if_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5)) if mibBuilder.loadTexts: cOpticalMonIfTable.setStatus('current') if mibBuilder.loadTexts: cOpticalMonIfTable.setDescription('This table contains the list of optical interfaces populated in cOpticalMonTable.') c_optical_mon_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cOpticalMonIfEntry.setStatus('current') if mibBuilder.loadTexts: cOpticalMonIfEntry.setDescription('An entry containing the information for a particular optical interface.') c_optical_mon_if_time_in_slot = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 1, 5, 1, 1), unsigned32()).setUnits('seconds').setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalMonIfTimeInSlot.setStatus('current') if mibBuilder.loadTexts: cOpticalMonIfTimeInSlot.setDescription('This object indicates when this optical transceiver was detected by the system.') c_optical_pm_current_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1)) if mibBuilder.loadTexts: cOpticalPMCurrentTable.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentTable.setDescription('This table contains performance monitoring data for the various optical parameters, collected over the current 15 minute or the current 24 hour interval.') c_optical_pm_current_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1)).setIndexNames((0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentPeriod'), (0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentDirection'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentLocation'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentParamType')) if mibBuilder.loadTexts: cOpticalPMCurrentEntry.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentEntry.setDescription('An entry in the cOpticalPMCurrentTable. It contains performance monitoring data for a monitored optical parameter at an interface, collected over the current 15 minute or the current 24 hour interval. Note that the set of monitored optical parameters may vary based on interface type, direction, and monitoring location. Examples of interfaces that can have an entry in this table include optical transceivers, interfaces before and after optical amplifiers, and interfaces before and after optical attenuators.') c_optical_pm_current_period = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 1), optical_pm_period()) if mibBuilder.loadTexts: cOpticalPMCurrentPeriod.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentPeriod.setDescription('This object indicates whether the optical parameter values given in this entry are collected over the current 15 minute or the current 24 hour interval.') c_optical_pm_current_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 2), optical_if_direction()) if mibBuilder.loadTexts: cOpticalPMCurrentDirection.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentDirection.setDescription('This object indicates the direction monitored for the optical interface, in this entry.') c_optical_pm_current_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 3), optical_if_mon_location()) if mibBuilder.loadTexts: cOpticalPMCurrentLocation.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentLocation.setDescription('This object indicates whether the optical characteristics are measured before or after adjustment (e.g. optical amplification or attenuation), at this interface.') c_optical_pm_current_param_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 4), optical_parameter_type()) if mibBuilder.loadTexts: cOpticalPMCurrentParamType.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentParamType.setDescription('This object specifies the optical parameter that is being monitored, in this entry.') c_optical_pm_current_max_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 5), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMCurrentMaxParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentMaxParam.setDescription('This object gives the maximum value measured for the monitored optical parameter, in the current 15 minute or the current 24 hour interval.') c_optical_pm_current_min_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 6), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMCurrentMinParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentMinParam.setDescription('This object gives the minimum value measured for the monitored optical parameter, in the current 15 minute or the current 24 hour interval.') c_optical_pm_current_mean_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 7), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMCurrentMeanParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentMeanParam.setDescription('This object gives the average value of the monitored optical parameter, in the current 15 minute or the current 24 hour interval.') c_optical_pm_current_unavail_secs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 86400))).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMCurrentUnavailSecs.setStatus('current') if mibBuilder.loadTexts: cOpticalPMCurrentUnavailSecs.setDescription('This object is used to indicate the number of seconds, in the current 15 minute or the current 24 hour interval, for which the optical performance data is not accounted for. In the receive direction, the performance data could be unavailable during these periods for multiple reasons like the interface being administratively down or if there is a Loss of Light alarm on the interface. In the transmit direction, performance data could be unavailable when the laser is shutdown.') c_optical_pm_interval_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2)) if mibBuilder.loadTexts: cOpticalPMIntervalTable.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalTable.setDescription('This table stores performance monitoring data for the various optical parameters, collected over previous intervals. This table can have entries for one complete 24 hour interval and up to 96 complete 15 minute intervals. A system is required to store at least 4 completed 15 minute intervals. The number of valid 15 minute intervals in this table is indicated by the cOpticalMon15MinValidIntervals object and the number of valid 24 hour intervals is indicated by the cOpticalMon24HrValidIntervals object.') c_optical_pm_interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1)).setIndexNames((0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalPeriod'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalNumber'), (0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalDirection'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalLocation'), (0, 'CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalParamType')) if mibBuilder.loadTexts: cOpticalPMIntervalEntry.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalEntry.setDescription('An entry in the cOpticalPMIntervalTable. It contains performance monitoring data for an optical parameter, collected over a previous interval. Note that the set of monitored optical parameters may vary based on interface type, direction, and monitoring location. Examples of interfaces that can have an entry in this table include optical transceivers, interfaces before and after optical amplifiers, and interfaces before and after optical attenuators.') c_optical_pm_interval_period = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 1), optical_pm_period()) if mibBuilder.loadTexts: cOpticalPMIntervalPeriod.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalPeriod.setDescription('This object indicates whether the optical parameter values, given in this entry, are collected over a period of 15 minutes or 24 hours.') c_optical_pm_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 96))) if mibBuilder.loadTexts: cOpticalPMIntervalNumber.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalNumber.setDescription('A number between 1 and 96, which identifies the interval for which the set of optical parameter values is available. The interval identified by 1 is the most recently completed 15 minute or 24 hour interval, and the interval identified by N is the interval immediately preceding the one identified by N-1.') c_optical_pm_interval_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 3), optical_if_direction()) if mibBuilder.loadTexts: cOpticalPMIntervalDirection.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalDirection.setDescription('This object indicates the direction monitored for the optical interface, in this entry.') c_optical_pm_interval_location = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 4), optical_if_mon_location()) if mibBuilder.loadTexts: cOpticalPMIntervalLocation.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalLocation.setDescription('This object indicates whether the optical characteristics are measured before or after adjustment (e.g. optical amplification or attenuation), at this interface.') c_optical_pm_interval_param_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 5), optical_parameter_type()) if mibBuilder.loadTexts: cOpticalPMIntervalParamType.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalParamType.setDescription('This object specifies the optical parameter that is being monitored, in this entry.') c_optical_pm_interval_max_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 6), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMIntervalMaxParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalMaxParam.setDescription('This object gives the maximum value measured for the optical parameter, in a particular 15 minute or 24 hour interval.') c_optical_pm_interval_min_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 7), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMIntervalMinParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalMinParam.setDescription('This object gives the minimum value measured for the optical parameter, in a particular 15 minute or 24 hour interval.') c_optical_pm_interval_mean_param = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 8), optical_parameter_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMIntervalMeanParam.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalMeanParam.setDescription('This object gives the average value of the measured optical parameter, in a particular 15 minute or 24 hour interval.') c_optical_pm_interval_unavail_secs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 264, 1, 2, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 86400))).setMaxAccess('readonly') if mibBuilder.loadTexts: cOpticalPMIntervalUnavailSecs.setStatus('current') if mibBuilder.loadTexts: cOpticalPMIntervalUnavailSecs.setDescription('This object is used to indicate the number of seconds, in the particular 15 minute or 24 hour interval, for which the optical performance data is not accounted for. In the receive direction, the performance data could be unavailable during these periods for multiple reasons like the interface being administratively down or if there is a Loss of Light alarm on the interface. In the transmit direction, performance data could be unavailable when the laser is shutdown.') c_optical_monitor_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2)) c_optical_mon_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0)) c_optical_mon_parameter_status = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 264, 2, 0, 1)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParameterValue'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmStatus'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmLastChange')) if mibBuilder.loadTexts: cOpticalMonParameterStatus.setStatus('current') if mibBuilder.loadTexts: cOpticalMonParameterStatus.setDescription("This notification is sent when any threshold related to an optical parameter is exceeded or cleared on an interface. This notification may be suppressed under the following conditions: - depending on the value of the cOpticalNotifyEnable object, or - if the severity of the threshold as specified by the cOpticalParamHighWarningSev or cOpticalParamLowWarningSev object is 'notReported'. ") c_optical_monitor_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3)) c_optical_monitor_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1)) c_optical_monitor_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2)) c_optical_monitor_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 1)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBMonGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBThresholdGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBSeverityGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBPMGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifyEnableGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_monitor_mib_compliance = cOpticalMonitorMIBCompliance.setStatus('deprecated') if mibBuilder.loadTexts: cOpticalMonitorMIBCompliance.setDescription('The compliance statement for network elements that monitor optical characteristics and set thresholds on the optical interfaces in a network element.') c_optical_monitor_mib_compliance_rev = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 1, 2)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBMonGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBThresholdGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBSeverityGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBPMGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonIfTimeGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifyEnableGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBNotifGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBEnableConfigGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMIBIntervalConfigGroup'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonThreshSourceGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_monitor_mib_compliance_rev = cOpticalMonitorMIBComplianceRev.setStatus('current') if mibBuilder.loadTexts: cOpticalMonitorMIBComplianceRev.setDescription('The compliance statement for network elements that monitor optical characteristics and set thresholds on the optical interfaces in a network element.') c_optical_mib_mon_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 1)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParameterValue')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_mon_group = cOpticalMIBMonGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBMonGroup.setDescription('A mandatory object that provides monitoring of optical characteristics.') c_optical_mib_threshold_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 2)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighAlarmThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighWarningThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowAlarmThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowWarningThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmStatus'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxThresh'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmLastChange')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_threshold_group = cOpticalMIBThresholdGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBThresholdGroup.setDescription('A collection of objects that support thresholds on optical parameters and provide status information when the thresholds are exceeded or cleared.') c_optical_mib_severity_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 3)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighAlarmSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamHighWarningSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowAlarmSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamLowWarningSev'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamAlarmCurMaxSev')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_severity_group = cOpticalMIBSeverityGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBSeverityGroup.setDescription('A collection of objects that support severities for thresholds on optical parameters.') c_optical_mibpm_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 4)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMon15MinValidIntervals'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMon24HrValidIntervals'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentMaxParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentMinParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentMeanParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMCurrentUnavailSecs'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalMaxParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalMinParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalMeanParam'), ('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalPMIntervalUnavailSecs')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mibpm_group = cOpticalMIBPMGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBPMGroup.setDescription('A collection of objects that provide optical performance monitoring data for 15 minute and 24 hour intervals.') c_optical_mib_notify_enable_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 5)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalNotifyEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_notify_enable_group = cOpticalMIBNotifyEnableGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBNotifyEnableGroup.setDescription('An object to control the generation of notifications.') c_optical_mib_notif_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 6)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonParameterStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_notif_group = cOpticalMIBNotifGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBNotifGroup.setDescription('A notification generated when a threshold on an optical parameter is exceeded or cleared.') c_optical_mon_if_time_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 7)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonIfTimeInSlot')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mon_if_time_group = cOpticalMonIfTimeGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMonIfTimeGroup.setDescription('A collection of object(s) that provide time related information for transceivers in the system.') c_optical_mib_enable_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 8)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonEnable')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_enable_config_group = cOpticalMIBEnableConfigGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBEnableConfigGroup.setDescription('A collection of object(s) to enable/disable optical monitoring.') c_optical_mib_interval_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 9)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalMonPollInterval')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mib_interval_config_group = cOpticalMIBIntervalConfigGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMIBIntervalConfigGroup.setDescription('A collection of object(s) to specify polling interval for monitoring optical transceivers.') c_optical_mon_thresh_source_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 264, 3, 2, 10)).setObjects(('CISCO-OPTICAL-MONITOR-MIB', 'cOpticalParamThreshSource')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): c_optical_mon_thresh_source_group = cOpticalMonThreshSourceGroup.setStatus('current') if mibBuilder.loadTexts: cOpticalMonThreshSourceGroup.setDescription('A collection of object(s) to restore a given threshold to its default value.') mibBuilder.exportSymbols('CISCO-OPTICAL-MONITOR-MIB', OpticalParameterValue=OpticalParameterValue, cOpticalMonitorMIBComplianceRev=cOpticalMonitorMIBComplianceRev, cOpticalPMCurrentParamType=cOpticalPMCurrentParamType, cOpticalPMIntervalLocation=cOpticalPMIntervalLocation, cOpticalPMCurrentTable=cOpticalPMCurrentTable, OpticalAlarmSeverityOrZero=OpticalAlarmSeverityOrZero, cOpticalPMIntervalUnavailSecs=cOpticalPMIntervalUnavailSecs, cOpticalMonGroup=cOpticalMonGroup, cOpticalParamThreshSource=cOpticalParamThreshSource, cOpticalMonThreshSourceGroup=cOpticalMonThreshSourceGroup, cOpticalPMCurrentMaxParam=cOpticalPMCurrentMaxParam, cOpticalMIBMonGroup=cOpticalMIBMonGroup, cOpticalMon15MinValidIntervals=cOpticalMon15MinValidIntervals, cOpticalParamLowAlarmThresh=cOpticalParamLowAlarmThresh, OpticalIfDirection=OpticalIfDirection, cOpticalMonIfEntry=cOpticalMonIfEntry, cOpticalPMCurrentLocation=cOpticalPMCurrentLocation, cOpticalPMGroup=cOpticalPMGroup, cOpticalParamAlarmStatus=cOpticalParamAlarmStatus, cOpticalPMIntervalParamType=cOpticalPMIntervalParamType, cOpticalMIBEnableConfigGroup=cOpticalMIBEnableConfigGroup, cOpticalMonParameterType=cOpticalMonParameterType, OpticalIfMonLocation=OpticalIfMonLocation, ciscoOpticalMonitorMIB=ciscoOpticalMonitorMIB, cOpticalMIBThresholdGroup=cOpticalMIBThresholdGroup, cOpticalPMCurrentDirection=cOpticalPMCurrentDirection, cOpticalPMCurrentMinParam=cOpticalPMCurrentMinParam, cOpticalMIBNotifGroup=cOpticalMIBNotifGroup, OpticalPMPeriod=OpticalPMPeriod, cOpticalParamHighAlarmThresh=cOpticalParamHighAlarmThresh, cOpticalMonitorMIBObjects=cOpticalMonitorMIBObjects, cOpticalPMIntervalEntry=cOpticalPMIntervalEntry, cOpticalParamLowWarningSev=cOpticalParamLowWarningSev, cOpticalPMCurrentUnavailSecs=cOpticalPMCurrentUnavailSecs, cOpticalMonIfTimeInSlot=cOpticalMonIfTimeInSlot, OpticalParameterType=OpticalParameterType, cOpticalNotifyEnable=cOpticalNotifyEnable, cOpticalParamHighAlarmSev=cOpticalParamHighAlarmSev, cOpticalPMIntervalTable=cOpticalPMIntervalTable, cOpticalMonIfTable=cOpticalMonIfTable, cOpticalPMIntervalMaxParam=cOpticalPMIntervalMaxParam, cOpticalMonitorMIBNotifications=cOpticalMonitorMIBNotifications, cOpticalMonPollInterval=cOpticalMonPollInterval, cOpticalParamAlarmCurMaxThresh=cOpticalParamAlarmCurMaxThresh, cOpticalParamAlarmLastChange=cOpticalParamAlarmLastChange, cOpticalMIBSeverityGroup=cOpticalMIBSeverityGroup, cOpticalMIBIntervalConfigGroup=cOpticalMIBIntervalConfigGroup, cOpticalPMCurrentPeriod=cOpticalPMCurrentPeriod, cOpticalMon24HrValidIntervals=cOpticalMon24HrValidIntervals, cOpticalMonDirection=cOpticalMonDirection, cOpticalPMIntervalPeriod=cOpticalPMIntervalPeriod, cOpticalParamHighWarningSev=cOpticalParamHighWarningSev, cOpticalMonitorMIBCompliance=cOpticalMonitorMIBCompliance, cOpticalMonitorMIBCompliances=cOpticalMonitorMIBCompliances, OpticalAlarmSeverity=OpticalAlarmSeverity, OpticalAlarmStatus=OpticalAlarmStatus, PYSNMP_MODULE_ID=ciscoOpticalMonitorMIB, cOpticalPMIntervalMinParam=cOpticalPMIntervalMinParam, cOpticalMonEntry=cOpticalMonEntry, cOpticalMonNotificationPrefix=cOpticalMonNotificationPrefix, cOpticalParamLowWarningThresh=cOpticalParamLowWarningThresh, cOpticalParamLowAlarmSev=cOpticalParamLowAlarmSev, cOpticalPMCurrentEntry=cOpticalPMCurrentEntry, cOpticalMIBNotifyEnableGroup=cOpticalMIBNotifyEnableGroup, cOpticalMIBPMGroup=cOpticalMIBPMGroup, cOpticalParamAlarmCurMaxSev=cOpticalParamAlarmCurMaxSev, cOpticalMonIfTimeGroup=cOpticalMonIfTimeGroup, cOpticalParameterValue=cOpticalParameterValue, cOpticalMonitorMIBConformance=cOpticalMonitorMIBConformance, cOpticalPMIntervalDirection=cOpticalPMIntervalDirection, cOpticalParamHighWarningThresh=cOpticalParamHighWarningThresh, cOpticalPMIntervalMeanParam=cOpticalPMIntervalMeanParam, cOpticalPMIntervalNumber=cOpticalPMIntervalNumber, cOpticalMonParameterStatus=cOpticalMonParameterStatus, cOpticalMonTable=cOpticalMonTable, cOpticalMonLocation=cOpticalMonLocation, cOpticalMonEnable=cOpticalMonEnable, cOpticalMonitorMIBGroups=cOpticalMonitorMIBGroups, cOpticalPMCurrentMeanParam=cOpticalPMCurrentMeanParam)
name = 'Bob' if name == 'Alice': print('Hi Alice') print('Done')
name = 'Bob' if name == 'Alice': print('Hi Alice') print('Done')
def tup(name, len): ret = '(' for i in range(len): ret += f'{name}{i}, ' return ret + ')' for i in range(10): print( f'impl_unzip!({tup("T",i)}, {tup("A",i)}, {tup("s",i)}, {tup("t",i)});')
def tup(name, len): ret = '(' for i in range(len): ret += f'{name}{i}, ' return ret + ')' for i in range(10): print(f"impl_unzip!({tup('T', i)}, {tup('A', i)}, {tup('s', i)}, {tup('t', i)});")