content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# EG8-13 Average Sales # test sales data sales=[50,54,29,33,22,100,45,54,89,75] def average_sales(): ''' Print out the average sales value ''' total=0 for sales_value in sales: total = total+sales_value average_sales=total/len(sales) print('Average sales are:', average_sales) average_sales()
sales = [50, 54, 29, 33, 22, 100, 45, 54, 89, 75] def average_sales(): """ Print out the average sales value """ total = 0 for sales_value in sales: total = total + sales_value average_sales = total / len(sales) print('Average sales are:', average_sales) average_sales()
TRACK_WORDS = ["coronavirus"] TABLE_NAME = "coronavirus" TABLE_ATTRIBUTES = "id_str VARCHAR(255), created_at DATETIME, text VARCHAR(255), \ polarity INT, subjectivity INT, user_location VARCHAR(255), \ user_description VARCHAR(255), longitude DOUBLE, latitude DOUBLE, \ retweet_count INT, favorite_count INT"
track_words = ['coronavirus'] table_name = 'coronavirus' table_attributes = 'id_str VARCHAR(255), created_at DATETIME, text VARCHAR(255), polarity INT, subjectivity INT, user_location VARCHAR(255), user_description VARCHAR(255), longitude DOUBLE, latitude DOUBLE, retweet_count INT, favorite_count INT'
''' 1. Write a Python program to find the first triangle number to have over n(given) divisors. From Wikipedia: A triangular number is a number that is the sum of all of the natural numbers up to a certain number. For example, 10 is a triangular number because 1 + 2 + 3 + 4 = 10. The first 25 triangular numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325, and 351. A triangular number is calculated by the equation: n(n+1)/2 The factors of the first five triangle numbers: 1: 1 3: 1, 3 6: 1, 2, 3, 6 10: 1, 2, 5, 10 15: 1, 3, 5, 15 In the above list 6 is the first triangle number to have over four divisors '''
""" 1. Write a Python program to find the first triangle number to have over n(given) divisors. From Wikipedia: A triangular number is a number that is the sum of all of the natural numbers up to a certain number. For example, 10 is a triangular number because 1 + 2 + 3 + 4 = 10. The first 25 triangular numbers are: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325, and 351. A triangular number is calculated by the equation: n(n+1)/2 The factors of the first five triangle numbers: 1: 1 3: 1, 3 6: 1, 2, 3, 6 10: 1, 2, 5, 10 15: 1, 3, 5, 15 In the above list 6 is the first triangle number to have over four divisors """
def predict(lr, sample): return lr.predict(sample.reshape(1, -1)) def predict2(lr, sample): return lr.predict([sample])
def predict(lr, sample): return lr.predict(sample.reshape(1, -1)) def predict2(lr, sample): return lr.predict([sample])
class Solution: def getMoneyAmount(self, n: int) -> int: # dp[i][j] means minimum amount of money [i , j] # dp[i][j] = min(n + max(dp[i][n-1] , dp[n+1][j])) dp = [[-1 for _ in range(n+1)] for _ in range(n+1)] def cal_range(i,j): # basic situation if i >= len(dp) or j >= len(dp) or i <= 0 or j <=0: return 0 if i >= j: dp[i][j] = 0 if dp[i][j] != -1: return dp[i][j] for n in range(i,j+1): candidate = n + max(cal_range(i,n-1) , cal_range(n+1,j)) dp[i][j] = candidate if dp[i][j] == -1 else min(candidate,dp[i][j]) return dp[i][j] return cal_range(1,n)
class Solution: def get_money_amount(self, n: int) -> int: dp = [[-1 for _ in range(n + 1)] for _ in range(n + 1)] def cal_range(i, j): if i >= len(dp) or j >= len(dp) or i <= 0 or (j <= 0): return 0 if i >= j: dp[i][j] = 0 if dp[i][j] != -1: return dp[i][j] for n in range(i, j + 1): candidate = n + max(cal_range(i, n - 1), cal_range(n + 1, j)) dp[i][j] = candidate if dp[i][j] == -1 else min(candidate, dp[i][j]) return dp[i][j] return cal_range(1, n)
class Question: def __init__(self, q_text, q_answer): self._text = q_text self._answer = q_answer @property def text(self): return self._text @text.setter def text(self, d): self._text = d @property def answer(self): return self._answer
class Question: def __init__(self, q_text, q_answer): self._text = q_text self._answer = q_answer @property def text(self): return self._text @text.setter def text(self, d): self._text = d @property def answer(self): return self._answer
# Given a string, find the first uppercase character. # Solve using both an iterative and recursive solution. input_str_1 = "lucidProgramming" input_str_2 = "LucidProgramming" input_str_3 = "lucidprogramming" def find_uppercase_iterative(input_str): for i in range(len(input_str)): if input_str[i].isupper(): return input_str[i] return "No uppercase character found" def find_uppercase_recursive(input_str, idx=0): if input_str[idx].isupper(): return input_str[idx] if idx == len(input_str) - 1: return "No uppercase character found" return find_uppercase_recursive(input_str, idx+1) print(find_uppercase_iterative(input_str_1)) print(find_uppercase_iterative(input_str_2)) print(find_uppercase_iterative(input_str_3)) print(find_uppercase_recursive(input_str_1)) print(find_uppercase_recursive(input_str_2)) print(find_uppercase_recursive(input_str_3))
input_str_1 = 'lucidProgramming' input_str_2 = 'LucidProgramming' input_str_3 = 'lucidprogramming' def find_uppercase_iterative(input_str): for i in range(len(input_str)): if input_str[i].isupper(): return input_str[i] return 'No uppercase character found' def find_uppercase_recursive(input_str, idx=0): if input_str[idx].isupper(): return input_str[idx] if idx == len(input_str) - 1: return 'No uppercase character found' return find_uppercase_recursive(input_str, idx + 1) print(find_uppercase_iterative(input_str_1)) print(find_uppercase_iterative(input_str_2)) print(find_uppercase_iterative(input_str_3)) print(find_uppercase_recursive(input_str_1)) print(find_uppercase_recursive(input_str_2)) print(find_uppercase_recursive(input_str_3))
def phi1(n): ''' sqrt(n) ''' res=n i=2 while(i*i<=n): if n%i==0: res=res//i res=res*(i-1) while(n%i==0): n=n//i i+=1 if n>1: res=res//n res=res*(n-1) return res ''' log(log(n)) ''' def phi2(maxn): phi=[] for i in range(maxn+2): phi.append(i) for i in range(2,maxn+2): if phi[i]==i: for j in range(i,maxn+2,i): phi[j]=phi[j]//i phi[j]*=(i-1) return phi[maxn] t=10 while(t): n=int(input()) print(phi1(n)) print(phi2(n))
def phi1(n): """ sqrt(n) """ res = n i = 2 while i * i <= n: if n % i == 0: res = res // i res = res * (i - 1) while n % i == 0: n = n // i i += 1 if n > 1: res = res // n res = res * (n - 1) return res '\nlog(log(n))\n' def phi2(maxn): phi = [] for i in range(maxn + 2): phi.append(i) for i in range(2, maxn + 2): if phi[i] == i: for j in range(i, maxn + 2, i): phi[j] = phi[j] // i phi[j] *= i - 1 return phi[maxn] t = 10 while t: n = int(input()) print(phi1(n)) print(phi2(n))
def say_(func): func() def hi(): print("Hello") # Estoy pasando hi como argumento de say_ say_(hi)
def say_(func): func() def hi(): print('Hello') say_(hi)
N, A, B = map(int, input().split()) print(min(A, B), end=" ") if N - A <= B: print(B - N + A) else: print(0)
(n, a, b) = map(int, input().split()) print(min(A, B), end=' ') if N - A <= B: print(B - N + A) else: print(0)
class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: hashStudent = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: if hashStudent[sandwich] == 0: break else: hashStudent[sandwich] -= 1 return sum(hashStudent.values()) class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: hashStudent = {0:0, 1:0} hashSandwich = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hashStudent = {0:0, 1:0} hashSandwich = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hashStudent = {0:0, 1:0} hashSandwich = {0:0, 1:0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: flag = False break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: flag = False break return hashStudent[0] + hashStudent[1] class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hashStudent = collections.Counter(students) hashSandwich = collections.Counter(sandwiches) while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) firstS = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1]
class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: hash_student = {0: 0, 1: 0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: if hashStudent[sandwich] == 0: break else: hashStudent[sandwich] -= 1 return sum(hashStudent.values()) class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: hash_student = {0: 0, 1: 0} hash_sandwich = {0: 0, 1: 0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) first_s = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hash_student = {0: 0, 1: 0} hash_sandwich = {0: 0, 1: 0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) first_s = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1] class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hash_student = {0: 0, 1: 0} hash_sandwich = {0: 0, 1: 0} for student in students: hashStudent[student] += 1 for sandwich in sandwiches: hashSandwich[sandwich] += 1 flag = True while flag: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: flag = False break else: students.pop(0) first_s = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: flag = False break return hashStudent[0] + hashStudent[1] class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: count = 0 hash_student = collections.Counter(students) hash_sandwich = collections.Counter(sandwiches) while True: if students[0] != sandwiches[0]: students.append(students.pop(0)) if hashSandwich[sandwiches[0]] > 0 and hashStudent[sandwiches[0]] == 0: break else: students.pop(0) first_s = sandwiches.pop(0) hashSandwich[firstS] -= 1 hashStudent[firstS] -= 1 if len(students) == 0: break return hashStudent[0] + hashStudent[1]
def main(): a = 1.0 b = 397.0 print(a/b) return(0) main()
def main(): a = 1.0 b = 397.0 print(a / b) return 0 main()
class Solution: def nextGreaterElement(self, n: int) -> int: num = list(str(n)) i = len(num) - 2 while i >= 0: if num[i] < num[i + 1]: break i -= 1 if i == -1: return -1 j = len(num) - 1 while num[j] <= num[i]: j -= 1 num[i], num[j] = num[j], num[i] result = int(''.join(num[:i + 1] + num[i + 1:][::-1])) return result if result < (1 << 31) else -1
class Solution: def next_greater_element(self, n: int) -> int: num = list(str(n)) i = len(num) - 2 while i >= 0: if num[i] < num[i + 1]: break i -= 1 if i == -1: return -1 j = len(num) - 1 while num[j] <= num[i]: j -= 1 (num[i], num[j]) = (num[j], num[i]) result = int(''.join(num[:i + 1] + num[i + 1:][::-1])) return result if result < 1 << 31 else -1
def cake(candles,debris): res = 0 for i,v in enumerate(debris): if i%2: res+=ord(v)-97 else: res+=ord(v) if res>0.7*candles and candles: return "Fire!" else: return 'That was close!'
def cake(candles, debris): res = 0 for (i, v) in enumerate(debris): if i % 2: res += ord(v) - 97 else: res += ord(v) if res > 0.7 * candles and candles: return 'Fire!' else: return 'That was close!'
class ColorTheme: def __init__(self, name: str, display_name: str, version: str): self.name = name self.display_name = display_name self.version = version
class Colortheme: def __init__(self, name: str, display_name: str, version: str): self.name = name self.display_name = display_name self.version = version
class ProjectStatus: def __init__(self, name): self.name = name self.icon = None self.status = None def add_icon(self, icon): self.icon = icon def set_status(self, status): self.status = status class ProjectStatusDictionary(object): def __init__(self): self.projects = dict() def get_project(self, project): if project not in self.projects: self.projects[project] = ProjectStatus(project) return self.projects[project] class ProjectCache(object): def __init__(self): self.namespaces = dict() def add_icon(self, namespace, project, icon): self.get_project(namespace, project).add_icon(icon) def set_status(self, namespace, project, status): self.get_project(namespace, project).set_status(status) def get_project(self, namespace, project): if namespace not in self.namespaces: self.namespaces[namespace] = ProjectStatusDictionary() return self.namespaces[namespace].get_project(project) def get_list_of_statuses(self): status_list = [] for namespace in self.namespaces.values(): for project in namespace.projects.values(): status_list.append(project) return status_list
class Projectstatus: def __init__(self, name): self.name = name self.icon = None self.status = None def add_icon(self, icon): self.icon = icon def set_status(self, status): self.status = status class Projectstatusdictionary(object): def __init__(self): self.projects = dict() def get_project(self, project): if project not in self.projects: self.projects[project] = project_status(project) return self.projects[project] class Projectcache(object): def __init__(self): self.namespaces = dict() def add_icon(self, namespace, project, icon): self.get_project(namespace, project).add_icon(icon) def set_status(self, namespace, project, status): self.get_project(namespace, project).set_status(status) def get_project(self, namespace, project): if namespace not in self.namespaces: self.namespaces[namespace] = project_status_dictionary() return self.namespaces[namespace].get_project(project) def get_list_of_statuses(self): status_list = [] for namespace in self.namespaces.values(): for project in namespace.projects.values(): status_list.append(project) return status_list
class Vitals: LEARNING_RATE = 0.1 MOMENTUM_RATE = 0.8 FIRST_LAYER = 5 * 7 SECOND_LAYER = 14 OUTPUT_LAYER = 3
class Vitals: learning_rate = 0.1 momentum_rate = 0.8 first_layer = 5 * 7 second_layer = 14 output_layer = 3
print('C L A S S I C S O L U T I O N') range_of_numbers = [] div_by_2 = [] div_by_3 = [] other_numbers = [] for i in range(1,11): range_of_numbers.append(i) if i%2 == 0: div_by_2.append(i) elif i%3 == 0: div_by_3.append(i) else: other_numbers.append(i) print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ',div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers) print('') print('') print('L I S T C O M P R E H E N S I O N') range_of_numbers = [i for i in range (1, 11)] div_by_2 = [i for i in range (1, 11) if i % 2 == 0 ] div_by_3 = [i for i in range (1, 11) if i % 2 == 1 and i % 3 == 0] other_numbers = [i for i in range (1, 11) if i % 2 == 1 and i % 3 == 1] print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ',div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers)
print('C L A S S I C S O L U T I O N') range_of_numbers = [] div_by_2 = [] div_by_3 = [] other_numbers = [] for i in range(1, 11): range_of_numbers.append(i) if i % 2 == 0: div_by_2.append(i) elif i % 3 == 0: div_by_3.append(i) else: other_numbers.append(i) print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ', div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers) print('') print('') print('L I S T C O M P R E H E N S I O N') range_of_numbers = [i for i in range(1, 11)] div_by_2 = [i for i in range(1, 11) if i % 2 == 0] div_by_3 = [i for i in range(1, 11) if i % 2 == 1 and i % 3 == 0] other_numbers = [i for i in range(1, 11) if i % 2 == 1 and i % 3 == 1] print('The range of numbers is: ', range_of_numbers) print('') print('The even numbers that are divisible by 2: ', div_by_2) print('The odd numbers, which are divisible by 3: ', div_by_3) print('The numbers, that are not divisible by 2 and 3: ', other_numbers)
# limitation :pattern count of each char to be max 1 text = "912873129" pat = "123" window_found = False prev_min = 0 prev_max = 0 prev_pos = -1 lookup_tab = dict() # detect first window formation when all characters are found # change window whenever new character was the previous minimum # if new window smaller than previous smallest, change current min window for pos, c in enumerate(text): if c in pat: prev_pos = lookup_tab.get(c, -1) lookup_tab[c] = pos if window_found == True: cur_max = pos if prev_pos == cur_min: # new min needed cur_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) print('new min on update of ', c, ' is ', cur_min) if cur_max - cur_min < prev_max - prev_min: prev_min = cur_min prev_max = cur_max elif len(lookup_tab) == len(pat): cur_min = prev_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) cur_max = prev_max = max(list([lookup_tab[k] for k in lookup_tab.keys()])) window_found = True print(prev_min, prev_max)
text = '912873129' pat = '123' window_found = False prev_min = 0 prev_max = 0 prev_pos = -1 lookup_tab = dict() for (pos, c) in enumerate(text): if c in pat: prev_pos = lookup_tab.get(c, -1) lookup_tab[c] = pos if window_found == True: cur_max = pos if prev_pos == cur_min: cur_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) print('new min on update of ', c, ' is ', cur_min) if cur_max - cur_min < prev_max - prev_min: prev_min = cur_min prev_max = cur_max elif len(lookup_tab) == len(pat): cur_min = prev_min = min(list([lookup_tab[k] for k in lookup_tab.keys()])) cur_max = prev_max = max(list([lookup_tab[k] for k in lookup_tab.keys()])) window_found = True print(prev_min, prev_max)
class ResponseKeys(object): POST = 'post' POSTS = 'posts' POST_SAVED = 'The post was saved successfully' POST_UPDATED = 'The post was updated successfully' POST_DELETED = 'The post was deleted successfully' POST_NOT_FOUND = 'The post could not be found'
class Responsekeys(object): post = 'post' posts = 'posts' post_saved = 'The post was saved successfully' post_updated = 'The post was updated successfully' post_deleted = 'The post was deleted successfully' post_not_found = 'The post could not be found'
# This problem was recently asked by Google: # Given a singly-linked list, reverse the list. This can be done iteratively or recursively. Can you get both solutions? class ListNode(object): def __init__(self, x): self.val = x self.next = None # Function to print the list def printList(self): node = self output = '' while node != None: output += str(node.val) output += " " node = node.next print(output) # Iterative Solution def reverseIteratively(self, head): # Implement this. node = head finalList = [] while node != None: finalList.append(node.val) node = node.next finalList.reverse() startNode = n = ListNode(finalList[0]) for i in range(1, len(finalList)): n.next = ListNode(finalList[i]) n = n.next return startNode # Recursive Solution finalList = [] def reverseRecursively(self, head): # Implement this. if head != None: self.finalList.append(head.val) if head.next != None: self.reverseRecursively(head.next) else: self.finalList.reverse() startNode = n = ListNode(self.finalList[0]) for i in range(1, len(self.finalList)): n.next = ListNode(self.finalList[i]) n = n.next return startNode # Test Program # Initialize the test list: testHead = ListNode(4) node1 = ListNode(3) testHead.next = node1 node2 = ListNode(2) node1.next = node2 node3 = ListNode(1) node2.next = node3 testTail = ListNode(0) node3.next = testTail print("Initial list: ") testHead.printList() # 4 3 2 1 0 print("List after Iterative reversal: ") testHead.reverseIteratively(testHead).printList() # testTail.printList() # 0 1 2 3 4 # print("List after Recursive reversal: ") # testHead.reverseRecursively(testHead).printList() # testTail.printList() # 0 1 2 3 4
class Listnode(object): def __init__(self, x): self.val = x self.next = None def print_list(self): node = self output = '' while node != None: output += str(node.val) output += ' ' node = node.next print(output) def reverse_iteratively(self, head): node = head final_list = [] while node != None: finalList.append(node.val) node = node.next finalList.reverse() start_node = n = list_node(finalList[0]) for i in range(1, len(finalList)): n.next = list_node(finalList[i]) n = n.next return startNode final_list = [] def reverse_recursively(self, head): if head != None: self.finalList.append(head.val) if head.next != None: self.reverseRecursively(head.next) else: self.finalList.reverse() start_node = n = list_node(self.finalList[0]) for i in range(1, len(self.finalList)): n.next = list_node(self.finalList[i]) n = n.next return startNode test_head = list_node(4) node1 = list_node(3) testHead.next = node1 node2 = list_node(2) node1.next = node2 node3 = list_node(1) node2.next = node3 test_tail = list_node(0) node3.next = testTail print('Initial list: ') testHead.printList() print('List after Iterative reversal: ') testHead.reverseIteratively(testHead).printList()
#!/usr/bin/env python # -*- coding: utf-8 -*- def LF_flux(FL, FR, lmax, lmin, UR, UL, dt, dx): ctilde = dx / dt return 0.5 * (FL + FR) - 0.5 * ctilde * (UR - UL)
def lf_flux(FL, FR, lmax, lmin, UR, UL, dt, dx): ctilde = dx / dt return 0.5 * (FL + FR) - 0.5 * ctilde * (UR - UL)
def get_circles(image): img = image.copy() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) circles = cv2.HoughCircles(gray, cv2.HOUGH_GRADIENT, 2, 100) if circles is not None: circles = np.round(circles[0, :]).astype("int") for x, y, r in circles: cv2.circle(img, (x, y), r, (255, 0, 0), 4) cv2.rectangle(img, (x - 3, y - 3), (x + 3, y + 3), (255, 0, 0), -1) return img
def get_circles(image): img = image.copy() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) circles = cv2.HoughCircles(gray, cv2.HOUGH_GRADIENT, 2, 100) if circles is not None: circles = np.round(circles[0, :]).astype('int') for (x, y, r) in circles: cv2.circle(img, (x, y), r, (255, 0, 0), 4) cv2.rectangle(img, (x - 3, y - 3), (x + 3, y + 3), (255, 0, 0), -1) return img
x, y, w, h = map(int,input().split()) if x >= w-x: a = w-x else: a = x if y >= h-y: b = h-y else: b = y if a >= b: print(b) else: print(a)
(x, y, w, h) = map(int, input().split()) if x >= w - x: a = w - x else: a = x if y >= h - y: b = h - y else: b = y if a >= b: print(b) else: print(a)
#3-1 Names names = ["Jason", "Bob", "James", "Brian", "Marie"] print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4]) #3-2 Greetings message = " you are a friend" print(names[0] + message) print(names[1] + message) print(names[2] + message) print(names[3] + message) print(names[4] + message) #3-3 Your Own List cars = ["BMW", "BatMobile", "Sports Car"] message = (f"I want to own a {cars[0]}") print(message) message = (f"I want to own a {cars[1]}") print(message) message = (f"I want to own a {cars[2]}") print(message) #3-4 Guest List invite_list = ["Augustus Ceasar", "Winston Churchill", "George Washington"] print(invite_list[0] + " You are invited to dinner") print(invite_list[1] + " You are invited to dinner") print(invite_list[2] + " You are invited to dinner") #3-5 Changing Guest List print(invite_list[1] + " is unable to attend") invite_list[1] = "King Alfred" print(invite_list[0] + " You are invited to dinner") print(invite_list[1] + " You are invited to dinner") print(invite_list[2] + " You are invited to dinner") #3-6 print("A larger table has been found and more guests will be invited!") invite_list.insert(0, "Dwayne Johnson") invite_list.insert(1, "Marilyn Monroe") invite_list.append("Emma Watson") print(invite_list[0] + " You are invited to dinner") print(invite_list[1] + " You are invited to dinner") print(invite_list[2] + " You are invited to dinner") print(invite_list[3] + " You are invited to dinner") print(invite_list[4] + " You are invited to dinner") print(invite_list[5] + " You are invited to dinner") #3-7 Shrinking Guest List print(invite_list) print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list[0] + " you are still invited") print(invite_list[1] + " you are still invited") invite_list.remove("Dwayne Johnson") invite_list.remove("Emma Watson") print(invite_list) #3-8 Seeing the World places = ["China", "Japan", "Germany", "Cannada", "Russia", "France"] print(places) print(sorted(places)) print(places) print(sorted(places, reverse=True)) print(places) places.reverse() print(places) places.reverse() print(places) places.sort() print(places) #3-9 Dinner Guests print(len(invite_list)) #3-10 Every Function languages = ["Mandarin", "Japanese", "English", "German", "Irish", "French"] print(sorted(languages)) languages.reverse() languages.sort() languages.append("Russian") languages.insert(3, "Arabic") languages.remove("French") print("I am learning " + languages.pop(5)) print(languages) #3-11 Intentional error (fixed) print("Cat")
names = ['Jason', 'Bob', 'James', 'Brian', 'Marie'] print(names[0]) print(names[1]) print(names[2]) print(names[3]) print(names[4]) message = ' you are a friend' print(names[0] + message) print(names[1] + message) print(names[2] + message) print(names[3] + message) print(names[4] + message) cars = ['BMW', 'BatMobile', 'Sports Car'] message = f'I want to own a {cars[0]}' print(message) message = f'I want to own a {cars[1]}' print(message) message = f'I want to own a {cars[2]}' print(message) invite_list = ['Augustus Ceasar', 'Winston Churchill', 'George Washington'] print(invite_list[0] + ' You are invited to dinner') print(invite_list[1] + ' You are invited to dinner') print(invite_list[2] + ' You are invited to dinner') print(invite_list[1] + ' is unable to attend') invite_list[1] = 'King Alfred' print(invite_list[0] + ' You are invited to dinner') print(invite_list[1] + ' You are invited to dinner') print(invite_list[2] + ' You are invited to dinner') print('A larger table has been found and more guests will be invited!') invite_list.insert(0, 'Dwayne Johnson') invite_list.insert(1, 'Marilyn Monroe') invite_list.append('Emma Watson') print(invite_list[0] + ' You are invited to dinner') print(invite_list[1] + ' You are invited to dinner') print(invite_list[2] + ' You are invited to dinner') print(invite_list[3] + ' You are invited to dinner') print(invite_list[4] + ' You are invited to dinner') print(invite_list[5] + ' You are invited to dinner') print(invite_list) print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list.pop(1) + " ,I'm sorry you can't come to dinner") print(invite_list[0] + ' you are still invited') print(invite_list[1] + ' you are still invited') invite_list.remove('Dwayne Johnson') invite_list.remove('Emma Watson') print(invite_list) places = ['China', 'Japan', 'Germany', 'Cannada', 'Russia', 'France'] print(places) print(sorted(places)) print(places) print(sorted(places, reverse=True)) print(places) places.reverse() print(places) places.reverse() print(places) places.sort() print(places) print(len(invite_list)) languages = ['Mandarin', 'Japanese', 'English', 'German', 'Irish', 'French'] print(sorted(languages)) languages.reverse() languages.sort() languages.append('Russian') languages.insert(3, 'Arabic') languages.remove('French') print('I am learning ' + languages.pop(5)) print(languages) print('Cat')
# import pytest def test_with_authenticated_client(client, django_user_model): username = "admin" password = "123456" django_user_model.objects.create_user(username=username, password=password) # Use this: # client.login(username=username, password=password) response = client.get('/') assert response.status_code == 302 response = client.get(response.url) assert response.status_code == 200 response = client.get('/accounts/logout') assert response.status_code == 301
def test_with_authenticated_client(client, django_user_model): username = 'admin' password = '123456' django_user_model.objects.create_user(username=username, password=password) response = client.get('/') assert response.status_code == 302 response = client.get(response.url) assert response.status_code == 200 response = client.get('/accounts/logout') assert response.status_code == 301
def setup(): global s, x_count, y_count, tiles, covers s = 50 x_count = width//s y_count = height//s size(800, 600) tiles = [] covers = [] for x in range(x_count): tiles.append([]) covers.append([]) for y in range(y_count): tiles[x].append("bomb" if random(0, 1) < .2 else 0) covers[x].append(True) for x in range(len(tiles)): for y in range(len(tiles[x])): tiles[x][y] = surrounding_total(x, y) print(tiles) def draw(): background(200) for x in range(x_count+1): line(x * s, 0, x * s, height) for y in range(y_count+1): line(0, y * s, width, y * s) for x in range(len(tiles)): for y in range(len(tiles[x])): fill(0) textAlign(CENTER, CENTER) if tiles[x][y] == "bomb": push() ellipseMode(CORNER) ellipse(x * s + 10, y * s + 10, s-20, s-20) pop() else: text(tiles[x][y] if tiles[x][y] != 0 else "", x*s + s/2, y*s + s/2) def surrounding_total(x_pos, y_pos): on_left = on_right = on_top = on_bot = False top_l = top_c = top_r = cen_l = cen_r = bot_l = bot_c = bot_r = False if tiles[x_pos][y_pos] == "bomb": return "bomb" if not x_pos-1 == abs(x_pos-1): # If on left edge on_left = True cen_r = tiles[x_pos+1][y_pos ] == "bomb" if not x_pos+1 == constrain(x_pos+1, 0, x_count-1): # If on right edge on_right = True cen_l = tiles[x_pos-1][y_pos ] == "bomb" if not y_pos-1 == abs(y_pos-1): # If on top edge on_top = True bot_c = tiles[x_pos ][y_pos+1] == "bomb" if not y_pos+1 == constrain(y_pos+1, 0, y_count-1): # If on bottom edge on_bot = True top_c = tiles[x_pos ][y_pos-1] == "bomb" elif on_left and on_top: bot_r = tiles[x_pos+1][y_pos+1] == "bomb" elif on_right and on_top: bot_l = tiles[x_pos-1][y_pos+1] == "bomb" elif on_left and on_bot: top_r = tiles[x_pos+1][y_pos-1] == "bomb" elif on_right and on_bot: top_l = tiles[x_pos-1][y_pos-1] == "bomb" elif not on_left or on_right: cen_l = tiles[x_pos-1][y_pos ] == "bomb" cen_r = tiles[x_pos+1][y_pos ] == "bomb" else: top_l = tiles[x_pos-1][y_pos-1] == "bomb"# top_c = tiles[x_pos ][y_pos-1] == "bomb"# top_r = tiles[x_pos+1][y_pos-1] == "bomb"# cen_l = tiles[x_pos-1][y_pos ] == "bomb"# cen_r = tiles[x_pos+1][y_pos ] == "bomb"# bot_l = tiles[x_pos-1][y_pos+1] == "bomb"# bot_c = tiles[x_pos ][y_pos+1] == "bomb"# bot_r = tiles[x_pos+1][y_pos+1] == "bomb"# return top_l + top_c + top_r + cen_l + cen_r + bot_l + bot_c + bot_r
def setup(): global s, x_count, y_count, tiles, covers s = 50 x_count = width // s y_count = height // s size(800, 600) tiles = [] covers = [] for x in range(x_count): tiles.append([]) covers.append([]) for y in range(y_count): tiles[x].append('bomb' if random(0, 1) < 0.2 else 0) covers[x].append(True) for x in range(len(tiles)): for y in range(len(tiles[x])): tiles[x][y] = surrounding_total(x, y) print(tiles) def draw(): background(200) for x in range(x_count + 1): line(x * s, 0, x * s, height) for y in range(y_count + 1): line(0, y * s, width, y * s) for x in range(len(tiles)): for y in range(len(tiles[x])): fill(0) text_align(CENTER, CENTER) if tiles[x][y] == 'bomb': push() ellipse_mode(CORNER) ellipse(x * s + 10, y * s + 10, s - 20, s - 20) pop() else: text(tiles[x][y] if tiles[x][y] != 0 else '', x * s + s / 2, y * s + s / 2) def surrounding_total(x_pos, y_pos): on_left = on_right = on_top = on_bot = False top_l = top_c = top_r = cen_l = cen_r = bot_l = bot_c = bot_r = False if tiles[x_pos][y_pos] == 'bomb': return 'bomb' if not x_pos - 1 == abs(x_pos - 1): on_left = True cen_r = tiles[x_pos + 1][y_pos] == 'bomb' if not x_pos + 1 == constrain(x_pos + 1, 0, x_count - 1): on_right = True cen_l = tiles[x_pos - 1][y_pos] == 'bomb' if not y_pos - 1 == abs(y_pos - 1): on_top = True bot_c = tiles[x_pos][y_pos + 1] == 'bomb' if not y_pos + 1 == constrain(y_pos + 1, 0, y_count - 1): on_bot = True top_c = tiles[x_pos][y_pos - 1] == 'bomb' elif on_left and on_top: bot_r = tiles[x_pos + 1][y_pos + 1] == 'bomb' elif on_right and on_top: bot_l = tiles[x_pos - 1][y_pos + 1] == 'bomb' elif on_left and on_bot: top_r = tiles[x_pos + 1][y_pos - 1] == 'bomb' elif on_right and on_bot: top_l = tiles[x_pos - 1][y_pos - 1] == 'bomb' elif not on_left or on_right: cen_l = tiles[x_pos - 1][y_pos] == 'bomb' cen_r = tiles[x_pos + 1][y_pos] == 'bomb' else: top_l = tiles[x_pos - 1][y_pos - 1] == 'bomb' top_c = tiles[x_pos][y_pos - 1] == 'bomb' top_r = tiles[x_pos + 1][y_pos - 1] == 'bomb' cen_l = tiles[x_pos - 1][y_pos] == 'bomb' cen_r = tiles[x_pos + 1][y_pos] == 'bomb' bot_l = tiles[x_pos - 1][y_pos + 1] == 'bomb' bot_c = tiles[x_pos][y_pos + 1] == 'bomb' bot_r = tiles[x_pos + 1][y_pos + 1] == 'bomb' return top_l + top_c + top_r + cen_l + cen_r + bot_l + bot_c + bot_r
#forma de somar comprar de carrinho virtual carrinho = [] carrinho.append(('Produto 1', 30)) carrinho.append(('Produto 2', '20')) carrinho.append(('Produto 3', 50)) #no python essa baixo nao eh muito boa # total = [] # for produto in carrinho: # total.append(produto[1]) # print(sum(total)) total = sum([float(y) for x, y in carrinho])#sum soma float y #jeito certo de fazer soma #print(carrinho)#[('Produto 1', 30), ('Produto 2', 20), ('Produto 3', 50)] print(total)#[30, 20, 50]
carrinho = [] carrinho.append(('Produto 1', 30)) carrinho.append(('Produto 2', '20')) carrinho.append(('Produto 3', 50)) total = sum([float(y) for (x, y) in carrinho]) print(total)
# -*- coding: utf-8 -*- { "name": "Import Settings", "vesion": "10.0.1.0.0", "summary": "Allows to save import settings to don't specify columns to fields mapping each time.", "category": "Extra Tools", "images": ["images/icon.png"], "author": "IT-Projects LLC, Dinar Gabbasov", "website": "https://www.twitter.com/gabbasov_dinar", "license": "Other OSI approved licence", # MIT "price": 90.00, "currency": "EUR", "depends": ["base_import"], "data": [ "security/ir.model.access.csv", "views/base_import_map_templates.xml", "views/base_import_map_view.xml", ], "demo": [], "installable": True, "auto_install": False, }
{'name': 'Import Settings', 'vesion': '10.0.1.0.0', 'summary': "Allows to save import settings to don't specify columns to fields mapping each time.", 'category': 'Extra Tools', 'images': ['images/icon.png'], 'author': 'IT-Projects LLC, Dinar Gabbasov', 'website': 'https://www.twitter.com/gabbasov_dinar', 'license': 'Other OSI approved licence', 'price': 90.0, 'currency': 'EUR', 'depends': ['base_import'], 'data': ['security/ir.model.access.csv', 'views/base_import_map_templates.xml', 'views/base_import_map_view.xml'], 'demo': [], 'installable': True, 'auto_install': False}
room_cost = { 'room for one person': {'cost': 18, 'discount': (0, 0, 0)}, 'apartment': {'cost': 25, 'discount': (0.3, 0.35, 0.5)}, 'president apartment': {'cost': 35, 'discount': (0.1, 0.15, 0.2)} } def discount_index(days_: int) -> int: if days_ < 10: return 0 elif 10 <= days_ <= 15: return 1 elif days_ > 15: return 2 days = int(input()) room_type = input() evaluation = input() discount = room_cost[room_type]['discount'][discount_index(days)] cost_of_stay = (days - 1) * room_cost[room_type]['cost'] * (1 - discount) if evaluation == 'positive': cost_of_stay *= 1.25 else: cost_of_stay *= 0.9 print(f'{cost_of_stay:.2f}')
room_cost = {'room for one person': {'cost': 18, 'discount': (0, 0, 0)}, 'apartment': {'cost': 25, 'discount': (0.3, 0.35, 0.5)}, 'president apartment': {'cost': 35, 'discount': (0.1, 0.15, 0.2)}} def discount_index(days_: int) -> int: if days_ < 10: return 0 elif 10 <= days_ <= 15: return 1 elif days_ > 15: return 2 days = int(input()) room_type = input() evaluation = input() discount = room_cost[room_type]['discount'][discount_index(days)] cost_of_stay = (days - 1) * room_cost[room_type]['cost'] * (1 - discount) if evaluation == 'positive': cost_of_stay *= 1.25 else: cost_of_stay *= 0.9 print(f'{cost_of_stay:.2f}')
for left in range(7): for right in range(left,7): print("[" + str(left) + "|" + str(right) + "]", end=" ") print
for left in range(7): for right in range(left, 7): print('[' + str(left) + '|' + str(right) + ']', end=' ') print
number = int(input()) bonus_points = 0 if number <= 100: bonus_points += 5 elif number > 1000: bonus_points += number * 0.10 else: bonus_points += number * 0.20 if number % 2 == 0: bonus_points += 1 if number % 10 == 5: bonus_points += 2 print(bonus_points) print(bonus_points + number)
number = int(input()) bonus_points = 0 if number <= 100: bonus_points += 5 elif number > 1000: bonus_points += number * 0.1 else: bonus_points += number * 0.2 if number % 2 == 0: bonus_points += 1 if number % 10 == 5: bonus_points += 2 print(bonus_points) print(bonus_points + number)
def if_hexagon_enabled(a): return select({ "//micro:hexagon_enabled": a, "//conditions:default": [], }) def if_not_hexagon_enabled(a): return select({ "//micro:hexagon_enabled": [], "//conditions:default": a, }) def new_local_repository_env_impl(repository_ctx): echo_cmd = "echo " + repository_ctx.attr.path echo_result = repository_ctx.execute(["bash", "-c", echo_cmd]) src_path_str = echo_result.stdout.splitlines()[0] source_path = repository_ctx.path(src_path_str) work_path = repository_ctx.path(".") child_list = source_path.readdir() for child in child_list: child_name = child.basename repository_ctx.symlink(child, work_path.get_child(child_name)) build_file_babel = Label("//:" + repository_ctx.attr.build_file) build_file_path = repository_ctx.path(build_file_babel) repository_ctx.symlink(build_file_path, work_path.get_child("BUILD")) # a new_local_repository support environment variable new_local_repository_env = repository_rule( implementation = new_local_repository_env_impl, local = True, attrs = { "path": attr.string(mandatory = True), "build_file": attr.string(mandatory = True), }, )
def if_hexagon_enabled(a): return select({'//micro:hexagon_enabled': a, '//conditions:default': []}) def if_not_hexagon_enabled(a): return select({'//micro:hexagon_enabled': [], '//conditions:default': a}) def new_local_repository_env_impl(repository_ctx): echo_cmd = 'echo ' + repository_ctx.attr.path echo_result = repository_ctx.execute(['bash', '-c', echo_cmd]) src_path_str = echo_result.stdout.splitlines()[0] source_path = repository_ctx.path(src_path_str) work_path = repository_ctx.path('.') child_list = source_path.readdir() for child in child_list: child_name = child.basename repository_ctx.symlink(child, work_path.get_child(child_name)) build_file_babel = label('//:' + repository_ctx.attr.build_file) build_file_path = repository_ctx.path(build_file_babel) repository_ctx.symlink(build_file_path, work_path.get_child('BUILD')) new_local_repository_env = repository_rule(implementation=new_local_repository_env_impl, local=True, attrs={'path': attr.string(mandatory=True), 'build_file': attr.string(mandatory=True)})
DATABASE = '/tmp/tmc2.db' DEBUG = False # By default we only listen on localhost. Set this to '0.0.0.0' to accept # requests from any interface HOST = '127.0.0.1' PORT = 5000 # How many quotes per page PAGE_SIZE = 10 # How should dates be formatted. The format is defined in # http://arrow.readthedocs.io/en/latest/index.html#tokens DATE_FORMATS = { 'en_US': 'MMMM D, YYYY', 'fr_FR': 'D MMMM YYYY', } # The locale to use. Must be one of the keys defined in DATE_FORMATS LOCALE = 'en_US' # To customize the configuration, create a local configuration file and point # the TMC2_CONFIG environment variable to it. For example to use TMC2 in # French, define LOCALE to 'fr_FR'.
database = '/tmp/tmc2.db' debug = False host = '127.0.0.1' port = 5000 page_size = 10 date_formats = {'en_US': 'MMMM D, YYYY', 'fr_FR': 'D MMMM YYYY'} locale = 'en_US'
# -*- coding: utf-8 -*- ''' File name: code\lychrel_numbers\sol_55.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #55 :: Lychrel numbers # # For more information see: # https://projecteuler.net/problem=55 # Problem Statement ''' If we take 47, reverse and add, 47 + 74 = 121, which is palindromic. Not all numbers produce palindromes so quickly. For example, 349 + 943 = 1292, 1292 + 2921 = 4213 4213 + 3124 = 7337 That is, 349 took three iterations to arrive at a palindrome. Although no one has proved it yet, it is thought that some numbers, like 196, never produce a palindrome. A number that never forms a palindrome through the reverse and add process is called a Lychrel number. Due to the theoretical nature of these numbers, and for the purpose of this problem, we shall assume that a number is Lychrel until proven otherwise. In addition you are given that for every number below ten-thousand, it will either (i) become a palindrome in less than fifty iterations, or, (ii) no one, with all the computing power that exists, has managed so far to map it to a palindrome. In fact, 10677 is the first number to be shown to require over fifty iterations before producing a palindrome: 4668731596684224866951378664 (53 iterations, 28-digits). Surprisingly, there are palindromic numbers that are themselves Lychrel numbers; the first example is 4994. How many Lychrel numbers are there below ten-thousand? NOTE: Wording was modified slightly on 24 April 2007 to emphasise the theoretical nature of Lychrel numbers. ''' # Solution # Solution Approach ''' '''
""" File name: code\\lychrel_numbers\\sol_55.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x """ '\nIf we take 47, reverse and add, 47 + 74 = 121, which is palindromic.\nNot all numbers produce palindromes so quickly. For example,\n349 + 943 = 1292,\n1292 + 2921 = 4213\n4213 + 3124 = 7337\nThat is, 349 took three iterations to arrive at a palindrome.\nAlthough no one has proved it yet, it is thought that some numbers, like 196, never produce a palindrome. A number that never forms a palindrome through the reverse and add process is called a Lychrel number. Due to the theoretical nature of these numbers, and for the purpose of this problem, we shall assume that a number is Lychrel until proven otherwise. In addition you are given that for every number below ten-thousand, it will either (i) become a palindrome in less than fifty iterations, or, (ii) no one, with all the computing power that exists, has managed so far to map it to a palindrome. In fact, 10677 is the first number to be shown to require over fifty iterations before producing a palindrome: 4668731596684224866951378664 (53 iterations, 28-digits).\nSurprisingly, there are palindromic numbers that are themselves Lychrel numbers; the first example is 4994.\nHow many Lychrel numbers are there below ten-thousand?\nNOTE: Wording was modified slightly on 24 April 2007 to emphasise the theoretical nature of Lychrel numbers.\n' '\n'
n,v = map(int,input().split()) mx = -1 for i in range(n): l,w,h = map(int,input().split()) vo = l*w*h #print(vo) if vo>mx: mx = vo print(mx - v)
(n, v) = map(int, input().split()) mx = -1 for i in range(n): (l, w, h) = map(int, input().split()) vo = l * w * h if vo > mx: mx = vo print(mx - v)
# # PySNMP MIB module TIARA-IP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIARA-IP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:09:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter64, MibIdentifier, ModuleIdentity, Counter32, Bits, TimeTicks, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Unsigned32, Gauge32, NotificationType, Integer32, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "MibIdentifier", "ModuleIdentity", "Counter32", "Bits", "TimeTicks", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Unsigned32", "Gauge32", "NotificationType", "Integer32", "ObjectIdentity") DisplayString, TextualConvention, TruthValue, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "TruthValue", "RowStatus") tiaraMgmt, = mibBuilder.importSymbols("TIARA-NETWORKS-SMI", "tiaraMgmt") tiaraIpMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 3174, 2, 23)) if mibBuilder.loadTexts: tiaraIpMib.setLastUpdated('0001270000Z') if mibBuilder.loadTexts: tiaraIpMib.setOrganization('Tiara Networks Inc.') tiaraIpRoutingEnable = MibScalar((1, 3, 6, 1, 4, 1, 3174, 2, 23, 1), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tiaraIpRoutingEnable.setStatus('current') tiaraIpIfTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2), ) if mibBuilder.loadTexts: tiaraIpIfTable.setStatus('current') tiaraIpIfTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraIpIfIndex")) if mibBuilder.loadTexts: tiaraIpIfTableEntry.setStatus('current') tiaraIpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfIndex.setStatus('current') tiaraIpIfName = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfName.setStatus('current') tiaraIpIfAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 3), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfAddr.setStatus('current') tiaraIpIfMask = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfMask.setStatus('current') tiaraIpIfPeerAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfPeerAddr.setStatus('current') tiaraIpIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ethernet", 1), ("wan", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: tiaraIpIfType.setStatus('current') tiaraStaticRouteTable = MibTable((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3), ) if mibBuilder.loadTexts: tiaraStaticRouteTable.setStatus('current') tiaraStaticRouteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1), ).setIndexNames((0, "TIARA-IP-MIB", "tiaraStaticRouteIndex")) if mibBuilder.loadTexts: tiaraStaticRouteEntry.setStatus('current') tiaraStaticRouteIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 1), Integer32()) if mibBuilder.loadTexts: tiaraStaticRouteIndex.setStatus('current') tiaraStaticRouteNetworkAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteNetworkAddr.setStatus('current') tiaraStaticRouteNetworkMask = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteNetworkMask.setStatus('current') tiaraStaticRouteGatewayAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 4), DisplayString()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteGatewayAddr.setStatus('current') tiaraStaticRouteNoOfHops = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 15))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteNoOfHops.setStatus('current') tiaraStaticRouteRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tiaraStaticRouteRowStatus.setStatus('current') mibBuilder.exportSymbols("TIARA-IP-MIB", tiaraIpIfName=tiaraIpIfName, tiaraIpIfMask=tiaraIpIfMask, tiaraIpIfType=tiaraIpIfType, tiaraIpIfIndex=tiaraIpIfIndex, tiaraStaticRouteGatewayAddr=tiaraStaticRouteGatewayAddr, tiaraStaticRouteNetworkAddr=tiaraStaticRouteNetworkAddr, tiaraIpIfTable=tiaraIpIfTable, tiaraStaticRouteEntry=tiaraStaticRouteEntry, tiaraStaticRouteNetworkMask=tiaraStaticRouteNetworkMask, tiaraStaticRouteNoOfHops=tiaraStaticRouteNoOfHops, tiaraIpRoutingEnable=tiaraIpRoutingEnable, tiaraIpIfTableEntry=tiaraIpIfTableEntry, PYSNMP_MODULE_ID=tiaraIpMib, tiaraStaticRouteTable=tiaraStaticRouteTable, tiaraIpMib=tiaraIpMib, tiaraIpIfAddr=tiaraIpIfAddr, tiaraStaticRouteIndex=tiaraStaticRouteIndex, tiaraIpIfPeerAddr=tiaraIpIfPeerAddr, tiaraStaticRouteRowStatus=tiaraStaticRouteRowStatus)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter64, mib_identifier, module_identity, counter32, bits, time_ticks, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, unsigned32, gauge32, notification_type, integer32, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'MibIdentifier', 'ModuleIdentity', 'Counter32', 'Bits', 'TimeTicks', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Unsigned32', 'Gauge32', 'NotificationType', 'Integer32', 'ObjectIdentity') (display_string, textual_convention, truth_value, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'TruthValue', 'RowStatus') (tiara_mgmt,) = mibBuilder.importSymbols('TIARA-NETWORKS-SMI', 'tiaraMgmt') tiara_ip_mib = module_identity((1, 3, 6, 1, 4, 1, 3174, 2, 23)) if mibBuilder.loadTexts: tiaraIpMib.setLastUpdated('0001270000Z') if mibBuilder.loadTexts: tiaraIpMib.setOrganization('Tiara Networks Inc.') tiara_ip_routing_enable = mib_scalar((1, 3, 6, 1, 4, 1, 3174, 2, 23, 1), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tiaraIpRoutingEnable.setStatus('current') tiara_ip_if_table = mib_table((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2)) if mibBuilder.loadTexts: tiaraIpIfTable.setStatus('current') tiara_ip_if_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1)).setIndexNames((0, 'TIARA-IP-MIB', 'tiaraIpIfIndex')) if mibBuilder.loadTexts: tiaraIpIfTableEntry.setStatus('current') tiara_ip_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfIndex.setStatus('current') tiara_ip_if_name = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfName.setStatus('current') tiara_ip_if_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 3), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfAddr.setStatus('current') tiara_ip_if_mask = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfMask.setStatus('current') tiara_ip_if_peer_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfPeerAddr.setStatus('current') tiara_ip_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ethernet', 1), ('wan', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: tiaraIpIfType.setStatus('current') tiara_static_route_table = mib_table((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3)) if mibBuilder.loadTexts: tiaraStaticRouteTable.setStatus('current') tiara_static_route_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1)).setIndexNames((0, 'TIARA-IP-MIB', 'tiaraStaticRouteIndex')) if mibBuilder.loadTexts: tiaraStaticRouteEntry.setStatus('current') tiara_static_route_index = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 1), integer32()) if mibBuilder.loadTexts: tiaraStaticRouteIndex.setStatus('current') tiara_static_route_network_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 2), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteNetworkAddr.setStatus('current') tiara_static_route_network_mask = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 3), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteNetworkMask.setStatus('current') tiara_static_route_gateway_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 4), display_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteGatewayAddr.setStatus('current') tiara_static_route_no_of_hops = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 15))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteNoOfHops.setStatus('current') tiara_static_route_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 3174, 2, 23, 3, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tiaraStaticRouteRowStatus.setStatus('current') mibBuilder.exportSymbols('TIARA-IP-MIB', tiaraIpIfName=tiaraIpIfName, tiaraIpIfMask=tiaraIpIfMask, tiaraIpIfType=tiaraIpIfType, tiaraIpIfIndex=tiaraIpIfIndex, tiaraStaticRouteGatewayAddr=tiaraStaticRouteGatewayAddr, tiaraStaticRouteNetworkAddr=tiaraStaticRouteNetworkAddr, tiaraIpIfTable=tiaraIpIfTable, tiaraStaticRouteEntry=tiaraStaticRouteEntry, tiaraStaticRouteNetworkMask=tiaraStaticRouteNetworkMask, tiaraStaticRouteNoOfHops=tiaraStaticRouteNoOfHops, tiaraIpRoutingEnable=tiaraIpRoutingEnable, tiaraIpIfTableEntry=tiaraIpIfTableEntry, PYSNMP_MODULE_ID=tiaraIpMib, tiaraStaticRouteTable=tiaraStaticRouteTable, tiaraIpMib=tiaraIpMib, tiaraIpIfAddr=tiaraIpIfAddr, tiaraStaticRouteIndex=tiaraStaticRouteIndex, tiaraIpIfPeerAddr=tiaraIpIfPeerAddr, tiaraStaticRouteRowStatus=tiaraStaticRouteRowStatus)
# # PySNMP MIB module HP-ICF-CHAIN (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-CHAIN # Produced by pysmi-0.3.4 at Wed May 1 13:33:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsUnion") hpicfCommonTrapsPrefix, hpicfCommon, hpicfObjectModules = mibBuilder.importSymbols("HP-ICF-OID", "hpicfCommonTrapsPrefix", "hpicfCommon", "hpicfObjectModules") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") IpAddress, MibIdentifier, Bits, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, Counter64, Unsigned32, NotificationType, ModuleIdentity, iso, ObjectIdentity, Counter32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "MibIdentifier", "Bits", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "Counter64", "Unsigned32", "NotificationType", "ModuleIdentity", "iso", "ObjectIdentity", "Counter32", "TimeTicks") DisplayString, TimeStamp, TextualConvention, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TimeStamp", "TextualConvention", "TruthValue") hpicfChainMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2)) hpicfChainMib.setRevisions(('2000-11-03 22:16', '1997-03-06 03:33', '1996-09-10 02:08', '1994-02-25 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpicfChainMib.setRevisionsDescriptions(('Updated division name.', 'Added NOTIFICATION-GROUP information.', 'Split this MIB module from the former monolithic hp-icf MIB.', 'Initial version of this MIB module.',)) if mibBuilder.loadTexts: hpicfChainMib.setLastUpdated('200011032216Z') if mibBuilder.loadTexts: hpicfChainMib.setOrganization('HP Networking') if mibBuilder.loadTexts: hpicfChainMib.setContactInfo('Hewlett Packard Company 8000 Foothills Blvd. Roseville, CA 95747') if mibBuilder.loadTexts: hpicfChainMib.setDescription('This MIB module describes management of the Distributed Management Chain for devices in the HP AdvanceStack product line.') hpicfChain = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1)) hpicfChainMaxMembers = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainMaxMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainMaxMembers.setDescription('The maximum number of devices that can be supported on the Distributed Management Chain from this agent.') hpicfChainCurMembers = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainCurMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainCurMembers.setDescription('The number of devices currently on the Distributed Management Chain connected to this agent.') hpicfChainLastChange = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainLastChange.setStatus('current') if mibBuilder.loadTexts: hpicfChainLastChange.setDescription('The value of sysUpTime on this agent the last time a device was added to or removed from the Distributed Management Chain connected to this agent.') hpicfChainChanges = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainChanges.setStatus('current') if mibBuilder.loadTexts: hpicfChainChanges.setDescription('A count of the number of times devices have been added to or removed from the Distributed Management Chain connected to this agent.') hpicfChainTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5), ) if mibBuilder.loadTexts: hpicfChainTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainTable.setDescription('A table of boxes currently connected to the same Distributed Management Chain as this agent.') hpicfChainEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1), ).setIndexNames((0, "HP-ICF-CHAIN", "hpicfChainId")) if mibBuilder.loadTexts: hpicfChainEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainEntry.setDescription('An entry in the table describing a single box on the Distributed Management Chain connected to this device.') hpicfChainId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainId.setStatus('current') if mibBuilder.loadTexts: hpicfChainId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicfChainObjectId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 2), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainObjectId.setStatus('current') if mibBuilder.loadTexts: hpicfChainObjectId.setDescription('The authoritative identification of the box which provides an easy and unambiguous means for determining the type of box.') hpicfChainTimestamp = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 3), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainTimestamp.setStatus('current') if mibBuilder.loadTexts: hpicfChainTimestamp.setDescription("The value of the agent's sysUpTime at which this box was last initialized. If the box has not been initialized since the last reinitialization of the agent, then this object has a zero value.") hpicfChainHasAgent = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 4), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainHasAgent.setStatus('current') if mibBuilder.loadTexts: hpicfChainHasAgent.setDescription("This object will contain the value 'true' if this box contains at least one network management agent capable of responding to SNMP requests, and will contain the value 'false' otherwise.") hpicfChainThisBox = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 5), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainThisBox.setStatus('current') if mibBuilder.loadTexts: hpicfChainThisBox.setDescription("This object will contain the value 'true' if this entry in the chain table corresponds to the box which contains the agent which is responding to this SNMP request, and will contain the value 'false' otherwise.") hpicfChainLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpicfChainLocation.setStatus('current') if mibBuilder.loadTexts: hpicfChainLocation.setDescription('This byte is settable by a management station and is not interpreted by the agent. The intent is that a management station can use it to assign an ordering to boxes on the chain that can later be used when displaying the chain.') hpicfChainViewTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6), ) if mibBuilder.loadTexts: hpicfChainViewTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewTable.setDescription('This table contains one entry for each box on the Distributed Management Chain for which this agent is able to act as a proxy.') hpicfChainViewEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1), ).setIndexNames((0, "HP-ICF-CHAIN", "hpicfChainViewId")) if mibBuilder.loadTexts: hpicfChainViewEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewEntry.setDescription('An entry in the hpicfChainViewTable containing information about how to proxy to a single box.') hpicfChainViewId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainViewId.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicfChainViewName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: hpicfChainViewName.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewName.setDescription("The local name of this box. This is used by the proxy agent for the box to determine which box on the Distributed Management Chain is being addressed. If an agent does not use this method to distinguish proxy destinations, it should return a zero length octet string for this object. For SNMPv1, the destination box is specified by appending this name to the proxy agent's community name. For example, if this agent has a community with a community name of 'public', and the value of this object is 'repeater1', the community 'public/repeater1' will specify that the agent should proxy to the public community of the 'repeater1' box. The default value for this object for box-level repeaters is an ASCII hex representation of the low-order three bytes of the device MAC address.") hpicfChainAddition = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 1)).setObjects(("HP-ICF-CHAIN", "hpicfChainId")) if mibBuilder.loadTexts: hpicfChainAddition.setStatus('deprecated') if mibBuilder.loadTexts: hpicfChainAddition.setDescription('********* THIS NOTIFICATION IS DEPRECATED ********* An hpicfChainAddition trap indicates that a new node has been added to the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the new node. Replaced by Cold Start') hpicfChainRemoval = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 2)).setObjects(("HP-ICF-CHAIN", "hpicfChainId")) if mibBuilder.loadTexts: hpicfChainRemoval.setStatus('current') if mibBuilder.loadTexts: hpicfChainRemoval.setDescription('An hpicfChainRemoval trap indicates that a node has been removed from the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the node that was removed.') hpicfChainConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1)) hpicfChainCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1)) hpicfChainGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2)) hpicfChainingCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 1)).setObjects(("HP-ICF-CHAIN", "hpicfChainingGroup"), ("HP-ICF-CHAIN", "hpicfChainTrapGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainingCompliance = hpicfChainingCompliance.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainingCompliance.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicfChainingCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 2)).setObjects(("HP-ICF-CHAIN", "hpicfChainingGroup"), ("HP-ICF-CHAIN", "hpicfChainNotifyGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainingCompliance2 = hpicfChainingCompliance2.setStatus('current') if mibBuilder.loadTexts: hpicfChainingCompliance2.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicfChainingGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 1)).setObjects(("HP-ICF-CHAIN", "hpicfChainMaxMembers"), ("HP-ICF-CHAIN", "hpicfChainCurMembers"), ("HP-ICF-CHAIN", "hpicfChainLastChange"), ("HP-ICF-CHAIN", "hpicfChainChanges"), ("HP-ICF-CHAIN", "hpicfChainId"), ("HP-ICF-CHAIN", "hpicfChainObjectId"), ("HP-ICF-CHAIN", "hpicfChainTimestamp"), ("HP-ICF-CHAIN", "hpicfChainHasAgent"), ("HP-ICF-CHAIN", "hpicfChainThisBox"), ("HP-ICF-CHAIN", "hpicfChainLocation"), ("HP-ICF-CHAIN", "hpicfChainViewId"), ("HP-ICF-CHAIN", "hpicfChainViewName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainingGroup = hpicfChainingGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainingGroup.setDescription('A collection of objects for managing devices on the HP Distributed Management Bus.') hpicfChainTrapGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 2)).setObjects(("HP-ICF-CHAIN", "hpicfChainAddition"), ("HP-ICF-CHAIN", "hpicfChainRemoval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainTrapGroup = hpicfChainTrapGroup.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainTrapGroup.setDescription('********* THIS GROUP IS OBSOLETE ********* A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') hpicfChainNotifyGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 3)).setObjects(("HP-ICF-CHAIN", "hpicfChainRemoval")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicfChainNotifyGroup = hpicfChainNotifyGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainNotifyGroup.setDescription('A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') mibBuilder.exportSymbols("HP-ICF-CHAIN", hpicfChainHasAgent=hpicfChainHasAgent, PYSNMP_MODULE_ID=hpicfChainMib, hpicfChainingCompliance2=hpicfChainingCompliance2, hpicfChainViewId=hpicfChainViewId, hpicfChainingGroup=hpicfChainingGroup, hpicfChainMaxMembers=hpicfChainMaxMembers, hpicfChainNotifyGroup=hpicfChainNotifyGroup, hpicfChainTable=hpicfChainTable, hpicfChainEntry=hpicfChainEntry, hpicfChainCompliances=hpicfChainCompliances, hpicfChainCurMembers=hpicfChainCurMembers, hpicfChain=hpicfChain, hpicfChainGroups=hpicfChainGroups, hpicfChainThisBox=hpicfChainThisBox, hpicfChainRemoval=hpicfChainRemoval, hpicfChainViewEntry=hpicfChainViewEntry, hpicfChainConformance=hpicfChainConformance, hpicfChainId=hpicfChainId, hpicfChainAddition=hpicfChainAddition, hpicfChainLastChange=hpicfChainLastChange, hpicfChainTrapGroup=hpicfChainTrapGroup, hpicfChainChanges=hpicfChainChanges, hpicfChainMib=hpicfChainMib, hpicfChainLocation=hpicfChainLocation, hpicfChainViewName=hpicfChainViewName, hpicfChainTimestamp=hpicfChainTimestamp, hpicfChainObjectId=hpicfChainObjectId, hpicfChainingCompliance=hpicfChainingCompliance, hpicfChainViewTable=hpicfChainViewTable)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, value_range_constraint, value_size_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsUnion') (hpicf_common_traps_prefix, hpicf_common, hpicf_object_modules) = mibBuilder.importSymbols('HP-ICF-OID', 'hpicfCommonTrapsPrefix', 'hpicfCommon', 'hpicfObjectModules') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (ip_address, mib_identifier, bits, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, counter64, unsigned32, notification_type, module_identity, iso, object_identity, counter32, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'MibIdentifier', 'Bits', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'Counter64', 'Unsigned32', 'NotificationType', 'ModuleIdentity', 'iso', 'ObjectIdentity', 'Counter32', 'TimeTicks') (display_string, time_stamp, textual_convention, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TimeStamp', 'TextualConvention', 'TruthValue') hpicf_chain_mib = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2)) hpicfChainMib.setRevisions(('2000-11-03 22:16', '1997-03-06 03:33', '1996-09-10 02:08', '1994-02-25 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpicfChainMib.setRevisionsDescriptions(('Updated division name.', 'Added NOTIFICATION-GROUP information.', 'Split this MIB module from the former monolithic hp-icf MIB.', 'Initial version of this MIB module.')) if mibBuilder.loadTexts: hpicfChainMib.setLastUpdated('200011032216Z') if mibBuilder.loadTexts: hpicfChainMib.setOrganization('HP Networking') if mibBuilder.loadTexts: hpicfChainMib.setContactInfo('Hewlett Packard Company 8000 Foothills Blvd. Roseville, CA 95747') if mibBuilder.loadTexts: hpicfChainMib.setDescription('This MIB module describes management of the Distributed Management Chain for devices in the HP AdvanceStack product line.') hpicf_chain = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1)) hpicf_chain_max_members = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainMaxMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainMaxMembers.setDescription('The maximum number of devices that can be supported on the Distributed Management Chain from this agent.') hpicf_chain_cur_members = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainCurMembers.setStatus('current') if mibBuilder.loadTexts: hpicfChainCurMembers.setDescription('The number of devices currently on the Distributed Management Chain connected to this agent.') hpicf_chain_last_change = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 3), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainLastChange.setStatus('current') if mibBuilder.loadTexts: hpicfChainLastChange.setDescription('The value of sysUpTime on this agent the last time a device was added to or removed from the Distributed Management Chain connected to this agent.') hpicf_chain_changes = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainChanges.setStatus('current') if mibBuilder.loadTexts: hpicfChainChanges.setDescription('A count of the number of times devices have been added to or removed from the Distributed Management Chain connected to this agent.') hpicf_chain_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5)) if mibBuilder.loadTexts: hpicfChainTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainTable.setDescription('A table of boxes currently connected to the same Distributed Management Chain as this agent.') hpicf_chain_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1)).setIndexNames((0, 'HP-ICF-CHAIN', 'hpicfChainId')) if mibBuilder.loadTexts: hpicfChainEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainEntry.setDescription('An entry in the table describing a single box on the Distributed Management Chain connected to this device.') hpicf_chain_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainId.setStatus('current') if mibBuilder.loadTexts: hpicfChainId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicf_chain_object_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 2), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainObjectId.setStatus('current') if mibBuilder.loadTexts: hpicfChainObjectId.setDescription('The authoritative identification of the box which provides an easy and unambiguous means for determining the type of box.') hpicf_chain_timestamp = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 3), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainTimestamp.setStatus('current') if mibBuilder.loadTexts: hpicfChainTimestamp.setDescription("The value of the agent's sysUpTime at which this box was last initialized. If the box has not been initialized since the last reinitialization of the agent, then this object has a zero value.") hpicf_chain_has_agent = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 4), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainHasAgent.setStatus('current') if mibBuilder.loadTexts: hpicfChainHasAgent.setDescription("This object will contain the value 'true' if this box contains at least one network management agent capable of responding to SNMP requests, and will contain the value 'false' otherwise.") hpicf_chain_this_box = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 5), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainThisBox.setStatus('current') if mibBuilder.loadTexts: hpicfChainThisBox.setDescription("This object will contain the value 'true' if this entry in the chain table corresponds to the box which contains the agent which is responding to this SNMP request, and will contain the value 'false' otherwise.") hpicf_chain_location = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 5, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpicfChainLocation.setStatus('current') if mibBuilder.loadTexts: hpicfChainLocation.setDescription('This byte is settable by a management station and is not interpreted by the agent. The intent is that a management station can use it to assign an ordering to boxes on the chain that can later be used when displaying the chain.') hpicf_chain_view_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6)) if mibBuilder.loadTexts: hpicfChainViewTable.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewTable.setDescription('This table contains one entry for each box on the Distributed Management Chain for which this agent is able to act as a proxy.') hpicf_chain_view_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1)).setIndexNames((0, 'HP-ICF-CHAIN', 'hpicfChainViewId')) if mibBuilder.loadTexts: hpicfChainViewEntry.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewEntry.setDescription('An entry in the hpicfChainViewTable containing information about how to proxy to a single box.') hpicf_chain_view_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainViewId.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewId.setDescription('An identifier which uniquely identifies this particular box. In practice, this will be a box serial number or MAC address.') hpicf_chain_view_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 1, 1, 6, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: hpicfChainViewName.setStatus('current') if mibBuilder.loadTexts: hpicfChainViewName.setDescription("The local name of this box. This is used by the proxy agent for the box to determine which box on the Distributed Management Chain is being addressed. If an agent does not use this method to distinguish proxy destinations, it should return a zero length octet string for this object. For SNMPv1, the destination box is specified by appending this name to the proxy agent's community name. For example, if this agent has a community with a community name of 'public', and the value of this object is 'repeater1', the community 'public/repeater1' will specify that the agent should proxy to the public community of the 'repeater1' box. The default value for this object for box-level repeaters is an ASCII hex representation of the low-order three bytes of the device MAC address.") hpicf_chain_addition = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 1)).setObjects(('HP-ICF-CHAIN', 'hpicfChainId')) if mibBuilder.loadTexts: hpicfChainAddition.setStatus('deprecated') if mibBuilder.loadTexts: hpicfChainAddition.setDescription('********* THIS NOTIFICATION IS DEPRECATED ********* An hpicfChainAddition trap indicates that a new node has been added to the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the new node. Replaced by Cold Start') hpicf_chain_removal = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 12, 1, 0, 2)).setObjects(('HP-ICF-CHAIN', 'hpicfChainId')) if mibBuilder.loadTexts: hpicfChainRemoval.setStatus('current') if mibBuilder.loadTexts: hpicfChainRemoval.setDescription('An hpicfChainRemoval trap indicates that a node has been removed from the Distributed Management Chain connected to this agent. The hpicfChainId returned is the identifier for the node that was removed.') hpicf_chain_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1)) hpicf_chain_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1)) hpicf_chain_groups = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2)) hpicf_chaining_compliance = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 1)).setObjects(('HP-ICF-CHAIN', 'hpicfChainingGroup'), ('HP-ICF-CHAIN', 'hpicfChainTrapGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chaining_compliance = hpicfChainingCompliance.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainingCompliance.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicf_chaining_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 1, 2)).setObjects(('HP-ICF-CHAIN', 'hpicfChainingGroup'), ('HP-ICF-CHAIN', 'hpicfChainNotifyGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chaining_compliance2 = hpicfChainingCompliance2.setStatus('current') if mibBuilder.loadTexts: hpicfChainingCompliance2.setDescription('The compliance statement for HP ICF devices with a Distributed Management Chain connection.') hpicf_chaining_group = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 1)).setObjects(('HP-ICF-CHAIN', 'hpicfChainMaxMembers'), ('HP-ICF-CHAIN', 'hpicfChainCurMembers'), ('HP-ICF-CHAIN', 'hpicfChainLastChange'), ('HP-ICF-CHAIN', 'hpicfChainChanges'), ('HP-ICF-CHAIN', 'hpicfChainId'), ('HP-ICF-CHAIN', 'hpicfChainObjectId'), ('HP-ICF-CHAIN', 'hpicfChainTimestamp'), ('HP-ICF-CHAIN', 'hpicfChainHasAgent'), ('HP-ICF-CHAIN', 'hpicfChainThisBox'), ('HP-ICF-CHAIN', 'hpicfChainLocation'), ('HP-ICF-CHAIN', 'hpicfChainViewId'), ('HP-ICF-CHAIN', 'hpicfChainViewName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chaining_group = hpicfChainingGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainingGroup.setDescription('A collection of objects for managing devices on the HP Distributed Management Bus.') hpicf_chain_trap_group = notification_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 2)).setObjects(('HP-ICF-CHAIN', 'hpicfChainAddition'), ('HP-ICF-CHAIN', 'hpicfChainRemoval')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chain_trap_group = hpicfChainTrapGroup.setStatus('obsolete') if mibBuilder.loadTexts: hpicfChainTrapGroup.setDescription('********* THIS GROUP IS OBSOLETE ********* A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') hpicf_chain_notify_group = notification_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 10, 2, 2, 1, 2, 3)).setObjects(('HP-ICF-CHAIN', 'hpicfChainRemoval')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hpicf_chain_notify_group = hpicfChainNotifyGroup.setStatus('current') if mibBuilder.loadTexts: hpicfChainNotifyGroup.setDescription('A collection of notifications used to indicate a changes in membership on a Distributed Management Chain.') mibBuilder.exportSymbols('HP-ICF-CHAIN', hpicfChainHasAgent=hpicfChainHasAgent, PYSNMP_MODULE_ID=hpicfChainMib, hpicfChainingCompliance2=hpicfChainingCompliance2, hpicfChainViewId=hpicfChainViewId, hpicfChainingGroup=hpicfChainingGroup, hpicfChainMaxMembers=hpicfChainMaxMembers, hpicfChainNotifyGroup=hpicfChainNotifyGroup, hpicfChainTable=hpicfChainTable, hpicfChainEntry=hpicfChainEntry, hpicfChainCompliances=hpicfChainCompliances, hpicfChainCurMembers=hpicfChainCurMembers, hpicfChain=hpicfChain, hpicfChainGroups=hpicfChainGroups, hpicfChainThisBox=hpicfChainThisBox, hpicfChainRemoval=hpicfChainRemoval, hpicfChainViewEntry=hpicfChainViewEntry, hpicfChainConformance=hpicfChainConformance, hpicfChainId=hpicfChainId, hpicfChainAddition=hpicfChainAddition, hpicfChainLastChange=hpicfChainLastChange, hpicfChainTrapGroup=hpicfChainTrapGroup, hpicfChainChanges=hpicfChainChanges, hpicfChainMib=hpicfChainMib, hpicfChainLocation=hpicfChainLocation, hpicfChainViewName=hpicfChainViewName, hpicfChainTimestamp=hpicfChainTimestamp, hpicfChainObjectId=hpicfChainObjectId, hpicfChainingCompliance=hpicfChainingCompliance, hpicfChainViewTable=hpicfChainViewTable)
''' Missing number in an array Given an array of size N-1 such that, it can only contain distinct integers in the range of 1 to N. Find the missing element. Example: Input: N = 5 A[] = {1,2,3,5} Output: 4 Input: N = 10 A[] = {1,2,3,4,5,6,7,8,10} Output: 9 ''' # Approach-1 ''' We know that sum of N natural number is 1+2+3+...+n = n*(n+1)//2 So after finding the sum of n natural number as well as sum of given array. The difference between both will give you the missing number in the array Execution time approx: 0.30sec Complexty: O(n) ''' def missingNumber1(array, n): # Computing the total of n natural numbers total = n*(n+1)//2 array_sum = 0 for i in array: array_sum +=i return (total-array_sum) array = [1,2,3,5] n = 5 print("Missing number is {}".format(missingNumber1(array, n)) ) # Approach 2 ''' We know that XOR of same number cancels each other '''
""" Missing number in an array Given an array of size N-1 such that, it can only contain distinct integers in the range of 1 to N. Find the missing element. Example: Input: N = 5 A[] = {1,2,3,5} Output: 4 Input: N = 10 A[] = {1,2,3,4,5,6,7,8,10} Output: 9 """ ' \nWe know that sum of N natural number is 1+2+3+...+n = n*(n+1)//2\nSo after finding the sum of n natural number as well as sum of given array.\nThe difference between both will give you the missing number in the array\n\nExecution time approx: 0.30sec\nComplexty: O(n)\n' def missing_number1(array, n): total = n * (n + 1) // 2 array_sum = 0 for i in array: array_sum += i return total - array_sum array = [1, 2, 3, 5] n = 5 print('Missing number is {}'.format(missing_number1(array, n))) ' \nWe know that XOR of same number cancels each other \n'
# # PySNMP MIB module CADANT-HW-MEAS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CADANT-HW-MEAS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:45:55 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint") cadIf3CmtsCmUsStatusChIfIndex, = mibBuilder.importSymbols("CADANT-CMTS-IF3-MIB", "cadIf3CmtsCmUsStatusChIfIndex") cadIfMacDomainIfIndex, = mibBuilder.importSymbols("CADANT-CMTS-LAYER2CMTS-MIB", "cadIfMacDomainIfIndex") cadIfCmtsCmStatusMacAddress, = mibBuilder.importSymbols("CADANT-CMTS-MAC-MIB", "cadIfCmtsCmStatusMacAddress") cadEquipment, = mibBuilder.importSymbols("CADANT-PRODUCTS-MIB", "cadEquipment") PortId, CardId, CadIfDirection = mibBuilder.importSymbols("CADANT-TC", "PortId", "CardId", "CadIfDirection") TenthdB, = mibBuilder.importSymbols("DOCS-IF-MIB", "TenthdB") IfDirection, = mibBuilder.importSymbols("DOCS-QOS3-MIB", "IfDirection") docsSubmgt3FilterGrpEntry, = mibBuilder.importSymbols("DOCS-SUBMGT3-MIB", "docsSubmgt3FilterGrpEntry") InterfaceIndex, ifIndex = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex", "ifIndex") pktcEScTapStreamIndex, pktcEScTapMediationContentId = mibBuilder.importSymbols("PKTC-ES-TAP-MIB", "pktcEScTapStreamIndex", "pktcEScTapMediationContentId") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, ObjectIdentity, Gauge32, NotificationType, Counter64, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, MibIdentifier, TimeTicks, Unsigned32, iso, Integer32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ObjectIdentity", "Gauge32", "NotificationType", "Counter64", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "MibIdentifier", "TimeTicks", "Unsigned32", "iso", "Integer32", "IpAddress") MacAddress, TimeStamp, TextualConvention, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TimeStamp", "TextualConvention", "DisplayString", "TruthValue") cadHardwareMeasMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2)) cadHardwareMeasMib.setRevisions(('2015-08-27 00:00', '2015-07-13 00:00', '2015-06-03 00:00', '2014-10-14 00:00', '2014-06-13 00:00', '2014-06-04 00:00', '2013-11-22 00:00', '2012-10-30 00:00', '2012-05-09 00:00', '2011-08-31 00:00', '2011-06-29 00:00', '2011-02-28 00:00', '2011-02-24 00:00', '2011-02-18 00:00', '2010-11-22 00:00', '2010-03-09 00:00', '2008-11-24 00:00', '2008-11-21 00:00', '2008-11-05 00:00', '2008-04-24 00:00', '2006-09-14 00:00', '2006-04-14 00:00', '2005-07-13 00:00', '2004-12-10 00:00', '2004-08-31 00:00', '2004-04-09 00:00', '2004-03-09 00:00', '2004-02-23 00:00', '2004-02-18 00:00', '2004-02-15 00:00', '2004-01-24 00:00', '2003-12-18 00:00', '2003-12-10 00:00', '2003-09-19 00:00', '2003-08-26 00:00', '2003-07-30 00:00', '2002-05-06 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: cadHardwareMeasMib.setRevisionsDescriptions(('Add cadantDPortMeasOfdmChanUtilization', 'Add cadInterfaceHighResUtilizationPercentage and cadInterfaceIntervalOctetsForwarded', 'Add cadantDPortMeasDfdmIfSpeed, cadantDPortMeasOfdmHighestAvgBitsPerSubc, and cadantDPortMeasOfdmNumDataSubc', 'Support 384 downstream channels per DCAM-B', 'Add back in cadFftUpstreamChannelTable', 'Add cadDCardIgmpThrottleDropPkts.', 'Remove cadFftUpstreamChannelTable', 'Add cadLaesCountTable', 'Remove cadHWCmUsMeasTable', 'Remove cadantUPortMeasMapFrms', 'Remove cadSFIDMeasEntry', 'Deprecate cadSFIDMeasEntry and add the following MIB objects to cadantUFIDMeasEntry cadantUFIDMeasCcfStatsSgmtValids, cadantUFIDMeasCcfStatsSgmtLost and cadantUFIDMeasCcfStatsSgmtDrop.', 'Remove cadSFIDToSIDEntry', 'Add cadantUFIDMeasSIDMacIfIndex and cadantUFIDMeasSIDBonded to cadantUFIDMeasEntry', 'Change indices of cadDFIDMeasEntry as ifIndex and SFID. Change indices of cadantUFIDMeasEntry as ifIndex and SID', 'Add cadDCardDhcpV6ThrottleDropPkts and cadDCardNdThrottleDropPkts.', 'Add cadHWCmUsMeasEntry', 'Restructure cadantHWUFIDMeasEntry, rename cadantUFIDMeasUFID to cadantUFIDMeasSID, and Add cadantHWMeasUFIDIndex', 'Restructure cadSFIDMeasEntry to support docsQosServiceFlowCcfStatsEntry', 'Use ifindex as key for sfid to sid lookup.', 'Remove fabric tables and add CPWRED tables to match implementation.', 'Added implementation per utilization interval for cadInterfaceUtilizationAvgContSlots.', 'Added cadDFIDMeasPolicedDelayPkts for Traffic Shaping feature.', 'Extended cadSubMgtPktFilterExtTable to allow for packet capturing.', 'Added cadSubMgtPktFilterExtTable to reset docsSubMgtPktFilterMatches.', 'Added cadFftUpstreamChannelTable for FFT counts.', 'Added cadInterfaceUtilizationTable', 'Added support for per-SID HCS and CRC errors.', 'Added cadantDPortMeasIfOutTotalOctets', 'Added support for per UFID microreflection/signalnoise.', 'Added cadantDPortMeasAppMcastPkts', 'Added 10 BCM3214 counts to the cadantUPortMeasTable', ' add more arp throttle counts. ', ' add more receive error counts to cadantEtherPhyMeasTable', ' add error drop and filter drop counts to UPortMeas table', ' Add support for DHCP packets dropped due to throttling. ', ' change cadantUFIDMeasBytsSGreedyDrop to cadantUFIDMeasPktsSGreedyDrop.',)) if mibBuilder.loadTexts: cadHardwareMeasMib.setLastUpdated('201508270000Z') if mibBuilder.loadTexts: cadHardwareMeasMib.setOrganization('Arris International, Inc.') if mibBuilder.loadTexts: cadHardwareMeasMib.setContactInfo('Arris Technical Support E-Mail: [email protected]') if mibBuilder.loadTexts: cadHardwareMeasMib.setDescription('This Mib Module contains all of the counts that are associated with hardware in the ARRIS C4 CMTS. Many of these MIB variables contain the same counts as found in the standard MIBs. However, the grouping of these variables is done for the convenience of the Cadant engineering team. These tables can be used to build value-added interfaces to the Cadant ARRIS C4 CMTS. ') class DFIDIndex(TextualConvention, Unsigned32): description = "The 1's-based SFID" status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 4294967295) class PktClassId(TextualConvention, Integer32): description = 'Index assigned to packet classifier entry by the CMTS which is unique per service flow.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 65535) class SFIDIndex(TextualConvention, Integer32): description = "The 1's-based SFID" status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 2147483647) class UFIDIndex(TextualConvention, Integer32): description = "The 1's-based UFID" status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(1, 32768) class SIDValue(TextualConvention, Integer32): description = "The 1's-based SID. 0 is used when there is no SID, such as for downstream flows." status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 16384) class TMSide(TextualConvention, Integer32): description = 'The Traffic Manager side no SID, such as for downstream flows.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("tma", 1), ("tmb", 2)) cadantHWMeasGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1)) cadantFabActualDepth = MibScalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantFabActualDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabActualDepth.setDescription(' The current depth of the fabric.') cadantFabAvgDepth = MibScalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantFabAvgDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabAvgDepth.setDescription(' The average depth of the fabric.') cadantUPortMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3), ) if mibBuilder.loadTexts: cadantUPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasTable.setDescription(' This table contains information relevant to D Card upstream channels.') cadantUPortMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadantUPortMeasCardId"), (0, "CADANT-HW-MEAS-MIB", "cadantUPortMeasPortId")) if mibBuilder.loadTexts: cadantUPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasEntry.setDescription(' ') cadantUPortMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 1), CardId()) if mibBuilder.loadTexts: cadantUPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasCardId.setDescription('') cadantUPortMeasPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 2), PortId()) if mibBuilder.loadTexts: cadantUPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasPortId.setDescription('') cadantUPortMeasUcastFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadantUPortMeasMcastFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadantUPortMeasBcastFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadantUPortMeasUcastDataFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadantUPortMeasMcastDataFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadantUPortMeasBcastDataFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadantUPortMeasDiscardFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setDescription(' The aggregrate number of frames received on this U channel that were dropped for reasons other than ErrorFrms or FilterFrms.') cadantUPortMeasIfInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setDescription(' The aggregrate number of octets received on this U channel. This includes MAC packets and the length of the MAC header.') cadantUPortMeasIfInDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setDescription(' The aggregrate number of octets received on this U channel. This does not include MAC packets or the length of the MAC header.') cadantUPortMeasIfInUnknownProtos = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setDescription(' Aggregrate number of MAC frames with unknown protocol. This count is neither mutually exclusive with cadantUPortMeasErroredFrms nor cadantUPortMeasErroredFrms.') cadantUPortMeasAppMinusBWReqFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setDescription(' The number of (unicast) frames received by the software application which are not bandwidth request frames. ') cadantUPortMeasErroredFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setDescription(' The aggregrate number of packets received on this U channel that were received in error and dropped. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasFilteredFrms.') cadantUPortMeasFilteredFrms = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setDescription(' The aggregrate number of packets received on this U channel that were dropped due to a filter rule match and discard. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasErroredFrms.') cadantUPortMeasBcastReqOpps = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setDescription('Broadcast contention request opportunity count') cadantUPortMeasBcastReqColls = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setDescription('Broadcast contention request opportunities with possible collisions count') cadantUPortMeasBcastReqNoEnergies = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setDescription('Broadcast contention request opportunities with no energy condition detected') cadantUPortMeasBcastReqRxPwr1s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setDescription('Broadcast contention request opportunities with received power level between power threshold 2 and power threshold 1') cadantUPortMeasBcastReqRxPwr2s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setDescription('Broadcast contention request opportunities with received power level greater than power threshold 2') cadantUPortMeasInitMaintOpps = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setDescription('Initial maintenance opportunities') cadantUPortMeasInitMaintColls = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setDescription('Initial maintenance opportunities with possible collision') cadantUPortMeasInitMaintNoEnergies = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setDescription('Initial maintenance opportunities with no energy detected') cadantUPortMeasInitMaintRxPwr1s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setDescription('Initial maintenance opportunities with received power level between power threshold 2 and power threshold 1') cadantUPortMeasInitMaintRxPwr2s = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setDescription('Initial maintenance opportunities with received power level greater than power threshold 2') cadantDPortMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4), ) if mibBuilder.loadTexts: cadantDPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasTable.setDescription(' This table contains information relevant to D Card downstream channels.') cadantDPortMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadantDPortMeasCardId"), (0, "CADANT-HW-MEAS-MIB", "cadantDPortMeasPortId")) if mibBuilder.loadTexts: cadantDPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasEntry.setDescription(' ') cadantDPortMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 1), CardId()) if mibBuilder.loadTexts: cadantDPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasCardId.setDescription('') cadantDPortMeasPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 2), PortId()) if mibBuilder.loadTexts: cadantDPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasPortId.setDescription('') cadantDPortMeasIfOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This includes MAC mgmt messages and the length of the MAC header.') cadantDPortMeasIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This includes MAC mgmt messages.') cadantDPortMeasIfOutMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This includes MAC mgmt messages.') cadantDPortMeasIfOutBcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This includes MAC mgmt messages.') cadantDPortMeasIfOutDataOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This does not include MAC mgmt bytes.') cadantDPortMeasIfOutUcastDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadantDPortMeasIfOutMcastDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadantDPortMeasIfOutBcastDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This does not include MAC mgmt messages.') cadantDPortMeasGotNoDMACs = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setDescription(' Aggregrate number of ???') cadantDPortMeasGotNoClasses = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setDescription(' Aggregrate number of ???.') cadantDPortMeasSyncPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setDescription(' Aggregrate number of sync. frames sent on this D channel.') cadantDPortMeasAppUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setDescription(' Aggregrate number of unicast DOCSIS Mac mgmt messages sent by application software. ') cadantDPortMeasAppMcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setDescription(' Aggregrate number of multicast DOCSIS Mac mgmt messages sent by application software. ') cadantDPortMeasIfOutTotalOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setDescription(' Aggregrate number of octets sent by application software. ') cadantDPortMeasOfdmIfSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 17), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setDescription('Downstream OFDM channel interface speed.') cadantDPortMeasOfdmHighestAvgBitsPerSubc = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 18), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setDescription('Highest average bits per subcarrier among all the data profiles of the downstream OFDM channel.') cadantDPortMeasOfdmNumDataSubc = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 19), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setDescription('The number of data subcarrier of the downstream OFDM channel.') cadantDPortMeasOfdmChanUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setDescription('The utilization of the downstream OFDM channel.') cadantUFIDMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6), ) if mibBuilder.loadTexts: cadantUFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasTable.setDescription(' ') cadantUFIDMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CADANT-HW-MEAS-MIB", "cadantUFIDMeasSID")) if mibBuilder.loadTexts: cadantUFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasEntry.setDescription(' ') cadantUFIDMeasSID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 3), SIDValue()) if mibBuilder.loadTexts: cadantUFIDMeasSID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSID.setDescription(' The 14 bit (SID).') cadantUFIDMeasPktsSGreedyDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setDescription(' The aggregrate number of Super Greedy pkts dropped for this UFID for this MAC layer.') cadantUFIDMeasBytsOtherDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setDescription(' The aggregrate number of bytes dropped for this UFID for this MAC layer for any other reason than Super Greedy.') cadantUFIDMeasBytsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes that arrived for this UFID for this MAC layer.') cadantUFIDMeasPktsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setDescription(' The aggregrate number of packets that arrived for this UFID for this MAC layer.') cadantUFIDMeasSIDCorrecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were corrected for this UFID for this MAC layer.') cadantUFIDMeasSIDUnerroreds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setDescription(' The aggregrate number of bytes that had no errors for this UFID for this MAC layer.') cadantUFIDMeasSIDUnCorrecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were not corrected for this UFID for this MAC layer.') cadantUFIDMeasSIDNoUniqueWordDetecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID in which no unique code word was detected for this UFID for this MAC layer.') cadantUFIDMeasSIDCollidedBursts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setDescription(' The aggregrate number of bytes allocated for this UFID that had burst errors in their slots for this UFID for this MAC layer.') cadantUFIDMeasSIDNoEnergyDetecteds = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID that had no energy detected in their slots for this UFID for this MAC layer.') cadantUFIDMeasSIDLengthErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had no length errors in their slots for this UFID for this MAC layer.') cadantUFIDMeasSIDMACErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had MAC errors in their slots for this UFID for this MAC layer.') cadantUFIDMeasMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 17), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cadantUFIDMeasSCN = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 18), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cadantUFIDMeasSFID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 19), SFIDIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSFID.setDescription(' The SFID this UFID(SID) is for.') cadantUFIDMeasPHSUnknowns = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cadantUFIDMeasFragPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setDescription('refer to docsQosUpstreamFragPkts') cadantUFIDMeasIncompletePkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setDescription('refer to docsQosUpstreamIncompletePkts') cadantUFIDMeasConcatBursts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setDescription('refer to docsQosUpstreamConcatBursts') cadantUFIDMeasSIDSignalNoise = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 24), TenthdB()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setDescription('refer to docsIfCmtsCmStatusSignalNoise') cadantUFIDMeasSIDMicroreflections = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 25), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setDescription('refer to docsIfCmtsCmStatusMicroreflections') cadantUFIDMeasSIDHCSErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setDescription('The number of MAC HCS errors seen for this SID.') cadantUFIDMeasSIDCRCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setDescription('The number of MAC CRC errors seen for this SID.') cadantUFIDMeasUFIDIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 28), UFIDIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setDescription(' The 15 bit (UFID).') cadantUFIDMeasGateID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 29), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cadantUFIDMeasSIDMacIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 30), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setDescription(' The cable Mac domain ifIndex the SID is associated with.') cadantUFIDMeasSIDBonded = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 31), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setDescription(' This object indicates whether a SID is associated with a CCF service flow.') cadantUFIDMeasCcfStatsSgmtValids = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 32), Counter32()).setUnits('segments').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setDescription('This attribute contains the number of segments counted on this service flow regardless of whether the fragment was correctly reassembled into valid packets. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadantUFIDMeasCcfStatsSgmtLost = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 33), Counter32()).setUnits('segments').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were lost. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadantUFIDMeasCcfStatsSgmtDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 34), Counter32()).setUnits('segments').setMaxAccess("readonly") if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were dropped. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadantEtherPhyMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10), ) if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setDescription(' ') cadantEtherPhyMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadantEtherPhyMeasCardId"), (0, "CADANT-HW-MEAS-MIB", "cadantEtherPhyMeasPortId")) if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setDescription(' ') cadantEtherPhyMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 1), CardId()) if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setDescription('') cadantEtherPhyMeasPortId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 2), PortId()) if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setDescription('') cadantEtherPhyMeasRxOctOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setDescription(' .') cadantEtherPhyMeasRxUniOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setDescription(' .') cadantEtherPhyMeasRxMultiOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setDescription(' .') cadantEtherPhyMeasRxBroadOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setDescription(' .') cadantEtherPhyMeasRxOverflow = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setDescription(' .') cadantEtherPhyMeasRxNormAlign = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setDescription(' .') cadantEtherPhyMeasRxNormCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setDescription(' .') cadantEtherPhyMeasRxLongOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setDescription(' .') cadantEtherPhyMeasRxLongCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setDescription(' .') cadantEtherPhyMeasRxFalsCRS = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setDescription(' .') cadantEtherPhyMeasRxSymbolErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setDescription(' .') cadantEtherPhyMeasRxPause = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setDescription(' .') cadantEtherPhyMeasTxOctOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setDescription(' .') cadantEtherPhyMeasTxUniOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setDescription(' .') cadantEtherPhyMeasTxMultiOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setDescription(' .') cadantEtherPhyMeasTxBroadOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setDescription(' .') cadantEtherPhyMeasTxScol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setDescription(' .') cadantEtherPhyMeasTxMcol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setDescription(' .') cadantEtherPhyMeasTxDeferred = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setDescription(' .') cadantEtherPhyMeasTxLcol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setDescription(' .') cadantEtherPhyMeasTxCcol = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setDescription(' .') cadantEtherPhyMeasTxErr = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setDescription(' .') cadantEtherPhyMeasTxPause = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setDescription(' .') cadantEtherPhyMeasRxShortOK = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setDescription(' .') cadantEtherPhyMeasRxShortCRC = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setDescription(' .') cadantEtherPhyMeasRxRunt = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setDescription(' .') cadantEtherPhyMeasRxOctBad = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setDescription(' .') cadDFIDMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14), ) if mibBuilder.loadTexts: cadDFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasTable.setDescription('This table contains DFID-specific counts.') cadDFIDMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CADANT-HW-MEAS-MIB", "cadDFIDMeasIndex")) if mibBuilder.loadTexts: cadDFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasEntry.setDescription(' ') cadDFIDMeasIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 3), SFIDIndex()) if mibBuilder.loadTexts: cadDFIDMeasIndex.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasIndex.setDescription(' The SFID these DFID counts are for.') cadDFIDMeasBytsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes arriving to go out, but not necessarily transmitted.') cadDFIDMeasPktsArrived = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setDescription(' The aggregrate number of packets arriving to go out, but not necessarily transmitted.') cadDFIDMeasBytsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setDescription(' The aggregrate number of bytes dropped.') cadDFIDMeasPktsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setDescription(' The aggregrate number of packets dropped.') cadDFIDMeasBytsUnkDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setDescription(' The aggregrate number of bytes dropped due to unknown DMAC.') cadDFIDMeasDFID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 9), DFIDIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasDFID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasDFID.setDescription(' The DFID.') cadDFIDMeasPHSUnknowns = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cadDFIDMeasMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 11), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cadDFIDMeasSCN = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cadDFIDMeasPolicedDelayPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setDescription('refer to docsQosServiceFlowPolicedDelayPkts') cadDFIDMeasGateID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 14), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cadQosPktClassMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16), ) if mibBuilder.loadTexts: cadQosPktClassMeasTable.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasTable.setDescription(' This table contains just one data member: cadQosPktClassMeasPkts, which is equivalent to docsQosPktClassPkts in qos-draft-04.') cadQosPktClassMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadQosPktClassMeasIfIndex"), (0, "CADANT-HW-MEAS-MIB", "cadQosPktClassMeasSFID"), (0, "CADANT-HW-MEAS-MIB", "cadQosPktClassMeasPktClassId")) if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setDescription(' ') cadQosPktClassMeasIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setDescription(' The ifIndex of ifType 127 for this classifier.') cadQosPktClassMeasSFID = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 2), SFIDIndex()) if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setDescription(' The Service Flow ID this classifier is for.') cadQosPktClassMeasPktClassId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 3), PktClassId()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setDescription(' The ID of this classifier, which only need be unique for a given Service Flow ID.') cadQosPktClassMeasPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setDescription(' The number of packets that have been classified using this classifier on this flow.') cadIfMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18), ) if mibBuilder.loadTexts: cadIfMeasTable.setStatus('current') if mibBuilder.loadTexts: cadIfMeasTable.setDescription(' This table is designed to concurrently support the counters defined in the ifTable and the ifXTable. Every row that appears in this table should have a corresponding row in both the ifTable and the ifXTable. However, not every row in the ifTable and ifXTable will appear in this table.') cadIfMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cadIfMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadIfMeasEntry.setDescription('') cadIfInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadIfInOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfInDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInErrors.setStatus('current') if mibBuilder.loadTexts: cadIfInErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfInUnknownProtos = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadIfInUnknownProtos.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadIfOutOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfOutDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadIfOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadIfOutErrors.setStatus('current') if mibBuilder.loadTexts: cadIfOutErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cadDCardMeasTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20), ) if mibBuilder.loadTexts: cadDCardMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasTable.setDescription(' This table contains information relevant to D Card counts.') cadDCardMeasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1), ).setIndexNames((0, "CADANT-HW-MEAS-MIB", "cadDCardMeasCardId")) if mibBuilder.loadTexts: cadDCardMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasEntry.setDescription(' ') cadDCardMeasCardId = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 1), CardId()) if mibBuilder.loadTexts: cadDCardMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasCardId.setDescription('') cadDCardIpInReceives = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIpInReceives.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInReceives.setDescription('The contribution to ipInRecevies for this particular D Card.') cadDCardIpInHdrErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setDescription('The contribution to ipInHdrErrors for this particular D Card.') cadDCardIpInAddrErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setDescription('The contribution to ipInAddrErrors for this particular D Card.') cadDCardDhcpThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setDescription('The number of dropped DHCP requests for this D Card.') cadDCardArpThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setDescription('The number of dropped ARP requests for this D Card.') cadDCardDhcpV6ThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setDescription('The number of dropped IPV6 DHCP requests for this D Card.') cadDCardNdThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setDescription('The number of dropped IPV6 ND requests for this D Card.') cadDCardIgmpThrottleDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setDescription('The number of dropped IGMP messages for this UCAM.') cadInterfaceUtilizationTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23), ) if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setDescription('Reports utilization statistics for attached interfaces.') cadInterfaceUtilizationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CADANT-HW-MEAS-MIB", "cadInterfaceUtilizationDirection")) if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setDescription('Utilization statistics for a single interface. An entry exists in this table for each ifEntry with an ifType equal to docsCableDownstreamInterface (128), docsCableUpstreamInterface (129), docsCableUpstreamChannel (205), ethernet(6), or gigabitEthernet(117).') cadInterfaceUtilizationDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 1), CadIfDirection()) if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setDescription("The direction of flow this utilization is for. Cable upstream interfaces will only have a value of 'in' for this object. Likewise, cable downstream interfaces will only hav a value of 'out' for this object. Full-duplex interfaces, such as fastEthernet and gigabitEthernet interfaces, will have both 'in' and 'out' rows.") cadInterfaceUtilizationPercentage = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate as of the most recent docsIfCmtsChannelUtilizationInterval.') cadInterfaceUtilizationAvgContSlots = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setUnits('percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setDescription('Applicable for ifType of docsCableUpstreamChannel (205) only. The average percentage of contention mini-slots for upstream channel. This ratio is calculated the most recent utilization interval. Formula: Upstream contention mini-slots utilization = (100 * ((contention mini-slots ) / (total mini-slots))') cadInterfaceHighResUtilizationPercentage = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10000))).setUnits('Hundredth of a percent').setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate (to 0.01% resolution) as of the most recent docsIfCmtsChannelUtilizationInterval.') cadInterfaceIntervalOctetsForwarded = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setStatus('current') if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setDescription('The number of octets forwarded since the most recent docsIfCmtsChannelUtilizationInterval. Note that this count will only apply to the following interface types: Ethernet, Link-Aggregate. For all other interface types this value will display 0') cadSubMgtPktFilterExtTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25), ) if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setDescription('This table augments the docsSubMgtPktFilterTable. In its current form, it is used to clear docsSubMgtPktFilterMatches and keep track of the change.') cadSubMgtPktFilterExtEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1), ) docsSubmgt3FilterGrpEntry.registerAugmentions(("CADANT-HW-MEAS-MIB", "cadSubMgtPktFilterExtEntry")) cadSubMgtPktFilterExtEntry.setIndexNames(*docsSubmgt3FilterGrpEntry.getIndexNames()) if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setDescription('For every docsSubmgt3FilterGrpEntry, there is a matching cadSubMgtPktFilterExtEntry.') cadSubMgtPktFilterMatchesReset = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 1), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setDescription('This object always return false(2) when read. If the value false(2) is assigned to this object, no action is taken. However, if this object it set to the value true(1), the corresponding docsSubMgtPktFilterMatches counter object is set to 0 and cadSubMgtPktFilterLastChanged is set to the current time.') cadSubMgtPktFilterLastChanged = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 2), TimeStamp()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setDescription('The time at which docsSubMgtPktFilterMatches might have experienced a discontinuity, such as when cadSubMgtPktFilterMatchesReset is set to true(1) or when any of the parameters in the docsSubMgtPktFilterTable affecting filtering last changed.') cadSubMgtPktFilterCaptureEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setDescription('Indicates whether packets matching this filter are captured for possible debug logging. A value of true indicates that packets matching this filter will be captured. A value of false indicates that packets matching this filter will not be captured for later debuggging.') cadLaesCountTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26), ) if mibBuilder.loadTexts: cadLaesCountTable.setStatus('current') if mibBuilder.loadTexts: cadLaesCountTable.setDescription('This table references pktcEScTapStreamTable') cadLaesCountEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1), ).setIndexNames((0, "PKTC-ES-TAP-MIB", "pktcEScTapMediationContentId"), (0, "PKTC-ES-TAP-MIB", "pktcEScTapStreamIndex")) if mibBuilder.loadTexts: cadLaesCountEntry.setStatus('current') if mibBuilder.loadTexts: cadLaesCountEntry.setDescription('For every cadLaesCountEntry, there is a matching pktcEScTapStreamEntry.') cadLaesCountMacDomainIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 1), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setStatus('current') if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setDescription('This object indicates the cable Mac domain interface index that the LAES stream is associated with.') cadLaesCountStreamDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 2), IfDirection()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountStreamDirection.setStatus('current') if mibBuilder.loadTexts: cadLaesCountStreamDirection.setDescription('This object indicates either downstream or upstream direction that the LAES stream is associated with.') cadLaesCountInterceptedPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setDescription('Indicates number of intercepted packets are sent of the LAES stream.') cadLaesCountInterceptDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setDescription('Indicates number of intercepted packets are dropped of the LAES stream.') cadFftUpstreamChannelTable = MibTable((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24), ) if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setDescription('Reports current FFT operation status.') cadFftUpstreamChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setDescription('FFT status for a single upstream channel with ifType docsCableUpstreamInterface(129).') cadFftInProgress = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 1), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadFftInProgress.setStatus('current') if mibBuilder.loadTexts: cadFftInProgress.setDescription('The current state on the FFT capture. ') cadFftCurrentTriggers = MibTableColumn((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cadFftCurrentTriggers.setStatus('current') if mibBuilder.loadTexts: cadFftCurrentTriggers.setDescription('The number of times the FFT capture has triggered and transferred data from the Broadcom device.') mibBuilder.exportSymbols("CADANT-HW-MEAS-MIB", cadDFIDMeasBytsUnkDropped=cadDFIDMeasBytsUnkDropped, cadantDPortMeasIfOutUcastDataPkts=cadantDPortMeasIfOutUcastDataPkts, cadInterfaceUtilizationDirection=cadInterfaceUtilizationDirection, cadDCardIpInReceives=cadDCardIpInReceives, cadLaesCountStreamDirection=cadLaesCountStreamDirection, cadInterfaceUtilizationPercentage=cadInterfaceUtilizationPercentage, cadantUPortMeasInitMaintNoEnergies=cadantUPortMeasInitMaintNoEnergies, cadantUPortMeasErroredFrms=cadantUPortMeasErroredFrms, cadantEtherPhyMeasRxNormCRC=cadantEtherPhyMeasRxNormCRC, cadantEtherPhyMeasRxLongOK=cadantEtherPhyMeasRxLongOK, cadDCardIpInAddrErrors=cadDCardIpInAddrErrors, cadSubMgtPktFilterCaptureEnabled=cadSubMgtPktFilterCaptureEnabled, cadSubMgtPktFilterExtTable=cadSubMgtPktFilterExtTable, cadantUPortMeasUcastDataFrms=cadantUPortMeasUcastDataFrms, cadantUPortMeasBcastReqColls=cadantUPortMeasBcastReqColls, cadantUFIDMeasSIDCollidedBursts=cadantUFIDMeasSIDCollidedBursts, cadIfInUcastPkts=cadIfInUcastPkts, cadantEtherPhyMeasCardId=cadantEtherPhyMeasCardId, cadIfOutUcastPkts=cadIfOutUcastPkts, cadantDPortMeasIfOutMcastPkts=cadantDPortMeasIfOutMcastPkts, SFIDIndex=SFIDIndex, cadDFIDMeasBytsDropped=cadDFIDMeasBytsDropped, cadIfOutErrors=cadIfOutErrors, cadantUFIDMeasSIDNoEnergyDetecteds=cadantUFIDMeasSIDNoEnergyDetecteds, cadantEtherPhyMeasRxMultiOK=cadantEtherPhyMeasRxMultiOK, cadDCardDhcpThrottleDropPkts=cadDCardDhcpThrottleDropPkts, cadantUFIDMeasPktsSGreedyDrop=cadantUFIDMeasPktsSGreedyDrop, cadantEtherPhyMeasRxShortOK=cadantEtherPhyMeasRxShortOK, cadIfInUnknownProtos=cadIfInUnknownProtos, cadantUPortMeasMcastFrms=cadantUPortMeasMcastFrms, cadantUPortMeasBcastDataFrms=cadantUPortMeasBcastDataFrms, cadLaesCountEntry=cadLaesCountEntry, PYSNMP_MODULE_ID=cadHardwareMeasMib, cadantDPortMeasAppMcastPkts=cadantDPortMeasAppMcastPkts, cadantUFIDMeasUFIDIndex=cadantUFIDMeasUFIDIndex, cadantUFIDMeasSIDMacIfIndex=cadantUFIDMeasSIDMacIfIndex, cadQosPktClassMeasSFID=cadQosPktClassMeasSFID, cadantDPortMeasIfOutBcastPkts=cadantDPortMeasIfOutBcastPkts, cadInterfaceUtilizationTable=cadInterfaceUtilizationTable, cadDCardMeasTable=cadDCardMeasTable, cadantUPortMeasEntry=cadantUPortMeasEntry, cadantDPortMeasIfOutOctets=cadantDPortMeasIfOutOctets, cadDFIDMeasPktsArrived=cadDFIDMeasPktsArrived, cadantUPortMeasIfInUnknownProtos=cadantUPortMeasIfInUnknownProtos, cadantUPortMeasBcastReqOpps=cadantUPortMeasBcastReqOpps, cadDFIDMeasGateID=cadDFIDMeasGateID, cadantEtherPhyMeasRxUniOK=cadantEtherPhyMeasRxUniOK, cadantUFIDMeasSCN=cadantUFIDMeasSCN, cadantEtherPhyMeasRxOverflow=cadantEtherPhyMeasRxOverflow, cadantDPortMeasIfOutUcastPkts=cadantDPortMeasIfOutUcastPkts, cadantDPortMeasGotNoDMACs=cadantDPortMeasGotNoDMACs, cadDFIDMeasMacAddress=cadDFIDMeasMacAddress, cadantUFIDMeasBytsOtherDrop=cadantUFIDMeasBytsOtherDrop, cadantUFIDMeasSID=cadantUFIDMeasSID, cadIfOutOctets=cadIfOutOctets, cadantEtherPhyMeasRxRunt=cadantEtherPhyMeasRxRunt, cadantUFIDMeasCcfStatsSgmtValids=cadantUFIDMeasCcfStatsSgmtValids, cadantUPortMeasInitMaintRxPwr2s=cadantUPortMeasInitMaintRxPwr2s, TMSide=TMSide, cadDFIDMeasPHSUnknowns=cadDFIDMeasPHSUnknowns, cadantEtherPhyMeasTxUniOK=cadantEtherPhyMeasTxUniOK, cadantEtherPhyMeasRxOctBad=cadantEtherPhyMeasRxOctBad, cadDFIDMeasDFID=cadDFIDMeasDFID, cadantHWMeasGeneral=cadantHWMeasGeneral, cadQosPktClassMeasPkts=cadQosPktClassMeasPkts, cadDCardIpInHdrErrors=cadDCardIpInHdrErrors, cadFftCurrentTriggers=cadFftCurrentTriggers, cadantEtherPhyMeasRxBroadOK=cadantEtherPhyMeasRxBroadOK, cadDCardIgmpThrottleDropPkts=cadDCardIgmpThrottleDropPkts, cadSubMgtPktFilterMatchesReset=cadSubMgtPktFilterMatchesReset, cadDCardMeasCardId=cadDCardMeasCardId, cadantUFIDMeasEntry=cadantUFIDMeasEntry, cadIfMeasEntry=cadIfMeasEntry, cadDFIDMeasBytsArrived=cadDFIDMeasBytsArrived, cadantUFIDMeasSIDUnerroreds=cadantUFIDMeasSIDUnerroreds, cadIfInDiscards=cadIfInDiscards, cadIfInMulticastPkts=cadIfInMulticastPkts, cadIfOutDiscards=cadIfOutDiscards, cadantUFIDMeasPHSUnknowns=cadantUFIDMeasPHSUnknowns, cadantEtherPhyMeasTxScol=cadantEtherPhyMeasTxScol, cadDCardDhcpV6ThrottleDropPkts=cadDCardDhcpV6ThrottleDropPkts, cadantDPortMeasOfdmIfSpeed=cadantDPortMeasOfdmIfSpeed, DFIDIndex=DFIDIndex, cadInterfaceUtilizationAvgContSlots=cadInterfaceUtilizationAvgContSlots, cadantEtherPhyMeasTxCcol=cadantEtherPhyMeasTxCcol, PktClassId=PktClassId, cadantUPortMeasDiscardFrms=cadantUPortMeasDiscardFrms, cadDCardMeasEntry=cadDCardMeasEntry, cadantEtherPhyMeasTxLcol=cadantEtherPhyMeasTxLcol, cadantUPortMeasBcastReqNoEnergies=cadantUPortMeasBcastReqNoEnergies, cadantUFIDMeasMacAddress=cadantUFIDMeasMacAddress, cadDCardArpThrottleDropPkts=cadDCardArpThrottleDropPkts, cadIfOutMulticastPkts=cadIfOutMulticastPkts, cadInterfaceIntervalOctetsForwarded=cadInterfaceIntervalOctetsForwarded, cadQosPktClassMeasTable=cadQosPktClassMeasTable, cadQosPktClassMeasEntry=cadQosPktClassMeasEntry, cadantUFIDMeasSIDLengthErrors=cadantUFIDMeasSIDLengthErrors, cadantFabActualDepth=cadantFabActualDepth, cadantUFIDMeasCcfStatsSgmtLost=cadantUFIDMeasCcfStatsSgmtLost, cadDFIDMeasPolicedDelayPkts=cadDFIDMeasPolicedDelayPkts, cadantDPortMeasOfdmChanUtilization=cadantDPortMeasOfdmChanUtilization, cadantUFIDMeasSIDUnCorrecteds=cadantUFIDMeasSIDUnCorrecteds, cadDCardNdThrottleDropPkts=cadDCardNdThrottleDropPkts, cadInterfaceUtilizationEntry=cadInterfaceUtilizationEntry, cadantUPortMeasUcastFrms=cadantUPortMeasUcastFrms, cadantDPortMeasPortId=cadantDPortMeasPortId, cadantUFIDMeasFragPkts=cadantUFIDMeasFragPkts, cadantFabAvgDepth=cadantFabAvgDepth, cadLaesCountInterceptedPackets=cadLaesCountInterceptedPackets, cadantDPortMeasSyncPkts=cadantDPortMeasSyncPkts, cadIfInOctets=cadIfInOctets, cadIfOutBroadcastPkts=cadIfOutBroadcastPkts, cadantUPortMeasTable=cadantUPortMeasTable, cadantEtherPhyMeasRxFalsCRS=cadantEtherPhyMeasRxFalsCRS, cadantEtherPhyMeasRxOctOK=cadantEtherPhyMeasRxOctOK, cadInterfaceHighResUtilizationPercentage=cadInterfaceHighResUtilizationPercentage, cadIfInBroadcastPkts=cadIfInBroadcastPkts, cadantEtherPhyMeasTable=cadantEtherPhyMeasTable, cadDFIDMeasEntry=cadDFIDMeasEntry, cadantEtherPhyMeasTxMcol=cadantEtherPhyMeasTxMcol, cadantUFIDMeasConcatBursts=cadantUFIDMeasConcatBursts, cadantEtherPhyMeasRxShortCRC=cadantEtherPhyMeasRxShortCRC, cadHardwareMeasMib=cadHardwareMeasMib, cadantEtherPhyMeasTxBroadOK=cadantEtherPhyMeasTxBroadOK, cadantDPortMeasIfOutBcastDataPkts=cadantDPortMeasIfOutBcastDataPkts, cadantEtherPhyMeasTxDeferred=cadantEtherPhyMeasTxDeferred, cadantDPortMeasGotNoClasses=cadantDPortMeasGotNoClasses, cadSubMgtPktFilterLastChanged=cadSubMgtPktFilterLastChanged, cadantUFIDMeasBytsArrived=cadantUFIDMeasBytsArrived, cadantEtherPhyMeasTxPause=cadantEtherPhyMeasTxPause, cadantUPortMeasCardId=cadantUPortMeasCardId, cadantUFIDMeasSIDCRCErrors=cadantUFIDMeasSIDCRCErrors, cadantUPortMeasIfInDataOctets=cadantUPortMeasIfInDataOctets, cadFftUpstreamChannelTable=cadFftUpstreamChannelTable, cadantUPortMeasInitMaintRxPwr1s=cadantUPortMeasInitMaintRxPwr1s, cadDFIDMeasSCN=cadDFIDMeasSCN, cadantUPortMeasIfInOctets=cadantUPortMeasIfInOctets, cadantUFIDMeasIncompletePkts=cadantUFIDMeasIncompletePkts, cadLaesCountInterceptDrops=cadLaesCountInterceptDrops, cadantDPortMeasIfOutTotalOctets=cadantDPortMeasIfOutTotalOctets, cadQosPktClassMeasPktClassId=cadQosPktClassMeasPktClassId, cadantUFIDMeasSIDSignalNoise=cadantUFIDMeasSIDSignalNoise, cadFftInProgress=cadFftInProgress, cadantUPortMeasBcastReqRxPwr2s=cadantUPortMeasBcastReqRxPwr2s, cadantDPortMeasEntry=cadantDPortMeasEntry, cadantUFIDMeasCcfStatsSgmtDrop=cadantUFIDMeasCcfStatsSgmtDrop, cadantUFIDMeasSIDBonded=cadantUFIDMeasSIDBonded, cadantUPortMeasInitMaintOpps=cadantUPortMeasInitMaintOpps, cadantUPortMeasPortId=cadantUPortMeasPortId, cadantUFIDMeasPktsArrived=cadantUFIDMeasPktsArrived, cadantEtherPhyMeasRxNormAlign=cadantEtherPhyMeasRxNormAlign, cadantUPortMeasAppMinusBWReqFrms=cadantUPortMeasAppMinusBWReqFrms, cadantUFIDMeasTable=cadantUFIDMeasTable, cadIfMeasTable=cadIfMeasTable, cadantEtherPhyMeasTxMultiOK=cadantEtherPhyMeasTxMultiOK, cadIfInErrors=cadIfInErrors, cadantUPortMeasInitMaintColls=cadantUPortMeasInitMaintColls, cadQosPktClassMeasIfIndex=cadQosPktClassMeasIfIndex, cadantEtherPhyMeasPortId=cadantEtherPhyMeasPortId, cadantUFIDMeasSIDMACErrors=cadantUFIDMeasSIDMACErrors, cadantEtherPhyMeasTxOctOK=cadantEtherPhyMeasTxOctOK, cadantDPortMeasCardId=cadantDPortMeasCardId, cadantDPortMeasOfdmNumDataSubc=cadantDPortMeasOfdmNumDataSubc, cadantEtherPhyMeasEntry=cadantEtherPhyMeasEntry, cadantEtherPhyMeasRxSymbolErrors=cadantEtherPhyMeasRxSymbolErrors, SIDValue=SIDValue, cadantDPortMeasOfdmHighestAvgBitsPerSubc=cadantDPortMeasOfdmHighestAvgBitsPerSubc, cadantEtherPhyMeasRxLongCRC=cadantEtherPhyMeasRxLongCRC, cadLaesCountTable=cadLaesCountTable, cadantUPortMeasFilteredFrms=cadantUPortMeasFilteredFrms, cadDFIDMeasPktsDropped=cadDFIDMeasPktsDropped, cadantUPortMeasBcastReqRxPwr1s=cadantUPortMeasBcastReqRxPwr1s, cadantDPortMeasIfOutDataOctets=cadantDPortMeasIfOutDataOctets, cadantEtherPhyMeasRxPause=cadantEtherPhyMeasRxPause, cadantDPortMeasIfOutMcastDataPkts=cadantDPortMeasIfOutMcastDataPkts, cadantUPortMeasBcastFrms=cadantUPortMeasBcastFrms, cadantUFIDMeasSIDMicroreflections=cadantUFIDMeasSIDMicroreflections, cadantUPortMeasMcastDataFrms=cadantUPortMeasMcastDataFrms, cadDFIDMeasTable=cadDFIDMeasTable, cadantDPortMeasAppUcastPkts=cadantDPortMeasAppUcastPkts, UFIDIndex=UFIDIndex, cadantUFIDMeasSFID=cadantUFIDMeasSFID, cadFftUpstreamChannelEntry=cadFftUpstreamChannelEntry, cadantUFIDMeasSIDNoUniqueWordDetecteds=cadantUFIDMeasSIDNoUniqueWordDetecteds, cadSubMgtPktFilterExtEntry=cadSubMgtPktFilterExtEntry, cadantUFIDMeasSIDHCSErrors=cadantUFIDMeasSIDHCSErrors, cadantUFIDMeasGateID=cadantUFIDMeasGateID, cadDFIDMeasIndex=cadDFIDMeasIndex, cadLaesCountMacDomainIfIndex=cadLaesCountMacDomainIfIndex, cadantDPortMeasTable=cadantDPortMeasTable, cadantUFIDMeasSIDCorrecteds=cadantUFIDMeasSIDCorrecteds, cadantEtherPhyMeasTxErr=cadantEtherPhyMeasTxErr)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_union, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint') (cad_if3_cmts_cm_us_status_ch_if_index,) = mibBuilder.importSymbols('CADANT-CMTS-IF3-MIB', 'cadIf3CmtsCmUsStatusChIfIndex') (cad_if_mac_domain_if_index,) = mibBuilder.importSymbols('CADANT-CMTS-LAYER2CMTS-MIB', 'cadIfMacDomainIfIndex') (cad_if_cmts_cm_status_mac_address,) = mibBuilder.importSymbols('CADANT-CMTS-MAC-MIB', 'cadIfCmtsCmStatusMacAddress') (cad_equipment,) = mibBuilder.importSymbols('CADANT-PRODUCTS-MIB', 'cadEquipment') (port_id, card_id, cad_if_direction) = mibBuilder.importSymbols('CADANT-TC', 'PortId', 'CardId', 'CadIfDirection') (tenthd_b,) = mibBuilder.importSymbols('DOCS-IF-MIB', 'TenthdB') (if_direction,) = mibBuilder.importSymbols('DOCS-QOS3-MIB', 'IfDirection') (docs_submgt3_filter_grp_entry,) = mibBuilder.importSymbols('DOCS-SUBMGT3-MIB', 'docsSubmgt3FilterGrpEntry') (interface_index, if_index) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex', 'ifIndex') (pktc_e_sc_tap_stream_index, pktc_e_sc_tap_mediation_content_id) = mibBuilder.importSymbols('PKTC-ES-TAP-MIB', 'pktcEScTapStreamIndex', 'pktcEScTapMediationContentId') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter32, object_identity, gauge32, notification_type, counter64, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, mib_identifier, time_ticks, unsigned32, iso, integer32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'ObjectIdentity', 'Gauge32', 'NotificationType', 'Counter64', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'MibIdentifier', 'TimeTicks', 'Unsigned32', 'iso', 'Integer32', 'IpAddress') (mac_address, time_stamp, textual_convention, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'TimeStamp', 'TextualConvention', 'DisplayString', 'TruthValue') cad_hardware_meas_mib = module_identity((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2)) cadHardwareMeasMib.setRevisions(('2015-08-27 00:00', '2015-07-13 00:00', '2015-06-03 00:00', '2014-10-14 00:00', '2014-06-13 00:00', '2014-06-04 00:00', '2013-11-22 00:00', '2012-10-30 00:00', '2012-05-09 00:00', '2011-08-31 00:00', '2011-06-29 00:00', '2011-02-28 00:00', '2011-02-24 00:00', '2011-02-18 00:00', '2010-11-22 00:00', '2010-03-09 00:00', '2008-11-24 00:00', '2008-11-21 00:00', '2008-11-05 00:00', '2008-04-24 00:00', '2006-09-14 00:00', '2006-04-14 00:00', '2005-07-13 00:00', '2004-12-10 00:00', '2004-08-31 00:00', '2004-04-09 00:00', '2004-03-09 00:00', '2004-02-23 00:00', '2004-02-18 00:00', '2004-02-15 00:00', '2004-01-24 00:00', '2003-12-18 00:00', '2003-12-10 00:00', '2003-09-19 00:00', '2003-08-26 00:00', '2003-07-30 00:00', '2002-05-06 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: cadHardwareMeasMib.setRevisionsDescriptions(('Add cadantDPortMeasOfdmChanUtilization', 'Add cadInterfaceHighResUtilizationPercentage and cadInterfaceIntervalOctetsForwarded', 'Add cadantDPortMeasDfdmIfSpeed, cadantDPortMeasOfdmHighestAvgBitsPerSubc, and cadantDPortMeasOfdmNumDataSubc', 'Support 384 downstream channels per DCAM-B', 'Add back in cadFftUpstreamChannelTable', 'Add cadDCardIgmpThrottleDropPkts.', 'Remove cadFftUpstreamChannelTable', 'Add cadLaesCountTable', 'Remove cadHWCmUsMeasTable', 'Remove cadantUPortMeasMapFrms', 'Remove cadSFIDMeasEntry', 'Deprecate cadSFIDMeasEntry and add the following MIB objects to cadantUFIDMeasEntry cadantUFIDMeasCcfStatsSgmtValids, cadantUFIDMeasCcfStatsSgmtLost and cadantUFIDMeasCcfStatsSgmtDrop.', 'Remove cadSFIDToSIDEntry', 'Add cadantUFIDMeasSIDMacIfIndex and cadantUFIDMeasSIDBonded to cadantUFIDMeasEntry', 'Change indices of cadDFIDMeasEntry as ifIndex and SFID. Change indices of cadantUFIDMeasEntry as ifIndex and SID', 'Add cadDCardDhcpV6ThrottleDropPkts and cadDCardNdThrottleDropPkts.', 'Add cadHWCmUsMeasEntry', 'Restructure cadantHWUFIDMeasEntry, rename cadantUFIDMeasUFID to cadantUFIDMeasSID, and Add cadantHWMeasUFIDIndex', 'Restructure cadSFIDMeasEntry to support docsQosServiceFlowCcfStatsEntry', 'Use ifindex as key for sfid to sid lookup.', 'Remove fabric tables and add CPWRED tables to match implementation.', 'Added implementation per utilization interval for cadInterfaceUtilizationAvgContSlots.', 'Added cadDFIDMeasPolicedDelayPkts for Traffic Shaping feature.', 'Extended cadSubMgtPktFilterExtTable to allow for packet capturing.', 'Added cadSubMgtPktFilterExtTable to reset docsSubMgtPktFilterMatches.', 'Added cadFftUpstreamChannelTable for FFT counts.', 'Added cadInterfaceUtilizationTable', 'Added support for per-SID HCS and CRC errors.', 'Added cadantDPortMeasIfOutTotalOctets', 'Added support for per UFID microreflection/signalnoise.', 'Added cadantDPortMeasAppMcastPkts', 'Added 10 BCM3214 counts to the cadantUPortMeasTable', ' add more arp throttle counts. ', ' add more receive error counts to cadantEtherPhyMeasTable', ' add error drop and filter drop counts to UPortMeas table', ' Add support for DHCP packets dropped due to throttling. ', ' change cadantUFIDMeasBytsSGreedyDrop to cadantUFIDMeasPktsSGreedyDrop.')) if mibBuilder.loadTexts: cadHardwareMeasMib.setLastUpdated('201508270000Z') if mibBuilder.loadTexts: cadHardwareMeasMib.setOrganization('Arris International, Inc.') if mibBuilder.loadTexts: cadHardwareMeasMib.setContactInfo('Arris Technical Support E-Mail: [email protected]') if mibBuilder.loadTexts: cadHardwareMeasMib.setDescription('This Mib Module contains all of the counts that are associated with hardware in the ARRIS C4 CMTS. Many of these MIB variables contain the same counts as found in the standard MIBs. However, the grouping of these variables is done for the convenience of the Cadant engineering team. These tables can be used to build value-added interfaces to the Cadant ARRIS C4 CMTS. ') class Dfidindex(TextualConvention, Unsigned32): description = "The 1's-based SFID" status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1, 4294967295) class Pktclassid(TextualConvention, Integer32): description = 'Index assigned to packet classifier entry by the CMTS which is unique per service flow.' status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 65535) class Sfidindex(TextualConvention, Integer32): description = "The 1's-based SFID" status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 2147483647) class Ufidindex(TextualConvention, Integer32): description = "The 1's-based UFID" status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(1, 32768) class Sidvalue(TextualConvention, Integer32): description = "The 1's-based SID. 0 is used when there is no SID, such as for downstream flows." status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 16384) class Tmside(TextualConvention, Integer32): description = 'The Traffic Manager side no SID, such as for downstream flows.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('tma', 1), ('tmb', 2)) cadant_hw_meas_general = mib_identifier((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1)) cadant_fab_actual_depth = mib_scalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantFabActualDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabActualDepth.setDescription(' The current depth of the fabric.') cadant_fab_avg_depth = mib_scalar((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantFabAvgDepth.setStatus('current') if mibBuilder.loadTexts: cadantFabAvgDepth.setDescription(' The average depth of the fabric.') cadant_u_port_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3)) if mibBuilder.loadTexts: cadantUPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasTable.setDescription(' This table contains information relevant to D Card upstream channels.') cadant_u_port_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadantUPortMeasCardId'), (0, 'CADANT-HW-MEAS-MIB', 'cadantUPortMeasPortId')) if mibBuilder.loadTexts: cadantUPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasEntry.setDescription(' ') cadant_u_port_meas_card_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 1), card_id()) if mibBuilder.loadTexts: cadantUPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasCardId.setDescription('') cadant_u_port_meas_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 2), port_id()) if mibBuilder.loadTexts: cadantUPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasPortId.setDescription('') cadant_u_port_meas_ucast_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadant_u_port_meas_mcast_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadant_u_port_meas_bcast_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This includes MAC packets.') cadant_u_port_meas_ucast_data_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasUcastDataFrms.setDescription(' The aggregrate number of unicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadant_u_port_meas_mcast_data_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasMcastDataFrms.setDescription(' The aggregrate number of multicast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadant_u_port_meas_bcast_data_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastDataFrms.setDescription(' The aggregrate number of broadcast frames received on this U channel, whether dropped or passed. This does not include MAC packets.') cadant_u_port_meas_discard_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasDiscardFrms.setDescription(' The aggregrate number of frames received on this U channel that were dropped for reasons other than ErrorFrms or FilterFrms.') cadant_u_port_meas_if_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInOctets.setDescription(' The aggregrate number of octets received on this U channel. This includes MAC packets and the length of the MAC header.') cadant_u_port_meas_if_in_data_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInDataOctets.setDescription(' The aggregrate number of octets received on this U channel. This does not include MAC packets or the length of the MAC header.') cadant_u_port_meas_if_in_unknown_protos = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasIfInUnknownProtos.setDescription(' Aggregrate number of MAC frames with unknown protocol. This count is neither mutually exclusive with cadantUPortMeasErroredFrms nor cadantUPortMeasErroredFrms.') cadant_u_port_meas_app_minus_bw_req_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasAppMinusBWReqFrms.setDescription(' The number of (unicast) frames received by the software application which are not bandwidth request frames. ') cadant_u_port_meas_errored_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasErroredFrms.setDescription(' The aggregrate number of packets received on this U channel that were received in error and dropped. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasFilteredFrms.') cadant_u_port_meas_filtered_frms = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasFilteredFrms.setDescription(' The aggregrate number of packets received on this U channel that were dropped due to a filter rule match and discard. This count is neither mutually exclusive with cadantUPortMeasIfInUnknownProtos nor cadantUPortMeasErroredFrms.') cadant_u_port_meas_bcast_req_opps = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqOpps.setDescription('Broadcast contention request opportunity count') cadant_u_port_meas_bcast_req_colls = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqColls.setDescription('Broadcast contention request opportunities with possible collisions count') cadant_u_port_meas_bcast_req_no_energies = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqNoEnergies.setDescription('Broadcast contention request opportunities with no energy condition detected') cadant_u_port_meas_bcast_req_rx_pwr1s = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr1s.setDescription('Broadcast contention request opportunities with received power level between power threshold 2 and power threshold 1') cadant_u_port_meas_bcast_req_rx_pwr2s = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasBcastReqRxPwr2s.setDescription('Broadcast contention request opportunities with received power level greater than power threshold 2') cadant_u_port_meas_init_maint_opps = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintOpps.setDescription('Initial maintenance opportunities') cadant_u_port_meas_init_maint_colls = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintColls.setDescription('Initial maintenance opportunities with possible collision') cadant_u_port_meas_init_maint_no_energies = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintNoEnergies.setDescription('Initial maintenance opportunities with no energy detected') cadant_u_port_meas_init_maint_rx_pwr1s = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr1s.setDescription('Initial maintenance opportunities with received power level between power threshold 2 and power threshold 1') cadant_u_port_meas_init_maint_rx_pwr2s = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 3, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setStatus('current') if mibBuilder.loadTexts: cadantUPortMeasInitMaintRxPwr2s.setDescription('Initial maintenance opportunities with received power level greater than power threshold 2') cadant_d_port_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4)) if mibBuilder.loadTexts: cadantDPortMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasTable.setDescription(' This table contains information relevant to D Card downstream channels.') cadant_d_port_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadantDPortMeasCardId'), (0, 'CADANT-HW-MEAS-MIB', 'cadantDPortMeasPortId')) if mibBuilder.loadTexts: cadantDPortMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasEntry.setDescription(' ') cadant_d_port_meas_card_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 1), card_id()) if mibBuilder.loadTexts: cadantDPortMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasCardId.setDescription('') cadant_d_port_meas_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 2), port_id()) if mibBuilder.loadTexts: cadantDPortMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasPortId.setDescription('') cadant_d_port_meas_if_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This includes MAC mgmt messages and the length of the MAC header.') cadant_d_port_meas_if_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This includes MAC mgmt messages.') cadant_d_port_meas_if_out_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This includes MAC mgmt messages.') cadant_d_port_meas_if_out_bcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This includes MAC mgmt messages.') cadant_d_port_meas_if_out_data_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutDataOctets.setDescription(' Aggregrate number of data bytes sent on this D channel. This does not include MAC mgmt bytes.') cadant_d_port_meas_if_out_ucast_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutUcastDataPkts.setDescription(' Aggregrate number of unicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadant_d_port_meas_if_out_mcast_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutMcastDataPkts.setDescription(' Aggregrate number of multicast data packets sent on this D channel. This does not include MAC mgmt messages.') cadant_d_port_meas_if_out_bcast_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutBcastDataPkts.setDescription(' Aggregrate number of broadcast data packets sent on this D channel. This does not include MAC mgmt messages.') cadant_d_port_meas_got_no_dma_cs = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoDMACs.setDescription(' Aggregrate number of ???') cadant_d_port_meas_got_no_classes = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasGotNoClasses.setDescription(' Aggregrate number of ???.') cadant_d_port_meas_sync_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasSyncPkts.setDescription(' Aggregrate number of sync. frames sent on this D channel.') cadant_d_port_meas_app_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppUcastPkts.setDescription(' Aggregrate number of unicast DOCSIS Mac mgmt messages sent by application software. ') cadant_d_port_meas_app_mcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasAppMcastPkts.setDescription(' Aggregrate number of multicast DOCSIS Mac mgmt messages sent by application software. ') cadant_d_port_meas_if_out_total_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasIfOutTotalOctets.setDescription(' Aggregrate number of octets sent by application software. ') cadant_d_port_meas_ofdm_if_speed = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 17), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmIfSpeed.setDescription('Downstream OFDM channel interface speed.') cadant_d_port_meas_ofdm_highest_avg_bits_per_subc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 18), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmHighestAvgBitsPerSubc.setDescription('Highest average bits per subcarrier among all the data profiles of the downstream OFDM channel.') cadant_d_port_meas_ofdm_num_data_subc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 19), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmNumDataSubc.setDescription('The number of data subcarrier of the downstream OFDM channel.') cadant_d_port_meas_ofdm_chan_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 4, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setStatus('current') if mibBuilder.loadTexts: cadantDPortMeasOfdmChanUtilization.setDescription('The utilization of the downstream OFDM channel.') cadant_ufid_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6)) if mibBuilder.loadTexts: cadantUFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasTable.setDescription(' ') cadant_ufid_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CADANT-HW-MEAS-MIB', 'cadantUFIDMeasSID')) if mibBuilder.loadTexts: cadantUFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasEntry.setDescription(' ') cadant_ufid_meas_sid = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 3), sid_value()) if mibBuilder.loadTexts: cadantUFIDMeasSID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSID.setDescription(' The 14 bit (SID).') cadant_ufid_meas_pkts_s_greedy_drop = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsSGreedyDrop.setDescription(' The aggregrate number of Super Greedy pkts dropped for this UFID for this MAC layer.') cadant_ufid_meas_byts_other_drop = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsOtherDrop.setDescription(' The aggregrate number of bytes dropped for this UFID for this MAC layer for any other reason than Super Greedy.') cadant_ufid_meas_byts_arrived = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes that arrived for this UFID for this MAC layer.') cadant_ufid_meas_pkts_arrived = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPktsArrived.setDescription(' The aggregrate number of packets that arrived for this UFID for this MAC layer.') cadant_ufid_meas_sid_correcteds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were corrected for this UFID for this MAC layer.') cadant_ufid_meas_sid_unerroreds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnerroreds.setDescription(' The aggregrate number of bytes that had no errors for this UFID for this MAC layer.') cadant_ufid_meas_sid_un_correcteds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDUnCorrecteds.setDescription(' The aggregrate number of bytes that had errors and were not corrected for this UFID for this MAC layer.') cadant_ufid_meas_sid_no_unique_word_detecteds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoUniqueWordDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID in which no unique code word was detected for this UFID for this MAC layer.') cadant_ufid_meas_sid_collided_bursts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCollidedBursts.setDescription(' The aggregrate number of bytes allocated for this UFID that had burst errors in their slots for this UFID for this MAC layer.') cadant_ufid_meas_sid_no_energy_detecteds = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDNoEnergyDetecteds.setDescription(' The aggregrate number of bytes allocated for this UFID that had no energy detected in their slots for this UFID for this MAC layer.') cadant_ufid_meas_sid_length_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDLengthErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had no length errors in their slots for this UFID for this MAC layer.') cadant_ufid_meas_sidmac_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMACErrors.setDescription(' The aggregrate number of bytes allocated for this UFID that had MAC errors in their slots for this UFID for this MAC layer.') cadant_ufid_meas_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 17), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cadant_ufid_meas_scn = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 18), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cadant_ufid_meas_sfid = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 19), sfid_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSFID.setDescription(' The SFID this UFID(SID) is for.') cadant_ufid_meas_phs_unknowns = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cadant_ufid_meas_frag_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasFragPkts.setDescription('refer to docsQosUpstreamFragPkts') cadant_ufid_meas_incomplete_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasIncompletePkts.setDescription('refer to docsQosUpstreamIncompletePkts') cadant_ufid_meas_concat_bursts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasConcatBursts.setDescription('refer to docsQosUpstreamConcatBursts') cadant_ufid_meas_sid_signal_noise = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 24), tenthd_b()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDSignalNoise.setDescription('refer to docsIfCmtsCmStatusSignalNoise') cadant_ufid_meas_sid_microreflections = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 25), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMicroreflections.setDescription('refer to docsIfCmtsCmStatusMicroreflections') cadant_ufid_meas_sidhcs_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDHCSErrors.setDescription('The number of MAC HCS errors seen for this SID.') cadant_ufid_meas_sidcrc_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDCRCErrors.setDescription('The number of MAC CRC errors seen for this SID.') cadant_ufid_meas_ufid_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 28), ufid_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasUFIDIndex.setDescription(' The 15 bit (UFID).') cadant_ufid_meas_gate_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 29), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cadant_ufid_meas_sid_mac_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 30), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDMacIfIndex.setDescription(' The cable Mac domain ifIndex the SID is associated with.') cadant_ufid_meas_sid_bonded = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 31), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasSIDBonded.setDescription(' This object indicates whether a SID is associated with a CCF service flow.') cadant_ufid_meas_ccf_stats_sgmt_valids = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 32), counter32()).setUnits('segments').setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtValids.setDescription('This attribute contains the number of segments counted on this service flow regardless of whether the fragment was correctly reassembled into valid packets. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadant_ufid_meas_ccf_stats_sgmt_lost = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 33), counter32()).setUnits('segments').setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtLost.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were lost. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadant_ufid_meas_ccf_stats_sgmt_drop = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 6, 1, 34), counter32()).setUnits('segments').setMaxAccess('readonly') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setStatus('current') if mibBuilder.loadTexts: cadantUFIDMeasCcfStatsSgmtDrop.setDescription('This attribute counts the number of segments which the CMTS segment reassembly function determines were dropped. Discontinuities in the value of this counter can occur at reinitialization of the managed system.') cadant_ether_phy_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10)) if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTable.setDescription(' ') cadant_ether_phy_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadantEtherPhyMeasCardId'), (0, 'CADANT-HW-MEAS-MIB', 'cadantEtherPhyMeasPortId')) if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasEntry.setDescription(' ') cadant_ether_phy_meas_card_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 1), card_id()) if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasCardId.setDescription('') cadant_ether_phy_meas_port_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 2), port_id()) if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasPortId.setDescription('') cadant_ether_phy_meas_rx_oct_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctOK.setDescription(' .') cadant_ether_phy_meas_rx_uni_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxUniOK.setDescription(' .') cadant_ether_phy_meas_rx_multi_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxMultiOK.setDescription(' .') cadant_ether_phy_meas_rx_broad_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxBroadOK.setDescription(' .') cadant_ether_phy_meas_rx_overflow = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOverflow.setDescription(' .') cadant_ether_phy_meas_rx_norm_align = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormAlign.setDescription(' .') cadant_ether_phy_meas_rx_norm_crc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxNormCRC.setDescription(' .') cadant_ether_phy_meas_rx_long_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongOK.setDescription(' .') cadant_ether_phy_meas_rx_long_crc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxLongCRC.setDescription(' .') cadant_ether_phy_meas_rx_fals_crs = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxFalsCRS.setDescription(' .') cadant_ether_phy_meas_rx_symbol_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxSymbolErrors.setDescription(' .') cadant_ether_phy_meas_rx_pause = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxPause.setDescription(' .') cadant_ether_phy_meas_tx_oct_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxOctOK.setDescription(' .') cadant_ether_phy_meas_tx_uni_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxUniOK.setDescription(' .') cadant_ether_phy_meas_tx_multi_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMultiOK.setDescription(' .') cadant_ether_phy_meas_tx_broad_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxBroadOK.setDescription(' .') cadant_ether_phy_meas_tx_scol = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxScol.setDescription(' .') cadant_ether_phy_meas_tx_mcol = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxMcol.setDescription(' .') cadant_ether_phy_meas_tx_deferred = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxDeferred.setDescription(' .') cadant_ether_phy_meas_tx_lcol = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxLcol.setDescription(' .') cadant_ether_phy_meas_tx_ccol = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxCcol.setDescription(' .') cadant_ether_phy_meas_tx_err = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxErr.setDescription(' .') cadant_ether_phy_meas_tx_pause = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasTxPause.setDescription(' .') cadant_ether_phy_meas_rx_short_ok = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortOK.setDescription(' .') cadant_ether_phy_meas_rx_short_crc = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxShortCRC.setDescription(' .') cadant_ether_phy_meas_rx_runt = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxRunt.setDescription(' .') cadant_ether_phy_meas_rx_oct_bad = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 10, 1, 29), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setStatus('current') if mibBuilder.loadTexts: cadantEtherPhyMeasRxOctBad.setDescription(' .') cad_dfid_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14)) if mibBuilder.loadTexts: cadDFIDMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasTable.setDescription('This table contains DFID-specific counts.') cad_dfid_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CADANT-HW-MEAS-MIB', 'cadDFIDMeasIndex')) if mibBuilder.loadTexts: cadDFIDMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasEntry.setDescription(' ') cad_dfid_meas_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 3), sfid_index()) if mibBuilder.loadTexts: cadDFIDMeasIndex.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasIndex.setDescription(' The SFID these DFID counts are for.') cad_dfid_meas_byts_arrived = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsArrived.setDescription(' The aggregrate number of bytes arriving to go out, but not necessarily transmitted.') cad_dfid_meas_pkts_arrived = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsArrived.setDescription(' The aggregrate number of packets arriving to go out, but not necessarily transmitted.') cad_dfid_meas_byts_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsDropped.setDescription(' The aggregrate number of bytes dropped.') cad_dfid_meas_pkts_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPktsDropped.setDescription(' The aggregrate number of packets dropped.') cad_dfid_meas_byts_unk_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasBytsUnkDropped.setDescription(' The aggregrate number of bytes dropped due to unknown DMAC.') cad_dfid_meas_dfid = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 9), dfid_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasDFID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasDFID.setDescription(' The DFID.') cad_dfid_meas_phs_unknowns = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPHSUnknowns.setDescription('refer to docsQosServiceFlowPHSUnknowns') cad_dfid_meas_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 11), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasMacAddress.setDescription(' The MAC address of the CM this flow is associated with.') cad_dfid_meas_scn = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 12), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasSCN.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasSCN.setDescription(' The Service Class Name for this flow.') cad_dfid_meas_policed_delay_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasPolicedDelayPkts.setDescription('refer to docsQosServiceFlowPolicedDelayPkts') cad_dfid_meas_gate_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 14, 1, 14), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDFIDMeasGateID.setStatus('current') if mibBuilder.loadTexts: cadDFIDMeasGateID.setDescription(' The DQoS or PCMM gate ID corresponding to the flow, A zero in this field indicates no gate is associated with the flow.') cad_qos_pkt_class_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16)) if mibBuilder.loadTexts: cadQosPktClassMeasTable.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasTable.setDescription(' This table contains just one data member: cadQosPktClassMeasPkts, which is equivalent to docsQosPktClassPkts in qos-draft-04.') cad_qos_pkt_class_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadQosPktClassMeasIfIndex'), (0, 'CADANT-HW-MEAS-MIB', 'cadQosPktClassMeasSFID'), (0, 'CADANT-HW-MEAS-MIB', 'cadQosPktClassMeasPktClassId')) if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasEntry.setDescription(' ') cad_qos_pkt_class_meas_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 1), interface_index()) if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasIfIndex.setDescription(' The ifIndex of ifType 127 for this classifier.') cad_qos_pkt_class_meas_sfid = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 2), sfid_index()) if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasSFID.setDescription(' The Service Flow ID this classifier is for.') cad_qos_pkt_class_meas_pkt_class_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 3), pkt_class_id()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPktClassId.setDescription(' The ID of this classifier, which only need be unique for a given Service Flow ID.') cad_qos_pkt_class_meas_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 16, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setStatus('current') if mibBuilder.loadTexts: cadQosPktClassMeasPkts.setDescription(' The number of packets that have been classified using this classifier on this flow.') cad_if_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18)) if mibBuilder.loadTexts: cadIfMeasTable.setStatus('current') if mibBuilder.loadTexts: cadIfMeasTable.setDescription(' This table is designed to concurrently support the counters defined in the ifTable and the ifXTable. Every row that appears in this table should have a corresponding row in both the ifTable and the ifXTable. However, not every row in the ifTable and ifXTable will appear in this table.') cad_if_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cadIfMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadIfMeasEntry.setDescription('') cad_if_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInOctets.setStatus('current') if mibBuilder.loadTexts: cadIfInOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfInBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfInDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInErrors.setStatus('current') if mibBuilder.loadTexts: cadIfInErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_in_unknown_protos = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfInUnknownProtos.setStatus('current') if mibBuilder.loadTexts: cadIfInUnknownProtos.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutOctets.setStatus('current') if mibBuilder.loadTexts: cadIfOutOctets.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutUcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutUcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutMulticastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutMulticastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setStatus('current') if mibBuilder.loadTexts: cadIfOutBroadcastPkts.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_discards = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutDiscards.setStatus('current') if mibBuilder.loadTexts: cadIfOutDiscards.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_if_out_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 18, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadIfOutErrors.setStatus('current') if mibBuilder.loadTexts: cadIfOutErrors.setDescription(" See the IF-MIB's corresponding object's DESCRIPTION for a description of this object.") cad_d_card_meas_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20)) if mibBuilder.loadTexts: cadDCardMeasTable.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasTable.setDescription(' This table contains information relevant to D Card counts.') cad_d_card_meas_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1)).setIndexNames((0, 'CADANT-HW-MEAS-MIB', 'cadDCardMeasCardId')) if mibBuilder.loadTexts: cadDCardMeasEntry.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasEntry.setDescription(' ') cad_d_card_meas_card_id = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 1), card_id()) if mibBuilder.loadTexts: cadDCardMeasCardId.setStatus('current') if mibBuilder.loadTexts: cadDCardMeasCardId.setDescription('') cad_d_card_ip_in_receives = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardIpInReceives.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInReceives.setDescription('The contribution to ipInRecevies for this particular D Card.') cad_d_card_ip_in_hdr_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInHdrErrors.setDescription('The contribution to ipInHdrErrors for this particular D Card.') cad_d_card_ip_in_addr_errors = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setStatus('current') if mibBuilder.loadTexts: cadDCardIpInAddrErrors.setDescription('The contribution to ipInAddrErrors for this particular D Card.') cad_d_card_dhcp_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpThrottleDropPkts.setDescription('The number of dropped DHCP requests for this D Card.') cad_d_card_arp_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardArpThrottleDropPkts.setDescription('The number of dropped ARP requests for this D Card.') cad_d_card_dhcp_v6_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardDhcpV6ThrottleDropPkts.setDescription('The number of dropped IPV6 DHCP requests for this D Card.') cad_d_card_nd_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardNdThrottleDropPkts.setDescription('The number of dropped IPV6 ND requests for this D Card.') cad_d_card_igmp_throttle_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 20, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setStatus('current') if mibBuilder.loadTexts: cadDCardIgmpThrottleDropPkts.setDescription('The number of dropped IGMP messages for this UCAM.') cad_interface_utilization_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23)) if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationTable.setDescription('Reports utilization statistics for attached interfaces.') cad_interface_utilization_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CADANT-HW-MEAS-MIB', 'cadInterfaceUtilizationDirection')) if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationEntry.setDescription('Utilization statistics for a single interface. An entry exists in this table for each ifEntry with an ifType equal to docsCableDownstreamInterface (128), docsCableUpstreamInterface (129), docsCableUpstreamChannel (205), ethernet(6), or gigabitEthernet(117).') cad_interface_utilization_direction = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 1), cad_if_direction()) if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationDirection.setDescription("The direction of flow this utilization is for. Cable upstream interfaces will only have a value of 'in' for this object. Likewise, cable downstream interfaces will only hav a value of 'out' for this object. Full-duplex interfaces, such as fastEthernet and gigabitEthernet interfaces, will have both 'in' and 'out' rows.") cad_interface_utilization_percentage = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate as of the most recent docsIfCmtsChannelUtilizationInterval.') cad_interface_utilization_avg_cont_slots = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setUnits('percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setStatus('current') if mibBuilder.loadTexts: cadInterfaceUtilizationAvgContSlots.setDescription('Applicable for ifType of docsCableUpstreamChannel (205) only. The average percentage of contention mini-slots for upstream channel. This ratio is calculated the most recent utilization interval. Formula: Upstream contention mini-slots utilization = (100 * ((contention mini-slots ) / (total mini-slots))') cad_interface_high_res_utilization_percentage = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 10000))).setUnits('Hundredth of a percent').setMaxAccess('readonly') if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setStatus('current') if mibBuilder.loadTexts: cadInterfaceHighResUtilizationPercentage.setDescription('The calculated and truncated utilization index for this interface, accurate (to 0.01% resolution) as of the most recent docsIfCmtsChannelUtilizationInterval.') cad_interface_interval_octets_forwarded = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 23, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setStatus('current') if mibBuilder.loadTexts: cadInterfaceIntervalOctetsForwarded.setDescription('The number of octets forwarded since the most recent docsIfCmtsChannelUtilizationInterval. Note that this count will only apply to the following interface types: Ethernet, Link-Aggregate. For all other interface types this value will display 0') cad_sub_mgt_pkt_filter_ext_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25)) if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtTable.setDescription('This table augments the docsSubMgtPktFilterTable. In its current form, it is used to clear docsSubMgtPktFilterMatches and keep track of the change.') cad_sub_mgt_pkt_filter_ext_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1)) docsSubmgt3FilterGrpEntry.registerAugmentions(('CADANT-HW-MEAS-MIB', 'cadSubMgtPktFilterExtEntry')) cadSubMgtPktFilterExtEntry.setIndexNames(*docsSubmgt3FilterGrpEntry.getIndexNames()) if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterExtEntry.setDescription('For every docsSubmgt3FilterGrpEntry, there is a matching cadSubMgtPktFilterExtEntry.') cad_sub_mgt_pkt_filter_matches_reset = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 1), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterMatchesReset.setDescription('This object always return false(2) when read. If the value false(2) is assigned to this object, no action is taken. However, if this object it set to the value true(1), the corresponding docsSubMgtPktFilterMatches counter object is set to 0 and cadSubMgtPktFilterLastChanged is set to the current time.') cad_sub_mgt_pkt_filter_last_changed = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 2), time_stamp()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterLastChanged.setDescription('The time at which docsSubMgtPktFilterMatches might have experienced a discontinuity, such as when cadSubMgtPktFilterMatchesReset is set to true(1) or when any of the parameters in the docsSubMgtPktFilterTable affecting filtering last changed.') cad_sub_mgt_pkt_filter_capture_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 25, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setStatus('current') if mibBuilder.loadTexts: cadSubMgtPktFilterCaptureEnabled.setDescription('Indicates whether packets matching this filter are captured for possible debug logging. A value of true indicates that packets matching this filter will be captured. A value of false indicates that packets matching this filter will not be captured for later debuggging.') cad_laes_count_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26)) if mibBuilder.loadTexts: cadLaesCountTable.setStatus('current') if mibBuilder.loadTexts: cadLaesCountTable.setDescription('This table references pktcEScTapStreamTable') cad_laes_count_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1)).setIndexNames((0, 'PKTC-ES-TAP-MIB', 'pktcEScTapMediationContentId'), (0, 'PKTC-ES-TAP-MIB', 'pktcEScTapStreamIndex')) if mibBuilder.loadTexts: cadLaesCountEntry.setStatus('current') if mibBuilder.loadTexts: cadLaesCountEntry.setDescription('For every cadLaesCountEntry, there is a matching pktcEScTapStreamEntry.') cad_laes_count_mac_domain_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 1), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setStatus('current') if mibBuilder.loadTexts: cadLaesCountMacDomainIfIndex.setDescription('This object indicates the cable Mac domain interface index that the LAES stream is associated with.') cad_laes_count_stream_direction = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 2), if_direction()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadLaesCountStreamDirection.setStatus('current') if mibBuilder.loadTexts: cadLaesCountStreamDirection.setDescription('This object indicates either downstream or upstream direction that the LAES stream is associated with.') cad_laes_count_intercepted_packets = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptedPackets.setDescription('Indicates number of intercepted packets are sent of the LAES stream.') cad_laes_count_intercept_drops = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 26, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setStatus('current') if mibBuilder.loadTexts: cadLaesCountInterceptDrops.setDescription('Indicates number of intercepted packets are dropped of the LAES stream.') cad_fft_upstream_channel_table = mib_table((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24)) if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelTable.setDescription('Reports current FFT operation status.') cad_fft_upstream_channel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setStatus('current') if mibBuilder.loadTexts: cadFftUpstreamChannelEntry.setDescription('FFT status for a single upstream channel with ifType docsCableUpstreamInterface(129).') cad_fft_in_progress = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 1), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadFftInProgress.setStatus('current') if mibBuilder.loadTexts: cadFftInProgress.setDescription('The current state on the FFT capture. ') cad_fft_current_triggers = mib_table_column((1, 3, 6, 1, 4, 1, 4998, 1, 1, 10, 2, 24, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cadFftCurrentTriggers.setStatus('current') if mibBuilder.loadTexts: cadFftCurrentTriggers.setDescription('The number of times the FFT capture has triggered and transferred data from the Broadcom device.') mibBuilder.exportSymbols('CADANT-HW-MEAS-MIB', cadDFIDMeasBytsUnkDropped=cadDFIDMeasBytsUnkDropped, cadantDPortMeasIfOutUcastDataPkts=cadantDPortMeasIfOutUcastDataPkts, cadInterfaceUtilizationDirection=cadInterfaceUtilizationDirection, cadDCardIpInReceives=cadDCardIpInReceives, cadLaesCountStreamDirection=cadLaesCountStreamDirection, cadInterfaceUtilizationPercentage=cadInterfaceUtilizationPercentage, cadantUPortMeasInitMaintNoEnergies=cadantUPortMeasInitMaintNoEnergies, cadantUPortMeasErroredFrms=cadantUPortMeasErroredFrms, cadantEtherPhyMeasRxNormCRC=cadantEtherPhyMeasRxNormCRC, cadantEtherPhyMeasRxLongOK=cadantEtherPhyMeasRxLongOK, cadDCardIpInAddrErrors=cadDCardIpInAddrErrors, cadSubMgtPktFilterCaptureEnabled=cadSubMgtPktFilterCaptureEnabled, cadSubMgtPktFilterExtTable=cadSubMgtPktFilterExtTable, cadantUPortMeasUcastDataFrms=cadantUPortMeasUcastDataFrms, cadantUPortMeasBcastReqColls=cadantUPortMeasBcastReqColls, cadantUFIDMeasSIDCollidedBursts=cadantUFIDMeasSIDCollidedBursts, cadIfInUcastPkts=cadIfInUcastPkts, cadantEtherPhyMeasCardId=cadantEtherPhyMeasCardId, cadIfOutUcastPkts=cadIfOutUcastPkts, cadantDPortMeasIfOutMcastPkts=cadantDPortMeasIfOutMcastPkts, SFIDIndex=SFIDIndex, cadDFIDMeasBytsDropped=cadDFIDMeasBytsDropped, cadIfOutErrors=cadIfOutErrors, cadantUFIDMeasSIDNoEnergyDetecteds=cadantUFIDMeasSIDNoEnergyDetecteds, cadantEtherPhyMeasRxMultiOK=cadantEtherPhyMeasRxMultiOK, cadDCardDhcpThrottleDropPkts=cadDCardDhcpThrottleDropPkts, cadantUFIDMeasPktsSGreedyDrop=cadantUFIDMeasPktsSGreedyDrop, cadantEtherPhyMeasRxShortOK=cadantEtherPhyMeasRxShortOK, cadIfInUnknownProtos=cadIfInUnknownProtos, cadantUPortMeasMcastFrms=cadantUPortMeasMcastFrms, cadantUPortMeasBcastDataFrms=cadantUPortMeasBcastDataFrms, cadLaesCountEntry=cadLaesCountEntry, PYSNMP_MODULE_ID=cadHardwareMeasMib, cadantDPortMeasAppMcastPkts=cadantDPortMeasAppMcastPkts, cadantUFIDMeasUFIDIndex=cadantUFIDMeasUFIDIndex, cadantUFIDMeasSIDMacIfIndex=cadantUFIDMeasSIDMacIfIndex, cadQosPktClassMeasSFID=cadQosPktClassMeasSFID, cadantDPortMeasIfOutBcastPkts=cadantDPortMeasIfOutBcastPkts, cadInterfaceUtilizationTable=cadInterfaceUtilizationTable, cadDCardMeasTable=cadDCardMeasTable, cadantUPortMeasEntry=cadantUPortMeasEntry, cadantDPortMeasIfOutOctets=cadantDPortMeasIfOutOctets, cadDFIDMeasPktsArrived=cadDFIDMeasPktsArrived, cadantUPortMeasIfInUnknownProtos=cadantUPortMeasIfInUnknownProtos, cadantUPortMeasBcastReqOpps=cadantUPortMeasBcastReqOpps, cadDFIDMeasGateID=cadDFIDMeasGateID, cadantEtherPhyMeasRxUniOK=cadantEtherPhyMeasRxUniOK, cadantUFIDMeasSCN=cadantUFIDMeasSCN, cadantEtherPhyMeasRxOverflow=cadantEtherPhyMeasRxOverflow, cadantDPortMeasIfOutUcastPkts=cadantDPortMeasIfOutUcastPkts, cadantDPortMeasGotNoDMACs=cadantDPortMeasGotNoDMACs, cadDFIDMeasMacAddress=cadDFIDMeasMacAddress, cadantUFIDMeasBytsOtherDrop=cadantUFIDMeasBytsOtherDrop, cadantUFIDMeasSID=cadantUFIDMeasSID, cadIfOutOctets=cadIfOutOctets, cadantEtherPhyMeasRxRunt=cadantEtherPhyMeasRxRunt, cadantUFIDMeasCcfStatsSgmtValids=cadantUFIDMeasCcfStatsSgmtValids, cadantUPortMeasInitMaintRxPwr2s=cadantUPortMeasInitMaintRxPwr2s, TMSide=TMSide, cadDFIDMeasPHSUnknowns=cadDFIDMeasPHSUnknowns, cadantEtherPhyMeasTxUniOK=cadantEtherPhyMeasTxUniOK, cadantEtherPhyMeasRxOctBad=cadantEtherPhyMeasRxOctBad, cadDFIDMeasDFID=cadDFIDMeasDFID, cadantHWMeasGeneral=cadantHWMeasGeneral, cadQosPktClassMeasPkts=cadQosPktClassMeasPkts, cadDCardIpInHdrErrors=cadDCardIpInHdrErrors, cadFftCurrentTriggers=cadFftCurrentTriggers, cadantEtherPhyMeasRxBroadOK=cadantEtherPhyMeasRxBroadOK, cadDCardIgmpThrottleDropPkts=cadDCardIgmpThrottleDropPkts, cadSubMgtPktFilterMatchesReset=cadSubMgtPktFilterMatchesReset, cadDCardMeasCardId=cadDCardMeasCardId, cadantUFIDMeasEntry=cadantUFIDMeasEntry, cadIfMeasEntry=cadIfMeasEntry, cadDFIDMeasBytsArrived=cadDFIDMeasBytsArrived, cadantUFIDMeasSIDUnerroreds=cadantUFIDMeasSIDUnerroreds, cadIfInDiscards=cadIfInDiscards, cadIfInMulticastPkts=cadIfInMulticastPkts, cadIfOutDiscards=cadIfOutDiscards, cadantUFIDMeasPHSUnknowns=cadantUFIDMeasPHSUnknowns, cadantEtherPhyMeasTxScol=cadantEtherPhyMeasTxScol, cadDCardDhcpV6ThrottleDropPkts=cadDCardDhcpV6ThrottleDropPkts, cadantDPortMeasOfdmIfSpeed=cadantDPortMeasOfdmIfSpeed, DFIDIndex=DFIDIndex, cadInterfaceUtilizationAvgContSlots=cadInterfaceUtilizationAvgContSlots, cadantEtherPhyMeasTxCcol=cadantEtherPhyMeasTxCcol, PktClassId=PktClassId, cadantUPortMeasDiscardFrms=cadantUPortMeasDiscardFrms, cadDCardMeasEntry=cadDCardMeasEntry, cadantEtherPhyMeasTxLcol=cadantEtherPhyMeasTxLcol, cadantUPortMeasBcastReqNoEnergies=cadantUPortMeasBcastReqNoEnergies, cadantUFIDMeasMacAddress=cadantUFIDMeasMacAddress, cadDCardArpThrottleDropPkts=cadDCardArpThrottleDropPkts, cadIfOutMulticastPkts=cadIfOutMulticastPkts, cadInterfaceIntervalOctetsForwarded=cadInterfaceIntervalOctetsForwarded, cadQosPktClassMeasTable=cadQosPktClassMeasTable, cadQosPktClassMeasEntry=cadQosPktClassMeasEntry, cadantUFIDMeasSIDLengthErrors=cadantUFIDMeasSIDLengthErrors, cadantFabActualDepth=cadantFabActualDepth, cadantUFIDMeasCcfStatsSgmtLost=cadantUFIDMeasCcfStatsSgmtLost, cadDFIDMeasPolicedDelayPkts=cadDFIDMeasPolicedDelayPkts, cadantDPortMeasOfdmChanUtilization=cadantDPortMeasOfdmChanUtilization, cadantUFIDMeasSIDUnCorrecteds=cadantUFIDMeasSIDUnCorrecteds, cadDCardNdThrottleDropPkts=cadDCardNdThrottleDropPkts, cadInterfaceUtilizationEntry=cadInterfaceUtilizationEntry, cadantUPortMeasUcastFrms=cadantUPortMeasUcastFrms, cadantDPortMeasPortId=cadantDPortMeasPortId, cadantUFIDMeasFragPkts=cadantUFIDMeasFragPkts, cadantFabAvgDepth=cadantFabAvgDepth, cadLaesCountInterceptedPackets=cadLaesCountInterceptedPackets, cadantDPortMeasSyncPkts=cadantDPortMeasSyncPkts, cadIfInOctets=cadIfInOctets, cadIfOutBroadcastPkts=cadIfOutBroadcastPkts, cadantUPortMeasTable=cadantUPortMeasTable, cadantEtherPhyMeasRxFalsCRS=cadantEtherPhyMeasRxFalsCRS, cadantEtherPhyMeasRxOctOK=cadantEtherPhyMeasRxOctOK, cadInterfaceHighResUtilizationPercentage=cadInterfaceHighResUtilizationPercentage, cadIfInBroadcastPkts=cadIfInBroadcastPkts, cadantEtherPhyMeasTable=cadantEtherPhyMeasTable, cadDFIDMeasEntry=cadDFIDMeasEntry, cadantEtherPhyMeasTxMcol=cadantEtherPhyMeasTxMcol, cadantUFIDMeasConcatBursts=cadantUFIDMeasConcatBursts, cadantEtherPhyMeasRxShortCRC=cadantEtherPhyMeasRxShortCRC, cadHardwareMeasMib=cadHardwareMeasMib, cadantEtherPhyMeasTxBroadOK=cadantEtherPhyMeasTxBroadOK, cadantDPortMeasIfOutBcastDataPkts=cadantDPortMeasIfOutBcastDataPkts, cadantEtherPhyMeasTxDeferred=cadantEtherPhyMeasTxDeferred, cadantDPortMeasGotNoClasses=cadantDPortMeasGotNoClasses, cadSubMgtPktFilterLastChanged=cadSubMgtPktFilterLastChanged, cadantUFIDMeasBytsArrived=cadantUFIDMeasBytsArrived, cadantEtherPhyMeasTxPause=cadantEtherPhyMeasTxPause, cadantUPortMeasCardId=cadantUPortMeasCardId, cadantUFIDMeasSIDCRCErrors=cadantUFIDMeasSIDCRCErrors, cadantUPortMeasIfInDataOctets=cadantUPortMeasIfInDataOctets, cadFftUpstreamChannelTable=cadFftUpstreamChannelTable, cadantUPortMeasInitMaintRxPwr1s=cadantUPortMeasInitMaintRxPwr1s, cadDFIDMeasSCN=cadDFIDMeasSCN, cadantUPortMeasIfInOctets=cadantUPortMeasIfInOctets, cadantUFIDMeasIncompletePkts=cadantUFIDMeasIncompletePkts, cadLaesCountInterceptDrops=cadLaesCountInterceptDrops, cadantDPortMeasIfOutTotalOctets=cadantDPortMeasIfOutTotalOctets, cadQosPktClassMeasPktClassId=cadQosPktClassMeasPktClassId, cadantUFIDMeasSIDSignalNoise=cadantUFIDMeasSIDSignalNoise, cadFftInProgress=cadFftInProgress, cadantUPortMeasBcastReqRxPwr2s=cadantUPortMeasBcastReqRxPwr2s, cadantDPortMeasEntry=cadantDPortMeasEntry, cadantUFIDMeasCcfStatsSgmtDrop=cadantUFIDMeasCcfStatsSgmtDrop, cadantUFIDMeasSIDBonded=cadantUFIDMeasSIDBonded, cadantUPortMeasInitMaintOpps=cadantUPortMeasInitMaintOpps, cadantUPortMeasPortId=cadantUPortMeasPortId, cadantUFIDMeasPktsArrived=cadantUFIDMeasPktsArrived, cadantEtherPhyMeasRxNormAlign=cadantEtherPhyMeasRxNormAlign, cadantUPortMeasAppMinusBWReqFrms=cadantUPortMeasAppMinusBWReqFrms, cadantUFIDMeasTable=cadantUFIDMeasTable, cadIfMeasTable=cadIfMeasTable, cadantEtherPhyMeasTxMultiOK=cadantEtherPhyMeasTxMultiOK, cadIfInErrors=cadIfInErrors, cadantUPortMeasInitMaintColls=cadantUPortMeasInitMaintColls, cadQosPktClassMeasIfIndex=cadQosPktClassMeasIfIndex, cadantEtherPhyMeasPortId=cadantEtherPhyMeasPortId, cadantUFIDMeasSIDMACErrors=cadantUFIDMeasSIDMACErrors, cadantEtherPhyMeasTxOctOK=cadantEtherPhyMeasTxOctOK, cadantDPortMeasCardId=cadantDPortMeasCardId, cadantDPortMeasOfdmNumDataSubc=cadantDPortMeasOfdmNumDataSubc, cadantEtherPhyMeasEntry=cadantEtherPhyMeasEntry, cadantEtherPhyMeasRxSymbolErrors=cadantEtherPhyMeasRxSymbolErrors, SIDValue=SIDValue, cadantDPortMeasOfdmHighestAvgBitsPerSubc=cadantDPortMeasOfdmHighestAvgBitsPerSubc, cadantEtherPhyMeasRxLongCRC=cadantEtherPhyMeasRxLongCRC, cadLaesCountTable=cadLaesCountTable, cadantUPortMeasFilteredFrms=cadantUPortMeasFilteredFrms, cadDFIDMeasPktsDropped=cadDFIDMeasPktsDropped, cadantUPortMeasBcastReqRxPwr1s=cadantUPortMeasBcastReqRxPwr1s, cadantDPortMeasIfOutDataOctets=cadantDPortMeasIfOutDataOctets, cadantEtherPhyMeasRxPause=cadantEtherPhyMeasRxPause, cadantDPortMeasIfOutMcastDataPkts=cadantDPortMeasIfOutMcastDataPkts, cadantUPortMeasBcastFrms=cadantUPortMeasBcastFrms, cadantUFIDMeasSIDMicroreflections=cadantUFIDMeasSIDMicroreflections, cadantUPortMeasMcastDataFrms=cadantUPortMeasMcastDataFrms, cadDFIDMeasTable=cadDFIDMeasTable, cadantDPortMeasAppUcastPkts=cadantDPortMeasAppUcastPkts, UFIDIndex=UFIDIndex, cadantUFIDMeasSFID=cadantUFIDMeasSFID, cadFftUpstreamChannelEntry=cadFftUpstreamChannelEntry, cadantUFIDMeasSIDNoUniqueWordDetecteds=cadantUFIDMeasSIDNoUniqueWordDetecteds, cadSubMgtPktFilterExtEntry=cadSubMgtPktFilterExtEntry, cadantUFIDMeasSIDHCSErrors=cadantUFIDMeasSIDHCSErrors, cadantUFIDMeasGateID=cadantUFIDMeasGateID, cadDFIDMeasIndex=cadDFIDMeasIndex, cadLaesCountMacDomainIfIndex=cadLaesCountMacDomainIfIndex, cadantDPortMeasTable=cadantDPortMeasTable, cadantUFIDMeasSIDCorrecteds=cadantUFIDMeasSIDCorrecteds, cadantEtherPhyMeasTxErr=cadantEtherPhyMeasTxErr)
YT_API_SERVICE_NAME = 'youtube' DEVELOPER_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" MAX_RESULTS = 50 YT_API_VERSION = 'v3' LINK = 'https://www.youtube.com/watch?v='
yt_api_service_name = 'youtube' developer_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' max_results = 50 yt_api_version = 'v3' link = 'https://www.youtube.com/watch?v='
out_data = b"\x1c\x91\x73\x94\xba\xfb\x3c\x30" + \ b"\x3c\x30\xac\x26\x62\x09\x74\x65" + \ b"\x73\x74\x31\x2e\x74\x78\x74\x5e" + \ b"\xc5\xf7\x32\x4c\x69\x76\x65\x20" + \ b"\x66\x72\x65\x65\x20\x6f\x72\x20" + \ b"\x64\x69\x65\x20\x68\x61\x72\x64" + \ b"\x0d\x0a\xd3\x14\x7c\x2e\x86\x89" + \ b"\x7a\x42\x58\xed\x06\x53\x9f\x15" + \ b"\xcc\xca\x7e\x7b\x37\x28\x5f\x3c"
out_data = b'\x1c\x91s\x94\xba\xfb<0' + b'<0\xac&b\tte' + b'st1.txt^' + b'\xc5\xf72Live ' + b'free or ' + b'die hard' + b'\r\n\xd3\x14|.\x86\x89' + b'zBX\xed\x06S\x9f\x15' + b'\xcc\xca~{7(_<'
class A(): @staticmethod def staticMethod(): print("STATIC method fired!") print("Nothing is bound to me") print("~"*30) @classmethod def classMethod(cls): print("CLASS method fired!") print(str(cls)+" is bound to me") print("~"*30) # normal method def normalMethod(self): print("'normalMethod' fired!") print(str(self)+" is bound to me") print("~"*30) def __init__(self, val): self.val = val a = A(1) a.staticMethod() a.classMethod() a.normalMethod()
class A: @staticmethod def static_method(): print('STATIC method fired!') print('Nothing is bound to me') print('~' * 30) @classmethod def class_method(cls): print('CLASS method fired!') print(str(cls) + ' is bound to me') print('~' * 30) def normal_method(self): print("'normalMethod' fired!") print(str(self) + ' is bound to me') print('~' * 30) def __init__(self, val): self.val = val a = a(1) a.staticMethod() a.classMethod() a.normalMethod()
class Solution: def removeDuplicates(self, S: str) -> str: def process(S): lst = [] for key, g in itertools.groupby(S): n = len(list(g)) if n % 2: lst.append(key) return lst S_lst = list(S) while True: new_lst = process(S_lst) if len(new_lst) == len(S_lst): break S_lst = new_lst return ''.join(S_lst)
class Solution: def remove_duplicates(self, S: str) -> str: def process(S): lst = [] for (key, g) in itertools.groupby(S): n = len(list(g)) if n % 2: lst.append(key) return lst s_lst = list(S) while True: new_lst = process(S_lst) if len(new_lst) == len(S_lst): break s_lst = new_lst return ''.join(S_lst)
class User: ''' class that generates new instance of user ''' user_list = [] def __init__ (self, user_name, password): self.user_name = user_name self.password = password def save_user(self): User.user_list.append(self) def delete_user(self): ''' delete user account ''' User.user_list.remove(self) @classmethod def find_user(cls,user_name): ''' finding username ''' for user in cls.user_list: if user.user_name == user_name: return user @classmethod def log_in(cls,user_name, password): ''' login to password locker ''' for user in cls.user_list: if user.user_name == user_name and user.password == user_password: return user @classmethod def display_user(cls): ''' Method that returns the user list ''' return cls.user_list
class User: """ class that generates new instance of user """ user_list = [] def __init__(self, user_name, password): self.user_name = user_name self.password = password def save_user(self): User.user_list.append(self) def delete_user(self): """ delete user account """ User.user_list.remove(self) @classmethod def find_user(cls, user_name): """ finding username """ for user in cls.user_list: if user.user_name == user_name: return user @classmethod def log_in(cls, user_name, password): """ login to password locker """ for user in cls.user_list: if user.user_name == user_name and user.password == user_password: return user @classmethod def display_user(cls): """ Method that returns the user list """ return cls.user_list
print("Example 05: [The else Statement] \n" " Print a message once the condition is false") i = 1 while i < 6: print(i) i += 1 else: print("The condition is false")
print('Example 05: [The else Statement] \n Print a message once the condition is false') i = 1 while i < 6: print(i) i += 1 else: print('The condition is false')
def isPalindrome(s): temp = [c for c in s] temp.reverse() return ''.join(temp) == s def twodigit(): return reversed(range(100, 999)) q = reversed(sorted([a * b for a in twodigit() for b in twodigit()])) found = False for s in q: if isPalindrome(str(s)): print(s) found = True break if not found: print("guh")
def is_palindrome(s): temp = [c for c in s] temp.reverse() return ''.join(temp) == s def twodigit(): return reversed(range(100, 999)) q = reversed(sorted([a * b for a in twodigit() for b in twodigit()])) found = False for s in q: if is_palindrome(str(s)): print(s) found = True break if not found: print('guh')
def mutations(inputs): item_a = set(inputs[0].lower()) item_b = set(inputs[1].lower()) return item_b.intersection(item_a) == item_b print(mutations(["hello", "Hello"])) print(mutations(["hello", "hey"])) print(mutations(["Alien", "line"]))
def mutations(inputs): item_a = set(inputs[0].lower()) item_b = set(inputs[1].lower()) return item_b.intersection(item_a) == item_b print(mutations(['hello', 'Hello'])) print(mutations(['hello', 'hey'])) print(mutations(['Alien', 'line']))
while True: try: n = int(input("Enter N: ")) except ValueError: print("Enter correct number!") else: if n <= 100: print("Error: N must be greater than 100!") else: for i in range(11, n + 1): s = i i = (i-1) + i*i if i < 11: i = 10 print(i) break
while True: try: n = int(input('Enter N: ')) except ValueError: print('Enter correct number!') else: if n <= 100: print('Error: N must be greater than 100!') else: for i in range(11, n + 1): s = i i = i - 1 + i * i if i < 11: i = 10 print(i) break
# PySNMP SMI module. Autogenerated from smidump -f python RUCKUS-SCG-TTG-MIB # by libsmi2pysnmp-0.1.3 # Python version sys.version_info(major=2, minor=7, micro=11, releaselevel='final', serial=0) # pylint:disable=C0302 mibBuilder = mibBuilder # pylint:disable=undefined-variable,used-before-assignment # Imports (Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") (NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") (ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") (ruckusSCGTTGModule, ) = mibBuilder.importSymbols("RUCKUS-ROOT-MIB", "ruckusSCGTTGModule") (Bits, Counter32, Counter64, Integer32, Integer32, IpAddress, ModuleIdentity, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "Counter32", "Counter64", "Integer32", "Integer32", "IpAddress", "ModuleIdentity", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32") (DisplayString, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString") # Objects ruckusTTGMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1)).setRevisions(("2014-05-19 11:00", )) if mibBuilder.loadTexts: ruckusTTGMIB.setOrganization("Ruckus Wireless, Inc.") if mibBuilder.loadTexts: ruckusTTGMIB.setContactInfo("Ruckus Wireless, Inc.\n\n350 West Java Dr.\nSunnyvale, CA 94089\nUSA\n\nT: +1 (650) 265-4200\nF: +1 (408) 738-2065\nEMail: [email protected]\nWeb: www.ruckuswireless.com") if mibBuilder.loadTexts: ruckusTTGMIB.setDescription("Ruckus TTG MIB") ruckusTTGObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1)) ruckusAAAInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1)) ruckusAAATable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1)) if mibBuilder.loadTexts: ruckusAAATable.setDescription("ruckusAAATable") ruckusAAAEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusAAAIndex")) if mibBuilder.loadTexts: ruckusAAAEntry.setDescription("ruckusAAAEntry") ruckusAAAAaaIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAAaaIp.setDescription("ruckusAAAAaaIp") ruckusAAANumSuccAuthPerm = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccAuthPerm.setDescription("ruckusAAANumSuccAuthPerm") ruckusAAANumFailAuthPerm = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailAuthPerm.setDescription("ruckusAAANumFailAuthPerm") ruckusAAANumSuccAuthPsd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccAuthPsd.setDescription("ruckusAAANumSuccAuthPsd") ruckusAAANumFailAuthPsd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailAuthPsd.setDescription("ruckusAAANumFailAuthPsd") ruckusAAANumSuccFastAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccFastAuth.setDescription("ruckusAAANumSuccFastAuth") ruckusAAANumFailFastAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailFastAuth.setDescription("ruckusAAANumFailFastAuth") ruckusAAANumAuthUnknPsd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumAuthUnknPsd.setDescription("ruckusAAANumAuthUnknPsd") ruckusAAANumAuthUnknFR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumAuthUnknFR.setDescription("ruckusAAANumAuthUnknFR") ruckusAAANumIncompleteAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumIncompleteAuth.setDescription("ruckusAAANumIncompleteAuth") ruckusAAANumSuccAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccAcc.setDescription("ruckusAAANumSuccAcc") ruckusAAANumFailAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailAcc.setDescription("ruckusAAANumFailAcc") ruckusAAANumRadAcsRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsRq.setDescription("ruckusAAANumRadAcsRq") ruckusAAANumRadAcsAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsAcpt.setDescription("ruckusAAANumRadAcsAcpt") ruckusAAANumRadAcsChlg = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsChlg.setDescription("ruckusAAANumRadAcsChlg") ruckusAAANumRadAcsRej = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAcsRej.setDescription("ruckusAAANumRadAcsRej") ruckusAAANumRadAccRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAccRq.setDescription("ruckusAAANumRadAccRq") ruckusAAANumRadAccAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadAccAcpt.setDescription("ruckusAAANumRadAccAcpt") ruckusAAANumRadCoaRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadCoaRq.setDescription("ruckusAAANumRadCoaRq") ruckusAAANumSuccCoaAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccCoaAcpt.setDescription("ruckusAAANumSuccCoaAcpt") ruckusAAANumFailCoaAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailCoaAcpt.setDescription("ruckusAAANumFailCoaAcpt") ruckusAAANumRadDmRq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumRadDmRq.setDescription("ruckusAAANumRadDmRq") ruckusAAANumSuccDmAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumSuccDmAcpt.setDescription("ruckusAAANumSuccDmAcpt") ruckusAAANumFailDmAcpt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAANumFailDmAcpt.setDescription("ruckusAAANumFailDmAcpt") ruckusAAAIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAIndex.setDescription("ruckusAAAIndex") ruckusAAAProxyInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2)) ruckusAAAProxyTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1)) if mibBuilder.loadTexts: ruckusAAAProxyTable.setDescription("ruckusAAAProxyTable") ruckusAAAProxyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusAAAProxyIndex")) if mibBuilder.loadTexts: ruckusAAAProxyEntry.setDescription("ruckusAAAProxyEntry") ruckusAAAProxyAaaIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyAaaIp.setDescription("ruckusAAAProxyAaaIp") ruckusAAAProxyNumSuccAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAuth.setDescription("ruckusAAAProxyNumSuccAuth") ruckusAAAProxyNumFailAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumFailAuth.setDescription("ruckusAAAProxyNumFailAuth") ruckusAAAProxyNumIncmpltAuth = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumIncmpltAuth.setDescription("ruckusAAAProxyNumIncmpltAuth") ruckusAAAProxyNumSuccAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAcc.setDescription("ruckusAAAProxyNumSuccAcc") ruckusAAAProxyNumFailAcc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumFailAcc.setDescription("ruckusAAAProxyNumFailAcc") ruckusAAAProxyNumAcsRqRcvdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqRcvdNas.setDescription("ruckusAAAProxyNumAcsRqRcvdNas") ruckusAAAProxyNumAcsRqSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqSntAaa.setDescription("ruckusAAAProxyNumAcsRqSntAaa") ruckusAAAProxyNumAcsChRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChRcvdAaa.setDescription("ruckusAAAProxyNumAcsChRcvdAaa") ruckusAAAProxyNumAcsChSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChSntNas.setDescription("ruckusAAAProxyNumAcsChSntNas") ruckusAAAProxyNumAcsAcpRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpRcvdAaa.setDescription("ruckusAAAProxyNumAcsAcpRcvdAaa") ruckusAAAProxyNumAcsAcpSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpSntNas.setDescription("ruckusAAAProxyNumAcsAcpSntNas") ruckusAAAProxyNumAcsRejRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejRcvdAaa.setDescription("ruckusAAAProxyNumAcsRejRcvdAaa") ruckusAAAProxyNumAcsRejSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejSntNas.setDescription("ruckusAAAProxyNumAcsRejSntNas") ruckusAAAProxyNumAccRqRcvdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqRcvdNas.setDescription("ruckusAAAProxyNumAccRqRcvdNas") ruckusAAAProxyNumAccRqSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqSntAaa.setDescription("ruckusAAAProxyNumAccRqSntAaa") ruckusAAAProxyNumAccRspRcdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspRcdAaa.setDescription("ruckusAAAProxyNumAccRspRcdAaa") ruckusAAAProxyNumAccRspSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspSntNas.setDescription("ruckusAAAProxyNumAccRspSntNas") ruckusAAAProxyNumCoaRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumCoaRcvdAaa.setDescription("ruckusAAAProxyNumCoaRcvdAaa") ruckusAAAProxyNumCoaSucSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumCoaSucSntAaa.setDescription("ruckusAAAProxyNumCoaSucSntAaa") ruckusAAAProxyNumCoaFailSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumCoaFailSntAaa.setDescription("ruckusAAAProxyNumCoaFailSntAaa") ruckusAAAProxyNumDmRcvdAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmRcvdAaa.setDescription("ruckusAAAProxyNumDmRcvdAaa") ruckusAAAProxyNumDmSntNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmSntNas.setDescription("ruckusAAAProxyNumDmSntNas") ruckusAAAProxyNumDmSucRcdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucRcdNas.setDescription("ruckusAAAProxyNumDmSucRcdNas") ruckusAAAProxyNumDmSucSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucSntAaa.setDescription("ruckusAAAProxyNumDmSucSntAaa") ruckusAAAProxyNumDmFailRcdNas = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailRcdNas.setDescription("ruckusAAAProxyNumDmFailRcdNas") ruckusAAAProxyNumDmFailSntAaa = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailSntAaa.setDescription("ruckusAAAProxyNumDmFailSntAaa") ruckusAAAProxyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusAAAProxyIndex.setDescription("ruckusAAAProxyIndex") ruckusCGFInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3)) ruckusCGFTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1)) if mibBuilder.loadTexts: ruckusCGFTable.setDescription("ruckusCGFTable") ruckusCGFEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusCGFIndex")) if mibBuilder.loadTexts: ruckusCGFEntry.setDescription("ruckusCGFEntry") ruckusCGFCgfSrvcName = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFCgfSrvcName.setDescription("ruckusCGFCgfSrvcName") ruckusCGFCgfIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFCgfIp.setDescription("ruckusCGFCgfIp") ruckusCGFNumSuccCdrTxfd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumSuccCdrTxfd.setDescription("ruckusCGFNumSuccCdrTxfd") ruckusCGFNumCdrTxfrFail = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrTxfrFail.setDescription("ruckusCGFNumCdrTxfrFail") ruckusCGFNumCdrPossDup = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrPossDup.setDescription("ruckusCGFNumCdrPossDup") ruckusCGFNumCdrRlsReq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrRlsReq.setDescription("ruckusCGFNumCdrRlsReq") ruckusCGFNumCdrCnclReq = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumCdrCnclReq.setDescription("ruckusCGFNumCdrCnclReq") ruckusCGFNumDrtrReqSnt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumDrtrReqSnt.setDescription("ruckusCGFNumDrtrReqSnt") ruckusCGFNumDrtrSucRspRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumDrtrSucRspRcvd.setDescription("ruckusCGFNumDrtrSucRspRcvd") ruckusCGFNumDrtrFailRspRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFNumDrtrFailRspRcvd.setDescription("ruckusCGFNumDrtrFailRspRcvd") ruckusCGFIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusCGFIndex.setDescription("ruckusCGFIndex") ruckusGTPUInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4)) ruckusGTPUTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1)) if mibBuilder.loadTexts: ruckusGTPUTable.setDescription("ruckusGTPUTable") ruckusGTPUEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusGTPUIndex")) if mibBuilder.loadTexts: ruckusGTPUEntry.setDescription("ruckusGTPUEntry") ruckusGTPUGgsnIPAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUGgsnIPAddr.setDescription("ruckusGTPUGgsnIPAddr") ruckusGTPUTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUTxPkts.setDescription("ruckusGTPUTxPkts") ruckusGTPUTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUTxBytes.setDescription("ruckusGTPUTxBytes") ruckusGTPURxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPURxPkts.setDescription("ruckusGTPURxPkts") ruckusGTPURxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPURxBytes.setDescription("ruckusGTPURxBytes") ruckusGTPUTxDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUTxDrops.setDescription("ruckusGTPUTxDrops") ruckusGTPURxDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPURxDrops.setDescription("ruckusGTPURxDrops") ruckusGTPUNumBadGTPU = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumBadGTPU.setDescription("ruckusGTPUNumBadGTPU") ruckusGTPUNumRXTeidInvalid = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumRXTeidInvalid.setDescription("ruckusGTPUNumRXTeidInvalid") ruckusGTPUNumTXTeidInvalid = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumTXTeidInvalid.setDescription("ruckusGTPUNumTXTeidInvalid") ruckusGTPUNumOfEchoRX = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUNumOfEchoRX.setDescription("ruckusGTPUNumOfEchoRX") ruckusGTPUIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGTPUIndex.setDescription("ruckusGTPUIndex") ruckusGGSNGTPCInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5)) ruckusGGSNGTPCTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1)) if mibBuilder.loadTexts: ruckusGGSNGTPCTable.setDescription("ruckusGGSNGTPCTable") ruckusGGSNGTPCEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusGGSNGTPCIndex")) if mibBuilder.loadTexts: ruckusGGSNGTPCEntry.setDescription("ruckusGGSNGTPCEntry") ruckusGGSNGTPCGgsnIp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCGgsnIp.setDescription("ruckusGGSNGTPCGgsnIp") ruckusGGSNGTPCNumActPdp = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCNumActPdp.setDescription("ruckusGGSNGTPCNumActPdp") ruckusGGSNGTPCSuccPdpCrt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpCrt.setDescription("ruckusGGSNGTPCSuccPdpCrt") ruckusGGSNGTPCFailPdpCrt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpCrt.setDescription("ruckusGGSNGTPCFailPdpCrt") ruckusGGSNGTPCSuccPdpUpdRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdRcvd.setDescription("ruckusGGSNGTPCSuccPdpUpdRcvd") ruckusGGSNGTPCFailPdpUpdRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdRcvd.setDescription("ruckusGGSNGTPCFailPdpUpdRcvd") ruckusGGSNGTPCSuccPdpUpdInitRM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitRM.setDescription("ruckusGGSNGTPCSuccPdpUpdInitRM") ruckusGGSNGTPCFailPdpUpdInitRM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitRM.setDescription("ruckusGGSNGTPCFailPdpUpdInitRM") ruckusGGSNGTPCSuccPdpUpdInitAAA = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitAAA.setDescription("ruckusGGSNGTPCSuccPdpUpdInitAAA") ruckusGGSNGTPCFailPdpUpdInitAAA = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitAAA.setDescription("ruckusGGSNGTPCFailPdpUpdInitAAA") ruckusGGSNGTPCSuccPdpUpdInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitHLR.setDescription("ruckusGGSNGTPCSuccPdpUpdInitHLR") ruckusGGSNGTPCFailPdpUpdInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitHLR.setDescription("ruckusGGSNGTPCFailPdpUpdInitHLR") ruckusGGSNGTPCSuccDelPdpRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpRcvd.setDescription("ruckusGGSNGTPCSuccDelPdpRcvd") ruckusGGSNGTPCFailDelPdpRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpRcvd.setDescription("ruckusGGSNGTPCFailDelPdpRcvd") ruckusGGSNGTPCSuccDelPdpInitErr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitErr.setDescription("ruckusGGSNGTPCSuccDelPdpInitErr") ruckusGGSNGTPCFailDelPdpInitErr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitErr.setDescription("ruckusGGSNGTPCFailDelPdpInitErr") ruckusGGSNGTPCSuccDelPdpInitDM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitDM.setDescription("ruckusGGSNGTPCSuccDelPdpInitDM") ruckusGGSNGTPCFailDelPdpInitDM = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitDM.setDescription("ruckusGGSNGTPCFailDelPdpInitDM") ruckusGGSNGTPCSuccDelPdpInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitHLR.setDescription("ruckusGGSNGTPCSuccDelPdpInitHLR") ruckusGGSNGTPCFailDelPdpInitHLR = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitHLR.setDescription("ruckusGGSNGTPCFailDelPdpInitHLR") ruckusGGSNGTPCSuccDelPdpInitSCG = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitSCG.setDescription("ruckusGGSNGTPCSuccDelPdpInitSCG") ruckusGGSNGTPCFailDelPdpInitSCG = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitSCG.setDescription("ruckusGGSNGTPCFailDelPdpInitSCG") ruckusGGSNGTPCSuccDelPdpInitAP = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitAP.setDescription("ruckusGGSNGTPCSuccDelPdpInitAP") ruckusGGSNGTPCFailDelPdpInitAP = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitAP.setDescription("ruckusGGSNGTPCFailDelPdpInitAP") ruckusGGSNGTPCSuccDelPdpInitD = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitD.setDescription("ruckusGGSNGTPCSuccDelPdpInitD") ruckusGGSNGTPCFailDelPdpInitD = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitD.setDescription("ruckusGGSNGTPCFailDelPdpInitD") ruckusGGSNGTPCSuccDelPdpInitClnt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitClnt.setDescription("ruckusGGSNGTPCSuccDelPdpInitClnt") ruckusGGSNGTPCFailDelPdpInitClnt = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitClnt.setDescription("ruckusGGSNGTPCFailDelPdpInitClnt") ruckusGGSNGTPCIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusGGSNGTPCIndex.setDescription("ruckusGGSNGTPCIndex") ruckusHLRInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7)) ruckusHLRTable = MibTable((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1)) if mibBuilder.loadTexts: ruckusHLRTable.setDescription("ruckusHLRTable") ruckusHLREntry = MibTableRow((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1)).setIndexNames((0, "RUCKUS-SCG-TTG-MIB", "ruckusHLRIndex")) if mibBuilder.loadTexts: ruckusHLREntry.setDescription("ruckusHLREntry") ruckusHLRHlrSrvcName = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRHlrSrvcName.setDescription("ruckusHLRHlrSrvcName") ruckusHLRNumSucAuthInfoReqSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqSim.setDescription("ruckusHLRNumSucAuthInfoReqSim") ruckusHLRNumAuthInfoRqErrHlrSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrSim.setDescription("ruckusHLRNumAuthInfoRqErrHlrSim") ruckusHLRNumAuthInfoRqTmotSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotSim.setDescription("ruckusHLRNumAuthInfoRqTmotSim") ruckusHLRNumSucAuthInfoReqAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqAka.setDescription("ruckusHLRNumSucAuthInfoReqAka") ruckusHLRNumAuthInfoRqErrHlrAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrAka.setDescription("ruckusHLRNumAuthInfoRqErrHlrAka") ruckusHLRNumAuthInfoRqTmotAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotAka.setDescription("ruckusHLRNumAuthInfoRqTmotAka") ruckusHLRNumUpdGprsSuccSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccSim.setDescription("ruckusHLRNumUpdGprsSuccSim") ruckusHLRNumUpdGprsFailErrSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrSim.setDescription("ruckusHLRNumUpdGprsFailErrSim") ruckusHLRNumUpdGprsFailTmoSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoSim.setDescription("ruckusHLRNumUpdGprsFailTmoSim") ruckusHLRNumUpdGprsSuccAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccAka.setDescription("ruckusHLRNumUpdGprsSuccAka") ruckusHLRNumUpdGprsFailErrAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrAka.setDescription("ruckusHLRNumUpdGprsFailErrAka") ruckusHLRNumUpdGprsFailTmoAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoAka.setDescription("ruckusHLRNumUpdGprsFailTmoAka") ruckusHLRNumRstDtaSuccSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccSim.setDescription("ruckusHLRNumRstDtaSuccSim") ruckusHLRNumRstDtaFailErrHlrSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrSim.setDescription("ruckusHLRNumRstDtaFailErrHlrSim") ruckusHLRNumRstDtaFailTmoSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoSim.setDescription("ruckusHLRNumRstDtaFailTmoSim") ruckusHLRNumRstDtaSuccAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccAka.setDescription("ruckusHLRNumRstDtaSuccAka") ruckusHLRNumRstDtaFailErrHlrAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 18), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrAka.setDescription("ruckusHLRNumRstDtaFailErrHlrAka") ruckusHLRNumRstDtaFailTmoAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 19), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoAka.setDescription("ruckusHLRNumRstDtaFailTmoAka") ruckusHLRNumInsrtDtaSuccSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 20), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccSim.setDescription("ruckusHLRNumInsrtDtaSuccSim") ruckusHLRNumInsrtDtaFailSim = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 21), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailSim.setDescription("ruckusHLRNumInsrtDtaFailSim") ruckusHLRNumInsrtDtaSuccAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 22), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccAka.setDescription("ruckusHLRNumInsrtDtaSuccAka") ruckusHLRNumInsrtDtaFailAka = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 23), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailAka.setDescription("ruckusHLRNumInsrtDtaFailAka") ruckusHLRNumSaInsrtDtaSucc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 24), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaSucc.setDescription("ruckusHLRNumSaInsrtDtaSucc") ruckusHLRNumSaInsrtDtaFailUnkS = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 25), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailUnkS.setDescription("ruckusHLRNumSaInsrtDtaFailUnkS") ruckusHLRNumSaInsrtDtaFailErr = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 26), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailErr.setDescription("ruckusHLRNumSaInsrtDtaFailErr") ruckusHLRNumCfgAssoc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 27), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumCfgAssoc.setDescription("ruckusHLRNumCfgAssoc") ruckusHLRNumActAssoc = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 28), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumActAssoc.setDescription("ruckusHLRNumActAssoc") ruckusHLRNumRtgFail = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 29), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRNumRtgFail.setDescription("ruckusHLRNumRtgFail") ruckusHLRIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 99), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ruckusHLRIndex.setDescription("ruckusHLRIndex") # Augmentions # Exports # Module identity mibBuilder.exportSymbols("RUCKUS-SCG-TTG-MIB", PYSNMP_MODULE_ID=ruckusTTGMIB) # Objects mibBuilder.exportSymbols("RUCKUS-SCG-TTG-MIB", ruckusTTGMIB=ruckusTTGMIB, ruckusTTGObjects=ruckusTTGObjects, ruckusAAAInfo=ruckusAAAInfo, ruckusAAATable=ruckusAAATable, ruckusAAAEntry=ruckusAAAEntry, ruckusAAAAaaIp=ruckusAAAAaaIp, ruckusAAANumSuccAuthPerm=ruckusAAANumSuccAuthPerm, ruckusAAANumFailAuthPerm=ruckusAAANumFailAuthPerm, ruckusAAANumSuccAuthPsd=ruckusAAANumSuccAuthPsd, ruckusAAANumFailAuthPsd=ruckusAAANumFailAuthPsd, ruckusAAANumSuccFastAuth=ruckusAAANumSuccFastAuth, ruckusAAANumFailFastAuth=ruckusAAANumFailFastAuth, ruckusAAANumAuthUnknPsd=ruckusAAANumAuthUnknPsd, ruckusAAANumAuthUnknFR=ruckusAAANumAuthUnknFR, ruckusAAANumIncompleteAuth=ruckusAAANumIncompleteAuth, ruckusAAANumSuccAcc=ruckusAAANumSuccAcc, ruckusAAANumFailAcc=ruckusAAANumFailAcc, ruckusAAANumRadAcsRq=ruckusAAANumRadAcsRq, ruckusAAANumRadAcsAcpt=ruckusAAANumRadAcsAcpt, ruckusAAANumRadAcsChlg=ruckusAAANumRadAcsChlg, ruckusAAANumRadAcsRej=ruckusAAANumRadAcsRej, ruckusAAANumRadAccRq=ruckusAAANumRadAccRq, ruckusAAANumRadAccAcpt=ruckusAAANumRadAccAcpt, ruckusAAANumRadCoaRq=ruckusAAANumRadCoaRq, ruckusAAANumSuccCoaAcpt=ruckusAAANumSuccCoaAcpt, ruckusAAANumFailCoaAcpt=ruckusAAANumFailCoaAcpt, ruckusAAANumRadDmRq=ruckusAAANumRadDmRq, ruckusAAANumSuccDmAcpt=ruckusAAANumSuccDmAcpt, ruckusAAANumFailDmAcpt=ruckusAAANumFailDmAcpt, ruckusAAAIndex=ruckusAAAIndex, ruckusAAAProxyInfo=ruckusAAAProxyInfo, ruckusAAAProxyTable=ruckusAAAProxyTable, ruckusAAAProxyEntry=ruckusAAAProxyEntry, ruckusAAAProxyAaaIp=ruckusAAAProxyAaaIp, ruckusAAAProxyNumSuccAuth=ruckusAAAProxyNumSuccAuth, ruckusAAAProxyNumFailAuth=ruckusAAAProxyNumFailAuth, ruckusAAAProxyNumIncmpltAuth=ruckusAAAProxyNumIncmpltAuth, ruckusAAAProxyNumSuccAcc=ruckusAAAProxyNumSuccAcc, ruckusAAAProxyNumFailAcc=ruckusAAAProxyNumFailAcc, ruckusAAAProxyNumAcsRqRcvdNas=ruckusAAAProxyNumAcsRqRcvdNas, ruckusAAAProxyNumAcsRqSntAaa=ruckusAAAProxyNumAcsRqSntAaa, ruckusAAAProxyNumAcsChRcvdAaa=ruckusAAAProxyNumAcsChRcvdAaa, ruckusAAAProxyNumAcsChSntNas=ruckusAAAProxyNumAcsChSntNas, ruckusAAAProxyNumAcsAcpRcvdAaa=ruckusAAAProxyNumAcsAcpRcvdAaa, ruckusAAAProxyNumAcsAcpSntNas=ruckusAAAProxyNumAcsAcpSntNas, ruckusAAAProxyNumAcsRejRcvdAaa=ruckusAAAProxyNumAcsRejRcvdAaa, ruckusAAAProxyNumAcsRejSntNas=ruckusAAAProxyNumAcsRejSntNas, ruckusAAAProxyNumAccRqRcvdNas=ruckusAAAProxyNumAccRqRcvdNas, ruckusAAAProxyNumAccRqSntAaa=ruckusAAAProxyNumAccRqSntAaa, ruckusAAAProxyNumAccRspRcdAaa=ruckusAAAProxyNumAccRspRcdAaa, ruckusAAAProxyNumAccRspSntNas=ruckusAAAProxyNumAccRspSntNas, ruckusAAAProxyNumCoaRcvdAaa=ruckusAAAProxyNumCoaRcvdAaa, ruckusAAAProxyNumCoaSucSntAaa=ruckusAAAProxyNumCoaSucSntAaa, ruckusAAAProxyNumCoaFailSntAaa=ruckusAAAProxyNumCoaFailSntAaa, ruckusAAAProxyNumDmRcvdAaa=ruckusAAAProxyNumDmRcvdAaa, ruckusAAAProxyNumDmSntNas=ruckusAAAProxyNumDmSntNas, ruckusAAAProxyNumDmSucRcdNas=ruckusAAAProxyNumDmSucRcdNas, ruckusAAAProxyNumDmSucSntAaa=ruckusAAAProxyNumDmSucSntAaa, ruckusAAAProxyNumDmFailRcdNas=ruckusAAAProxyNumDmFailRcdNas, ruckusAAAProxyNumDmFailSntAaa=ruckusAAAProxyNumDmFailSntAaa, ruckusAAAProxyIndex=ruckusAAAProxyIndex, ruckusCGFInfo=ruckusCGFInfo, ruckusCGFTable=ruckusCGFTable, ruckusCGFEntry=ruckusCGFEntry, ruckusCGFCgfSrvcName=ruckusCGFCgfSrvcName, ruckusCGFCgfIp=ruckusCGFCgfIp, ruckusCGFNumSuccCdrTxfd=ruckusCGFNumSuccCdrTxfd, ruckusCGFNumCdrTxfrFail=ruckusCGFNumCdrTxfrFail, ruckusCGFNumCdrPossDup=ruckusCGFNumCdrPossDup, ruckusCGFNumCdrRlsReq=ruckusCGFNumCdrRlsReq, ruckusCGFNumCdrCnclReq=ruckusCGFNumCdrCnclReq, ruckusCGFNumDrtrReqSnt=ruckusCGFNumDrtrReqSnt, ruckusCGFNumDrtrSucRspRcvd=ruckusCGFNumDrtrSucRspRcvd, ruckusCGFNumDrtrFailRspRcvd=ruckusCGFNumDrtrFailRspRcvd, ruckusCGFIndex=ruckusCGFIndex, ruckusGTPUInfo=ruckusGTPUInfo, ruckusGTPUTable=ruckusGTPUTable, ruckusGTPUEntry=ruckusGTPUEntry, ruckusGTPUGgsnIPAddr=ruckusGTPUGgsnIPAddr, ruckusGTPUTxPkts=ruckusGTPUTxPkts, ruckusGTPUTxBytes=ruckusGTPUTxBytes, ruckusGTPURxPkts=ruckusGTPURxPkts, ruckusGTPURxBytes=ruckusGTPURxBytes, ruckusGTPUTxDrops=ruckusGTPUTxDrops, ruckusGTPURxDrops=ruckusGTPURxDrops, ruckusGTPUNumBadGTPU=ruckusGTPUNumBadGTPU, ruckusGTPUNumRXTeidInvalid=ruckusGTPUNumRXTeidInvalid, ruckusGTPUNumTXTeidInvalid=ruckusGTPUNumTXTeidInvalid, ruckusGTPUNumOfEchoRX=ruckusGTPUNumOfEchoRX, ruckusGTPUIndex=ruckusGTPUIndex, ruckusGGSNGTPCInfo=ruckusGGSNGTPCInfo, ruckusGGSNGTPCTable=ruckusGGSNGTPCTable, ruckusGGSNGTPCEntry=ruckusGGSNGTPCEntry, ruckusGGSNGTPCGgsnIp=ruckusGGSNGTPCGgsnIp, ruckusGGSNGTPCNumActPdp=ruckusGGSNGTPCNumActPdp, ruckusGGSNGTPCSuccPdpCrt=ruckusGGSNGTPCSuccPdpCrt, ruckusGGSNGTPCFailPdpCrt=ruckusGGSNGTPCFailPdpCrt, ruckusGGSNGTPCSuccPdpUpdRcvd=ruckusGGSNGTPCSuccPdpUpdRcvd, ruckusGGSNGTPCFailPdpUpdRcvd=ruckusGGSNGTPCFailPdpUpdRcvd, ruckusGGSNGTPCSuccPdpUpdInitRM=ruckusGGSNGTPCSuccPdpUpdInitRM, ruckusGGSNGTPCFailPdpUpdInitRM=ruckusGGSNGTPCFailPdpUpdInitRM, ruckusGGSNGTPCSuccPdpUpdInitAAA=ruckusGGSNGTPCSuccPdpUpdInitAAA, ruckusGGSNGTPCFailPdpUpdInitAAA=ruckusGGSNGTPCFailPdpUpdInitAAA, ruckusGGSNGTPCSuccPdpUpdInitHLR=ruckusGGSNGTPCSuccPdpUpdInitHLR, ruckusGGSNGTPCFailPdpUpdInitHLR=ruckusGGSNGTPCFailPdpUpdInitHLR, ruckusGGSNGTPCSuccDelPdpRcvd=ruckusGGSNGTPCSuccDelPdpRcvd, ruckusGGSNGTPCFailDelPdpRcvd=ruckusGGSNGTPCFailDelPdpRcvd, ruckusGGSNGTPCSuccDelPdpInitErr=ruckusGGSNGTPCSuccDelPdpInitErr, ruckusGGSNGTPCFailDelPdpInitErr=ruckusGGSNGTPCFailDelPdpInitErr, ruckusGGSNGTPCSuccDelPdpInitDM=ruckusGGSNGTPCSuccDelPdpInitDM, ruckusGGSNGTPCFailDelPdpInitDM=ruckusGGSNGTPCFailDelPdpInitDM, ruckusGGSNGTPCSuccDelPdpInitHLR=ruckusGGSNGTPCSuccDelPdpInitHLR, ruckusGGSNGTPCFailDelPdpInitHLR=ruckusGGSNGTPCFailDelPdpInitHLR, ruckusGGSNGTPCSuccDelPdpInitSCG=ruckusGGSNGTPCSuccDelPdpInitSCG, ruckusGGSNGTPCFailDelPdpInitSCG=ruckusGGSNGTPCFailDelPdpInitSCG, ruckusGGSNGTPCSuccDelPdpInitAP=ruckusGGSNGTPCSuccDelPdpInitAP, ruckusGGSNGTPCFailDelPdpInitAP=ruckusGGSNGTPCFailDelPdpInitAP, ruckusGGSNGTPCSuccDelPdpInitD=ruckusGGSNGTPCSuccDelPdpInitD, ruckusGGSNGTPCFailDelPdpInitD=ruckusGGSNGTPCFailDelPdpInitD, ruckusGGSNGTPCSuccDelPdpInitClnt=ruckusGGSNGTPCSuccDelPdpInitClnt, ruckusGGSNGTPCFailDelPdpInitClnt=ruckusGGSNGTPCFailDelPdpInitClnt, ruckusGGSNGTPCIndex=ruckusGGSNGTPCIndex, ruckusHLRInfo=ruckusHLRInfo, ruckusHLRTable=ruckusHLRTable, ruckusHLREntry=ruckusHLREntry, ruckusHLRHlrSrvcName=ruckusHLRHlrSrvcName) mibBuilder.exportSymbols("RUCKUS-SCG-TTG-MIB", ruckusHLRNumSucAuthInfoReqSim=ruckusHLRNumSucAuthInfoReqSim, ruckusHLRNumAuthInfoRqErrHlrSim=ruckusHLRNumAuthInfoRqErrHlrSim, ruckusHLRNumAuthInfoRqTmotSim=ruckusHLRNumAuthInfoRqTmotSim, ruckusHLRNumSucAuthInfoReqAka=ruckusHLRNumSucAuthInfoReqAka, ruckusHLRNumAuthInfoRqErrHlrAka=ruckusHLRNumAuthInfoRqErrHlrAka, ruckusHLRNumAuthInfoRqTmotAka=ruckusHLRNumAuthInfoRqTmotAka, ruckusHLRNumUpdGprsSuccSim=ruckusHLRNumUpdGprsSuccSim, ruckusHLRNumUpdGprsFailErrSim=ruckusHLRNumUpdGprsFailErrSim, ruckusHLRNumUpdGprsFailTmoSim=ruckusHLRNumUpdGprsFailTmoSim, ruckusHLRNumUpdGprsSuccAka=ruckusHLRNumUpdGprsSuccAka, ruckusHLRNumUpdGprsFailErrAka=ruckusHLRNumUpdGprsFailErrAka, ruckusHLRNumUpdGprsFailTmoAka=ruckusHLRNumUpdGprsFailTmoAka, ruckusHLRNumRstDtaSuccSim=ruckusHLRNumRstDtaSuccSim, ruckusHLRNumRstDtaFailErrHlrSim=ruckusHLRNumRstDtaFailErrHlrSim, ruckusHLRNumRstDtaFailTmoSim=ruckusHLRNumRstDtaFailTmoSim, ruckusHLRNumRstDtaSuccAka=ruckusHLRNumRstDtaSuccAka, ruckusHLRNumRstDtaFailErrHlrAka=ruckusHLRNumRstDtaFailErrHlrAka, ruckusHLRNumRstDtaFailTmoAka=ruckusHLRNumRstDtaFailTmoAka, ruckusHLRNumInsrtDtaSuccSim=ruckusHLRNumInsrtDtaSuccSim, ruckusHLRNumInsrtDtaFailSim=ruckusHLRNumInsrtDtaFailSim, ruckusHLRNumInsrtDtaSuccAka=ruckusHLRNumInsrtDtaSuccAka, ruckusHLRNumInsrtDtaFailAka=ruckusHLRNumInsrtDtaFailAka, ruckusHLRNumSaInsrtDtaSucc=ruckusHLRNumSaInsrtDtaSucc, ruckusHLRNumSaInsrtDtaFailUnkS=ruckusHLRNumSaInsrtDtaFailUnkS, ruckusHLRNumSaInsrtDtaFailErr=ruckusHLRNumSaInsrtDtaFailErr, ruckusHLRNumCfgAssoc=ruckusHLRNumCfgAssoc, ruckusHLRNumActAssoc=ruckusHLRNumActAssoc, ruckusHLRNumRtgFail=ruckusHLRNumRtgFail, ruckusHLRIndex=ruckusHLRIndex)
mib_builder = mibBuilder (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, constraints_union, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint') (ruckus_scgttg_module,) = mibBuilder.importSymbols('RUCKUS-ROOT-MIB', 'ruckusSCGTTGModule') (bits, counter32, counter64, integer32, integer32, ip_address, module_identity, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'Counter32', 'Counter64', 'Integer32', 'Integer32', 'IpAddress', 'ModuleIdentity', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Unsigned32') (display_string,) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString') ruckus_ttgmib = module_identity((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1)).setRevisions(('2014-05-19 11:00',)) if mibBuilder.loadTexts: ruckusTTGMIB.setOrganization('Ruckus Wireless, Inc.') if mibBuilder.loadTexts: ruckusTTGMIB.setContactInfo('Ruckus Wireless, Inc.\n\n350 West Java Dr.\nSunnyvale, CA 94089\nUSA\n\nT: +1 (650) 265-4200\nF: +1 (408) 738-2065\nEMail: [email protected]\nWeb: www.ruckuswireless.com') if mibBuilder.loadTexts: ruckusTTGMIB.setDescription('Ruckus TTG MIB') ruckus_ttg_objects = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1)) ruckus_aaa_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1)) ruckus_aaa_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1)) if mibBuilder.loadTexts: ruckusAAATable.setDescription('ruckusAAATable') ruckus_aaa_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusAAAIndex')) if mibBuilder.loadTexts: ruckusAAAEntry.setDescription('ruckusAAAEntry') ruckus_aaa_aaa_ip = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAAaaIp.setDescription('ruckusAAAAaaIp') ruckus_aaa_num_succ_auth_perm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccAuthPerm.setDescription('ruckusAAANumSuccAuthPerm') ruckus_aaa_num_fail_auth_perm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailAuthPerm.setDescription('ruckusAAANumFailAuthPerm') ruckus_aaa_num_succ_auth_psd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccAuthPsd.setDescription('ruckusAAANumSuccAuthPsd') ruckus_aaa_num_fail_auth_psd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailAuthPsd.setDescription('ruckusAAANumFailAuthPsd') ruckus_aaa_num_succ_fast_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccFastAuth.setDescription('ruckusAAANumSuccFastAuth') ruckus_aaa_num_fail_fast_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailFastAuth.setDescription('ruckusAAANumFailFastAuth') ruckus_aaa_num_auth_unkn_psd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumAuthUnknPsd.setDescription('ruckusAAANumAuthUnknPsd') ruckus_aaa_num_auth_unkn_fr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumAuthUnknFR.setDescription('ruckusAAANumAuthUnknFR') ruckus_aaa_num_incomplete_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumIncompleteAuth.setDescription('ruckusAAANumIncompleteAuth') ruckus_aaa_num_succ_acc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccAcc.setDescription('ruckusAAANumSuccAcc') ruckus_aaa_num_fail_acc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailAcc.setDescription('ruckusAAANumFailAcc') ruckus_aaa_num_rad_acs_rq = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAcsRq.setDescription('ruckusAAANumRadAcsRq') ruckus_aaa_num_rad_acs_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAcsAcpt.setDescription('ruckusAAANumRadAcsAcpt') ruckus_aaa_num_rad_acs_chlg = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAcsChlg.setDescription('ruckusAAANumRadAcsChlg') ruckus_aaa_num_rad_acs_rej = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAcsRej.setDescription('ruckusAAANumRadAcsRej') ruckus_aaa_num_rad_acc_rq = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAccRq.setDescription('ruckusAAANumRadAccRq') ruckus_aaa_num_rad_acc_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadAccAcpt.setDescription('ruckusAAANumRadAccAcpt') ruckus_aaa_num_rad_coa_rq = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadCoaRq.setDescription('ruckusAAANumRadCoaRq') ruckus_aaa_num_succ_coa_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccCoaAcpt.setDescription('ruckusAAANumSuccCoaAcpt') ruckus_aaa_num_fail_coa_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailCoaAcpt.setDescription('ruckusAAANumFailCoaAcpt') ruckus_aaa_num_rad_dm_rq = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumRadDmRq.setDescription('ruckusAAANumRadDmRq') ruckus_aaa_num_succ_dm_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumSuccDmAcpt.setDescription('ruckusAAANumSuccDmAcpt') ruckus_aaa_num_fail_dm_acpt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAANumFailDmAcpt.setDescription('ruckusAAANumFailDmAcpt') ruckus_aaa_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 1, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAIndex.setDescription('ruckusAAAIndex') ruckus_aaa_proxy_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2)) ruckus_aaa_proxy_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1)) if mibBuilder.loadTexts: ruckusAAAProxyTable.setDescription('ruckusAAAProxyTable') ruckus_aaa_proxy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusAAAProxyIndex')) if mibBuilder.loadTexts: ruckusAAAProxyEntry.setDescription('ruckusAAAProxyEntry') ruckus_aaa_proxy_aaa_ip = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyAaaIp.setDescription('ruckusAAAProxyAaaIp') ruckus_aaa_proxy_num_succ_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAuth.setDescription('ruckusAAAProxyNumSuccAuth') ruckus_aaa_proxy_num_fail_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumFailAuth.setDescription('ruckusAAAProxyNumFailAuth') ruckus_aaa_proxy_num_incmplt_auth = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumIncmpltAuth.setDescription('ruckusAAAProxyNumIncmpltAuth') ruckus_aaa_proxy_num_succ_acc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumSuccAcc.setDescription('ruckusAAAProxyNumSuccAcc') ruckus_aaa_proxy_num_fail_acc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumFailAcc.setDescription('ruckusAAAProxyNumFailAcc') ruckus_aaa_proxy_num_acs_rq_rcvd_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqRcvdNas.setDescription('ruckusAAAProxyNumAcsRqRcvdNas') ruckus_aaa_proxy_num_acs_rq_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRqSntAaa.setDescription('ruckusAAAProxyNumAcsRqSntAaa') ruckus_aaa_proxy_num_acs_ch_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChRcvdAaa.setDescription('ruckusAAAProxyNumAcsChRcvdAaa') ruckus_aaa_proxy_num_acs_ch_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsChSntNas.setDescription('ruckusAAAProxyNumAcsChSntNas') ruckus_aaa_proxy_num_acs_acp_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpRcvdAaa.setDescription('ruckusAAAProxyNumAcsAcpRcvdAaa') ruckus_aaa_proxy_num_acs_acp_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsAcpSntNas.setDescription('ruckusAAAProxyNumAcsAcpSntNas') ruckus_aaa_proxy_num_acs_rej_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejRcvdAaa.setDescription('ruckusAAAProxyNumAcsRejRcvdAaa') ruckus_aaa_proxy_num_acs_rej_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAcsRejSntNas.setDescription('ruckusAAAProxyNumAcsRejSntNas') ruckus_aaa_proxy_num_acc_rq_rcvd_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqRcvdNas.setDescription('ruckusAAAProxyNumAccRqRcvdNas') ruckus_aaa_proxy_num_acc_rq_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAccRqSntAaa.setDescription('ruckusAAAProxyNumAccRqSntAaa') ruckus_aaa_proxy_num_acc_rsp_rcd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspRcdAaa.setDescription('ruckusAAAProxyNumAccRspRcdAaa') ruckus_aaa_proxy_num_acc_rsp_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumAccRspSntNas.setDescription('ruckusAAAProxyNumAccRspSntNas') ruckus_aaa_proxy_num_coa_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumCoaRcvdAaa.setDescription('ruckusAAAProxyNumCoaRcvdAaa') ruckus_aaa_proxy_num_coa_suc_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumCoaSucSntAaa.setDescription('ruckusAAAProxyNumCoaSucSntAaa') ruckus_aaa_proxy_num_coa_fail_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumCoaFailSntAaa.setDescription('ruckusAAAProxyNumCoaFailSntAaa') ruckus_aaa_proxy_num_dm_rcvd_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmRcvdAaa.setDescription('ruckusAAAProxyNumDmRcvdAaa') ruckus_aaa_proxy_num_dm_snt_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmSntNas.setDescription('ruckusAAAProxyNumDmSntNas') ruckus_aaa_proxy_num_dm_suc_rcd_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucRcdNas.setDescription('ruckusAAAProxyNumDmSucRcdNas') ruckus_aaa_proxy_num_dm_suc_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmSucSntAaa.setDescription('ruckusAAAProxyNumDmSucSntAaa') ruckus_aaa_proxy_num_dm_fail_rcd_nas = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailRcdNas.setDescription('ruckusAAAProxyNumDmFailRcdNas') ruckus_aaa_proxy_num_dm_fail_snt_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyNumDmFailSntAaa.setDescription('ruckusAAAProxyNumDmFailSntAaa') ruckus_aaa_proxy_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 2, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusAAAProxyIndex.setDescription('ruckusAAAProxyIndex') ruckus_cgf_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3)) ruckus_cgf_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1)) if mibBuilder.loadTexts: ruckusCGFTable.setDescription('ruckusCGFTable') ruckus_cgf_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusCGFIndex')) if mibBuilder.loadTexts: ruckusCGFEntry.setDescription('ruckusCGFEntry') ruckus_cgf_cgf_srvc_name = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFCgfSrvcName.setDescription('ruckusCGFCgfSrvcName') ruckus_cgf_cgf_ip = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFCgfIp.setDescription('ruckusCGFCgfIp') ruckus_cgf_num_succ_cdr_txfd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumSuccCdrTxfd.setDescription('ruckusCGFNumSuccCdrTxfd') ruckus_cgf_num_cdr_txfr_fail = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumCdrTxfrFail.setDescription('ruckusCGFNumCdrTxfrFail') ruckus_cgf_num_cdr_poss_dup = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumCdrPossDup.setDescription('ruckusCGFNumCdrPossDup') ruckus_cgf_num_cdr_rls_req = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumCdrRlsReq.setDescription('ruckusCGFNumCdrRlsReq') ruckus_cgf_num_cdr_cncl_req = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumCdrCnclReq.setDescription('ruckusCGFNumCdrCnclReq') ruckus_cgf_num_drtr_req_snt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumDrtrReqSnt.setDescription('ruckusCGFNumDrtrReqSnt') ruckus_cgf_num_drtr_suc_rsp_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumDrtrSucRspRcvd.setDescription('ruckusCGFNumDrtrSucRspRcvd') ruckus_cgf_num_drtr_fail_rsp_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFNumDrtrFailRspRcvd.setDescription('ruckusCGFNumDrtrFailRspRcvd') ruckus_cgf_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 3, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusCGFIndex.setDescription('ruckusCGFIndex') ruckus_gtpu_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4)) ruckus_gtpu_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1)) if mibBuilder.loadTexts: ruckusGTPUTable.setDescription('ruckusGTPUTable') ruckus_gtpu_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusGTPUIndex')) if mibBuilder.loadTexts: ruckusGTPUEntry.setDescription('ruckusGTPUEntry') ruckus_gtpu_ggsn_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUGgsnIPAddr.setDescription('ruckusGTPUGgsnIPAddr') ruckus_gtpu_tx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUTxPkts.setDescription('ruckusGTPUTxPkts') ruckus_gtpu_tx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUTxBytes.setDescription('ruckusGTPUTxBytes') ruckus_gtpu_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPURxPkts.setDescription('ruckusGTPURxPkts') ruckus_gtpu_rx_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPURxBytes.setDescription('ruckusGTPURxBytes') ruckus_gtpu_tx_drops = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUTxDrops.setDescription('ruckusGTPUTxDrops') ruckus_gtpu_rx_drops = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPURxDrops.setDescription('ruckusGTPURxDrops') ruckus_gtpu_num_bad_gtpu = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUNumBadGTPU.setDescription('ruckusGTPUNumBadGTPU') ruckus_gtpu_num_rx_teid_invalid = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUNumRXTeidInvalid.setDescription('ruckusGTPUNumRXTeidInvalid') ruckus_gtpu_num_tx_teid_invalid = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUNumTXTeidInvalid.setDescription('ruckusGTPUNumTXTeidInvalid') ruckus_gtpu_num_of_echo_rx = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUNumOfEchoRX.setDescription('ruckusGTPUNumOfEchoRX') ruckus_gtpu_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 4, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGTPUIndex.setDescription('ruckusGTPUIndex') ruckus_ggsngtpc_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5)) ruckus_ggsngtpc_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1)) if mibBuilder.loadTexts: ruckusGGSNGTPCTable.setDescription('ruckusGGSNGTPCTable') ruckus_ggsngtpc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusGGSNGTPCIndex')) if mibBuilder.loadTexts: ruckusGGSNGTPCEntry.setDescription('ruckusGGSNGTPCEntry') ruckus_ggsngtpc_ggsn_ip = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCGgsnIp.setDescription('ruckusGGSNGTPCGgsnIp') ruckus_ggsngtpc_num_act_pdp = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCNumActPdp.setDescription('ruckusGGSNGTPCNumActPdp') ruckus_ggsngtpc_succ_pdp_crt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpCrt.setDescription('ruckusGGSNGTPCSuccPdpCrt') ruckus_ggsngtpc_fail_pdp_crt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpCrt.setDescription('ruckusGGSNGTPCFailPdpCrt') ruckus_ggsngtpc_succ_pdp_upd_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdRcvd.setDescription('ruckusGGSNGTPCSuccPdpUpdRcvd') ruckus_ggsngtpc_fail_pdp_upd_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdRcvd.setDescription('ruckusGGSNGTPCFailPdpUpdRcvd') ruckus_ggsngtpc_succ_pdp_upd_init_rm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitRM.setDescription('ruckusGGSNGTPCSuccPdpUpdInitRM') ruckus_ggsngtpc_fail_pdp_upd_init_rm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitRM.setDescription('ruckusGGSNGTPCFailPdpUpdInitRM') ruckus_ggsngtpc_succ_pdp_upd_init_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitAAA.setDescription('ruckusGGSNGTPCSuccPdpUpdInitAAA') ruckus_ggsngtpc_fail_pdp_upd_init_aaa = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitAAA.setDescription('ruckusGGSNGTPCFailPdpUpdInitAAA') ruckus_ggsngtpc_succ_pdp_upd_init_hlr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccPdpUpdInitHLR.setDescription('ruckusGGSNGTPCSuccPdpUpdInitHLR') ruckus_ggsngtpc_fail_pdp_upd_init_hlr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailPdpUpdInitHLR.setDescription('ruckusGGSNGTPCFailPdpUpdInitHLR') ruckus_ggsngtpc_succ_del_pdp_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpRcvd.setDescription('ruckusGGSNGTPCSuccDelPdpRcvd') ruckus_ggsngtpc_fail_del_pdp_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpRcvd.setDescription('ruckusGGSNGTPCFailDelPdpRcvd') ruckus_ggsngtpc_succ_del_pdp_init_err = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitErr.setDescription('ruckusGGSNGTPCSuccDelPdpInitErr') ruckus_ggsngtpc_fail_del_pdp_init_err = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitErr.setDescription('ruckusGGSNGTPCFailDelPdpInitErr') ruckus_ggsngtpc_succ_del_pdp_init_dm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitDM.setDescription('ruckusGGSNGTPCSuccDelPdpInitDM') ruckus_ggsngtpc_fail_del_pdp_init_dm = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitDM.setDescription('ruckusGGSNGTPCFailDelPdpInitDM') ruckus_ggsngtpc_succ_del_pdp_init_hlr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitHLR.setDescription('ruckusGGSNGTPCSuccDelPdpInitHLR') ruckus_ggsngtpc_fail_del_pdp_init_hlr = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitHLR.setDescription('ruckusGGSNGTPCFailDelPdpInitHLR') ruckus_ggsngtpc_succ_del_pdp_init_scg = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitSCG.setDescription('ruckusGGSNGTPCSuccDelPdpInitSCG') ruckus_ggsngtpc_fail_del_pdp_init_scg = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitSCG.setDescription('ruckusGGSNGTPCFailDelPdpInitSCG') ruckus_ggsngtpc_succ_del_pdp_init_ap = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitAP.setDescription('ruckusGGSNGTPCSuccDelPdpInitAP') ruckus_ggsngtpc_fail_del_pdp_init_ap = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitAP.setDescription('ruckusGGSNGTPCFailDelPdpInitAP') ruckus_ggsngtpc_succ_del_pdp_init_d = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitD.setDescription('ruckusGGSNGTPCSuccDelPdpInitD') ruckus_ggsngtpc_fail_del_pdp_init_d = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitD.setDescription('ruckusGGSNGTPCFailDelPdpInitD') ruckus_ggsngtpc_succ_del_pdp_init_clnt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCSuccDelPdpInitClnt.setDescription('ruckusGGSNGTPCSuccDelPdpInitClnt') ruckus_ggsngtpc_fail_del_pdp_init_clnt = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCFailDelPdpInitClnt.setDescription('ruckusGGSNGTPCFailDelPdpInitClnt') ruckus_ggsngtpc_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 5, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusGGSNGTPCIndex.setDescription('ruckusGGSNGTPCIndex') ruckus_hlr_info = mib_identifier((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7)) ruckus_hlr_table = mib_table((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1)) if mibBuilder.loadTexts: ruckusHLRTable.setDescription('ruckusHLRTable') ruckus_hlr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1)).setIndexNames((0, 'RUCKUS-SCG-TTG-MIB', 'ruckusHLRIndex')) if mibBuilder.loadTexts: ruckusHLREntry.setDescription('ruckusHLREntry') ruckus_hlr_hlr_srvc_name = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRHlrSrvcName.setDescription('ruckusHLRHlrSrvcName') ruckus_hlr_num_suc_auth_info_req_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqSim.setDescription('ruckusHLRNumSucAuthInfoReqSim') ruckus_hlr_num_auth_info_rq_err_hlr_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrSim.setDescription('ruckusHLRNumAuthInfoRqErrHlrSim') ruckus_hlr_num_auth_info_rq_tmot_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotSim.setDescription('ruckusHLRNumAuthInfoRqTmotSim') ruckus_hlr_num_suc_auth_info_req_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSucAuthInfoReqAka.setDescription('ruckusHLRNumSucAuthInfoReqAka') ruckus_hlr_num_auth_info_rq_err_hlr_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqErrHlrAka.setDescription('ruckusHLRNumAuthInfoRqErrHlrAka') ruckus_hlr_num_auth_info_rq_tmot_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumAuthInfoRqTmotAka.setDescription('ruckusHLRNumAuthInfoRqTmotAka') ruckus_hlr_num_upd_gprs_succ_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccSim.setDescription('ruckusHLRNumUpdGprsSuccSim') ruckus_hlr_num_upd_gprs_fail_err_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrSim.setDescription('ruckusHLRNumUpdGprsFailErrSim') ruckus_hlr_num_upd_gprs_fail_tmo_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoSim.setDescription('ruckusHLRNumUpdGprsFailTmoSim') ruckus_hlr_num_upd_gprs_succ_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsSuccAka.setDescription('ruckusHLRNumUpdGprsSuccAka') ruckus_hlr_num_upd_gprs_fail_err_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailErrAka.setDescription('ruckusHLRNumUpdGprsFailErrAka') ruckus_hlr_num_upd_gprs_fail_tmo_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumUpdGprsFailTmoAka.setDescription('ruckusHLRNumUpdGprsFailTmoAka') ruckus_hlr_num_rst_dta_succ_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccSim.setDescription('ruckusHLRNumRstDtaSuccSim') ruckus_hlr_num_rst_dta_fail_err_hlr_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrSim.setDescription('ruckusHLRNumRstDtaFailErrHlrSim') ruckus_hlr_num_rst_dta_fail_tmo_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoSim.setDescription('ruckusHLRNumRstDtaFailTmoSim') ruckus_hlr_num_rst_dta_succ_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaSuccAka.setDescription('ruckusHLRNumRstDtaSuccAka') ruckus_hlr_num_rst_dta_fail_err_hlr_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 18), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailErrHlrAka.setDescription('ruckusHLRNumRstDtaFailErrHlrAka') ruckus_hlr_num_rst_dta_fail_tmo_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 19), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRstDtaFailTmoAka.setDescription('ruckusHLRNumRstDtaFailTmoAka') ruckus_hlr_num_insrt_dta_succ_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 20), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccSim.setDescription('ruckusHLRNumInsrtDtaSuccSim') ruckus_hlr_num_insrt_dta_fail_sim = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 21), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailSim.setDescription('ruckusHLRNumInsrtDtaFailSim') ruckus_hlr_num_insrt_dta_succ_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 22), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaSuccAka.setDescription('ruckusHLRNumInsrtDtaSuccAka') ruckus_hlr_num_insrt_dta_fail_aka = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 23), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumInsrtDtaFailAka.setDescription('ruckusHLRNumInsrtDtaFailAka') ruckus_hlr_num_sa_insrt_dta_succ = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 24), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaSucc.setDescription('ruckusHLRNumSaInsrtDtaSucc') ruckus_hlr_num_sa_insrt_dta_fail_unk_s = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 25), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailUnkS.setDescription('ruckusHLRNumSaInsrtDtaFailUnkS') ruckus_hlr_num_sa_insrt_dta_fail_err = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 26), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumSaInsrtDtaFailErr.setDescription('ruckusHLRNumSaInsrtDtaFailErr') ruckus_hlr_num_cfg_assoc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 27), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumCfgAssoc.setDescription('ruckusHLRNumCfgAssoc') ruckus_hlr_num_act_assoc = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 28), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumActAssoc.setDescription('ruckusHLRNumActAssoc') ruckus_hlr_num_rtg_fail = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 29), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRNumRtgFail.setDescription('ruckusHLRNumRtgFail') ruckus_hlr_index = mib_table_column((1, 3, 6, 1, 4, 1, 25053, 1, 3, 3, 1, 1, 7, 1, 1, 99), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ruckusHLRIndex.setDescription('ruckusHLRIndex') mibBuilder.exportSymbols('RUCKUS-SCG-TTG-MIB', PYSNMP_MODULE_ID=ruckusTTGMIB) mibBuilder.exportSymbols('RUCKUS-SCG-TTG-MIB', ruckusTTGMIB=ruckusTTGMIB, ruckusTTGObjects=ruckusTTGObjects, ruckusAAAInfo=ruckusAAAInfo, ruckusAAATable=ruckusAAATable, ruckusAAAEntry=ruckusAAAEntry, ruckusAAAAaaIp=ruckusAAAAaaIp, ruckusAAANumSuccAuthPerm=ruckusAAANumSuccAuthPerm, ruckusAAANumFailAuthPerm=ruckusAAANumFailAuthPerm, ruckusAAANumSuccAuthPsd=ruckusAAANumSuccAuthPsd, ruckusAAANumFailAuthPsd=ruckusAAANumFailAuthPsd, ruckusAAANumSuccFastAuth=ruckusAAANumSuccFastAuth, ruckusAAANumFailFastAuth=ruckusAAANumFailFastAuth, ruckusAAANumAuthUnknPsd=ruckusAAANumAuthUnknPsd, ruckusAAANumAuthUnknFR=ruckusAAANumAuthUnknFR, ruckusAAANumIncompleteAuth=ruckusAAANumIncompleteAuth, ruckusAAANumSuccAcc=ruckusAAANumSuccAcc, ruckusAAANumFailAcc=ruckusAAANumFailAcc, ruckusAAANumRadAcsRq=ruckusAAANumRadAcsRq, ruckusAAANumRadAcsAcpt=ruckusAAANumRadAcsAcpt, ruckusAAANumRadAcsChlg=ruckusAAANumRadAcsChlg, ruckusAAANumRadAcsRej=ruckusAAANumRadAcsRej, ruckusAAANumRadAccRq=ruckusAAANumRadAccRq, ruckusAAANumRadAccAcpt=ruckusAAANumRadAccAcpt, ruckusAAANumRadCoaRq=ruckusAAANumRadCoaRq, ruckusAAANumSuccCoaAcpt=ruckusAAANumSuccCoaAcpt, ruckusAAANumFailCoaAcpt=ruckusAAANumFailCoaAcpt, ruckusAAANumRadDmRq=ruckusAAANumRadDmRq, ruckusAAANumSuccDmAcpt=ruckusAAANumSuccDmAcpt, ruckusAAANumFailDmAcpt=ruckusAAANumFailDmAcpt, ruckusAAAIndex=ruckusAAAIndex, ruckusAAAProxyInfo=ruckusAAAProxyInfo, ruckusAAAProxyTable=ruckusAAAProxyTable, ruckusAAAProxyEntry=ruckusAAAProxyEntry, ruckusAAAProxyAaaIp=ruckusAAAProxyAaaIp, ruckusAAAProxyNumSuccAuth=ruckusAAAProxyNumSuccAuth, ruckusAAAProxyNumFailAuth=ruckusAAAProxyNumFailAuth, ruckusAAAProxyNumIncmpltAuth=ruckusAAAProxyNumIncmpltAuth, ruckusAAAProxyNumSuccAcc=ruckusAAAProxyNumSuccAcc, ruckusAAAProxyNumFailAcc=ruckusAAAProxyNumFailAcc, ruckusAAAProxyNumAcsRqRcvdNas=ruckusAAAProxyNumAcsRqRcvdNas, ruckusAAAProxyNumAcsRqSntAaa=ruckusAAAProxyNumAcsRqSntAaa, ruckusAAAProxyNumAcsChRcvdAaa=ruckusAAAProxyNumAcsChRcvdAaa, ruckusAAAProxyNumAcsChSntNas=ruckusAAAProxyNumAcsChSntNas, ruckusAAAProxyNumAcsAcpRcvdAaa=ruckusAAAProxyNumAcsAcpRcvdAaa, ruckusAAAProxyNumAcsAcpSntNas=ruckusAAAProxyNumAcsAcpSntNas, ruckusAAAProxyNumAcsRejRcvdAaa=ruckusAAAProxyNumAcsRejRcvdAaa, ruckusAAAProxyNumAcsRejSntNas=ruckusAAAProxyNumAcsRejSntNas, ruckusAAAProxyNumAccRqRcvdNas=ruckusAAAProxyNumAccRqRcvdNas, ruckusAAAProxyNumAccRqSntAaa=ruckusAAAProxyNumAccRqSntAaa, ruckusAAAProxyNumAccRspRcdAaa=ruckusAAAProxyNumAccRspRcdAaa, ruckusAAAProxyNumAccRspSntNas=ruckusAAAProxyNumAccRspSntNas, ruckusAAAProxyNumCoaRcvdAaa=ruckusAAAProxyNumCoaRcvdAaa, ruckusAAAProxyNumCoaSucSntAaa=ruckusAAAProxyNumCoaSucSntAaa, ruckusAAAProxyNumCoaFailSntAaa=ruckusAAAProxyNumCoaFailSntAaa, ruckusAAAProxyNumDmRcvdAaa=ruckusAAAProxyNumDmRcvdAaa, ruckusAAAProxyNumDmSntNas=ruckusAAAProxyNumDmSntNas, ruckusAAAProxyNumDmSucRcdNas=ruckusAAAProxyNumDmSucRcdNas, ruckusAAAProxyNumDmSucSntAaa=ruckusAAAProxyNumDmSucSntAaa, ruckusAAAProxyNumDmFailRcdNas=ruckusAAAProxyNumDmFailRcdNas, ruckusAAAProxyNumDmFailSntAaa=ruckusAAAProxyNumDmFailSntAaa, ruckusAAAProxyIndex=ruckusAAAProxyIndex, ruckusCGFInfo=ruckusCGFInfo, ruckusCGFTable=ruckusCGFTable, ruckusCGFEntry=ruckusCGFEntry, ruckusCGFCgfSrvcName=ruckusCGFCgfSrvcName, ruckusCGFCgfIp=ruckusCGFCgfIp, ruckusCGFNumSuccCdrTxfd=ruckusCGFNumSuccCdrTxfd, ruckusCGFNumCdrTxfrFail=ruckusCGFNumCdrTxfrFail, ruckusCGFNumCdrPossDup=ruckusCGFNumCdrPossDup, ruckusCGFNumCdrRlsReq=ruckusCGFNumCdrRlsReq, ruckusCGFNumCdrCnclReq=ruckusCGFNumCdrCnclReq, ruckusCGFNumDrtrReqSnt=ruckusCGFNumDrtrReqSnt, ruckusCGFNumDrtrSucRspRcvd=ruckusCGFNumDrtrSucRspRcvd, ruckusCGFNumDrtrFailRspRcvd=ruckusCGFNumDrtrFailRspRcvd, ruckusCGFIndex=ruckusCGFIndex, ruckusGTPUInfo=ruckusGTPUInfo, ruckusGTPUTable=ruckusGTPUTable, ruckusGTPUEntry=ruckusGTPUEntry, ruckusGTPUGgsnIPAddr=ruckusGTPUGgsnIPAddr, ruckusGTPUTxPkts=ruckusGTPUTxPkts, ruckusGTPUTxBytes=ruckusGTPUTxBytes, ruckusGTPURxPkts=ruckusGTPURxPkts, ruckusGTPURxBytes=ruckusGTPURxBytes, ruckusGTPUTxDrops=ruckusGTPUTxDrops, ruckusGTPURxDrops=ruckusGTPURxDrops, ruckusGTPUNumBadGTPU=ruckusGTPUNumBadGTPU, ruckusGTPUNumRXTeidInvalid=ruckusGTPUNumRXTeidInvalid, ruckusGTPUNumTXTeidInvalid=ruckusGTPUNumTXTeidInvalid, ruckusGTPUNumOfEchoRX=ruckusGTPUNumOfEchoRX, ruckusGTPUIndex=ruckusGTPUIndex, ruckusGGSNGTPCInfo=ruckusGGSNGTPCInfo, ruckusGGSNGTPCTable=ruckusGGSNGTPCTable, ruckusGGSNGTPCEntry=ruckusGGSNGTPCEntry, ruckusGGSNGTPCGgsnIp=ruckusGGSNGTPCGgsnIp, ruckusGGSNGTPCNumActPdp=ruckusGGSNGTPCNumActPdp, ruckusGGSNGTPCSuccPdpCrt=ruckusGGSNGTPCSuccPdpCrt, ruckusGGSNGTPCFailPdpCrt=ruckusGGSNGTPCFailPdpCrt, ruckusGGSNGTPCSuccPdpUpdRcvd=ruckusGGSNGTPCSuccPdpUpdRcvd, ruckusGGSNGTPCFailPdpUpdRcvd=ruckusGGSNGTPCFailPdpUpdRcvd, ruckusGGSNGTPCSuccPdpUpdInitRM=ruckusGGSNGTPCSuccPdpUpdInitRM, ruckusGGSNGTPCFailPdpUpdInitRM=ruckusGGSNGTPCFailPdpUpdInitRM, ruckusGGSNGTPCSuccPdpUpdInitAAA=ruckusGGSNGTPCSuccPdpUpdInitAAA, ruckusGGSNGTPCFailPdpUpdInitAAA=ruckusGGSNGTPCFailPdpUpdInitAAA, ruckusGGSNGTPCSuccPdpUpdInitHLR=ruckusGGSNGTPCSuccPdpUpdInitHLR, ruckusGGSNGTPCFailPdpUpdInitHLR=ruckusGGSNGTPCFailPdpUpdInitHLR, ruckusGGSNGTPCSuccDelPdpRcvd=ruckusGGSNGTPCSuccDelPdpRcvd, ruckusGGSNGTPCFailDelPdpRcvd=ruckusGGSNGTPCFailDelPdpRcvd, ruckusGGSNGTPCSuccDelPdpInitErr=ruckusGGSNGTPCSuccDelPdpInitErr, ruckusGGSNGTPCFailDelPdpInitErr=ruckusGGSNGTPCFailDelPdpInitErr, ruckusGGSNGTPCSuccDelPdpInitDM=ruckusGGSNGTPCSuccDelPdpInitDM, ruckusGGSNGTPCFailDelPdpInitDM=ruckusGGSNGTPCFailDelPdpInitDM, ruckusGGSNGTPCSuccDelPdpInitHLR=ruckusGGSNGTPCSuccDelPdpInitHLR, ruckusGGSNGTPCFailDelPdpInitHLR=ruckusGGSNGTPCFailDelPdpInitHLR, ruckusGGSNGTPCSuccDelPdpInitSCG=ruckusGGSNGTPCSuccDelPdpInitSCG, ruckusGGSNGTPCFailDelPdpInitSCG=ruckusGGSNGTPCFailDelPdpInitSCG, ruckusGGSNGTPCSuccDelPdpInitAP=ruckusGGSNGTPCSuccDelPdpInitAP, ruckusGGSNGTPCFailDelPdpInitAP=ruckusGGSNGTPCFailDelPdpInitAP, ruckusGGSNGTPCSuccDelPdpInitD=ruckusGGSNGTPCSuccDelPdpInitD, ruckusGGSNGTPCFailDelPdpInitD=ruckusGGSNGTPCFailDelPdpInitD, ruckusGGSNGTPCSuccDelPdpInitClnt=ruckusGGSNGTPCSuccDelPdpInitClnt, ruckusGGSNGTPCFailDelPdpInitClnt=ruckusGGSNGTPCFailDelPdpInitClnt, ruckusGGSNGTPCIndex=ruckusGGSNGTPCIndex, ruckusHLRInfo=ruckusHLRInfo, ruckusHLRTable=ruckusHLRTable, ruckusHLREntry=ruckusHLREntry, ruckusHLRHlrSrvcName=ruckusHLRHlrSrvcName) mibBuilder.exportSymbols('RUCKUS-SCG-TTG-MIB', ruckusHLRNumSucAuthInfoReqSim=ruckusHLRNumSucAuthInfoReqSim, ruckusHLRNumAuthInfoRqErrHlrSim=ruckusHLRNumAuthInfoRqErrHlrSim, ruckusHLRNumAuthInfoRqTmotSim=ruckusHLRNumAuthInfoRqTmotSim, ruckusHLRNumSucAuthInfoReqAka=ruckusHLRNumSucAuthInfoReqAka, ruckusHLRNumAuthInfoRqErrHlrAka=ruckusHLRNumAuthInfoRqErrHlrAka, ruckusHLRNumAuthInfoRqTmotAka=ruckusHLRNumAuthInfoRqTmotAka, ruckusHLRNumUpdGprsSuccSim=ruckusHLRNumUpdGprsSuccSim, ruckusHLRNumUpdGprsFailErrSim=ruckusHLRNumUpdGprsFailErrSim, ruckusHLRNumUpdGprsFailTmoSim=ruckusHLRNumUpdGprsFailTmoSim, ruckusHLRNumUpdGprsSuccAka=ruckusHLRNumUpdGprsSuccAka, ruckusHLRNumUpdGprsFailErrAka=ruckusHLRNumUpdGprsFailErrAka, ruckusHLRNumUpdGprsFailTmoAka=ruckusHLRNumUpdGprsFailTmoAka, ruckusHLRNumRstDtaSuccSim=ruckusHLRNumRstDtaSuccSim, ruckusHLRNumRstDtaFailErrHlrSim=ruckusHLRNumRstDtaFailErrHlrSim, ruckusHLRNumRstDtaFailTmoSim=ruckusHLRNumRstDtaFailTmoSim, ruckusHLRNumRstDtaSuccAka=ruckusHLRNumRstDtaSuccAka, ruckusHLRNumRstDtaFailErrHlrAka=ruckusHLRNumRstDtaFailErrHlrAka, ruckusHLRNumRstDtaFailTmoAka=ruckusHLRNumRstDtaFailTmoAka, ruckusHLRNumInsrtDtaSuccSim=ruckusHLRNumInsrtDtaSuccSim, ruckusHLRNumInsrtDtaFailSim=ruckusHLRNumInsrtDtaFailSim, ruckusHLRNumInsrtDtaSuccAka=ruckusHLRNumInsrtDtaSuccAka, ruckusHLRNumInsrtDtaFailAka=ruckusHLRNumInsrtDtaFailAka, ruckusHLRNumSaInsrtDtaSucc=ruckusHLRNumSaInsrtDtaSucc, ruckusHLRNumSaInsrtDtaFailUnkS=ruckusHLRNumSaInsrtDtaFailUnkS, ruckusHLRNumSaInsrtDtaFailErr=ruckusHLRNumSaInsrtDtaFailErr, ruckusHLRNumCfgAssoc=ruckusHLRNumCfgAssoc, ruckusHLRNumActAssoc=ruckusHLRNumActAssoc, ruckusHLRNumRtgFail=ruckusHLRNumRtgFail, ruckusHLRIndex=ruckusHLRIndex)
class Slot: def __init__(name, _type=None, item=None): self.name = name, if _type is not None: self.type = _type else: self.type = name self.item = item, def equip(self): pass def unequip(self): pass def show(self): pass
class Slot: def __init__(name, _type=None, item=None): self.name = (name,) if _type is not None: self.type = _type else: self.type = name self.item = (item,) def equip(self): pass def unequip(self): pass def show(self): pass
def test_modulemap(snapshot): snapshot.assert_match([1, 2, 4]) def test_runlist(): assert 1 == 1
def test_modulemap(snapshot): snapshot.assert_match([1, 2, 4]) def test_runlist(): assert 1 == 1
# Charlie Conneely # Dictionary parser file def parse(f): file = open(f, "r") words = file.read().split() file.close() return words if __name__ == "__main__": print("please run runner.py instead")
def parse(f): file = open(f, 'r') words = file.read().split() file.close() return words if __name__ == '__main__': print('please run runner.py instead')
def fibonacci(n): if n == 0: return (0, 1) else: a, b = fibonacci(n // 2) c = a * (b * 2 - a) d = a * a + b * b if n % 2 == 0: return (c, d) else: return (d, c + d) x = 0 y = 0 num = 1 while len(str(x)) < 1000: x, y = fibonacci(num) num += 1 print(len(str(y)),len(str(x)),num)
def fibonacci(n): if n == 0: return (0, 1) else: (a, b) = fibonacci(n // 2) c = a * (b * 2 - a) d = a * a + b * b if n % 2 == 0: return (c, d) else: return (d, c + d) x = 0 y = 0 num = 1 while len(str(x)) < 1000: (x, y) = fibonacci(num) num += 1 print(len(str(y)), len(str(x)), num)
def add(x, y): return x + y print(add(5, 7)) # -- Written as a lambda -- add = lambda x, y: x + y print(add(5, 7)) # Four parts # lambda # parameters # : # return value # Lambdas are meant to be short functions, often used without giving them a name. # For example, in conjunction with built-in function map # map applies the function to all values in the sequence def double(x): return x * 2 sequence = [1, 3, 5, 9] doubled = [ double(x) for x in sequence ] # Put the result of double(x) in a new list, for each of the values in `sequence` doubled = map(double, sequence) print(list(doubled)) # -- Written as a lambda -- sequence = [1, 3, 5, 9] doubled = map(lambda x: x * 2, sequence) print(list(doubled)) # -- Important to remember -- # Lambdas are just functions without a name. # They are used to return a value calculated from its parameters. # Almost always single-line, so don't do anything complicated in them. # Very often better to just define a function and give it a proper name.
def add(x, y): return x + y print(add(5, 7)) add = lambda x, y: x + y print(add(5, 7)) def double(x): return x * 2 sequence = [1, 3, 5, 9] doubled = [double(x) for x in sequence] doubled = map(double, sequence) print(list(doubled)) sequence = [1, 3, 5, 9] doubled = map(lambda x: x * 2, sequence) print(list(doubled))
def test_3_5_15(n): if (n % 15 == 0) and n != 0 : return 'FizzBuzz' elif n % 3 ==0 and n != 0: return 'Fizz' elif n % 5 == 0 and n != 0: return 'Buzz' else: return n def coundown(): for x in range (0,101): print(test_3_5_15(x)) coundown()
def test_3_5_15(n): if n % 15 == 0 and n != 0: return 'FizzBuzz' elif n % 3 == 0 and n != 0: return 'Fizz' elif n % 5 == 0 and n != 0: return 'Buzz' else: return n def coundown(): for x in range(0, 101): print(test_3_5_15(x)) coundown()
def average(data): if isinstance(data[0], int): return sum(data) / len(data) else: raw_data = list(map(lambda r: r.value, data)) return sum(raw_data) / len(raw_data) def minimum(data, index=0): if index == 0: data_slice = data else: data_slice = data[index:] return min(data_slice) def maximum(data, index=0): if index == 0: data_slice = data else: data_slice = data[index:] return max(data_slice) def data_range(data): return minimum(data), maximum(data) def median(data): sorted_data = sorted(data) data_length = len(data) index = (data_length - 1) // 2 if data_length % 2: return sorted_data[index] else: return (sorted_data[index] + sorted_data[index + 1]) / 2.0 def celsius_to_fahrenheit(celsius): return (celsius * 9 / 5) + 32 def fahrenheit_to_celsius(fahrenheit): return (fahrenheit - 32) * 5/9
def average(data): if isinstance(data[0], int): return sum(data) / len(data) else: raw_data = list(map(lambda r: r.value, data)) return sum(raw_data) / len(raw_data) def minimum(data, index=0): if index == 0: data_slice = data else: data_slice = data[index:] return min(data_slice) def maximum(data, index=0): if index == 0: data_slice = data else: data_slice = data[index:] return max(data_slice) def data_range(data): return (minimum(data), maximum(data)) def median(data): sorted_data = sorted(data) data_length = len(data) index = (data_length - 1) // 2 if data_length % 2: return sorted_data[index] else: return (sorted_data[index] + sorted_data[index + 1]) / 2.0 def celsius_to_fahrenheit(celsius): return celsius * 9 / 5 + 32 def fahrenheit_to_celsius(fahrenheit): return (fahrenheit - 32) * 5 / 9
EXCHANGE_MAX_NAME_LENGTH = 100 EXCHANGE_MAX_DESCRIPTION_LENGTH = 1000 FOLDER_FORBIDDEN_CHARS = {'/', '\\', ':', '*', '"', '<', '>', '?', '|'} FOLDER_MAX_NAME_LENGTH = 60 def validate_folder(folder): if 'name' not in folder: raise Exception('No name') for c in VALIDATE_FOLDER_FORBIDDEN_CHARS: if c in folder['name']: raise Exception('Not allowed in name: {}'.format(c)) if len(folder['name']) > VALIDATE_FOLDER_MAX_NAME_LENGTH: raise Exception('Exceed 60 characters: {}'.format(len(folder['name']))) GROUP_MAX_NAME_LENGTH = 49 GROUP_MAX_NOTE_LENGTH = 200 GROUP_MAX_ENTITY_COUNT_DELETE = 100
exchange_max_name_length = 100 exchange_max_description_length = 1000 folder_forbidden_chars = {'/', '\\', ':', '*', '"', '<', '>', '?', '|'} folder_max_name_length = 60 def validate_folder(folder): if 'name' not in folder: raise exception('No name') for c in VALIDATE_FOLDER_FORBIDDEN_CHARS: if c in folder['name']: raise exception('Not allowed in name: {}'.format(c)) if len(folder['name']) > VALIDATE_FOLDER_MAX_NAME_LENGTH: raise exception('Exceed 60 characters: {}'.format(len(folder['name']))) group_max_name_length = 49 group_max_note_length = 200 group_max_entity_count_delete = 100
class OperationStaResult(object): def __init__(self): self.total = None self.wait = None self.processing = None self.success = None self.fail = None self.stop = None self.timeout = None def getTotal(self): return self.total def setTotal(self, total): self.total = total def getWait(self): return self.wait def setWait(self, wait): self.wait = wait def getProcessing(self): return self.processing def setProcessing(self, processing): self.processing = processing def getSuccess(self): return self.success def setSuccess(self, success): self.success = success def getFail(self): return self.fail def setFail(self, fail): self.fail = fail def getStop(self): return self.stop def setStop(self, stop): self.stop = stop def getTimeout(self): return self.timeout def setTimeout(self, timeout): self.timeout = timeout
class Operationstaresult(object): def __init__(self): self.total = None self.wait = None self.processing = None self.success = None self.fail = None self.stop = None self.timeout = None def get_total(self): return self.total def set_total(self, total): self.total = total def get_wait(self): return self.wait def set_wait(self, wait): self.wait = wait def get_processing(self): return self.processing def set_processing(self, processing): self.processing = processing def get_success(self): return self.success def set_success(self, success): self.success = success def get_fail(self): return self.fail def set_fail(self, fail): self.fail = fail def get_stop(self): return self.stop def set_stop(self, stop): self.stop = stop def get_timeout(self): return self.timeout def set_timeout(self, timeout): self.timeout = timeout
# Medium # https://leetcode.com/problems/next-greater-element-ii/ # TC: O(N) # SC: O(N) class Solution: def nextGreaterElements(self, nums: List[int]) -> List[int]: nums = nums + nums stack = [] out = [-1 for _ in nums] for index, num in enumerate(nums): while len(stack) and num > nums[stack[-1]]: out[stack.pop()] = num stack.append(index) return out[:len(nums) // 2]
class Solution: def next_greater_elements(self, nums: List[int]) -> List[int]: nums = nums + nums stack = [] out = [-1 for _ in nums] for (index, num) in enumerate(nums): while len(stack) and num > nums[stack[-1]]: out[stack.pop()] = num stack.append(index) return out[:len(nums) // 2]
days = ["Mon", "Thu", "Wed", "Thur", "Fri"] # list(mutable sequence) print(days) days.append("Sat") days.reverse() print(days)
days = ['Mon', 'Thu', 'Wed', 'Thur', 'Fri'] print(days) days.append('Sat') days.reverse() print(days)
class StreamPredictorConsumer(object): def __init__(self, name, algorithm=None, **kw): self.algorithm = algorithm self.name = name self.run_count = 0 self.runs = [] async def handle(self, payload): self.run_count += 1 try: results, err = await self.algorithm(payload) except Exception as emsg: err = str(emsg) results = {} self.runs.append({ 'run_count': self.run_count - 1, 'results': results, 'error': err })
class Streampredictorconsumer(object): def __init__(self, name, algorithm=None, **kw): self.algorithm = algorithm self.name = name self.run_count = 0 self.runs = [] async def handle(self, payload): self.run_count += 1 try: (results, err) = await self.algorithm(payload) except Exception as emsg: err = str(emsg) results = {} self.runs.append({'run_count': self.run_count - 1, 'results': results, 'error': err})
group_template_tag_prefix = 'DRKNS_GROUP_TEMPLATE_' # BEGIN / END unit_template_tag_prefix = 'DRKNS_UNIT_TEMPLATE_' # BEGIN / END groups_tag = 'DRKNS_GROUPS' group_units_tag = 'DRKNS_GROUP_UNITS' group_name_tag = 'DRKNS_GROUP_NAME' unit_name_tag = 'DRKNS_UNIT_NAME' dependency_groups_names_tag = 'DRKNS_DEPENDENCY_GROUPS_NAMES' all_group_names_tag = 'DRKNS_ALL_GROUPS_NAMES'
group_template_tag_prefix = 'DRKNS_GROUP_TEMPLATE_' unit_template_tag_prefix = 'DRKNS_UNIT_TEMPLATE_' groups_tag = 'DRKNS_GROUPS' group_units_tag = 'DRKNS_GROUP_UNITS' group_name_tag = 'DRKNS_GROUP_NAME' unit_name_tag = 'DRKNS_UNIT_NAME' dependency_groups_names_tag = 'DRKNS_DEPENDENCY_GROUPS_NAMES' all_group_names_tag = 'DRKNS_ALL_GROUPS_NAMES'
#!/usr/bin/env python3 def main(): for i in range(1,11): for j in range(1,11): if(j==10): print(i*j) else: print(i*j, end=" ") if __name__ == "__main__": main()
def main(): for i in range(1, 11): for j in range(1, 11): if j == 10: print(i * j) else: print(i * j, end=' ') if __name__ == '__main__': main()
def require(*types): ''' Return a decorator function that requires specified types. types -- tuple each element of which is a type or class or a tuple of several types or classes. Example to require a string then a numeric argument @require(str, (int, long, float)) will do the trick ''' def deco(func): ''' Decorator function to be returned from require(). Returns a function wrapper that validates argument types. ''' def wrapper (*args): ''' Function wrapper that checks argument types. ''' assert len(args) == len(types), 'Wrong number of arguments.' for a, t in zip(args, types): if type(t) == type(()): # any of these types are ok assert sum(isinstance(a, tp) for tp in t) > 0, '''\ %s is not a valid type. Valid types: %s ''' % (a, '\n'.join(str(x) for x in t)) assert isinstance(a, t), '%s is not a %s type' % (a, t) return func(*args) return wrapper return deco @require(int) def inter(int_val): print('int_val is ', int_val) @require(float) def floater(f_val): print('f_val is ', f_val) @require(str, (int, int, float)) def nameAge1(name, age): print('%s is %s years old' % (name, age)) # another way to do the same thing number = (int, float, int) @require(str, number) def nameAge2(name, age): print('%s is %s years old' % (name, age)) nameAge1('Emily', 8) # str, int ok nameAge1('Elizabeth', 4.5) # str, float ok nameAge2('Romita', 9) # str, long ok nameAge2('Emily', 'eight') # raises an exception!
def require(*types): """ Return a decorator function that requires specified types. types -- tuple each element of which is a type or class or a tuple of several types or classes. Example to require a string then a numeric argument @require(str, (int, long, float)) will do the trick """ def deco(func): """ Decorator function to be returned from require(). Returns a function wrapper that validates argument types. """ def wrapper(*args): """ Function wrapper that checks argument types. """ assert len(args) == len(types), 'Wrong number of arguments.' for (a, t) in zip(args, types): if type(t) == type(()): assert sum((isinstance(a, tp) for tp in t)) > 0, '%s is not a valid type. Valid types:\n%s\n' % (a, '\n'.join((str(x) for x in t))) assert isinstance(a, t), '%s is not a %s type' % (a, t) return func(*args) return wrapper return deco @require(int) def inter(int_val): print('int_val is ', int_val) @require(float) def floater(f_val): print('f_val is ', f_val) @require(str, (int, int, float)) def name_age1(name, age): print('%s is %s years old' % (name, age)) number = (int, float, int) @require(str, number) def name_age2(name, age): print('%s is %s years old' % (name, age)) name_age1('Emily', 8) name_age1('Elizabeth', 4.5) name_age2('Romita', 9) name_age2('Emily', 'eight')
def try_if(l): ret = 0 for x in l: if x == 1: ret += 2 elif x == 0: ret += 4 else: ret -= 2 return ret try_if([0, 1, 0, 1, 2, 3])
def try_if(l): ret = 0 for x in l: if x == 1: ret += 2 elif x == 0: ret += 4 else: ret -= 2 return ret try_if([0, 1, 0, 1, 2, 3])
namespace = '/map' routes = { 'getAllObjectDest': '/', }
namespace = '/map' routes = {'getAllObjectDest': '/'}
# Validar uma string def valida_str(texto, min, max): tam = len(texto) if tam < min or tam > max: return False else: return True # Programa Principal texto = input('Digite um string (3-15 caracteres): ') while valida_str(texto, 3, 15): texto = input('Digite uma string (3-15 caracteres): ') print(texto)
def valida_str(texto, min, max): tam = len(texto) if tam < min or tam > max: return False else: return True texto = input('Digite um string (3-15 caracteres): ') while valida_str(texto, 3, 15): texto = input('Digite uma string (3-15 caracteres): ') print(texto)
# # PySNMP MIB module HH3C-STACK-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-STACK-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:29:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint") entPhysicalIndex, = mibBuilder.importSymbols("ENTITY-MIB", "entPhysicalIndex") hh3cCommon, = mibBuilder.importSymbols("HH3C-OID-MIB", "hh3cCommon") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Counter32, ModuleIdentity, Bits, Gauge32, TimeTicks, IpAddress, ObjectIdentity, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Unsigned32, MibIdentifier, Integer32, NotificationType, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ModuleIdentity", "Bits", "Gauge32", "TimeTicks", "IpAddress", "ObjectIdentity", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Unsigned32", "MibIdentifier", "Integer32", "NotificationType", "iso") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") hh3cStack = ModuleIdentity((1, 3, 6, 1, 4, 1, 25506, 2, 91)) hh3cStack.setRevisions(('2008-04-30 16:50',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hh3cStack.setRevisionsDescriptions(('The initial revision of this MIB module.',)) if mibBuilder.loadTexts: hh3cStack.setLastUpdated('200804301650Z') if mibBuilder.loadTexts: hh3cStack.setOrganization('Hangzhou H3C Technologies Co., Ltd.') if mibBuilder.loadTexts: hh3cStack.setContactInfo('Platform Team H3C Technologies Co., Ltd. Hai-Dian District Beijing P.R. China Http://www.h3c.com Zip:100085') if mibBuilder.loadTexts: hh3cStack.setDescription('This MIB is used to manage STM (Stack Topology Management) information for IRF (Intelligent Resilient Framework) device. This MIB is applicable to products which support IRF. Some objects in this MIB may be used only for some specific products, so users should refer to the related documents to acquire more detailed information.') hh3cStackGlobalConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1)) hh3cStackMaxMember = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackMaxMember.setStatus('current') if mibBuilder.loadTexts: hh3cStackMaxMember.setDescription('The maximum number of members in a stack.') hh3cStackMemberNum = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackMemberNum.setStatus('current') if mibBuilder.loadTexts: hh3cStackMemberNum.setDescription('The number of members currently in a stack.') hh3cStackMaxConfigPriority = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackMaxConfigPriority.setStatus('current') if mibBuilder.loadTexts: hh3cStackMaxConfigPriority.setDescription('The highest priority that can be configured for a member in a stack.') hh3cStackAutoUpdate = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cStackAutoUpdate.setStatus('current') if mibBuilder.loadTexts: hh3cStackAutoUpdate.setDescription('The function for automatically updating the image from master to slave. When a new device tries to join a stack, the image version is checked. When this function is enabled, if the image version of the new device is different from that of the master, the image of the new device will be updated to be consistent with that of the master. When this function is disabled, the new device can not join the stack if the image version of the new device is different from that of the master. disabled: disable auto update function enabled: enable auto update function') hh3cStackMacPersistence = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notPersist", 1), ("persistForSixMin", 2), ("persistForever", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cStackMacPersistence.setStatus('current') if mibBuilder.loadTexts: hh3cStackMacPersistence.setDescription('The mode of bridge MAC address persistence. When a stack starts, the bridge MAC address of master board will be used as that of the stack. If the master board leaves the stack, the bridge MAC address of the stack will change based on the mode of bridge MAC address persistence. notPersist: The bridge MAC address of the new master board will be used as that of the stack immediately. persistForSixMin: The bridge MAC address will be reserved for six minutes. In this period, if the master board which has left the stack rejoins the stack, the bridge MAC address of the stack will not change. Otherwise, the bridge MAC address of the new master board will be used as that of the stack. persistForever: Whether the master leaves or not, the bridge MAC address of the stack will never change.') hh3cStackLinkDelayInterval = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(200, 2000), ))).setUnits('millisecond').setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cStackLinkDelayInterval.setStatus('current') if mibBuilder.loadTexts: hh3cStackLinkDelayInterval.setDescription('The delay time for a device in a stack to report the change of stack port link status. If the delay time is configured, a device in a stack will not report the change immediately when the stack port link status changes to down. During the delay period, if the stack port link status is resumed, the device will ignore the current change of the stack port link status. If the stack port link status is not resumed after the delay time, the device will report the change. 0 means no delay, namely, the device will report the change as soon as the stack port link status changes to down. 0: no delay 200-2000(ms): delay time') hh3cStackTopology = MibScalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("chainConn", 1), ("ringConn", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackTopology.setStatus('current') if mibBuilder.loadTexts: hh3cStackTopology.setDescription('The topology of the stack. chainConn: chain connection ringConn: ring connection') hh3cStackDeviceConfigTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2), ) if mibBuilder.loadTexts: hh3cStackDeviceConfigTable.setStatus('current') if mibBuilder.loadTexts: hh3cStackDeviceConfigTable.setDescription('This table contains objects to manage device information in a stack.') hh3cStackDeviceConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: hh3cStackDeviceConfigEntry.setStatus('current') if mibBuilder.loadTexts: hh3cStackDeviceConfigEntry.setDescription('This table contains objects to manage device information in a stack.') hh3cStackMemberID = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackMemberID.setStatus('current') if mibBuilder.loadTexts: hh3cStackMemberID.setDescription('The member ID of the device in a stack.') hh3cStackConfigMemberID = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 2), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cStackConfigMemberID.setStatus('current') if mibBuilder.loadTexts: hh3cStackConfigMemberID.setDescription('The configured member ID of the device. The valid value ranges from 1 to the value of hh3cStackMaxMember. After the member ID is configured for a device, if this ID is not the same with that of another device, the ID will be used as the member ID of the device when the device reboots. If a same ID exists, the member ID of the device will be set as another exclusive ID automatically.') hh3cStackPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cStackPriority.setStatus('current') if mibBuilder.loadTexts: hh3cStackPriority.setDescription('The priority of a device in a stack. The valid value ranges from 1 to the value of hh3cStackMaxConfigPriority.') hh3cStackPortNum = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackPortNum.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortNum.setDescription('The number of stack ports which is enabled in a device.') hh3cStackPortMaxNum = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackPortMaxNum.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortMaxNum.setDescription('The maximum number of stack ports in a device.') hh3cStackBoardConfigTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 91, 3), ) if mibBuilder.loadTexts: hh3cStackBoardConfigTable.setStatus('current') if mibBuilder.loadTexts: hh3cStackBoardConfigTable.setDescription('This table contains objects to manage board information of the device in a stack.') hh3cStackBoardConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 91, 3, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: hh3cStackBoardConfigEntry.setStatus('current') if mibBuilder.loadTexts: hh3cStackBoardConfigEntry.setDescription('This table contains objects to manage board information of the device in a stack.') hh3cStackBoardRole = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("slave", 1), ("master", 2), ("loading", 3), ("other", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackBoardRole.setStatus('current') if mibBuilder.loadTexts: hh3cStackBoardRole.setDescription('The role of the board in a stack. slave: slave board master: master board loading: slave board whose image version is different from that of the master board. other: other') hh3cStackBoardBelongtoMember = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackBoardBelongtoMember.setStatus('current') if mibBuilder.loadTexts: hh3cStackBoardBelongtoMember.setDescription('The member ID of the device where the current board resides in a stack.') hh3cStackPortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4), ) if mibBuilder.loadTexts: hh3cStackPortInfoTable.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortInfoTable.setDescription('This table contains objects to manage stack port information of a device in a stack.') hh3cStackPortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1), ).setIndexNames((0, "HH3C-STACK-MIB", "hh3cStackMemberID"), (0, "HH3C-STACK-MIB", "hh3cStackPortIndex")) if mibBuilder.loadTexts: hh3cStackPortInfoEntry.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortInfoEntry.setDescription('This table contains objects to manage stack port information of a device in a stack.') hh3cStackPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hh3cStackPortIndex.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortIndex.setDescription('The index of a stack port of the device in a stack.') hh3cStackPortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackPortEnable.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortEnable.setDescription("The status of the stack port of the device in a stack. If no physical port is added to the stack port, its status is 'disabled'; otherwise, its status is 'enabled'. disabled: The stack port is disabled. enabled: The stack port is enabled.") hh3cStackPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("silent", 3), ("disabled", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackPortStatus.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortStatus.setDescription('The link status of the stack port of the device in a stack. up: The link status of a stack port with reasonable physical connection is up. down: The link status of a stack port without physical connection is down. silent: The link status of a stack port which can not be used normally is silent. disabled: The link status of a stack port in disabled status is disabled.') hh3cStackNeighbor = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hh3cStackNeighbor.setStatus('current') if mibBuilder.loadTexts: hh3cStackNeighbor.setDescription("The member ID of the stack port's neighbor in a stack. 0 means no neighbor exists.") hh3cStackPhyPortInfoTable = MibTable((1, 3, 6, 1, 4, 1, 25506, 2, 91, 5), ) if mibBuilder.loadTexts: hh3cStackPhyPortInfoTable.setStatus('current') if mibBuilder.loadTexts: hh3cStackPhyPortInfoTable.setDescription('This table contains objects to manage the information for physical ports which can be used for physical connection of stack port in a stack.') hh3cStackPhyPortInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 25506, 2, 91, 5, 1), ).setIndexNames((0, "ENTITY-MIB", "entPhysicalIndex")) if mibBuilder.loadTexts: hh3cStackPhyPortInfoEntry.setStatus('current') if mibBuilder.loadTexts: hh3cStackPhyPortInfoEntry.setDescription('This table contains objects to manage the information for physical ports which can be used for physical connection of stack port in a stack.') hh3cStackBelongtoPort = MibTableColumn((1, 3, 6, 1, 4, 1, 25506, 2, 91, 5, 1, 1), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hh3cStackBelongtoPort.setStatus('current') if mibBuilder.loadTexts: hh3cStackBelongtoPort.setDescription('The index of the stack port to which the physical port is added. 0 means the physical port is not added to any stack port. The value will be valid after the device in the stack reboots.') hh3cStackTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 91, 6)) hh3cStackTrapOjbects = MibIdentifier((1, 3, 6, 1, 4, 1, 25506, 2, 91, 6, 0)) hh3cStackPortLinkStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 91, 6, 0, 1)).setObjects(("HH3C-STACK-MIB", "hh3cStackMemberID"), ("HH3C-STACK-MIB", "hh3cStackPortIndex"), ("HH3C-STACK-MIB", "hh3cStackPortStatus")) if mibBuilder.loadTexts: hh3cStackPortLinkStatusChange.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortLinkStatusChange.setDescription('The hh3cStackPortLinkStatusChange trap indicates that the link status of the stack port has changed.') hh3cStackTopologyChange = NotificationType((1, 3, 6, 1, 4, 1, 25506, 2, 91, 6, 0, 2)).setObjects(("HH3C-STACK-MIB", "hh3cStackTopology")) if mibBuilder.loadTexts: hh3cStackTopologyChange.setStatus('current') if mibBuilder.loadTexts: hh3cStackTopologyChange.setDescription('The hh3cStackTopologyChange trap indicates that the topology type of the stack has changed.') mibBuilder.exportSymbols("HH3C-STACK-MIB", hh3cStackTopology=hh3cStackTopology, hh3cStackConfigMemberID=hh3cStackConfigMemberID, hh3cStackBelongtoPort=hh3cStackBelongtoPort, hh3cStackTopologyChange=hh3cStackTopologyChange, hh3cStackMacPersistence=hh3cStackMacPersistence, hh3cStackGlobalConfig=hh3cStackGlobalConfig, hh3cStackPortIndex=hh3cStackPortIndex, hh3cStackPriority=hh3cStackPriority, hh3cStackPhyPortInfoTable=hh3cStackPhyPortInfoTable, hh3cStackTrap=hh3cStackTrap, hh3cStackPortMaxNum=hh3cStackPortMaxNum, hh3cStackLinkDelayInterval=hh3cStackLinkDelayInterval, hh3cStackMemberNum=hh3cStackMemberNum, hh3cStackPortEnable=hh3cStackPortEnable, hh3cStackMaxMember=hh3cStackMaxMember, hh3cStackDeviceConfigEntry=hh3cStackDeviceConfigEntry, hh3cStackMemberID=hh3cStackMemberID, hh3cStackBoardConfigEntry=hh3cStackBoardConfigEntry, hh3cStackPhyPortInfoEntry=hh3cStackPhyPortInfoEntry, hh3cStackPortStatus=hh3cStackPortStatus, PYSNMP_MODULE_ID=hh3cStack, hh3cStackBoardConfigTable=hh3cStackBoardConfigTable, hh3cStackPortNum=hh3cStackPortNum, hh3cStackNeighbor=hh3cStackNeighbor, hh3cStackBoardBelongtoMember=hh3cStackBoardBelongtoMember, hh3cStack=hh3cStack, hh3cStackBoardRole=hh3cStackBoardRole, hh3cStackDeviceConfigTable=hh3cStackDeviceConfigTable, hh3cStackPortInfoEntry=hh3cStackPortInfoEntry, hh3cStackAutoUpdate=hh3cStackAutoUpdate, hh3cStackTrapOjbects=hh3cStackTrapOjbects, hh3cStackPortLinkStatusChange=hh3cStackPortLinkStatusChange, hh3cStackPortInfoTable=hh3cStackPortInfoTable, hh3cStackMaxConfigPriority=hh3cStackMaxConfigPriority)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_range_constraint, constraints_intersection, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint') (ent_physical_index,) = mibBuilder.importSymbols('ENTITY-MIB', 'entPhysicalIndex') (hh3c_common,) = mibBuilder.importSymbols('HH3C-OID-MIB', 'hh3cCommon') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (counter32, module_identity, bits, gauge32, time_ticks, ip_address, object_identity, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, unsigned32, mib_identifier, integer32, notification_type, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'ModuleIdentity', 'Bits', 'Gauge32', 'TimeTicks', 'IpAddress', 'ObjectIdentity', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Unsigned32', 'MibIdentifier', 'Integer32', 'NotificationType', 'iso') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') hh3c_stack = module_identity((1, 3, 6, 1, 4, 1, 25506, 2, 91)) hh3cStack.setRevisions(('2008-04-30 16:50',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hh3cStack.setRevisionsDescriptions(('The initial revision of this MIB module.',)) if mibBuilder.loadTexts: hh3cStack.setLastUpdated('200804301650Z') if mibBuilder.loadTexts: hh3cStack.setOrganization('Hangzhou H3C Technologies Co., Ltd.') if mibBuilder.loadTexts: hh3cStack.setContactInfo('Platform Team H3C Technologies Co., Ltd. Hai-Dian District Beijing P.R. China Http://www.h3c.com Zip:100085') if mibBuilder.loadTexts: hh3cStack.setDescription('This MIB is used to manage STM (Stack Topology Management) information for IRF (Intelligent Resilient Framework) device. This MIB is applicable to products which support IRF. Some objects in this MIB may be used only for some specific products, so users should refer to the related documents to acquire more detailed information.') hh3c_stack_global_config = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1)) hh3c_stack_max_member = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackMaxMember.setStatus('current') if mibBuilder.loadTexts: hh3cStackMaxMember.setDescription('The maximum number of members in a stack.') hh3c_stack_member_num = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackMemberNum.setStatus('current') if mibBuilder.loadTexts: hh3cStackMemberNum.setDescription('The number of members currently in a stack.') hh3c_stack_max_config_priority = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackMaxConfigPriority.setStatus('current') if mibBuilder.loadTexts: hh3cStackMaxConfigPriority.setDescription('The highest priority that can be configured for a member in a stack.') hh3c_stack_auto_update = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cStackAutoUpdate.setStatus('current') if mibBuilder.loadTexts: hh3cStackAutoUpdate.setDescription('The function for automatically updating the image from master to slave. When a new device tries to join a stack, the image version is checked. When this function is enabled, if the image version of the new device is different from that of the master, the image of the new device will be updated to be consistent with that of the master. When this function is disabled, the new device can not join the stack if the image version of the new device is different from that of the master. disabled: disable auto update function enabled: enable auto update function') hh3c_stack_mac_persistence = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notPersist', 1), ('persistForSixMin', 2), ('persistForever', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cStackMacPersistence.setStatus('current') if mibBuilder.loadTexts: hh3cStackMacPersistence.setDescription('The mode of bridge MAC address persistence. When a stack starts, the bridge MAC address of master board will be used as that of the stack. If the master board leaves the stack, the bridge MAC address of the stack will change based on the mode of bridge MAC address persistence. notPersist: The bridge MAC address of the new master board will be used as that of the stack immediately. persistForSixMin: The bridge MAC address will be reserved for six minutes. In this period, if the master board which has left the stack rejoins the stack, the bridge MAC address of the stack will not change. Otherwise, the bridge MAC address of the new master board will be used as that of the stack. persistForever: Whether the master leaves or not, the bridge MAC address of the stack will never change.') hh3c_stack_link_delay_interval = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 6), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(200, 2000)))).setUnits('millisecond').setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cStackLinkDelayInterval.setStatus('current') if mibBuilder.loadTexts: hh3cStackLinkDelayInterval.setDescription('The delay time for a device in a stack to report the change of stack port link status. If the delay time is configured, a device in a stack will not report the change immediately when the stack port link status changes to down. During the delay period, if the stack port link status is resumed, the device will ignore the current change of the stack port link status. If the stack port link status is not resumed after the delay time, the device will report the change. 0 means no delay, namely, the device will report the change as soon as the stack port link status changes to down. 0: no delay 200-2000(ms): delay time') hh3c_stack_topology = mib_scalar((1, 3, 6, 1, 4, 1, 25506, 2, 91, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('chainConn', 1), ('ringConn', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackTopology.setStatus('current') if mibBuilder.loadTexts: hh3cStackTopology.setDescription('The topology of the stack. chainConn: chain connection ringConn: ring connection') hh3c_stack_device_config_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2)) if mibBuilder.loadTexts: hh3cStackDeviceConfigTable.setStatus('current') if mibBuilder.loadTexts: hh3cStackDeviceConfigTable.setDescription('This table contains objects to manage device information in a stack.') hh3c_stack_device_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: hh3cStackDeviceConfigEntry.setStatus('current') if mibBuilder.loadTexts: hh3cStackDeviceConfigEntry.setDescription('This table contains objects to manage device information in a stack.') hh3c_stack_member_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackMemberID.setStatus('current') if mibBuilder.loadTexts: hh3cStackMemberID.setDescription('The member ID of the device in a stack.') hh3c_stack_config_member_id = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 2), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cStackConfigMemberID.setStatus('current') if mibBuilder.loadTexts: hh3cStackConfigMemberID.setDescription('The configured member ID of the device. The valid value ranges from 1 to the value of hh3cStackMaxMember. After the member ID is configured for a device, if this ID is not the same with that of another device, the ID will be used as the member ID of the device when the device reboots. If a same ID exists, the member ID of the device will be set as another exclusive ID automatically.') hh3c_stack_priority = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cStackPriority.setStatus('current') if mibBuilder.loadTexts: hh3cStackPriority.setDescription('The priority of a device in a stack. The valid value ranges from 1 to the value of hh3cStackMaxConfigPriority.') hh3c_stack_port_num = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackPortNum.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortNum.setDescription('The number of stack ports which is enabled in a device.') hh3c_stack_port_max_num = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackPortMaxNum.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortMaxNum.setDescription('The maximum number of stack ports in a device.') hh3c_stack_board_config_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 91, 3)) if mibBuilder.loadTexts: hh3cStackBoardConfigTable.setStatus('current') if mibBuilder.loadTexts: hh3cStackBoardConfigTable.setDescription('This table contains objects to manage board information of the device in a stack.') hh3c_stack_board_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 91, 3, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: hh3cStackBoardConfigEntry.setStatus('current') if mibBuilder.loadTexts: hh3cStackBoardConfigEntry.setDescription('This table contains objects to manage board information of the device in a stack.') hh3c_stack_board_role = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('slave', 1), ('master', 2), ('loading', 3), ('other', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackBoardRole.setStatus('current') if mibBuilder.loadTexts: hh3cStackBoardRole.setDescription('The role of the board in a stack. slave: slave board master: master board loading: slave board whose image version is different from that of the master board. other: other') hh3c_stack_board_belongto_member = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackBoardBelongtoMember.setStatus('current') if mibBuilder.loadTexts: hh3cStackBoardBelongtoMember.setDescription('The member ID of the device where the current board resides in a stack.') hh3c_stack_port_info_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4)) if mibBuilder.loadTexts: hh3cStackPortInfoTable.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortInfoTable.setDescription('This table contains objects to manage stack port information of a device in a stack.') hh3c_stack_port_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1)).setIndexNames((0, 'HH3C-STACK-MIB', 'hh3cStackMemberID'), (0, 'HH3C-STACK-MIB', 'hh3cStackPortIndex')) if mibBuilder.loadTexts: hh3cStackPortInfoEntry.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortInfoEntry.setDescription('This table contains objects to manage stack port information of a device in a stack.') hh3c_stack_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1, 1), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hh3cStackPortIndex.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortIndex.setDescription('The index of a stack port of the device in a stack.') hh3c_stack_port_enable = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackPortEnable.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortEnable.setDescription("The status of the stack port of the device in a stack. If no physical port is added to the stack port, its status is 'disabled'; otherwise, its status is 'enabled'. disabled: The stack port is disabled. enabled: The stack port is enabled.") hh3c_stack_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('silent', 3), ('disabled', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackPortStatus.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortStatus.setDescription('The link status of the stack port of the device in a stack. up: The link status of a stack port with reasonable physical connection is up. down: The link status of a stack port without physical connection is down. silent: The link status of a stack port which can not be used normally is silent. disabled: The link status of a stack port in disabled status is disabled.') hh3c_stack_neighbor = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 4, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hh3cStackNeighbor.setStatus('current') if mibBuilder.loadTexts: hh3cStackNeighbor.setDescription("The member ID of the stack port's neighbor in a stack. 0 means no neighbor exists.") hh3c_stack_phy_port_info_table = mib_table((1, 3, 6, 1, 4, 1, 25506, 2, 91, 5)) if mibBuilder.loadTexts: hh3cStackPhyPortInfoTable.setStatus('current') if mibBuilder.loadTexts: hh3cStackPhyPortInfoTable.setDescription('This table contains objects to manage the information for physical ports which can be used for physical connection of stack port in a stack.') hh3c_stack_phy_port_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 25506, 2, 91, 5, 1)).setIndexNames((0, 'ENTITY-MIB', 'entPhysicalIndex')) if mibBuilder.loadTexts: hh3cStackPhyPortInfoEntry.setStatus('current') if mibBuilder.loadTexts: hh3cStackPhyPortInfoEntry.setDescription('This table contains objects to manage the information for physical ports which can be used for physical connection of stack port in a stack.') hh3c_stack_belongto_port = mib_table_column((1, 3, 6, 1, 4, 1, 25506, 2, 91, 5, 1, 1), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hh3cStackBelongtoPort.setStatus('current') if mibBuilder.loadTexts: hh3cStackBelongtoPort.setDescription('The index of the stack port to which the physical port is added. 0 means the physical port is not added to any stack port. The value will be valid after the device in the stack reboots.') hh3c_stack_trap = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 91, 6)) hh3c_stack_trap_ojbects = mib_identifier((1, 3, 6, 1, 4, 1, 25506, 2, 91, 6, 0)) hh3c_stack_port_link_status_change = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 91, 6, 0, 1)).setObjects(('HH3C-STACK-MIB', 'hh3cStackMemberID'), ('HH3C-STACK-MIB', 'hh3cStackPortIndex'), ('HH3C-STACK-MIB', 'hh3cStackPortStatus')) if mibBuilder.loadTexts: hh3cStackPortLinkStatusChange.setStatus('current') if mibBuilder.loadTexts: hh3cStackPortLinkStatusChange.setDescription('The hh3cStackPortLinkStatusChange trap indicates that the link status of the stack port has changed.') hh3c_stack_topology_change = notification_type((1, 3, 6, 1, 4, 1, 25506, 2, 91, 6, 0, 2)).setObjects(('HH3C-STACK-MIB', 'hh3cStackTopology')) if mibBuilder.loadTexts: hh3cStackTopologyChange.setStatus('current') if mibBuilder.loadTexts: hh3cStackTopologyChange.setDescription('The hh3cStackTopologyChange trap indicates that the topology type of the stack has changed.') mibBuilder.exportSymbols('HH3C-STACK-MIB', hh3cStackTopology=hh3cStackTopology, hh3cStackConfigMemberID=hh3cStackConfigMemberID, hh3cStackBelongtoPort=hh3cStackBelongtoPort, hh3cStackTopologyChange=hh3cStackTopologyChange, hh3cStackMacPersistence=hh3cStackMacPersistence, hh3cStackGlobalConfig=hh3cStackGlobalConfig, hh3cStackPortIndex=hh3cStackPortIndex, hh3cStackPriority=hh3cStackPriority, hh3cStackPhyPortInfoTable=hh3cStackPhyPortInfoTable, hh3cStackTrap=hh3cStackTrap, hh3cStackPortMaxNum=hh3cStackPortMaxNum, hh3cStackLinkDelayInterval=hh3cStackLinkDelayInterval, hh3cStackMemberNum=hh3cStackMemberNum, hh3cStackPortEnable=hh3cStackPortEnable, hh3cStackMaxMember=hh3cStackMaxMember, hh3cStackDeviceConfigEntry=hh3cStackDeviceConfigEntry, hh3cStackMemberID=hh3cStackMemberID, hh3cStackBoardConfigEntry=hh3cStackBoardConfigEntry, hh3cStackPhyPortInfoEntry=hh3cStackPhyPortInfoEntry, hh3cStackPortStatus=hh3cStackPortStatus, PYSNMP_MODULE_ID=hh3cStack, hh3cStackBoardConfigTable=hh3cStackBoardConfigTable, hh3cStackPortNum=hh3cStackPortNum, hh3cStackNeighbor=hh3cStackNeighbor, hh3cStackBoardBelongtoMember=hh3cStackBoardBelongtoMember, hh3cStack=hh3cStack, hh3cStackBoardRole=hh3cStackBoardRole, hh3cStackDeviceConfigTable=hh3cStackDeviceConfigTable, hh3cStackPortInfoEntry=hh3cStackPortInfoEntry, hh3cStackAutoUpdate=hh3cStackAutoUpdate, hh3cStackTrapOjbects=hh3cStackTrapOjbects, hh3cStackPortLinkStatusChange=hh3cStackPortLinkStatusChange, hh3cStackPortInfoTable=hh3cStackPortInfoTable, hh3cStackMaxConfigPriority=hh3cStackMaxConfigPriority)
l1=[1,2,3,4,5,6,7,8,9,10] l2=list(map(lambda n:n*n,l1)) print('l2:',l2) l3=list((map(lambda n,m:n*m,l1,l2)))#map function can take more than one sequence argument print('l3:',l3) #if the length of the sequence is not equal then function will perform till same length l3.pop() print('popped l3:',l3) l4=list(map(lambda n,m,o:n+m+o,l1,l2,l3)) print('l4:',l4)
l1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] l2 = list(map(lambda n: n * n, l1)) print('l2:', l2) l3 = list(map(lambda n, m: n * m, l1, l2)) print('l3:', l3) l3.pop() print('popped l3:', l3) l4 = list(map(lambda n, m, o: n + m + o, l1, l2, l3)) print('l4:', l4)
{ 'targets': [ { 'target_name': 'gpiobcm2835nodejs', 'sources': [ 'src/gpiobcm2835nodejs.cc' ], "cflags" : [ "-lrt -lbcm2835" ], 'conditions': [ ['OS=="linux"', { 'cflags!': [ '-lrt -lbcm2835', ], }], ], 'include_dirs': [ 'src/gpio_functions', ], 'libraries': [ '-lbcm2835' ] } ] }
{'targets': [{'target_name': 'gpiobcm2835nodejs', 'sources': ['src/gpiobcm2835nodejs.cc'], 'cflags': ['-lrt -lbcm2835'], 'conditions': [['OS=="linux"', {'cflags!': ['-lrt -lbcm2835']}]], 'include_dirs': ['src/gpio_functions'], 'libraries': ['-lbcm2835']}]}
class SpekulatioError(Exception): pass class FrontmatterError(SpekulatioError): pass
class Spekulatioerror(Exception): pass class Frontmattererror(SpekulatioError): pass
class Sql: make_itemdb = ''' CREATE TABLE IF NOT EXISTS ITEMDB ( ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT, PRICE REAL, REGDATE TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) ''' insert_itemdb = ''' INSERT INTO ITEMDB (NAME, PRICE) VALUES (?,?) ''' update_itemdb = ''' UPDATE ITEMDB SET NAME = ?, PRICE = ?, WHERE ID = ?''' delete_itemdb = ''' DELET FROM ITEMDB WHERE ID = ? ''' select_itemdb = ''' SELECT * FROM ITEMDB WHERE ID = ? ''' selectall_itemdb = ''' SELECT * FROM ITEMDB '''
class Sql: make_itemdb = '\n CREATE TABLE IF NOT EXISTS ITEMDB (\n ID INTEGER PRIMARY KEY AUTOINCREMENT,\n NAME TEXT,\n PRICE REAL,\n REGDATE TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n )\n ' insert_itemdb = '\n INSERT INTO ITEMDB (NAME, PRICE) VALUES (?,?)\n ' update_itemdb = '\n UPDATE ITEMDB SET NAME = ?, PRICE = ?, WHERE ID = ?' delete_itemdb = '\n DELET FROM ITEMDB WHERE ID = ?\n ' select_itemdb = '\n SELECT * FROM ITEMDB WHERE ID = ?\n ' selectall_itemdb = '\n SELECT * FROM ITEMDB\n '
def getbounds(img): return tuple([min((si[i] for si in img)) for i in range(2)]), \ tuple([max((si[i] for si in img)) for i in range(2)]) def enhance(img, setval, algo): bounds = getbounds(img) offsets = ((1, 1), (0, 1), (-1, 1), (1, 0), (0, 0), (-1, 0), (1, -1), (0, -1), (-1, -1)) overhang = 2 n_imgset = set() for x in range(bounds[0][0] - overhang, bounds[1][0] + overhang): for y in range(bounds[0][1] - overhang, bounds[1][1] + overhang): idx = sum([(((x + ox, y + oy) in img) == setval) * 2 ** p for p, (ox, oy) in enumerate(offsets)]) if (algo[idx] != setval) == algo[0]: n_imgset.add((x, y)) if algo[0]: setval = not setval return n_imgset, setval def main(input_file='input.txt', verbose=False): algo_raw, img_raw = open(input_file).read().split('\n\n') algo, img_raw = tuple(c == '#' for c in algo_raw), img_raw.split('\n') img = set([(x, y) for x in range(len(img_raw[0])) for y in range(len(img_raw)) if img_raw[y][x] == '#']) setval = True for step in range(50): img, setval = enhance(img, setval, algo) if step == 1: p1 = len(img) p2 = len(img) if verbose: print('Part 1: {0[0]}\nPart 2: {0[1]}'.format([p1, p2])) return p1, p2 if __name__ == "__main__": main(verbose=True)
def getbounds(img): return (tuple([min((si[i] for si in img)) for i in range(2)]), tuple([max((si[i] for si in img)) for i in range(2)])) def enhance(img, setval, algo): bounds = getbounds(img) offsets = ((1, 1), (0, 1), (-1, 1), (1, 0), (0, 0), (-1, 0), (1, -1), (0, -1), (-1, -1)) overhang = 2 n_imgset = set() for x in range(bounds[0][0] - overhang, bounds[1][0] + overhang): for y in range(bounds[0][1] - overhang, bounds[1][1] + overhang): idx = sum([(((x + ox, y + oy) in img) == setval) * 2 ** p for (p, (ox, oy)) in enumerate(offsets)]) if (algo[idx] != setval) == algo[0]: n_imgset.add((x, y)) if algo[0]: setval = not setval return (n_imgset, setval) def main(input_file='input.txt', verbose=False): (algo_raw, img_raw) = open(input_file).read().split('\n\n') (algo, img_raw) = (tuple((c == '#' for c in algo_raw)), img_raw.split('\n')) img = set([(x, y) for x in range(len(img_raw[0])) for y in range(len(img_raw)) if img_raw[y][x] == '#']) setval = True for step in range(50): (img, setval) = enhance(img, setval, algo) if step == 1: p1 = len(img) p2 = len(img) if verbose: print('Part 1: {0[0]}\nPart 2: {0[1]}'.format([p1, p2])) return (p1, p2) if __name__ == '__main__': main(verbose=True)
class TrieNode: def __init__(self): self.children = collections.defaultdict(TrieNode) self.is_word = False class Solution: def findWords(self, board: List[List[str]], words: List[str]) -> List[str]: root = TrieNode() for word in words: cur = root for ch in word: cur = cur.children[ch] cur.is_word = True ans = [] def dfs(cur, path, i, j): if cur.is_word: ans.append(path) cur.is_word = False if i < 0 or i >= len(board) or j < 0 or j >= len(board[0]) or board[i][j] == '#' or cur.children.get(board[i][j]) == None: return ch = board[i][j] board[i][j] = '#' new_cur = cur.children[ch] dfs(new_cur, path + ch, i - 1, j) dfs(new_cur, path + ch, i + 1, j) dfs(new_cur, path + ch, i, j - 1) dfs(new_cur, path + ch, i, j + 1) board[i][j] = ch for i in range(len(board)): for j in range(len(board[0])): dfs(root, "", i, j) return ans
class Trienode: def __init__(self): self.children = collections.defaultdict(TrieNode) self.is_word = False class Solution: def find_words(self, board: List[List[str]], words: List[str]) -> List[str]: root = trie_node() for word in words: cur = root for ch in word: cur = cur.children[ch] cur.is_word = True ans = [] def dfs(cur, path, i, j): if cur.is_word: ans.append(path) cur.is_word = False if i < 0 or i >= len(board) or j < 0 or (j >= len(board[0])) or (board[i][j] == '#') or (cur.children.get(board[i][j]) == None): return ch = board[i][j] board[i][j] = '#' new_cur = cur.children[ch] dfs(new_cur, path + ch, i - 1, j) dfs(new_cur, path + ch, i + 1, j) dfs(new_cur, path + ch, i, j - 1) dfs(new_cur, path + ch, i, j + 1) board[i][j] = ch for i in range(len(board)): for j in range(len(board[0])): dfs(root, '', i, j) return ans
def rotate(matrix): #code here for i in range(len(matrix)): listt = list(reversed(matrix[i])) for j in range(len(matrix[i])): matrix[i][j] = listt[j] # print(matrix) for i in range(len(matrix)): for j in range(i, len(matrix[i])): matrix[i][j], matrix[j][i] = matrix[j][i], matrix[i][j] #{ # Driver Code Starts #Initial Template for Python 3 if __name__ == '__main__': t = int(input()) for _ in range(t): N = int(input()) arr = [int(x) for x in input().split()] matrix = [] for i in range(0, N*N, N): matrix.append(arr[i:i+N]) rotate(matrix) for i in range(N): for j in range(N): print(matrix[i][j], end=' ') print() # } Driver Code Ends
def rotate(matrix): for i in range(len(matrix)): listt = list(reversed(matrix[i])) for j in range(len(matrix[i])): matrix[i][j] = listt[j] for i in range(len(matrix)): for j in range(i, len(matrix[i])): (matrix[i][j], matrix[j][i]) = (matrix[j][i], matrix[i][j]) if __name__ == '__main__': t = int(input()) for _ in range(t): n = int(input()) arr = [int(x) for x in input().split()] matrix = [] for i in range(0, N * N, N): matrix.append(arr[i:i + N]) rotate(matrix) for i in range(N): for j in range(N): print(matrix[i][j], end=' ') print()
# Like list we can have set and dict comprehensions. # Set comprehensions. # The below set is not ordered. square_set = {num * num for num in range(11)} print(square_set) # Dict Comprehension dict_square = {num: num * num for num in range(11)} print(dict_square) # Use f"string to create a set and dict f_string_square_set = {f"The square of {num} is {num * num}" for num in range(5)} for x in f_string_square_set: print(x) f_string_square_dict = {num: f"the square is {num*num}" for num in range(5)} for k, v in f_string_square_dict.items(): print(k, ":", v)
square_set = {num * num for num in range(11)} print(square_set) dict_square = {num: num * num for num in range(11)} print(dict_square) f_string_square_set = {f'The square of {num} is {num * num}' for num in range(5)} for x in f_string_square_set: print(x) f_string_square_dict = {num: f'the square is {num * num}' for num in range(5)} for (k, v) in f_string_square_dict.items(): print(k, ':', v)
#ANSI Foreground colors black = u"\u001b[30m" red = u"\u001b[31m" green = u"\u001b[32m" yellow = u"\u001b[33m" blue = u"\u001b[34m" magneta = u"\u001b[35m" magenta = magneta cyan = u"\u001b[36m" white = u"\u001b[37m" #ANSI Background colors blackB = u"\u001b[40m" redB = u"\u001b[41m" greenB = u"\u001b[42m" yellowB = u"\u001b[43m" blueB = u"\u001b[44m" magnetaB = u"\u001b[45m" magentaB = magnetaB cyanB = u"\u001b[46m" whiteB = u"\u001b[47m" #ANSI reset "color" reset = u"\u001b[0m" #Unused utility function def printColored(colorA, msg): print(colorA + msg + reset) def ansi(num, end = "m"): return u"\u001b[" + str(num) + str(end) if(__name__ == "__main__"): for j in range(30, 38): print(ansi(j) + str(j) + reset)
black = u'\x1b[30m' red = u'\x1b[31m' green = u'\x1b[32m' yellow = u'\x1b[33m' blue = u'\x1b[34m' magneta = u'\x1b[35m' magenta = magneta cyan = u'\x1b[36m' white = u'\x1b[37m' black_b = u'\x1b[40m' red_b = u'\x1b[41m' green_b = u'\x1b[42m' yellow_b = u'\x1b[43m' blue_b = u'\x1b[44m' magneta_b = u'\x1b[45m' magenta_b = magnetaB cyan_b = u'\x1b[46m' white_b = u'\x1b[47m' reset = u'\x1b[0m' def print_colored(colorA, msg): print(colorA + msg + reset) def ansi(num, end='m'): return u'\x1b[' + str(num) + str(end) if __name__ == '__main__': for j in range(30, 38): print(ansi(j) + str(j) + reset)
athlete_1 = int(input()) athlete_2 = int(input()) athlete_3 = int(input()) podium = [] if (athlete_1 < athlete_2 and athlete_1 < athlete_3): podium.append(1) if(athlete_2 < athlete_3): podium.append(2) podium.append(3) else: podium.append(3) podium.append(2) elif (athlete_2 < athlete_1 and athlete_2 < athlete_3): podium.append(2) if(athlete_1 < athlete_3): podium.append(1) podium.append(3) else: podium.append(3) podium.append(1) elif (athlete_3 < athlete_1 and athlete_3 < athlete_2): podium.append(3) if(athlete_1 < athlete_2): podium.append(1) podium.append(2) else: podium.append(2) podium.append(1) print(podium[0]) print(podium[1]) print(podium[3])
athlete_1 = int(input()) athlete_2 = int(input()) athlete_3 = int(input()) podium = [] if athlete_1 < athlete_2 and athlete_1 < athlete_3: podium.append(1) if athlete_2 < athlete_3: podium.append(2) podium.append(3) else: podium.append(3) podium.append(2) elif athlete_2 < athlete_1 and athlete_2 < athlete_3: podium.append(2) if athlete_1 < athlete_3: podium.append(1) podium.append(3) else: podium.append(3) podium.append(1) elif athlete_3 < athlete_1 and athlete_3 < athlete_2: podium.append(3) if athlete_1 < athlete_2: podium.append(1) podium.append(2) else: podium.append(2) podium.append(1) print(podium[0]) print(podium[1]) print(podium[3])
Number = int(input("\nPlease Enter the Range Number: ")) First_Value = 0 Second_Value = 1 for Num in range(0, Number): if (Num <= 1): Next = Num else: Next = First_Value + Second_Value First_Value = Second_Value Second_Value = Next print(Next)
number = int(input('\nPlease Enter the Range Number: ')) first__value = 0 second__value = 1 for num in range(0, Number): if Num <= 1: next = Num else: next = First_Value + Second_Value first__value = Second_Value second__value = Next print(Next)
def Spell_0_10(n): refTuple = ("zero","one","two","three","four","five", "six","seven","eight","nine","ten") return refTuple[n] print(1, " is spelt as ", Spell_0_10(1)) for i in range(11): print("{} is spelt as {}".format(i,Spell_0_10(i))) for i in range (-9,0,1): print("{} is spelt as {}".format(i, Spell_0_10(i)))
def spell_0_10(n): ref_tuple = ('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten') return refTuple[n] print(1, ' is spelt as ', spell_0_10(1)) for i in range(11): print('{} is spelt as {}'.format(i, spell_0_10(i))) for i in range(-9, 0, 1): print('{} is spelt as {}'.format(i, spell_0_10(i)))
#Plugin to handle dialogues for men and women #Written by Owain for Runefate #31/01/18 #I want to give every spawned NPC a use, and not do what most servers have with useless non functioning NPCs. #Even small things such as NPC dialogues can help make Runefate more rounded and enjoyable. npc_ids = [3078, 3079] dialogue_ids = [7502, 7504, 7506, 7508] def first_click_npc_3078(player): player.getDH().sendDialogues(7500) def chat_7500(player): player.getDH().sendPlayerChat("Hi there.", 591) dialogue = random.choice(dialogue_ids) player.nextDialogue = dialogue; def chat_7502(player): player.getDH().sendNpcChat("Hello, lovely day today isn't it?", 589) def chat_7504(player): player.getDH().sendNpcChat("Can't stop, I'm rather busy.", 589) def chat_7506(player): player.getDH().sendNpcChat("Hey! How are you today?", 589) player.nextDialogue = 7507; def chat_7507(player): player.getDH().sendPlayerChat("I'm great thanks.", 591) def chat_7508(player): player.getDH().sendNpcChat("*Cough* *Splutter*", 589) player.nextDialogue = 7509; def chat_7509(player): player.getDH().sendPlayerChat("Oh dear, I think that might be contagious...", 591)
npc_ids = [3078, 3079] dialogue_ids = [7502, 7504, 7506, 7508] def first_click_npc_3078(player): player.getDH().sendDialogues(7500) def chat_7500(player): player.getDH().sendPlayerChat('Hi there.', 591) dialogue = random.choice(dialogue_ids) player.nextDialogue = dialogue def chat_7502(player): player.getDH().sendNpcChat("Hello, lovely day today isn't it?", 589) def chat_7504(player): player.getDH().sendNpcChat("Can't stop, I'm rather busy.", 589) def chat_7506(player): player.getDH().sendNpcChat('Hey! How are you today?', 589) player.nextDialogue = 7507 def chat_7507(player): player.getDH().sendPlayerChat("I'm great thanks.", 591) def chat_7508(player): player.getDH().sendNpcChat('*Cough* *Splutter*', 589) player.nextDialogue = 7509 def chat_7509(player): player.getDH().sendPlayerChat('Oh dear, I think that might be contagious...', 591)
class ReferenceDummy(): def __init__(self, *args): return def _to_dict(self, *args): return "dummy"
class Referencedummy: def __init__(self, *args): return def _to_dict(self, *args): return 'dummy'
# #1 # def make_negative( number ): # return number if number < 0 else - number # #2 def make_negative( number ): return -abs(number)
def make_negative(number): return -abs(number)
# This class parses a gtfs text file class Reader: def __init__(self, file): self.fields = [] self.fp = open(file, "r") self.fields.extend(self.fp.readline().rstrip().split(",")) def get_line(self): data = {} line = self.fp.readline().rstrip().split(",") for el, field in zip (line, self.fields): data[field] = el if len(data) == 1: return None else: return data def end(self): self.fp.close()
class Reader: def __init__(self, file): self.fields = [] self.fp = open(file, 'r') self.fields.extend(self.fp.readline().rstrip().split(',')) def get_line(self): data = {} line = self.fp.readline().rstrip().split(',') for (el, field) in zip(line, self.fields): data[field] = el if len(data) == 1: return None else: return data def end(self): self.fp.close()
# Cajones es una aplicacion que calcula el listado de partes # de una cajonera # unidad de medida en mm # constantes hol_lado = 13 # variables h = 900 a = 600 prof_c = 400 h_c = 120 a_c = 200 hol_sup = 20 hol_inf = 10 hol_int = 40 hol_lateral = 2 esp_lado = 18 esp_sup = 18 esp_inf = 18 esp_c = 15 cubre_der_total = True cubre_iz_total = True def calcular_lado_cajon(prof_c, esp_c): lado_cajon = prof_c - 2 * esp_c return lado_cajon def calcular_a_c(cubre_iz_total, cubre_der_total, esp_lado, hol_lado, hol_lateral, a): if cubre_der_total: espesor_derecho = esp_lado else: espesor_derecho = esp_lado / 2 - hol_lateral if cubre_iz_total: espesor_izquierdo = esp_lado else: espesor_izquierdo = esp_lado / 2 - hol_lateral ancho_cajon = a - espesor_izquierdo - espesor_derecho - 2 * hol_lateral return ancho_cajon def calcular_h_c(h, esp_sup, esp_inf, hol_sup, hol_int, hol_inf): suma_holhura = hol_sup + hol_int + hol_inf suma_espesor = esp_sup + esp_inf espacio_cajones = h - suma_espesor - suma_holhura altura_cajon = espacio_cajones / 3 return altura_cajon h_c = calcular_h_c(h, esp_sup, esp_inf, hol_sup, hol_int, hol_inf) a_c = calcular_a_c(cubre_iz_total, cubre_der_total, esp_lado, hol_lado, hol_lateral, a) l_c = calcular_lado_cajon(prof_c, esp_c) print("frente cajon: ", a_c, " X ", round(h_c)) print("lado cajon: ", l_c, " X ", round(h_c))
hol_lado = 13 h = 900 a = 600 prof_c = 400 h_c = 120 a_c = 200 hol_sup = 20 hol_inf = 10 hol_int = 40 hol_lateral = 2 esp_lado = 18 esp_sup = 18 esp_inf = 18 esp_c = 15 cubre_der_total = True cubre_iz_total = True def calcular_lado_cajon(prof_c, esp_c): lado_cajon = prof_c - 2 * esp_c return lado_cajon def calcular_a_c(cubre_iz_total, cubre_der_total, esp_lado, hol_lado, hol_lateral, a): if cubre_der_total: espesor_derecho = esp_lado else: espesor_derecho = esp_lado / 2 - hol_lateral if cubre_iz_total: espesor_izquierdo = esp_lado else: espesor_izquierdo = esp_lado / 2 - hol_lateral ancho_cajon = a - espesor_izquierdo - espesor_derecho - 2 * hol_lateral return ancho_cajon def calcular_h_c(h, esp_sup, esp_inf, hol_sup, hol_int, hol_inf): suma_holhura = hol_sup + hol_int + hol_inf suma_espesor = esp_sup + esp_inf espacio_cajones = h - suma_espesor - suma_holhura altura_cajon = espacio_cajones / 3 return altura_cajon h_c = calcular_h_c(h, esp_sup, esp_inf, hol_sup, hol_int, hol_inf) a_c = calcular_a_c(cubre_iz_total, cubre_der_total, esp_lado, hol_lado, hol_lateral, a) l_c = calcular_lado_cajon(prof_c, esp_c) print('frente cajon: ', a_c, ' X ', round(h_c)) print('lado cajon: ', l_c, ' X ', round(h_c))
def middle(t): '''Write a function called middle that takes a list and returns a new list that contains all but the first and last elements''' return t[1: -1] if __name__ == '__main__': t = [1, 2, 30, 400, 5000] print(t) print(middle(t))
def middle(t): """Write a function called middle that takes a list and returns a new list that contains all but the first and last elements""" return t[1:-1] if __name__ == '__main__': t = [1, 2, 30, 400, 5000] print(t) print(middle(t))
print("Size of list"); list1 = [1,23,5,2,42,526,52]; print(list1); print(len(list1));
print('Size of list') list1 = [1, 23, 5, 2, 42, 526, 52] print(list1) print(len(list1))
FANARTTV_PROJECTKEY = '' TADB_PROJECTKEY = '' TMDB_PROJECTKEY = '' THETVDB_PROJECTKEY = ''
fanarttv_projectkey = '' tadb_projectkey = '' tmdb_projectkey = '' thetvdb_projectkey = ''
# Regards, Takeda Shingen (Sengoku Era) Questline | Near Momiji Hills 1 (811000001) # Author: Tiger TAKEDA = 9000427 if "1" in sm.getQRValue(58901): # Regards, Takeda Shingen sm.setSpeakerID(TAKEDA) sm.flipDialogue() sm.sendNext("Good, you're here! I was about to pick another fight") sm.flipDialogue() sm.sendSay("We have a problem, and it's not a lack of conditioner. I'll tell ya that!") sm.flipDialogue() sm.sendSay("That warrior you found is in a coma. Lost their fight with consciousness. I guess. I had a letter somewhere here from Momijigaoka (He smashes boxes and chairs looking for the letter )") sm.setQRValue(58901, "2") # Regards, Takeda Shingen elif "2" in sm.getQRValue(58901): # Regards, Takeda Shingen sm.setSpeakerID(TAKEDA) sm.flipDialogue() sm.sendNext("Hm... I don't remember where I left it. It had the instructions on how to lift the spell.. Well, it wasn't that important anyway") sm.flipDialogue() sm.sendSay("Ha ha ha, a real man never sweats over losing such unimportant things!") sm.flipDialogue() sm.sendSay("As I recall, the Oda army is teaching wicked spells to it's soliders. Maybe one of them knocked our new friend out of commission.") response = sm.sendAskYesNo("There are a couple things that need to get done to lift the spell.\r\nYou can help, right?") if response: sm.flipDialogue() sm.sendNext("Ha, I knew you would do it.") sm.flipDialogue() sm.sendSay("First we need to know more about the spells. Eliminate some Oda Warrior Trainee monsters to find clues.") sm.flipDialogue() sm.sendSay("I don't need that many just 30 of them. That should be enough to mash into reason. Now, get to it!") sm.setQRValue(58901, "3") # Regards, Takeda Shingen sm.startQuest(parentID)
takeda = 9000427 if '1' in sm.getQRValue(58901): sm.setSpeakerID(TAKEDA) sm.flipDialogue() sm.sendNext("Good, you're here! I was about to pick another fight") sm.flipDialogue() sm.sendSay("We have a problem, and it's not a lack of conditioner. I'll tell ya that!") sm.flipDialogue() sm.sendSay('That warrior you found is in a coma. Lost their fight with consciousness. I guess. I had a letter somewhere here from Momijigaoka (He smashes boxes and chairs looking for the letter )') sm.setQRValue(58901, '2') elif '2' in sm.getQRValue(58901): sm.setSpeakerID(TAKEDA) sm.flipDialogue() sm.sendNext("Hm... I don't remember where I left it. It had the instructions on how to lift the spell.. Well, it wasn't that important anyway") sm.flipDialogue() sm.sendSay('Ha ha ha, a real man never sweats over losing such unimportant things!') sm.flipDialogue() sm.sendSay("As I recall, the Oda army is teaching wicked spells to it's soliders. Maybe one of them knocked our new friend out of commission.") response = sm.sendAskYesNo('There are a couple things that need to get done to lift the spell.\r\nYou can help, right?') if response: sm.flipDialogue() sm.sendNext('Ha, I knew you would do it.') sm.flipDialogue() sm.sendSay('First we need to know more about the spells. Eliminate some Oda Warrior Trainee monsters to find clues.') sm.flipDialogue() sm.sendSay("I don't need that many just 30 of them. That should be enough to mash into reason. Now, get to it!") sm.setQRValue(58901, '3') sm.startQuest(parentID)
array = [3,5,-4,8,11,-1,6] targetSum = 10 def twoNumberSum(array, targetSum): #for loop to iterate the array for i in range(len(array) - 1): firstNum = array[i] for j in range(i + 1, len(array)): secondNum = array[j] if firstNum + secondNum == targetSum: return [firstNum, secondNum] return[] # print(twoNumberSum(firstNum, secondNum)) # Second Solution def twoNumberSum(array, targetSum): nums = {} for num in array: potentialMatch = targetSum - num if potentialMatch in nums: return [potentialMatch, num] else: nums[num] = True return [] # Third Solution def TwoNumSum(array, targetSum): for i in range(len(array)-1): firstNum = array[i] for j in range( i + 1, len(array)): secondNum = array[j] if firstNum + secondNum == targetSum: return [firstNum, secondNum] return []
array = [3, 5, -4, 8, 11, -1, 6] target_sum = 10 def two_number_sum(array, targetSum): for i in range(len(array) - 1): first_num = array[i] for j in range(i + 1, len(array)): second_num = array[j] if firstNum + secondNum == targetSum: return [firstNum, secondNum] return [] def two_number_sum(array, targetSum): nums = {} for num in array: potential_match = targetSum - num if potentialMatch in nums: return [potentialMatch, num] else: nums[num] = True return [] def two_num_sum(array, targetSum): for i in range(len(array) - 1): first_num = array[i] for j in range(i + 1, len(array)): second_num = array[j] if firstNum + secondNum == targetSum: return [firstNum, secondNum] return []
#!/usr/bin/env python major_version = 0 minor_version = 0 patch_version = 10 def format_version(): return "{0}.{1}.{2}".format(major_version, minor_version, patch_version)
major_version = 0 minor_version = 0 patch_version = 10 def format_version(): return '{0}.{1}.{2}'.format(major_version, minor_version, patch_version)
# BIP39 Wordlist Validator - A tool to validate BIP39 wordlists in Latin # languages. # bip39validator/data_structs.py: Program data structures. # Copyright 2020 Ali Sherief # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. # A data structure consisting of # - An array of strings `word_list` # - An array of line numbers `line_numbers` # Each entry in `word_list` is associated with the corresponding entry in # `line_number`. They are expected to have the same length. # It is returned by the following functions: # - sanitize() # And is passed to the following functions: # - compute_levenshtein_distance() class WordAndLineArray: def __init__(self, args): self.word_list = args[0] self.line_numbers = args[1] # A data structure consisting of # - An integer distance `dist` # - A pair of line numbers `line_numbers` # - A pair of words `words` class LevDist: def __init__(self, **kwargs): self.dist = kwargs['dist'] self.line_numbers = kwargs['line_numbers'] self.words = kwargs['words'] class LevDistArray: def __init__(self, lev_dist_arr): self.lev_dist_arr = lev_dist_arr
class Wordandlinearray: def __init__(self, args): self.word_list = args[0] self.line_numbers = args[1] class Levdist: def __init__(self, **kwargs): self.dist = kwargs['dist'] self.line_numbers = kwargs['line_numbers'] self.words = kwargs['words'] class Levdistarray: def __init__(self, lev_dist_arr): self.lev_dist_arr = lev_dist_arr
#!/bin/python3 FAVORITE_NUMBER = 1362 GRID = [[0 for j in range(50)] for i in range(50)] TARGET = (31, 39) def check_wall(coordinates): x, y = coordinates if x < 0 or y < 0 or x >= 50 or y >= 50: return False elif GRID[x][y] != 0: return False current = x * x + 3 * x + 2 * x * y + y + y * y current += FAVORITE_NUMBER current = bin(current)[2:].count("1") if current % 2 != 0: GRID[x][y] = -1 return False else: return True def day13(): queue = [(1, 1, 0)] while queue: x, y, steps = queue.pop(0) if (x, y) == TARGET: return steps GRID[x][y] = steps if check_wall((x - 1, y)): queue.append((x - 1, y, steps + 1)) if check_wall((x + 1, y)): queue.append((x + 1, y, steps + 1)) if check_wall((x, y - 1)): queue.append((x, y - 1, steps + 1)) if check_wall((x, y + 1)): queue.append((x, y + 1, steps + 1)) return False print(day13())
favorite_number = 1362 grid = [[0 for j in range(50)] for i in range(50)] target = (31, 39) def check_wall(coordinates): (x, y) = coordinates if x < 0 or y < 0 or x >= 50 or (y >= 50): return False elif GRID[x][y] != 0: return False current = x * x + 3 * x + 2 * x * y + y + y * y current += FAVORITE_NUMBER current = bin(current)[2:].count('1') if current % 2 != 0: GRID[x][y] = -1 return False else: return True def day13(): queue = [(1, 1, 0)] while queue: (x, y, steps) = queue.pop(0) if (x, y) == TARGET: return steps GRID[x][y] = steps if check_wall((x - 1, y)): queue.append((x - 1, y, steps + 1)) if check_wall((x + 1, y)): queue.append((x + 1, y, steps + 1)) if check_wall((x, y - 1)): queue.append((x, y - 1, steps + 1)) if check_wall((x, y + 1)): queue.append((x, y + 1, steps + 1)) return False print(day13())
_title = 'KleenExtractor' _description = 'Clean extract system to export folder content and sub content.' _version = '0.1.2' _author = 'Edenskull' _license = 'MIT'
_title = 'KleenExtractor' _description = 'Clean extract system to export folder content and sub content.' _version = '0.1.2' _author = 'Edenskull' _license = 'MIT'
q = int(input()) for _ in range(q): n = int(input()) m = [] for _ in range(n*2): m.append(list(map(int, input().split(' ')))) # Sorcery here... bigMax = 0 for i in range(n): for j in range(n): try: bigMax += max(m[i][j], m[i][2*n-1-j], m[2*n-1-i][j], m[2*n-1-i][2*n-1-j]) except: pass #print("(" + str(i) + ", " + str(j) + ")") print(bigMax)
q = int(input()) for _ in range(q): n = int(input()) m = [] for _ in range(n * 2): m.append(list(map(int, input().split(' ')))) big_max = 0 for i in range(n): for j in range(n): try: big_max += max(m[i][j], m[i][2 * n - 1 - j], m[2 * n - 1 - i][j], m[2 * n - 1 - i][2 * n - 1 - j]) except: pass print(bigMax)
secret = 'BEEF0123456789a' skipped_sequential_false_positive = '0123456789a' print('second line') var = 'third line'
secret = 'BEEF0123456789a' skipped_sequential_false_positive = '0123456789a' print('second line') var = 'third line'
#http://www.pythonchallenge.com/pc/def/ocr.html s = "" with open("3.html") as f: for line in f.readlines(): s += line for el in s: if el >= 'a' and el <= 'z': print(el),
s = '' with open('3.html') as f: for line in f.readlines(): s += line for el in s: if el >= 'a' and el <= 'z': (print(el),)
# feel free to change these settings APP_NAME = 'Deep Vision' # any string: The application title (desktop and web). ABOUT_TITLE = "Deep Vision" # any string: The about box title (desktop and web). ABOUT_MESSAGE = "Created By : FastAI Student" # any string: The about box contents (desktop and web). APP_TYPE = 'desktop' # desktop, web: Run the app as a desktop or a web application. SHOW_MEDIA = True # True, False: Show images and videos on screen. SAVE_MEDIA = False # True, False: Save images and videos to file. SAVE_MEDIA_PATH = None # any string, None: Save images and videos to this folder, set to None to use application path. SAVE_MEDIA_FILE = None # any string, None: Save images and videos to this file, set to None to use random file name. # Mostly you will not want to change these settings SHOW_LOGS = False # True, False: Print applications logs to console. CAMERA_ID = 0 # numbers: Target camera id, 0 for default camera IMAGES_TYPES = ['*.jpg', '*.jpeg', '*.jpe', '*.png', '*.bmp'] # any image format supported by openCV: Open image dialog file types VIDEOS_TYPES = ['*.mp4', '*.avi'] # any video format supported by openCV: Open video dialog file types SCALE_IMAGES = True # True, False: Scale source image to fit container (desktop or web) # don't change these settings APP_PATH = './'
app_name = 'Deep Vision' about_title = 'Deep Vision' about_message = 'Created By : FastAI Student' app_type = 'desktop' show_media = True save_media = False save_media_path = None save_media_file = None show_logs = False camera_id = 0 images_types = ['*.jpg', '*.jpeg', '*.jpe', '*.png', '*.bmp'] videos_types = ['*.mp4', '*.avi'] scale_images = True app_path = './'
ch=input(('Enter any alphabet or digit ')) if ch in 'aeiouAEIOU': print(ch,'is a vowel.') elif ch in '0123456789': print(ch,'is a digit.') else: print(ch,'is a consonant.')
ch = input('Enter any alphabet or digit ') if ch in 'aeiouAEIOU': print(ch, 'is a vowel.') elif ch in '0123456789': print(ch, 'is a digit.') else: print(ch, 'is a consonant.')