content
stringlengths
7
1.05M
# pycrc -- parameterisable CRC calculation utility and C source code generator # # Copyright (c) 2017 Thomas Pircher <tehpeh-web@tty1.net> # # 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. """ This modules simplifies an expression. import pycrc.expr as exp my_expr = exp.Xor('var', exp.Parenthesis(exp.And('0x700', 4))) print('"{}" -> "{}"'.format(my_expr, my_expr.simplify())) """ def _classify(val): """ Creates a Terminal object if the parameter is a string or an integer. """ if type(val) is int: return Terminal(val) if type(val) is str: if val.isdigit(): return Terminal(int(val), val) if val[:2].lower() == '0x': return Terminal(int(val, 16), val) return Terminal(val) return val class Expression(object): """ Base class for all expressions. """ def is_int(self, val = None): return False class Terminal(Expression): """ A terminal object. """ def __init__(self, val, pretty = None): """ Construct a Terminal. The val variable is usually a string or an integer. Integers may also be passed as strings. The pretty-printer will use the string when formatting the expression. """ self.val = val self.pretty = pretty def __str__(self): """ Return the string expression of this object. """ if self.pretty is None: return str(self.val) return self.pretty def simplify(self): """ Return a simplified version of this sub-expression. """ return self def is_int(self, val = None): """ Return True if the value of this Terminal is an integer. """ if type(self.val) is int: return val is None or self.val == val return False class FunctionCall(Expression): """ Represent a function call """ def __init__(self, name, args): """ Construct a function call object. """ self.name = _classify(name) self.args = [_classify(arg) for arg in args] def __str__(self): """ Return the string expression of this object. """ return str(self.name) + '(' + ', '.join([str(arg) for arg in self.args]) + ')' def simplify(self): """ Return a simplified version of this sub-expression. """ args = [arg.simplify() for arg in self.args] return FunctionCall(self.name, args) class Parenthesis(Expression): """ Represent a pair of round brackets. """ def __init__(self, val): """ Construct a parenthesis object. """ self.val = _classify(val) def simplify(self): """ Return a simplified version of this sub-expression. """ val = self.val.simplify() if type(val) is Terminal: return val return Parenthesis(val) def __str__(self): """ Return the string expression of this object. """ return '(' + str(self.val) + ')' class Add(Expression): """ Represent an addition of operands. """ def __init__(self, lhs, rhs): """ Construct an addition object. """ self.lhs = _classify(lhs) self.rhs = _classify(rhs) def simplify(self): """ Return a simplified version of this sub-expression. """ lhs = self.lhs.simplify() rhs = self.rhs.simplify() if lhs.is_int() and rhs.is_int(): return Terminal(lhs.val + rhs.val) if lhs.is_int(0): return rhs if rhs.is_int(0): return lhs return Add(lhs, rhs) def __str__(self): """ Return the string expression of this object. """ return str(self.lhs) + ' + ' + str(self.rhs) class Sub(Expression): """ Represent a subtraction of operands. """ def __init__(self, lhs, rhs): """ Construct subtraction object. """ self.lhs = _classify(lhs) self.rhs = _classify(rhs) def simplify(self): """ Return a simplified version of this sub-expression. """ lhs = self.lhs.simplify() rhs = self.rhs.simplify() if lhs.is_int() and rhs.is_int(): return Terminal(lhs.val - rhs.val) if lhs.is_int(0): return rhs if rhs.is_int(0): return lhs return Sub(lhs, rhs) def __str__(self): """ Return the string expression of this object. """ return str(self.lhs) + ' - ' + str(self.rhs) class Mul(Expression): """ Represent the multiplication of operands. """ def __init__(self, lhs, rhs): """ Construct a multiplication object. """ self.lhs = _classify(lhs) self.rhs = _classify(rhs) def simplify(self): """ Return a simplified version of this sub-expression. """ lhs = self.lhs.simplify() rhs = self.rhs.simplify() if lhs.is_int() and rhs.is_int(): return Terminal(lhs.val * rhs.val) if lhs.is_int(0) or rhs.is_int(0): return Terminal(0) if lhs.is_int(1): return rhs if rhs.is_int(1): return lhs return Mul(lhs, rhs) def __str__(self): """ Return the string expression of this object. """ return str(self.lhs) + ' * ' + str(self.rhs) class Shl(Expression): """ Shift left operation. """ def __init__(self, lhs, rhs): """ Construct a shift left object. """ self.lhs = _classify(lhs) self.rhs = _classify(rhs) def simplify(self): """ Return a simplified version of this sub-expression. """ lhs = self.lhs.simplify() rhs = self.rhs.simplify() if lhs.is_int() and rhs.is_int(): return Terminal(lhs.val << rhs.val) if lhs.is_int(0): return Terminal(0) if rhs.is_int(0): return lhs return Shl(lhs, rhs) def __str__(self): """ Return the string expression of this object. """ return str(self.lhs) + ' << ' + str(self.rhs) class Shr(Expression): """ Shift right operation. """ def __init__(self, lhs, rhs): """ Construct a shift right object. """ self.lhs = _classify(lhs) self.rhs = _classify(rhs) def simplify(self): """ Return a simplified version of this sub-expression. """ lhs = self.lhs.simplify() rhs = self.rhs.simplify() if lhs.is_int() and rhs.is_int(): return Terminal(lhs.val >> rhs.val) if lhs.is_int(0): return Terminal(0) if rhs.is_int(0): return lhs return Shr(lhs, rhs) def __str__(self): """ Return the string expression of this object. """ return str(self.lhs) + ' >> ' + str(self.rhs) class Or(Expression): """ Logical or operation. """ def __init__(self, lhs, rhs): """ Construct a logical and object. """ self.lhs = _classify(lhs) self.rhs = _classify(rhs) def simplify(self): """ Return a simplified version of this sub-expression. """ lhs = self.lhs.simplify() rhs = self.rhs.simplify() if lhs.is_int() and rhs.is_int(): return Terminal(lhs.val | rhs.val) if lhs.is_int(0): return rhs if rhs.is_int(0): return lhs return Or(lhs, rhs) def __str__(self): """ Return the string expression of this object. """ return str(self.lhs) + ' | ' + str(self.rhs) class And(Expression): """ Logical and operation. """ def __init__(self, lhs, rhs): """ Construct a logical and object. """ self.lhs = _classify(lhs) self.rhs = _classify(rhs) def simplify(self): """ Return a simplified version of this sub-expression. """ lhs = self.lhs.simplify() rhs = self.rhs.simplify() if lhs.is_int() and rhs.is_int(): return Terminal(lhs.val & rhs.val) if lhs.is_int(0) or rhs.is_int(0): return Terminal(0) return And(lhs, rhs) def __str__(self): """ Return the string expression of this object. """ return str(self.lhs) + ' & ' + str(self.rhs) class Xor(Expression): """ Logical xor operation. """ def __init__(self, lhs, rhs): """ Construct a logical xor object. """ self.lhs = _classify(lhs) self.rhs = _classify(rhs) def simplify(self): """ Return a simplified version of this sub-expression. """ lhs = self.lhs.simplify() rhs = self.rhs.simplify() if lhs.is_int() and rhs.is_int(): return Terminal(lhs.val ^ rhs.val) if lhs.is_int(0): return rhs if rhs.is_int(0): return lhs return Xor(lhs, rhs) def __str__(self): """ Return the string expression of this object. """ return str(self.lhs) + ' ^ ' + str(self.rhs)
# -*- coding: utf-8 -*- """ Created on Fri Oct 12 13:16:08 2018 @author: Kenneth Collins """ """colRecoder2(dataFrame, colName, oldVal, newVal): requires: pandas dataFrame, colName must be the columns name (e.g. df.colName), not a string effects: returns a copy of the column. Does NOT mutate data. Thus must be assigned to change data. """ def colRecoder2(dataFrame, colName, oldVal, newVal): columnCopy = dataFrame.colName.copy() columnCopy[oldVal] = newVal return columnCopy
fname = input('Enter a file name:') try : fhand = open('ch07\\' + fname) except : print('File cannot be opened:',fname) quit() for str in fhand : print(str.upper().rstrip()) try : fhand.close() except : pass
n = int(input()) total = 1 while n != 0: total *= n n -= 1 print(n) print(total)
""" # REMOVE NTH NODE FROM END OF LINKED LIST Given the head of a linked list, remove the nth node from the end of the list and return its head. Follow up: Could you do this in one pass? Example 1: Input: head = [1,2,3,4,5], n = 2 Output: [1,2,3,5] Example 2: Input: head = [1], n = 1 Output: [] Example 3: Input: head = [1,2], n = 1 Output: [1] Constraints: The number of nodes in the list is sz. 1 <= sz <= 30 0 <= Node.val <= 100 1 <= n <= sz """ class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def removeNthFromEnd(self, head, n): front = head parent = None end = head while n != 0: end = end.next n -= 1 while end != None: end = end.next parent = front front = front.next if parent == None: return head.next parent.next = front.next return head
# 数据集存放目录 DATASET_DIR = '/tcdata' # 初赛训练集路径 PREM_TRAIN_SET_PATH = DATASET_DIR + '/track1_round1_train_20210222.csv' # 初赛A榜测试集路径 PREM_TEST_SET_A_PATH = DATASET_DIR + '/track1_round1_testA_20210222.csv' # 初赛B榜测试集路径 PREM_TEST_SET_B_PATH = DATASET_DIR + '/track1_round1_testB.csv' # 复赛训练集路径 SEMI_TRAIN_SET_PATH = DATASET_DIR + '/train.csv' # 复赛A榜测试集路径 SEMI_TEST_SET_A_PATH = DATASET_DIR + '/testA.csv' # 复赛B榜测试集路径 SEMI_TEST_SET_B_PATH = DATASET_DIR + '/testB.csv' # 中间文件目录 DATA_DIR = './nezha/data' # Bert配置文件路径 BERT_CONFIG_PATH = './nezha/pretrain/bert_config.json' # 语料库文本文件路径 CORPUS_PATH = DATA_DIR + '/corpus.txt' # 词典文件路径 VOCAB_PATH = DATA_DIR + '/vocab.txt' # 预训练数据输出文件路径 PRETRAINING_OUTPUT_PATH = DATA_DIR + '/tf_examples.tfrecord' # 预训练模型保存路径 CHECKPOINT_PATH = DATA_DIR + '/checkpoint' # 训练模型参数保存路径 MODEL_DIR = './nezha/model' # 区域任务的结果文件 REGION_RESULT_PATH = DATA_DIR + '/separate_region_output.txt' # 类型任务的结果文件 CATEGORY_RESULT_PATH = DATA_DIR + '/separate_category_output.txt' # 分开训练:提交的csv文件路径 SEPARATE_RESULT_PATH = DATA_DIR + '/result_separate.csv' # 联合训练:提交的csv文件路径 JOINT_RESULT_PATH = DATA_DIR + '/result_joint.csv' # 最终提交的csv文件路径 SUBMISSION_PATH = './result_nezha.csv'
#!/usr/bin/env python3 # @AUTHUR: Kingsley Nnaji <kingsley.nnaji@gmail.com> # @LICENCE: MIT # Creation Date: 02.09.2019 def fib(n): """ fib(number) -> number fib takes a number as an Argurment and returns the fibonacci value of that number >>> fib(8) -> 21 >>> fib(6) -> 8 >>> fib(0) -> 1 """ y = {}; if n in y.keys(): return y[n] if n <= 2: f = 1 else: f = fib(n-1) + fib(n-2) y[n] = f return f if __name__ == "__main__": print(" The 8th fibonaccifib number is : ", fib(8))
# Marcelo Campos de Medeiros # ADS UNIFIP # Exercicios Com Strings # https://wiki.python.org.br/ExerciciosComStrings ''' 6- Data por extenso. Faça um programa que solicite a data de nascimento (dd/mm/aaaa) do usuário e imprima a data com o nome do mês por extenso. Data de Nascimento: 29/10/1973 Você nasceu em 29 de Outubro de 1973. ''' print('='*30) print('{:*^30}'.format(' Data por extenso ')) print('='*30) print() data = input('Data de Nascimento:(dd/mm/aaaa): ') print() # criei uma lista dos meses do ano para depois de fatiar a string converter em int e sub -1 p pegar # o índice correspondente a lista dos meses do ano meses = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'] # Em dia e ano fatio a string e converto em inteiro. dia = int(data[0:2]) mes = meses[int(data[3:5]) - 1] ano = int(data[6:]) print('Você nasceu em %d de %s de %d' % (dia, mes, ano)) print('Você nasceu em {} de {} de {}'.format(dia, mes, ano)) print(f'Você nasceu em {dia} de {mes} de {ano}')
def cool_string(s: str) -> bool: """ Let's call a string cool if it is formed only by Latin letters and no two lowercase and no two uppercase letters are in adjacent positions. Given a string, check if it is cool. """ string_without_whitespace = ''.join(s.split()) if string_without_whitespace.isalpha(): for i, k in enumerate(range(len(string_without_whitespace)-1)): if (string_without_whitespace[i].islower() and string_without_whitespace[i+1].islower()) or (string_without_whitespace[i].isupper() and string_without_whitespace[i+1].isupper()): return False return True return False
# https://leetcode.com/problems/matrix-diagonal-sum/ class Solution: def diagonalSum(self, mat: List[List[int]]) -> int: res = 0 i, j = 0, 0 while (j < len(mat)): #print(i,j) res += mat[i][j] i += 1 j += 1 i, j = 0, len(mat)-1 while (j >= 0): #print(i, j) if i!=j: res += mat[i][j] i += 1 j -= 1 return res
def test(): print('\nNON-NESTED BLOCK COMMENT EXAMPLE:') sample = ''' /** * Some comments * longer comments here that we can parse. * * Rahoo */ function subroutine() { a = /* inline comment */ b + c ; } /*/ <-- tricky comments */ /** * Another comment. */ function something() { }''' print(commentstripper(sample)) print('\nNESTED BLOCK COMMENT EXAMPLE:') sample = ''' /** * Some comments * longer comments here that we can parse. * * Rahoo *//* function subroutine() { a = /* inline comment */ b + c ; } /*/ <-- tricky comments */ */ /** * Another comment. */ function something() { }''' print(commentstripper(sample)) if __name__ == '__main__': test()
# -*- coding: utf-8 -*- { 'name': 'Slides', 'version': '1.0', 'sequence': 145, 'summary': 'Share and Publish Videos, Presentations and Documents', 'category': 'Website', 'description': """ Share and Publish Videos, Presentations and Documents' ====================================================== * Website Application * Channel Management * Filters and Tagging * Statistics of Presentation * Channel Subscription * Supported document types : PDF, images, YouTube videos and Google Drive documents) """, 'depends': ['website', 'website_mail'], 'data': [ 'view/res_config.xml', 'view/website_slides.xml', 'view/website_slides_embed.xml', 'view/website_slides_backend.xml', 'data/website_slides_data.xml', 'security/ir.model.access.csv', 'security/website_slides_security.xml' ], 'demo': [ 'data/website_slides_demo.xml' ], 'installable': True, 'application': True, }
class Solution: def maxSlidingWindow(self, nums: List[int], k: int) -> List[int]: window = collections.deque() ans = [] for i, num in enumerate(nums): while window and num >= window[-1][0]: window.pop() window.append((num, i)) if i - window[0][-1] > k - 1: window.popleft() if i >= k - 1: ans.append(window[0][0]) return ans
#Tuples - faster Lists you can't change friends = ['John','Michael','Terry','Eric','Graham'] friends_tuple = ('John','Michael','Terry','Eric','Graham') print(friends) print(friends_tuple) print(friends[2:4]) print(friends_tuple[2:4])
# Desenvolva uma lógica que leia o peso e a altura de uma pessoa, calcule o IMC e mostre, de acordo com a tabela abaixo: # Abaixo de 18.5: Abaixo do peso; # Entre 18.5 e 25: Peso ideal; # 25 até 30: Sobrepeso; # 30 até 40: Obesidade; # Acima de 40: Obesidade mórbida. peso = float(input('Informe seu peso: (kg) ')) altura = float(input('Informe sua altura: (m) ')) imc = (peso / (altura**2)) print('Seu IMC é de {:.1f}kg/m²') if imc < 18.5: print('Você está abaixo do peso.') elif imc >= 18.5 and imc <= 25.0: print('Você está com o peso ideal.') elif imc > 25.0 and imc <= 30.0: print('Você está com sobrepeso.') elif imc > 30.0 and imc <= 40.0: print('Você está com obesidade.') elif imc > 40.0: print('Você está com obesidade mórbida.')
#הפונקציה מדפיסה את כל המוצרים שאינם חוקיים # מוצר אינו חוקי אם אורכו קטן מ-3 או שהוא כולל תווים שאינם אותיות #משימה 7 def M_7(): items=input("Please Type What Do You Want to Buy: ") splittedItems=items.split(",") for x in splittedItems: length_item=len(x) if length_item > 3 and x.isalpha(): continue else: print(x) M_7()
t1 = 0 t2 = 1 print(f'{t1} -> {t2} -> ', end='') for c in range(1, 21): t3 = t1 + t2 print(f'{t3} -> ', end='') t1 = t2 t2 = t3 print('FIM', end='')
# COLORS = ['V', 'I', 'B', 'G', 'Y', 'O', 'R'] EMPTY = "-" # DIRS = np.array([(1, 0), (0, -1), (-1, 0), (0, 1)]) RIGHTMOST = -1 def is_color(board, x, y, color): if min(x, y) < 0: return False if x >= len(board): return False if y >= len(board[0]): return False if board[x][y] != color: return False return True def get_group(board, x, y): color = board[x][y] group = [] if color == EMPTY: return [] test = [(x, y)] for i, j in test: if is_color(board, i, j, color): group.append((i, j)) board[i][j] = EMPTY test.append((i + 1, j)) test.append((i, j - 1)) test.append((i - 1, j)) test.append((i, j + 1)) if len(group) > 1: return (group, color) return [] def get_groups(board): copy = [row.copy() for row in board] groups = [] x_max, y_max = len(copy), len(copy[0]) for x in range(x_max): for y in range(y_max): group = get_group(copy, x, y) if group: groups.append(group) return groups def get_color_count(board): color_count = {} for x in range(len(board)): for y in range(len(board[x])): if board[x][y] not in color_count: color_count[board[x][y]] = 1 else: color_count[board[x][y]] += 1 return color_count def next_move(x, y, board): groups = get_groups(board) groups.sort(key=lambda x: len(x[0])) return groups[0][0][0] # print(groups) # color_count = get_color_count(board) # for group, color in groups: # if color_count[color] - len(group) == 0: # return group[0] # for group, color in groups: # if color_count[color] - len(group) != 1: # return group[0] # return groups[0][0][0]
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Exercise 6: String Lists. Ask the user for a string and print out whether this string is a palindrome or not. (A palindrome is a string that reads the same forwards and backwards.) Credits: http://www.practicepython.org/exercise/2014/03/12/06-string-lists.html """ __author__ = "lcnodc" word = input("Digite uma palavra: ") drow = word[::-1] print("Palavra original: ", word) print("Palavra invertida: ", drow) # Utilizando a estrutura if...else. if word == drow: print("A palavra %s é um palíndromo" % word) else: print("A palavra %s não é um palíndromo" % word) # Utilizando um operador ternário print( "A palavra %s %s um palíndromo." % (word, ("é" if word == drow else "não é")))
def solveQuestion(inputPath, minValComp, maxValComp): fileP = open(inputPath, 'r') fileLines = fileP.readlines() fileP.close() botMoves = {} botValues = {} for line in fileLines: line = line.strip('\n') isLowOutput = False isHighOutput = False if line[:5] == 'value': splitText = line.split(' ') value = int(splitText[1]) botIndex = int(splitText[5]) if botIndex in botValues: botValues[botIndex].append(value) else: botValues[botIndex] = [value] else: splitText = line.split(' ') if splitText[5] == 'output': isLowOutput = True if splitText[10] == 'output': isHighOutput = True botIndexSource = int(splitText[1]) botIndexLow = int(splitText[6]) botIndexHigh = int(splitText[11]) botMoves[botIndexSource] = {} if isLowOutput == True: botMoves[botIndexSource]['low'] = -1 * botIndexLow - 1 else: botMoves[botIndexSource]['low'] = botIndexLow if isHighOutput == True: botMoves[botIndexSource]['high'] = -1 * botIndexHigh - 1 else: botMoves[botIndexSource]['high'] = botIndexHigh while 1: for bot in botValues: values = list(botValues[bot]) if len(values) == 2: moves = botMoves[bot] botValues[bot] = [] lowBotIndex = moves['low'] highBotIndex = moves['high'] if values[0] > values[1]: highValue = values[0] lowValue = values[1] else: highValue = values[1] lowValue = values[0] if highValue == maxValComp and lowValue == minValComp: return bot if lowBotIndex in botValues: botValues[lowBotIndex].append(lowValue) else: botValues[lowBotIndex] = [lowValue] if highBotIndex in botValues: botValues[highBotIndex].append(highValue) else: botValues[highBotIndex] = [highValue] break print(solveQuestion('InputD10Q1.txt', 17, 61))
class Solution: def numSquares(self, n: int) -> int: marked = [False for _ in range(n)] queue = [(0, n)] while queue: level, top = queue.pop(0) level += 1 start = 1 while True: residue = top - start * start if residue == 0: return level elif residue < 0: break else: if not marked[residue]: queue.append((level, residue)) marked[residue] = True start += 1 if __name__ == '__main__': s = Solution() res = s.numSquares(4) print('结果', res)
def Mergesort(arr): n= len(arr) if n > 1: mid = int(n/2) left = arr[0:mid] right = arr[mid:n] Mergesort(left) Mergesort(right) Merge(left, right, arr) def Merge(left, right, arr): i = 0 j = 0 k = 0 while i < len(left) and j < len(right): if left[i] <= right[j]: arr[k] = left[i] i += 1 else: arr[k] = right[j] j += 1 k =k + 1 while i < len(left): arr[k] = left[i] i += 1 k += 1 while j < len(right): arr[k] = right[j] j += 1 k += 1 if __name__ == "__main__": merge = [8,4,23,42,16,15] Mergesort(merge) print(merge) merge2 = [20,18,12,8,5,-2] Mergesort(merge2) print(merge2) merge3 = [5,12,7,5,5,7] Mergesort(merge3) print(merge3) merge4 =[2,3,5,7,13,11] Mergesort(merge4) print(merge4)
a = [5, 4, 8, 3, 4, 14, 90, 45, 9, 3, 2, 4] for i in range(len(a), 0, -1): for j in range(0, i - 1): if a[j] > a[j + 1]: a[j], a[j + 1] = a[j + 1], a[j] print(a)
# MEDIUM # find smallest x, largest x, draw a line to split those two value # store all points in to a set([]) # check if every point in set can be matched by mirroring the y axis class Solution: def isReflected(self, points: List[List[int]]) -> bool: print(max(points),min(points)) check = set([(x,y) for x,y in points]) count = 0 minx,maxx = float("inf"), -float("inf") for x,y in points: minx = min(minx,x) maxx = max(maxx,x) line = (maxx+ minx) / 2 for x,y in check: diff = abs(x-line) if x > line: if (x-diff*2,y) not in check: return False elif x< line: if (x+diff*2,y) not in check : return False return True
def is_prime(num): if num <= 1: return False d = 2 while d * d <= num and num % d != 0: d += 1 return d * d > num
#encoding=utf8 # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. def getClassStats(inputDict, className): outStats = {} for item in inputDict: val = item[className] if val not in outStats: outStats[val] = 0 outStats[val] += 1 return outStats def buildDictStats(inputDict, classList): locStats = {"total": len(inputDict)} for cat in classList: locStats[cat] = getClassStats(inputDict, cat) return locStats def buildKeyOrder(shiftAttrib, shiftAttribVal, stats=None): r""" If the dataset is labelled, give the order in which the attributes are given Args: - shiftAttrib (dict): order of each category in the category vector - shiftAttribVal (dict): list (ordered) of each possible labels for each category of the category vector - stats (dict): if not None, number of representant of each label for each category. Will update the output dictionary with a "weights" index telling how each labels should be balanced in the classification loss. Returns: A dictionary output[key] = { "order" : int , "values" : list of string} """ MAX_VAL_EQUALIZATION = 10 output = {} for key in shiftAttrib: output[key] = {} output[key]["order"] = shiftAttrib[key] output[key]["values"] = [None for i in range(len(shiftAttribVal[key]))] for cat, shift in shiftAttribVal[key].items(): output[key]["values"][shift] = cat if stats is not None: for key in output: n = sum([x for key, x in stats[key].items()]) output[key]["weights"] = {} for item, value in stats[key].items(): output[key]["weights"][item] = min( MAX_VAL_EQUALIZATION, n / float(value + 1.0)) return output
c = 0 arr = [8,7,3,2,1,8,18,9,7,3,4] for i in range(len(arr)): if arr.count(i) == 1: c += 1 print(c)
# coding=UTF8 # Processamento for num in range(100, 201): if num % 2 > 0: print(num)
## https://leetcode.com/submissions/detail/230651834/ ## problem is to find the numbers between 1 and length of the ## array that aren't in the array. simple way to do that is to ## do the set difference between range(1, len(ar)+1) and the ## input numbers ## hits 98th percentile in terms of runtime, though only ## 14th percentile in memory usage class Solution: def findDisappearedNumbers(self, nums: List[int]) -> List[int]: return list(set(range(1, len(nums)+1)) - set(nums))
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Math.py: Just a sample file with a function. This material is part of this post: http://raccoon.ninja/pt/dev-pt/python-importando-todos-os-arquivos-de-um-diretorio/ """ def calc_sum(a, b): return a + b
player_1_score = 0 player_2_score = 0 LOOP_UNTIL_USER_CHOOSES_TO_EXIT_AFTER_A_ROUND = True while LOOP_UNTIL_USER_CHOOSES_TO_EXIT_AFTER_A_ROUND: player_1_shape = input('[PLAYER 1]: Choose "rock", "paper", or "scissors": ') player_2_shape = input('[PLAYER 2]: Choose "rock", "paper", or "scissors": ') ROCK_SHAPE = 'rock' PAPER_SHAPE = 'paper' SCISSORS_SHAPE = 'scissors' player_1_wins = ( (ROCK_SHAPE == player_1_shape and SCISSORS_SHAPE == player_2_shape) or (PAPER_SHAPE == player_1_shape and ROCK_SHAPE == player_2_shape) or (SCISSORS_SHAPE == player_1_shape and PAPER_SHAPE == player_2_shape)) player_2_wins = ( (ROCK_SHAPE == player_2_shape and SCISSORS_SHAPE == player_1_shape) or (PAPER_SHAPE == player_2_shape and ROCK_SHAPE == player_1_shape) or (SCISSORS_SHAPE == player_2_shape and PAPER_SHAPE == player_1_shape)) tie = (player_1_shape == player_2_shape) if player_1_wins: print('PLAYER 1 wins!') player_1_score += 1 elif player_2_wins: print('PLAYER 2 wins!') player_2_score += 1 elif tie: print('It is a tie!') else: print('Invalid choices!') print("Player 1 Score: " + str(player_1_score)) print("Player 2 Score: " + str(player_2_score)) continue_playing_option = input("Continue playing? (enter YES or NO): ") if "YES" == continue_playing_option: continue elif "NO" == continue_playing_option: break else: print("Invalid choice. Exiting game...") break
#isdecimal n1 = "947" print(n1.isdecimal()) # -- D1 n2 = "947 2" print(n2.isdecimal()) # -- D2 n3 = "abx123" print(n3.isdecimal()) # -- D3 n4 = "\u0034" print(n4.isdecimal()) # -- D4 n5 = "\u0038" print(n5.isdecimal()) # -- D5 n6 = "\u0041" print(n6.isdecimal()) # -- D6 n7 = "3.4" print(n7.isdecimal()) # -- D7 n8 = "#$!@" print(n8.isdecimal()) # -- D8
""" Package collecting modules defining discretized operators for different grids. These operators can either be used directly or they are imported by the respective methods defined on fields and grids. .. autosummary:: :nosignatures: cartesian cylindrical polar spherical """ # Package-wide constant defining when to use parallel numba PARALLELIZATION_THRESHOLD_2D = 256 """ int: threshold for determining when parallel code is created for differential operators. The value gives the minimal number of support points in each direction for a 2-dimensional grid """ PARALLELIZATION_THRESHOLD_3D = 64 """ int: threshold for determining when parallel code is created for differential operators. The value gives the minimal number of support points in each direction for a 3-dimensional grid """
def memoize(f): storage = {} def wrapper(*args): key = tuple(args) if storage.has_key(key): return storage[key] else: result = f(*args) storage[key] = result return result return wrapper def test_memoize(): @memoize def silly(x): if x==0: return 0 else: return silly(x-1) + 1 assert silly(100)==100 assert silly.func_closure[1].cell_contents[(100,)] == 100
# Fitur .append() print(">>> Fitur .append()") list_makanan = ['Gado-gado', 'Ayam Goreng', 'Rendang'] list_makanan.append('Ketoprak') print(list_makanan) # Fitur .clear() print(">>> Fitur .clear()") list_makanan = ['Gado-gado', 'Ayam Goreng', 'Rendang'] list_makanan.clear() print(list_makanan) # Fitur .copy() print(">>> Fitur .copy()") list_makanan1 = ['Gado-gado', 'Ayam Goreng', 'Rendang'] list_makanan2 = list_makanan1.copy() list_makanan3 = list_makanan1 list_makanan2.append('Opor') list_makanan3.append('Ketoprak') print(list_makanan1) print(list_makanan2) # Fitur .count() print(">>> Fitur .count()") list_score = ['Budi', 'Sud', 'Budi', 'Budi', 'Budi', 'Sud', 'Sud'] score_budi = list_score.count('Budi') score_sud = list_score.count('Sud') print(score_budi) # akan menampilkan output 4 print(score_sud) # akan menampilkan output 3 # Fitur .extend() print(">>> Fitur .extend()") list_menu = ['Gado-gado', 'Ayam Goreng', 'Rendang'] list_minuman = ['Es Teh', 'Es Jeruk', 'Es Campur'] list_menu.extend(list_minuman) print(list_menu)
#!/usr/bin/python # coding=utf-8 class BasicGenerater(object): def __init__(self): self.first_name = 'Jack' self.last_name = 'Freeman' def my_name(self): print('.'.join((self.first_name, self.last_name))) def __del__(self): print("call del") class AdvaceGenerator(BasicGenerater): def __init__(self): BasicGenerater.__init__(self) self.first_name = 'Bob' class AdvaceGenerator2(BasicGenerater): def __init__(self): super(AdvaceGenerator2, self).__init__() self.first_name = 'Alon' if __name__ == "__main__": basic = AdvaceGenerator2() basic.my_name() print("end")
# -*- coding: utf-8 -*- """ ----------Phenix Labs---------- Created on Fri Jan 29 15:42:01 2021 @author: Gyan Krishna Topic: reverse tuple """ tup =(10,20,30,40,50,60,) rev = tup[::-1] print("original tuple ::", tup) print("reversed tuple ::", rev)
class Solution: def change(self, amount, coins): dp = [0 for i in range(amount + 1)] # for amount 0, you can have 1 combination, do not include any coin dp[0] = 1 for coin in coins: for i in range(coin, amount + 1): # add i - coin dp value, the number of combinations excluding current coin, to current dp value dp[i] += dp[i - coin] return dp[amount] def main(): mySol = Solution() print("For the coins 1, 2, 3, 5, and amount 11, the number of combinations to make up the amount are ") print(mySol.change(11, [1, 2, 3, 5])) print("For the coins 1, 2, 5, and amount 5, the number of combinations to make up the amount are ") print(mySol.change(5, [1, 2, 5])) if __name__ == "__main__": main()
class UI: def __init__(self): ''' ''' print('Welcome to calculator v1') def start(self, controller): ''' We ask the user for 2 numbers and add them. ''' print('Please enter number1') number1 = input() print('Please enter number2') number2 = input() result = controller.add( int(number1), int(number2) ) print ('Result:', result) print('Thank you for using the calculator!')
""" ID: goundsada LANG: PYTHON3 TASK: friday """ fin = open ('friday.in', 'r') fout = open ('friday.out', 'w') n = int(fin.readline().encode()) count = [0,0,0,0,0,0,0] daysInMonth = (31,28,31,30,31,30,31,31,30,31,30,31) day = 0 for i in range(n): for j in daysInMonth: count[day % 7] += 1 if (j == 28) and ((i+1900)%400==0 or ((i+1900)%100!=0 and (i+1900)%4==0)): day +=29 else: day += j for x in count[:len(count)-1]: fout.write(str(x) + " ") fout.write(str(count[6]) + "\n") fout.close()
DEBUG = True TESTING = False MONGODB_SETTINGS = [{ 'host':'localhost', 'port':27017, 'db':'REALTIME_APP' }]
class Measurement: def __init__(self, x, result, elapsed, timeout_error, other_error): """ :type x: dict :type result: object :type elapsed: float :type timeout_error: bool """ if not isinstance(x, dict): raise TypeError('x should be a dictionary!') self._x = x self._result = result self._elapsed_time = elapsed self._timeout_error = timeout_error self._other_error = other_error self._weight = None @property def weight(self): return self._weight @property def timeout_error(self): return self._timeout_error @property def other_error(self): return self._other_error def __lt__(self, other): return self.elapsed_time < other.elapsed_time def __le__(self, other): return self.elapsed_time <= other.elapsed_time def __eq__(self, other): return self.elapsed_time == other.elapsed_time def __gt__(self, other): return self.elapsed_time > other.elapsed_time def __ge__(self, other): return self.elapsed_time >= other.elapsed_time def __ne__(self, other): return self.elapsed_time != other.elapsed_time @property def x(self): """ :rtype: dict """ return self._x @property def elapsed_time(self): return self._elapsed_time @property def dictionary(self): if isinstance(self._result, dict) and 'elapsed' not in self._result and 'x' not in self._result: return dict( x=self._x, time=self.elapsed_time, timeout_error=self._timeout_error, other_error=self._other_error, **self._result ) else: return { **self._x, 'time': self.elapsed_time, 'result': self._result, 'timeout_error': self._timeout_error, 'other_error': self._other_error }
# Week-11 Challenge 1 And Extra Challenge x = open("Week-11/Week-11-Challenge.txt", "r") print(x.read()) x.close() print("\n-*-*-*-*-*-*") print("-*-*-*-*-*-*") print("-*-*-*-*-*-*\n") y = open("Week-11/Week-11-Challenge.txt", "a") y.write("\nThe best way we learn anything is by practice and exercise questions ") y = open("Week-11/Week-11-Challenge.txt", "r") print(y.read()) y.close() print("\n-*-*-*-*-*-*") print("-*-*-*-*-*-*") print("-*-*-*-*-*-*\n") f = open("Week-11/readline.txt", "r") print(f.readlines()) f.close
""" TODO: Add model code for your resource here. You'll want to change the file name to whatever your resource is called. To add persistence to your models, use App Engine's Datastore if you anticipate scaling to a high amount of data or traffic. The Python NDB module adds caching and some other features to Datastore. Consider Google CloudSQL if you need a relational database. """ class RESOURCE_NAME(object): @classmethod def find(cls, key): """ Return a RESOURCE_NAME with key Arg: key is a key used to fetch the resource object TODO: replace with a query using Datastore or CloudSQL """ result = cls() result.answer = '42' return result
# # The MIT License (MIT) # # Copyright 2019 AT&T Intellectual Property. All other rights reserved. # # 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. # """ .. module: openc2.version :platform: Unix .. version:: $$VERSION$$ .. moduleauthor:: Michael Stair <mstair@att.com> """ __version__ = "2.0.0"
''' Note: This kata is inspired by Convert a Number to a String!. Try that one too. Description We need a function that can transform a string into a number. What ways of achieving this do you know? Note: Don't worry, all inputs will be strings, and every string is a perfectly valid representation of an integral number. Examples stringToNumber("1234") == 1234 stringToNumber("605" ) == 605 stringToNumber("1405") == 1405 stringToNumber("-7" ) == -7 ''' def string_to_number(num): return int(num)
print(-1) print(-0) print(-(6)) print(-(12*2)) print(- -10)
# Problem Statement: https://leetcode.com/problems/valid-anagram/ class Solution: def isAnagram(self, s: str, t: str) -> bool: if len(s) != len(t): return False else: letter_cnt = {} for letter in s: if not letter in letter_cnt: letter_cnt[letter] = 1 else: letter_cnt[letter] = letter_cnt[letter] + 1 for letter in t: if not letter in letter_cnt: letter_cnt[letter] = 1 else: letter_cnt[letter] = letter_cnt[letter] - 1 for letter in letter_cnt: if letter_cnt[letter] > 0: return False return True
# -*- coding: utf-8 -*- description = 'detectors' group = 'lowlevel' # is included by panda.py display_order = 70 excludes = ['qmesydaq'] tango_base = 'tango://phys.panda.frm2:10000/panda/' devices = dict( timer = device('nicos.devices.entangle.TimerChannel', tangodevice = tango_base + 'frmctr2/timer', visibility = (), ), mon1 = device('nicos.devices.entangle.CounterChannel', tangodevice = tango_base + 'frmctr2/mon1', type = 'monitor', fmtstr = '%d', visibility = (), ), mon2 = device('nicos.devices.entangle.CounterChannel', tangodevice = tango_base + 'frmctr2/mon2', type = 'monitor', fmtstr = '%d', visibility = (), ), det1 = device('nicos.devices.entangle.CounterChannel', tangodevice = tango_base + 'frmctr2/det1', type = 'counter', fmtstr = '%d', visibility = (), ), det2 = device('nicos.devices.entangle.CounterChannel', tangodevice = tango_base + 'frmctr2/det2', type = 'counter', fmtstr = '%d', visibility = (), ), mon1_c = device('nicos.devices.tas.OrderCorrectedMonitor', description = 'Monitor corrected for higher-order influence', ki = 'ki', mapping = { 1.2: 3.40088101, 1.3: 2.20258647, 1.4: 1.97398164, 1.5: 1.67008065, 1.6: 1.63189593, 1.7: 1.51506763, 1.8: 1.48594030, 1.9: 1.40500060, 2.0: 1.35613988, 2.1: 1.30626513, 2.2: 1.30626513, 2.3: 1.25470102, 2.4: 1.23979656, 2.5: 1.19249904, 2.6: 1.18458214, 2.7: 1.14345899, 2.8: 1.12199877, 2.9: 1.10924699, 3.0: 1.14791169, 3.1: 1.15693786, 3.2: 1.06977760, 3.3: 1.02518334, 3.4: 1.11537790, 3.5: 1.11127232, 3.6: 1.04328656, 3.7: 1.07179793, 3.8: 1.10400989, 3.9: 1.07342487, 4.0: 1.10219356, 4.1: 1.00121974, }, ), det = device('nicos.devices.generic.Detector', description = 'combined four channel single counter detector', timers = ['timer'], monitors = ['mon1', 'mon2', 'mon1_c'], counters = ['det1', 'det2'], # counters = ['det2'], postprocess = [('mon1_c', 'mon1')], maxage = 1, pollinterval = 1, ), ) startupcode = ''' SetDetectors(det) '''
''' You can find this exercise at the following website: https://www.practicepython.org/ 10. List Overlap Comprehensions: This week’s exercise is going to be revisiting an old exercise (see Exercise 5), except require the solution in a different way. Take two lists, say for example these two: a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] and write a program that returns a list that contains only the elements that are common between the lists (without duplicates). Make sure your program works on two lists of different sizes. Extra: Randomly generate two lists to test this ''' a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] resultRepetitions = [element for element in a if element in b] noRepetitions = [] for i in resultRepetitions: if i not in noRepetitions: noRepetitions.append(i) # Same thing in one line: # [noRepetitions.append(i) for i in resultRepetitions if i not in noRepetitions] # See Exercise 14 for functions to remove duplicates! print("List 1: " + str(a)) print("List 2: " + str(b)) print("List of numbers in both lists with repetitions:" + str(resultRepetitions)) print("List of numbers in both lists without repetitions:" + str(noRepetitions)) # To see how to randomly generate lists, refer to exercise 5 - List Overlap
# -*- coding: utf-8 -*- """ Created on Mon Sep 2 17:52:35 2019 @author: Sarthak """
expected_output = { "key_chains": { "bla": { "keys": { 1: { "accept_lifetime": { "end": "always valid", "is_valid": True, "start": "always valid", }, "key_string": "cisco123", "send_lifetime": { "end": "always valid", "is_valid": True, "start": "always valid", }, }, 2: { "accept_lifetime": { "end": "06:01:00 UTC Jan 1 2010", "is_valid": False, "start": "10:10:10 UTC Jan 1 2002", }, "key_string": "blabla", "send_lifetime": { "end": "06:01:00 UTC Jan 1 2010", "is_valid": False, "start": "10:10:10 UTC Jan 1 2002", }, }, }, }, "cisco": { "keys": { 1: { "accept_lifetime": { "end": "infinite", "is_valid": True, "start": "11:11:11 UTC Mar 1 2001", }, "key_string": "cisco123", "send_lifetime": { "end": "infinite", "is_valid": True, "start": "11:11:11 UTC Mar 1 2001", }, }, 2: { "accept_lifetime": { "end": "22:11:11 UTC Dec 20 2030", "is_valid": True, "start": "11:22:11 UTC Jan 1 2001", }, "key_string": "cisco234", "send_lifetime": { "end": "always valid", "is_valid": True, "start": "always valid", }, }, 3: { "accept_lifetime": { "end": "always valid", "is_valid": True, "start": "always valid", }, "key_string": "cisco", "send_lifetime": { "end": "always valid", "is_valid": True, "start": "always valid", }, }, }, }, }, }
# Challenge 3 : Write a function called delete_starting_evens() that has a parameter named lst. # The function should remove elements from the front of lst until the front of the list is not even. # The function should then return lst. # Date : Sun 07 Jun 2020 07:21:17 AM IST def delete_starting_evens(lst): while len(lst) != 0 and lst[0] % 2 == 0: del lst[0] return lst print(delete_starting_evens([4, 8, 10, 11, 12, 15])) print(delete_starting_evens([4, 8, 10]))
def test(n): i = 0 res = 0 while i < n: i = i + 1 print(res) test(100)
# Online Python compiler (interpreter) to run Python online. # Write Python 3 code in this online editor and run it. vegetables = ["rucula", "tomate", "lechuga", "acelga"]; print(vegetables); print(len(vegetables)); print(str(type(vegetables))); print('-'*10); print(vegetables[0]); # Elemento 0 print(vegetables[1:]) # Primer elemento en adelante print(vegetables[2:]) # Segundo elemento en adelante print(vegetables[0:10000]) # Python es magico y anda print(vegetables[:]) # Copia todos los elementos en memoria ponele print(vegetables[1:3][::-1]) # Invierte la lista print('-'*10); vegetables.append("berenjena") # Agrega a la lista other_vegetables = ["brocoli", "coliflor", "lechuga"]; print(vegetables + other_vegetables); vegetables.extend(other_vegetables); print(vegetables); print('-'*10); a = [*vegetables, *other_vegetables]; print(a); b = [vegetables, other_vegetables]; print(b); c = ["d", *vegetables[1:3], "f", *other_vegetables] print(c); print('-'*10); for vegetable in vegetables: print(vegetable); print('-'*10); print(vegetables.pop()); print(vegetables.pop()); print(vegetables.pop()); print(vegetables.pop(0)); print(vegetables); vegetables.remove("acelga"); print(vegetables); print('-'*10); new_list = vegetables; # Referencia vegetables.append("acelga"); print(vegetables == new_list, vegetables, new_list) print(id(vegetables), id(new_list)); new_list = vegetables[:]; # Copia new_list.pop(); print(vegetables == new_list, vegetables, new_list) print(id(vegetables), id(new_list)); # Otras formas copia lista # new_list = vegetables.copy(); # new_list = list(vegetables); # new_list = [+vegetables];
class DashboardMixin(object): def getTitle(self): raise NotImplementedError("You must override this method in a child class.") def getContent(self): raise NotImplementedError("You must override this method in a child class.")
class Solution: def getSmallestString(self, n: int, k: int) -> str: def toChar(n): return chr(97 + n - 1) ans = [''] * n i = 0 while i < n: # how many spaces left to fill? left = n - i if k < left: # you got `left` spaces to fill, # but k is not enough # won't happen with a valid input pass if k - 26 < (left - 1): # if you subtract 26 from k, # there won't be enough k to # fill the remaining spaces. # subtract just enough so that # the remaining spaces can be filled # with just a's # k - x = left - 1 ans[i] = toChar(k - (left - 1)) i += 1 while i < n: ans[i] = 'a' i += 1 break ans[i] = 'z' k -= 26 i += 1 return ''.join(ans)[::-1]
def version(): if __grains__['os'] == 'eos': res = __salt__['napalm.pyeapi_run_commands']('show version') return res[0]['version'] else: return 'Not supported on this platform' def model(): if __grains__['os'] == 'eos': res = __salt__['napalm.pyeapi_run_commands']('show version') return res[0]['modelName'] else: return 'Not supported on this platform'
class Solution(object): def numTrees(self, n): """ :type n: int :rtype: int """ ## DP solution dp=[1,1]+[None for _ in range(n-1)] for x in range(2, n+1): t=0 for y in range(x): i=y j=x-1-y t+=dp[i]*dp[j] dp[x]=t return dp[n] if n>0 else 0 ## recursive solution if n==0: return 0 d={0:1,1:1,2:2,3:5} return self.f(n,d) def f(self, n, d): if n in d: return d[n] res=0 for x in range(n): i=x j=n-1-x res+=self.f(i,d)*self.f(j,d) d[n]=res return res
class digested_sequence: def __init__(ds, sticky0, sticky1, sequence): # Both sticky ends (left and right, respectively) encoded based on sticky stranded alphabet with respect to top sequence. ds.sticky0 = sticky0 ds.sticky1 = sticky1 # Top sequence between two sticky ends ds.sequence = sequence
class Publication: def __init__(self, title, price): self.title = title self.price = price class Periodical(Publication): def __init__(self, title, publisher, price, period): Publication.__init__(self, title, price) self.period = period self.publisher = publisher class Book(Publication): def __init__(self, title, author, pages, price): Publication.__init__(self, title, price) self.author = author self.pages = pages class Magazine(Periodical): def __init__(self, title, publisher, price, period): Periodical.__init__(self, title, publisher, price, period) class Newspaper(Periodical): def __init__(self, title, publisher, price, period): Periodical.__init__(self, title, publisher, price, period) b1 = Book("Brave New World", "Aldous Huxley", 311, 29.0) n1 = Newspaper("NY Times", "New York Times Company", 6.0, "Daily") m1 = Magazine("Scientific American", "Springer Nature", 5.99, "Monthly") # print(b1.author) # print(n1.publisher) # print(b1.price, m1.price, n1.price) print(isinstance(b1, Book)) # True print(isinstance(b1, Newspaper)) # False print(isinstance(b1, Publication)) # T/F? print(isinstance(m1, Magazine)) # True print(isinstance(m1, Periodical)) # True print(isinstance(m1, Publication)) # True p1 = Periodical("Scientific American", "Springer Nature", 5.99, "Monthly") print(isinstance(p1, Magazine), "isinstance(p1, Magazine)") # T/F? F print(isinstance(p1, Publication), "isinstance(p1, Publication)") # T/F? T print(isinstance(p1, Periodical), "isinstance(p1, Periodical)") # T/F? T
def configurations(): return { "components": { "kvstore": False, "web": True, "indexing": False, "dmc": True } }
""" Problem:https://www.hackerrank.com/challenges/triangle-quest-2/problem Author: Eda AYDIN """ for i in range(1, int(input()) + 1): print(((10 ** i) // 9) ** 2)
#!/bin/python3 if __name__ == '__main__': n = int(input()) english = list(map(int, input().split(' '))) b = int(input()) french = list(map(int, input().split(' '))) students = set(english).difference(french) print(len(students))
""" Loop while General form; while bool_expression: //execute loop Repeat until bool expression is True bool expression is all expression where the result is True or False Sample: num = 5 num < 5 # False num > 5 # False # sample 1 number = 1 while number < 10: # 1, 2, 3, 4, 5, 6, 7, 8, 9 print(number, end=", ") number = number + 1 # OBS Take care about stop criteria because can cause infinite loop Java or C while(expression){ //execution } # do while (C or Java) do { } while(expression); """ # Sample 2 answer = '' while answer != 'yes': answer = input('Did you finish Andrew? ')
class Ssh: def __init__(self,user,server,port,mode): self.user=user self.server=server self.port=port self.mode=mode @classmethod def fromconfig(cls, config): propbag={} for key, item in config: if key.strip()[0] == ";": continue propbag[key]=item return cls(propbag['user'],propbag['server'],propbag['port'],propbag['mode']) def get_command(self): if self.mode==0: return "" return "ssh {}@{}".format(self.user,self.server) def get_option(self): if self.mode==0: return [] return ["ssh","-p",""+self.port,"-l",self.user] def get_server(self): return self.server
# Verifique o parênteses da expressão parenteses = list() aberto = list() fechado = list() expressao = input('Digite a expressão: ') for pos, val in enumerate(expressao): if val == '(': aberto.append(pos) elif val == ')': fechado.append(pos) if len(aberto) != len(fechado): print('Expressão está inválida!') else: res = 'Expressão está válida!' for p in range(0, len(aberto)): if aberto[p] > fechado[p]: res = 'Expressão está inválida!' break print(res)
def extractLizonkanovelsWordpressCom(item): ''' Parser for 'lizonkanovels.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('bestial blade by priest', 'bestial blade', 'translated'), ('creatures of habit by meat in the shell', 'creatures of habit', 'translated'), ('seal cultivation for self-improvement by mo xiao xian', 'seal cultivation for self-improvement', 'translated'), ('PRC', 'PRC', 'translated'), ('Loiterous', 'Loiterous', 'oel'), ] for tagname, name, tl_type in tagmap: if tagname in item['tags']: return buildReleaseMessageWithType(item, name, vol, chp, frag=frag, postfix=postfix, tl_type=tl_type) return False
def debug( content ): print( "[*] " + str(content) , flush=True) def bad( content ): print( "[-] " + str(content) , flush=True) def good( content ): print( "[+] " + str(content) , flush=True) # sample output: # [*] Gimme yo money # [-] Money taken by chad. # [+] Chad receives the money.
nome = input('Qual é o seu nome: ') print('Prazer em te conhecer {:20}!'.format(nome)) print('Prazer em te conhecer {:>20}!'.format(nome)) print('Prazer em te conhecer {:<20}!'.format(nome)) print('Prazer em te conhecer {:=^20}!'.format(nome)) n1 = float(input('Digite o primeiro número ')) n2 = float(input('Digite o segundo número ')) soma = n1 + n2 multiplicacao = n1 * n2 divisao = n1 / n2 divisaoInteira = n1 // n2 esponenciacao = n1**n2 print('A soma vale: {:.3f} o produto {:.3f} e a divisão {:.3f}'.format(soma, multiplicacao, divisao), end=' ') print('Divisão {:.3f} e potencia {:.3f}'.format(divisao, esponenciacao))
# API Error Codes AUTHORIZATION_FAILED = 5 # Invalid access token PERMISSION_IS_DENIED = 7 CAPTCHA_IS_NEEDED = 14 ACCESS_DENIED = 15 # No access to call this method INVALID_USER_ID = 113 # User deactivated class VkException(Exception): pass class VkAuthError(VkException): pass class VkAPIError(VkException): __slots__ = ['error', 'code', 'message', 'request_params', 'redirect_uri'] CAPTCHA_NEEDED = 14 ACCESS_DENIED = 15 def __init__(self, error_data): super(VkAPIError, self).__init__() self.error_data = error_data self.code = error_data.get('error_code') self.message = error_data.get('error_msg') self.request_params = self.get_pretty_request_params(error_data) self.redirect_uri = error_data.get('redirect_uri') @staticmethod def get_pretty_request_params(error_data): request_params = error_data.get('request_params', ()) request_params = {param['key']: param['value'] for param in request_params} return request_params def is_access_token_incorrect(self): return self.code == self.ACCESS_DENIED and 'access_token' in self.message def is_captcha_needed(self): return self.code == self.CAPTCHA_NEEDED @property def captcha_sid(self): return self.error_data.get('captcha_sid') @property def captcha_img(self): return self.error_data.get('captcha_img') def __str__(self): error_message = '{self.code}. {self.message}. request_params = {self.request_params}'.format(self=self) if self.redirect_uri: error_message += ',\nredirect_uri = "{self.redirect_uri}"'.format(self=self) return error_message
def read_ims_legacy(name): data = {} dls = [] #should read in .tex file infile = open(name + ".tex") instring = infile.read() ##instring = instring.replace(':description',' :citation') ## to be deprecated soon instring = unicode(instring,'utf-8') meta = {} metatxt = instring.split('::')[1] meta['record_txt'] = '::' + metatxt.strip() + '\n\n' meta['bibtype'],rest= metatxt.split(None,1) meta['id'],rest= rest.split(None,1) rest = '\n' + rest.strip() secs = rest.split('\n:')[1:] for sec in secs: k,v = sec.split(None,1) meta[k] = v data['metadata'] = meta for x in instring.split('::person')[1:]: x = x.split('\n::')[0] d = {} d['record_txt'] = '::person ' + x.strip() + '\n' lines = d['record_txt'].split('\n') lines = [line for line in lines if not line.find('Email') >= 0 ] pubrecord = '\n'.join(lines) + '\n' d['public_record_txt'] = break_txt(pubrecord,80) secs = x.split('\n:') toplines = secs[0].strip() d['id'], toplines = toplines.split(None,1) try: name,toplines = toplines.split('\n',1) except: name = toplines toplines = '' d['complete_name'] = name #d['link_lines'] = toplines d['link_ls'] = lines2link_ls(toplines) for sec in secs[1:]: words = sec.split() key = words[0] if len(words) > 1: val = sec.split(None,1)[1] ## keep newlines else: val = '' if d.has_key(key): d[key] += [val] else: d[key] = [val] d['Honor'] = [ read_honor(x) for x in d.get('Honor',[]) ] d['Degree'] = [ read_degree(x) for x in d.get('Degree',[]) ] d['Education'] = [ read_education(x) for x in d.get('Education',[]) ] d['Service'] = [ read_service(x) for x in d.get('Service',[]) ] d['Position'] = [ read_position(x) for x in d.get('Position',[]) ] d['Member'] = [ read_member(x) for x in d.get('Member',[]) ] d['Image'] = [ read_image(x) for x in d.get('Image',[]) ] d['Homepage'] = [ read_homepage(x) for x in d.get('Homepage',[]) ] for k in bio_cat_order: #d['Biography'] = [ read_bio(x) for x in d.get('Biography',[]) ] d[k] = [ read_bio(x) for x in d.get(k,[]) ] dls += [d] links_txt = instring.split('::links',1)[1].split('\n::')[0] data['link_ls'] = links_txt2ls(links_txt) data['records'] = dls books = instring.split('::book')[1:] book_dict = {} for b in books: b = 'book' + b d = read_book(b) del d['top_line'] book_dict[ d['id'] ] = d data['books'] = book_dict links_txt = instring.split('::links',1)[1].split('\n::')[0] data['link_ls'] = links_txt2ls(links_txt) return data
# encoding: utf-8 # module Grasshopper.Kernel.Geometry.ConvexHull calls itself ConvexHull # from Grasshopper,Version=1.0.0.20,Culture=neutral,PublicKeyToken=dda4f5ec2cd80803 # by generator 1.145 """ NamespaceTracker represent a CLS namespace. """ # no imports # no functions # classes class Solver(object): # no doc @staticmethod def Compute(nodes,hull): """ Compute(nodes: Node2List,hull: List[int]) -> bool """ pass @staticmethod def ComputeHull(*__args): """ ComputeHull(pts: Node2List) -> Polyline ComputeHull(GH_pts: IEnumerable[GH_Point],plane: Plane) -> (Polyline,Plane) ComputeHull(GH_pts: IEnumerable[GH_Point]) -> Polyline """ pass
first_line = input().split() second_line = input().split() third_line = input().split() board_list = [ first_line, second_line, third_line ] first = '1' second = '2' empty = '0' first_win = [first] * 3 second_win = [second] * 3 is_first_player = False is_second_player = False diagonals = [ board_list[0][0], board_list[1][1], board_list[2][2], board_list[0][2], board_list[1][1], board_list[2][0] ] columns = [ board_list[0][0], board_list[1][0], board_list[2][0], board_list[0][1], board_list[1][1], board_list[2][1], board_list[0][2], board_list[1][2], board_list[2][2], ] for i in range(8): if first_line == first_win or second_line == first_win or third_line == first_win: is_first_player = True break if diagonals[:3] == first_win or diagonals[3:] == first_win: is_first_player = True break if columns[:3] == first_win or columns[3:6] == first_win or columns[6:] == first_win: is_first_player = True break if first_line == second_win or second_line == second_win or third_line == second_win: is_second_player = True break if diagonals[:3] == second_win or diagonals[3:] == second_win: is_second_player = True break if columns[:3] == second_win or columns[3:6] == second_win or columns[6:] == second_win: is_second_player = True break if is_first_player: message = 'First player won' elif is_second_player: message = 'Second player won' else: message = 'Draw!' print(message)
"""Exercício Python 4: Faça um programa que leia algo pelo teclado e mostre na tela o seu tipo primitivo e todas as informações possíveis sobre ele.""" n = input('Digite algo: ') print(f'O tipo primitivo desse valor é {type(n)}') print(f'Só tem espaços? {n.isspace()}') print(f'É um número? {n.isnumeric()}') print(f'É alfabético? {n.isalpha()}') print(f'Está em maiúsculas? {n.isupper()}') print(f'Está em minúsculas? {n.islower()}') print(f'está caítalizada? {n.istitle()}')
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Ввести список А из 10 элементов. Определить количество элементов, кратных 3 и индексы #последнего такого элемента. if __name__ == '__main__': u = tuple(map(int, input('Введите 10 чисел -->').split(maxsplit=10))) s = 0 for i in u: if i % 3 == 0 and i != 0: s += 1 print('Индексы кратных 3 =', i) print(s)
try: count = int(input("Give me a number: ")) except ValueError: print("That's not a number!") else: print("Hi " * count)
#Codigo: Variaveis #Autora: Carla Edila Silveira #Finalidade: exemplo de parte do codigo de um jogo da forca - curso Python Quick Start #Data: 21/09/2021 #começo do jogo da forca tentativas = 10 #variavel representa quantidade total de tentativas do jogo print(tentativas) #jogador 2 faz 1a tentativa tentativas -= 1 #variavel atualizada com subtracao de 1 print(tentativas) #jogador tenta de novo tentativas -= 1 #variavel atualizada com subtracao de 1 print(tentativas) #fim do codigo
def parse_frame_message(msg:str): """ Parses a CAN message sent from the PCAN module over the serial bus Example: 't1234DEADBEEF' - standard (11-bit) identifier message frame 'R123456784' - extended (29-bit) identifier request frame Returns a tuple with type, ID, size, and message Example: ('t', '00000123', '4', 'DEADBEEF') ('R', '00000123', '4') """ _type = msg[0:1] # type is the first character of the message _ext = _type == 'T' or _type == 'R' # Determine if the message is an extended (29-bit) identifier frame _rtr = _type.lower() == 'r' # Determine if the message is a request frame _id = msg[1:4] if not _ext else msg[1:9] # Grab the ID depending on length of it (type-dependent) _id = _id.zfill(8) _size = msg[4:5] if not _ext else msg[9:10] # Grab the data size if not _rtr: _data = msg[5:5+int(_size)*2+1] if not _ext else msg[10:10+int(_size)*2+1] # Get the message data bytes depending on the size indicated by _size else: _data = "" return(_type, _id, _size, _data) print(parse_frame_message('t1234DEADBEEF')) print(parse_frame_message('T000001234DEADBEEF')) print(parse_frame_message('r1234')) print(parse_frame_message('R000001234'))
""" News: main.py module """ def news_page_link(html_soup): """ Returns -> [str] link of news page. Params -> [requests.HTML object] HTML of web page. """ # Container div with all top news and p tag(at last) with more link news_div = html_soup.find("div#news_event", first=True) more_news_div_tag = news_div.find("div")[-1] more_news_a_tag = more_news_div_tag.find("a", first=True) more_news_link = html_soup.url + more_news_a_tag.attrs["href"] return more_news_link def get_top_news(html_soup): """ Returns -> [list] list of latest news News -> [Dict] attrs: 'title' -> [str] title of news 'link' -> [str] full link for the news Params -> [requests.HTML object] HTML of web page. """ # Container div with all top news news_div = html_soup.find("div#news_event", first=True) # list of divs containing news title and link news_items = news_div.find("div.event_text") top_news = [] for news in news_items: news_a_tag = news.find("a", first=True) title = news_a_tag.text link = news_a_tag.attrs.get("href") full_link = html_soup.url + link news_dict = {"title": title, "full_link": full_link} top_news.append(news_dict) return top_news def get_all_news(html_soup): """ Returns -> [list] list of all news News -> [Dict] attrs: 'title' -> [str] title of news 'link' -> [str] full link for the news 'date' -> [str] Date of news eg: 'content' -> [str] short summary of news [Note: content = 'News' or 5/6 words string most of time] Params -> [requests.HTML object] HTML of web page. """ all_news_div = html_soup.find("div#content_text", first=True) news = all_news_div.find("div#news") more_news = [] for news in news: date = news.find("div.date", first=True).text content = news.find("div.content", first=True).text title_div = news.find("div.title1", first=True) title = title_div.find("a", first=True).text link_div = news.find("div.more", first=True) link = html_soup.url + link_div.find("a", first=True).attrs.get("href") news_dict = {"date": date, "title": title, "content": content, "link": link} more_news.append(news_dict) return more_news
# -*- coding: utf-8 -*- ''' File name: code\long_products\sol_452.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #452 :: Long Products # # For more information see: # https://projecteuler.net/problem=452 # Problem Statement ''' Define F(m,n) as the number of n-tuples of positive integers for which the product of the elements doesn't exceed m. F(10, 10) = 571. F(106, 106) mod 1 234 567 891 = 252903833. Find F(109, 109) mod 1 234 567 891. ''' # Solution # Solution Approach ''' '''
[ { 'date': '2018-01-01', 'description': 'Ano Novo', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2018-02-13', 'description': 'Carnaval', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NRV' }, { 'date': '2018-03-30', 'description': 'Sexta-feira Santa', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NRV' }, { 'date': '2018-04-01', 'description': 'Páscoa', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NRV' }, { 'date': '2018-04-25', 'description': 'Dia da Liberdade', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2018-05-01', 'description': 'Dia do Trabalhador', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2018-05-31', 'description': 'Corpo de Deus', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NRV' }, { 'date': '2018-06-10', 'description': 'Dia de Portugal', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2018-08-15', 'description': 'Assunção de Nossa Senhora', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2018-10-05', 'description': 'Implantação da República', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2018-11-01', 'description': 'Dia de Todos os Santos', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2018-12-01', 'description': 'Restauração da Independência', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2018-12-08', 'description': 'Imaculada Conceição', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2018-12-25', 'description': 'Natal', 'locale': 'pt-PT', 'notes': '', 'region': '', 'type': 'NF' } ]
""" Ex 27 - make a program that reads from the keyboard the first and last name of a person """ name = str(input('Type your full name:')).upper().strip() pri = name.find(' ') ult = name.rfind(' ') print(f'Your first name is: {name[:pri]}') print(f'Your last name is: {name[ult:]}') input('Enter to exit')
x = int(input()) dentro = fora = 0 for y in range(0, x, 1): num = int(input()) if num >= 10 and num <= 20: dentro += 1 else: fora += 1; print('{} in'.format(dentro)) print('{} out'.format(fora))
# # PySNMP MIB module NNCFRINTSTATISTICS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NNCFRINTSTATISTICS-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:23:02 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") ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NncExtIntvlStateType, = mibBuilder.importSymbols("NNC-INTERVAL-STATISTICS-TC-MIB", "NncExtIntvlStateType") nncExtensions, NncExtCounter64 = mibBuilder.importSymbols("NNCGNI0001-SMI", "nncExtensions", "NncExtCounter64") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") TimeTicks, Integer32, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, ObjectIdentity, Unsigned32, ModuleIdentity, MibIdentifier, NotificationType, Bits, Counter64, iso, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Integer32", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "ObjectIdentity", "Unsigned32", "ModuleIdentity", "MibIdentifier", "NotificationType", "Bits", "Counter64", "iso", "Gauge32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") nncFrIntStatistics = ModuleIdentity((1, 3, 6, 1, 4, 1, 123, 3, 30)) if mibBuilder.loadTexts: nncFrIntStatistics.setLastUpdated('9803031200Z') if mibBuilder.loadTexts: nncFrIntStatistics.setOrganization('Newbridge Networks Corporation') if mibBuilder.loadTexts: nncFrIntStatistics.setContactInfo('Newbridge Networks Corporation Postal: 600 March Road Kanata, Ontario Canada K2K 2E6 Phone: +1 613 591 3600 Fax: +1 613 591 3680') if mibBuilder.loadTexts: nncFrIntStatistics.setDescription('This module contains definitions for performance monitoring of Frame Relay Streams') nncFrIntStatisticsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 123, 3, 30, 1)) nncFrIntStatisticsTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 123, 3, 30, 2)) nncFrIntStatisticsGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 123, 3, 30, 3)) nncFrIntStatisticsCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 123, 3, 30, 4)) nncFrStrStatCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1), ) if mibBuilder.loadTexts: nncFrStrStatCurrentTable.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentTable.setDescription('The nncFrStrStatCurrentTable contains objects for monitoring the performance of a frame relay stream during the current 1hr interval.') nncFrStrStatCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: nncFrStrStatCurrentEntry.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentEntry.setDescription('An entry in the 1hr current statistics table. Each conceptual row contains current interval statistics for a particular frame relay stream.') nncFrStrStatCurrentState = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 1), NncExtIntvlStateType()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentState.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentState.setDescription('The state of the current interval. The object provides a status for those entries which have been reset by the user or have been subject to a wall-clock time change.') nncFrStrStatCurrentAbsoluteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentAbsoluteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentAbsoluteIntervalNumber.setDescription('The absolute interval number of this interval.') nncFrStrStatCurrentInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 3), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInOctets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInOctets.setDescription('Number of bytes received on this stream.') nncFrStrStatCurrentOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 4), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutOctets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutOctets.setDescription('Number of bytes transmitted on this stream.') nncFrStrStatCurrentInUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 5), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInUCastPackets.setDescription('Number of unerrored, unicast frames received.') nncFrStrStatCurrentOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 6), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted.') nncFrStrStatCurrentInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 7), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscards.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscards.setDescription('Number of incoming frames discarded due to these reasons: policing, congestion.') nncFrStrStatCurrentOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 8), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscards.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscards.setDescription('Number of outgoing frames discarded due to these reasons: policing, congestion.') nncFrStrStatCurrentInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 9), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInErrors.setDescription('Number of incoming frames discarded due to errors: invalid lengths, non-integral bytes, CRC errors, bad encapsulation, invalid EA, reserved DLCI') nncFrStrStatCurrentOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 10), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutErrors.setDescription('Number of outgoing frames discarded due to errors: eg. bad encapsulation.') nncFrStrStatCurrentSigUserProtErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 11), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentSigUserProtErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentSigUserProtErrors.setDescription('Number of user-side local in-channel signalling protocol errors (protocol discriminator, message type, call reference & mandatory information eleement errors) for this uni/nni stream. If the stream is not perfor- ming user-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentSigNetProtErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 12), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentSigNetProtErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentSigNetProtErrors.setDescription('Number of network-side local in-channel signalling protocol errors (protocol discriminator, message type, call reference & mandatory information eleement errors) for this uni/nni stream. If the stream is not perfor- ming network-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentSigUserLinkRelErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 13), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentSigUserLinkRelErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentSigUserLinkRelErrors.setDescription('Number of user-side local in-channel signalling link reliability errors (non receipt of Enq/Status messages or invalid sequence numbers in a link integrity verifi- cation information element) for this stream. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentSigNetLinkRelErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 14), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentSigNetLinkRelErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentSigNetLinkRelErrors.setDescription('Number of network-side local in-channel signalling link reliability errors (non receipt of Enq/Status messages or invalid sequence numbers in a link integrity verification information element) for this stream. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentSigUserChanInactive = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 15), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentSigUserChanInactive.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentSigUserChanInactive.setDescription('Number of times the user-side channel was declared inactive (N2 errors in N3 events) for this stream. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentSigNetChanInactive = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 16), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentSigNetChanInactive.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentSigNetChanInactive.setDescription('Number of times the network-side channel was declared inactive (N2 errors in N3 events) for this stream. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStSCAlarms = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStSCAlarms.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStSCAlarms.setDescription('Number of one second intervals for which the stream entered the severely congested state.') nncFrStrStatCurrentStTimeSC = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 18), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStTimeSC.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStTimeSC.setDescription("Period of time the stream was in the severely congested state during the current interval (expressed in 10's of milliseconds). Divide into the entire length of the interval to get a ratio.") nncFrStrStatCurrentStMaxDurationRED = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStMaxDurationRED.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStMaxDurationRED.setDescription('Longest period of time the stream spent in the Red (severely congested) state, expressed in seconds.') nncFrStrStatCurrentStMCAlarms = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStMCAlarms.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStMCAlarms.setDescription('Number of one second intervals for which the stream entered the mildly congested state.') nncFrStrStatCurrentStTimeMC = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 21), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStTimeMC.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStTimeMC.setDescription("Period of time the stream was in the mildly congested state during the current interval (expressed in 10's of milliseconds). Divide into the entire length of the interval to get a ratio.") nncFrStrStatCurrentOutLinkUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 22), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutLinkUtilization.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutLinkUtilization.setDescription('The percentage utilization on the outgoing link during the current interval.') nncFrStrStatCurrentInLinkUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 23), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInLinkUtilization.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInLinkUtilization.setDescription('The percentage utilization on the incoming link during the current interval.') nncFrStrStatCurrentInInvdLength = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 24), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInInvdLength.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInInvdLength.setDescription('Number of frames discarded because there was no data in the frame, or because the frame exceeded the maximum allowed length.') nncFrStrStatCurrentStLastErroredDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8388607))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLastErroredDLCI.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLastErroredDLCI.setDescription('DLCI of the most recent DLC to receive invalid frames on this frame stream.') nncFrStrStatCurrentInDiscdOctetsCOS = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 26), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdOctetsCOS.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdOctetsCOS.setDescription('Number of ingress bytes discarded due to receive Class-of-Service procedures.') nncFrStrStatCurrentInDiscdCOSDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 27), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdCOSDESet.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdCOSDESet.setDescription('Number of ingress frames discarded due to receive Class-of-Service procedures, in which the DE bit was set.') nncFrStrStatCurrentInDiscdCOSDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 28), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdCOSDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdCOSDEClr.setDescription('Number of ingress frames discarded due to receive Class-of-Service procedures, in which the DE bit was not set.') nncFrStrStatCurrentInDiscdBadEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 29), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdBadEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdBadEncaps.setDescription('Number of ingress frames discarded due to having a bad RFC1490 encapsulation header.') nncFrStrStatCurrentOutDiscdBadEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 30), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscdBadEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscdBadEncaps.setDescription('Number of egress frames discarded due to having a bad RFC1483 encapsulation header.') nncFrStrStatCurrentInDiscdUnsupEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 31), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdUnsupEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdUnsupEncaps.setDescription('Number of ingress frames discarded due to having an unsupported RFC1490 encapsulation header.') nncFrStrStatCurrentOutDiscdUnsupEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 32), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscdUnsupEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscdUnsupEncaps.setDescription('Number of egress frames discarded due to having an unsupported RFC1483 encapsulation header.') nncFrStrStatCurrentOutDiscdDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 33), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscdDESet.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscdDESet.setDescription('Number of egress frames discarded due to transmit congestion procedures, in which the DE bit was set.') nncFrStrStatCurrentOutDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 34), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutDiscdDEClr.setDescription('Number of egress frames discarded due to transmit congestion procedures, in which the DE bit was not set.') nncFrStrStatCurrentInDiscdDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 35), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdDESet.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdDESet.setDescription('Number of ingress frames discarded due to receive congestion procedures, in which the DE bit was set.') nncFrStrStatCurrentInDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 36), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInDiscdDEClr.setDescription('Number of ingress frames discarded due to receive congestion procedures, in which the DE bit was not set.') nncFrStrStatCurrentStLMSigInvldField = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 37), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigInvldField.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigInvldField.setDescription('Number of Status signalling frames with incorrect values for the Unnumbered Information Frame field, Protocol Discrimator field, or Call Reference Field.') nncFrStrStatCurrentStLMSigUnsupMsgType = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 38), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigUnsupMsgType.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigUnsupMsgType.setDescription('Number of Status signalling frames that are not a Status or Status Enquiry messsage (Unsupported message type).') nncFrStrStatCurrentStLMSigInvldEID = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 39), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigInvldEID.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigInvldEID.setDescription('Number of Status signalling frames with an IEID that is not a Report Type IEID, Keep Alive Sequence IEID, or a PVC Status IEID.') nncFrStrStatCurrentStLMSigInvldIELen = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 40), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigInvldIELen.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigInvldIELen.setDescription('Number of Status signalling frames with an IE length field size that does not conform with the Frame Relay status signalling protocol.') nncFrStrStatCurrentStLMSigInvldRepType = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 41), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigInvldRepType.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigInvldRepType.setDescription('Number of Status signalling frames with a Report Type IE that were not a Full Report Type or a Keep Alive Confirmation.') nncFrStrStatCurrentStLMSigFrmWithNoIEs = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 42), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigFrmWithNoIEs.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMSigFrmWithNoIEs.setDescription('Number of Status signalling frames that terminate before the IE appears.') nncFrStrStatCurrentStUserSequenceErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 43), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStUserSequenceErrs.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStUserSequenceErrs.setDescription('Number of status signalling frames received with a Last Received Sequence number that is inconsistent with the expected value, the last transmitted Current Sequence Number. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStNetSequenceErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 44), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStNetSequenceErrs.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStNetSequenceErrs.setDescription('Number of status signalling frames received with a Last Received Sequence number that is inconsistent with the expected value, the last transmitted Current Sequence Number. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStLMUTimeoutsnT1 = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 45), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMUTimeoutsnT1.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMUTimeoutsnT1.setDescription('Number of times the link integrity verification interval has been exceeded without receiving a Status message. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStLMUStatusMsgsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 46), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMUStatusMsgsRcvd.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMUStatusMsgsRcvd.setDescription('Number of Status messages received. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStLMUStatusENQMsgsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 47), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMUStatusENQMsgsSent.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMUStatusENQMsgsSent.setDescription('Number of Status Enquiry messages sent. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStLMUAsyncStatusRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 48), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMUAsyncStatusRcvd.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMUAsyncStatusRcvd.setDescription('Number of asynchronous Update Status messages received. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStLMNTimeoutsnT2 = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 49), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMNTimeoutsnT2.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMNTimeoutsnT2.setDescription('Number of times the polling verification interval was exceeded without receivung a Keep Alive Sequence. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStLMNStatusMsgsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 50), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMNStatusMsgsSent.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMNStatusMsgsSent.setDescription('Number of Status messages sent. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStLMNStatusENQMsgsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 51), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMNStatusENQMsgsRcvd.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMNStatusENQMsgsRcvd.setDescription('Number of Status Enquiry messages received. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentStLMNAsyncStatusSent = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 52), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStLMNAsyncStatusSent.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStLMNAsyncStatusSent.setDescription('Number of asynchronous Update Status messages transmitted. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatCurrentInCRCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 53), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInCRCErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInCRCErrors.setDescription('Number of frames with an incorrect CRC-16 value.') nncFrStrStatCurrentInNonIntegral = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 54), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInNonIntegral.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInNonIntegral.setDescription('Number of frames with a non-integral number of octets between the delimiting HDLC flags.') nncFrStrStatCurrentInReservedDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 55), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInReservedDLCI.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInReservedDLCI.setDescription('Number of frames with a DLCI that cannot be assigned to user connections.') nncFrStrStatCurrentInInvldEA = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 56), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInInvldEA.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInInvldEA.setDescription('Number of frames with the EA (extended address) bit incorrectly set.') nncFrStrStatCurrentStFrmTooSmall = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 57), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStFrmTooSmall.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStFrmTooSmall.setDescription('Number of frames that are smaller than the allowed minimum size.') nncFrStrStatCurrentInAborts = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 58), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInAborts.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInAborts.setDescription('Number of aborted frames.') nncFrStrStatCurrentInSumOfDisagremnts = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 59), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInSumOfDisagremnts.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInSumOfDisagremnts.setDescription('Total number of frames discarded because: the frame relay UNI or ICI was unavailable to accept frame traffic, the frame had a DLCI not available for end-user connections, the DLCI was inactive, the frame exceeded the maximum configured frame length (but its length was legal within the frame relay protocol), the frame violated the configured address field size (but had a legal address field size with the frame relay protocol), or was an unexpected status signalling frame.') nncFrStrStatCurrentInOverRuns = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 60), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentInOverRuns.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentInOverRuns.setDescription('Number of times the receiver was forced to overrun.') nncFrStrStatCurrentOutUnderRuns = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 61), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentOutUnderRuns.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentOutUnderRuns.setDescription('Number of times the transmitter was forced to underrun.') nncFrStrStatCurrentStIntervalDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 62), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentStIntervalDuration.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentStIntervalDuration.setDescription('Duration of the statistics accumulation interval.') nncFrStrStatCurrentBestEffortPeakDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 63), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortPeakDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortPeakDelay.setDescription('The largest delay experienced by any frame that was transmitted on the stream in service category Best Effort.') nncFrStrStatCurrentCommittedPeakDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 64), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedPeakDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedPeakDelay.setDescription('The largest delay experienced by any frame that was transmitted on the stream in service category: Committed Throughptut.') nncFrStrStatCurrentLowDelayPeakDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 65), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayPeakDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayPeakDelay.setDescription('The largest delay experienced by any frame that was transmitted on the stream in service category: Low Delay.') nncFrStrStatCurrentRealTimePeakDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 66), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimePeakDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimePeakDelay.setDescription('The largest delay experienced by any frame that was transmitted on the stream in service category Real Time.') nncFrStrStatCurrentBestEffortAccDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 67), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortAccDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortAccDelay.setDescription('The accumulated delay experienced by all frames in a stream transmitted in service category Best Effort. Combined with the Out Ucast Packets for service category Best Effort, the average delay per frame can be calculated.') nncFrStrStatCurrentCommittedAccDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 68), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedAccDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedAccDelay.setDescription('The accumulated delay experienced by all frames in a stream transmitted in service category Committed Throughput. Combined with the Out Ucast Packets for service category Committed Throughput, the average delay per frame can be calculated.') nncFrStrStatCurrentLowDelayAccDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 69), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayAccDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayAccDelay.setDescription('The accumulated delay experienced by all frames in a stream transmitted in service category Low Delay. Combined with the Out Ucast Packets for service category Low Delay, the average delay per frame can be calculated.') nncFrStrStatCurrentRealTimeAccDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 70), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimeAccDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimeAccDelay.setDescription('The accumulated delay experienced by all frames in a stream transmitted in service category Real Time. Combined with the Out Ucast Packets for service category Real Time, the average delay per frame can be calculated.') nncFrStrStatCurrentBestEffortOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 71), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted in service category Best Effort.') nncFrStrStatCurrentCommittedOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 72), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted in service category Committed Throughput.') nncFrStrStatCurrentLowDelayOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 73), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted in service category Low Delay.') nncFrStrStatCurrentRealTimeOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 74), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimeOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimeOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted in service category Real Time.') nncFrStrStatCurrentBestEffortUCastPacketsDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 75), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortUCastPacketsDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortUCastPacketsDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set transmitted in service category Best Effort.') nncFrStrStatCurrentCommittedUCastPacketsDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 76), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedUCastPacketsDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedUCastPacketsDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set transmitted in service category Committed Throughput.') nncFrStrStatCurrentLowDelayUCastPacketsDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 77), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayUCastPacketsDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayUCastPacketsDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set transmitted in service category Low Delay.') nncFrStrStatCurrentRealTimeUCastPacketsDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 78), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimeUCastPacketsDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimeUCastPacketsDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, transmitted in service category Real Time.') nncFrStrStatCurrentBestEffortDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 79), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentBestEffortDiscdDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, discarded by QoS procedures in service category Best Effort.') nncFrStrStatCurrentCommittedDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 80), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentCommittedDiscdDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, discarded by QoS procedures in service category Committed Throughput.') nncFrStrStatCurrentLowDelayDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 81), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentLowDelayDiscdDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, discarded by QoS procedures in service category Low Delay.') nncFrStrStatCurrentRealTimeDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 1, 1, 82), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimeDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentRealTimeDiscdDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, discarded by QoS procedures in service category Real Time.') nncFrStrStatIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2), ) if mibBuilder.loadTexts: nncFrStrStatIntervalTable.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalTable.setDescription('The nncFrStrStatIntervalTable contains objects for monitoring the performance of a frame relay stream over M historical intervals of 1hr each.') nncFrStrStatIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalNumber")) if mibBuilder.loadTexts: nncFrStrStatIntervalEntry.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalEntry.setDescription('An entry in the 1hr interval statistics table. Each conceptual row contains interval statistics for a par- ticular interval on a particular stream.') nncFrStrStatIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))) if mibBuilder.loadTexts: nncFrStrStatIntervalNumber.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalNumber.setDescription('The interval number (N) of the statistics in this row.') nncFrStrStatIntervalState = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 2), NncExtIntvlStateType()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalState.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalState.setDescription('The state of the interval represented by this row. The object provides a status for those entries which have been reset by the user or subject to a wall-clock time change.') nncFrStrStatIntervalAbsoluteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))) if mibBuilder.loadTexts: nncFrStrStatIntervalAbsoluteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalAbsoluteIntervalNumber.setDescription('The absolute interval number of this interval.') nncFrStrStatIntervalInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 4), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInOctets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInOctets.setDescription('Number of bytes received on this stream.') nncFrStrStatIntervalOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 5), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutOctets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutOctets.setDescription('Number of bytes transmitted on this stream.') nncFrStrStatIntervalInUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 6), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInUCastPackets.setDescription('Number of unerrored, unicast frames received.') nncFrStrStatIntervalOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 7), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted.') nncFrStrStatIntervalInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 8), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscards.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscards.setDescription('Number of incoming frames discarded due to these reasons: policing, congestion.') nncFrStrStatIntervalOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 9), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscards.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscards.setDescription('Number of outgoing frames discarded due to these reasons: policing, congestion.') nncFrStrStatIntervalInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 10), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInErrors.setDescription('Number of incoming frames discarded due to errors: eg. invalid lengths, non-integral bytes...') nncFrStrStatIntervalOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 11), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutErrors.setDescription('Number of outgoing frames discarded due to errors: eg. bad encapsulation.') nncFrStrStatIntervalSigUserProtErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 12), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalSigUserProtErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalSigUserProtErrors.setDescription('Number of user-side local in-channel signalling protocol errors (protocol discriminator, message type, call reference & mandatory information eleement errors) for this uni/nni stream. If the stream is not perfor- ming user-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalSigNetProtErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 13), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalSigNetProtErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalSigNetProtErrors.setDescription('Number of network-side local in-channel signalling protocol errors (protocol discriminator, message type, call reference & mandatory information eleement errors) for this uni/nni stream. If the stream is not perfor- ming network-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalSigUserLinkRelErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 14), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalSigUserLinkRelErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalSigUserLinkRelErrors.setDescription('Number of user-side local in-channel signalling link reliability errors (non receipt of Enq/Status messages or invalid sequence numbers in a link integrity verifi- cation information element) for this stream. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalSigNetLinkRelErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 15), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalSigNetLinkRelErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalSigNetLinkRelErrors.setDescription('Number of network-side local in-channel signalling link reliability errors (non receipt of Enq/Status messages or invalid sequence numbers in a link integrity verification information element) for this stream. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalSigUserChanInactive = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 16), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalSigUserChanInactive.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalSigUserChanInactive.setDescription('Number of times the user-side channel was declared inactive (N2 errors in N3 events) for this stream. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalSigNetChanInactive = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 17), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalSigNetChanInactive.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalSigNetChanInactive.setDescription('Number of times the network-side channel was declared inactive (N2 errors in N3 events) for this stream. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStSCAlarms = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStSCAlarms.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStSCAlarms.setDescription('Number of one second intervals for which the stream entered the severely congested state.') nncFrStrStatIntervalStTimeSC = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 19), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStTimeSC.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStTimeSC.setDescription("Period of time the stream was in the severely congested state during the designated interval (expressed in 10's of milliseconds). Divide into the entire length of the interval to get a ratio.") nncFrStrStatIntervalStMaxDurationRED = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStMaxDurationRED.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStMaxDurationRED.setDescription('Longest period of time the stream spent in the Red (severely congested) state, expressed in seconds.') nncFrStrStatIntervalStMCAlarms = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStMCAlarms.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStMCAlarms.setDescription('Number of one second intervals for which the stream entered the mildly congested state.') nncFrStrStatIntervalStTimeMC = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 22), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStTimeMC.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStTimeMC.setDescription("Period of time the stream was in the mildly congested state during the designated interval (expressed in 10's of milliseconds). Divide into the entire length of the interval to get a ratio.") nncFrStrStatIntervalOutLinkUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 23), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutLinkUtilization.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutLinkUtilization.setDescription('The percentage utilization on the outgoing link during the designated interval.') nncFrStrStatIntervalInLinkUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 24), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInLinkUtilization.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInLinkUtilization.setDescription('The percentage utilization on the incoming link during the designated interval.') nncFrStrStatIntervalInInvdLength = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 25), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInInvdLength.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInInvdLength.setDescription('Number of frames discarded because there was no data in the frame, or because the frame exceeded the maximum allowed length.') nncFrStrStatIntervalStLastErroredDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 8388607))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLastErroredDLCI.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLastErroredDLCI.setDescription('DLCI of the most recent DLC to receive invalid frames on this frame stream.') nncFrStrStatIntervalInDiscdOctetsCOS = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 27), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdOctetsCOS.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdOctetsCOS.setDescription('Number of ingress bytes discarded due to receive Class-of-Service procedures.') nncFrStrStatIntervalInDiscdCOSDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 28), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdCOSDESet.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdCOSDESet.setDescription('Number of ingress frames discarded due to receive Class-of-Service procedures, in which the DE bit was set.') nncFrStrStatIntervalInDiscdCOSDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 29), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdCOSDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdCOSDEClr.setDescription('Number of ingress frames discarded due to receive Class-of-Service procedures, in which the DE bit was not set.') nncFrStrStatIntervalInDiscdBadEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 30), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdBadEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdBadEncaps.setDescription('Number of ingress frames discarded due to having a bad RFC1490 encapsulation header.') nncFrStrStatIntervalOutDiscdBadEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 31), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscdBadEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscdBadEncaps.setDescription('Number of egress frames discarded due to having a bad RFC1483 encapsulation header.') nncFrStrStatIntervalInDiscdUnsupEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 32), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdUnsupEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdUnsupEncaps.setDescription('Number of ingress frames discarded due to having an unsupported RFC1490 encapsulation header.') nncFrStrStatIntervalOutDiscdUnsupEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 33), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscdUnsupEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscdUnsupEncaps.setDescription('Number of egress frames discarded due to having an unsupported RFC1483 encapsulation header.') nncFrStrStatIntervalOutDiscdDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 34), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscdDESet.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscdDESet.setDescription('Number of egress frames discarded due to transmit congestion procedures, in which the DE bit was set.') nncFrStrStatIntervalOutDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 35), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutDiscdDEClr.setDescription('Number of egress frames discarded due to transmit congestion procedures, in which the DE bit was not set.') nncFrStrStatIntervalInDiscdDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 36), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdDESet.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdDESet.setDescription('Number of ingress frames discarded due to receive congestion procedures, in which the DE bit was set.') nncFrStrStatIntervalInDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 37), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInDiscdDEClr.setDescription('Number of ingress frames discarded due to receive congestion procedures, in which the DE bit was not set.') nncFrStrStatIntervalStLMSigInvldField = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 38), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigInvldField.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigInvldField.setDescription('Number of Status signalling frames with incorrect values for the Unnumbered Information Frame field, Protocol Discriminator field, or Call Reference Field.') nncFrStrStatIntervalStLMSigUnsupMsgType = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 39), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigUnsupMsgType.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigUnsupMsgType.setDescription('Number of Status signalling frames that are not a Status or Status Enquiry messsage (Unsupported message type).') nncFrStrStatIntervalStLMSigInvldEID = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 40), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigInvldEID.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigInvldEID.setDescription('Number of Status signalling frames with an IEID that is not a Report Type IEID, Keep Alive Sequence IEID, or a PVC Status IEID.') nncFrStrStatIntervalStLMSigInvldIELen = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 41), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigInvldIELen.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigInvldIELen.setDescription('Number of Status signalling frames with an IE length field size that does not conform with the Frame Relay status signalling protocol.') nncFrStrStatIntervalStLMSigInvldRepType = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 42), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigInvldRepType.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigInvldRepType.setDescription('Number of Status signalling frames with a Report Type IE that were not a Full Report Type or a Keep Alive Confirmation.') nncFrStrStatIntervalStLMSigFrmWithNoIEs = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 43), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigFrmWithNoIEs.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMSigFrmWithNoIEs.setDescription('Number of Status signalling frames that terminate before the IE appears.') nncFrStrStatIntervalStUserSequenceErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 44), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStUserSequenceErrs.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStUserSequenceErrs.setDescription('Number of status signalling frames received with a Last Received Sequence number that is inconsistent with the expected value, the last transmitted Interval Sequence Number. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStNetSequenceErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 45), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStNetSequenceErrs.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStNetSequenceErrs.setDescription('Number of status signalling frames received with a Last Received Sequence number that is inconsistent with the expected value, the last transmitted Interval Sequence Number. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStLMUTimeoutsnT1 = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 46), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMUTimeoutsnT1.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMUTimeoutsnT1.setDescription('Number of times the link integrity verification interval has been exceeded without receiving a Status message. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStLMUStatusMsgsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 47), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMUStatusMsgsRcvd.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMUStatusMsgsRcvd.setDescription('Number of Status messages received. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStLMUStatusENQMsgsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 48), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMUStatusENQMsgsSent.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMUStatusENQMsgsSent.setDescription('Number of Status Enquiry messages sent. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStLMUAsyncStatusRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 49), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMUAsyncStatusRcvd.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMUAsyncStatusRcvd.setDescription('Number of asynchronous Update Status messages received. If the stream is not performing user-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStLMNTimeoutsnT2 = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 50), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMNTimeoutsnT2.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMNTimeoutsnT2.setDescription('Number of times the polling verification interval was exceeded without receivung a Keep Alive Sequence. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStLMNStatusMsgsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 51), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMNStatusMsgsSent.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMNStatusMsgsSent.setDescription('Number of Status messages sent. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStLMNStatusENQMsgsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 52), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMNStatusENQMsgsRcvd.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMNStatusENQMsgsRcvd.setDescription('Number of Status Enquiry messages received. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalStLMNAsyncStatusSent = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 53), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStLMNAsyncStatusSent.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStLMNAsyncStatusSent.setDescription('Number of asynchronous Update Status messages transmitted. If the stream is not performing network-side procedures, this value is equal to noSuchName.') nncFrStrStatIntervalInCRCErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 54), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInCRCErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInCRCErrors.setDescription('Number of frames with an incorrect CRC-16 value.') nncFrStrStatIntervalInNonIntegral = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 55), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInNonIntegral.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInNonIntegral.setDescription('Number of frames with a non-integral number of octets between the delimiting HDLC flags.') nncFrStrStatIntervalInReservedDLCI = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 56), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInReservedDLCI.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInReservedDLCI.setDescription('Number of frames with a DLCI that cannot be assigned to user connections.') nncFrStrStatIntervalInInvldEA = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 57), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInInvldEA.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInInvldEA.setDescription('Number of frames with the EA (extended address) bit incorrectly set.') nncFrStrStatIntervalStFrmTooSmall = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 58), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStFrmTooSmall.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStFrmTooSmall.setDescription('Number of frames that are smaller than the allowed minimum size.') nncFrStrStatIntervalInAborts = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 59), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInAborts.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInAborts.setDescription('Number of aborted frames.') nncFrStrStatIntervalInSumOfDisagremnts = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 60), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInSumOfDisagremnts.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInSumOfDisagremnts.setDescription('Total number of frames discarded because: the frame relay UNI or ICI was unavailable to accept frame traffic, the frame had a DLCI not available for end-user connections, the DLCI was inactive, the frame exceeded the maximum configured frame length (but its length was legal within the frame relay protocol), the frame violated the configured address field size (but had a legal address field size with the frame relay protocol), or was an unexpected status signalling frame.') nncFrStrStatIntervalInOverRuns = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 61), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalInOverRuns.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalInOverRuns.setDescription('Number of times the receiver was forced to overrun.') nncFrStrStatIntervalOutUnderRuns = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 62), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalOutUnderRuns.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalOutUnderRuns.setDescription('Number of times the transmitter was forced to underrun.') nncFrStrStatIntervalStIntervalDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 63), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalStIntervalDuration.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalStIntervalDuration.setDescription('Duration of the statistics accumulation interval.') nncFrStrStatIntervalBestEffortPeakDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 64), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortPeakDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortPeakDelay.setDescription('The largest delay experienced by any frame that was transmitted on the stream in service category Best Effort.') nncFrStrStatIntervalCommittedPeakDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 65), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedPeakDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedPeakDelay.setDescription('The largest delay experienced by any frame that was transmitted on the stream in service category: Committed Throughptut.') nncFrStrStatIntervalLowDelayPeakDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 66), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayPeakDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayPeakDelay.setDescription('The largest delay experienced by any frame that was transmitted on the stream in service category: Low Delay.') nncFrStrStatIntervalRealTimePeakDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 67), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(1, 60000))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimePeakDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimePeakDelay.setDescription('The largest delay experienced by any frame that was transmitted on the stream in service category Real Time.') nncFrStrStatIntervalBestEffortAccDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 68), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortAccDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortAccDelay.setDescription('The accumulated delay experienced by all frames in a stream transmitted in service category Best Effort. Combined with the Out Ucast Packets for service category Best Effort, the average delay per frame can be calculated.') nncFrStrStatIntervalCommittedAccDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 69), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedAccDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedAccDelay.setDescription('The accumulated delay experienced by all frames in a stream transmitted in service category Committed Throughput. Combined with the Out Ucast Packets for service category Committed Throughput, the average delay per frame can be calculated.') nncFrStrStatIntervalLowDelayAccDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 70), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayAccDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayAccDelay.setDescription('The accumulated delay experienced by all frames in a stream transmitted in service category Low Delay. Combined with the Out Ucast Packets for service category Low Delay, the average delay per frame can be calculated.') nncFrStrStatIntervalRealTimeAccDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 71), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimeAccDelay.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimeAccDelay.setDescription('The accumulated delay experienced by all frames in a stream transmitted in service category Real Time. Combined with the Out Ucast Packets for service category Real Time, the average delay per frame can be calculated.') nncFrStrStatIntervalBestEffortOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 72), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted in service category Best Effort.') nncFrStrStatIntervalCommittedOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 73), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted in service category Committed Throughput.') nncFrStrStatIntervalLowDelayOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 74), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted in service category Low Delay.') nncFrStrStatIntervalRealTimeOutUCastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 75), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimeOutUCastPackets.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimeOutUCastPackets.setDescription('Number of unerrored, unicast frames transmitted in service category Real Time.') nncFrStrStatIntervalBestEffortUCastPacketsDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 76), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortUCastPacketsDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortUCastPacketsDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set transmitted in service category Best Effort.') nncFrStrStatIntervalCommittedUCastPacketsDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 77), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedUCastPacketsDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedUCastPacketsDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set transmitted in service category Committed Throughput.') nncFrStrStatIntervalLowDelayUCastPacketsDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 78), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayUCastPacketsDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayUCastPacketsDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set transmitted in service category Low Delay.') nncFrStrStatIntervalRealTimeUCastPacketsDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 79), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimeUCastPacketsDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimeUCastPacketsDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, transmitted in service category Real Time.') nncFrStrStatIntervalBestEffortDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 80), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalBestEffortDiscdDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, discarded by QoS procedures in service category Best Effort.') nncFrStrStatIntervalCommittedDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 81), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalCommittedDiscdDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, discarded by QoS procedures in service category Committed Throughput.') nncFrStrStatIntervalLowDelayDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 82), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalLowDelayDiscdDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, discarded by QoS procedures in service category Low Delay.') nncFrStrStatIntervalRealTimeDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 2, 1, 83), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimeDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalRealTimeDiscdDEClr.setDescription('Number of unerrored, unicast frames with the DE bit not set, discarded by QoS procedures in service category Real Time.') nncFrPVCEndptStatCurrentTable = MibTable((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3), ) if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentTable.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentTable.setDescription('The nncFrPVCEndptStatCurrentTable contains objects for monitoring performance of a frame relay endpoint during the current 1hr interval.') nncFrPVCEndptStatCurrentEntry = MibTableRow((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentDLCINumber")) if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentEntry.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentEntry.setDescription('An entry in the 1hr current statistics table. Each conceptual row contains current interval statistics for a particular PVC Endpoint.') nncFrPVCEndptStatCurrentDLCINumber = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1024))) if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentDLCINumber.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentDLCINumber.setDescription('The DLCI number of the stream to which statistics in this row belong.') nncFrPVCEndptStatCurrentState = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 2), NncExtIntvlStateType()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentState.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentState.setDescription('The state of the current interval. The object provides a status for those entries which have been reset by the user or have been subject to a wall-clock time change.') nncFrPVCEndptStatCurrentAbsoluteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))) if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentAbsoluteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentAbsoluteIntervalNumber.setDescription('The absolute interval number of this interval.') nncFrPVCEndptStatCurrentInFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 4), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInFrames.setDescription('Number of frames received on this PVC Endpoint.') nncFrPVCEndptStatCurrentOutFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 5), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutFrames.setDescription('Number of frames transmitted on this PVC Endpoint.') nncFrPVCEndptStatCurrentInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 6), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInOctets.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInOctets.setDescription('Number of bytes received on this PVC Endpoint.') nncFrPVCEndptStatCurrentOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 7), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutOctets.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutOctets.setDescription('Number of bytes transmitted on this PVC Endpoint.') nncFrPVCEndptStatCurrentInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 8), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscards.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscards.setDescription('Number of frames received by the network (ingress) that were discarded due to traffic enforcement for this PVC Endpoint.') nncFrPVCEndptStatCurrentOutExcessFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 9), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutExcessFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutExcessFrames.setDescription('Number of frames transmitted by the network (egress) for this PVC Endpoint that were treated as excess traffic (the DE bit may be set to one).') nncFrPVCEndptStatCurrentInDEFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 10), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDEFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDEFrames.setDescription('Number of frames received by the network (ingress) with the DE bit set to (1) for the PVC Endpoint.') nncFrPVCEndptStatCurrentInCosTagDeFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 11), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInCosTagDeFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInCosTagDeFrames.setDescription('Number of frames received by the network (ingress) for this PVC Endpoint that were policed from normal to excess traffic (the DE bit was set to one) and transmitted.') nncFrPVCEndptStatCurrentInOctetsDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 12), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInOctetsDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInOctetsDESet.setDescription('Number of bytes received on this PVC Endpoint with the DE bit set.') nncFrPVCEndptStatCurrentInFramesBECNSet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 13), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInFramesBECNSet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInFramesBECNSet.setDescription('Number of frames received by the network (ingress) for this PVC Endpoint that had the BECN bit set.') nncFrPVCEndptStatCurrentInFramesFECNSet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 14), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInFramesFECNSet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInFramesFECNSet.setDescription('Number of frames received by the network (ingress) for this PVC Endpoint that had the FECN bit set.') nncFrPVCEndptStatCurrentInInvdLength = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 15), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInInvdLength.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInInvdLength.setDescription('Number of frames received by the network (ingress) for this PVC Endpoint that were discarded because the frame had no data, or the data exceeded the maximum allowed length.') nncFrPVCEndptStatCurrentOutOctetsDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 16), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutOctetsDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutOctetsDESet.setDescription('Number of bytes transmitted on this PVC Endpoint with the DE bit set.') nncFrPVCEndptStatCurrentOutFramesBECNSet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 17), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutFramesBECNSet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutFramesBECNSet.setDescription('Number of frames transmitted by the network (egress) for this PVC Endpoint that had the BECN bit set.') nncFrPVCEndptStatCurrentOutFramesFECNSet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 18), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutFramesFECNSet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutFramesFECNSet.setDescription('Number of frames transmitted by the network (egress) for this PVC Endpoint that had the FECN bit set.') nncFrPVCEndptStatCurrentOutFramesInRed = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 19), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutFramesInRed.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutFramesInRed.setDescription('Number of frames transmitted by the network (egress) for this PVC Endpoint when the frame stream was in Red State.') nncFrPVCEndptStatCurrentInDiscdOctetsCOS = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 20), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdOctetsCOS.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdOctetsCOS.setDescription('Number of bytes discarded because of receive class-of-service enforcement on the PVC Endpoint.') nncFrPVCEndptStatCurrentInDiscdDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 21), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdDESet.setDescription('Number of frames discarded because of receive congestion procedures, in which the DE bit was set.') nncFrPVCEndptStatCurrentInDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 22), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdDEClr.setDescription('Number of frames discarded because of receive congestion procedures, in which the DE bit was not set.') nncFrPVCEndptStatCurrentInDiscdBadEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 23), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdBadEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdBadEncaps.setDescription('Number of frames discarded on this PVC Endpoint because of a bad receive RFC1490 encapsulation header.') nncFrPVCEndptStatCurrentInDiscdUnsupEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 24), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdUnsupEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdUnsupEncaps.setDescription('Number of frames discarded on this PVC Endpoint because of an unsupported receive RFC1490 encapsulation header.') nncFrPVCEndptStatCurrentInDiscdCOSDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 25), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdCOSDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdCOSDESet.setDescription('Number of frames discarded due to receive class of service procedures, in which the DE bit was set.') nncFrPVCEndptStatCurrentInDiscdCOSDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 26), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdCOSDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentInDiscdCOSDEClr.setDescription('Number of frames discarded for the PVC Endpoint due to receive class of service procedures, in which the DE bit was not set.') nncFrPVCEndptStatCurrentOutDiscdDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 27), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutDiscdDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutDiscdDESet.setDescription('Number of frames discarded for the PVC Endpoint due to transmit congestion procedures, in which the DE bit was set.') nncFrPVCEndptStatCurrentOutDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 28), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutDiscdDEClr.setDescription('Number of frames discarded for the PVC Endpoint due to transmit congestion procedures, in which the DE bit was not set.') nncFrPVCEndptStatCurrentOutDiscdBadEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 29), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutDiscdBadEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutDiscdBadEncaps.setDescription('Number of frames discarded for the PVC Endpoint due to having a bad RFC1483 encapsulation header.') nncFrPVCEndptStatCurrentOutDiscdUnsupEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 30), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutDiscdUnsupEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentOutDiscdUnsupEncaps.setDescription('Number of frames discarded for the PVC Endpoint due to having an unsupported RFC1483 encapsulation header.') nncFrPVCEndptStatCurrentStReasDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 3, 1, 31), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentStReasDiscards.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentStReasDiscards.setDescription('Number of frames discarded for the PVC Endpoint due to any reassembly errors.') nncFrPVCEndptStatIntervalTable = MibTable((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4), ) if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalTable.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalTable.setDescription('The nncFrPVCEndptStatIntervalTable contains objects for monitoring performance of a frame relay endpoint over M 1hr historical intervals.') nncFrPVCEndptStatIntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalDLCINumber"), (0, "NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalNumber")) if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalEntry.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalEntry.setDescription('An entry in the 1hr interval statistics table. Each conceptual row contains statistics for a particular PVC Endpoint and interval.') nncFrPVCEndptStatIntervalDLCINumber = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1024))) if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalDLCINumber.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalDLCINumber.setDescription('The DLCI number of the stream to which statistics in this row belong.') nncFrPVCEndptStatIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))) if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalNumber.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalNumber.setDescription('The interval number (N) of the statistics in this row.') nncFrPVCEndptStatIntervalState = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 3), NncExtIntvlStateType()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalState.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalState.setDescription('The state of the interval represented by this row. The object provides a status for those entries which have been reset by the user or have been subject to a wall- clock time change.') nncFrPVCEndptStatIntervalAbsoluteIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 96))) if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalAbsoluteIntervalNumber.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalAbsoluteIntervalNumber.setDescription('The absolute interval number of this interval.') nncFrPVCEndptStatIntervalInFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 5), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInFrames.setDescription('Number of frames received on this PVC Endpoint.') nncFrPVCEndptStatIntervalOutFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 6), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutFrames.setDescription('Number of frames transmitted on this PVC Endpoint.') nncFrPVCEndptStatIntervalInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 7), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInOctets.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInOctets.setDescription('Number of bytes received on this PVC Endpoint.') nncFrPVCEndptStatIntervalOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 8), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutOctets.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutOctets.setDescription('Number of bytes transmitted on this PVC Endpoint.') nncFrPVCEndptStatIntervalInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 9), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscards.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscards.setDescription('Number of frames received by the network (ingress) that were discarded due to traffic enforcement for this PVC Endpoint.') nncFrPVCEndptStatIntervalOutExcessFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 10), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutExcessFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutExcessFrames.setDescription('Number of frames transmitted by the network (egress) for this PVC Endpoint that were treated as excess traffic (the DE bit may be set to one).') nncFrPVCEndptStatIntervalInDEFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 11), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDEFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDEFrames.setDescription('Number of frames received by the network (ingress) with the DE bit set to (1) for the PVC Endpoint.') nncFrPVCEndptStatIntervalInCosTagDeFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 12), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInCosTagDeFrames.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInCosTagDeFrames.setDescription('Number of frames received by the network (ingress) for this PVC Endpoint that were policed to be excess traffic (the DE bit was set to one) and transmitted.') nncFrPVCEndptStatIntervalInOctetsDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 13), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInOctetsDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInOctetsDESet.setDescription('Number of bytes received on this PVC Endpoint with the DE bit set.') nncFrPVCEndptStatIntervalInFramesBECNSet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 14), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInFramesBECNSet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInFramesBECNSet.setDescription('Number of frames received by the network (ingress) for this PVC Endpoint that had the BECN bit set.') nncFrPVCEndptStatIntervalInFramesFECNSet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 15), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInFramesFECNSet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInFramesFECNSet.setDescription('Number of frames received by the network (ingress) for this PVC Endpoint that had the FECN bit set.') nncFrPVCEndptStatIntervalInInvdLength = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 16), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInInvdLength.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInInvdLength.setDescription('Number of frames received by the network (ingress) for this PVC Endpoint that were discarded because the frame had no data, or the data exceeded the maximum allowed length.') nncFrPVCEndptStatIntervalOutOctetsDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 17), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutOctetsDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutOctetsDESet.setDescription('Number of bytes transmitted on this PVC Endpoint with the DE bit set.') nncFrPVCEndptStatIntervalOutFramesBECNSet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 18), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutFramesBECNSet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutFramesBECNSet.setDescription('Number of frames transmitted by the network (egress) for this PVC Endpoint that had the BECN bit set.') nncFrPVCEndptStatIntervalOutFramesFECNSet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 19), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutFramesFECNSet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutFramesFECNSet.setDescription('Number of frames transmitted by the network (egress) for this PVC Endpoint that had the FECN bit set.') nncFrPVCEndptStatIntervalOutFramesInRed = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 20), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutFramesInRed.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutFramesInRed.setDescription('Number of frames transmitted by the network (egress) for this PVC Endpoint when the frame stream was in Red State.') nncFrPVCEndptStatIntervalInDiscdOctetsCOS = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 21), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdOctetsCOS.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdOctetsCOS.setDescription('Number of bytes discarded because of receive class-of-service enforcement on the PVC Endpoint.') nncFrPVCEndptStatIntervalInDiscdDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 22), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdDESet.setDescription('Number of frames discarded because of receive congestion procedures, in which the DE bit was set.') nncFrPVCEndptStatIntervalInDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 23), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdDEClr.setDescription('Number of frames discarded because of receive congestion procedures, in which the DE bit was not set.') nncFrPVCEndptStatIntervalInDiscdBadEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 24), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdBadEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdBadEncaps.setDescription('Number of frames discarded on this PVC Endpoint because of a bad receive RFC1490 encapsulation header.') nncFrPVCEndptStatIntervalInDiscdUnsupEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 25), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdUnsupEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdUnsupEncaps.setDescription('Number of frames discarded on this PVC Endpoint because of an unsupported receive RFC1490 encapsulation header.') nncFrPVCEndptStatIntervalInDiscdCOSDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 26), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdCOSDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdCOSDESet.setDescription('Number of frames discarded due to receive class of service procedures, in which the DE bit was set.') nncFrPVCEndptStatIntervalInDiscdCOSDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 27), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdCOSDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalInDiscdCOSDEClr.setDescription('Number of frames discarded for the PVC Endpoint due to receive class of service procedures, in which the DE bit was not set.') nncFrPVCEndptStatIntervalOutDiscdDESet = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 28), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutDiscdDESet.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutDiscdDESet.setDescription('Number of frames discarded for the PVC Endpoint due to transmit congestion procedures, in which the DE bit was set.') nncFrPVCEndptStatIntervalOutDiscdDEClr = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 29), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutDiscdDEClr.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutDiscdDEClr.setDescription('Number of frames discarded for the PVC Endpoint due to transmit congestion procedures, in which the DE bit was not set.') nncFrPVCEndptStatIntervalOutDiscdBadEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 30), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutDiscdBadEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutDiscdBadEncaps.setDescription('Number of frames discarded for the PVC Endpoint due to having a bad RFC1483 encapsulation header.') nncFrPVCEndptStatIntervalOutDiscdUnsupEncaps = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 31), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutDiscdUnsupEncaps.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalOutDiscdUnsupEncaps.setDescription('Number of frames discarded for the PVC Endpoint due to having an unsupported RFC1483 encapsulation header.') nncFrPVCEndptStatIntervalStReasDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 4, 1, 32), NncExtCounter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalStReasDiscards.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalStReasDiscards.setDescription('Number of frames discarded for the PVC Endpoint due to any reassembly errors.') nncFrDepthOfHistoricalStrata = MibScalar((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 96))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrDepthOfHistoricalStrata.setStatus('current') if mibBuilder.loadTexts: nncFrDepthOfHistoricalStrata.setDescription('Depth of historical strata of FR interval statistics.') nncFrStrBertStatTable = MibTable((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6), ) if mibBuilder.loadTexts: nncFrStrBertStatTable.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatTable.setDescription('The nncFrStrBertStatTable contains objects for reporting the current statistics of a BERT being performed on a frame relay stream. This feature is introduced in Rel 2.2 frame relay cards.') nncFrStrBertStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: nncFrStrBertStatEntry.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatEntry.setDescription('An entry in the BERT statistics table. Each conceptual row contains statistics related to the BERT being performed on a specific DLCI within a particular frame relay stream.') nncFrStrBertDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrBertDlci.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertDlci.setDescription('This object indicates if there is a BERT active on the frame relay stream, and when active on which DLCI the BERT is active on. WHERE: 0 = BERT not active, non-zero = DLCI') nncFrStrBertStatStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1))).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrBertStatStatus.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatStatus.setDescription('The current status of the BERT when the BERT is activated: where 0 = Loss of pattern sync. 1 = Pattern Sync.') nncFrStrBertStatTxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrBertStatTxFrames.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatTxFrames.setDescription('The number of Frames transmitted onto the stream by BERT Task. Each BERT Frame is of a fixed size and contains a fixed pattern.') nncFrStrBertStatRxFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrBertStatRxFrames.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatRxFrames.setDescription('The number of Frames received while the BERT is in pattern sync. The Rx Frame count will only be incremented when in pattern sync and the received packet is the correct size and contains the DLCI being BERTED.') nncFrStrBertStatRxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrBertStatRxBytes.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatRxBytes.setDescription('The number of Bytes transmitted onto the stream by BERT Task. Each BERT packet is of a fixed size and contains a fixed pattern.') nncFrStrBertStatTxBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrBertStatTxBytes.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatTxBytes.setDescription('The number of Bytes transmitted while the BERT is in pattern sync. The Tx Byte count will only be incremented when in pattern sync.') nncFrStrBertStatRxErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrBertStatRxErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatRxErrors.setDescription('The number of errors detected in the received packets while the BERT is in pattern sync. Packets flagged as having CRC errors that contain the DLCI being BERTED and the correct packet size being BERTED will be scanned for errors and the number of errors accumulated in this counter.') nncFrStrBertStatEstErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 123, 3, 30, 1, 6, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nncFrStrBertStatEstErrors.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatEstErrors.setDescription('The estimated number of errors encountered by the packets being transmitted while the BERT is in pattern sync based on the fact that the packets are not returned, and pattern sync is maintained.') nncFrStrStatCurrentGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 123, 3, 30, 3, 1)).setObjects(("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentState"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentAbsoluteIntervalNumber"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInOctets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutOctets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInDiscards"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutDiscards"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentSigUserProtErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentSigNetProtErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentSigUserLinkRelErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentSigNetLinkRelErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentSigUserChanInactive"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentSigNetChanInactive"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStSCAlarms"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStTimeSC"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStMaxDurationRED"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStMCAlarms"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStTimeMC"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutLinkUtilization"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInLinkUtilization"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInInvdLength"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLastErroredDLCI"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInDiscdOctetsCOS"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInDiscdCOSDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInDiscdCOSDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInDiscdBadEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutDiscdBadEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInDiscdUnsupEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutDiscdUnsupEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutDiscdDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInDiscdDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMSigInvldField"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMSigUnsupMsgType"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMSigInvldEID"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMSigInvldIELen"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMSigInvldRepType"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMSigFrmWithNoIEs"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStUserSequenceErrs"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStNetSequenceErrs"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMUTimeoutsnT1"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMUStatusMsgsRcvd"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMUStatusENQMsgsSent"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMUAsyncStatusRcvd"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMNTimeoutsnT2"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMNStatusMsgsSent"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMNStatusENQMsgsRcvd"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStLMNAsyncStatusSent"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInCRCErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInNonIntegral"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInReservedDLCI"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInInvldEA"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStFrmTooSmall"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInAborts"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInSumOfDisagremnts"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentInOverRuns"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentOutUnderRuns"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentStIntervalDuration"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentBestEffortPeakDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentCommittedPeakDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentLowDelayPeakDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentRealTimePeakDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentBestEffortAccDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentCommittedAccDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentLowDelayAccDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentRealTimeAccDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentBestEffortOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentCommittedOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentLowDelayOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentRealTimeOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentBestEffortUCastPacketsDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentCommittedUCastPacketsDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentLowDelayUCastPacketsDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentRealTimeUCastPacketsDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentBestEffortDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentCommittedDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentLowDelayDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentRealTimeDiscdDEClr")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): nncFrStrStatCurrentGroup = nncFrStrStatCurrentGroup.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatCurrentGroup.setDescription('Collection of objects providing 1hr current statistics for a FR stream.') nncFrStrStatIntervalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 123, 3, 30, 3, 2)).setObjects(("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalNumber"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalState"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalAbsoluteIntervalNumber"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInOctets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutOctets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInDiscards"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutDiscards"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalSigUserProtErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalSigNetProtErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalSigUserLinkRelErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalSigNetLinkRelErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalSigUserChanInactive"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalSigNetChanInactive"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStSCAlarms"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStTimeSC"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStMaxDurationRED"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStMCAlarms"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStTimeMC"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutLinkUtilization"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInLinkUtilization"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInInvdLength"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLastErroredDLCI"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInDiscdOctetsCOS"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInDiscdCOSDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInDiscdCOSDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInDiscdBadEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutDiscdBadEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInDiscdUnsupEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutDiscdUnsupEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutDiscdDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInDiscdDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMSigInvldField"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMSigUnsupMsgType"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMSigInvldEID"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMSigInvldIELen"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMSigInvldRepType"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMSigFrmWithNoIEs"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStUserSequenceErrs"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStNetSequenceErrs"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMUTimeoutsnT1"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMUStatusMsgsRcvd"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMUStatusENQMsgsSent"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMUAsyncStatusRcvd"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMNTimeoutsnT2"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMNStatusMsgsSent"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMNStatusENQMsgsRcvd"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStLMNAsyncStatusSent"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInCRCErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInNonIntegral"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInReservedDLCI"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInInvldEA"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStFrmTooSmall"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInAborts"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInSumOfDisagremnts"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalInOverRuns"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalOutUnderRuns"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalStIntervalDuration"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalBestEffortPeakDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalCommittedPeakDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalLowDelayPeakDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalRealTimePeakDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalBestEffortAccDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalCommittedAccDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalLowDelayAccDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalRealTimeAccDelay"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalBestEffortOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalCommittedOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalLowDelayOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalRealTimeOutUCastPackets"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalBestEffortUCastPacketsDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalCommittedUCastPacketsDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalLowDelayUCastPacketsDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalRealTimeUCastPacketsDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalBestEffortDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalCommittedDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalLowDelayDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrStatIntervalRealTimeDiscdDEClr")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): nncFrStrStatIntervalGroup = nncFrStrStatIntervalGroup.setStatus('current') if mibBuilder.loadTexts: nncFrStrStatIntervalGroup.setDescription('Collection of objects providing 1hr interval statistics for a FR stream.') nncFrPVCEndptStatCurrentGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 123, 3, 30, 3, 3)).setObjects(("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentDLCINumber"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentState"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentAbsoluteIntervalNumber"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInOctets"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutOctets"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInDiscards"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutExcessFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInDEFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInCosTagDeFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInOctetsDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInFramesBECNSet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInFramesFECNSet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInInvdLength"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutOctetsDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutFramesBECNSet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutFramesFECNSet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutFramesInRed"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInDiscdOctetsCOS"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInDiscdDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInDiscdBadEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInDiscdUnsupEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInDiscdCOSDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentInDiscdCOSDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutDiscdDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutDiscdBadEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentOutDiscdUnsupEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentStReasDiscards")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): nncFrPVCEndptStatCurrentGroup = nncFrPVCEndptStatCurrentGroup.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatCurrentGroup.setDescription('Collection of objects providing 1hr current statistics for a FR PVC Endpoint.') nncFrPVCEndptStatIntervalGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 123, 3, 30, 3, 4)).setObjects(("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalDLCINumber"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalNumber"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalState"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalAbsoluteIntervalNumber"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInOctets"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutOctets"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInDiscards"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutExcessFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInDEFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInCosTagDeFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInOctetsDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInFramesBECNSet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInFramesFECNSet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInInvdLength"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutOctetsDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutFramesBECNSet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutFramesFECNSet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutFramesInRed"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInDiscdOctetsCOS"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInDiscdDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInDiscdBadEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInDiscdUnsupEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInDiscdCOSDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalInDiscdCOSDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutDiscdDESet"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutDiscdDEClr"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutDiscdBadEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalOutDiscdUnsupEncaps"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatIntervalStReasDiscards")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): nncFrPVCEndptStatIntervalGroup = nncFrPVCEndptStatIntervalGroup.setStatus('current') if mibBuilder.loadTexts: nncFrPVCEndptStatIntervalGroup.setDescription('Collection of objects providing 1hr current statistics for a FR PVC Endpoint.') nncFrStrBertStatGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 123, 3, 30, 3, 6)).setObjects(("NNCFRINTSTATISTICS-MIB", "nncFrStrBertDlci"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrBertStatStatus"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrBertStatTxFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrBertStatRxFrames"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrBertStatTxBytes"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrBertStatRxBytes"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrBertStatRxErrors"), ("NNCFRINTSTATISTICS-MIB", "nncFrStrBertStatEstErrors")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): nncFrStrBertStatGroup = nncFrStrBertStatGroup.setStatus('current') if mibBuilder.loadTexts: nncFrStrBertStatGroup.setDescription('Collection of objects providing BERT statistics for a BERT performed on a Frame Relay stream.') nncFrIntStatisticsCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 123, 3, 30, 4, 1)).setObjects(("NNCFRINTSTATISTICS-MIB", "nncFrStrStatCurrentGroup"), ("NNCFRINTSTATISTICS-MIB", "nncFrPVCEndptStatCurrentGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): nncFrIntStatisticsCompliance = nncFrIntStatisticsCompliance.setStatus('current') if mibBuilder.loadTexts: nncFrIntStatisticsCompliance.setDescription('The compliance statement for Newbridge SNMP entities which have FR streams and endpoints.') mibBuilder.exportSymbols("NNCFRINTSTATISTICS-MIB", nncFrStrStatIntervalInDiscdOctetsCOS=nncFrStrStatIntervalInDiscdOctetsCOS, nncFrStrStatCurrentStMCAlarms=nncFrStrStatCurrentStMCAlarms, nncFrStrStatCurrentTable=nncFrStrStatCurrentTable, nncFrPVCEndptStatCurrentOutDiscdBadEncaps=nncFrPVCEndptStatCurrentOutDiscdBadEncaps, nncFrPVCEndptStatCurrentStReasDiscards=nncFrPVCEndptStatCurrentStReasDiscards, nncFrStrStatIntervalStLMUStatusENQMsgsSent=nncFrStrStatIntervalStLMUStatusENQMsgsSent, nncFrStrStatCurrentSigNetLinkRelErrors=nncFrStrStatCurrentSigNetLinkRelErrors, nncFrStrStatIntervalOutDiscdUnsupEncaps=nncFrStrStatIntervalOutDiscdUnsupEncaps, nncFrStrStatCurrentInDiscdOctetsCOS=nncFrStrStatCurrentInDiscdOctetsCOS, nncFrStrStatCurrentCommittedOutUCastPackets=nncFrStrStatCurrentCommittedOutUCastPackets, nncFrPVCEndptStatCurrentGroup=nncFrPVCEndptStatCurrentGroup, nncFrStrStatIntervalStTimeMC=nncFrStrStatIntervalStTimeMC, nncFrPVCEndptStatIntervalInOctets=nncFrPVCEndptStatIntervalInOctets, nncFrStrBertStatTxBytes=nncFrStrBertStatTxBytes, nncFrStrStatCurrentCommittedPeakDelay=nncFrStrStatCurrentCommittedPeakDelay, nncFrPVCEndptStatCurrentInFrames=nncFrPVCEndptStatCurrentInFrames, nncFrStrStatCurrentInInvldEA=nncFrStrStatCurrentInInvldEA, nncFrStrStatCurrentInOverRuns=nncFrStrStatCurrentInOverRuns, nncFrPVCEndptStatIntervalNumber=nncFrPVCEndptStatIntervalNumber, nncFrStrStatIntervalLowDelayOutUCastPackets=nncFrStrStatIntervalLowDelayOutUCastPackets, nncFrPVCEndptStatCurrentOutOctets=nncFrPVCEndptStatCurrentOutOctets, nncFrPVCEndptStatIntervalInInvdLength=nncFrPVCEndptStatIntervalInInvdLength, nncFrStrStatIntervalSigUserLinkRelErrors=nncFrStrStatIntervalSigUserLinkRelErrors, nncFrPVCEndptStatCurrentInFramesFECNSet=nncFrPVCEndptStatCurrentInFramesFECNSet, nncFrIntStatisticsGroups=nncFrIntStatisticsGroups, nncFrStrBertStatTxFrames=nncFrStrBertStatTxFrames, nncFrStrStatIntervalStUserSequenceErrs=nncFrStrStatIntervalStUserSequenceErrs, nncFrPVCEndptStatCurrentOutOctetsDESet=nncFrPVCEndptStatCurrentOutOctetsDESet, nncFrPVCEndptStatIntervalInDiscdOctetsCOS=nncFrPVCEndptStatIntervalInDiscdOctetsCOS, nncFrStrBertStatEstErrors=nncFrStrBertStatEstErrors, nncFrStrStatCurrentAbsoluteIntervalNumber=nncFrStrStatCurrentAbsoluteIntervalNumber, nncFrStrStatCurrentStLMSigInvldRepType=nncFrStrStatCurrentStLMSigInvldRepType, nncFrPVCEndptStatIntervalInOctetsDESet=nncFrPVCEndptStatIntervalInOctetsDESet, nncFrStrStatCurrentInDiscdUnsupEncaps=nncFrStrStatCurrentInDiscdUnsupEncaps, nncFrStrStatIntervalInDiscards=nncFrStrStatIntervalInDiscards, nncFrIntStatistics=nncFrIntStatistics, nncFrStrStatCurrentCommittedDiscdDEClr=nncFrStrStatCurrentCommittedDiscdDEClr, nncFrStrStatIntervalInDiscdCOSDESet=nncFrStrStatIntervalInDiscdCOSDESet, nncFrPVCEndptStatIntervalInFramesFECNSet=nncFrPVCEndptStatIntervalInFramesFECNSet, nncFrStrStatCurrentInSumOfDisagremnts=nncFrStrStatCurrentInSumOfDisagremnts, nncFrPVCEndptStatIntervalInDiscdCOSDESet=nncFrPVCEndptStatIntervalInDiscdCOSDESet, nncFrPVCEndptStatIntervalStReasDiscards=nncFrPVCEndptStatIntervalStReasDiscards, nncFrStrStatCurrentSigNetChanInactive=nncFrStrStatCurrentSigNetChanInactive, nncFrStrStatCurrentInInvdLength=nncFrStrStatCurrentInInvdLength, nncFrStrStatCurrentStTimeMC=nncFrStrStatCurrentStTimeMC, nncFrStrStatCurrentRealTimePeakDelay=nncFrStrStatCurrentRealTimePeakDelay, nncFrStrStatIntervalInDiscdUnsupEncaps=nncFrStrStatIntervalInDiscdUnsupEncaps, nncFrStrStatIntervalStIntervalDuration=nncFrStrStatIntervalStIntervalDuration, nncFrPVCEndptStatCurrentInDiscdOctetsCOS=nncFrPVCEndptStatCurrentInDiscdOctetsCOS, nncFrStrStatCurrentStUserSequenceErrs=nncFrStrStatCurrentStUserSequenceErrs, nncFrPVCEndptStatIntervalOutDiscdDESet=nncFrPVCEndptStatIntervalOutDiscdDESet, nncFrStrBertStatRxFrames=nncFrStrBertStatRxFrames, nncFrStrStatCurrentInErrors=nncFrStrStatCurrentInErrors, nncFrStrStatIntervalStLMSigUnsupMsgType=nncFrStrStatIntervalStLMSigUnsupMsgType, nncFrStrStatIntervalRealTimeOutUCastPackets=nncFrStrStatIntervalRealTimeOutUCastPackets, nncFrStrStatIntervalLowDelayUCastPacketsDEClr=nncFrStrStatIntervalLowDelayUCastPacketsDEClr, nncFrStrStatCurrentState=nncFrStrStatCurrentState, nncFrStrStatIntervalOutDiscards=nncFrStrStatIntervalOutDiscards, nncFrStrStatIntervalRealTimeDiscdDEClr=nncFrStrStatIntervalRealTimeDiscdDEClr, nncFrStrStatCurrentStLMUStatusENQMsgsSent=nncFrStrStatCurrentStLMUStatusENQMsgsSent, nncFrStrStatIntervalBestEffortOutUCastPackets=nncFrStrStatIntervalBestEffortOutUCastPackets, nncFrStrStatCurrentInDiscdDEClr=nncFrStrStatCurrentInDiscdDEClr, nncFrIntStatisticsCompliances=nncFrIntStatisticsCompliances, nncFrStrStatCurrentBestEffortPeakDelay=nncFrStrStatCurrentBestEffortPeakDelay, nncFrStrStatIntervalStTimeSC=nncFrStrStatIntervalStTimeSC, nncFrStrBertStatRxErrors=nncFrStrBertStatRxErrors, nncFrStrStatCurrentLowDelayOutUCastPackets=nncFrStrStatCurrentLowDelayOutUCastPackets, nncFrStrStatCurrentInUCastPackets=nncFrStrStatCurrentInUCastPackets, nncFrStrStatIntervalStLMSigInvldIELen=nncFrStrStatIntervalStLMSigInvldIELen, nncFrStrStatIntervalRealTimeAccDelay=nncFrStrStatIntervalRealTimeAccDelay, nncFrStrStatCurrentOutUnderRuns=nncFrStrStatCurrentOutUnderRuns, nncFrStrStatIntervalOutDiscdDESet=nncFrStrStatIntervalOutDiscdDESet, nncFrStrStatIntervalOutUnderRuns=nncFrStrStatIntervalOutUnderRuns, nncFrPVCEndptStatIntervalState=nncFrPVCEndptStatIntervalState, nncFrStrStatCurrentStLastErroredDLCI=nncFrStrStatCurrentStLastErroredDLCI, nncFrStrStatIntervalTable=nncFrStrStatIntervalTable, nncFrStrStatCurrentInCRCErrors=nncFrStrStatCurrentInCRCErrors, nncFrStrStatCurrentStLMUTimeoutsnT1=nncFrStrStatCurrentStLMUTimeoutsnT1, nncFrStrStatIntervalStMaxDurationRED=nncFrStrStatIntervalStMaxDurationRED, nncFrStrStatIntervalLowDelayAccDelay=nncFrStrStatIntervalLowDelayAccDelay, nncFrStrStatIntervalAbsoluteIntervalNumber=nncFrStrStatIntervalAbsoluteIntervalNumber, nncFrStrStatIntervalStNetSequenceErrs=nncFrStrStatIntervalStNetSequenceErrs, nncFrStrStatIntervalStFrmTooSmall=nncFrStrStatIntervalStFrmTooSmall, nncFrStrStatCurrentStLMUAsyncStatusRcvd=nncFrStrStatCurrentStLMUAsyncStatusRcvd, nncFrPVCEndptStatCurrentDLCINumber=nncFrPVCEndptStatCurrentDLCINumber, nncFrPVCEndptStatCurrentOutFramesBECNSet=nncFrPVCEndptStatCurrentOutFramesBECNSet, nncFrStrStatCurrentInAborts=nncFrStrStatCurrentInAborts, nncFrStrStatIntervalCommittedOutUCastPackets=nncFrStrStatIntervalCommittedOutUCastPackets, nncFrPVCEndptStatIntervalDLCINumber=nncFrPVCEndptStatIntervalDLCINumber, nncFrStrStatIntervalOutDiscdBadEncaps=nncFrStrStatIntervalOutDiscdBadEncaps, nncFrPVCEndptStatCurrentEntry=nncFrPVCEndptStatCurrentEntry, nncFrStrStatCurrentStLMNStatusENQMsgsRcvd=nncFrStrStatCurrentStLMNStatusENQMsgsRcvd, nncFrStrStatIntervalSigUserProtErrors=nncFrStrStatIntervalSigUserProtErrors, nncFrIntStatisticsObjects=nncFrIntStatisticsObjects, nncFrStrStatIntervalStLMNStatusENQMsgsRcvd=nncFrStrStatIntervalStLMNStatusENQMsgsRcvd, nncFrStrStatCurrentStIntervalDuration=nncFrStrStatCurrentStIntervalDuration, nncFrPVCEndptStatIntervalInDiscards=nncFrPVCEndptStatIntervalInDiscards, nncFrDepthOfHistoricalStrata=nncFrDepthOfHistoricalStrata, nncFrPVCEndptStatCurrentOutDiscdDESet=nncFrPVCEndptStatCurrentOutDiscdDESet, nncFrStrStatCurrentInDiscdCOSDESet=nncFrStrStatCurrentInDiscdCOSDESet, nncFrStrStatCurrentInNonIntegral=nncFrStrStatCurrentInNonIntegral, nncFrStrStatCurrentStLMSigInvldIELen=nncFrStrStatCurrentStLMSigInvldIELen, nncFrStrStatCurrentStFrmTooSmall=nncFrStrStatCurrentStFrmTooSmall, nncFrStrStatIntervalNumber=nncFrStrStatIntervalNumber, nncFrPVCEndptStatIntervalOutOctets=nncFrPVCEndptStatIntervalOutOctets, nncFrStrStatCurrentInDiscdDESet=nncFrStrStatCurrentInDiscdDESet, nncFrPVCEndptStatIntervalOutDiscdBadEncaps=nncFrPVCEndptStatIntervalOutDiscdBadEncaps, nncFrStrStatIntervalOutUCastPackets=nncFrStrStatIntervalOutUCastPackets, nncFrStrStatIntervalInDiscdDESet=nncFrStrStatIntervalInDiscdDESet, nncFrPVCEndptStatCurrentInDiscdCOSDESet=nncFrPVCEndptStatCurrentInDiscdCOSDESet, nncFrPVCEndptStatCurrentInCosTagDeFrames=nncFrPVCEndptStatCurrentInCosTagDeFrames, nncFrStrStatIntervalSigNetProtErrors=nncFrStrStatIntervalSigNetProtErrors, nncFrStrStatIntervalInCRCErrors=nncFrStrStatIntervalInCRCErrors, nncFrPVCEndptStatIntervalOutFramesFECNSet=nncFrPVCEndptStatIntervalOutFramesFECNSet, nncFrStrStatIntervalSigNetChanInactive=nncFrStrStatIntervalSigNetChanInactive, nncFrStrStatCurrentOutOctets=nncFrStrStatCurrentOutOctets, nncFrStrStatIntervalInDiscdDEClr=nncFrStrStatIntervalInDiscdDEClr, nncFrStrStatCurrentSigUserProtErrors=nncFrStrStatCurrentSigUserProtErrors, nncFrStrStatIntervalInNonIntegral=nncFrStrStatIntervalInNonIntegral, nncFrPVCEndptStatIntervalAbsoluteIntervalNumber=nncFrPVCEndptStatIntervalAbsoluteIntervalNumber, nncFrPVCEndptStatIntervalInDiscdDESet=nncFrPVCEndptStatIntervalInDiscdDESet, nncFrStrStatCurrentRealTimeAccDelay=nncFrStrStatCurrentRealTimeAccDelay, nncFrStrStatIntervalInDiscdBadEncaps=nncFrStrStatIntervalInDiscdBadEncaps, nncFrStrStatIntervalStLMUTimeoutsnT1=nncFrStrStatIntervalStLMUTimeoutsnT1, nncFrStrStatIntervalStLMUStatusMsgsRcvd=nncFrStrStatIntervalStLMUStatusMsgsRcvd, nncFrPVCEndptStatIntervalGroup=nncFrPVCEndptStatIntervalGroup, nncFrPVCEndptStatIntervalTable=nncFrPVCEndptStatIntervalTable, nncFrStrStatIntervalLowDelayPeakDelay=nncFrStrStatIntervalLowDelayPeakDelay, nncFrStrStatIntervalInLinkUtilization=nncFrStrStatIntervalInLinkUtilization, nncFrStrStatCurrentOutErrors=nncFrStrStatCurrentOutErrors, nncFrPVCEndptStatCurrentInDiscards=nncFrPVCEndptStatCurrentInDiscards, nncFrStrStatCurrentLowDelayPeakDelay=nncFrStrStatCurrentLowDelayPeakDelay, nncFrStrStatCurrentCommittedAccDelay=nncFrStrStatCurrentCommittedAccDelay, nncFrStrStatIntervalOutDiscdDEClr=nncFrStrStatIntervalOutDiscdDEClr, nncFrStrStatCurrentSigUserLinkRelErrors=nncFrStrStatCurrentSigUserLinkRelErrors, nncFrStrStatCurrentStLMSigInvldField=nncFrStrStatCurrentStLMSigInvldField, nncFrPVCEndptStatCurrentInFramesBECNSet=nncFrPVCEndptStatCurrentInFramesBECNSet, nncFrPVCEndptStatIntervalInCosTagDeFrames=nncFrPVCEndptStatIntervalInCosTagDeFrames, nncFrStrStatCurrentStTimeSC=nncFrStrStatCurrentStTimeSC, nncFrPVCEndptStatIntervalEntry=nncFrPVCEndptStatIntervalEntry, nncFrStrStatIntervalOutOctets=nncFrStrStatIntervalOutOctets, nncFrStrStatCurrentLowDelayUCastPacketsDEClr=nncFrStrStatCurrentLowDelayUCastPacketsDEClr, nncFrStrStatIntervalInSumOfDisagremnts=nncFrStrStatIntervalInSumOfDisagremnts, nncFrStrStatCurrentOutLinkUtilization=nncFrStrStatCurrentOutLinkUtilization, nncFrStrStatIntervalCommittedUCastPacketsDEClr=nncFrStrStatIntervalCommittedUCastPacketsDEClr, nncFrIntStatisticsCompliance=nncFrIntStatisticsCompliance, nncFrStrStatIntervalStLMSigInvldRepType=nncFrStrStatIntervalStLMSigInvldRepType, nncFrStrStatIntervalInReservedDLCI=nncFrStrStatIntervalInReservedDLCI, nncFrStrStatIntervalBestEffortUCastPacketsDEClr=nncFrStrStatIntervalBestEffortUCastPacketsDEClr, nncFrPVCEndptStatIntervalInFrames=nncFrPVCEndptStatIntervalInFrames, nncFrStrStatCurrentStLMSigFrmWithNoIEs=nncFrStrStatCurrentStLMSigFrmWithNoIEs, nncFrPVCEndptStatCurrentInDiscdCOSDEClr=nncFrPVCEndptStatCurrentInDiscdCOSDEClr, nncFrPVCEndptStatIntervalInFramesBECNSet=nncFrPVCEndptStatIntervalInFramesBECNSet, nncFrStrBertStatGroup=nncFrStrBertStatGroup, nncFrPVCEndptStatCurrentInDEFrames=nncFrPVCEndptStatCurrentInDEFrames, nncFrPVCEndptStatCurrentOutDiscdUnsupEncaps=nncFrPVCEndptStatCurrentOutDiscdUnsupEncaps, nncFrStrStatCurrentBestEffortOutUCastPackets=nncFrStrStatCurrentBestEffortOutUCastPackets, nncFrStrStatIntervalBestEffortDiscdDEClr=nncFrStrStatIntervalBestEffortDiscdDEClr, nncFrPVCEndptStatCurrentOutExcessFrames=nncFrPVCEndptStatCurrentOutExcessFrames, nncFrStrStatIntervalInDiscdCOSDEClr=nncFrStrStatIntervalInDiscdCOSDEClr, nncFrStrStatCurrentGroup=nncFrStrStatCurrentGroup, nncFrStrStatCurrentRealTimeDiscdDEClr=nncFrStrStatCurrentRealTimeDiscdDEClr, nncFrStrStatIntervalOutLinkUtilization=nncFrStrStatIntervalOutLinkUtilization, nncFrPVCEndptStatCurrentAbsoluteIntervalNumber=nncFrPVCEndptStatCurrentAbsoluteIntervalNumber, nncFrIntStatisticsTraps=nncFrIntStatisticsTraps, nncFrPVCEndptStatCurrentInInvdLength=nncFrPVCEndptStatCurrentInInvdLength, nncFrStrStatIntervalBestEffortPeakDelay=nncFrStrStatIntervalBestEffortPeakDelay, nncFrStrStatCurrentInDiscdBadEncaps=nncFrStrStatCurrentInDiscdBadEncaps, nncFrStrStatCurrentStLMSigUnsupMsgType=nncFrStrStatCurrentStLMSigUnsupMsgType, nncFrStrStatCurrentStNetSequenceErrs=nncFrStrStatCurrentStNetSequenceErrs, nncFrPVCEndptStatCurrentInDiscdUnsupEncaps=nncFrPVCEndptStatCurrentInDiscdUnsupEncaps, nncFrStrStatCurrentInDiscdCOSDEClr=nncFrStrStatCurrentInDiscdCOSDEClr, nncFrPVCEndptStatIntervalInDiscdDEClr=nncFrPVCEndptStatIntervalInDiscdDEClr, nncFrStrStatIntervalStLMSigFrmWithNoIEs=nncFrStrStatIntervalStLMSigFrmWithNoIEs, nncFrStrStatIntervalState=nncFrStrStatIntervalState, nncFrStrStatCurrentOutUCastPackets=nncFrStrStatCurrentOutUCastPackets, nncFrPVCEndptStatIntervalOutFramesBECNSet=nncFrPVCEndptStatIntervalOutFramesBECNSet, nncFrStrStatIntervalInInvldEA=nncFrStrStatIntervalInInvldEA, nncFrStrStatCurrentStLMUStatusMsgsRcvd=nncFrStrStatCurrentStLMUStatusMsgsRcvd, nncFrPVCEndptStatCurrentInOctets=nncFrPVCEndptStatCurrentInOctets, nncFrStrStatCurrentInDiscards=nncFrStrStatCurrentInDiscards, nncFrPVCEndptStatIntervalInDEFrames=nncFrPVCEndptStatIntervalInDEFrames, nncFrStrStatIntervalStLMSigInvldEID=nncFrStrStatIntervalStLMSigInvldEID, nncFrPVCEndptStatCurrentTable=nncFrPVCEndptStatCurrentTable, nncFrStrBertStatStatus=nncFrStrBertStatStatus, nncFrStrStatIntervalEntry=nncFrStrStatIntervalEntry, nncFrStrStatIntervalInUCastPackets=nncFrStrStatIntervalInUCastPackets, nncFrStrStatCurrentRealTimeOutUCastPackets=nncFrStrStatCurrentRealTimeOutUCastPackets, nncFrPVCEndptStatCurrentInOctetsDESet=nncFrPVCEndptStatCurrentInOctetsDESet, nncFrPVCEndptStatIntervalOutExcessFrames=nncFrPVCEndptStatIntervalOutExcessFrames, nncFrPVCEndptStatIntervalOutFramesInRed=nncFrPVCEndptStatIntervalOutFramesInRed, nncFrStrStatIntervalGroup=nncFrStrStatIntervalGroup, nncFrStrStatCurrentBestEffortUCastPacketsDEClr=nncFrStrStatCurrentBestEffortUCastPacketsDEClr, nncFrStrStatCurrentOutDiscdBadEncaps=nncFrStrStatCurrentOutDiscdBadEncaps, nncFrStrStatCurrentStLMSigInvldEID=nncFrStrStatCurrentStLMSigInvldEID, nncFrPVCEndptStatIntervalOutDiscdDEClr=nncFrPVCEndptStatIntervalOutDiscdDEClr, nncFrStrStatIntervalOutErrors=nncFrStrStatIntervalOutErrors, nncFrPVCEndptStatCurrentOutFramesFECNSet=nncFrPVCEndptStatCurrentOutFramesFECNSet, nncFrPVCEndptStatIntervalInDiscdCOSDEClr=nncFrPVCEndptStatIntervalInDiscdCOSDEClr, nncFrStrStatCurrentBestEffortAccDelay=nncFrStrStatCurrentBestEffortAccDelay, nncFrStrStatIntervalStLastErroredDLCI=nncFrStrStatIntervalStLastErroredDLCI, nncFrPVCEndptStatIntervalInDiscdUnsupEncaps=nncFrPVCEndptStatIntervalInDiscdUnsupEncaps, nncFrStrStatCurrentBestEffortDiscdDEClr=nncFrStrStatCurrentBestEffortDiscdDEClr, nncFrStrStatIntervalStLMSigInvldField=nncFrStrStatIntervalStLMSigInvldField, nncFrStrStatCurrentLowDelayAccDelay=nncFrStrStatCurrentLowDelayAccDelay, nncFrStrStatCurrentInReservedDLCI=nncFrStrStatCurrentInReservedDLCI, nncFrPVCEndptStatCurrentOutDiscdDEClr=nncFrPVCEndptStatCurrentOutDiscdDEClr, nncFrStrStatCurrentOutDiscdDESet=nncFrStrStatCurrentOutDiscdDESet, nncFrPVCEndptStatIntervalInDiscdBadEncaps=nncFrPVCEndptStatIntervalInDiscdBadEncaps, nncFrStrStatIntervalCommittedDiscdDEClr=nncFrStrStatIntervalCommittedDiscdDEClr, nncFrStrStatIntervalBestEffortAccDelay=nncFrStrStatIntervalBestEffortAccDelay, nncFrStrStatIntervalStMCAlarms=nncFrStrStatIntervalStMCAlarms, nncFrStrStatCurrentInOctets=nncFrStrStatCurrentInOctets, nncFrStrStatCurrentStLMNTimeoutsnT2=nncFrStrStatCurrentStLMNTimeoutsnT2, nncFrStrStatIntervalSigNetLinkRelErrors=nncFrStrStatIntervalSigNetLinkRelErrors, nncFrStrStatIntervalLowDelayDiscdDEClr=nncFrStrStatIntervalLowDelayDiscdDEClr, nncFrStrStatIntervalStLMUAsyncStatusRcvd=nncFrStrStatIntervalStLMUAsyncStatusRcvd, nncFrStrStatCurrentOutDiscards=nncFrStrStatCurrentOutDiscards, nncFrPVCEndptStatCurrentInDiscdBadEncaps=nncFrPVCEndptStatCurrentInDiscdBadEncaps, nncFrPVCEndptStatIntervalOutFrames=nncFrPVCEndptStatIntervalOutFrames, nncFrPVCEndptStatCurrentInDiscdDEClr=nncFrPVCEndptStatCurrentInDiscdDEClr, nncFrStrStatCurrentStLMNAsyncStatusSent=nncFrStrStatCurrentStLMNAsyncStatusSent, nncFrPVCEndptStatIntervalOutOctetsDESet=nncFrPVCEndptStatIntervalOutOctetsDESet, nncFrPVCEndptStatCurrentOutFramesInRed=nncFrPVCEndptStatCurrentOutFramesInRed, nncFrStrBertDlci=nncFrStrBertDlci, nncFrStrStatCurrentCommittedUCastPacketsDEClr=nncFrStrStatCurrentCommittedUCastPacketsDEClr, nncFrStrStatCurrentLowDelayDiscdDEClr=nncFrStrStatCurrentLowDelayDiscdDEClr, nncFrStrStatIntervalCommittedAccDelay=nncFrStrStatIntervalCommittedAccDelay, nncFrStrStatIntervalSigUserChanInactive=nncFrStrStatIntervalSigUserChanInactive, nncFrStrStatCurrentStSCAlarms=nncFrStrStatCurrentStSCAlarms, nncFrStrStatIntervalStLMNTimeoutsnT2=nncFrStrStatIntervalStLMNTimeoutsnT2, nncFrStrStatIntervalInErrors=nncFrStrStatIntervalInErrors, nncFrStrBertStatRxBytes=nncFrStrBertStatRxBytes, nncFrStrStatCurrentOutDiscdDEClr=nncFrStrStatCurrentOutDiscdDEClr, nncFrStrBertStatEntry=nncFrStrBertStatEntry, nncFrStrStatIntervalInOctets=nncFrStrStatIntervalInOctets, nncFrStrStatCurrentInLinkUtilization=nncFrStrStatCurrentInLinkUtilization, nncFrStrStatIntervalCommittedPeakDelay=nncFrStrStatIntervalCommittedPeakDelay, nncFrStrBertStatTable=nncFrStrBertStatTable, nncFrStrStatIntervalInOverRuns=nncFrStrStatIntervalInOverRuns, nncFrStrStatIntervalInInvdLength=nncFrStrStatIntervalInInvdLength, nncFrPVCEndptStatCurrentOutFrames=nncFrPVCEndptStatCurrentOutFrames, nncFrStrStatIntervalRealTimeUCastPacketsDEClr=nncFrStrStatIntervalRealTimeUCastPacketsDEClr, nncFrStrStatIntervalStLMNAsyncStatusSent=nncFrStrStatIntervalStLMNAsyncStatusSent, nncFrStrStatCurrentStMaxDurationRED=nncFrStrStatCurrentStMaxDurationRED, nncFrStrStatIntervalStLMNStatusMsgsSent=nncFrStrStatIntervalStLMNStatusMsgsSent, nncFrPVCEndptStatCurrentState=nncFrPVCEndptStatCurrentState, nncFrPVCEndptStatIntervalOutDiscdUnsupEncaps=nncFrPVCEndptStatIntervalOutDiscdUnsupEncaps, nncFrStrStatIntervalRealTimePeakDelay=nncFrStrStatIntervalRealTimePeakDelay, nncFrStrStatCurrentSigNetProtErrors=nncFrStrStatCurrentSigNetProtErrors, PYSNMP_MODULE_ID=nncFrIntStatistics, nncFrStrStatCurrentStLMNStatusMsgsSent=nncFrStrStatCurrentStLMNStatusMsgsSent, nncFrStrStatIntervalStSCAlarms=nncFrStrStatIntervalStSCAlarms, nncFrStrStatCurrentRealTimeUCastPacketsDEClr=nncFrStrStatCurrentRealTimeUCastPacketsDEClr) mibBuilder.exportSymbols("NNCFRINTSTATISTICS-MIB", nncFrStrStatCurrentOutDiscdUnsupEncaps=nncFrStrStatCurrentOutDiscdUnsupEncaps, nncFrPVCEndptStatCurrentInDiscdDESet=nncFrPVCEndptStatCurrentInDiscdDESet, nncFrStrStatCurrentEntry=nncFrStrStatCurrentEntry, nncFrStrStatIntervalInAborts=nncFrStrStatIntervalInAborts, nncFrStrStatCurrentSigUserChanInactive=nncFrStrStatCurrentSigUserChanInactive)
class StylusButtonEventArgs(StylusEventArgs): """ Provides data for the System.Windows.UIElement.StylusButtonDown and System.Windows.UIElement.StylusButtonUp events. StylusButtonEventArgs(stylusDevice: StylusDevice,timestamp: int,button: StylusButton) """ @staticmethod def __new__(self,stylusDevice,timestamp,button): """ __new__(cls: type,stylusDevice: StylusDevice,timestamp: int,button: StylusButton) """ pass StylusButton=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the System.Windows.Input.StylusButton that raises this event. Get: StylusButton(self: StylusButtonEventArgs) -> StylusButton """
def betterSurround(st): st = list(st) if st[0]!= '+' and st[len(st)-1]!= '=': return False else: for i in range(0,len(st)): if st[i].isalpha(): if not (st[i-1]=='+' or st[i-1]=='=') and (st[i+1] == '+' or st[i+1] == '='): return false else: if i!=0 and i!= len(st)-1: if st[i-1].isalpha() and st[i+1].isalpha(): return False return True new = betterSurround("+f=+d+") if new: print("y") else: print("N")
for i in range(4): outfile = 'paramslist.txt' params = [0, 1, 2] with open(outfile, 'a+') as f: for param in params: f.write(str(param)) f.write(' ') f.write('\n')
def mye(level): if level < 1: raise Exception("Invalid level!") # 触发异常后,后面的代码就不会再执行 try: mye(0) # 触发异常 except Exception as err: print(1, err) else: print(2)
# ParPy: A python natural language # parser based on the one used # by Zork, for use in Python games # Copyright (c) Finn Lancaster 2021 # This file contains the BASE action words # accepted by the users program. For example # , take, move, etc. # ParPy handles similar entries and conversion # to program-accepted ones # in parentheses, the first field is the word # and the second field is whether or not the # word needs something to do it with (yes or no) recognizedTerms = [("",""),("","")]
config = { 'matrikkel_zip_files': [{ 'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/07_Vestfold/0709_Larvik/UTM32_Euref89/Shape/32_Matrikkeldata_0709.zip', 'target_shape_prefix': '32_0709adresse_punkt' },{ 'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/07_Vestfold/0706_Sandefjord/UTM32_Euref89/Shape/32_Matrikkeldata_0706.zip', 'target_shape_prefix': '32_0706adresse_punkt' },{ 'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/07_Vestfold/0719_Andebu/UTM32_Euref89/Shape/32_Matrikkeldata_0719.zip', 'target_shape_prefix': '32_0719adresse_punkt' },{ 'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/08_Telemark/0814_Bamble/UTM32_Euref89/Shape/32_Matrikkeldata_0814.zip', 'target_shape_prefix': '32_0814adresse_punkt' },{ 'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/07_Vestfold/0722_Notteroy/UTM32_Euref89/Shape/32_Matrikkeldata_0722.zip', 'target_shape_prefix': '32_0722adresse_punkt' },{ 'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/08_Telemark/0805_Porsgrunn/UTM32_Euref89/Shape/32_Matrikkeldata_0805.zip', 'target_shape_prefix': '32_0805adresse_punkt' },{ 'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/08_Telemark/0806_Skien/UTM32_Euref89/Shape/32_Matrikkeldata_0806.zip', 'target_shape_prefix': '32_0806adresse_punkt' },{ 'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/07_Vestfold/0720_Stokke/UTM32_Euref89/Shape/32_Matrikkeldata_0720.zip', 'target_shape_prefix': '32_0720adresse_punkt' },{ 'zip_name': 'Y:/kartdata/Matrikkeldata/SOSIuttrekk/07_Vestfold/0723_Tjome/UTM32_Euref89/Shape/32_Matrikkeldata_0723.zip', 'target_shape_prefix': '32_0723adresse_punkt' }], 'temp_directory': 'C:/temp/ntnu_temp/', 'file_name_raw_merged_temp': 'merged_matrikkel.shp', 'file_name_raw_merged_transformed_temp': 'merged_matrikkel_transformed.shp', 'file_name_raw_kernel_density_temp': 'kernel_density_raw.img', 'file_name_raster_to_fit': 'Y:/prosesserte_data/slope_arcm_img.img', 'area_rectangle': '532687,5 6533912,5 589987,5 6561812,5', 'file_name_kernel_density': 'Y:/prosesserte_data/kernel_density_25_500.img', 'kernel_density_cell_size': 25, 'kernel_density_search_radius': 500 }
"""PatchmatchNet dataset module reference: https://github.com/FangjinhuaWang/PatchmatchNet """
# 606. 根据二叉树创建字符串 # # 20200801 # huao # 递归 # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def tree2str(self, t: TreeNode) -> str: if t == None: return "" if t.left == None: if t.right == None: return str(t.val) else: return str(t.val) + "()(" + self.tree2str(t.right) + ")" else: if t.right == None: return str(t.val) + "(" + self.tree2str(t.left) + ")" else: return str(t.val) + "(" + self.tree2str(t.left) + ")(" + self.tree2str(t.right) + ")"
#!/usr/bin/env python class ColumnIdentifierError(Exception): """ Exception raised when the user supplies an invalid column identifier. """ def __init__(self, msg): self.msg = msg class XLSDataError(Exception): """ Exception raised when there is a problem converting XLS data. """ def __init__(self, msg): self.msg = msg class CSVTestException(Exception): """ Superclass for all row-test-failed exceptions. All must have a line number, the problematic row, and a text explanation. """ def __init__(self, line_number, row, msg): super(CSVTestException, self).__init__() self.msg = msg self.line_number = line_number self.row = row class LengthMismatchError(CSVTestException): """ Encapsulate information about a row which as the wrong length. """ def __init__(self, line_number, row, expected_length): msg = "Expected %i columns, found %i columns" % (expected_length, len(row)) super(LengthMismatchError, self).__init__(line_number, row, msg) @property def length(self): return len(self.row)
''' Gets memory usage of Linux python process Tyson Jones, Nov 2017 tyson.jones@materials.ox.ac.uk ''' _FIELDS = ['VmRSS', 'VmHWM', 'VmSize', 'VmPeak'] def get_memory(): ''' returns the current and peak, real and virtual memories used by the calling linux python process, in Bytes ''' # read in process info with open('/proc/self/status', 'r') as file: lines = file.read().split('\n') # container of memory values (_FIELDS) values = {} # check all process info fields for line in lines: if ':' in line: name, val = line.split(':') # collect relevant memory fields if name in _FIELDS: values[name] = int(val.strip().split(' ')[0]) # strip off "kB" values[name] *= 1000 # convert to B # check we collected all info assert len(values)==len(_FIELDS) return values if __name__ == '__main__': # a simple test print(get_memory()) mylist = [1.5]*2**30 print(get_memory()) del mylist print(get_memory())
class Time(): current_world = None current_time_step = None @staticmethod def get_current_world(): return Time.current_world @staticmethod def get_current_time_step(): return Time.current_time_step @staticmethod def reset(): Time.current_world = None Time.current_time_step = None @staticmethod def new_world(): if Time.current_world is None: Time.current_world = 0 else: Time.current_world += 1 Time.current_time_step = 0 @staticmethod def increment_current_time_step(): Time.current_time_step += 1
# Progressão aritimética (PA) é toda sequência númerica em que cada um de seus termos, # a partir do segundo, é igual ao anterior somado a uma CONSTANTE r, denominada razão da # progressão aritimética. Para descobrimos qual é a razão de uma PA, basta subtrairmos um # termo qualquer do seu antecessor. print('='*25) print('10 TERMOS DE UMA PA') print('='*25) primeiro = int(input('Primeiro termo: ')) razao = int(input('Razão: ')) """ pa = primeiro print(f'{pa}', end=' -> ') for c in range(1, 10): pa += razao print(f'{pa}', end=' -> ') print('ACABOU') """ decimo = primeiro + (10 - 1) * razao for c in range(primeiro, decimo + razao, razao): print('{} '.format(c), end='-> ') print('ACABOU')
class InvalidPasswordException(Exception): pass class InvalidValueException(Exception): pass
class Graph: """ convert层继承Graph后,将数据放到__init__中之后,执行父类run方法,得到填充好的数据 """ def __init__(self): pass def get_graph(self): """ 根据传过来的参数找合适的图 """ pass def fill_graph(self): """ 拿到format后的数据,天道graph里面 """ pass def _get_data(self): """ 通过gd_id0去拿真实的请求,并走完整的流程拿到数据 """ pass def _format_data(self): """ 转换成echarts图需要的格式 """ pass def run(self): self.get_graph() self.fill_graph() return self class Report: """ 插件过程的report模式,settings/gdxf/report/xxx.py 继承 Report之后 self.text_title_1 = 在text里面{gd_id1} self.text_bg_2 = self.gd_id1 = 发请求的url self.wrapper_data = self.wrapper_text = self.wrapper_all = self.wrapper_text1 self.wrapper_text2 ..... 调用父类run方法 1. 模拟发送所有请求,拿到数据 2. 拼到text里面 3. 把text拼起来 """ pass
# abrir y leer archivo f = open ('input.txt','r') mensaje = f.read() f.close() # almacenar los números en una lista list_numbers = mensaje.split('\n') list_numbers = list(map(int,list_numbers)) #print(list_numbers) increased = 0 for x in range(len(list_numbers)-3): previous = list_numbers[x] + list_numbers[x+1] + list_numbers[x+2] posterior = list_numbers[x+1] + list_numbers[x+2] + list_numbers[x+3] if(previous < posterior): increased = increased + 1 print(increased)