content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# FLOYD TRIANGLE limit = int(input("Enter the limit: ")) n = 1 for i in range(1, limit+1): for j in range(1, i+1): print(n, ' ', end='') # print on same line n += 1 print('')
limit = int(input('Enter the limit: ')) n = 1 for i in range(1, limit + 1): for j in range(1, i + 1): print(n, ' ', end='') n += 1 print('')
# 008: Make a program that reads a value in meter and convert to centimeter and millimeter n = float(input('Write a number in meter: ')) print(f'{n} is: {n*100:.1f}cm and {n*1000:.1f}mm')
n = float(input('Write a number in meter: ')) print(f'{n} is: {n * 100:.1f}cm and {n * 1000:.1f}mm')
def restar(x,y): resta = x-y return resta def multiplicar(x,y): mult = x*y return mult def dividir(x,y): div = x/y return div
def restar(x, y): resta = x - y return resta def multiplicar(x, y): mult = x * y return mult def dividir(x, y): div = x / y return div
if 1: print("1 is ") else: print("???")
if 1: print('1 is ') else: print('???')
print(''' _ _ _ _ _ | || | __ _ _ _ ___ | |_ (_) | |_ | __ | / _` | | '_| (_-< | ' \ | | | _| |_||_| \__,_| |_| /__/ |_||_| |_| \__| ''') print("IP \t Date time \t Request \t") with open("website.log","r") as f: lines= f.readlines() with open("output.txt", 'w+') as nf: for line in lines: line = line.split(" ") nf.write("{}\t {}\t {}\n" .format(line[0],line[3].replace('[',' '),line[5].replace('"',' ')))
print("\n _ _ _ _ _ \n | || | __ _ _ _ ___ | |_ (_) | |_ \n | __ | / _` | | '_| (_-< | ' \\ | | | _|\n |_||_| \\__,_| |_| /__/ |_||_| |_| \\__|\n ") print('IP \t Date time \t Request \t') with open('website.log', 'r') as f: lines = f.readlines() with open('output.txt', 'w+') as nf: for line in lines: line = line.split(' ') nf.write('{}\t {}\t {}\n'.format(line[0], line[3].replace('[', ' '), line[5].replace('"', ' ')))
sumTotal = 0 nameNum = '' a = 1 b = 2 c = 3 d = 4 e = 5 f = 6 g = 7 h = 8 i = 9 j = 10 k = 11 l = 12 m = 13 n = 14 o = 15 p = 16 q = 17 r = 18 s = 19 t = 20 u = 21 v = 22 w = 23 x = 24 y = 25 z = 26 A = '1' B = '2' C = '3' D = '4' E = '5' F = '6' G = '7' H = '8' I = '9' J = '10' K = '11' L = '12' M = '13' N = '14' O = '15' P = '16' Q = '17' R = '18' S = '19' T = '20' U = '21' V = '22' W = '23' X = '24' Y = '25' Z = '26' def letraA(sumTotal, nameNum): sumTotal = sumTotal + a nameNum = nameNum + A return sumTotal, nameNum def letraB(sumTotal, nameNum): sumTotal = sumTotal + a nameNum = nameNum + B return sumTotal, nameNum def letraC(sumTotal, nameNum): sumTotal = sumTotal + a nameNum = nameNum + C return sumTotal, nameNum def letraD(sumTotal, nameNum): sumTotal = sumTotal + d nameNum = nameNum + D return sumTotal, nameNum def letraE(sumTotal, nameNum): sumTotal = sumTotal + e nameNum = nameNum + E return sumTotal, nameNum def letraF(sumTotal, nameNum): sumTotal = sumTotal + f nameNum = nameNum + F return sumTotal, nameNum def letraG(sumTotal, nameNum): sumTotal = sumTotal + g nameNum = nameNum + G return sumTotal, nameNum def letraH(sumTotal, nameNum): sumTotal = sumTotal + h nameNum = nameNum + H return sumTotal, nameNum def letraI(sumTotal, nameNum): sumTotal = sumTotal + i nameNum = nameNum + I return sumTotal, nameNum def letraJ(sumTotal, nameNum): sumTotal = sumTotal + j nameNum = nameNum + J return sumTotal, nameNum def letraK(sumTotal, nameNum): sumTotal = sumTotal + k nameNum = nameNum + K return sumTotal, nameNum def letraL(sumTotal, nameNum): sumTotal = sumTotal + l nameNum = nameNum + L return sumTotal, nameNum def letraM(sumTotal, nameNum): sumTotal = sumTotal + m nameNum = nameNum + M return sumTotal, nameNum def letraN(sumTotal, nameNum): sumTotal = sumTotal + n nameNum = nameNum + N return sumTotal, nameNum def letraO(sumTotal, nameNum): sumTotal = sumTotal + o nameNum = nameNum + O return sumTotal, nameNum def letraP(sumTotal, nameNum): sumTotal = sumTotal + p nameNum = nameNum + P return sumTotal, nameNum def letraQ(sumTotal, nameNum): sumTotal = sumTotal + q nameNum = nameNum + Q return sumTotal, nameNum def letraR(sumTotal, nameNum): sumTotal = sumTotal + r nameNum = nameNum + R return sumTotal, nameNum def letraS(sumTotal, nameNum): sumTotal = sumTotal + s nameNum = nameNum + S return sumTotal, nameNum def letraT(sumTotal, nameNum): sumTotal = sumTotal + t nameNum = nameNum + T return sumTotal, nameNum def letraU(sumTotal, nameNum): sumTotal = sumTotal + u nameNum = nameNum + U return sumTotal, nameNum def letraV(sumTotal, nameNum): sumTotal = sumTotal + v nameNum = nameNum + V return sumTotal, nameNum def letraW(sumTotal, nameNum): sumTotal = sumTotal + w nameNum = nameNum + W return sumTotal, nameNum def letraX(sumTotal, nameNum): sumTotal = sumTotal + x nameNum = nameNum + X return sumTotal, nameNum def letraY(sumTotal, nameNum): sumTotal = sumTotal + y nameNum = nameNum + Y return sumTotal, nameNum def letraZ(sumTotal, nameNum): sumTotal = sumTotal + z nameNum = nameNum + Z return sumTotal, nameNum def nonLetra(): pass def complete(): print("A soma de suas letras sao", sumTotal, "no total.") print("Nome numerico sem soma de numeros:", nameNum)
sum_total = 0 name_num = '' a = 1 b = 2 c = 3 d = 4 e = 5 f = 6 g = 7 h = 8 i = 9 j = 10 k = 11 l = 12 m = 13 n = 14 o = 15 p = 16 q = 17 r = 18 s = 19 t = 20 u = 21 v = 22 w = 23 x = 24 y = 25 z = 26 a = '1' b = '2' c = '3' d = '4' e = '5' f = '6' g = '7' h = '8' i = '9' j = '10' k = '11' l = '12' m = '13' n = '14' o = '15' p = '16' q = '17' r = '18' s = '19' t = '20' u = '21' v = '22' w = '23' x = '24' y = '25' z = '26' def letra_a(sumTotal, nameNum): sum_total = sumTotal + a name_num = nameNum + A return (sumTotal, nameNum) def letra_b(sumTotal, nameNum): sum_total = sumTotal + a name_num = nameNum + B return (sumTotal, nameNum) def letra_c(sumTotal, nameNum): sum_total = sumTotal + a name_num = nameNum + C return (sumTotal, nameNum) def letra_d(sumTotal, nameNum): sum_total = sumTotal + d name_num = nameNum + D return (sumTotal, nameNum) def letra_e(sumTotal, nameNum): sum_total = sumTotal + e name_num = nameNum + E return (sumTotal, nameNum) def letra_f(sumTotal, nameNum): sum_total = sumTotal + f name_num = nameNum + F return (sumTotal, nameNum) def letra_g(sumTotal, nameNum): sum_total = sumTotal + g name_num = nameNum + G return (sumTotal, nameNum) def letra_h(sumTotal, nameNum): sum_total = sumTotal + h name_num = nameNum + H return (sumTotal, nameNum) def letra_i(sumTotal, nameNum): sum_total = sumTotal + i name_num = nameNum + I return (sumTotal, nameNum) def letra_j(sumTotal, nameNum): sum_total = sumTotal + j name_num = nameNum + J return (sumTotal, nameNum) def letra_k(sumTotal, nameNum): sum_total = sumTotal + k name_num = nameNum + K return (sumTotal, nameNum) def letra_l(sumTotal, nameNum): sum_total = sumTotal + l name_num = nameNum + L return (sumTotal, nameNum) def letra_m(sumTotal, nameNum): sum_total = sumTotal + m name_num = nameNum + M return (sumTotal, nameNum) def letra_n(sumTotal, nameNum): sum_total = sumTotal + n name_num = nameNum + N return (sumTotal, nameNum) def letra_o(sumTotal, nameNum): sum_total = sumTotal + o name_num = nameNum + O return (sumTotal, nameNum) def letra_p(sumTotal, nameNum): sum_total = sumTotal + p name_num = nameNum + P return (sumTotal, nameNum) def letra_q(sumTotal, nameNum): sum_total = sumTotal + q name_num = nameNum + Q return (sumTotal, nameNum) def letra_r(sumTotal, nameNum): sum_total = sumTotal + r name_num = nameNum + R return (sumTotal, nameNum) def letra_s(sumTotal, nameNum): sum_total = sumTotal + s name_num = nameNum + S return (sumTotal, nameNum) def letra_t(sumTotal, nameNum): sum_total = sumTotal + t name_num = nameNum + T return (sumTotal, nameNum) def letra_u(sumTotal, nameNum): sum_total = sumTotal + u name_num = nameNum + U return (sumTotal, nameNum) def letra_v(sumTotal, nameNum): sum_total = sumTotal + v name_num = nameNum + V return (sumTotal, nameNum) def letra_w(sumTotal, nameNum): sum_total = sumTotal + w name_num = nameNum + W return (sumTotal, nameNum) def letra_x(sumTotal, nameNum): sum_total = sumTotal + x name_num = nameNum + X return (sumTotal, nameNum) def letra_y(sumTotal, nameNum): sum_total = sumTotal + y name_num = nameNum + Y return (sumTotal, nameNum) def letra_z(sumTotal, nameNum): sum_total = sumTotal + z name_num = nameNum + Z return (sumTotal, nameNum) def non_letra(): pass def complete(): print('A soma de suas letras sao', sumTotal, 'no total.') print('Nome numerico sem soma de numeros:', nameNum)
""" Validate BST: Implement a function to check if a binary tree is a binary search tree. """ # idea: if BST, inorder traversal gives a nondecreasing sorted list class BTNode: def __init__(self, val: int, left=None, right=None): self.val = val self.left: BTNode = left self.right: BTNode = right def is_BST(node: BTNode): # Space optimized O(log N) solution using inorder traversal stack = [] """nodes = []""" prev_val = None curr_val = None curr = node while True: if curr is not None: stack.append(curr) curr = curr.left elif stack: popped = stack.pop() if prev_val is None: prev_val = popped.val elif curr_val is None: curr_val = popped.val else: prev_val = curr_val curr_val = popped.val if prev_val is not None and curr_val is not None and prev_val > curr_val: return False curr = popped.right else: break return True def test_solution(): real_BST = BTNode(8, BTNode(4, BTNode(2), BTNode(6)), BTNode(10, None, BTNode(20))) not_BST = BTNode(8, BTNode(4, BTNode(2), BTNode(12)), BTNode(10, None, BTNode(20))) assert is_BST(real_BST) assert not is_BST(not_BST) if __name__ == '__main__': test_solution()
""" Validate BST: Implement a function to check if a binary tree is a binary search tree. """ class Btnode: def __init__(self, val: int, left=None, right=None): self.val = val self.left: BTNode = left self.right: BTNode = right def is_bst(node: BTNode): stack = [] 'nodes = []' prev_val = None curr_val = None curr = node while True: if curr is not None: stack.append(curr) curr = curr.left elif stack: popped = stack.pop() if prev_val is None: prev_val = popped.val elif curr_val is None: curr_val = popped.val else: prev_val = curr_val curr_val = popped.val if prev_val is not None and curr_val is not None and (prev_val > curr_val): return False curr = popped.right else: break return True def test_solution(): real_bst = bt_node(8, bt_node(4, bt_node(2), bt_node(6)), bt_node(10, None, bt_node(20))) not_bst = bt_node(8, bt_node(4, bt_node(2), bt_node(12)), bt_node(10, None, bt_node(20))) assert is_bst(real_BST) assert not is_bst(not_BST) if __name__ == '__main__': test_solution()
############################################################################ # # Copyright (C) 2016 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of Qt Creator. # # Commercial License Usage # Licensees holding valid commercial Qt licenses may use this file in # accordance with the commercial license agreement provided with the # Software or, alternatively, in accordance with the terms contained in # a written agreement between you and The Qt Company. For licensing terms # and conditions see https://www.qt.io/terms-conditions. For further # information use the contact form at https://www.qt.io/contact-us. # # GNU General Public License Usage # Alternatively, this file may be used under the terms of the GNU # General Public License version 3 as published by the Free Software # Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT # included in the packaging of this file. Please review the following # information to ensure the GNU General Public License requirements will # be met: https://www.gnu.org/licenses/gpl-3.0.html. # ############################################################################ source("../../shared/qtcreator.py") def main(): startApplication("qtcreator" + SettingsPath) if not startedWithoutPluginError(): return available = ["5.6"] for qtVersion in available: # using a temporary directory won't mess up a potentially existing workingDir = tempDir() projectName = createNewQtQuickUI(workingDir, qtVersion) quick = "2.6" qmlViewer = modifyRunSettingsForHookIntoQtQuickUI(1, 0, workingDir, projectName, 11223, quick) if qmlViewer!=None: qmlViewerPath = os.path.dirname(qmlViewer) qmlViewer = os.path.basename(qmlViewer) result = addExecutableAsAttachableAUT(qmlViewer, 11223) allowAppThroughWinFW(qmlViewerPath, qmlViewer, None) if result: result = runAndCloseApp(True, qmlViewer, 11223, sType=SubprocessType.QT_QUICK_UI, quickVersion=quick) else: result = runAndCloseApp(sType=SubprocessType.QT_QUICK_UI) removeExecutableAsAttachableAUT(qmlViewer, 11223) deleteAppFromWinFW(qmlViewerPath, qmlViewer) else: result = runAndCloseApp(sType=SubprocessType.QT_QUICK_UI) if result == None: checkCompile() else: appOutput = logApplicationOutput() test.verify(not ("untitled.qml" in appOutput or "MainForm.ui.qml" in appOutput), "Does the Application Output indicate QML errors?") invokeMenuItem("File", "Close All Projects and Editors") invokeMenuItem("File", "Exit")
source('../../shared/qtcreator.py') def main(): start_application('qtcreator' + SettingsPath) if not started_without_plugin_error(): return available = ['5.6'] for qt_version in available: working_dir = temp_dir() project_name = create_new_qt_quick_ui(workingDir, qtVersion) quick = '2.6' qml_viewer = modify_run_settings_for_hook_into_qt_quick_ui(1, 0, workingDir, projectName, 11223, quick) if qmlViewer != None: qml_viewer_path = os.path.dirname(qmlViewer) qml_viewer = os.path.basename(qmlViewer) result = add_executable_as_attachable_aut(qmlViewer, 11223) allow_app_through_win_fw(qmlViewerPath, qmlViewer, None) if result: result = run_and_close_app(True, qmlViewer, 11223, sType=SubprocessType.QT_QUICK_UI, quickVersion=quick) else: result = run_and_close_app(sType=SubprocessType.QT_QUICK_UI) remove_executable_as_attachable_aut(qmlViewer, 11223) delete_app_from_win_fw(qmlViewerPath, qmlViewer) else: result = run_and_close_app(sType=SubprocessType.QT_QUICK_UI) if result == None: check_compile() else: app_output = log_application_output() test.verify(not ('untitled.qml' in appOutput or 'MainForm.ui.qml' in appOutput), 'Does the Application Output indicate QML errors?') invoke_menu_item('File', 'Close All Projects and Editors') invoke_menu_item('File', 'Exit')
#State Codes area_codes = [("Alabama",[205, 251, 256, 334, 659, 938]), ("Alaska",[907]), ("Arizona",[480, 520, 602, 623, 928]), ("Arkansas",[327, 479, 501, 870]), ("California",[209, 213, 310, 323, 341, 369, 408, 415, 424, 442, 510, 530, 559, 562, 619, 626, 627, 628, 650, 657, 661, 669, 707, 714, 747, 760, 764, 805, 818, 831, 858, 909, 916, 925, 935, 949, 951 ]), ("Colorado",[303, 719, 720, 970 ]), ("Connecticut",[203, 475, 860, 959]), ("Delaware",[302]), ("District of Columbia",[202]), ("Florida",[239, 305, 321, 352, 386, 407, 561, 689, 727, 754, 772, 786, 813, 850, 863, 904, 927, 941, 954 ]), ("Georgia",[229, 404, 470, 478, 678, 706, 762, 770, 912 ]), ("Hawaii",[808]), ("Idaho",[208]), ("Illinois",[217, 224, 309, 312, 331, 447, 464, 618, 630, 708, 730, 773, 779, 815, 847, 872 ]), ("Indiana",[219, 260, 317, 574, 765, 812, 930]), ("Iowa",[319, 515, 563, 641, 712 ]), ("Kansas",[316, 620, 785, 913]), ("Kentucky",[270, 364, 502, 606, 859]), ("Louisiana",[225, 318, 337, 504, 985]), ("Maine",[207]), ("Maryland",[227, 240, 301, 410, 443, 667]), ("Massachusetts",[339, 351, 413, 508, 617, 774, 781, 857, 978 ]), ("Michigan",[231, 248, 269, 278, 313, 517, 586, 616, 679, 734, 810, 906, 947, 989 ]), ("Minnesota",[218, 320, 507, 612, 651, 763, 952]), ("Mississippi",[228, 601, 662, 769]), ("Missouri",[314, 417, 557, 573, 636, 660, 816, 975]), ("Montana",[406]), ("Nebraska",[308, 402, 531]), ("Nevada",[702, 725, 775]), ("New Hampshire",[603]), ("New Jersey",[201, 551, 609, 732, 848, 856, 862, 908, 973 ]), ("New Mexico",[505, 575]), ("New York",[212, 315, 347, 516, 518, 585, 607, 631, 646, 716, 718, 845, 914, 917, 929, 934 ]), ("North Carolina",[252, 336, 704, 743, 828, 910, 919, 980, 984 ]), ("North Dakota",[701]), ("Ohio",[216, 220, 234, 283, 330, 380, 419, 440, 513, 567, 614, 740, 937]), ("Oklahoma",[405, 539, 580, 918]), ("Oregon",[458, 503, 541, 971]), ("Pennsylvania",[215, 267, 272, 412, 484, 570, 582, 610, 717, 724, 814, 878 ]), ("Rhode Island",[401]), ("South Carolina",[803, 843, 854, 864]), ("South Dakota",[605]), ("Tennessee",[423, 615, 629, 731, 865, 901, 931]), ("Texas",[210, 214, 254, 281, 325, 346, 361, 409, 430, 432, 469, 512, 682, 713, 737, 806, 817, 830, 832, 903, 915, 936, 940, 956, 972, 979 ]), ("Utah",[385, 435, 801]), ("Vermont",[802]), ("Virginia",[276, 434, 540, 571, 703, 757, 804 ]), ("Washington",[206, 253, 360, 425, 509, 564]), ("West Virginia",[304, 681]), ("Wisconsin",[262, 274, 414, 534, 608, 715, 920]), ("Wyoming",[307])]
area_codes = [('Alabama', [205, 251, 256, 334, 659, 938]), ('Alaska', [907]), ('Arizona', [480, 520, 602, 623, 928]), ('Arkansas', [327, 479, 501, 870]), ('California', [209, 213, 310, 323, 341, 369, 408, 415, 424, 442, 510, 530, 559, 562, 619, 626, 627, 628, 650, 657, 661, 669, 707, 714, 747, 760, 764, 805, 818, 831, 858, 909, 916, 925, 935, 949, 951]), ('Colorado', [303, 719, 720, 970]), ('Connecticut', [203, 475, 860, 959]), ('Delaware', [302]), ('District of Columbia', [202]), ('Florida', [239, 305, 321, 352, 386, 407, 561, 689, 727, 754, 772, 786, 813, 850, 863, 904, 927, 941, 954]), ('Georgia', [229, 404, 470, 478, 678, 706, 762, 770, 912]), ('Hawaii', [808]), ('Idaho', [208]), ('Illinois', [217, 224, 309, 312, 331, 447, 464, 618, 630, 708, 730, 773, 779, 815, 847, 872]), ('Indiana', [219, 260, 317, 574, 765, 812, 930]), ('Iowa', [319, 515, 563, 641, 712]), ('Kansas', [316, 620, 785, 913]), ('Kentucky', [270, 364, 502, 606, 859]), ('Louisiana', [225, 318, 337, 504, 985]), ('Maine', [207]), ('Maryland', [227, 240, 301, 410, 443, 667]), ('Massachusetts', [339, 351, 413, 508, 617, 774, 781, 857, 978]), ('Michigan', [231, 248, 269, 278, 313, 517, 586, 616, 679, 734, 810, 906, 947, 989]), ('Minnesota', [218, 320, 507, 612, 651, 763, 952]), ('Mississippi', [228, 601, 662, 769]), ('Missouri', [314, 417, 557, 573, 636, 660, 816, 975]), ('Montana', [406]), ('Nebraska', [308, 402, 531]), ('Nevada', [702, 725, 775]), ('New Hampshire', [603]), ('New Jersey', [201, 551, 609, 732, 848, 856, 862, 908, 973]), ('New Mexico', [505, 575]), ('New York', [212, 315, 347, 516, 518, 585, 607, 631, 646, 716, 718, 845, 914, 917, 929, 934]), ('North Carolina', [252, 336, 704, 743, 828, 910, 919, 980, 984]), ('North Dakota', [701]), ('Ohio', [216, 220, 234, 283, 330, 380, 419, 440, 513, 567, 614, 740, 937]), ('Oklahoma', [405, 539, 580, 918]), ('Oregon', [458, 503, 541, 971]), ('Pennsylvania', [215, 267, 272, 412, 484, 570, 582, 610, 717, 724, 814, 878]), ('Rhode Island', [401]), ('South Carolina', [803, 843, 854, 864]), ('South Dakota', [605]), ('Tennessee', [423, 615, 629, 731, 865, 901, 931]), ('Texas', [210, 214, 254, 281, 325, 346, 361, 409, 430, 432, 469, 512, 682, 713, 737, 806, 817, 830, 832, 903, 915, 936, 940, 956, 972, 979]), ('Utah', [385, 435, 801]), ('Vermont', [802]), ('Virginia', [276, 434, 540, 571, 703, 757, 804]), ('Washington', [206, 253, 360, 425, 509, 564]), ('West Virginia', [304, 681]), ('Wisconsin', [262, 274, 414, 534, 608, 715, 920]), ('Wyoming', [307])]
#!/usr/bin/python '''the -O turns off the assertions''' def myFunc(a,b,c,d): ''' this is my function with the formula (2*a+b)/(c-d) ''' assert c!=d, "c should not equal d" return (2*a+b)/(c-d) myFunc(1,2,3,3)
"""the -O turns off the assertions""" def my_func(a, b, c, d): """ this is my function with the formula (2*a+b)/(c-d) """ assert c != d, 'c should not equal d' return (2 * a + b) / (c - d) my_func(1, 2, 3, 3)
# # PySNMP MIB module H3C-IKE-MONITOR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H3C-IKE-MONITOR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:09:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint") h3cCommon, = mibBuilder.importSymbols("HUAWEI-3COM-OID-MIB", "h3cCommon") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") ObjectGroup, NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "NotificationGroup", "ModuleCompliance") Gauge32, Bits, ObjectIdentity, Integer32, TimeTicks, ModuleIdentity, Counter32, Unsigned32, Counter64, NotificationType, MibIdentifier, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, iso = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "Bits", "ObjectIdentity", "Integer32", "TimeTicks", "ModuleIdentity", "Counter32", "Unsigned32", "Counter64", "NotificationType", "MibIdentifier", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") h3cIKEMonitor = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30)) if mibBuilder.loadTexts: h3cIKEMonitor.setLastUpdated('200410260000Z') if mibBuilder.loadTexts: h3cIKEMonitor.setOrganization('Huawei-3COM Technologies Co., Ltd.') class H3cIKENegoMode(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(2, 4, 32)) namedValues = NamedValues(("mainMode", 2), ("aggressiveMode", 4), ("quickMode", 32)) class H3cIKEAuthMethod(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 3)) namedValues = NamedValues(("preSharedKey", 1), ("rsaSignatures", 3)) class H3cDiffHellmanGrp(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 5, 14)) namedValues = NamedValues(("modp768", 1), ("modp1024", 2), ("modp1536", 5), ("modp2048", 14)) class H3cEncryptAlgo(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) namedValues = NamedValues(("none", 0), ("desCbc", 1), ("ideaCbc", 2), ("blowfishCbc", 3), ("rc5R16B64Cbc", 4), ("tripleDesCbc", 5), ("castCbc", 6), ("aesCbc", 7), ("aesCbc128", 8), ("aesCbc192", 9), ("aesCbc256", 10)) class H3cAuthAlgo(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2)) namedValues = NamedValues(("none", 0), ("md5", 1), ("sha", 2)) class H3cSaProtocol(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4)) namedValues = NamedValues(("reserved", 0), ("isakmp", 1), ("ah", 2), ("esp", 3), ("ipcomp", 4)) class H3cTrapStatus(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("enabled", 1), ("disabled", 2)) class H3cIKEIDType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)) namedValues = NamedValues(("reserved", 0), ("ipv4Addr", 1), ("fqdn", 2), ("userFqdn", 3), ("ipv4AddrSubnet", 4), ("ipv6Addr", 5), ("ipv6AddrSubnet", 6), ("ipv4AddrRange", 7), ("ipv6AddrRange", 8), ("derAsn1Dn", 9), ("derAsn1Gn", 10), ("keyId", 11)) class H3cTrafficType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 4, 5, 6, 7, 8)) namedValues = NamedValues(("ipv4Addr", 1), ("ipv4AddrSubnet", 4), ("ipv6Addr", 5), ("ipv6AddrSubnet", 6), ("ipv4AddrRange", 7), ("ipv6AddrRange", 8)) class H3cIKETunnelState(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("active", 1), ("timeout", 2)) h3cIKEObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1)) h3cIKETunnelTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1), ) if mibBuilder.loadTexts: h3cIKETunnelTable.setStatus('current') h3cIKETunnelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1), ).setIndexNames((0, "H3C-IKE-MONITOR-MIB", "h3cIKETunIndex")) if mibBuilder.loadTexts: h3cIKETunnelEntry.setStatus('current') h3cIKETunIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))) if mibBuilder.loadTexts: h3cIKETunIndex.setStatus('current') h3cIKETunLocalType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 2), H3cIKEIDType()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunLocalType.setStatus('current') h3cIKETunLocalValue1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunLocalValue1.setStatus('current') h3cIKETunLocalValue2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunLocalValue2.setStatus('current') h3cIKETunLocalAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunLocalAddr.setStatus('current') h3cIKETunRemoteType = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 6), H3cIKEIDType()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunRemoteType.setStatus('current') h3cIKETunRemoteValue1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunRemoteValue1.setStatus('current') h3cIKETunRemoteValue2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 8), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunRemoteValue2.setStatus('current') h3cIKETunRemoteAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 9), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunRemoteAddr.setStatus('current') h3cIKETunInitiator = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("local", 1), ("remote", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunInitiator.setStatus('current') h3cIKETunNegoMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 11), H3cIKENegoMode()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunNegoMode.setStatus('current') h3cIKETunDiffHellmanGrp = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 12), H3cDiffHellmanGrp()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunDiffHellmanGrp.setStatus('current') h3cIKETunEncryptAlgo = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 13), H3cEncryptAlgo()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunEncryptAlgo.setStatus('current') h3cIKETunHashAlgo = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 14), H3cAuthAlgo()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunHashAlgo.setStatus('current') h3cIKETunAuthMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 15), H3cIKEAuthMethod()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunAuthMethod.setStatus('current') h3cIKETunLifeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunLifeTime.setStatus('current') h3cIKETunActiveTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunActiveTime.setStatus('current') h3cIKETunRemainTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunRemainTime.setStatus('current') h3cIKETunTotalRefreshes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunTotalRefreshes.setStatus('current') h3cIKETunState = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 20), H3cIKETunnelState()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunState.setStatus('current') h3cIKETunDpdIntervalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 21), Integer32().clone(10)).setUnits('second').setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunDpdIntervalTime.setStatus('current') h3cIKETunDpdTimeOut = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 22), Integer32().clone(5)).setUnits('second').setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunDpdTimeOut.setStatus('current') h3cIKETunnelStatTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2), ) if mibBuilder.loadTexts: h3cIKETunnelStatTable.setStatus('current') h3cIKETunnelStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1), ).setIndexNames((0, "H3C-IKE-MONITOR-MIB", "h3cIKETunIndex")) if mibBuilder.loadTexts: h3cIKETunnelStatEntry.setStatus('current') h3cIKETunInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunInOctets.setStatus('current') h3cIKETunInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunInPkts.setStatus('current') h3cIKETunInDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunInDropPkts.setStatus('current') h3cIKETunInP2Exchgs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunInP2Exchgs.setStatus('current') h3cIKETunInP2ExchgRejets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunInP2ExchgRejets.setStatus('current') h3cIKETunInP2SaDelRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunInP2SaDelRequests.setStatus('current') h3cIKETunInP1SaDelRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunInP1SaDelRequests.setStatus('current') h3cIKETunInNotifys = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunInNotifys.setStatus('current') h3cIKETunOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunOutOctets.setStatus('current') h3cIKETunOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunOutPkts.setStatus('current') h3cIKETunOutDropPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunOutDropPkts.setStatus('current') h3cIKETunOutP2Exchgs = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunOutP2Exchgs.setStatus('current') h3cIKETunOutP2ExchgRejects = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunOutP2ExchgRejects.setStatus('current') h3cIKETunOutP2SaDelRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunOutP2SaDelRequests.setStatus('current') h3cIKETunOutP1SaDelRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunOutP1SaDelRequests.setStatus('current') h3cIKETunOutNotifys = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKETunOutNotifys.setStatus('current') h3cIKEGlobalStats = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3)) h3cIKEGlobalActiveTunnels = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 1), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalActiveTunnels.setStatus('current') h3cIKEGlobalInOctets = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInOctets.setStatus('current') h3cIKEGlobalInPkts = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInPkts.setStatus('current') h3cIKEGlobalInDropPkts = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInDropPkts.setStatus('current') h3cIKEGlobalInP2Exchgs = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInP2Exchgs.setStatus('current') h3cIKEGlobalInP2ExchgRejects = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInP2ExchgRejects.setStatus('current') h3cIKEGlobalInP2SaDelRequests = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInP2SaDelRequests.setStatus('current') h3cIKEGlobalInNotifys = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInNotifys.setStatus('current') h3cIKEGlobalOutOctets = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalOutOctets.setStatus('current') h3cIKEGlobalOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalOutPkts.setStatus('current') h3cIKEGlobalOutDropPkts = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalOutDropPkts.setStatus('current') h3cIKEGlobalOutP2Exchgs = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalOutP2Exchgs.setStatus('current') h3cIKEGlobalOutP2ExchgRejects = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalOutP2ExchgRejects.setStatus('current') h3cIKEGlobalOutP2SaDelRequests = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalOutP2SaDelRequests.setStatus('current') h3cIKEGlobalOutNotifys = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalOutNotifys.setStatus('current') h3cIKEGlobalInitTunnels = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInitTunnels.setStatus('current') h3cIKEGlobalInitTunnelFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInitTunnelFails.setStatus('current') h3cIKEGlobalRespTunnels = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalRespTunnels.setStatus('current') h3cIKEGlobalRespTunnelFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalRespTunnelFails.setStatus('current') h3cIKEGlobalAuthFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalAuthFails.setStatus('current') h3cIKEGlobalNoSaFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalNoSaFails.setStatus('current') h3cIKEGlobalInvalidCookieFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInvalidCookieFails.setStatus('current') h3cIKEGlobalAttrNotSuppFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalAttrNotSuppFails.setStatus('current') h3cIKEGlobalNoProposalChosenFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalNoProposalChosenFails.setStatus('current') h3cIKEGlobalUnsportExchTypeFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 25), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalUnsportExchTypeFails.setStatus('current') h3cIKEGlobalInvalidIdFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 26), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInvalidIdFails.setStatus('current') h3cIKEGlobalInvalidProFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 27), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInvalidProFails.setStatus('current') h3cIKEGlobalCertTypeUnsuppFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 28), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalCertTypeUnsuppFails.setStatus('current') h3cIKEGlobalInvalidCertAuthFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 29), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInvalidCertAuthFails.setStatus('current') h3cIKEGlobalInvalidSignFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 30), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalInvalidSignFails.setStatus('current') h3cIKEGlobalCertUnavailableFails = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 31), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: h3cIKEGlobalCertUnavailableFails.setStatus('current') h3cIKETrapObject = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4)) h3cIKEProposalNumber = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: h3cIKEProposalNumber.setStatus('current') h3cIKEProposalSize = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 2), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: h3cIKEProposalSize.setStatus('current') h3cIKEIdInformation = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 3), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: h3cIKEIdInformation.setStatus('current') h3cIKEProtocolNum = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 4), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: h3cIKEProtocolNum.setStatus('current') h3cIKECertInformation = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 5), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: h3cIKECertInformation.setStatus('current') h3cIKETrapCntl = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5)) h3cIKETrapGlobalCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 1), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKETrapGlobalCntl.setStatus('current') h3cIKETunnelStartTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 2), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKETunnelStartTrapCntl.setStatus('current') h3cIKETunnelStopTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 3), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKETunnelStopTrapCntl.setStatus('current') h3cIKENoSaTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 4), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKENoSaTrapCntl.setStatus('current') h3cIKEEncryFailureTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 5), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEEncryFailureTrapCntl.setStatus('current') h3cIKEDecryFailureTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 6), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEDecryFailureTrapCntl.setStatus('current') h3cIKEInvalidProposalTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 7), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEInvalidProposalTrapCntl.setStatus('current') h3cIKEAuthFailTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 8), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEAuthFailTrapCntl.setStatus('current') h3cIKEInvalidCookieTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 9), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEInvalidCookieTrapCntl.setStatus('current') h3cIKEInvalidSpiTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 10), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEInvalidSpiTrapCntl.setStatus('current') h3cIKEAttrNotSuppTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 11), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEAttrNotSuppTrapCntl.setStatus('current') h3cIKEUnsportExchTypeTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 12), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEUnsportExchTypeTrapCntl.setStatus('current') h3cIKEInvalidIdTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 13), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEInvalidIdTrapCntl.setStatus('current') h3cIKEInvalidProtocolTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 14), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEInvalidProtocolTrapCntl.setStatus('current') h3cIKECertTypeUnsuppTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 15), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKECertTypeUnsuppTrapCntl.setStatus('current') h3cIKEInvalidCertAuthTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 16), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEInvalidCertAuthTrapCntl.setStatus('current') h3cIKEInvalidSignTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 17), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEInvalidSignTrapCntl.setStatus('current') h3cIKECertUnavailableTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 18), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKECertUnavailableTrapCntl.setStatus('current') h3cIKEProposalAddTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 19), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEProposalAddTrapCntl.setStatus('current') h3cIKEProposalDelTrapCntl = MibScalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 20), H3cTrapStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: h3cIKEProposalDelTrapCntl.setStatus('current') h3cIKETrap = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6)) h3cIKENotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1)) h3cIKETunnelStart = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 1)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunLifeTime")) if mibBuilder.loadTexts: h3cIKETunnelStart.setStatus('current') h3cIKETunnelStop = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 2)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunActiveTime")) if mibBuilder.loadTexts: h3cIKETunnelStop.setStatus('current') h3cIKENoSaFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 3)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr")) if mibBuilder.loadTexts: h3cIKENoSaFailure.setStatus('current') h3cIKEEncryFailFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 4)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr")) if mibBuilder.loadTexts: h3cIKEEncryFailFailure.setStatus('current') h3cIKEDecryFailFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 5)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr")) if mibBuilder.loadTexts: h3cIKEDecryFailFailure.setStatus('current') h3cIKEInvalidProposalFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 6)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr")) if mibBuilder.loadTexts: h3cIKEInvalidProposalFailure.setStatus('current') h3cIKEAuthFailFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 7)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr")) if mibBuilder.loadTexts: h3cIKEAuthFailFailure.setStatus('current') h3cIKEInvalidCookieFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 8)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr")) if mibBuilder.loadTexts: h3cIKEInvalidCookieFailure.setStatus('current') h3cIKEAttrNotSuppFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 9)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr")) if mibBuilder.loadTexts: h3cIKEAttrNotSuppFailure.setStatus('current') h3cIKEUnsportExchTypeFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 10)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr")) if mibBuilder.loadTexts: h3cIKEUnsportExchTypeFailure.setStatus('current') h3cIKEInvalidIdFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 11)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKEIdInformation")) if mibBuilder.loadTexts: h3cIKEInvalidIdFailure.setStatus('current') h3cIKEInvalidProtocolFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 12)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKEProtocolNum")) if mibBuilder.loadTexts: h3cIKEInvalidProtocolFailure.setStatus('current') h3cIKECertTypeUnsuppFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 13)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKECertInformation")) if mibBuilder.loadTexts: h3cIKECertTypeUnsuppFailure.setStatus('current') h3cIKEInvalidCertAuthFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 14)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKECertInformation")) if mibBuilder.loadTexts: h3cIKEInvalidCertAuthFailure.setStatus('current') h3cIKElInvalidSignFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 15)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKECertInformation")) if mibBuilder.loadTexts: h3cIKElInvalidSignFailure.setStatus('current') h3cIKECertUnavailableFailure = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 16)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKECertInformation")) if mibBuilder.loadTexts: h3cIKECertUnavailableFailure.setStatus('current') h3cIKEProposalAdd = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 17)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKEProposalNumber"), ("H3C-IKE-MONITOR-MIB", "h3cIKEProposalSize")) if mibBuilder.loadTexts: h3cIKEProposalAdd.setStatus('current') h3cIKEProposalDel = NotificationType((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 18)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKEProposalNumber"), ("H3C-IKE-MONITOR-MIB", "h3cIKEProposalSize")) if mibBuilder.loadTexts: h3cIKEProposalDel.setStatus('current') h3cIKEConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2)) h3cIKECompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 1)) h3cIKEGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2)) h3cIKECompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 1, 1)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunnelTableGroup"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunnelStatTableGroup"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalStatsGroup"), ("H3C-IKE-MONITOR-MIB", "h3cIKETrapObjectGroup"), ("H3C-IKE-MONITOR-MIB", "h3cIKETrapCntlGroup"), ("H3C-IKE-MONITOR-MIB", "h3cIKETrapGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cIKECompliance = h3cIKECompliance.setStatus('current') h3cIKETunnelTableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 1)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalType"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalValue1"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalValue2"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunLocalAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteType"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteValue1"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteValue2"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemoteAddr"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunInitiator"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunNegoMode"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunDiffHellmanGrp"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunEncryptAlgo"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunHashAlgo"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunAuthMethod"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunLifeTime"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunActiveTime"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunRemainTime"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunTotalRefreshes"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunState"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunDpdIntervalTime"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunDpdTimeOut")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cIKETunnelTableGroup = h3cIKETunnelTableGroup.setStatus('current') h3cIKETunnelStatTableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 2)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunInOctets"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunInPkts"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunInDropPkts"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunInP2Exchgs"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunInP2ExchgRejets"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunInP2SaDelRequests"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunInP1SaDelRequests"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunInNotifys"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunOutOctets"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunOutPkts"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunOutDropPkts"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunOutP2Exchgs"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunOutP2ExchgRejects"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunOutP2SaDelRequests"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunOutP1SaDelRequests"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunOutNotifys")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cIKETunnelStatTableGroup = h3cIKETunnelStatTableGroup.setStatus('current') h3cIKEGlobalStatsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 3)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalActiveTunnels"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInOctets"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInPkts"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInDropPkts"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInP2Exchgs"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInP2ExchgRejects"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInP2SaDelRequests"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInNotifys"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalOutOctets"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalOutPkts"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalOutDropPkts"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalOutP2Exchgs"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalOutP2ExchgRejects"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalOutP2SaDelRequests"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalOutNotifys"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInitTunnels"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInitTunnelFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalRespTunnels"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalRespTunnelFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalAuthFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalNoSaFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInvalidCookieFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalAttrNotSuppFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalNoProposalChosenFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalUnsportExchTypeFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInvalidIdFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInvalidProFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalCertTypeUnsuppFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInvalidCertAuthFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalInvalidSignFails"), ("H3C-IKE-MONITOR-MIB", "h3cIKEGlobalCertUnavailableFails")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cIKEGlobalStatsGroup = h3cIKEGlobalStatsGroup.setStatus('current') h3cIKETrapObjectGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 4)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKEProposalNumber"), ("H3C-IKE-MONITOR-MIB", "h3cIKEProposalSize"), ("H3C-IKE-MONITOR-MIB", "h3cIKEIdInformation"), ("H3C-IKE-MONITOR-MIB", "h3cIKEProtocolNum"), ("H3C-IKE-MONITOR-MIB", "h3cIKECertInformation")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cIKETrapObjectGroup = h3cIKETrapObjectGroup.setStatus('current') h3cIKETrapCntlGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 5)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETrapGlobalCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunnelStartTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunnelStopTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKENoSaTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEEncryFailureTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEDecryFailureTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidProposalTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEAuthFailTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidCookieTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidSpiTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEAttrNotSuppTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEUnsportExchTypeTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidIdTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidProtocolTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKECertTypeUnsuppTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidCertAuthTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidSignTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKECertUnavailableTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEProposalAddTrapCntl"), ("H3C-IKE-MONITOR-MIB", "h3cIKEProposalDelTrapCntl")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cIKETrapCntlGroup = h3cIKETrapCntlGroup.setStatus('current') h3cIKETrapGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 6)).setObjects(("H3C-IKE-MONITOR-MIB", "h3cIKETunnelStart"), ("H3C-IKE-MONITOR-MIB", "h3cIKETunnelStop"), ("H3C-IKE-MONITOR-MIB", "h3cIKENoSaFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEEncryFailFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEDecryFailFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidProposalFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEAuthFailFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidCookieFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEAttrNotSuppFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEUnsportExchTypeFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidIdFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidProtocolFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKECertTypeUnsuppFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEInvalidCertAuthFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKElInvalidSignFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKECertUnavailableFailure"), ("H3C-IKE-MONITOR-MIB", "h3cIKEProposalAdd"), ("H3C-IKE-MONITOR-MIB", "h3cIKEProposalDel")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3cIKETrapGroup = h3cIKETrapGroup.setStatus('current') mibBuilder.exportSymbols("H3C-IKE-MONITOR-MIB", h3cIKEGlobalInitTunnelFails=h3cIKEGlobalInitTunnelFails, h3cIKEAttrNotSuppFailure=h3cIKEAttrNotSuppFailure, h3cIKEGlobalCertUnavailableFails=h3cIKEGlobalCertUnavailableFails, h3cIKETunInitiator=h3cIKETunInitiator, h3cIKETunnelStatEntry=h3cIKETunnelStatEntry, h3cIKEGlobalOutDropPkts=h3cIKEGlobalOutDropPkts, h3cIKEGlobalInvalidCertAuthFails=h3cIKEGlobalInvalidCertAuthFails, h3cIKEProposalAddTrapCntl=h3cIKEProposalAddTrapCntl, h3cIKEInvalidProtocolTrapCntl=h3cIKEInvalidProtocolTrapCntl, h3cIKETunnelTable=h3cIKETunnelTable, h3cIKETunInPkts=h3cIKETunInPkts, h3cIKECertTypeUnsuppFailure=h3cIKECertTypeUnsuppFailure, h3cIKETrapCntlGroup=h3cIKETrapCntlGroup, h3cIKEGlobalInP2ExchgRejects=h3cIKEGlobalInP2ExchgRejects, h3cIKETunIndex=h3cIKETunIndex, H3cTrapStatus=H3cTrapStatus, h3cIKETunRemainTime=h3cIKETunRemainTime, h3cIKENoSaFailure=h3cIKENoSaFailure, h3cIKEGlobalAttrNotSuppFails=h3cIKEGlobalAttrNotSuppFails, h3cIKETunnelStop=h3cIKETunnelStop, H3cIKETunnelState=H3cIKETunnelState, H3cTrafficType=H3cTrafficType, h3cIKEConformance=h3cIKEConformance, h3cIKENotifications=h3cIKENotifications, h3cIKEGlobalOutOctets=h3cIKEGlobalOutOctets, h3cIKElInvalidSignFailure=h3cIKElInvalidSignFailure, PYSNMP_MODULE_ID=h3cIKEMonitor, h3cIKETunLocalValue2=h3cIKETunLocalValue2, h3cIKEInvalidCertAuthFailure=h3cIKEInvalidCertAuthFailure, h3cIKETunInP2SaDelRequests=h3cIKETunInP2SaDelRequests, h3cIKEGlobalInitTunnels=h3cIKEGlobalInitTunnels, h3cIKEProtocolNum=h3cIKEProtocolNum, h3cIKEInvalidProposalTrapCntl=h3cIKEInvalidProposalTrapCntl, h3cIKETunTotalRefreshes=h3cIKETunTotalRefreshes, h3cIKETunState=h3cIKETunState, h3cIKETrapCntl=h3cIKETrapCntl, h3cIKEAttrNotSuppTrapCntl=h3cIKEAttrNotSuppTrapCntl, h3cIKETrap=h3cIKETrap, h3cIKEGlobalInPkts=h3cIKEGlobalInPkts, h3cIKEInvalidCookieTrapCntl=h3cIKEInvalidCookieTrapCntl, h3cIKETunHashAlgo=h3cIKETunHashAlgo, h3cIKEUnsportExchTypeFailure=h3cIKEUnsportExchTypeFailure, H3cIKENegoMode=H3cIKENegoMode, h3cIKEInvalidProposalFailure=h3cIKEInvalidProposalFailure, h3cIKETunAuthMethod=h3cIKETunAuthMethod, h3cIKEGlobalRespTunnels=h3cIKEGlobalRespTunnels, h3cIKETunnelEntry=h3cIKETunnelEntry, h3cIKEProposalNumber=h3cIKEProposalNumber, h3cIKETrapObjectGroup=h3cIKETrapObjectGroup, H3cDiffHellmanGrp=H3cDiffHellmanGrp, h3cIKETunOutPkts=h3cIKETunOutPkts, h3cIKETunnelStart=h3cIKETunnelStart, h3cIKEInvalidSignTrapCntl=h3cIKEInvalidSignTrapCntl, h3cIKEInvalidCertAuthTrapCntl=h3cIKEInvalidCertAuthTrapCntl, h3cIKETunInNotifys=h3cIKETunInNotifys, h3cIKETrapGroup=h3cIKETrapGroup, h3cIKEGlobalStatsGroup=h3cIKEGlobalStatsGroup, h3cIKEGlobalActiveTunnels=h3cIKEGlobalActiveTunnels, h3cIKEGlobalOutPkts=h3cIKEGlobalOutPkts, h3cIKEMonitor=h3cIKEMonitor, h3cIKETunInOctets=h3cIKETunInOctets, h3cIKETunInDropPkts=h3cIKETunInDropPkts, h3cIKEAuthFailTrapCntl=h3cIKEAuthFailTrapCntl, h3cIKETunRemoteValue2=h3cIKETunRemoteValue2, h3cIKEProposalDelTrapCntl=h3cIKEProposalDelTrapCntl, h3cIKENoSaTrapCntl=h3cIKENoSaTrapCntl, h3cIKEGlobalNoSaFails=h3cIKEGlobalNoSaFails, h3cIKEGlobalOutP2SaDelRequests=h3cIKEGlobalOutP2SaDelRequests, h3cIKEGlobalStats=h3cIKEGlobalStats, h3cIKETunOutP1SaDelRequests=h3cIKETunOutP1SaDelRequests, h3cIKEProposalSize=h3cIKEProposalSize, h3cIKEEncryFailureTrapCntl=h3cIKEEncryFailureTrapCntl, h3cIKECertInformation=h3cIKECertInformation, h3cIKETrapObject=h3cIKETrapObject, h3cIKETunOutP2SaDelRequests=h3cIKETunOutP2SaDelRequests, h3cIKEDecryFailureTrapCntl=h3cIKEDecryFailureTrapCntl, h3cIKEProposalDel=h3cIKEProposalDel, h3cIKECertUnavailableFailure=h3cIKECertUnavailableFailure, h3cIKECertTypeUnsuppTrapCntl=h3cIKECertTypeUnsuppTrapCntl, h3cIKEObjects=h3cIKEObjects, h3cIKETunDpdTimeOut=h3cIKETunDpdTimeOut, h3cIKEGlobalAuthFails=h3cIKEGlobalAuthFails, h3cIKETunDpdIntervalTime=h3cIKETunDpdIntervalTime, h3cIKETunInP2ExchgRejets=h3cIKETunInP2ExchgRejets, h3cIKETunRemoteAddr=h3cIKETunRemoteAddr, h3cIKETunInP2Exchgs=h3cIKETunInP2Exchgs, h3cIKETunOutP2ExchgRejects=h3cIKETunOutP2ExchgRejects, h3cIKEGlobalNoProposalChosenFails=h3cIKEGlobalNoProposalChosenFails, h3cIKEEncryFailFailure=h3cIKEEncryFailFailure, h3cIKETunLocalType=h3cIKETunLocalType, H3cIKEAuthMethod=H3cIKEAuthMethod, h3cIKEInvalidCookieFailure=h3cIKEInvalidCookieFailure, h3cIKETunnelStatTable=h3cIKETunnelStatTable, h3cIKEDecryFailFailure=h3cIKEDecryFailFailure, h3cIKETunNegoMode=h3cIKETunNegoMode, h3cIKEGlobalInDropPkts=h3cIKEGlobalInDropPkts, H3cIKEIDType=H3cIKEIDType, H3cAuthAlgo=H3cAuthAlgo, h3cIKEInvalidIdTrapCntl=h3cIKEInvalidIdTrapCntl, h3cIKETunLocalValue1=h3cIKETunLocalValue1, h3cIKETunEncryptAlgo=h3cIKETunEncryptAlgo, h3cIKETunActiveTime=h3cIKETunActiveTime, h3cIKETunDiffHellmanGrp=h3cIKETunDiffHellmanGrp, h3cIKETunnelStatTableGroup=h3cIKETunnelStatTableGroup, h3cIKEGlobalRespTunnelFails=h3cIKEGlobalRespTunnelFails, h3cIKEGlobalInvalidCookieFails=h3cIKEGlobalInvalidCookieFails, h3cIKEIdInformation=h3cIKEIdInformation, h3cIKEInvalidSpiTrapCntl=h3cIKEInvalidSpiTrapCntl, h3cIKEGlobalOutP2Exchgs=h3cIKEGlobalOutP2Exchgs, h3cIKEGlobalInNotifys=h3cIKEGlobalInNotifys, h3cIKEGlobalOutP2ExchgRejects=h3cIKEGlobalOutP2ExchgRejects, h3cIKETunOutP2Exchgs=h3cIKETunOutP2Exchgs, h3cIKEGlobalInvalidProFails=h3cIKEGlobalInvalidProFails, h3cIKEProposalAdd=h3cIKEProposalAdd, h3cIKETunRemoteType=h3cIKETunRemoteType, h3cIKETunOutOctets=h3cIKETunOutOctets, h3cIKETunOutDropPkts=h3cIKETunOutDropPkts, h3cIKEInvalidProtocolFailure=h3cIKEInvalidProtocolFailure, H3cEncryptAlgo=H3cEncryptAlgo, h3cIKECertUnavailableTrapCntl=h3cIKECertUnavailableTrapCntl, h3cIKEUnsportExchTypeTrapCntl=h3cIKEUnsportExchTypeTrapCntl, H3cSaProtocol=H3cSaProtocol, h3cIKETunInP1SaDelRequests=h3cIKETunInP1SaDelRequests, h3cIKEInvalidIdFailure=h3cIKEInvalidIdFailure, h3cIKEGlobalInOctets=h3cIKEGlobalInOctets, h3cIKEGlobalInP2SaDelRequests=h3cIKEGlobalInP2SaDelRequests, h3cIKETrapGlobalCntl=h3cIKETrapGlobalCntl, h3cIKETunOutNotifys=h3cIKETunOutNotifys, h3cIKECompliance=h3cIKECompliance, h3cIKEGlobalUnsportExchTypeFails=h3cIKEGlobalUnsportExchTypeFails, h3cIKETunnelTableGroup=h3cIKETunnelTableGroup, h3cIKETunnelStartTrapCntl=h3cIKETunnelStartTrapCntl, h3cIKETunLocalAddr=h3cIKETunLocalAddr, h3cIKETunRemoteValue1=h3cIKETunRemoteValue1, h3cIKEGlobalInP2Exchgs=h3cIKEGlobalInP2Exchgs, h3cIKETunnelStopTrapCntl=h3cIKETunnelStopTrapCntl, h3cIKEGroups=h3cIKEGroups, h3cIKEAuthFailFailure=h3cIKEAuthFailFailure, h3cIKEGlobalOutNotifys=h3cIKEGlobalOutNotifys, h3cIKECompliances=h3cIKECompliances, h3cIKETunLifeTime=h3cIKETunLifeTime, h3cIKEGlobalInvalidSignFails=h3cIKEGlobalInvalidSignFails, h3cIKEGlobalCertTypeUnsuppFails=h3cIKEGlobalCertTypeUnsuppFails, h3cIKEGlobalInvalidIdFails=h3cIKEGlobalInvalidIdFails)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, value_range_constraint, constraints_union, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint') (h3c_common,) = mibBuilder.importSymbols('HUAWEI-3COM-OID-MIB', 'h3cCommon') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (object_group, notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'NotificationGroup', 'ModuleCompliance') (gauge32, bits, object_identity, integer32, time_ticks, module_identity, counter32, unsigned32, counter64, notification_type, mib_identifier, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'Bits', 'ObjectIdentity', 'Integer32', 'TimeTicks', 'ModuleIdentity', 'Counter32', 'Unsigned32', 'Counter64', 'NotificationType', 'MibIdentifier', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') h3c_ike_monitor = module_identity((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30)) if mibBuilder.loadTexts: h3cIKEMonitor.setLastUpdated('200410260000Z') if mibBuilder.loadTexts: h3cIKEMonitor.setOrganization('Huawei-3COM Technologies Co., Ltd.') class H3Cikenegomode(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(2, 4, 32)) named_values = named_values(('mainMode', 2), ('aggressiveMode', 4), ('quickMode', 32)) class H3Cikeauthmethod(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 3)) named_values = named_values(('preSharedKey', 1), ('rsaSignatures', 3)) class H3Cdiffhellmangrp(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 5, 14)) named_values = named_values(('modp768', 1), ('modp1024', 2), ('modp1536', 5), ('modp2048', 14)) class H3Cencryptalgo(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) named_values = named_values(('none', 0), ('desCbc', 1), ('ideaCbc', 2), ('blowfishCbc', 3), ('rc5R16B64Cbc', 4), ('tripleDesCbc', 5), ('castCbc', 6), ('aesCbc', 7), ('aesCbc128', 8), ('aesCbc192', 9), ('aesCbc256', 10)) class H3Cauthalgo(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2)) named_values = named_values(('none', 0), ('md5', 1), ('sha', 2)) class H3Csaprotocol(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4)) named_values = named_values(('reserved', 0), ('isakmp', 1), ('ah', 2), ('esp', 3), ('ipcomp', 4)) class H3Ctrapstatus(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('enabled', 1), ('disabled', 2)) class H3Cikeidtype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)) named_values = named_values(('reserved', 0), ('ipv4Addr', 1), ('fqdn', 2), ('userFqdn', 3), ('ipv4AddrSubnet', 4), ('ipv6Addr', 5), ('ipv6AddrSubnet', 6), ('ipv4AddrRange', 7), ('ipv6AddrRange', 8), ('derAsn1Dn', 9), ('derAsn1Gn', 10), ('keyId', 11)) class H3Ctraffictype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 4, 5, 6, 7, 8)) named_values = named_values(('ipv4Addr', 1), ('ipv4AddrSubnet', 4), ('ipv6Addr', 5), ('ipv6AddrSubnet', 6), ('ipv4AddrRange', 7), ('ipv6AddrRange', 8)) class H3Ciketunnelstate(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('active', 1), ('timeout', 2)) h3c_ike_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1)) h3c_ike_tunnel_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1)) if mibBuilder.loadTexts: h3cIKETunnelTable.setStatus('current') h3c_ike_tunnel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1)).setIndexNames((0, 'H3C-IKE-MONITOR-MIB', 'h3cIKETunIndex')) if mibBuilder.loadTexts: h3cIKETunnelEntry.setStatus('current') h3c_ike_tun_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))) if mibBuilder.loadTexts: h3cIKETunIndex.setStatus('current') h3c_ike_tun_local_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 2), h3c_ikeid_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunLocalType.setStatus('current') h3c_ike_tun_local_value1 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunLocalValue1.setStatus('current') h3c_ike_tun_local_value2 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunLocalValue2.setStatus('current') h3c_ike_tun_local_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunLocalAddr.setStatus('current') h3c_ike_tun_remote_type = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 6), h3c_ikeid_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunRemoteType.setStatus('current') h3c_ike_tun_remote_value1 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunRemoteValue1.setStatus('current') h3c_ike_tun_remote_value2 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 8), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunRemoteValue2.setStatus('current') h3c_ike_tun_remote_addr = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 9), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunRemoteAddr.setStatus('current') h3c_ike_tun_initiator = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('local', 1), ('remote', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunInitiator.setStatus('current') h3c_ike_tun_nego_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 11), h3c_ike_nego_mode()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunNegoMode.setStatus('current') h3c_ike_tun_diff_hellman_grp = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 12), h3c_diff_hellman_grp()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunDiffHellmanGrp.setStatus('current') h3c_ike_tun_encrypt_algo = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 13), h3c_encrypt_algo()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunEncryptAlgo.setStatus('current') h3c_ike_tun_hash_algo = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 14), h3c_auth_algo()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunHashAlgo.setStatus('current') h3c_ike_tun_auth_method = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 15), h3c_ike_auth_method()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunAuthMethod.setStatus('current') h3c_ike_tun_life_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunLifeTime.setStatus('current') h3c_ike_tun_active_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunActiveTime.setStatus('current') h3c_ike_tun_remain_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunRemainTime.setStatus('current') h3c_ike_tun_total_refreshes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunTotalRefreshes.setStatus('current') h3c_ike_tun_state = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 20), h3c_ike_tunnel_state()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunState.setStatus('current') h3c_ike_tun_dpd_interval_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 21), integer32().clone(10)).setUnits('second').setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunDpdIntervalTime.setStatus('current') h3c_ike_tun_dpd_time_out = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 1, 1, 22), integer32().clone(5)).setUnits('second').setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunDpdTimeOut.setStatus('current') h3c_ike_tunnel_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2)) if mibBuilder.loadTexts: h3cIKETunnelStatTable.setStatus('current') h3c_ike_tunnel_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1)).setIndexNames((0, 'H3C-IKE-MONITOR-MIB', 'h3cIKETunIndex')) if mibBuilder.loadTexts: h3cIKETunnelStatEntry.setStatus('current') h3c_ike_tun_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunInOctets.setStatus('current') h3c_ike_tun_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunInPkts.setStatus('current') h3c_ike_tun_in_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunInDropPkts.setStatus('current') h3c_ike_tun_in_p2_exchgs = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunInP2Exchgs.setStatus('current') h3c_ike_tun_in_p2_exchg_rejets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunInP2ExchgRejets.setStatus('current') h3c_ike_tun_in_p2_sa_del_requests = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunInP2SaDelRequests.setStatus('current') h3c_ike_tun_in_p1_sa_del_requests = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunInP1SaDelRequests.setStatus('current') h3c_ike_tun_in_notifys = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunInNotifys.setStatus('current') h3c_ike_tun_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunOutOctets.setStatus('current') h3c_ike_tun_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunOutPkts.setStatus('current') h3c_ike_tun_out_drop_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunOutDropPkts.setStatus('current') h3c_ike_tun_out_p2_exchgs = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunOutP2Exchgs.setStatus('current') h3c_ike_tun_out_p2_exchg_rejects = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunOutP2ExchgRejects.setStatus('current') h3c_ike_tun_out_p2_sa_del_requests = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunOutP2SaDelRequests.setStatus('current') h3c_ike_tun_out_p1_sa_del_requests = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunOutP1SaDelRequests.setStatus('current') h3c_ike_tun_out_notifys = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 2, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKETunOutNotifys.setStatus('current') h3c_ike_global_stats = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3)) h3c_ike_global_active_tunnels = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 1), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalActiveTunnels.setStatus('current') h3c_ike_global_in_octets = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInOctets.setStatus('current') h3c_ike_global_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInPkts.setStatus('current') h3c_ike_global_in_drop_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInDropPkts.setStatus('current') h3c_ike_global_in_p2_exchgs = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInP2Exchgs.setStatus('current') h3c_ike_global_in_p2_exchg_rejects = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInP2ExchgRejects.setStatus('current') h3c_ike_global_in_p2_sa_del_requests = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInP2SaDelRequests.setStatus('current') h3c_ike_global_in_notifys = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInNotifys.setStatus('current') h3c_ike_global_out_octets = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalOutOctets.setStatus('current') h3c_ike_global_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalOutPkts.setStatus('current') h3c_ike_global_out_drop_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalOutDropPkts.setStatus('current') h3c_ike_global_out_p2_exchgs = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalOutP2Exchgs.setStatus('current') h3c_ike_global_out_p2_exchg_rejects = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalOutP2ExchgRejects.setStatus('current') h3c_ike_global_out_p2_sa_del_requests = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalOutP2SaDelRequests.setStatus('current') h3c_ike_global_out_notifys = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalOutNotifys.setStatus('current') h3c_ike_global_init_tunnels = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInitTunnels.setStatus('current') h3c_ike_global_init_tunnel_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInitTunnelFails.setStatus('current') h3c_ike_global_resp_tunnels = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalRespTunnels.setStatus('current') h3c_ike_global_resp_tunnel_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalRespTunnelFails.setStatus('current') h3c_ike_global_auth_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalAuthFails.setStatus('current') h3c_ike_global_no_sa_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalNoSaFails.setStatus('current') h3c_ike_global_invalid_cookie_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInvalidCookieFails.setStatus('current') h3c_ike_global_attr_not_supp_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalAttrNotSuppFails.setStatus('current') h3c_ike_global_no_proposal_chosen_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalNoProposalChosenFails.setStatus('current') h3c_ike_global_unsport_exch_type_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 25), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalUnsportExchTypeFails.setStatus('current') h3c_ike_global_invalid_id_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 26), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInvalidIdFails.setStatus('current') h3c_ike_global_invalid_pro_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 27), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInvalidProFails.setStatus('current') h3c_ike_global_cert_type_unsupp_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 28), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalCertTypeUnsuppFails.setStatus('current') h3c_ike_global_invalid_cert_auth_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 29), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInvalidCertAuthFails.setStatus('current') h3c_ike_global_invalid_sign_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 30), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalInvalidSignFails.setStatus('current') h3c_ike_global_cert_unavailable_fails = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 3, 31), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: h3cIKEGlobalCertUnavailableFails.setStatus('current') h3c_ike_trap_object = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4)) h3c_ike_proposal_number = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 1), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: h3cIKEProposalNumber.setStatus('current') h3c_ike_proposal_size = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 2), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: h3cIKEProposalSize.setStatus('current') h3c_ike_id_information = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 3), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: h3cIKEIdInformation.setStatus('current') h3c_ike_protocol_num = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 4), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: h3cIKEProtocolNum.setStatus('current') h3c_ike_cert_information = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 4, 5), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: h3cIKECertInformation.setStatus('current') h3c_ike_trap_cntl = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5)) h3c_ike_trap_global_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 1), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKETrapGlobalCntl.setStatus('current') h3c_ike_tunnel_start_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 2), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKETunnelStartTrapCntl.setStatus('current') h3c_ike_tunnel_stop_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 3), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKETunnelStopTrapCntl.setStatus('current') h3c_ike_no_sa_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 4), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKENoSaTrapCntl.setStatus('current') h3c_ike_encry_failure_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 5), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEEncryFailureTrapCntl.setStatus('current') h3c_ike_decry_failure_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 6), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEDecryFailureTrapCntl.setStatus('current') h3c_ike_invalid_proposal_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 7), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEInvalidProposalTrapCntl.setStatus('current') h3c_ike_auth_fail_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 8), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEAuthFailTrapCntl.setStatus('current') h3c_ike_invalid_cookie_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 9), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEInvalidCookieTrapCntl.setStatus('current') h3c_ike_invalid_spi_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 10), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEInvalidSpiTrapCntl.setStatus('current') h3c_ike_attr_not_supp_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 11), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEAttrNotSuppTrapCntl.setStatus('current') h3c_ike_unsport_exch_type_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 12), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEUnsportExchTypeTrapCntl.setStatus('current') h3c_ike_invalid_id_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 13), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEInvalidIdTrapCntl.setStatus('current') h3c_ike_invalid_protocol_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 14), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEInvalidProtocolTrapCntl.setStatus('current') h3c_ike_cert_type_unsupp_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 15), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKECertTypeUnsuppTrapCntl.setStatus('current') h3c_ike_invalid_cert_auth_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 16), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEInvalidCertAuthTrapCntl.setStatus('current') h3c_ike_invalid_sign_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 17), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEInvalidSignTrapCntl.setStatus('current') h3c_ike_cert_unavailable_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 18), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKECertUnavailableTrapCntl.setStatus('current') h3c_ike_proposal_add_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 19), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEProposalAddTrapCntl.setStatus('current') h3c_ike_proposal_del_trap_cntl = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 5, 20), h3c_trap_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: h3cIKEProposalDelTrapCntl.setStatus('current') h3c_ike_trap = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6)) h3c_ike_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1)) h3c_ike_tunnel_start = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 1)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunLifeTime')) if mibBuilder.loadTexts: h3cIKETunnelStart.setStatus('current') h3c_ike_tunnel_stop = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 2)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunActiveTime')) if mibBuilder.loadTexts: h3cIKETunnelStop.setStatus('current') h3c_ike_no_sa_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 3)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr')) if mibBuilder.loadTexts: h3cIKENoSaFailure.setStatus('current') h3c_ike_encry_fail_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 4)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr')) if mibBuilder.loadTexts: h3cIKEEncryFailFailure.setStatus('current') h3c_ike_decry_fail_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 5)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr')) if mibBuilder.loadTexts: h3cIKEDecryFailFailure.setStatus('current') h3c_ike_invalid_proposal_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 6)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr')) if mibBuilder.loadTexts: h3cIKEInvalidProposalFailure.setStatus('current') h3c_ike_auth_fail_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 7)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr')) if mibBuilder.loadTexts: h3cIKEAuthFailFailure.setStatus('current') h3c_ike_invalid_cookie_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 8)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr')) if mibBuilder.loadTexts: h3cIKEInvalidCookieFailure.setStatus('current') h3c_ike_attr_not_supp_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 9)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr')) if mibBuilder.loadTexts: h3cIKEAttrNotSuppFailure.setStatus('current') h3c_ike_unsport_exch_type_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 10)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr')) if mibBuilder.loadTexts: h3cIKEUnsportExchTypeFailure.setStatus('current') h3c_ike_invalid_id_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 11)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEIdInformation')) if mibBuilder.loadTexts: h3cIKEInvalidIdFailure.setStatus('current') h3c_ike_invalid_protocol_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 12)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEProtocolNum')) if mibBuilder.loadTexts: h3cIKEInvalidProtocolFailure.setStatus('current') h3c_ike_cert_type_unsupp_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 13)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKECertInformation')) if mibBuilder.loadTexts: h3cIKECertTypeUnsuppFailure.setStatus('current') h3c_ike_invalid_cert_auth_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 14)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKECertInformation')) if mibBuilder.loadTexts: h3cIKEInvalidCertAuthFailure.setStatus('current') h3c_ik_el_invalid_sign_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 15)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKECertInformation')) if mibBuilder.loadTexts: h3cIKElInvalidSignFailure.setStatus('current') h3c_ike_cert_unavailable_failure = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 16)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKECertInformation')) if mibBuilder.loadTexts: h3cIKECertUnavailableFailure.setStatus('current') h3c_ike_proposal_add = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 17)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalNumber'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalSize')) if mibBuilder.loadTexts: h3cIKEProposalAdd.setStatus('current') h3c_ike_proposal_del = notification_type((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 1, 6, 1, 18)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalNumber'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalSize')) if mibBuilder.loadTexts: h3cIKEProposalDel.setStatus('current') h3c_ike_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2)) h3c_ike_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 1)) h3c_ike_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2)) h3c_ike_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 1, 1)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunnelTableGroup'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunnelStatTableGroup'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalStatsGroup'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETrapObjectGroup'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETrapCntlGroup'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETrapGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_ike_compliance = h3cIKECompliance.setStatus('current') h3c_ike_tunnel_table_group = object_group((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 1)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalType'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalValue1'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalValue2'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunLocalAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteType'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteValue1'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteValue2'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemoteAddr'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunInitiator'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunNegoMode'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunDiffHellmanGrp'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunEncryptAlgo'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunHashAlgo'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunAuthMethod'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunLifeTime'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunActiveTime'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunRemainTime'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunTotalRefreshes'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunState'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunDpdIntervalTime'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunDpdTimeOut')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_ike_tunnel_table_group = h3cIKETunnelTableGroup.setStatus('current') h3c_ike_tunnel_stat_table_group = object_group((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 2)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunInOctets'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunInPkts'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunInDropPkts'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunInP2Exchgs'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunInP2ExchgRejets'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunInP2SaDelRequests'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunInP1SaDelRequests'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunInNotifys'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunOutOctets'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunOutPkts'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunOutDropPkts'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunOutP2Exchgs'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunOutP2ExchgRejects'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunOutP2SaDelRequests'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunOutP1SaDelRequests'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunOutNotifys')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_ike_tunnel_stat_table_group = h3cIKETunnelStatTableGroup.setStatus('current') h3c_ike_global_stats_group = object_group((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 3)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalActiveTunnels'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInOctets'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInPkts'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInDropPkts'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInP2Exchgs'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInP2ExchgRejects'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInP2SaDelRequests'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInNotifys'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalOutOctets'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalOutPkts'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalOutDropPkts'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalOutP2Exchgs'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalOutP2ExchgRejects'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalOutP2SaDelRequests'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalOutNotifys'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInitTunnels'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInitTunnelFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalRespTunnels'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalRespTunnelFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalAuthFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalNoSaFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInvalidCookieFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalAttrNotSuppFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalNoProposalChosenFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalUnsportExchTypeFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInvalidIdFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInvalidProFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalCertTypeUnsuppFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInvalidCertAuthFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalInvalidSignFails'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEGlobalCertUnavailableFails')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_ike_global_stats_group = h3cIKEGlobalStatsGroup.setStatus('current') h3c_ike_trap_object_group = object_group((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 4)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalNumber'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalSize'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEIdInformation'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEProtocolNum'), ('H3C-IKE-MONITOR-MIB', 'h3cIKECertInformation')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_ike_trap_object_group = h3cIKETrapObjectGroup.setStatus('current') h3c_ike_trap_cntl_group = object_group((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 5)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETrapGlobalCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunnelStartTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunnelStopTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKENoSaTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEEncryFailureTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEDecryFailureTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidProposalTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEAuthFailTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidCookieTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidSpiTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEAttrNotSuppTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEUnsportExchTypeTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidIdTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidProtocolTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKECertTypeUnsuppTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidCertAuthTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidSignTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKECertUnavailableTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalAddTrapCntl'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalDelTrapCntl')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_ike_trap_cntl_group = h3cIKETrapCntlGroup.setStatus('current') h3c_ike_trap_group = notification_group((1, 3, 6, 1, 4, 1, 2011, 10, 2, 30, 2, 2, 6)).setObjects(('H3C-IKE-MONITOR-MIB', 'h3cIKETunnelStart'), ('H3C-IKE-MONITOR-MIB', 'h3cIKETunnelStop'), ('H3C-IKE-MONITOR-MIB', 'h3cIKENoSaFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEEncryFailFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEDecryFailFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidProposalFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEAuthFailFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidCookieFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEAttrNotSuppFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEUnsportExchTypeFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidIdFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidProtocolFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKECertTypeUnsuppFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEInvalidCertAuthFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKElInvalidSignFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKECertUnavailableFailure'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalAdd'), ('H3C-IKE-MONITOR-MIB', 'h3cIKEProposalDel')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): h3c_ike_trap_group = h3cIKETrapGroup.setStatus('current') mibBuilder.exportSymbols('H3C-IKE-MONITOR-MIB', h3cIKEGlobalInitTunnelFails=h3cIKEGlobalInitTunnelFails, h3cIKEAttrNotSuppFailure=h3cIKEAttrNotSuppFailure, h3cIKEGlobalCertUnavailableFails=h3cIKEGlobalCertUnavailableFails, h3cIKETunInitiator=h3cIKETunInitiator, h3cIKETunnelStatEntry=h3cIKETunnelStatEntry, h3cIKEGlobalOutDropPkts=h3cIKEGlobalOutDropPkts, h3cIKEGlobalInvalidCertAuthFails=h3cIKEGlobalInvalidCertAuthFails, h3cIKEProposalAddTrapCntl=h3cIKEProposalAddTrapCntl, h3cIKEInvalidProtocolTrapCntl=h3cIKEInvalidProtocolTrapCntl, h3cIKETunnelTable=h3cIKETunnelTable, h3cIKETunInPkts=h3cIKETunInPkts, h3cIKECertTypeUnsuppFailure=h3cIKECertTypeUnsuppFailure, h3cIKETrapCntlGroup=h3cIKETrapCntlGroup, h3cIKEGlobalInP2ExchgRejects=h3cIKEGlobalInP2ExchgRejects, h3cIKETunIndex=h3cIKETunIndex, H3cTrapStatus=H3cTrapStatus, h3cIKETunRemainTime=h3cIKETunRemainTime, h3cIKENoSaFailure=h3cIKENoSaFailure, h3cIKEGlobalAttrNotSuppFails=h3cIKEGlobalAttrNotSuppFails, h3cIKETunnelStop=h3cIKETunnelStop, H3cIKETunnelState=H3cIKETunnelState, H3cTrafficType=H3cTrafficType, h3cIKEConformance=h3cIKEConformance, h3cIKENotifications=h3cIKENotifications, h3cIKEGlobalOutOctets=h3cIKEGlobalOutOctets, h3cIKElInvalidSignFailure=h3cIKElInvalidSignFailure, PYSNMP_MODULE_ID=h3cIKEMonitor, h3cIKETunLocalValue2=h3cIKETunLocalValue2, h3cIKEInvalidCertAuthFailure=h3cIKEInvalidCertAuthFailure, h3cIKETunInP2SaDelRequests=h3cIKETunInP2SaDelRequests, h3cIKEGlobalInitTunnels=h3cIKEGlobalInitTunnels, h3cIKEProtocolNum=h3cIKEProtocolNum, h3cIKEInvalidProposalTrapCntl=h3cIKEInvalidProposalTrapCntl, h3cIKETunTotalRefreshes=h3cIKETunTotalRefreshes, h3cIKETunState=h3cIKETunState, h3cIKETrapCntl=h3cIKETrapCntl, h3cIKEAttrNotSuppTrapCntl=h3cIKEAttrNotSuppTrapCntl, h3cIKETrap=h3cIKETrap, h3cIKEGlobalInPkts=h3cIKEGlobalInPkts, h3cIKEInvalidCookieTrapCntl=h3cIKEInvalidCookieTrapCntl, h3cIKETunHashAlgo=h3cIKETunHashAlgo, h3cIKEUnsportExchTypeFailure=h3cIKEUnsportExchTypeFailure, H3cIKENegoMode=H3cIKENegoMode, h3cIKEInvalidProposalFailure=h3cIKEInvalidProposalFailure, h3cIKETunAuthMethod=h3cIKETunAuthMethod, h3cIKEGlobalRespTunnels=h3cIKEGlobalRespTunnels, h3cIKETunnelEntry=h3cIKETunnelEntry, h3cIKEProposalNumber=h3cIKEProposalNumber, h3cIKETrapObjectGroup=h3cIKETrapObjectGroup, H3cDiffHellmanGrp=H3cDiffHellmanGrp, h3cIKETunOutPkts=h3cIKETunOutPkts, h3cIKETunnelStart=h3cIKETunnelStart, h3cIKEInvalidSignTrapCntl=h3cIKEInvalidSignTrapCntl, h3cIKEInvalidCertAuthTrapCntl=h3cIKEInvalidCertAuthTrapCntl, h3cIKETunInNotifys=h3cIKETunInNotifys, h3cIKETrapGroup=h3cIKETrapGroup, h3cIKEGlobalStatsGroup=h3cIKEGlobalStatsGroup, h3cIKEGlobalActiveTunnels=h3cIKEGlobalActiveTunnels, h3cIKEGlobalOutPkts=h3cIKEGlobalOutPkts, h3cIKEMonitor=h3cIKEMonitor, h3cIKETunInOctets=h3cIKETunInOctets, h3cIKETunInDropPkts=h3cIKETunInDropPkts, h3cIKEAuthFailTrapCntl=h3cIKEAuthFailTrapCntl, h3cIKETunRemoteValue2=h3cIKETunRemoteValue2, h3cIKEProposalDelTrapCntl=h3cIKEProposalDelTrapCntl, h3cIKENoSaTrapCntl=h3cIKENoSaTrapCntl, h3cIKEGlobalNoSaFails=h3cIKEGlobalNoSaFails, h3cIKEGlobalOutP2SaDelRequests=h3cIKEGlobalOutP2SaDelRequests, h3cIKEGlobalStats=h3cIKEGlobalStats, h3cIKETunOutP1SaDelRequests=h3cIKETunOutP1SaDelRequests, h3cIKEProposalSize=h3cIKEProposalSize, h3cIKEEncryFailureTrapCntl=h3cIKEEncryFailureTrapCntl, h3cIKECertInformation=h3cIKECertInformation, h3cIKETrapObject=h3cIKETrapObject, h3cIKETunOutP2SaDelRequests=h3cIKETunOutP2SaDelRequests, h3cIKEDecryFailureTrapCntl=h3cIKEDecryFailureTrapCntl, h3cIKEProposalDel=h3cIKEProposalDel, h3cIKECertUnavailableFailure=h3cIKECertUnavailableFailure, h3cIKECertTypeUnsuppTrapCntl=h3cIKECertTypeUnsuppTrapCntl, h3cIKEObjects=h3cIKEObjects, h3cIKETunDpdTimeOut=h3cIKETunDpdTimeOut, h3cIKEGlobalAuthFails=h3cIKEGlobalAuthFails, h3cIKETunDpdIntervalTime=h3cIKETunDpdIntervalTime, h3cIKETunInP2ExchgRejets=h3cIKETunInP2ExchgRejets, h3cIKETunRemoteAddr=h3cIKETunRemoteAddr, h3cIKETunInP2Exchgs=h3cIKETunInP2Exchgs, h3cIKETunOutP2ExchgRejects=h3cIKETunOutP2ExchgRejects, h3cIKEGlobalNoProposalChosenFails=h3cIKEGlobalNoProposalChosenFails, h3cIKEEncryFailFailure=h3cIKEEncryFailFailure, h3cIKETunLocalType=h3cIKETunLocalType, H3cIKEAuthMethod=H3cIKEAuthMethod, h3cIKEInvalidCookieFailure=h3cIKEInvalidCookieFailure, h3cIKETunnelStatTable=h3cIKETunnelStatTable, h3cIKEDecryFailFailure=h3cIKEDecryFailFailure, h3cIKETunNegoMode=h3cIKETunNegoMode, h3cIKEGlobalInDropPkts=h3cIKEGlobalInDropPkts, H3cIKEIDType=H3cIKEIDType, H3cAuthAlgo=H3cAuthAlgo, h3cIKEInvalidIdTrapCntl=h3cIKEInvalidIdTrapCntl, h3cIKETunLocalValue1=h3cIKETunLocalValue1, h3cIKETunEncryptAlgo=h3cIKETunEncryptAlgo, h3cIKETunActiveTime=h3cIKETunActiveTime, h3cIKETunDiffHellmanGrp=h3cIKETunDiffHellmanGrp, h3cIKETunnelStatTableGroup=h3cIKETunnelStatTableGroup, h3cIKEGlobalRespTunnelFails=h3cIKEGlobalRespTunnelFails, h3cIKEGlobalInvalidCookieFails=h3cIKEGlobalInvalidCookieFails, h3cIKEIdInformation=h3cIKEIdInformation, h3cIKEInvalidSpiTrapCntl=h3cIKEInvalidSpiTrapCntl, h3cIKEGlobalOutP2Exchgs=h3cIKEGlobalOutP2Exchgs, h3cIKEGlobalInNotifys=h3cIKEGlobalInNotifys, h3cIKEGlobalOutP2ExchgRejects=h3cIKEGlobalOutP2ExchgRejects, h3cIKETunOutP2Exchgs=h3cIKETunOutP2Exchgs, h3cIKEGlobalInvalidProFails=h3cIKEGlobalInvalidProFails, h3cIKEProposalAdd=h3cIKEProposalAdd, h3cIKETunRemoteType=h3cIKETunRemoteType, h3cIKETunOutOctets=h3cIKETunOutOctets, h3cIKETunOutDropPkts=h3cIKETunOutDropPkts, h3cIKEInvalidProtocolFailure=h3cIKEInvalidProtocolFailure, H3cEncryptAlgo=H3cEncryptAlgo, h3cIKECertUnavailableTrapCntl=h3cIKECertUnavailableTrapCntl, h3cIKEUnsportExchTypeTrapCntl=h3cIKEUnsportExchTypeTrapCntl, H3cSaProtocol=H3cSaProtocol, h3cIKETunInP1SaDelRequests=h3cIKETunInP1SaDelRequests, h3cIKEInvalidIdFailure=h3cIKEInvalidIdFailure, h3cIKEGlobalInOctets=h3cIKEGlobalInOctets, h3cIKEGlobalInP2SaDelRequests=h3cIKEGlobalInP2SaDelRequests, h3cIKETrapGlobalCntl=h3cIKETrapGlobalCntl, h3cIKETunOutNotifys=h3cIKETunOutNotifys, h3cIKECompliance=h3cIKECompliance, h3cIKEGlobalUnsportExchTypeFails=h3cIKEGlobalUnsportExchTypeFails, h3cIKETunnelTableGroup=h3cIKETunnelTableGroup, h3cIKETunnelStartTrapCntl=h3cIKETunnelStartTrapCntl, h3cIKETunLocalAddr=h3cIKETunLocalAddr, h3cIKETunRemoteValue1=h3cIKETunRemoteValue1, h3cIKEGlobalInP2Exchgs=h3cIKEGlobalInP2Exchgs, h3cIKETunnelStopTrapCntl=h3cIKETunnelStopTrapCntl, h3cIKEGroups=h3cIKEGroups, h3cIKEAuthFailFailure=h3cIKEAuthFailFailure, h3cIKEGlobalOutNotifys=h3cIKEGlobalOutNotifys, h3cIKECompliances=h3cIKECompliances, h3cIKETunLifeTime=h3cIKETunLifeTime, h3cIKEGlobalInvalidSignFails=h3cIKEGlobalInvalidSignFails, h3cIKEGlobalCertTypeUnsuppFails=h3cIKEGlobalCertTypeUnsuppFails, h3cIKEGlobalInvalidIdFails=h3cIKEGlobalInvalidIdFails)
"""Perform any setup needed here. """ __author__ = 'dmontemayor'
"""Perform any setup needed here. """ __author__ = 'dmontemayor'
print("Hello World") print("Hello again.\n") print("Hello BCC!") print("My name is Andy.\n") print("single 'quotes' <-- in double quotes") print('double "quotes" <-- in single quotes\n') print("Python docs @ --> https://docs/python.org/3") print("Type --> python3 ex1.py <-- in terminal to run this program.\n") # print("If you're reading this, it's because I un-commented the line.")
print('Hello World') print('Hello again.\n') print('Hello BCC!') print('My name is Andy.\n') print("single 'quotes' <-- in double quotes") print('double "quotes" <-- in single quotes\n') print('Python docs @ --> https://docs/python.org/3') print('Type --> python3 ex1.py <-- in terminal to run this program.\n')
# # PySNMP MIB module Wellfleet-QOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-QOS-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:41:23 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") TimeTicks, Integer32, MibIdentifier, ModuleIdentity, iso, ObjectIdentity, Counter64, NotificationType, Gauge32, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Counter32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Integer32", "MibIdentifier", "ModuleIdentity", "iso", "ObjectIdentity", "Counter64", "NotificationType", "Gauge32", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Counter32", "Bits") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") wfServicePkgGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfServicePkgGroup") wfQosServPkgTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1), ) if mibBuilder.loadTexts: wfQosServPkgTable.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgTable.setDescription('This file describes the MIBS for managing Qos Templates') wfQosServPkgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1), ).setIndexNames((0, "Wellfleet-QOS-MIB", "wfQosServPkgIndex")) if mibBuilder.loadTexts: wfQosServPkgEntry.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgEntry.setDescription('An entry in the Qos Base table') wfQosServPkgDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgDelete.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgDelete.setDescription('Create/Delete parameter') wfQosServPkgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQosServPkgIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgIndex.setDescription('Instance ID, filled in by driver') wfQosServPkgServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 3), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgServiceName.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgServiceName.setDescription('Service Name given to this template') wfQosServPkgScheduling = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("round-robin", 1), ("strict-priority", 2))).clone('round-robin')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgScheduling.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgScheduling.setDescription('Selects the scheduling method, Round Robbin or Strict Priority, to service the Tx Queues. In Round Robbin, each Queue is serviced according to the weights applied in the Queue Mib. In Strict Priority, the highest priority Queue with data is serviced.') wfQosServPkgNumQueues = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQosServPkgNumQueues.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgNumQueues.setDescription('Number of queues configured for this queue package') wfQosServPkgNumLines = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQosServPkgNumLines.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgNumLines.setDescription('Number of lines using this queue package') wfQosServPkgQueCfgTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2), ) if mibBuilder.loadTexts: wfQosServPkgQueCfgTable.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgTable.setDescription('This file describes the MIBS for managing Qos Templates') wfQosServPkgQueCfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1), ).setIndexNames((0, "Wellfleet-QOS-MIB", "wfQosServPkgQueCfgServiceIndex"), (0, "Wellfleet-QOS-MIB", "wfQosServPkgQueCfgQueueIndex")) if mibBuilder.loadTexts: wfQosServPkgQueCfgEntry.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgEntry.setDescription('An entry in the Qos Base table') wfQosServPkgQueCfgDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgDelete.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgDelete.setDescription('Create/Delete parameter') wfQosServPkgQueCfgServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQosServPkgQueCfgServiceIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgServiceIndex.setDescription('Instance Service ID, filled in by driver') wfQosServPkgQueCfgQueueIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQosServPkgQueCfgQueueIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgQueueIndex.setDescription('Instance Queue ID, filled in by driver') wfQosServPkgQueCfgQueueName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 4), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgQueueName.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgQueueName.setDescription('Queue Name given to this template') wfQosServPkgQueCfgState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("waitPkg", 2), ("misCfg", 3))).clone('waitPkg')).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQosServPkgQueCfgState.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgState.setDescription('State of this Queue, either Up, Waiting for a Service Package, or Misconfigured.') wfQosServPkgQueCfgClass = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7)).clone(7)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgClass.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgClass.setDescription('Class level for this queue, 0=highest, 7=lowest') wfQosServPkgQueCfgAcctRule = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgAcctRule.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgAcctRule.setDescription('Accounting Rule Template Index.') wfQosServPkgQueCfgRxCommitInfoRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1536))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgRxCommitInfoRate.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxCommitInfoRate.setDescription('Commit Info Rate (CIR), in Kbits per second, configured for this template') wfQosServPkgQueCfgRxBurstRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1536))).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstRate.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstRate.setDescription('Burst Rate (BR), in Kbits per second, configured for this template') wfQosServPkgQueCfgRxBurstSize = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 10), Integer32().clone(8000)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstSize.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstSize.setDescription('Burst Size, in bytes, configured for this template') wfQosServPkgQueCfgRxBurstAction = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("downgrade", 2), ("mark", 3), ("mark-downgrade", 4))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstAction.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstAction.setDescription('Action when Burst Rate is exceeded') wfQosServPkgQueCfgTxDropThresh = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("percent-83", 2), ("percent-66", 3), ("percent-50", 4))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgTxDropThresh.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgTxDropThresh.setDescription('Hardware Threshold in percent to start dropping Output Packets for this queue. When set to none, all packets are accepted until the Queue Fills 100 percent.') wfQosServPkgQueCfgTxWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 13), Integer32().clone(100)).setMaxAccess("readwrite") if mibBuilder.loadTexts: wfQosServPkgQueCfgTxWeight.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgTxWeight.setDescription('Weight in percentage for the Tx Queue when set to Round Robbin Priority Type.') wfQosServPkgQueCfgTxActualWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 14), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQosServPkgQueCfgTxActualWeight.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgTxActualWeight.setDescription('Actual Weight, in percentage, given to this Tx Queue within its Service Package when set to Round Robbin Scheduling.') wfQueueStatTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3), ) if mibBuilder.loadTexts: wfQueueStatTable.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatTable.setDescription('This file describes the MIBS for getting Queues Stats') wfQueueStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1), ).setIndexNames((0, "Wellfleet-QOS-MIB", "wfQueueStatPortLineNumber"), (0, "Wellfleet-QOS-MIB", "wfQueueStatLineIndex"), (0, "Wellfleet-QOS-MIB", "wfQueueStatQueueIndex")) if mibBuilder.loadTexts: wfQueueStatEntry.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatEntry.setDescription('An entry in the Queue Base table') wfQueueStatPortLineNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatPortLineNumber.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatPortLineNumber.setDescription('Instance ID PortLineNumber') wfQueueStatLineIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatLineIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatLineIndex.setDescription('Instance Line Number') wfQueueStatQueueIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatQueueIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatQueueIndex.setDescription('Queue Index, matches that of wfQosServPkgQueCfgQueueIndex') wfQueueStatTxOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatTxOctets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatTxOctets.setDescription('Number of Transmit Octets received without error') wfQueueStatTxPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatTxPackets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatTxPackets.setDescription('Number of Transmit Packets received without error') wfQueueStatTxDrops = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatTxDrops.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatTxDrops.setDescription('Number of Transmit Packets Dropped') wfQueueStatRxBelowCirOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatRxBelowCirOctets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxBelowCirOctets.setDescription('The number of octets received which were below the committed information rate (CIR).') wfQueueStatRxBelowCirPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatRxBelowCirPackets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxBelowCirPackets.setDescription('The number of packets received which were below the committed information rate (CIR).') wfQueueStatRxAboveCirOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatRxAboveCirOctets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxAboveCirOctets.setDescription('The number of octets received which exceeded the committed information rate, but which were within the allocated burst rate (BR).') wfQueueStatRxAboveCirPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatRxAboveCirPackets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxAboveCirPackets.setDescription('The number of packets received which exceeded the committed information rate, but which were within the allocated burst rate (BR).') wfQueueStatRxAboveBrOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatRxAboveBrOctets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxAboveBrOctets.setDescription('The number of octets received which exceeded the allocated burst rate (BR).') wfQueueStatRxAboveBrPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: wfQueueStatRxAboveBrPackets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxAboveBrPackets.setDescription('The number of packets received which exceeded the allocated burst rate (BR).') mibBuilder.exportSymbols("Wellfleet-QOS-MIB", wfQosServPkgNumLines=wfQosServPkgNumLines, wfQosServPkgQueCfgTxActualWeight=wfQosServPkgQueCfgTxActualWeight, wfQueueStatTxDrops=wfQueueStatTxDrops, wfQueueStatTxOctets=wfQueueStatTxOctets, wfQosServPkgQueCfgRxBurstRate=wfQosServPkgQueCfgRxBurstRate, wfQosServPkgServiceName=wfQosServPkgServiceName, wfQosServPkgQueCfgQueueName=wfQosServPkgQueCfgQueueName, wfQosServPkgTable=wfQosServPkgTable, wfQosServPkgQueCfgTable=wfQosServPkgQueCfgTable, wfQosServPkgQueCfgTxDropThresh=wfQosServPkgQueCfgTxDropThresh, wfQosServPkgQueCfgAcctRule=wfQosServPkgQueCfgAcctRule, wfQosServPkgQueCfgRxBurstAction=wfQosServPkgQueCfgRxBurstAction, wfQueueStatEntry=wfQueueStatEntry, wfQueueStatRxBelowCirOctets=wfQueueStatRxBelowCirOctets, wfQueueStatRxBelowCirPackets=wfQueueStatRxBelowCirPackets, wfQueueStatRxAboveBrOctets=wfQueueStatRxAboveBrOctets, wfQueueStatTxPackets=wfQueueStatTxPackets, wfQosServPkgEntry=wfQosServPkgEntry, wfQosServPkgQueCfgRxBurstSize=wfQosServPkgQueCfgRxBurstSize, wfQosServPkgQueCfgState=wfQosServPkgQueCfgState, wfQosServPkgQueCfgTxWeight=wfQosServPkgQueCfgTxWeight, wfQosServPkgQueCfgServiceIndex=wfQosServPkgQueCfgServiceIndex, wfQosServPkgScheduling=wfQosServPkgScheduling, wfQosServPkgIndex=wfQosServPkgIndex, wfQueueStatRxAboveCirOctets=wfQueueStatRxAboveCirOctets, wfQosServPkgQueCfgClass=wfQosServPkgQueCfgClass, wfQueueStatLineIndex=wfQueueStatLineIndex, wfQueueStatRxAboveBrPackets=wfQueueStatRxAboveBrPackets, wfQueueStatQueueIndex=wfQueueStatQueueIndex, wfQosServPkgQueCfgDelete=wfQosServPkgQueCfgDelete, wfQosServPkgQueCfgQueueIndex=wfQosServPkgQueCfgQueueIndex, wfQueueStatPortLineNumber=wfQueueStatPortLineNumber, wfQosServPkgQueCfgEntry=wfQosServPkgQueCfgEntry, wfQosServPkgQueCfgRxCommitInfoRate=wfQosServPkgQueCfgRxCommitInfoRate, wfQosServPkgNumQueues=wfQosServPkgNumQueues, wfQueueStatRxAboveCirPackets=wfQueueStatRxAboveCirPackets, wfQueueStatTable=wfQueueStatTable, wfQosServPkgDelete=wfQosServPkgDelete)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, value_size_constraint, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (time_ticks, integer32, mib_identifier, module_identity, iso, object_identity, counter64, notification_type, gauge32, ip_address, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, counter32, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'Integer32', 'MibIdentifier', 'ModuleIdentity', 'iso', 'ObjectIdentity', 'Counter64', 'NotificationType', 'Gauge32', 'IpAddress', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Counter32', 'Bits') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') (wf_service_pkg_group,) = mibBuilder.importSymbols('Wellfleet-COMMON-MIB', 'wfServicePkgGroup') wf_qos_serv_pkg_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1)) if mibBuilder.loadTexts: wfQosServPkgTable.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgTable.setDescription('This file describes the MIBS for managing Qos Templates') wf_qos_serv_pkg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1)).setIndexNames((0, 'Wellfleet-QOS-MIB', 'wfQosServPkgIndex')) if mibBuilder.loadTexts: wfQosServPkgEntry.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgEntry.setDescription('An entry in the Qos Base table') wf_qos_serv_pkg_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgDelete.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgDelete.setDescription('Create/Delete parameter') wf_qos_serv_pkg_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQosServPkgIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgIndex.setDescription('Instance ID, filled in by driver') wf_qos_serv_pkg_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 3), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgServiceName.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgServiceName.setDescription('Service Name given to this template') wf_qos_serv_pkg_scheduling = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('round-robin', 1), ('strict-priority', 2))).clone('round-robin')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgScheduling.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgScheduling.setDescription('Selects the scheduling method, Round Robbin or Strict Priority, to service the Tx Queues. In Round Robbin, each Queue is serviced according to the weights applied in the Queue Mib. In Strict Priority, the highest priority Queue with data is serviced.') wf_qos_serv_pkg_num_queues = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQosServPkgNumQueues.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgNumQueues.setDescription('Number of queues configured for this queue package') wf_qos_serv_pkg_num_lines = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 1, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQosServPkgNumLines.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgNumLines.setDescription('Number of lines using this queue package') wf_qos_serv_pkg_que_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2)) if mibBuilder.loadTexts: wfQosServPkgQueCfgTable.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgTable.setDescription('This file describes the MIBS for managing Qos Templates') wf_qos_serv_pkg_que_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1)).setIndexNames((0, 'Wellfleet-QOS-MIB', 'wfQosServPkgQueCfgServiceIndex'), (0, 'Wellfleet-QOS-MIB', 'wfQosServPkgQueCfgQueueIndex')) if mibBuilder.loadTexts: wfQosServPkgQueCfgEntry.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgEntry.setDescription('An entry in the Qos Base table') wf_qos_serv_pkg_que_cfg_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgDelete.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgDelete.setDescription('Create/Delete parameter') wf_qos_serv_pkg_que_cfg_service_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQosServPkgQueCfgServiceIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgServiceIndex.setDescription('Instance Service ID, filled in by driver') wf_qos_serv_pkg_que_cfg_queue_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQosServPkgQueCfgQueueIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgQueueIndex.setDescription('Instance Queue ID, filled in by driver') wf_qos_serv_pkg_que_cfg_queue_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 4), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgQueueName.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgQueueName.setDescription('Queue Name given to this template') wf_qos_serv_pkg_que_cfg_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('waitPkg', 2), ('misCfg', 3))).clone('waitPkg')).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQosServPkgQueCfgState.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgState.setDescription('State of this Queue, either Up, Waiting for a Service Package, or Misconfigured.') wf_qos_serv_pkg_que_cfg_class = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 7)).clone(7)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgClass.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgClass.setDescription('Class level for this queue, 0=highest, 7=lowest') wf_qos_serv_pkg_que_cfg_acct_rule = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgAcctRule.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgAcctRule.setDescription('Accounting Rule Template Index.') wf_qos_serv_pkg_que_cfg_rx_commit_info_rate = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 1536))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxCommitInfoRate.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxCommitInfoRate.setDescription('Commit Info Rate (CIR), in Kbits per second, configured for this template') wf_qos_serv_pkg_que_cfg_rx_burst_rate = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 1536))).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstRate.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstRate.setDescription('Burst Rate (BR), in Kbits per second, configured for this template') wf_qos_serv_pkg_que_cfg_rx_burst_size = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 10), integer32().clone(8000)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstSize.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstSize.setDescription('Burst Size, in bytes, configured for this template') wf_qos_serv_pkg_que_cfg_rx_burst_action = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('downgrade', 2), ('mark', 3), ('mark-downgrade', 4))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstAction.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgRxBurstAction.setDescription('Action when Burst Rate is exceeded') wf_qos_serv_pkg_que_cfg_tx_drop_thresh = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('percent-83', 2), ('percent-66', 3), ('percent-50', 4))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgTxDropThresh.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgTxDropThresh.setDescription('Hardware Threshold in percent to start dropping Output Packets for this queue. When set to none, all packets are accepted until the Queue Fills 100 percent.') wf_qos_serv_pkg_que_cfg_tx_weight = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 13), integer32().clone(100)).setMaxAccess('readwrite') if mibBuilder.loadTexts: wfQosServPkgQueCfgTxWeight.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgTxWeight.setDescription('Weight in percentage for the Tx Queue when set to Round Robbin Priority Type.') wf_qos_serv_pkg_que_cfg_tx_actual_weight = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 2, 1, 14), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQosServPkgQueCfgTxActualWeight.setStatus('mandatory') if mibBuilder.loadTexts: wfQosServPkgQueCfgTxActualWeight.setDescription('Actual Weight, in percentage, given to this Tx Queue within its Service Package when set to Round Robbin Scheduling.') wf_queue_stat_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3)) if mibBuilder.loadTexts: wfQueueStatTable.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatTable.setDescription('This file describes the MIBS for getting Queues Stats') wf_queue_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1)).setIndexNames((0, 'Wellfleet-QOS-MIB', 'wfQueueStatPortLineNumber'), (0, 'Wellfleet-QOS-MIB', 'wfQueueStatLineIndex'), (0, 'Wellfleet-QOS-MIB', 'wfQueueStatQueueIndex')) if mibBuilder.loadTexts: wfQueueStatEntry.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatEntry.setDescription('An entry in the Queue Base table') wf_queue_stat_port_line_number = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatPortLineNumber.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatPortLineNumber.setDescription('Instance ID PortLineNumber') wf_queue_stat_line_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatLineIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatLineIndex.setDescription('Instance Line Number') wf_queue_stat_queue_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatQueueIndex.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatQueueIndex.setDescription('Queue Index, matches that of wfQosServPkgQueCfgQueueIndex') wf_queue_stat_tx_octets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatTxOctets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatTxOctets.setDescription('Number of Transmit Octets received without error') wf_queue_stat_tx_packets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatTxPackets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatTxPackets.setDescription('Number of Transmit Packets received without error') wf_queue_stat_tx_drops = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatTxDrops.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatTxDrops.setDescription('Number of Transmit Packets Dropped') wf_queue_stat_rx_below_cir_octets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatRxBelowCirOctets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxBelowCirOctets.setDescription('The number of octets received which were below the committed information rate (CIR).') wf_queue_stat_rx_below_cir_packets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatRxBelowCirPackets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxBelowCirPackets.setDescription('The number of packets received which were below the committed information rate (CIR).') wf_queue_stat_rx_above_cir_octets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatRxAboveCirOctets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxAboveCirOctets.setDescription('The number of octets received which exceeded the committed information rate, but which were within the allocated burst rate (BR).') wf_queue_stat_rx_above_cir_packets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatRxAboveCirPackets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxAboveCirPackets.setDescription('The number of packets received which exceeded the committed information rate, but which were within the allocated burst rate (BR).') wf_queue_stat_rx_above_br_octets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatRxAboveBrOctets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxAboveBrOctets.setDescription('The number of octets received which exceeded the allocated burst rate (BR).') wf_queue_stat_rx_above_br_packets = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 3, 2, 23, 1, 3, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: wfQueueStatRxAboveBrPackets.setStatus('mandatory') if mibBuilder.loadTexts: wfQueueStatRxAboveBrPackets.setDescription('The number of packets received which exceeded the allocated burst rate (BR).') mibBuilder.exportSymbols('Wellfleet-QOS-MIB', wfQosServPkgNumLines=wfQosServPkgNumLines, wfQosServPkgQueCfgTxActualWeight=wfQosServPkgQueCfgTxActualWeight, wfQueueStatTxDrops=wfQueueStatTxDrops, wfQueueStatTxOctets=wfQueueStatTxOctets, wfQosServPkgQueCfgRxBurstRate=wfQosServPkgQueCfgRxBurstRate, wfQosServPkgServiceName=wfQosServPkgServiceName, wfQosServPkgQueCfgQueueName=wfQosServPkgQueCfgQueueName, wfQosServPkgTable=wfQosServPkgTable, wfQosServPkgQueCfgTable=wfQosServPkgQueCfgTable, wfQosServPkgQueCfgTxDropThresh=wfQosServPkgQueCfgTxDropThresh, wfQosServPkgQueCfgAcctRule=wfQosServPkgQueCfgAcctRule, wfQosServPkgQueCfgRxBurstAction=wfQosServPkgQueCfgRxBurstAction, wfQueueStatEntry=wfQueueStatEntry, wfQueueStatRxBelowCirOctets=wfQueueStatRxBelowCirOctets, wfQueueStatRxBelowCirPackets=wfQueueStatRxBelowCirPackets, wfQueueStatRxAboveBrOctets=wfQueueStatRxAboveBrOctets, wfQueueStatTxPackets=wfQueueStatTxPackets, wfQosServPkgEntry=wfQosServPkgEntry, wfQosServPkgQueCfgRxBurstSize=wfQosServPkgQueCfgRxBurstSize, wfQosServPkgQueCfgState=wfQosServPkgQueCfgState, wfQosServPkgQueCfgTxWeight=wfQosServPkgQueCfgTxWeight, wfQosServPkgQueCfgServiceIndex=wfQosServPkgQueCfgServiceIndex, wfQosServPkgScheduling=wfQosServPkgScheduling, wfQosServPkgIndex=wfQosServPkgIndex, wfQueueStatRxAboveCirOctets=wfQueueStatRxAboveCirOctets, wfQosServPkgQueCfgClass=wfQosServPkgQueCfgClass, wfQueueStatLineIndex=wfQueueStatLineIndex, wfQueueStatRxAboveBrPackets=wfQueueStatRxAboveBrPackets, wfQueueStatQueueIndex=wfQueueStatQueueIndex, wfQosServPkgQueCfgDelete=wfQosServPkgQueCfgDelete, wfQosServPkgQueCfgQueueIndex=wfQosServPkgQueCfgQueueIndex, wfQueueStatPortLineNumber=wfQueueStatPortLineNumber, wfQosServPkgQueCfgEntry=wfQosServPkgQueCfgEntry, wfQosServPkgQueCfgRxCommitInfoRate=wfQosServPkgQueCfgRxCommitInfoRate, wfQosServPkgNumQueues=wfQosServPkgNumQueues, wfQueueStatRxAboveCirPackets=wfQueueStatRxAboveCirPackets, wfQueueStatTable=wfQueueStatTable, wfQosServPkgDelete=wfQosServPkgDelete)
class Solution: """ @param: nums: a list of integers @return: find a majority number """ def majorityNumber(self, nums): # write your code here length = len(nums) for i in range(int(length / 2) + 1): count = 1 for j in range(i + 1, length): if nums[i] == nums[j]: count += 1 if count > length / 2: return nums[i]
class Solution: """ @param: nums: a list of integers @return: find a majority number """ def majority_number(self, nums): length = len(nums) for i in range(int(length / 2) + 1): count = 1 for j in range(i + 1, length): if nums[i] == nums[j]: count += 1 if count > length / 2: return nums[i]
def main(): n = int(input('Number to count to: ')) fizzbuzz(n) def fizzbuzz(n): for number in range(1, n + 1): if number % 5 == 0: if number % 3 == 0: print('FizzBuzz') if number % 3 == 0: print('Fizz') elif number % 5 == 0: print('Buzz') else: print(number) if __name__ == "__main__": main()
def main(): n = int(input('Number to count to: ')) fizzbuzz(n) def fizzbuzz(n): for number in range(1, n + 1): if number % 5 == 0: if number % 3 == 0: print('FizzBuzz') if number % 3 == 0: print('Fizz') elif number % 5 == 0: print('Buzz') else: print(number) if __name__ == '__main__': main()
## setup MQTT MQTT_BROKER = "" # Ip adress of the MQTT Broker MQTT_USERNAME = "" # Username MQTT_PASSWD = "" # Password MQTT_TOPIC = "" # MQTT Topic ## setup RGB NUMBER_OF_LEDS= 100 #int
mqtt_broker = '' mqtt_username = '' mqtt_passwd = '' mqtt_topic = '' number_of_leds = 100
# Copyright 2021 Nate Gay # # 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. "rules_kustomize" load("@bazel_skylib//lib:dicts.bzl", "dicts") load("@io_bazel_rules_docker//container:providers.bzl", "PushInfo") # https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/images/ ImageInfo = provider( doc = "Image modification information", fields = { "partial": "A yaml file containing kustomize image replacement info", }, ) def _impl(ctx): image_name = '{}/{}'.format(ctx.attr.image_details[PushInfo].registry, ctx.attr.image_details[PushInfo].repository) output = '\n'.join([ '\\055 name: {}'.format(image_name if ctx.attr.image_name == '' else ctx.attr.image_name), ' newName: {}'.format(image_name), ' digest: $(cat {})'.format(ctx.attr.image_details[PushInfo].digest.path), ]) ctx.actions.run_shell( inputs = [ctx.attr.image_details[PushInfo].digest], outputs = [ctx.outputs.partial], arguments = [], command = 'printf "{}\n" > "{}"'.format(output, ctx.outputs.partial.path), ) return [ImageInfo(partial = ctx.outputs.partial)] kustomize_image_ = rule( attrs = dicts.add({ "image_details": attr.label( doc = "A label containing the container_push output for an image.", cfg = "host", mandatory = True, allow_files = True, providers = [PushInfo] ), "image_name": attr.string( mandatory = False, default = "", doc = "The name of the image to be modified.", ), }), implementation = _impl, outputs = { "partial": "%{name}.yaml.partial", }, ) def kustomize_image(**kwargs): kustomize_image_(**kwargs)
"""rules_kustomize""" load('@bazel_skylib//lib:dicts.bzl', 'dicts') load('@io_bazel_rules_docker//container:providers.bzl', 'PushInfo') image_info = provider(doc='Image modification information', fields={'partial': 'A yaml file containing kustomize image replacement info'}) def _impl(ctx): image_name = '{}/{}'.format(ctx.attr.image_details[PushInfo].registry, ctx.attr.image_details[PushInfo].repository) output = '\n'.join(['\\055 name: {}'.format(image_name if ctx.attr.image_name == '' else ctx.attr.image_name), ' newName: {}'.format(image_name), ' digest: $(cat {})'.format(ctx.attr.image_details[PushInfo].digest.path)]) ctx.actions.run_shell(inputs=[ctx.attr.image_details[PushInfo].digest], outputs=[ctx.outputs.partial], arguments=[], command='printf "{}\n" > "{}"'.format(output, ctx.outputs.partial.path)) return [image_info(partial=ctx.outputs.partial)] kustomize_image_ = rule(attrs=dicts.add({'image_details': attr.label(doc='A label containing the container_push output for an image.', cfg='host', mandatory=True, allow_files=True, providers=[PushInfo]), 'image_name': attr.string(mandatory=False, default='', doc='The name of the image to be modified.')}), implementation=_impl, outputs={'partial': '%{name}.yaml.partial'}) def kustomize_image(**kwargs): kustomize_image_(**kwargs)
def parseFileTypes(rawTypes): out = [] for rtype in rawTypes: if isinstance(rtype, str): out.append({'name': rtype, 'ext': rtype}) else: assert 'name' in rtype assert 'ext' in rtype out.append({'name': rtype['name'], 'ext': rtype['ext']}) return out
def parse_file_types(rawTypes): out = [] for rtype in rawTypes: if isinstance(rtype, str): out.append({'name': rtype, 'ext': rtype}) else: assert 'name' in rtype assert 'ext' in rtype out.append({'name': rtype['name'], 'ext': rtype['ext']}) return out
class Solution(object): def threeConsecutiveOdds(self, arr): """ :type arr: List[int] :rtype: bool """ # Runtime: 32 ms # Memory: 13.4 MB for idx in range(len(arr) - 2): if arr[idx] % 2 == 1 and arr[idx + 1] % 2 == 1 and arr[idx + 2] % 2 == 1: return True return False
class Solution(object): def three_consecutive_odds(self, arr): """ :type arr: List[int] :rtype: bool """ for idx in range(len(arr) - 2): if arr[idx] % 2 == 1 and arr[idx + 1] % 2 == 1 and (arr[idx + 2] % 2 == 1): return True return False
def _syswrite(fh, scalar, length=None, offset=0): """Implementation of perl syswrite""" if length is None and hasattr(scalar, 'len'): length = len(scalar)-offset if isinstance(scalar, str): return os.write(fh.fileno(), scalar[offset:length+offset].encode()) elif isinstance(scalar, bytes): return os.write(fh.fileno(), scalar[offset:length+offset]) else: return os.write(fh.fileno(), str(scalar).encode())
def _syswrite(fh, scalar, length=None, offset=0): """Implementation of perl syswrite""" if length is None and hasattr(scalar, 'len'): length = len(scalar) - offset if isinstance(scalar, str): return os.write(fh.fileno(), scalar[offset:length + offset].encode()) elif isinstance(scalar, bytes): return os.write(fh.fileno(), scalar[offset:length + offset]) else: return os.write(fh.fileno(), str(scalar).encode())
keycode = { 'up': 72, 'down': 80, 'left': 75, 'right': 77, 'P': 25 }
keycode = {'up': 72, 'down': 80, 'left': 75, 'right': 77, 'P': 25}
''' Given two strings, determine if they share a common substring. A substring may be as small as one character. For example, the words "a", "and", "art" share the common substring . The words "be" and "cat" do not share a substring. ''' #this has the best runtime out of initial coding varieties def twoStrings(s1, s2): s1 = list(set(s1)) cache = {} for i in s1: cache[i] = 1 for i in s2: if i in cache.keys(): return 'YES' else: pass return 'NO'
""" Given two strings, determine if they share a common substring. A substring may be as small as one character. For example, the words "a", "and", "art" share the common substring . The words "be" and "cat" do not share a substring. """ def two_strings(s1, s2): s1 = list(set(s1)) cache = {} for i in s1: cache[i] = 1 for i in s2: if i in cache.keys(): return 'YES' else: pass return 'NO'
class Solution: def numJewelsInStones(self, J: str, S: str) -> int: ans = 0 for i in range(0, len(S)): if(J.find(S[i])!=-1): ans += 1 return ans
class Solution: def num_jewels_in_stones(self, J: str, S: str) -> int: ans = 0 for i in range(0, len(S)): if J.find(S[i]) != -1: ans += 1 return ans
# This is an Adventure Game about The Digital Sweet Shop # The program was written by Dr. Aung Win Htut # Date: 04-03-2022 # Green Hackers Online Traing Courses # 0-robot.py, 1-adgame3.py, 2-entershop.py, 3-ifelse2.py, 4-input.py, 5-ad62.py, 6-ad63.py # The next few lines give the introduction # Greetings my friend. if you want to go to the Digital Sweet Shop you must walk across # the long street and turn left at the traffic lights. There is a large shopping centre # on the corner. Turn left here and you will see the Digital Sweet Shop beside the flower # shop. The flowershop owner has a dog called Biscuit who barks all the time. Be careful # he can bite! playerlives = 3 chocolate = 2 bonus = 0 numbercorrect = 0 print() print() print() print(" Game Intro") print(" ===========") print("Greetings my friend. if you want to go to the Digital Sweet Shop you must walk across") print("the long street and turn left at the traffic lights. There is a large shopping centre") print("on the corner. Turn left here and you will see the Digital Sweet Shop beside the flower") print("shop. The flowershop owner has a dog called Biscuit who barks all the time. Be careful") print("he can bite!") print() print(" Welcome to the Digital Sweet Shop") print() print("You have been invited to take part in a competition in the shop.") print("You must find the cholote room where you will be asked a question") print("If you get it right you will receive letters which are part of a password and a clue.") print() print() print("At the end you must figure out the password and use it to open the ") print("treasure chest wich contains a year's supply of all your favourite sweets. ") print("You will meet two people - one is the sweet owner who wants to steal the password so he can keep the sweets ") print(" W E L C O M E T O T H E D I G I T A L S W E E T S H O P ") print() playername = input('What is your name: ') playerage = int(input('How old are you: ')) print('Your name is ' + playername) print('Your age is ' + str(playerage)) print() if playerage >= 8 and playerage <= 12: print("You can play the game!") print() print() print("You can give the two people in the story names ") ownername = input("Please enter owner name: ") robotname = input("Please enter robot name: ") print() print() # Enter the shop?? print("You walk up the steps to the shop....you open the door. There is nobody there") print("and the shop looks to be in bad repair. ") enterroom = input("Will you enter the room? : ") if enterroom == "Y" or enterroom == "y": print() print() print("You have reached the top of the stairs and you can go right or left") direction = input("Left or Right? : ") if direction == "R" or direction == "r": print() print() print("You have fallen through the hole in the floor and lost a life - ") print(" you must start again! GameOver") elif direction == "L" or direction == "l": print() print() print("You are standing at the door of the Chocolate room!") print() print() print("-----------------------------------------------------------------") print( "The door opens and someone is standing there. It is the robot " + robotname) print( "He tells you that you cannot enter unless you show that you know all about secure passwords.") print("He asks you a question") print() print() print("Hello " + playername + " Which of the following would be a good strong password?") print("If you answer correctly he will give two bars of chocolate") print("1 DigitalSweetShop, 2 Botty, 3 N*123MGx*") print() # enter a print statement which will tell the user to enter a number between 1 and 3 playerchoice = input("Please enter your choice: ") # enter an if statement to check if playeranswer is equal to 3 if playerchoice == "3": # enter an assignment statement to increase chocolate by 2 chocolate = chocolate + 2 # enter a print statement to say "You have got two bars of chocolate, open the wrappers to see the two letters" print() print() print( "You have got two bars of chocolate, open the wrappers to see the two letters") # enter another print statement to say "You have letters A and R - memorise these" print("You have letters A and R - memorise these") # MEETING THE OWNER print() print() print( "Welcome to the Chocolate Room. I am the owner of this sweet shop, my name is " + ownername) print("You must answer this question.") print() # add an input statement to ask the question on the next line and store the response in a variable called answer # "Which of the following could be used as a good password" # "1. Your pet's name. 2. Password123 3. A random collection of numbers and letters?" # HINT : User answer = int(input(.......)) print("Which of the following could be used as a good password") print( "1. Your pet's name. 2. Password123 3. A random collection of numbers and letters?") print() answer = int(input("Please Choose 1,2,3: ")) if answer == 3: chocolatebar = int( input("Do you want chocolate bar 1 or 2? ")) if chocolatebar == 1: print() print() print( "Hard luck, you lOse a life and there is no information in the wrapper. GameOver") playerlives = playerlives - 1 # add code to check if the chocolate bar is equal to 1 # ---> add code to print this message to the user "Hard luck, you lse a life and there is no information in the wrapper" # ---> add code to subtract 1 from the player lives elif chocolatebar == 2: print() print() print( "OK - you can have the chocolate bar and the letter in the wrapper is T") # the player must try to guess the password print("Now you must enter each letter that you remember ") print("You will be given 3 times") # add code here for a while loop using that counts from 1 to 3, so player has 3 guesses: i = 0 while i < 3: i = i + 1 letter = input("Try number " + str(i)+" : ") if letter == "A" or letter == "R" or letter == "T" or letter == "a" or letter == "r" or letter == "t": numbercorrect = numbercorrect + 1 print("CORRECT - welldone") else: print("Wrong - sorry") print() print() guess = input( "NOW try and guess the password **** - the clue is in this line four times. Use the letters you were gives to help : ") if guess == "star": print() print() print( "You are a star - you have opened the treasure chest of sweets and earned 1000 points") bonus = 1000 score = (chocolate * 50) + (playerlives * 60) + bonus # add code here to output playername # add code here to output the number of bars of chocolate the player has # add code here to output number of lives he player has # add code here to output number of bonus points the player has # add code here to output the player's score print("Finally you won the game!!!") print() print() print("Game Data") print("----------") print("Player Name : " + playername) print("Total Chocolate Bar = " + str(chocolate)) print("Playerlives = " + str(playerlives)) print("Bonus point = " + str(bonus)) print("Player's Score = " + str(score)) # you won the game !!!! # end else: print( "Wrong answer - you lose a life and all of your chocolate and GameOver") chocolate = 0 playerlives = playerlives - 1 # add code to set the chocolate value to 0 # add code to subtract 1 from player lives # enter else: else: # enter a print statement to say "You have not guessed correctly so you have lost a life" print("You have not guessed correctly so you have lost a life") playerlives = playerlives - 1 elif direction == "S" or direction == "s": print("wrong room!") else: print("You are a coward!!!...Goodbye, GameOver") else: print(playername+"You are not the correct age to play this game!!! Sorry !! ")
playerlives = 3 chocolate = 2 bonus = 0 numbercorrect = 0 print() print() print() print(' Game Intro') print(' ===========') print('Greetings my friend. if you want to go to the Digital Sweet Shop you must walk across') print('the long street and turn left at the traffic lights. There is a large shopping centre') print('on the corner. Turn left here and you will see the Digital Sweet Shop beside the flower') print('shop. The flowershop owner has a dog called Biscuit who barks all the time. Be careful') print('he can bite!') print() print(' Welcome to the Digital Sweet Shop') print() print('You have been invited to take part in a competition in the shop.') print('You must find the cholote room where you will be asked a question') print('If you get it right you will receive letters which are part of a password and a clue.') print() print() print('At the end you must figure out the password and use it to open the ') print("treasure chest wich contains a year's supply of all your favourite sweets. ") print('You will meet two people - one is the sweet owner who wants to steal the password so he can keep the sweets ') print(' W E L C O M E T O T H E D I G I T A L S W E E T S H O P ') print() playername = input('What is your name: ') playerage = int(input('How old are you: ')) print('Your name is ' + playername) print('Your age is ' + str(playerage)) print() if playerage >= 8 and playerage <= 12: print('You can play the game!') print() print() print('You can give the two people in the story names ') ownername = input('Please enter owner name: ') robotname = input('Please enter robot name: ') print() print() print('You walk up the steps to the shop....you open the door. There is nobody there') print('and the shop looks to be in bad repair. ') enterroom = input('Will you enter the room? : ') if enterroom == 'Y' or enterroom == 'y': print() print() print('You have reached the top of the stairs and you can go right or left') direction = input('Left or Right? : ') if direction == 'R' or direction == 'r': print() print() print('You have fallen through the hole in the floor and lost a life - ') print(' you must start again! GameOver') elif direction == 'L' or direction == 'l': print() print() print('You are standing at the door of the Chocolate room!') print() print() print('-----------------------------------------------------------------') print('The door opens and someone is standing there. It is the robot ' + robotname) print('He tells you that you cannot enter unless you show that you know all about secure passwords.') print('He asks you a question') print() print() print('Hello ' + playername + ' Which of the following would be a good strong password?') print('If you answer correctly he will give two bars of chocolate') print('1 DigitalSweetShop, 2 Botty, 3 N*123MGx*') print() playerchoice = input('Please enter your choice: ') if playerchoice == '3': chocolate = chocolate + 2 print() print() print('You have got two bars of chocolate, open the wrappers to see the two letters') print('You have letters A and R - memorise these') print() print() print('Welcome to the Chocolate Room. I am the owner of this sweet shop, my name is ' + ownername) print('You must answer this question.') print() print('Which of the following could be used as a good password') print("1. Your pet's name. 2. Password123 3. A random collection of numbers and letters?") print() answer = int(input('Please Choose 1,2,3: ')) if answer == 3: chocolatebar = int(input('Do you want chocolate bar 1 or 2? ')) if chocolatebar == 1: print() print() print('Hard luck, you lOse a life and there is no information in the wrapper. GameOver') playerlives = playerlives - 1 elif chocolatebar == 2: print() print() print('OK - you can have the chocolate bar and the letter in the wrapper is T') print('Now you must enter each letter that you remember ') print('You will be given 3 times') i = 0 while i < 3: i = i + 1 letter = input('Try number ' + str(i) + ' : ') if letter == 'A' or letter == 'R' or letter == 'T' or (letter == 'a') or (letter == 'r') or (letter == 't'): numbercorrect = numbercorrect + 1 print('CORRECT - welldone') else: print('Wrong - sorry') print() print() guess = input('NOW try and guess the password **** - the clue is in this line four times. Use the letters you were gives to help : ') if guess == 'star': print() print() print('You are a star - you have opened the treasure chest of sweets and earned 1000 points') bonus = 1000 score = chocolate * 50 + playerlives * 60 + bonus print('Finally you won the game!!!') print() print() print('Game Data') print('----------') print('Player Name : ' + playername) print('Total Chocolate Bar = ' + str(chocolate)) print('Playerlives = ' + str(playerlives)) print('Bonus point = ' + str(bonus)) print("Player's Score = " + str(score)) else: print('Wrong answer - you lose a life and all of your chocolate and GameOver') chocolate = 0 playerlives = playerlives - 1 else: print('You have not guessed correctly so you have lost a life') playerlives = playerlives - 1 elif direction == 'S' or direction == 's': print('wrong room!') else: print('You are a coward!!!...Goodbye, GameOver') else: print(playername + 'You are not the correct age to play this game!!! Sorry !! ')
class Solution(object): def canJump(self, nums): """ :type nums: List[int] :rtype: bool """ counter = 1 for i in range(len(nums)-1): counter -= 1 counter = max(counter,nums[i]) if counter <= 0: return False return True
class Solution(object): def can_jump(self, nums): """ :type nums: List[int] :rtype: bool """ counter = 1 for i in range(len(nums) - 1): counter -= 1 counter = max(counter, nums[i]) if counter <= 0: return False return True
class Solution: def longestPalindrome(self, s: 'str') -> 'str': if len(s) <= 1: return s start = end = 0 length = len(s) for i in range(length): max_len_1 = self.get_max_len(s, i, i + 1) max_len_2 = self.get_max_len(s, i, i) max_len = max(max_len_1, max_len_2) if max_len > end - start: start = i - (max_len - 1) // 2 end = i + max_len // 2 return s[start: end+1] def get_max_len(self, s: 'list', left: 'int', right: 'int') -> 'int': length = len(s) while left >= 0 and right < length and s[left] == s[right]: left -= 1 right += 1 return right - left - 1
class Solution: def longest_palindrome(self, s: 'str') -> 'str': if len(s) <= 1: return s start = end = 0 length = len(s) for i in range(length): max_len_1 = self.get_max_len(s, i, i + 1) max_len_2 = self.get_max_len(s, i, i) max_len = max(max_len_1, max_len_2) if max_len > end - start: start = i - (max_len - 1) // 2 end = i + max_len // 2 return s[start:end + 1] def get_max_len(self, s: 'list', left: 'int', right: 'int') -> 'int': length = len(s) while left >= 0 and right < length and (s[left] == s[right]): left -= 1 right += 1 return right - left - 1
class Patient: def __init__(self, pathology, gender, weight, height, images): self.pathology = pathology self.gender = gender self.weight = weight self.height = height self.images = images
class Patient: def __init__(self, pathology, gender, weight, height, images): self.pathology = pathology self.gender = gender self.weight = weight self.height = height self.images = images
class Solution(object): def numSpecialEquivGroups(self, A): """ :type A: List[str] :rtype: int """ st = set() for s in A: lstA = [] lstB = [] for i in range(len(s)): if i % 2 == 0: lstA.append(s[i]) else: lstB.append(s[i]) lstA = sorted(lstA) lstB = sorted(lstB) st.add(''.join(lstA) + ':' + ''.join(lstB)) return len(st)
class Solution(object): def num_special_equiv_groups(self, A): """ :type A: List[str] :rtype: int """ st = set() for s in A: lst_a = [] lst_b = [] for i in range(len(s)): if i % 2 == 0: lstA.append(s[i]) else: lstB.append(s[i]) lst_a = sorted(lstA) lst_b = sorted(lstB) st.add(''.join(lstA) + ':' + ''.join(lstB)) return len(st)
def determinant_recursive(A, total=0): # Store indices in list for row referencing indices = list(range(len(A))) # When at 2x2, submatrices recursive calls end if len(A) == 2 and len(A[0]) == 2: val = A[0][0] * A[1][1] - A[1][0] * A[0][1] return val # Define submatrix for focus column and call this function for fc in indices: As = A As = As[1:] height = len(As) for i in range(height): As[i] = As[i][0:fc] + As[i][fc+1:] sign = (-1) ** (fc % 2) # Recursive Call for matrix without the focus column sub_det = determinant_recursive(As) # All returns from recursion total += sign * A[0][fc] * sub_det return total R = int(input("Enter the number of rows:")) C = int(input("Enter the number of columns:")) matrix = [] print("Enter the entries rowwise:") for i in range(R): # A for loop for row entries a = [] for j in range(C): # A for loop for column entries a.append(int(input())) matrix.append(a) if R==C: print(determinant_recursive(matrix)) else: print("Try Again!")
def determinant_recursive(A, total=0): indices = list(range(len(A))) if len(A) == 2 and len(A[0]) == 2: val = A[0][0] * A[1][1] - A[1][0] * A[0][1] return val for fc in indices: as = A as = As[1:] height = len(As) for i in range(height): As[i] = As[i][0:fc] + As[i][fc + 1:] sign = (-1) ** (fc % 2) sub_det = determinant_recursive(As) total += sign * A[0][fc] * sub_det return total r = int(input('Enter the number of rows:')) c = int(input('Enter the number of columns:')) matrix = [] print('Enter the entries rowwise:') for i in range(R): a = [] for j in range(C): a.append(int(input())) matrix.append(a) if R == C: print(determinant_recursive(matrix)) else: print('Try Again!')
__all__ = [ "_is_ltag", "_is_not_ltag", "_is_rtag", "_is_not_rtag", "_is_tag", "_is_not_tag", "_is_ltag_of", "_is_not_ltag_of", "_is_rtag_of", "_is_not_rtag_of", "_is_pair_of", "_is_not_pair_of", "_is_not_ltag_and_not_rtag_of" ] #### def _is_ltag(tag,tag_pairs): cond = (tag in tag_pairs) return(cond) def _is_not_ltag(tag,tag_pairs): return(not(_is_ltag(tag,tag_pairs))) def _is_rtag(tag,tag_pairs): cond = (tag in list(tag_pairs.values())) return(cond) def _is_not_rtag(tag,tag_pairs): return(not(_is_rtag(tag,tag_pairs))) def _is_tag(tag,tag_pairs): cond1 = (tag in tag_pairs) cond2 = (tag in list(tag_pairs.values())) return((cond1 or cond2)) def _is_not_tag(tag,tag_pairs): return(not(_is_tag(tag,tag_pairs))) def _is_ltag_of(tag1,tag2,tag_pairs): cond = (tag_pairs[tag1] == tag2) return(cond) def _is_not_ltag_of(tag1,tag2,tag_pairs): return(not(is_ltag_of(tag1,tag2,tag_pairs))) def _is_rtag_of(tag1,tag2,tag_pairs): cond = (tag_pairs[tag2] == tag1) return(cond) def _is_not_rtag_of(tag1,tag2,tag_pairs): return(not(_is_rtag_of(tag1,tag2,tag_pairs))) def _is_pair_of(tag1,tag2,tag_pairs): cond1 = _is_ltag_of(tag1,tag2,tag_pairs) cond2 = _is_rtag_of(tag1,tag2,tag_pairs) return((cond1 or cond2)) def _is_not_pair_of(tag1,tag2,tag_pairs): return(not(_is_pair_of(tag1,tag2,tag_pairs))) ##### def _is_not_ltag_and_not_rtag_of(tag1,tag2,tag_pairs): cond1 = _is_not_ltag(tag1,tag_pairs) cond2 = _is_not_rtag_of(tag1,tag2,tag_pairs) return((cond1 and cond2)) #####
__all__ = ['_is_ltag', '_is_not_ltag', '_is_rtag', '_is_not_rtag', '_is_tag', '_is_not_tag', '_is_ltag_of', '_is_not_ltag_of', '_is_rtag_of', '_is_not_rtag_of', '_is_pair_of', '_is_not_pair_of', '_is_not_ltag_and_not_rtag_of'] def _is_ltag(tag, tag_pairs): cond = tag in tag_pairs return cond def _is_not_ltag(tag, tag_pairs): return not _is_ltag(tag, tag_pairs) def _is_rtag(tag, tag_pairs): cond = tag in list(tag_pairs.values()) return cond def _is_not_rtag(tag, tag_pairs): return not _is_rtag(tag, tag_pairs) def _is_tag(tag, tag_pairs): cond1 = tag in tag_pairs cond2 = tag in list(tag_pairs.values()) return cond1 or cond2 def _is_not_tag(tag, tag_pairs): return not _is_tag(tag, tag_pairs) def _is_ltag_of(tag1, tag2, tag_pairs): cond = tag_pairs[tag1] == tag2 return cond def _is_not_ltag_of(tag1, tag2, tag_pairs): return not is_ltag_of(tag1, tag2, tag_pairs) def _is_rtag_of(tag1, tag2, tag_pairs): cond = tag_pairs[tag2] == tag1 return cond def _is_not_rtag_of(tag1, tag2, tag_pairs): return not _is_rtag_of(tag1, tag2, tag_pairs) def _is_pair_of(tag1, tag2, tag_pairs): cond1 = _is_ltag_of(tag1, tag2, tag_pairs) cond2 = _is_rtag_of(tag1, tag2, tag_pairs) return cond1 or cond2 def _is_not_pair_of(tag1, tag2, tag_pairs): return not _is_pair_of(tag1, tag2, tag_pairs) def _is_not_ltag_and_not_rtag_of(tag1, tag2, tag_pairs): cond1 = _is_not_ltag(tag1, tag_pairs) cond2 = _is_not_rtag_of(tag1, tag2, tag_pairs) return cond1 and cond2
int_const = 5 bool_const = True string_const = 'abc' unicode_const = u'abc' float_const = 1.23
int_const = 5 bool_const = True string_const = 'abc' unicode_const = u'abc' float_const = 1.23
class Foo: """docstring""" @property def prop1(self) -> int: """docstring""" @classmethod @property def prop2(self) -> int: """docstring"""
class Foo: """docstring""" @property def prop1(self) -> int: """docstring""" @classmethod @property def prop2(self) -> int: """docstring"""
''' https://practice.geeksforgeeks.org/problems/subarray-with-given-sum/0/?ref=self Given an unsorted array of non-negative integers, find a continuous sub-array which adds to a given number. Input: The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of two lines. The first line of each test case is N and S, where N is the size of array and S is the sum. The second line of each test case contains N space separated integers denoting the array elements ''' def find_contiguous_adds_to(A, s): if len(A) == 0: return -1 elif len(A) == 1: return (0,0) if A[0] == s else -1 curSum = A[0] start = 0 end = 1 while start <= end and curSum <= s and end < len(A): if curSum + A[end] < s: curSum += A[end] end += 1 elif curSum + A[end] == s: curSum += A[end] return start + 1, end + 1 else: curSum -= A[start] start += 1 return -1 def find_contiguous_posneg_adds_to(A, s): if len(A) == 0: return -1 elif len(A) == 1: return (0,0) if A[0] == s else -1 sumMap = dict() curSum = 0 for i, num in enumerate(A): curSum += num if curSum == s: return (0, i) elif sumMap.get(curSum - s, None) is not None: return sumMap.get(curSum - s) + 1, i #if value of difference between current sum and s is in map, exclude that value (subtract it) #and return index of solution as 1+ index of subarray from 0..A[sumMap[curSum - s]] sumMap[curSum] = i if __name__ == '__main__': A = [1,2,-3, 3, 3, 7,5] s = 12 #print(find_contiguous_adds_to(A,s)) print(find_contiguous_posneg_adds_to(A,s))
""" https://practice.geeksforgeeks.org/problems/subarray-with-given-sum/0/?ref=self Given an unsorted array of non-negative integers, find a continuous sub-array which adds to a given number. Input: The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of two lines. The first line of each test case is N and S, where N is the size of array and S is the sum. The second line of each test case contains N space separated integers denoting the array elements """ def find_contiguous_adds_to(A, s): if len(A) == 0: return -1 elif len(A) == 1: return (0, 0) if A[0] == s else -1 cur_sum = A[0] start = 0 end = 1 while start <= end and curSum <= s and (end < len(A)): if curSum + A[end] < s: cur_sum += A[end] end += 1 elif curSum + A[end] == s: cur_sum += A[end] return (start + 1, end + 1) else: cur_sum -= A[start] start += 1 return -1 def find_contiguous_posneg_adds_to(A, s): if len(A) == 0: return -1 elif len(A) == 1: return (0, 0) if A[0] == s else -1 sum_map = dict() cur_sum = 0 for (i, num) in enumerate(A): cur_sum += num if curSum == s: return (0, i) elif sumMap.get(curSum - s, None) is not None: return (sumMap.get(curSum - s) + 1, i) sumMap[curSum] = i if __name__ == '__main__': a = [1, 2, -3, 3, 3, 7, 5] s = 12 print(find_contiguous_posneg_adds_to(A, s))
class Solution(object): def isPowerOfTwo(self, n): """ :type n: int :rtype: bool """ return n > 0 and not (n & (n - 1)) class Solution2(object): def isPowerOfTwo(self, n): """ :type n: int :rtype: bool """ return n > 0 and (2 ** 30) % n == 0 class Solution3(object): def isPowerOfTwo(self, n): """ :type n: int :rtype: bool """ if n <= 0: return False number = n while number > 1: if number & 1 == 1: break number >>= 1 return number == 1
class Solution(object): def is_power_of_two(self, n): """ :type n: int :rtype: bool """ return n > 0 and (not n & n - 1) class Solution2(object): def is_power_of_two(self, n): """ :type n: int :rtype: bool """ return n > 0 and 2 ** 30 % n == 0 class Solution3(object): def is_power_of_two(self, n): """ :type n: int :rtype: bool """ if n <= 0: return False number = n while number > 1: if number & 1 == 1: break number >>= 1 return number == 1
messageResources = {} messageResources['it'] = { 'browse':'Sfoglia', 'play':'Play', 'open.file':'Apri file', 'file':'File', 'edit':'Modifica', 'audio':'Audio', 'video':'Video', 'open':'Apri...', 'quit':'Esci', 'clear.file.list':'Cancella la lista dei file', 'output.audio':'Uscita audio', 'hdmi':'HDMI', 'local':'Locale', 'both':'Entrambe', 'adjust.framerate':'Regola framerate/risoluzione allo schermo', 'background.black':'Imposta lo sfondo nero', } messageResources['en'] = { 'browse':'Browse', 'play':'Play', 'open.file':'Open file', 'file':'File', 'edit':'Edit', 'audio':'Audio', 'video':'Video', 'open':'Open', 'quit':'Quit', 'clear.file.list':'Clear file list', 'output.audio':'Output audio', 'hdmi':'HDMI', 'local':'local', 'both':'both', 'adjust.framerate':'Adjust framerate/resolution to video', 'background.black':'Set background to black', }
message_resources = {} messageResources['it'] = {'browse': 'Sfoglia', 'play': 'Play', 'open.file': 'Apri file', 'file': 'File', 'edit': 'Modifica', 'audio': 'Audio', 'video': 'Video', 'open': 'Apri...', 'quit': 'Esci', 'clear.file.list': 'Cancella la lista dei file', 'output.audio': 'Uscita audio', 'hdmi': 'HDMI', 'local': 'Locale', 'both': 'Entrambe', 'adjust.framerate': 'Regola framerate/risoluzione allo schermo', 'background.black': 'Imposta lo sfondo nero'} messageResources['en'] = {'browse': 'Browse', 'play': 'Play', 'open.file': 'Open file', 'file': 'File', 'edit': 'Edit', 'audio': 'Audio', 'video': 'Video', 'open': 'Open', 'quit': 'Quit', 'clear.file.list': 'Clear file list', 'output.audio': 'Output audio', 'hdmi': 'HDMI', 'local': 'local', 'both': 'both', 'adjust.framerate': 'Adjust framerate/resolution to video', 'background.black': 'Set background to black'}
def simple(request): return { 'simple': { 'boolean': True, 'list': [1, 2, 3], } } def is_authenticated(request): is_authenticated = request.user and request.user.is_authenticated if callable(is_authenticated): is_authenticated = is_authenticated() return { 'is_authenticated': is_authenticated, }
def simple(request): return {'simple': {'boolean': True, 'list': [1, 2, 3]}} def is_authenticated(request): is_authenticated = request.user and request.user.is_authenticated if callable(is_authenticated): is_authenticated = is_authenticated() return {'is_authenticated': is_authenticated}
class Generating: def __init__(self, node): self._node = node def generatetoaddress(self, nblocks, address, maxtries=1): # 01 return self._node._rpc.call("generatetoaddress", nblocks, address, maxtries)
class Generating: def __init__(self, node): self._node = node def generatetoaddress(self, nblocks, address, maxtries=1): return self._node._rpc.call('generatetoaddress', nblocks, address, maxtries)
"""Tools """ def _create_dirtree(a,chunksize=2): """create a directory tree from a single, long name e.g. "12345" --> ["1", "23", "45"] """ b = a[::-1] # reverse i = 0 l = [] while i < len(b): l.append(b[i:i+chunksize]) i += chunksize return [e[::-1] for e in l[::-1]] def _short(name, value): '''Output short string representation of parameter and value. Used for automatic folder name generation.''' # Store the param value as a string # Remove the plus sign in front of exponent # Remove directory slashes, periods and trailing .nc from string values value = "%s" % (value) if "+" in value: value = value.replace('+','') if "/" in value: value = value.replace('/','') if ".." in value: value = value.replace('..','') if ".nc" in value: value = value.replace('.nc','') # Remove all vowels and underscores from parameter name name = name for letter in ['a','e','i','o','u','A','E','I','O','U','_']: name = name[0] + name[1:].replace(letter, '') return ".".join([name,value]) def autofolder(params): '''Given a list of (name, value) tuples, generate an appropriate folder name. ''' parts = [] for p in params: parts.append( _short(*p) ) return '.'.join(parts)
"""Tools """ def _create_dirtree(a, chunksize=2): """create a directory tree from a single, long name e.g. "12345" --> ["1", "23", "45"] """ b = a[::-1] i = 0 l = [] while i < len(b): l.append(b[i:i + chunksize]) i += chunksize return [e[::-1] for e in l[::-1]] def _short(name, value): """Output short string representation of parameter and value. Used for automatic folder name generation.""" value = '%s' % value if '+' in value: value = value.replace('+', '') if '/' in value: value = value.replace('/', '') if '..' in value: value = value.replace('..', '') if '.nc' in value: value = value.replace('.nc', '') name = name for letter in ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U', '_']: name = name[0] + name[1:].replace(letter, '') return '.'.join([name, value]) def autofolder(params): """Given a list of (name, value) tuples, generate an appropriate folder name. """ parts = [] for p in params: parts.append(_short(*p)) return '.'.join(parts)
"""Project metadata.""" package = "humilis_secrets_vault" project = "humilis-secrets-vault" version = '0.2.4' description = "Humilis layer that deploys a secrets vault" authors = ["German Gomez-Herrero"] authors_string = ', '.join(authors) emails = ["german@findhotel.net"] license = "MIT" copyright = "2016 FindHotel BV" url = 'http://github.com/humilis/humilis-secrets-vault'
"""Project metadata.""" package = 'humilis_secrets_vault' project = 'humilis-secrets-vault' version = '0.2.4' description = 'Humilis layer that deploys a secrets vault' authors = ['German Gomez-Herrero'] authors_string = ', '.join(authors) emails = ['german@findhotel.net'] license = 'MIT' copyright = '2016 FindHotel BV' url = 'http://github.com/humilis/humilis-secrets-vault'
## # \namespace cross3d.classes.valuerange # # \remarks This module holds the ValueRange class to handle value ranges. # # \author douglas # \author Blur Studio # \date 02/17/16 # #------------------------------------------------------------------------------------------------------------------------ class ValueRange(list): def __init__(self, *args): """ \remarks Initialize the class. """ args = list(args) if not len(args) == 2: raise TypeError('ValueRange object takes two floats. You provided {} arguments.'.format(len(args))) try: args[0] = float(args[0]) args[1] = float(args[1]) except ValueError: raise TypeError('ValueRange object takes two floats.') super(ValueRange, self).__init__(args) def __repr__(self): """ \remarks Affects the class representation. """ return 'cross3d.ValueRange( %s, %s )' % (self[0], self[1]) def __eq__(self, other): if isinstance(other, ValueRange): return self[0] == other[0] and self[1] == other[1] return False def __mult__(self, other): if isinstance(other, (float, int)): return ValueRange(self[0] * other, self[1] * other) raise ValueError('Unable to multiply a ValueRange by {}.'.format(str(type(other)))) def __nonzero__(self): return bool(self.duration()) def round(self): self[0] = round(self[0]) self[1] = round(self[1]) def rounded(self): return ValueRange(round(self[0]), round(self[1])) def string(self, separator='-'): """ \remarks Returns the range in its string form. \param separator <string> """ return '%i%s%i' % (self[0], separator, self[1]) def start(self): return self[0] def end(self): return self[1] def duration(self): return self[1] - self[0] + 1 def isWithin(self, valueRange): if self[0] >= valueRange[0] and self[1] <= valueRange[1]: return True return False def contains(self, valueRange): if self[0] <= valueRange[0] and self[1] >= valueRange[1]: return True return False def offsets(self, valueRange): return ValueRange((valueRange[0] - self[0]), (valueRange[1] - self[1])) def overlaps(self, valueRange, tolerance=0): """ \remarks Returns weather the ranges overlaps. \param separator <string> """ if self[0] + tolerance >= valueRange[1] or self[1] - tolerance <= valueRange[0]: return False return True def extends(self, valueRange): """ \remarks Returns weather the range includes additional frames. """ return self[0] < valueRange[0] or self[1] > valueRange[1] def overlap(self, valueRange): """ \remarks Returns the overlaping range if any. """ if self.overlaps(valueRange): if self[0] < valueRange[0]: start = valueRange[0] else: start = self[0] if self[1] > valueRange[1]: end = valueRange[1] else: end = self[1] return ValueRange(start, end) else: None def multiplied(self, multiplier): return ValueRange(self[0] * multiplier, self[1] * multiplier) def merged(self, valueRange): """ \remarks Returns a range that covers both framerange. """ return ValueRange(min(self[0], valueRange[0]), max(self[1], valueRange[1])) def padded(self, padding): """ \remarks Returns the padded range. """ if isinstance(padding, (list, tuple)) and len(padding) >= 2: return ValueRange(self[0] - padding[0], self[1] + padding[1]) return ValueRange(self[0] - padding, self[1] + padding) def offseted(self, offset): """ \remarks Returns the offset range. """ return ValueRange(self[0] + offset, self[1] + offset)
class Valuerange(list): def __init__(self, *args): """ \remarks Initialize the class. """ args = list(args) if not len(args) == 2: raise type_error('ValueRange object takes two floats. You provided {} arguments.'.format(len(args))) try: args[0] = float(args[0]) args[1] = float(args[1]) except ValueError: raise type_error('ValueRange object takes two floats.') super(ValueRange, self).__init__(args) def __repr__(self): """ \remarks Affects the class representation. """ return 'cross3d.ValueRange( %s, %s )' % (self[0], self[1]) def __eq__(self, other): if isinstance(other, ValueRange): return self[0] == other[0] and self[1] == other[1] return False def __mult__(self, other): if isinstance(other, (float, int)): return value_range(self[0] * other, self[1] * other) raise value_error('Unable to multiply a ValueRange by {}.'.format(str(type(other)))) def __nonzero__(self): return bool(self.duration()) def round(self): self[0] = round(self[0]) self[1] = round(self[1]) def rounded(self): return value_range(round(self[0]), round(self[1])) def string(self, separator='-'): """ \remarks Returns the range in its string form. \\param separator <string> """ return '%i%s%i' % (self[0], separator, self[1]) def start(self): return self[0] def end(self): return self[1] def duration(self): return self[1] - self[0] + 1 def is_within(self, valueRange): if self[0] >= valueRange[0] and self[1] <= valueRange[1]: return True return False def contains(self, valueRange): if self[0] <= valueRange[0] and self[1] >= valueRange[1]: return True return False def offsets(self, valueRange): return value_range(valueRange[0] - self[0], valueRange[1] - self[1]) def overlaps(self, valueRange, tolerance=0): """ \remarks Returns weather the ranges overlaps. \\param separator <string> """ if self[0] + tolerance >= valueRange[1] or self[1] - tolerance <= valueRange[0]: return False return True def extends(self, valueRange): """ \remarks Returns weather the range includes additional frames. """ return self[0] < valueRange[0] or self[1] > valueRange[1] def overlap(self, valueRange): """ \remarks Returns the overlaping range if any. """ if self.overlaps(valueRange): if self[0] < valueRange[0]: start = valueRange[0] else: start = self[0] if self[1] > valueRange[1]: end = valueRange[1] else: end = self[1] return value_range(start, end) else: None def multiplied(self, multiplier): return value_range(self[0] * multiplier, self[1] * multiplier) def merged(self, valueRange): """ \remarks Returns a range that covers both framerange. """ return value_range(min(self[0], valueRange[0]), max(self[1], valueRange[1])) def padded(self, padding): """ \remarks Returns the padded range. """ if isinstance(padding, (list, tuple)) and len(padding) >= 2: return value_range(self[0] - padding[0], self[1] + padding[1]) return value_range(self[0] - padding, self[1] + padding) def offseted(self, offset): """ \remarks Returns the offset range. """ return value_range(self[0] + offset, self[1] + offset)
# -*- coding: utf-8 -*- """Top-level package for ebr-trackerbot.""" __project__ = "ebr-trackerbot" __author__ = "Milan Hradil" __email__ = "milan.hradil@tomtom.com" __version__ = "0.1.5-dev"
"""Top-level package for ebr-trackerbot.""" __project__ = 'ebr-trackerbot' __author__ = 'Milan Hradil' __email__ = 'milan.hradil@tomtom.com' __version__ = '0.1.5-dev'
n_h1=100 n_h2=100 n_h3=100 batch_size=20
n_h1 = 100 n_h2 = 100 n_h3 = 100 batch_size = 20
class URI: prefix = { 'dbpedia': 'http://dbpedia.org/page/', 'dbr': 'http://dbpedia.org/resource/', 'dbo': 'http://dbpedia.org/ontology/', 'rdfs': 'http://www.w3.org/2000/01/rdf-schema#', 'xsd': 'http://www.w3.org/2001/XMLSchema#', 'dt': 'http://dbpedia.org/datatype/', } def __init__(self, prefix, suffix): if prefix in URI.prefix: self.prefix = prefix else: raise Exception('Unknown prefix "{:s}"!'.format(prefix)) self.suffix = suffix @classmethod def parse(cls, uri, fallback_prefix=None): if uri.startswith('http://'): for prefix_short, prefix_long in URI.prefix.items(): if uri.startswith(prefix_long): suffix = uri.replace(prefix_long, '') return URI(prefix_short, suffix) else: raise Exception('Unknown prefix in "{:s}"!'.format(uri)) else: if ':' in uri: prefix, suffix = uri.split(':', 1) if prefix in URI.prefix: return URI(prefix, suffix) if fallback_prefix is None: raise Exception('Ambiguous URI "{:s}"!'.format(uri)) else: return URI(fallback_prefix, uri) def __str__(self): return self.short() def short(self): return '{:s}:{:s}'.format(self.prefix, self.suffix) def long(self): return '{:s}{:s}'.format( URI.prefix[self.prefix], self.suffix )
class Uri: prefix = {'dbpedia': 'http://dbpedia.org/page/', 'dbr': 'http://dbpedia.org/resource/', 'dbo': 'http://dbpedia.org/ontology/', 'rdfs': 'http://www.w3.org/2000/01/rdf-schema#', 'xsd': 'http://www.w3.org/2001/XMLSchema#', 'dt': 'http://dbpedia.org/datatype/'} def __init__(self, prefix, suffix): if prefix in URI.prefix: self.prefix = prefix else: raise exception('Unknown prefix "{:s}"!'.format(prefix)) self.suffix = suffix @classmethod def parse(cls, uri, fallback_prefix=None): if uri.startswith('http://'): for (prefix_short, prefix_long) in URI.prefix.items(): if uri.startswith(prefix_long): suffix = uri.replace(prefix_long, '') return uri(prefix_short, suffix) else: raise exception('Unknown prefix in "{:s}"!'.format(uri)) else: if ':' in uri: (prefix, suffix) = uri.split(':', 1) if prefix in URI.prefix: return uri(prefix, suffix) if fallback_prefix is None: raise exception('Ambiguous URI "{:s}"!'.format(uri)) else: return uri(fallback_prefix, uri) def __str__(self): return self.short() def short(self): return '{:s}:{:s}'.format(self.prefix, self.suffix) def long(self): return '{:s}{:s}'.format(URI.prefix[self.prefix], self.suffix)
class Solution: def myPow(self, x: float, n: int) -> float: if n < 0: val = 1 / self._myPow(x, -n) else: val = self._myPow(x, n) return val def _myPow(self, x: float, n: int) -> float: if n == 1: return x if n == 0: return 1 else: half = n // 2 remainder = n - 2 * half val = self._myPow(x, half) val *= val if remainder > 0: val *= x return val
class Solution: def my_pow(self, x: float, n: int) -> float: if n < 0: val = 1 / self._myPow(x, -n) else: val = self._myPow(x, n) return val def _my_pow(self, x: float, n: int) -> float: if n == 1: return x if n == 0: return 1 else: half = n // 2 remainder = n - 2 * half val = self._myPow(x, half) val *= val if remainder > 0: val *= x return val
#1. Idea is we use a stack, where each element in the stack is a list, the list contains the current string and current repeat value, we know it is the current string because we have not yet hit a closed bracket because once we hit the closed bracket we pop off. #2. Initialize a stack which contains an empty string and int 1. This is just our final element in the stack which we need to return. #3. Iterate through the string, we do k * 10 + int(i) because in this would be the best way to get values numerical values greater than 1 digit. #4. Next we see if we have a open bracket, if we do that means we start a new list and we will build the string in this list until we hit a closing bracket, we also add the k value, remember to reset the k value at this step also for each new list. #5. Finally, if we hit a closing bracket we assign two variables, one wil hold the string the other will hold the numerical value we will then mutliply that string and add it to our previous stack list element, this is how we continously build our string but adding the previous lists strings in the stack. #6. If we have simple character then just add it onto the current string portion of the list at the top of the stack. #7. Return the string portion of the last element in the stack which will hold the decoded list. def decodeString(self, s): stack = [["", 1]] k = 0 for i in s: if i.isdigit(): k = k * 10 + int(i) elif i == '[': stack.append(["", k]) k = 0 elif i == ']': char_string, repeat_val = stack.pop() stack[-1][0] += char_string * repeat_val else: stack[-1][0] += i return stack[-1][0]
def decode_string(self, s): stack = [['', 1]] k = 0 for i in s: if i.isdigit(): k = k * 10 + int(i) elif i == '[': stack.append(['', k]) k = 0 elif i == ']': (char_string, repeat_val) = stack.pop() stack[-1][0] += char_string * repeat_val else: stack[-1][0] += i return stack[-1][0]
T = int(input()) for _ in range(T): h = 1 for i in range(int(input())): if i % 2 == 0: h *= 2 else: h += 1 print(h)
t = int(input()) for _ in range(T): h = 1 for i in range(int(input())): if i % 2 == 0: h *= 2 else: h += 1 print(h)
class Queue(object): def __init__(self): self.queue = [] self.size = 0 def isEmpty(self): return self.queue == [] def enqueue(self, item): self.queue.insert(0, item) self.size += 1 def dequeu(self): if not self.isEmpty(): self.size -= 1 return self.queue.pop() else: return "The queue is already empty" def queue_size(self): return self.size
class Queue(object): def __init__(self): self.queue = [] self.size = 0 def is_empty(self): return self.queue == [] def enqueue(self, item): self.queue.insert(0, item) self.size += 1 def dequeu(self): if not self.isEmpty(): self.size -= 1 return self.queue.pop() else: return 'The queue is already empty' def queue_size(self): return self.size
class HttpListenerTimeoutManager(object): # no doc def ZZZ(self): """hardcoded/mock instance of the class""" return HttpListenerTimeoutManager() instance=ZZZ() """hardcoded/returns an instance of the class""" DrainEntityBody=property(lambda self: object(),lambda self,v: None,lambda self: None) """Get: DrainEntityBody(self: HttpListenerTimeoutManager) -> TimeSpan Set: DrainEntityBody(self: HttpListenerTimeoutManager)=value """ EntityBody=property(lambda self: object(),lambda self,v: None,lambda self: None) """Get: EntityBody(self: HttpListenerTimeoutManager) -> TimeSpan Set: EntityBody(self: HttpListenerTimeoutManager)=value """ HeaderWait=property(lambda self: object(),lambda self,v: None,lambda self: None) """Get: HeaderWait(self: HttpListenerTimeoutManager) -> TimeSpan Set: HeaderWait(self: HttpListenerTimeoutManager)=value """ IdleConnection=property(lambda self: object(),lambda self,v: None,lambda self: None) """Get: IdleConnection(self: HttpListenerTimeoutManager) -> TimeSpan Set: IdleConnection(self: HttpListenerTimeoutManager)=value """ MinSendBytesPerSecond=property(lambda self: object(),lambda self,v: None,lambda self: None) """Get: MinSendBytesPerSecond(self: HttpListenerTimeoutManager) -> Int64 Set: MinSendBytesPerSecond(self: HttpListenerTimeoutManager)=value """ RequestQueue=property(lambda self: object(),lambda self,v: None,lambda self: None) """Get: RequestQueue(self: HttpListenerTimeoutManager) -> TimeSpan Set: RequestQueue(self: HttpListenerTimeoutManager)=value """
class Httplistenertimeoutmanager(object): def zzz(self): """hardcoded/mock instance of the class""" return http_listener_timeout_manager() instance = zzz() 'hardcoded/returns an instance of the class' drain_entity_body = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Get: DrainEntityBody(self: HttpListenerTimeoutManager) -> TimeSpan\n\n\n\nSet: DrainEntityBody(self: HttpListenerTimeoutManager)=value\n\n' entity_body = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Get: EntityBody(self: HttpListenerTimeoutManager) -> TimeSpan\n\n\n\nSet: EntityBody(self: HttpListenerTimeoutManager)=value\n\n' header_wait = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Get: HeaderWait(self: HttpListenerTimeoutManager) -> TimeSpan\n\n\n\nSet: HeaderWait(self: HttpListenerTimeoutManager)=value\n\n' idle_connection = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Get: IdleConnection(self: HttpListenerTimeoutManager) -> TimeSpan\n\n\n\nSet: IdleConnection(self: HttpListenerTimeoutManager)=value\n\n' min_send_bytes_per_second = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Get: MinSendBytesPerSecond(self: HttpListenerTimeoutManager) -> Int64\n\n\n\nSet: MinSendBytesPerSecond(self: HttpListenerTimeoutManager)=value\n\n' request_queue = property(lambda self: object(), lambda self, v: None, lambda self: None) 'Get: RequestQueue(self: HttpListenerTimeoutManager) -> TimeSpan\n\n\n\nSet: RequestQueue(self: HttpListenerTimeoutManager)=value\n\n'
#!/usr/bin/env python ord_numbers = [] for i in range(1,50): ord_numbers.append(i) print(ord_numbers) for j in ord_numbers: if j == 13: continue elif j > 39: break else: print(j)
ord_numbers = [] for i in range(1, 50): ord_numbers.append(i) print(ord_numbers) for j in ord_numbers: if j == 13: continue elif j > 39: break else: print(j)
doc(title="PaddlePaddle Use-Cases", underline_char="=", entries=[ "resnet50/paddle-resnet50.rst", "ssd/paddle-ssd.rst", "tsm/paddle-tsm.rst", ])
doc(title='PaddlePaddle Use-Cases', underline_char='=', entries=['resnet50/paddle-resnet50.rst', 'ssd/paddle-ssd.rst', 'tsm/paddle-tsm.rst'])
def generate_worklist(n, n_process, generate_mode="random", time_weights=None): works_type = {} works = [] if generate_mode == "random": minimum_time = 10 maximum_time = 300 reset_time_weights_prob = 0.05 time_weights = [random.randint(minimum_time, maximum_time) for i in range(n_process)] type_name = time.time() works_type[type_name] = {"time":time_weights, "sort":[[] for np in range(N_PROCESS-1)]} for i in range(n): work = {} work["type"] = type_name work["time"] = [] for tw in time_weights: tmp = np.random.normal(tw, np.log(tw)) if tmp < 0: tmp = 0 work["time"].append(tmp) if random.random() < reset_time_weights_prob: time_weights = [random.randint(minimum_time, maximum_time) for i in range(n_process)] type_name = time.time() works_type[type_name] = {"time":time_weights, "sort":[[] for np in range(N_PROCESS-1)]} works.append(work) return works, works_type def get_conveyor(works): n_work, n_process_seq = works.shape conveyor = np.zeros((n_work, n_process_seq+(n_work-1))) conveyor_mask = np.zeros((n_work, n_process_seq+(n_work-1))) index = np.zeros((n_work, n_process_seq)).astype(np.int32) index_process_seq = np.arange(n_process_seq) index_work = np.arange(n_work) index += index_process_seq index += index_work.reshape(-1, 1) conveyor[index_work.reshape(-1,1), index] += works conveyor_mask[index_work.reshape(-1, 1), index] += 1 return conveyor, conveyor_mask def cal_conveyor_time(conveyor): return sum(np.amax(conveyor, axis=0)) def cal_works_time(works): return cal_conveyor_time(get_conveyor(works))
def generate_worklist(n, n_process, generate_mode='random', time_weights=None): works_type = {} works = [] if generate_mode == 'random': minimum_time = 10 maximum_time = 300 reset_time_weights_prob = 0.05 time_weights = [random.randint(minimum_time, maximum_time) for i in range(n_process)] type_name = time.time() works_type[type_name] = {'time': time_weights, 'sort': [[] for np in range(N_PROCESS - 1)]} for i in range(n): work = {} work['type'] = type_name work['time'] = [] for tw in time_weights: tmp = np.random.normal(tw, np.log(tw)) if tmp < 0: tmp = 0 work['time'].append(tmp) if random.random() < reset_time_weights_prob: time_weights = [random.randint(minimum_time, maximum_time) for i in range(n_process)] type_name = time.time() works_type[type_name] = {'time': time_weights, 'sort': [[] for np in range(N_PROCESS - 1)]} works.append(work) return (works, works_type) def get_conveyor(works): (n_work, n_process_seq) = works.shape conveyor = np.zeros((n_work, n_process_seq + (n_work - 1))) conveyor_mask = np.zeros((n_work, n_process_seq + (n_work - 1))) index = np.zeros((n_work, n_process_seq)).astype(np.int32) index_process_seq = np.arange(n_process_seq) index_work = np.arange(n_work) index += index_process_seq index += index_work.reshape(-1, 1) conveyor[index_work.reshape(-1, 1), index] += works conveyor_mask[index_work.reshape(-1, 1), index] += 1 return (conveyor, conveyor_mask) def cal_conveyor_time(conveyor): return sum(np.amax(conveyor, axis=0)) def cal_works_time(works): return cal_conveyor_time(get_conveyor(works))
class Node: def __init__(self, item): self.item = item self.left = None self.right = None class BinaryTree: def __init__(self, root): self.root = root def insert(self, root, node): if node.item < root.item: if not root.left: root.left = node else: self.insert(root.left, node) else: if not root.right: root.right = node else: self.insert(root.right, node) def visit(self, node): print(node.item) def inorder(self, root): if root.left: self.inorder(root.left) self.visit(root) if root.right: self.inorder(root.right) def max_depth(self, root): # leaf node if not root: return 0 return 1 + max(self.max_depth(root.left), self.max_depth(root.right)) t = BinaryTree(Node(10)) t.insert(t.root, Node(11)) t.insert(t.root, Node(2)) t.insert(t.root, Node(-1)) t.insert(t.root, Node(7)) t.insert(t.root, Node(17)) t.inorder(t.root) print(t.max_depth(t.root))
class Node: def __init__(self, item): self.item = item self.left = None self.right = None class Binarytree: def __init__(self, root): self.root = root def insert(self, root, node): if node.item < root.item: if not root.left: root.left = node else: self.insert(root.left, node) elif not root.right: root.right = node else: self.insert(root.right, node) def visit(self, node): print(node.item) def inorder(self, root): if root.left: self.inorder(root.left) self.visit(root) if root.right: self.inorder(root.right) def max_depth(self, root): if not root: return 0 return 1 + max(self.max_depth(root.left), self.max_depth(root.right)) t = binary_tree(node(10)) t.insert(t.root, node(11)) t.insert(t.root, node(2)) t.insert(t.root, node(-1)) t.insert(t.root, node(7)) t.insert(t.root, node(17)) t.inorder(t.root) print(t.max_depth(t.root))
API_STAGE = 'dev' APP_FUNCTION = 'handler_for_events' APP_MODULE = 'tests.test_event_script_app' DEBUG = 'True' DJANGO_SETTINGS = None DOMAIN = 'api.example.com' ENVIRONMENT_VARIABLES = {} LOG_LEVEL = 'DEBUG' PROJECT_NAME = 'test_event_script_app' COGNITO_TRIGGER_MAPPING = {}
api_stage = 'dev' app_function = 'handler_for_events' app_module = 'tests.test_event_script_app' debug = 'True' django_settings = None domain = 'api.example.com' environment_variables = {} log_level = 'DEBUG' project_name = 'test_event_script_app' cognito_trigger_mapping = {}
AVAILABLE_OUTPUTS = [ (20, 'out 1'), (21, 'out 2') ]
available_outputs = [(20, 'out 1'), (21, 'out 2')]
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def isValidBST(self, root): def util(root, low, high): if not root: return True return low < root.val and root.val < high and util(root.left, low, root.val) and util(root.right, root.val, high) return util(root, -float("INF"), float("INF"))
class Treenode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def is_valid_bst(self, root): def util(root, low, high): if not root: return True return low < root.val and root.val < high and util(root.left, low, root.val) and util(root.right, root.val, high) return util(root, -float('INF'), float('INF'))
class Solution: def reverseVowels(self, s): """ :type s: str :rtype: str """ vow = ['a', 'e', 'i', 'o', 'u'] ch = [c for c in s] low, high = 0, len(ch) - 1 while low < high: while low < high and ch[low] not in vow: print("low") low += 1 while low < high and ch[high] not in vow: print("high") high -= 1 ch[low], ch[high] = ch[high], ch[low] low += 1 high -= 1 return ''.join(ch) s = Solution() s.reverseVowels('hello')
class Solution: def reverse_vowels(self, s): """ :type s: str :rtype: str """ vow = ['a', 'e', 'i', 'o', 'u'] ch = [c for c in s] (low, high) = (0, len(ch) - 1) while low < high: while low < high and ch[low] not in vow: print('low') low += 1 while low < high and ch[high] not in vow: print('high') high -= 1 (ch[low], ch[high]) = (ch[high], ch[low]) low += 1 high -= 1 return ''.join(ch) s = solution() s.reverseVowels('hello')
""" Copyright 2019 Islam Elnabarawy 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. """ __author__ = 'Islam Elnabarawy' def scale_range(x, x_range, y_range=(0.0, 1.0)): """ scale the number x from the range specified by x_range to the range specified by y_range :param x: the number to scale :type x: float :param x_range: the number range that x belongs to :type x_range: tuple :param y_range: the number range to convert x to, defaults to (0.0, 1.0) :type y_range: tuple :return: the scaled value :rtype: float """ x_min, x_max = x_range y_min, y_max = y_range return (y_max - y_min) * (x - x_min) / (x_max - x_min) + y_min def normalize(p, data_ranges): for i in range(len(p)): p[i] = scale_range(p[i], data_ranges[i]) def denormalize(p, data_ranges): for i in range(len(p)): p[i] = scale_range(p[i], x_range=(0.0, 1.0), y_range=data_ranges[i])
""" Copyright 2019 Islam Elnabarawy 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. """ __author__ = 'Islam Elnabarawy' def scale_range(x, x_range, y_range=(0.0, 1.0)): """ scale the number x from the range specified by x_range to the range specified by y_range :param x: the number to scale :type x: float :param x_range: the number range that x belongs to :type x_range: tuple :param y_range: the number range to convert x to, defaults to (0.0, 1.0) :type y_range: tuple :return: the scaled value :rtype: float """ (x_min, x_max) = x_range (y_min, y_max) = y_range return (y_max - y_min) * (x - x_min) / (x_max - x_min) + y_min def normalize(p, data_ranges): for i in range(len(p)): p[i] = scale_range(p[i], data_ranges[i]) def denormalize(p, data_ranges): for i in range(len(p)): p[i] = scale_range(p[i], x_range=(0.0, 1.0), y_range=data_ranges[i])
""" ID: tony_hu1 PROG: milk3 LANG: PYTHON3 """ filein = [] with open('milk3.in') as filename: for line in filename: filein.append(line.rstrip()) filein = filein[0].split(' ') a = int(filein[0]) b = int(filein[1]) c = int(filein[2]) list_possibilities = [[[False]*c]*b]*a m = get_possible(a,b,c) outstring = '' for i in range(len(m)-1): outstring = outstring + str(m[i]) + ' ' outstring += str(m[len(m)-1]) def get_possible(a,b,c): possible = [] if (a>=b and b>=c) or ( b>=a and a>=c): possible.append(0) possible.append(c) return possible if (a>=c and c>=b): possible.append(c) possible.append(c-b) ctemp = b while ctemp <= c: possible.append(ctemp) ctemp += b return list(set(possible)) if (b>=c and c>=a): possible.append(c) possible.append(0) btemp = a while btemp <= c: possible.append(btemp) possible.append(c-btemp) btemp += a return list(set(possible)) if (c>=b and b>=a): possible.append(c) possible.append(c-b) if c-b <= a: possible.append(b) temp = a while temp <= b: possible.append(c-b+temp) temp += a temp = a while temp <= c and c-temp <= b: possible.append(temp) temp += a temp = a while temp <= b: possible.append(c-temp) temp += a possible.sort() return list(set(possible)) def write_out(outfile,outstring): fout = open (outfile, 'w') fout.write(str(outstring)+'\n') print(outstring) write_out('milk3.out',milk3_main(read_in('milk3.in')))
""" ID: tony_hu1 PROG: milk3 LANG: PYTHON3 """ filein = [] with open('milk3.in') as filename: for line in filename: filein.append(line.rstrip()) filein = filein[0].split(' ') a = int(filein[0]) b = int(filein[1]) c = int(filein[2]) list_possibilities = [[[False] * c] * b] * a m = get_possible(a, b, c) outstring = '' for i in range(len(m) - 1): outstring = outstring + str(m[i]) + ' ' outstring += str(m[len(m) - 1]) def get_possible(a, b, c): possible = [] if a >= b and b >= c or (b >= a and a >= c): possible.append(0) possible.append(c) return possible if a >= c and c >= b: possible.append(c) possible.append(c - b) ctemp = b while ctemp <= c: possible.append(ctemp) ctemp += b return list(set(possible)) if b >= c and c >= a: possible.append(c) possible.append(0) btemp = a while btemp <= c: possible.append(btemp) possible.append(c - btemp) btemp += a return list(set(possible)) if c >= b and b >= a: possible.append(c) possible.append(c - b) if c - b <= a: possible.append(b) temp = a while temp <= b: possible.append(c - b + temp) temp += a temp = a while temp <= c and c - temp <= b: possible.append(temp) temp += a temp = a while temp <= b: possible.append(c - temp) temp += a possible.sort() return list(set(possible)) def write_out(outfile, outstring): fout = open(outfile, 'w') fout.write(str(outstring) + '\n') print(outstring) write_out('milk3.out', milk3_main(read_in('milk3.in')))
#input # 28 # RP PP RR PS RP # PR PP SR PS SS RR RS RP # PR SP PR RS RP PP RS # RP PS PS PR SS RR PP PR SP SP RR PR PS PS SP # RS PS RR PR RP PR RS SR SR RR PP PP SR RS RP # RR RR RR SP PR RP RR PP SP PS RR RS SP # SS RP RP PP SS RR RP PS SP RR RS SR RS RS SS PS # SR SP SR RP RP SS SP PP SS SS SS SS RP # SR PP RP PP RP SS SR PP RR RP # RR SS RP SR RP RP SS PP RR SS SP PR SS PR RS SR RP # PR SS PR SS SS PP RP RS # PR PP RS PR SP # RR PP RR RP RR RR RS PR RS RP RP RS # RR SR SR PS PR RP PP SS SS SP PR SR # PP SS PR RP SR RS SR PS # SR SS SP SS RR SR PR PR # RP RR RS PP SR PP SS PR PR SR SP PR PP SP # SP RP PP PP RS PR PS RR PR SP RS # SR PR PP SP RR SP SR RP PR # SS SS RR RS SP PR RP SP RR RS RP PS RS # PR PP SR PS RP # SR SR PR SR PR PP SS RP # RP SS PR PP RS PP RS RP PP RP PP SS SP PP PR # SP SS RR RP PS RS RS # PP SS RR RR SS SP RR SR RR RS RR SS PP RP PR # RP RS SP SS PS PS SS SR SS RS RR PS # RS RS RS SP RS PP SR RP SS PP SP # PP RP SS PS RP RS PR PR RR PS SP SP def convert_sign(s): if (s == 'R'): return 0 elif (s == 'P'): return 1 else: return 2 def winner(seq): a = convert_sign(seq[0]) b = convert_sign(seq[1]) res = (a - b + 3) % 3 if res == 0: return -1 elif res == 1: return 0 else: return 1 def check_winner(s): player = [0,0] for i in range(0, len(s)): win = winner(s[i]) if win != -1: player[win] += 1 if player[0] > player[1]: return 0 elif player[0] < player[1]: return 1 else: return -1 def main(): n = int(input()) for i in range(0, n): seq = input().split() winner = check_winner(seq) if winner == -1: return print(winner + 1, "", end="") if __name__ == "__main__": main()
def convert_sign(s): if s == 'R': return 0 elif s == 'P': return 1 else: return 2 def winner(seq): a = convert_sign(seq[0]) b = convert_sign(seq[1]) res = (a - b + 3) % 3 if res == 0: return -1 elif res == 1: return 0 else: return 1 def check_winner(s): player = [0, 0] for i in range(0, len(s)): win = winner(s[i]) if win != -1: player[win] += 1 if player[0] > player[1]: return 0 elif player[0] < player[1]: return 1 else: return -1 def main(): n = int(input()) for i in range(0, n): seq = input().split() winner = check_winner(seq) if winner == -1: return print(winner + 1, '', end='') if __name__ == '__main__': main()
"""Custom exceptions. All the exceptions raised by the code in avazu_ctr_prediction.* should derive from Avazu-Ctr-PredictionException """ class AvazuCtrPredictionException(Exception): """Mother class for common avazu_ctr_prediction exceptions.""" pass class MissingModelException(AvazuCtrPredictionException): """Exception raised when a parameter cannot be found in the configuration.""" pass class MissingConfigurationParamException(AvazuCtrPredictionException): """Exception raised when a parameter cannot be found in the configuration.""" pass
"""Custom exceptions. All the exceptions raised by the code in avazu_ctr_prediction.* should derive from Avazu-Ctr-PredictionException """ class Avazuctrpredictionexception(Exception): """Mother class for common avazu_ctr_prediction exceptions.""" pass class Missingmodelexception(AvazuCtrPredictionException): """Exception raised when a parameter cannot be found in the configuration.""" pass class Missingconfigurationparamexception(AvazuCtrPredictionException): """Exception raised when a parameter cannot be found in the configuration.""" pass
sum =0 n = 99 while n>0: sum = sum+n n=n-2 if n<10: break print(sum) #---------- for x in range(101): if x%2==0: continue else: print(x) #---------- y = 0 while True: print(y) y=y+1
sum = 0 n = 99 while n > 0: sum = sum + n n = n - 2 if n < 10: break print(sum) for x in range(101): if x % 2 == 0: continue else: print(x) y = 0 while True: print(y) y = y + 1
def imprimePorIdade(pDIct = dict()): sortedDict = sorted(pDIct.items(), key = lambda x: x[1], reverse=False) for i in sortedDict: print(i[0], i[1]) pass pass testDict = { "narto": 29, "leo": 13, "antonia": 45, "mimosa": 27, } imprimePorIdade(testDict)
def imprime_por_idade(pDIct=dict()): sorted_dict = sorted(pDIct.items(), key=lambda x: x[1], reverse=False) for i in sortedDict: print(i[0], i[1]) pass pass test_dict = {'narto': 29, 'leo': 13, 'antonia': 45, 'mimosa': 27} imprime_por_idade(testDict)
#sublist def sub_list(list): return list[1:3] result = sub_list([1,2,3,4,5]) print(result) #concatenation list1 = [1,2,4,5,6] list2 = [5,6,7,8,9] list3 = list1 + list2 print(list3) #traverse for element in list3: print(element) #list slicing def get_sublist(list): return [list[0:3], list[3:]] print(get_sublist([1,4,9,10,23])) print() #append at the end def append_to_end(list, num): list.append(num) return list result = append_to_end([1,2,4,5,6], 10) print(result) print() #average without using sum function def get_average(list): sum = 0 for element in list: sum += element return sum/len(list) print(get_average([1,2,3,4,5,6])) print() #average with sum function def get_average_with_sum_func(list): return sum(list)/len(list) result = get_average_with_sum_func([1,2,3,4,5,6]) print(result) print() #remove from list def remove_from_list(list, elements_to_remove): for element in elements_to_remove: list.remove(element) return list result = remove_from_list([1,2,3,4,5,6,7,8],[5,8]) print(result) print()
def sub_list(list): return list[1:3] result = sub_list([1, 2, 3, 4, 5]) print(result) list1 = [1, 2, 4, 5, 6] list2 = [5, 6, 7, 8, 9] list3 = list1 + list2 print(list3) for element in list3: print(element) def get_sublist(list): return [list[0:3], list[3:]] print(get_sublist([1, 4, 9, 10, 23])) print() def append_to_end(list, num): list.append(num) return list result = append_to_end([1, 2, 4, 5, 6], 10) print(result) print() def get_average(list): sum = 0 for element in list: sum += element return sum / len(list) print(get_average([1, 2, 3, 4, 5, 6])) print() def get_average_with_sum_func(list): return sum(list) / len(list) result = get_average_with_sum_func([1, 2, 3, 4, 5, 6]) print(result) print() def remove_from_list(list, elements_to_remove): for element in elements_to_remove: list.remove(element) return list result = remove_from_list([1, 2, 3, 4, 5, 6, 7, 8], [5, 8]) print(result) print()
# _*_ coding:utf-8 _*_ #!/usr/local/bin/python encrypted = [6,3,1,7,5,8,9,2,4] def decrypt(encryptedTxt): head = 0 tail = len(encryptedTxt)-1 decrypted = [] while len(encryptedTxt)>0: decrypted.append(encryptedTxt[0]) del encryptedTxt[0] print(encryptedTxt) if(len(encryptedTxt)<=0): break encryptedTxt.append(encryptedTxt[0]) del encryptedTxt[0] print(encryptedTxt) return decrypted if __name__ == "__main__": decrypted = decrypt(encrypted) print(decrypted)
encrypted = [6, 3, 1, 7, 5, 8, 9, 2, 4] def decrypt(encryptedTxt): head = 0 tail = len(encryptedTxt) - 1 decrypted = [] while len(encryptedTxt) > 0: decrypted.append(encryptedTxt[0]) del encryptedTxt[0] print(encryptedTxt) if len(encryptedTxt) <= 0: break encryptedTxt.append(encryptedTxt[0]) del encryptedTxt[0] print(encryptedTxt) return decrypted if __name__ == '__main__': decrypted = decrypt(encrypted) print(decrypted)
# https://www.codewars.com/kata/550554fd08b86f84fe000a58/train/python def in_array(array1, array2): result = [] array1 = list(set(array1)) for arr1_element in array1: for arr2_element in array2: if arr2_element.count(arr1_element) != 0: result.append(arr1_element) break return sorted(result)
def in_array(array1, array2): result = [] array1 = list(set(array1)) for arr1_element in array1: for arr2_element in array2: if arr2_element.count(arr1_element) != 0: result.append(arr1_element) break return sorted(result)
#!/usr/bin/python #https://practice.geeksforgeeks.org/problems/is-binary-number-multiple-of-3/0 def sol(x): """ If the diff. of even set bits and odd set bits is divisible by 3, then the number is divisible by 3 """ n = len(x) oddCount = 0 evenCount = 0 for i in range(n): if i%2 == 0: if x[i] == '1': evenCount += 1 else: if x[i] == '1': oddCount += 1 if abs(evenCount-oddCount)%3 == 0: return 1 return 0
def sol(x): """ If the diff. of even set bits and odd set bits is divisible by 3, then the number is divisible by 3 """ n = len(x) odd_count = 0 even_count = 0 for i in range(n): if i % 2 == 0: if x[i] == '1': even_count += 1 elif x[i] == '1': odd_count += 1 if abs(evenCount - oddCount) % 3 == 0: return 1 return 0
class MyCircularQueue: def __init__(self, k: int): self.q = [None] * k self.front_idx = -1 self.back_idx = -1 self.capacity = k def display_elements(self): print("The elements in the Queue are ") print_str = "" # add the elements to the print string for i in range(self.capacity): print_str += str(self.q[i]) + " " print(print_str) def enQueue(self, value: int) -> bool: # if the queue is full return false if self.isFull(): print("The queue is full..") return False # if the front index is negative, update its value to 0 if self.front_idx == -1: self.front_idx = 0 # increment the back index self.back_idx = (self.back_idx + 1) % self.capacity # update the queue value self.q[self.back_idx] = value return True def deQueue(self) -> bool: # if the queue is empty return false if self.front_idx == -1: print("The queue is empty..") return False self.q[self.front_idx] = None # if the front and back indices are the same reset the queue indices if self.front_idx == self.back_idx: self.front_idx = -1 self.back_idx = -1 else: # increment the front idx self.front_idx = (self.front_idx + 1) % self.capacity return True def Front(self) -> int: # if the front idx is -1 return -1 else the front value return -1 if self.front_idx == -1 else self.q[self.front_idx] def Rear(self) -> int: # if the rear idx is -1 return -1 else the back value return -1 if self.back_idx == -1 else self.q[self.back_idx] # check if queue is empty def isEmpty(self) -> bool: return self.front_idx == -1 # check if queue is full def isFull(self) -> bool: return (self.back_idx + 1) % self.capacity == self.front_idx def main(): Queue = MyCircularQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.display_elements() Queue.deQueue() Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.display_elements() print("The front element of the queue is " + str(Queue.Front())) print("The rear element of the queue is " + str(Queue.Rear())) Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() print("The front element of the queue is " + str(Queue.Front())) print("The rear element of the queue is " + str(Queue.Rear())) Queue.display_elements() if __name__ == "__main__": main()
class Mycircularqueue: def __init__(self, k: int): self.q = [None] * k self.front_idx = -1 self.back_idx = -1 self.capacity = k def display_elements(self): print('The elements in the Queue are ') print_str = '' for i in range(self.capacity): print_str += str(self.q[i]) + ' ' print(print_str) def en_queue(self, value: int) -> bool: if self.isFull(): print('The queue is full..') return False if self.front_idx == -1: self.front_idx = 0 self.back_idx = (self.back_idx + 1) % self.capacity self.q[self.back_idx] = value return True def de_queue(self) -> bool: if self.front_idx == -1: print('The queue is empty..') return False self.q[self.front_idx] = None if self.front_idx == self.back_idx: self.front_idx = -1 self.back_idx = -1 else: self.front_idx = (self.front_idx + 1) % self.capacity return True def front(self) -> int: return -1 if self.front_idx == -1 else self.q[self.front_idx] def rear(self) -> int: return -1 if self.back_idx == -1 else self.q[self.back_idx] def is_empty(self) -> bool: return self.front_idx == -1 def is_full(self) -> bool: return (self.back_idx + 1) % self.capacity == self.front_idx def main(): queue = my_circular_queue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.display_elements() Queue.deQueue() Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.enQueue(20) Queue.enQueue(10) Queue.display_elements() print('The front element of the queue is ' + str(Queue.Front())) print('The rear element of the queue is ' + str(Queue.Rear())) Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() Queue.deQueue() print('The front element of the queue is ' + str(Queue.Front())) print('The rear element of the queue is ' + str(Queue.Rear())) Queue.display_elements() if __name__ == '__main__': main()
def binary_search(search_val, search_list): midpoint = (len(search_list)-1) // 2 if search_val == search_list[midpoint]: return True elif len(search_list) == 1 and search_val != search_list[0]: return False elif search_val > search_list[midpoint]: return binary_search(search_val, search_list[midpoint:]) else: return binary_search(search_val, search_list[:midpoint]) def main(): test_list = [7, 1, 16, 100, 5, 8, 101, 2, 6, 1560] test_list_sorted = sorted(test_list) search_val = 101 print(binary_search(search_val, test_list_sorted)) if __name__ == "__main__": main()
def binary_search(search_val, search_list): midpoint = (len(search_list) - 1) // 2 if search_val == search_list[midpoint]: return True elif len(search_list) == 1 and search_val != search_list[0]: return False elif search_val > search_list[midpoint]: return binary_search(search_val, search_list[midpoint:]) else: return binary_search(search_val, search_list[:midpoint]) def main(): test_list = [7, 1, 16, 100, 5, 8, 101, 2, 6, 1560] test_list_sorted = sorted(test_list) search_val = 101 print(binary_search(search_val, test_list_sorted)) if __name__ == '__main__': main()
class CachedAccessor: def __init__(self, name, accessor): self._name = name self._accessor = accessor def __get__(self, obj, cls): if obj is None: return self._accessor accessor_obj = self._accessor(obj) setattr(obj, self._name, accessor_obj) return accessor_obj class Example: """test class""" def __init__(self, data): self._data = data def register_accessor(name): def func(accessor): setattr(Example, name, CachedAccessor(name, accessor)) return accessor return func @register_accessor("test") class TestAccessor: """an accessor of Example""" def __init__(self, obj): self._obj = obj def __call__(self, other): """check for equality Parameters ---------- other The value to compare to Returns ------- result : bool """ return self._obj._data == other @property def double(self): """double the data""" return self.multiply(2) def multiply(self, factor): """multiply data with a factor Parameters ---------- factor : int The factor for the multiplication """ return self._obj._data * factor class SubAccessor: def __init__(self, obj): self._obj = obj def func(self, a): """namespaced function""" print(self._obj, a) @register_accessor("test2") class Test2Accessor: """an accessor of Example""" sub = CachedAccessor("sub", SubAccessor) def __init__(self, obj): self._obj = obj
class Cachedaccessor: def __init__(self, name, accessor): self._name = name self._accessor = accessor def __get__(self, obj, cls): if obj is None: return self._accessor accessor_obj = self._accessor(obj) setattr(obj, self._name, accessor_obj) return accessor_obj class Example: """test class""" def __init__(self, data): self._data = data def register_accessor(name): def func(accessor): setattr(Example, name, cached_accessor(name, accessor)) return accessor return func @register_accessor('test') class Testaccessor: """an accessor of Example""" def __init__(self, obj): self._obj = obj def __call__(self, other): """check for equality Parameters ---------- other The value to compare to Returns ------- result : bool """ return self._obj._data == other @property def double(self): """double the data""" return self.multiply(2) def multiply(self, factor): """multiply data with a factor Parameters ---------- factor : int The factor for the multiplication """ return self._obj._data * factor class Subaccessor: def __init__(self, obj): self._obj = obj def func(self, a): """namespaced function""" print(self._obj, a) @register_accessor('test2') class Test2Accessor: """an accessor of Example""" sub = cached_accessor('sub', SubAccessor) def __init__(self, obj): self._obj = obj
matrix = [[0,0,0], [0,0,0], [0,0,0]] for l in range(0,3): for c in range(0,3): matrix[l][c] = int(input(f'digite um numero [{l}][{c}]: ')) print('-='*30) for l in range(0,3): for c in range(0,3): print(f'[{matrix[l][c]:^5}]', end='') print()
matrix = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] for l in range(0, 3): for c in range(0, 3): matrix[l][c] = int(input(f'digite um numero [{l}][{c}]: ')) print('-=' * 30) for l in range(0, 3): for c in range(0, 3): print(f'[{matrix[l][c]:^5}]', end='') print()
# -*- coding: utf-8 -*- # Scrapy settings for FinalProject project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/topics/downloader-middleware.html # http://scrapy.readthedocs.org/en/latest/topics/spider-middleware.html BOT_NAME = 'FinalProject' SPIDER_MODULES = ['FinalProject.spiders'] NEWSPIDER_MODULE = 'FinalProject.spiders' # database connection parameters DBKWARGS = {'db': 'final_project', 'user': 'root', 'passwd': '', 'host': 'localhost', 'use_unicode': False, 'charset': 'utf8'} DB_TABLE = 'HouseRent_58' CRAWLERA_ENABLED = True CRAWLERA_APIKEY = '0ccaed0e66654294baf419f03c32344d' # CRAWLERA_PRESERVE_DELAY = True # Retry many times since proxies often fail RETRY_TIMES = 10 # Retry on most error codes since proxies fail for different reasons RETRY_HTTP_CODES = [500, 503, 504, 400, 403, 404, 408, 301, 302, 429] # Proxy list containing entries like # http://host1:port # http://username:password@host2:port # http://host3:port # ... PROXY_LIST = 'proxies.txt' # Proxy mode # 0 = Every requests have different proxy # 1 = Take only one proxy from the list and assign it to every requests # 2 = Put a custom proxy to use in the settings PROXY_MODE = 0 # Crawl responsibly by identifying yourself (and your website) on the user-agent USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36" USER_AGENTS = [ "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AcooBrowser; .NET CLR 1.1.4322; .NET CLR 2.0.50727)", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)", "Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.5; AOLBuild 4337.35; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)", "Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 2.0.50727; Media Center PC 6.0)", "Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322)", "Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)", "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN) AppleWebKit/523.15 (KHTML, like Gecko, Safari/419.3) Arora/0.3 (Change: 287 c9dfb30)", "Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/527+ (KHTML, like Gecko, Safari/419.3) Arora/0.6", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070215 K-Ninja/2.1.1", "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/20080705 Firefox/3.0 Kapiko/3.0", "Mozilla/5.0 (X11; Linux i686; U;) Gecko/20070322 Kazehakase/0.4.5", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Fedora/1.9.0.8-1.fc10 Kazehakase/0.5.6", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.20 (KHTML, like Gecko) Chrome/19.0.1036.7 Safari/535.20", "Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52", ] # Obey robots.txt rules # ROBOTSTXT_OBEY = True # Configure maximum concurrent requests performed by Scrapy (default: 16) # CONCURRENT_REQUESTS = 32 # Configure a delay for requests for the same website (default: 0) # See http://scrapy.readthedocs.org/en/latest/topics/settings.html#download-delay # See also autothrottle settings and docs # DOWNLOAD_DELAY = 1 # RANDOMIZE_DOWNLOAD_DELAY = True # The download delay setting will honor only one of: # CONCURRENT_REQUESTS_PER_DOMAIN = 16 # CONCURRENT_REQUESTS_PER_IP = 16 # Disable cookies (enabled by default) # COOKIES_ENABLED = False # Disable Telnet Console (enabled by default) # TELNETCONSOLE_ENABLED = False # Override the default request headers: # DEFAULT_REQUEST_HEADERS = { # 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', # 'Accept-Language': 'en', # } # Enable or disable spider middlewares # See http://scrapy.readthedocs.org/en/latest/topics/spider-middleware.html # SPIDER_MIDDLEWARES = { # 'FinalProject.middlewares.FinalprojectSpiderMiddleware': 543, # } # Enable or disable downloader middlewares # See http://scrapy.readthedocs.org/en/latest/topics/downloader-middleware.html DOWNLOADER_MIDDLEWARES = { # 'scrapy.downloadermiddlewares.retry.RetryMiddleware': 90, # 'FinalProject.middlewares.RandomProxy': 100, # 'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware': 110, # 'FinalProject.middlewares.RandomUserAgent': 120, 'FinalProject.middlewares.CustomDownloaderMiddleware': 200, 'scrapy_crawlera.CrawleraMiddleware': 610 } # Enable or disable extensions # See http://scrapy.readthedocs.org/en/latest/topics/extensions.html # EXTENSIONS = { # 'scrapy.extensions.telnet.TelnetConsole': None, # } # Configure item pipelines # See http://scrapy.readthedocs.org/en/latest/topics/item-pipeline.html ITEM_PIPELINES = { # 'FinalProject.pipelines.CSVPipeline': 1000, 'FinalProject.pipelines.MysqlPipeline': 1000, } # Enable and configure the AutoThrottle extension (disabled by default) # See http://doc.scrapy.org/en/latest/topics/autothrottle.html # AUTOTHROTTLE_ENABLED = True # The initial download delay # AUTOTHROTTLE_START_DELAY = 5 # The maximum download delay to be set in case of high latencies # AUTOTHROTTLE_MAX_DELAY = 60 # The average number of requests Scrapy should be sending in parallel to # each remote server # AUTOTHROTTLE_TARGET_CONCURRENCY = 1.0 # Enable showing throttling stats for every response received: # AUTOTHROTTLE_DEBUG = False # Enable and configure HTTP caching (disabled by default) # See http://scrapy.readthedocs.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings # HTTPCACHE_ENABLED = True # HTTPCACHE_EXPIRATION_SECS = 0 # HTTPCACHE_DIR = 'httpcache' # HTTPCACHE_IGNORE_HTTP_CODES = [] # HTTPCACHE_STORAGE = 'scrapy.extensions.httpcache.FilesystemCacheStorage'
bot_name = 'FinalProject' spider_modules = ['FinalProject.spiders'] newspider_module = 'FinalProject.spiders' dbkwargs = {'db': 'final_project', 'user': 'root', 'passwd': '', 'host': 'localhost', 'use_unicode': False, 'charset': 'utf8'} db_table = 'HouseRent_58' crawlera_enabled = True crawlera_apikey = '0ccaed0e66654294baf419f03c32344d' retry_times = 10 retry_http_codes = [500, 503, 504, 400, 403, 404, 408, 301, 302, 429] proxy_list = 'proxies.txt' proxy_mode = 0 user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36' user_agents = ['Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AcooBrowser; .NET CLR 1.1.4322; .NET CLR 2.0.50727)', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)', 'Mozilla/4.0 (compatible; MSIE 7.0; AOL 9.5; AOLBuild 4337.35; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)', 'Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 2.0.50727; Media Center PC 6.0)', 'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.0.3705; .NET CLR 1.1.4322)', 'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30)', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN) AppleWebKit/523.15 (KHTML, like Gecko, Safari/419.3) Arora/0.3 (Change: 287 c9dfb30)', 'Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/527+ (KHTML, like Gecko, Safari/419.3) Arora/0.6', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070215 K-Ninja/2.1.1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9) Gecko/20080705 Firefox/3.0 Kapiko/3.0', 'Mozilla/5.0 (X11; Linux i686; U;) Gecko/20070322 Kazehakase/0.4.5', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Fedora/1.9.0.8-1.fc10 Kazehakase/0.5.6', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.20 (KHTML, like Gecko) Chrome/19.0.1036.7 Safari/535.20', 'Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52'] downloader_middlewares = {'FinalProject.middlewares.CustomDownloaderMiddleware': 200, 'scrapy_crawlera.CrawleraMiddleware': 610} item_pipelines = {'FinalProject.pipelines.MysqlPipeline': 1000}
def _try_composite(a, d, n, s): if pow(a, d, n) == 1: return False for i in range(s): if pow(a, 2**i * d, n) == n - 1: return False return True def is_prime(n): """ Deterministic variant of the Miller-Rabin primality test to determine whether a given number is prime. Parameters ---------- n : int n >= 0, an integer to be tested for primality. Returns ------- bool False if n is composite, otherwise True. """ if n in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]: return True if (any((n % p) == 0 for p in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37])) or (n in [0, 1]): return False d, s = n - 1, 0 while not d % 2: d, s = d >> 1, s + 1 if n < 2047: return not _try_composite(2, d, n, s) if n < 1373653: return not any(_try_composite(a, d, n, s) for a in [2, 3]) if n < 25326001: return not any(_try_composite(a, d, n, s) for a in [2, 3, 5]) if n < 118670087467: if n == 3215031751: return False return not any(_try_composite(a, d, n, s) for a in [2, 3, 5, 7]) if n < 2152302898747: return not any(_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11]) if n < 3474749660383: return not any(_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11, 13]) if n < 341550071728321: return not any(_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11, 13, 17]) if n < 3825123056546413051: return not any(_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11, 13, 17, 19, 23]) return not any(_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37])
def _try_composite(a, d, n, s): if pow(a, d, n) == 1: return False for i in range(s): if pow(a, 2 ** i * d, n) == n - 1: return False return True def is_prime(n): """ Deterministic variant of the Miller-Rabin primality test to determine whether a given number is prime. Parameters ---------- n : int n >= 0, an integer to be tested for primality. Returns ------- bool False if n is composite, otherwise True. """ if n in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]: return True if any((n % p == 0 for p in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37])) or n in [0, 1]: return False (d, s) = (n - 1, 0) while not d % 2: (d, s) = (d >> 1, s + 1) if n < 2047: return not _try_composite(2, d, n, s) if n < 1373653: return not any((_try_composite(a, d, n, s) for a in [2, 3])) if n < 25326001: return not any((_try_composite(a, d, n, s) for a in [2, 3, 5])) if n < 118670087467: if n == 3215031751: return False return not any((_try_composite(a, d, n, s) for a in [2, 3, 5, 7])) if n < 2152302898747: return not any((_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11])) if n < 3474749660383: return not any((_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11, 13])) if n < 341550071728321: return not any((_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11, 13, 17])) if n < 3825123056546413051: return not any((_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11, 13, 17, 19, 23])) return not any((_try_composite(a, d, n, s) for a in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]))
class Solution: def stringMatching(self, words: List[str]) -> List[str]: words.sort(key=len) res = [] lps = [self._compute_lps(w) for w in words[:-1]] for i in range(len(words)): for j in range(i + 1, len(words)): if self._kmp(words[i], words[j], lps[i]): res.append(words[i]) break return res def _kmp(self, w, s, lps): i, j = 0, 0 c = 0 while i < len(s): if s[i] == w[j]: i += 1 j += 1 if j == len(w): return True else: if j != 0: j = lps[j-1] else: i += 1 return False def _compute_lps(self, w): n = len(w) lps = [0] * n i = 1 p = 0 while i < n: if w[i] == w[p]: p += 1 lps[i] = p i += 1 else: if p != 0: p = lps[p-1] else: p = 0 i += 1 return lps
class Solution: def string_matching(self, words: List[str]) -> List[str]: words.sort(key=len) res = [] lps = [self._compute_lps(w) for w in words[:-1]] for i in range(len(words)): for j in range(i + 1, len(words)): if self._kmp(words[i], words[j], lps[i]): res.append(words[i]) break return res def _kmp(self, w, s, lps): (i, j) = (0, 0) c = 0 while i < len(s): if s[i] == w[j]: i += 1 j += 1 if j == len(w): return True elif j != 0: j = lps[j - 1] else: i += 1 return False def _compute_lps(self, w): n = len(w) lps = [0] * n i = 1 p = 0 while i < n: if w[i] == w[p]: p += 1 lps[i] = p i += 1 elif p != 0: p = lps[p - 1] else: p = 0 i += 1 return lps
def get_users(passwd: str) -> dict: """Split password output by newline, extract user and name (1st and 5th columns), strip trailing commas from name, replace multiple commas in name with a single space return dict of keys = user, values = name. """ output = {} for line in passwd.strip().splitlines(): user, name = line.split(":")[0], line.split(":")[4] name = name.rstrip(",").replace(",,,,", " ") if name else "unknown" output[user] = name return output
def get_users(passwd: str) -> dict: """Split password output by newline, extract user and name (1st and 5th columns), strip trailing commas from name, replace multiple commas in name with a single space return dict of keys = user, values = name. """ output = {} for line in passwd.strip().splitlines(): (user, name) = (line.split(':')[0], line.split(':')[4]) name = name.rstrip(',').replace(',,,,', ' ') if name else 'unknown' output[user] = name return output
def char_concat(word): string = '' for i in range(int(len(word)/2)): string += word[i] + word[-i-1] + str(i+1) return string
def char_concat(word): string = '' for i in range(int(len(word) / 2)): string += word[i] + word[-i - 1] + str(i + 1) return string
def transcribe(seq: str) -> str: """ transcribes DNA to RNA by generating the complement sequence with T -> U replacement """ rna="" for i in seq: if i not in 'ATGC': rna = "Invalid Input" ##only accepts ATGC as a input break ##builds a rna string by concataning each letter if i == 'A': rna += 'U' elif i == 'C': rna += 'G' elif i == 'T': rna += 'A' else: rna += 'C' return(rna) def reverse_transcribe(seq: str) -> str: """ transcribes DNA to RNA then reverses the strand """ ##calls trasncribe function ## Then reverse the string using slicing reverse=transcribe(seq) reverse=reverse[::-1] return(reverse)
def transcribe(seq: str) -> str: """ transcribes DNA to RNA by generating the complement sequence with T -> U replacement """ rna = '' for i in seq: if i not in 'ATGC': rna = 'Invalid Input' break if i == 'A': rna += 'U' elif i == 'C': rna += 'G' elif i == 'T': rna += 'A' else: rna += 'C' return rna def reverse_transcribe(seq: str) -> str: """ transcribes DNA to RNA then reverses the strand """ reverse = transcribe(seq) reverse = reverse[::-1] return reverse
class KdcVendor(basestring): """ Kerberos Key Distribution Center (KDC) Vendor Possible values: <ul> <li> "microsoft" , <li> "other" </ul> """ @staticmethod def get_api_name(): return "kdc-vendor"
class Kdcvendor(basestring): """ Kerberos Key Distribution Center (KDC) Vendor Possible values: <ul> <li> "microsoft" , <li> "other" </ul> """ @staticmethod def get_api_name(): return 'kdc-vendor'
def test_chain_web3_is_preconfigured_with_default_from(project): default_account = '0x0000000000000000000000000000000000001234' project.config['web3.Tester.eth.default_account'] = default_account with project.get_chain('tester') as chain: web3 = chain.web3 assert web3.eth.defaultAccount == default_account assert web3.eth.coinbase != default_account
def test_chain_web3_is_preconfigured_with_default_from(project): default_account = '0x0000000000000000000000000000000000001234' project.config['web3.Tester.eth.default_account'] = default_account with project.get_chain('tester') as chain: web3 = chain.web3 assert web3.eth.defaultAccount == default_account assert web3.eth.coinbase != default_account
#Ascending order n = int(input().strip()) a = list(map(int, input().strip().split(' '))) for i in range(n): for j in range(n-1): if(a[j]>a[j+1]): a[j],a[j+1]=a[j+1],a[j] print(a) #Descending order Data = [75,3,73,7,6,23,89,8] for i in range(len(Data)): for j in range(len(Data)-1): if(Data[j]<Data[j+1]): Data[j],Data[j+1]=Data[j+1],Data[j] print(Data)
n = int(input().strip()) a = list(map(int, input().strip().split(' '))) for i in range(n): for j in range(n - 1): if a[j] > a[j + 1]: (a[j], a[j + 1]) = (a[j + 1], a[j]) print(a) data = [75, 3, 73, 7, 6, 23, 89, 8] for i in range(len(Data)): for j in range(len(Data) - 1): if Data[j] < Data[j + 1]: (Data[j], Data[j + 1]) = (Data[j + 1], Data[j]) print(Data)
class Solution: def letterCasePermutation(self, S: str) -> List[str]: ans = [] self.dfs(S, 0, ans, []) return ans def dfs(self, S, i, ans, path): if i == len(S): ans.append(''.join(path)) return self.dfs(S, i+1, ans, path + [S[i]]) if S[i].isalpha(): self.dfs(S, i+1, ans, path + [S[i].swapcase()])
class Solution: def letter_case_permutation(self, S: str) -> List[str]: ans = [] self.dfs(S, 0, ans, []) return ans def dfs(self, S, i, ans, path): if i == len(S): ans.append(''.join(path)) return self.dfs(S, i + 1, ans, path + [S[i]]) if S[i].isalpha(): self.dfs(S, i + 1, ans, path + [S[i].swapcase()])
# Copyright (c) 2013-2017 by Ron Frederick <ronf@timeheart.net>. # All rights reserved. # # This program and the accompanying materials are made available under # the terms of the Eclipse Public License v1.0 which accompanies this # distribution and is available at: # # http://www.eclipse.org/legal/epl-v10.html # # Contributors: # Ron Frederick - initial implementation, API, and documentation """SSH client protocol handler""" class SSHClient: """SSH client protocol handler Applications should subclass this when implementing an SSH client. The functions listed below should be overridden to define application-specific behavior. In particular, the method :meth:`auth_completed` should be defined to open the desired SSH channels on this connection once authentication has been completed. For simple password or public key based authentication, nothing needs to be defined here if the password or client keys are passed in when the connection is created. However, to prompt interactively or otherwise dynamically select these values, the methods :meth:`password_auth_requested` and/or :meth:`public_key_auth_requested` can be defined. Keyboard-interactive authentication is also supported via :meth:`kbdint_auth_requested` and :meth:`kbdint_challenge_received`. If the server sends an authentication banner, the method :meth:`auth_banner_received` will be called. If the server requires a password change, the method :meth:`password_change_requested` will be called, followed by either :meth:`password_changed` or :meth:`password_change_failed` depending on whether the password change is successful. .. note:: The authentication callbacks described here can be defined as coroutines. However, they may be cancelled if they are running when the SSH connection is closed by the server. If they attempt to catch the CancelledError exception to perform cleanup, they should make sure to re-raise it to allow AsyncSSH to finish its own cleanup. """ # pylint: disable=no-self-use,unused-argument def connection_made(self, conn): """Called when a connection is made This method is called as soon as the TCP connection completes. The `conn` parameter should be stored if needed for later use. :param conn: The connection which was successfully opened :type conn: :class:`SSHClientConnection` """ pass # pragma: no cover def connection_lost(self, exc): """Called when a connection is lost or closed This method is called when a connection is closed. If the connection is shut down cleanly, *exc* will be `None`. Otherwise, it will be an exception explaining the reason for the disconnect. :param exc: The exception which caused the connection to close, or `None` if the connection closed cleanly :type exc: :class:`Exception` """ pass # pragma: no cover def debug_msg_received(self, msg, lang, always_display): """A debug message was received on this connection This method is called when the other end of the connection sends a debug message. Applications should implement this method if they wish to process these debug messages. :param msg: The debug message sent :param lang: The language the message is in :param always_display: Whether or not to display the message :type msg: `str` :type lang: `str` :type always_display: `bool` """ pass # pragma: no cover def auth_banner_received(self, msg, lang): """An incoming authentication banner was received This method is called when the server sends a banner to display during authentication. Applications should implement this method if they wish to do something with the banner. :param msg: The message the server wanted to display :param lang: The language the message is in :type msg: `str` :type lang: `str` """ pass # pragma: no cover def auth_completed(self): """Authentication was completed successfully This method is called when authentication has completed succesfully. Applications may use this method to create whatever client sessions and direct TCP/IP or UNIX domain connections are needed and/or set up listeners for incoming TCP/IP or UNIX domain connections coming from the server. """ pass # pragma: no cover def public_key_auth_requested(self): """Public key authentication has been requested This method should return a private key corresponding to the user that authentication is being attempted for. This method may be called multiple times and can return a different key to try each time it is called. When there are no keys left to try, it should return `None` to indicate that some other authentication method should be tried. If client keys were provided when the connection was opened, they will be tried before this method is called. If blocking operations need to be performed to determine the key to authenticate with, this method may be defined as a coroutine. :returns: A key as described in :ref:`SpecifyingPrivateKeys` or `None` to move on to another authentication method """ return None # pragma: no cover def password_auth_requested(self): """Password authentication has been requested This method should return a string containing the password corresponding to the user that authentication is being attempted for. It may be called multiple times and can return a different password to try each time, but most servers have a limit on the number of attempts allowed. When there's no password left to try, this method should return `None` to indicate that some other authentication method should be tried. If a password was provided when the connection was opened, it will be tried before this method is called. If blocking operations need to be performed to determine the password to authenticate with, this method may be defined as a coroutine. :returns: A string containing the password to authenticate with or `None` to move on to another authentication method """ return None # pragma: no cover def password_change_requested(self, prompt, lang): """A password change has been requested This method is called when password authentication was attempted and the user's password was expired on the server. To request a password change, this method should return a tuple or two strings containing the old and new passwords. Otherwise, it should return `NotImplemented`. If blocking operations need to be performed to determine the passwords to authenticate with, this method may be defined as a coroutine. By default, this method returns `NotImplemented`. :param prompt: The prompt requesting that the user enter a new password :param lang: The language that the prompt is in :type prompt: `str` :type lang: `str` :returns: A tuple of two strings containing the old and new passwords or `NotImplemented` if password changes aren't supported """ return NotImplemented # pragma: no cover def password_changed(self): """The requested password change was successful This method is called to indicate that a requested password change was successful. It is generally followed by a call to :meth:`auth_completed` since this means authentication was also successful. """ pass # pragma: no cover def password_change_failed(self): """The requested password change has failed This method is called to indicate that a requested password change failed, generally because the requested new password doesn't meet the password criteria on the remote system. After this method is called, other forms of authentication will automatically be attempted. """ pass # pragma: no cover def kbdint_auth_requested(self): """Keyboard-interactive authentication has been requested This method should return a string containing a comma-separated list of submethods that the server should use for keyboard-interactive authentication. An empty string can be returned to let the server pick the type of keyboard-interactive authentication to perform. If keyboard-interactive authentication is not supported, `None` should be returned. By default, keyboard-interactive authentication is supported if a password was provided when the :class:`SSHClient` was created and it hasn't been sent yet. If the challenge is not a password challenge, this authentication will fail. This method and the :meth:`kbdint_challenge_received` method can be overridden if other forms of challenge should be supported. If blocking operations need to be performed to determine the submethods to request, this method may be defined as a coroutine. :returns: A string containing the submethods the server should use for authentication or `None` to move on to another authentication method """ return NotImplemented # pragma: no cover def kbdint_challenge_received(self, name, instructions, lang, prompts): """A keyboard-interactive auth challenge has been received This method is called when the server sends a keyboard-interactive authentication challenge. The return value should be a list of strings of the same length as the number of prompts provided if the challenge can be answered, or `None` to indicate that some other form of authentication should be attempted. If blocking operations need to be performed to determine the responses to authenticate with, this method may be defined as a coroutine. By default, this method will look for a challenge consisting of a single 'Password:' prompt, and call the method :meth:`password_auth_requested` to provide the response. It will also ignore challenges with no prompts (generally used to provide instructions). Any other form of challenge will cause this method to return `None` to move on to another authentication method. :param name: The name of the challenge :param instructions: Instructions to the user about how to respond to the challenge :param lang: The language the challenge is in :param prompts: The challenges the user should respond to and whether or not the responses should be echoed when they are entered :type name: `str` :type instructions: `str` :type lang: `str` :type prompts: `list` of tuples of `str` and `bool` :returns: List of string responses to the challenge or `None` to move on to another authentication method """ return None # pragma: no cover
"""SSH client protocol handler""" class Sshclient: """SSH client protocol handler Applications should subclass this when implementing an SSH client. The functions listed below should be overridden to define application-specific behavior. In particular, the method :meth:`auth_completed` should be defined to open the desired SSH channels on this connection once authentication has been completed. For simple password or public key based authentication, nothing needs to be defined here if the password or client keys are passed in when the connection is created. However, to prompt interactively or otherwise dynamically select these values, the methods :meth:`password_auth_requested` and/or :meth:`public_key_auth_requested` can be defined. Keyboard-interactive authentication is also supported via :meth:`kbdint_auth_requested` and :meth:`kbdint_challenge_received`. If the server sends an authentication banner, the method :meth:`auth_banner_received` will be called. If the server requires a password change, the method :meth:`password_change_requested` will be called, followed by either :meth:`password_changed` or :meth:`password_change_failed` depending on whether the password change is successful. .. note:: The authentication callbacks described here can be defined as coroutines. However, they may be cancelled if they are running when the SSH connection is closed by the server. If they attempt to catch the CancelledError exception to perform cleanup, they should make sure to re-raise it to allow AsyncSSH to finish its own cleanup. """ def connection_made(self, conn): """Called when a connection is made This method is called as soon as the TCP connection completes. The `conn` parameter should be stored if needed for later use. :param conn: The connection which was successfully opened :type conn: :class:`SSHClientConnection` """ pass def connection_lost(self, exc): """Called when a connection is lost or closed This method is called when a connection is closed. If the connection is shut down cleanly, *exc* will be `None`. Otherwise, it will be an exception explaining the reason for the disconnect. :param exc: The exception which caused the connection to close, or `None` if the connection closed cleanly :type exc: :class:`Exception` """ pass def debug_msg_received(self, msg, lang, always_display): """A debug message was received on this connection This method is called when the other end of the connection sends a debug message. Applications should implement this method if they wish to process these debug messages. :param msg: The debug message sent :param lang: The language the message is in :param always_display: Whether or not to display the message :type msg: `str` :type lang: `str` :type always_display: `bool` """ pass def auth_banner_received(self, msg, lang): """An incoming authentication banner was received This method is called when the server sends a banner to display during authentication. Applications should implement this method if they wish to do something with the banner. :param msg: The message the server wanted to display :param lang: The language the message is in :type msg: `str` :type lang: `str` """ pass def auth_completed(self): """Authentication was completed successfully This method is called when authentication has completed succesfully. Applications may use this method to create whatever client sessions and direct TCP/IP or UNIX domain connections are needed and/or set up listeners for incoming TCP/IP or UNIX domain connections coming from the server. """ pass def public_key_auth_requested(self): """Public key authentication has been requested This method should return a private key corresponding to the user that authentication is being attempted for. This method may be called multiple times and can return a different key to try each time it is called. When there are no keys left to try, it should return `None` to indicate that some other authentication method should be tried. If client keys were provided when the connection was opened, they will be tried before this method is called. If blocking operations need to be performed to determine the key to authenticate with, this method may be defined as a coroutine. :returns: A key as described in :ref:`SpecifyingPrivateKeys` or `None` to move on to another authentication method """ return None def password_auth_requested(self): """Password authentication has been requested This method should return a string containing the password corresponding to the user that authentication is being attempted for. It may be called multiple times and can return a different password to try each time, but most servers have a limit on the number of attempts allowed. When there's no password left to try, this method should return `None` to indicate that some other authentication method should be tried. If a password was provided when the connection was opened, it will be tried before this method is called. If blocking operations need to be performed to determine the password to authenticate with, this method may be defined as a coroutine. :returns: A string containing the password to authenticate with or `None` to move on to another authentication method """ return None def password_change_requested(self, prompt, lang): """A password change has been requested This method is called when password authentication was attempted and the user's password was expired on the server. To request a password change, this method should return a tuple or two strings containing the old and new passwords. Otherwise, it should return `NotImplemented`. If blocking operations need to be performed to determine the passwords to authenticate with, this method may be defined as a coroutine. By default, this method returns `NotImplemented`. :param prompt: The prompt requesting that the user enter a new password :param lang: The language that the prompt is in :type prompt: `str` :type lang: `str` :returns: A tuple of two strings containing the old and new passwords or `NotImplemented` if password changes aren't supported """ return NotImplemented def password_changed(self): """The requested password change was successful This method is called to indicate that a requested password change was successful. It is generally followed by a call to :meth:`auth_completed` since this means authentication was also successful. """ pass def password_change_failed(self): """The requested password change has failed This method is called to indicate that a requested password change failed, generally because the requested new password doesn't meet the password criteria on the remote system. After this method is called, other forms of authentication will automatically be attempted. """ pass def kbdint_auth_requested(self): """Keyboard-interactive authentication has been requested This method should return a string containing a comma-separated list of submethods that the server should use for keyboard-interactive authentication. An empty string can be returned to let the server pick the type of keyboard-interactive authentication to perform. If keyboard-interactive authentication is not supported, `None` should be returned. By default, keyboard-interactive authentication is supported if a password was provided when the :class:`SSHClient` was created and it hasn't been sent yet. If the challenge is not a password challenge, this authentication will fail. This method and the :meth:`kbdint_challenge_received` method can be overridden if other forms of challenge should be supported. If blocking operations need to be performed to determine the submethods to request, this method may be defined as a coroutine. :returns: A string containing the submethods the server should use for authentication or `None` to move on to another authentication method """ return NotImplemented def kbdint_challenge_received(self, name, instructions, lang, prompts): """A keyboard-interactive auth challenge has been received This method is called when the server sends a keyboard-interactive authentication challenge. The return value should be a list of strings of the same length as the number of prompts provided if the challenge can be answered, or `None` to indicate that some other form of authentication should be attempted. If blocking operations need to be performed to determine the responses to authenticate with, this method may be defined as a coroutine. By default, this method will look for a challenge consisting of a single 'Password:' prompt, and call the method :meth:`password_auth_requested` to provide the response. It will also ignore challenges with no prompts (generally used to provide instructions). Any other form of challenge will cause this method to return `None` to move on to another authentication method. :param name: The name of the challenge :param instructions: Instructions to the user about how to respond to the challenge :param lang: The language the challenge is in :param prompts: The challenges the user should respond to and whether or not the responses should be echoed when they are entered :type name: `str` :type instructions: `str` :type lang: `str` :type prompts: `list` of tuples of `str` and `bool` :returns: List of string responses to the challenge or `None` to move on to another authentication method """ return None
#!/usr/bin/env python3 def validate_user(username, minlen): if type(username) != str: raise TypeError("username must be a string") if len(username) < minlen: return False if not username.isalnum(): return False # Username can't begin with a number if username[0].isnumeric(): return False return True
def validate_user(username, minlen): if type(username) != str: raise type_error('username must be a string') if len(username) < minlen: return False if not username.isalnum(): return False if username[0].isnumeric(): return False return True
# Get balances queries LIQUIDITY_POSITIONS_QUERY = ( """ liquidityPositions ( first: $limit, skip: $offset, where: {{ user_in: $addresses, liquidityTokenBalance_gt: $balance, }}) {{ id liquidityTokenBalance pair {{ id reserve0 reserve1 token0 {{ id decimals name symbol }} token1 {{ id decimals name symbol }} totalSupply }} user {{ id }} }}}} """ ) TOKEN_DAY_DATAS_QUERY = ( """ tokenDayDatas ( first: $limit, skip: $offset, where: {{ token_in: $token_ids, date: $datetime, }}) {{ date token {{ id }} priceUSD }}}} """ )
liquidity_positions_query = '\n liquidityPositions\n (\n first: $limit,\n skip: $offset,\n where: {{\n user_in: $addresses,\n liquidityTokenBalance_gt: $balance,\n }}) {{\n id\n liquidityTokenBalance\n pair {{\n id\n reserve0\n reserve1\n token0 {{\n id\n decimals\n name\n symbol\n }}\n token1 {{\n id\n decimals\n name\n symbol\n }}\n totalSupply\n }}\n user {{\n id\n }}\n }}}}\n ' token_day_datas_query = '\n tokenDayDatas\n (\n first: $limit,\n skip: $offset,\n where: {{\n token_in: $token_ids,\n date: $datetime,\n }}) {{\n date\n token {{\n id\n }}\n priceUSD\n }}}}\n '
# # PySNMP MIB module HPN-ICF-DHCPRELAY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-DHCPRELAY-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:37:51 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint") hpnicfCommon, = mibBuilder.importSymbols("HPN-ICF-OID-MIB", "hpnicfCommon") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") InetAddressType, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddress") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Gauge32, iso, Counter64, ModuleIdentity, TimeTicks, Integer32, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, MibIdentifier, IpAddress, ObjectIdentity, Unsigned32, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "iso", "Counter64", "ModuleIdentity", "TimeTicks", "Integer32", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "MibIdentifier", "IpAddress", "ObjectIdentity", "Unsigned32", "Counter32") DisplayString, MacAddress, TextualConvention, TruthValue, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "MacAddress", "TextualConvention", "TruthValue", "RowStatus") hpnicfDhcpRelay = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58)) hpnicfDhcpRelay.setRevisions(('2005-06-08 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpnicfDhcpRelay.setRevisionsDescriptions(('The initial version of this MIB module.',)) if mibBuilder.loadTexts: hpnicfDhcpRelay.setLastUpdated('200506080000Z') if mibBuilder.loadTexts: hpnicfDhcpRelay.setOrganization('') if mibBuilder.loadTexts: hpnicfDhcpRelay.setContactInfo('') if mibBuilder.loadTexts: hpnicfDhcpRelay.setDescription('DHCPR MIB') hpnicfDHCPRMibObject = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1)) hpnicfDHCPRIfSelectTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 1), ) if mibBuilder.loadTexts: hpnicfDHCPRIfSelectTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfSelectTable.setDescription('A table for configuring relay mode for interfaces. ') hpnicfDHCPRIfSelectEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfDHCPRIfSelectEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfSelectEntry.setDescription('An entry for configuring relay mode for an interface. ') hpnicfDHCPRIfSelectRelayMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2))).clone('off')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPRIfSelectRelayMode.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfSelectRelayMode.setDescription('If the value is on, the DHCP relay function would be enabled on this interface. ') hpnicfDHCPRIpToGroupTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2), ) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupTable.setDescription('A table for configuring ip addresses for DHCP server groups. ') hpnicfDHCPRIpToGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1), ).setIndexNames((0, "HPN-ICF-DHCPRELAY-MIB", "hpnicfDHCPRIpToGroupGroupId"), (0, "HPN-ICF-DHCPRELAY-MIB", "hpnicfDHCPRIpToGroupServerIpType"), (0, "HPN-ICF-DHCPRELAY-MIB", "hpnicfDHCPRIpToGroupServerIp")) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupEntry.setDescription('An entry for configuring ip addresses for a DHCP server group. ') hpnicfDHCPRIpToGroupGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 19))) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupGroupId.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupGroupId.setDescription('Group identifier of DHCP server group. ') hpnicfDHCPRIpToGroupServerIpType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1, 2), InetAddressType()) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupServerIpType.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupServerIpType.setDescription('Ip address type of DHCP server. ') hpnicfDHCPRIpToGroupServerIp = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1, 3), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(1, 64))) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupServerIp.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupServerIp.setDescription('Ip address of DHCP server. ') hpnicfDHCPRIpToGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupRowStatus.setDescription('Operation status of this table entry. Three actions are used: active, createAndGo, destroy. ') hpnicfDHCPRIfToGroupTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 3), ) if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupTable.setDescription('A table for configuring DHCP server groups for interfaces. ') hpnicfDHCPRIfToGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupEntry.setDescription('An entry for configuring DHCP server group for an interface. ') hpnicfDHCPRIfToGroupGroupId = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 19))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupGroupId.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupGroupId.setDescription('The DHCP server group for this interface. ') hpnicfDHCPRIfToGroupRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 3, 1, 2), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupRowStatus.setDescription('Operation status of this table entry. Three actions are used: active, createAndGo, destroy') hpnicfDHCPRAddrCheckTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 4), ) if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckTable.setDescription('A table containing the states of dhcp security address check switchs for interfaces. ') hpnicfDHCPRAddrCheckEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckEntry.setDescription('An entry containing the state of dhcp security address check switch for an interface. ') hpnicfDHCPRAddrCheckSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckSwitch.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckSwitch.setDescription('The state of dhcp security address check switch for this interface. It has two defined values: enabled and disabled. If the value is enabled, the address check function would be enabled. The default value is disabled. ') hpnicfDHCPRSecurityTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5), ) if mibBuilder.loadTexts: hpnicfDHCPRSecurityTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityTable.setDescription('A table containing the information of DHCP security. ') hpnicfDHCPRSecurityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1), ).setIndexNames((0, "HPN-ICF-DHCPRELAY-MIB", "hpnicfDHCPRSecurityClientIpAddrType"), (0, "HPN-ICF-DHCPRELAY-MIB", "hpnicfDHCPRSecurityClientIpAddr")) if mibBuilder.loadTexts: hpnicfDHCPRSecurityEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityEntry.setDescription('An entry containing the information of DHCP security. ') hpnicfDHCPRSecurityClientIpAddrType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 1), InetAddressType()) if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientIpAddrType.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientIpAddrType.setDescription("DHCP client's net ip address type") hpnicfDHCPRSecurityClientIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 2), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(1, 64))) if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientIpAddr.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientIpAddr.setDescription("DHCP client's net ip address") hpnicfDHCPRSecurityClientMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 3), MacAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientMacAddr.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientMacAddr.setDescription("DHCP client's mac address") hpnicfDHCPRSecurityClientProperty = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("static", 1), ("dynamic", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientProperty.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientProperty.setDescription('Property of client address') hpnicfDHCPRSecurityClientRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientRowStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientRowStatus.setDescription('Operation status of this table entry. Three actions are used: active, createAndGo, destroy') hpnicfDHCPRStatisticsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6)) hpnicfDHCPRRxClientPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 1), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRRxClientPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRRxClientPktNum.setDescription('The total number of the packets received from DHCP clients by DHCP relay. ') hpnicfDHCPRTxClientPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRTxClientPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRTxClientPktNum.setDescription('The total number of the brodcast packets transmitted to DHCP clients by DHCP relay. ') hpnicfDHCPRRxServerPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRRxServerPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRRxServerPktNum.setDescription('The total number of the packets received from DHCP Servers by DHCP relay. ') hpnicfDHCPRTxServerPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 4), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRTxServerPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRTxServerPktNum.setDescription('The total number of the packets transmitted to DHCP Servers by DHCP relay. ') hpnicfDHCPRDiscoverPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 5), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRDiscoverPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRDiscoverPktNum.setDescription('The total number of the DHCP Discover packets handled by DHCP relay. ') hpnicfDHCPRRequestPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRRequestPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRRequestPktNum.setDescription('The total number of the DHCP Request packets handled by DHCP relay. ') hpnicfDHCPRDeclinePktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 7), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRDeclinePktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRDeclinePktNum.setDescription('The total number of the DHCP Decline packets handled by DHCP relay. ') hpnicfDHCPRReleasePktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 8), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRReleasePktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRReleasePktNum.setDescription('The total number of the DHCP Release packets handled by DHCP relay. ') hpnicfDHCPRInformPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 9), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRInformPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRInformPktNum.setDescription('The total number of the DHCP Inform packets handled by DHCP relay. ') hpnicfDHCPROfferPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPROfferPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROfferPktNum.setDescription('The total number of the DHCP Offer packets handled by DHCP relay. ') hpnicfDHCPRAckPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 11), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRAckPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRAckPktNum.setDescription('The total number of the DHCP Ack packets handled by DHCP relay. ') hpnicfDHCPRNakPktNum = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 12), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hpnicfDHCPRNakPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRNakPktNum.setDescription('The total number of the DHCP Nak packets handled by DHCP relay. ') hpnicfDHCPRStatisticsReset = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 13), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPRStatisticsReset.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRStatisticsReset.setDescription('This node only supports set operation. If the value is true,it will clear all of the packet statistics. ') hpnicfDHCPRCycleGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 7)) hpnicfDHCPRCycleStatus = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 7, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on", 1), ("off", 2))).clone('off')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPRCycleStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRCycleStatus.setDescription('If the value is on, the cycle function would be enabled. ') hpnicfDHCPRConfigOption82Group = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8)) hpnicfDHCPROption82Switch = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPROption82Switch.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82Switch.setDescription('If the value is enabled, DHCP relay supporting option 82 function would be enabled. ') hpnicfDHCPROption82HandleStrategy = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("drop", 1), ("keep", 2), ("replace", 3))).clone('replace')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPROption82HandleStrategy.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82HandleStrategy.setDescription("The strategies of DHCP relay handling option 82. 'drop' indicates DHCP relay discarding the request packet including option 82. 'keep' indicates DHCP relay accepting the request packet without any change of the option 82. 'replace' indicates DHCP relay accepting the request packet on condition that it generates a new option 82 to replace the original one. ") hpnicfDHCPRConfigOption82IfTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3), ) if mibBuilder.loadTexts: hpnicfDHCPRConfigOption82IfTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRConfigOption82IfTable.setDescription('A table containing the information of DHCP option 82. This table depends on hpnicfDHCPRIfToGroupTable. An entry of this table will be created when an entry of hpnicfDHCPRIfToGroupTable is created. ') hpnicfDHCPRConfigOption82IfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: hpnicfDHCPRConfigOption82IfEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRConfigOption82IfEntry.setDescription('An entry containing the information of DHCP option 82. ') hpnicfDHCPROption82IfSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPROption82IfSwitch.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfSwitch.setDescription("If DHCP relay supports option 82 functions, the value is 'enabled'. If DHCP relay does not support option 82 functions, the value is 'disabled'. ") hpnicfDHCPROption82IfStrategy = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("drop", 1), ("keep", 2), ("replace", 3))).clone('replace')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPROption82IfStrategy.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfStrategy.setDescription("The strategies of DHCP relay handling option 82. 'drop' indicates DHCP relay discarding the request packet including option 82. 'keep' indicates DHCP relay accepting the request packet without any change of the option 82. 'replace' indicates DHCP relay accepting the request packet on condition that it generates a new option 82 to replace the original one. ") hpnicfDHCPROption82IfFormat = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("verbose", 2))).clone('normal')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPROption82IfFormat.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfFormat.setDescription("The format of DHCP relay option 82. 'normal' is the standard format. 'verbose' is the detailed format. ") hpnicfDHCPROption82IfNodeType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("invalid", 1), ("mac", 2), ("sysname", 3), ("userdefine", 4))).clone('invalid')).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPROption82IfNodeType.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfNodeType.setDescription("Property of DHCP relay option 82 verbose format. The value can be set by user only when the value of hpnicfDHCPROption82IfFormat is set with 'verbose'. If the value of hpnicfDHCPROption82IfFormat is 'normal', the value is automatically set with 'invalid'. the value can not be set with 'invalid' by user. 'mac' indicates the option 82 verbose format is filled in with the mac of DHCP relay input interface. If the value of hpnicfDHCPROption82IfFormat is set with 'verbose', the value is automatically set with 'mac'. 'sysname' indicates the option 82 verbose format is filled in with the name of the DHCP relay. 'userdefine' indicates the option 82 verbose format is filled in with the string defined by user. If the value is set with 'userdefine', the value of hpnicfDHCPROption82IfUsrDefString must be set simultaneously. ") hpnicfDHCPROption82IfUsrDefString = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 256))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hpnicfDHCPROption82IfUsrDefString.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfUsrDefString.setDescription("The string defined by user to fill in the option 82 verbose format. If the value of hpnicfDHCPROption82IfFormat is 'normal', or the value of hpnicfDHCPROption82IfNodeType is 'mac' or 'sysname', it is set with a null string automatically and can not be modified by user. It must be set with a non-zero length string when the value of hpnicfDHCPROption82IfNodeType is set with 'userdefine'. ") mibBuilder.exportSymbols("HPN-ICF-DHCPRELAY-MIB", hpnicfDHCPRSecurityClientRowStatus=hpnicfDHCPRSecurityClientRowStatus, hpnicfDHCPRRequestPktNum=hpnicfDHCPRRequestPktNum, hpnicfDHCPRInformPktNum=hpnicfDHCPRInformPktNum, hpnicfDHCPRIpToGroupServerIpType=hpnicfDHCPRIpToGroupServerIpType, hpnicfDHCPRSecurityEntry=hpnicfDHCPRSecurityEntry, hpnicfDHCPRDiscoverPktNum=hpnicfDHCPRDiscoverPktNum, hpnicfDHCPRReleasePktNum=hpnicfDHCPRReleasePktNum, hpnicfDHCPROption82IfNodeType=hpnicfDHCPROption82IfNodeType, hpnicfDHCPROption82IfUsrDefString=hpnicfDHCPROption82IfUsrDefString, hpnicfDHCPRIfSelectRelayMode=hpnicfDHCPRIfSelectRelayMode, hpnicfDHCPRMibObject=hpnicfDHCPRMibObject, hpnicfDHCPRConfigOption82IfTable=hpnicfDHCPRConfigOption82IfTable, hpnicfDhcpRelay=hpnicfDhcpRelay, hpnicfDHCPRSecurityClientIpAddrType=hpnicfDHCPRSecurityClientIpAddrType, hpnicfDHCPRAddrCheckTable=hpnicfDHCPRAddrCheckTable, hpnicfDHCPRRxClientPktNum=hpnicfDHCPRRxClientPktNum, hpnicfDHCPRAckPktNum=hpnicfDHCPRAckPktNum, hpnicfDHCPRTxServerPktNum=hpnicfDHCPRTxServerPktNum, hpnicfDHCPRDeclinePktNum=hpnicfDHCPRDeclinePktNum, hpnicfDHCPRConfigOption82IfEntry=hpnicfDHCPRConfigOption82IfEntry, hpnicfDHCPROption82IfSwitch=hpnicfDHCPROption82IfSwitch, hpnicfDHCPRIfToGroupRowStatus=hpnicfDHCPRIfToGroupRowStatus, hpnicfDHCPROption82IfFormat=hpnicfDHCPROption82IfFormat, hpnicfDHCPRIpToGroupTable=hpnicfDHCPRIpToGroupTable, hpnicfDHCPRSecurityClientProperty=hpnicfDHCPRSecurityClientProperty, hpnicfDHCPRSecurityClientIpAddr=hpnicfDHCPRSecurityClientIpAddr, hpnicfDHCPROption82Switch=hpnicfDHCPROption82Switch, hpnicfDHCPRIpToGroupServerIp=hpnicfDHCPRIpToGroupServerIp, hpnicfDHCPRIfSelectEntry=hpnicfDHCPRIfSelectEntry, hpnicfDHCPRIfSelectTable=hpnicfDHCPRIfSelectTable, hpnicfDHCPROption82HandleStrategy=hpnicfDHCPROption82HandleStrategy, hpnicfDHCPRIfToGroupTable=hpnicfDHCPRIfToGroupTable, hpnicfDHCPRCycleStatus=hpnicfDHCPRCycleStatus, hpnicfDHCPRStatisticsReset=hpnicfDHCPRStatisticsReset, hpnicfDHCPRStatisticsGroup=hpnicfDHCPRStatisticsGroup, hpnicfDHCPRCycleGroup=hpnicfDHCPRCycleGroup, hpnicfDHCPROfferPktNum=hpnicfDHCPROfferPktNum, hpnicfDHCPRIpToGroupGroupId=hpnicfDHCPRIpToGroupGroupId, hpnicfDHCPRConfigOption82Group=hpnicfDHCPRConfigOption82Group, hpnicfDHCPRIpToGroupRowStatus=hpnicfDHCPRIpToGroupRowStatus, hpnicfDHCPROption82IfStrategy=hpnicfDHCPROption82IfStrategy, hpnicfDHCPRAddrCheckSwitch=hpnicfDHCPRAddrCheckSwitch, hpnicfDHCPRTxClientPktNum=hpnicfDHCPRTxClientPktNum, hpnicfDHCPRIfToGroupEntry=hpnicfDHCPRIfToGroupEntry, hpnicfDHCPRSecurityClientMacAddr=hpnicfDHCPRSecurityClientMacAddr, hpnicfDHCPRIpToGroupEntry=hpnicfDHCPRIpToGroupEntry, hpnicfDHCPRIfToGroupGroupId=hpnicfDHCPRIfToGroupGroupId, PYSNMP_MODULE_ID=hpnicfDhcpRelay, hpnicfDHCPRNakPktNum=hpnicfDHCPRNakPktNum, hpnicfDHCPRRxServerPktNum=hpnicfDHCPRRxServerPktNum, hpnicfDHCPRSecurityTable=hpnicfDHCPRSecurityTable, hpnicfDHCPRAddrCheckEntry=hpnicfDHCPRAddrCheckEntry)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_size_constraint, constraints_union, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint') (hpnicf_common,) = mibBuilder.importSymbols('HPN-ICF-OID-MIB', 'hpnicfCommon') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (inet_address_type, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddress') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (gauge32, iso, counter64, module_identity, time_ticks, integer32, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, mib_identifier, ip_address, object_identity, unsigned32, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'iso', 'Counter64', 'ModuleIdentity', 'TimeTicks', 'Integer32', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'MibIdentifier', 'IpAddress', 'ObjectIdentity', 'Unsigned32', 'Counter32') (display_string, mac_address, textual_convention, truth_value, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'MacAddress', 'TextualConvention', 'TruthValue', 'RowStatus') hpnicf_dhcp_relay = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58)) hpnicfDhcpRelay.setRevisions(('2005-06-08 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpnicfDhcpRelay.setRevisionsDescriptions(('The initial version of this MIB module.',)) if mibBuilder.loadTexts: hpnicfDhcpRelay.setLastUpdated('200506080000Z') if mibBuilder.loadTexts: hpnicfDhcpRelay.setOrganization('') if mibBuilder.loadTexts: hpnicfDhcpRelay.setContactInfo('') if mibBuilder.loadTexts: hpnicfDhcpRelay.setDescription('DHCPR MIB') hpnicf_dhcpr_mib_object = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1)) hpnicf_dhcpr_if_select_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 1)) if mibBuilder.loadTexts: hpnicfDHCPRIfSelectTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfSelectTable.setDescription('A table for configuring relay mode for interfaces. ') hpnicf_dhcpr_if_select_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfDHCPRIfSelectEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfSelectEntry.setDescription('An entry for configuring relay mode for an interface. ') hpnicf_dhcpr_if_select_relay_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2))).clone('off')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPRIfSelectRelayMode.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfSelectRelayMode.setDescription('If the value is on, the DHCP relay function would be enabled on this interface. ') hpnicf_dhcpr_ip_to_group_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2)) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupTable.setDescription('A table for configuring ip addresses for DHCP server groups. ') hpnicf_dhcpr_ip_to_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1)).setIndexNames((0, 'HPN-ICF-DHCPRELAY-MIB', 'hpnicfDHCPRIpToGroupGroupId'), (0, 'HPN-ICF-DHCPRELAY-MIB', 'hpnicfDHCPRIpToGroupServerIpType'), (0, 'HPN-ICF-DHCPRELAY-MIB', 'hpnicfDHCPRIpToGroupServerIp')) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupEntry.setDescription('An entry for configuring ip addresses for a DHCP server group. ') hpnicf_dhcpr_ip_to_group_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 19))) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupGroupId.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupGroupId.setDescription('Group identifier of DHCP server group. ') hpnicf_dhcpr_ip_to_group_server_ip_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1, 2), inet_address_type()) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupServerIpType.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupServerIpType.setDescription('Ip address type of DHCP server. ') hpnicf_dhcpr_ip_to_group_server_ip = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1, 3), inet_address().subtype(subtypeSpec=value_size_constraint(1, 64))) if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupServerIp.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupServerIp.setDescription('Ip address of DHCP server. ') hpnicf_dhcpr_ip_to_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 2, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIpToGroupRowStatus.setDescription('Operation status of this table entry. Three actions are used: active, createAndGo, destroy. ') hpnicf_dhcpr_if_to_group_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 3)) if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupTable.setDescription('A table for configuring DHCP server groups for interfaces. ') hpnicf_dhcpr_if_to_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupEntry.setDescription('An entry for configuring DHCP server group for an interface. ') hpnicf_dhcpr_if_to_group_group_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 19))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupGroupId.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupGroupId.setDescription('The DHCP server group for this interface. ') hpnicf_dhcpr_if_to_group_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 3, 1, 2), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupRowStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRIfToGroupRowStatus.setDescription('Operation status of this table entry. Three actions are used: active, createAndGo, destroy') hpnicf_dhcpr_addr_check_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 4)) if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckTable.setDescription('A table containing the states of dhcp security address check switchs for interfaces. ') hpnicf_dhcpr_addr_check_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckEntry.setDescription('An entry containing the state of dhcp security address check switch for an interface. ') hpnicf_dhcpr_addr_check_switch = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckSwitch.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRAddrCheckSwitch.setDescription('The state of dhcp security address check switch for this interface. It has two defined values: enabled and disabled. If the value is enabled, the address check function would be enabled. The default value is disabled. ') hpnicf_dhcpr_security_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5)) if mibBuilder.loadTexts: hpnicfDHCPRSecurityTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityTable.setDescription('A table containing the information of DHCP security. ') hpnicf_dhcpr_security_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1)).setIndexNames((0, 'HPN-ICF-DHCPRELAY-MIB', 'hpnicfDHCPRSecurityClientIpAddrType'), (0, 'HPN-ICF-DHCPRELAY-MIB', 'hpnicfDHCPRSecurityClientIpAddr')) if mibBuilder.loadTexts: hpnicfDHCPRSecurityEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityEntry.setDescription('An entry containing the information of DHCP security. ') hpnicf_dhcpr_security_client_ip_addr_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 1), inet_address_type()) if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientIpAddrType.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientIpAddrType.setDescription("DHCP client's net ip address type") hpnicf_dhcpr_security_client_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 2), inet_address().subtype(subtypeSpec=value_size_constraint(1, 64))) if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientIpAddr.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientIpAddr.setDescription("DHCP client's net ip address") hpnicf_dhcpr_security_client_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 3), mac_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientMacAddr.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientMacAddr.setDescription("DHCP client's mac address") hpnicf_dhcpr_security_client_property = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('static', 1), ('dynamic', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientProperty.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientProperty.setDescription('Property of client address') hpnicf_dhcpr_security_client_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 5, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientRowStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRSecurityClientRowStatus.setDescription('Operation status of this table entry. Three actions are used: active, createAndGo, destroy') hpnicf_dhcpr_statistics_group = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6)) hpnicf_dhcpr_rx_client_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 1), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRRxClientPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRRxClientPktNum.setDescription('The total number of the packets received from DHCP clients by DHCP relay. ') hpnicf_dhcpr_tx_client_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRTxClientPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRTxClientPktNum.setDescription('The total number of the brodcast packets transmitted to DHCP clients by DHCP relay. ') hpnicf_dhcpr_rx_server_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRRxServerPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRRxServerPktNum.setDescription('The total number of the packets received from DHCP Servers by DHCP relay. ') hpnicf_dhcpr_tx_server_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 4), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRTxServerPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRTxServerPktNum.setDescription('The total number of the packets transmitted to DHCP Servers by DHCP relay. ') hpnicf_dhcpr_discover_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 5), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRDiscoverPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRDiscoverPktNum.setDescription('The total number of the DHCP Discover packets handled by DHCP relay. ') hpnicf_dhcpr_request_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRRequestPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRRequestPktNum.setDescription('The total number of the DHCP Request packets handled by DHCP relay. ') hpnicf_dhcpr_decline_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 7), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRDeclinePktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRDeclinePktNum.setDescription('The total number of the DHCP Decline packets handled by DHCP relay. ') hpnicf_dhcpr_release_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 8), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRReleasePktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRReleasePktNum.setDescription('The total number of the DHCP Release packets handled by DHCP relay. ') hpnicf_dhcpr_inform_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 9), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRInformPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRInformPktNum.setDescription('The total number of the DHCP Inform packets handled by DHCP relay. ') hpnicf_dhcpr_offer_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 10), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPROfferPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROfferPktNum.setDescription('The total number of the DHCP Offer packets handled by DHCP relay. ') hpnicf_dhcpr_ack_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 11), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRAckPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRAckPktNum.setDescription('The total number of the DHCP Ack packets handled by DHCP relay. ') hpnicf_dhcpr_nak_pkt_num = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 12), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hpnicfDHCPRNakPktNum.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRNakPktNum.setDescription('The total number of the DHCP Nak packets handled by DHCP relay. ') hpnicf_dhcpr_statistics_reset = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 6, 13), truth_value()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPRStatisticsReset.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRStatisticsReset.setDescription('This node only supports set operation. If the value is true,it will clear all of the packet statistics. ') hpnicf_dhcpr_cycle_group = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 7)) hpnicf_dhcpr_cycle_status = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 7, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('off', 2))).clone('off')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPRCycleStatus.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRCycleStatus.setDescription('If the value is on, the cycle function would be enabled. ') hpnicf_dhcpr_config_option82_group = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8)) hpnicf_dhcpr_option82_switch = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPROption82Switch.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82Switch.setDescription('If the value is enabled, DHCP relay supporting option 82 function would be enabled. ') hpnicf_dhcpr_option82_handle_strategy = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('drop', 1), ('keep', 2), ('replace', 3))).clone('replace')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPROption82HandleStrategy.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82HandleStrategy.setDescription("The strategies of DHCP relay handling option 82. 'drop' indicates DHCP relay discarding the request packet including option 82. 'keep' indicates DHCP relay accepting the request packet without any change of the option 82. 'replace' indicates DHCP relay accepting the request packet on condition that it generates a new option 82 to replace the original one. ") hpnicf_dhcpr_config_option82_if_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3)) if mibBuilder.loadTexts: hpnicfDHCPRConfigOption82IfTable.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRConfigOption82IfTable.setDescription('A table containing the information of DHCP option 82. This table depends on hpnicfDHCPRIfToGroupTable. An entry of this table will be created when an entry of hpnicfDHCPRIfToGroupTable is created. ') hpnicf_dhcpr_config_option82_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: hpnicfDHCPRConfigOption82IfEntry.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPRConfigOption82IfEntry.setDescription('An entry containing the information of DHCP option 82. ') hpnicf_dhcpr_option82_if_switch = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPROption82IfSwitch.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfSwitch.setDescription("If DHCP relay supports option 82 functions, the value is 'enabled'. If DHCP relay does not support option 82 functions, the value is 'disabled'. ") hpnicf_dhcpr_option82_if_strategy = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('drop', 1), ('keep', 2), ('replace', 3))).clone('replace')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPROption82IfStrategy.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfStrategy.setDescription("The strategies of DHCP relay handling option 82. 'drop' indicates DHCP relay discarding the request packet including option 82. 'keep' indicates DHCP relay accepting the request packet without any change of the option 82. 'replace' indicates DHCP relay accepting the request packet on condition that it generates a new option 82 to replace the original one. ") hpnicf_dhcpr_option82_if_format = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('verbose', 2))).clone('normal')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPROption82IfFormat.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfFormat.setDescription("The format of DHCP relay option 82. 'normal' is the standard format. 'verbose' is the detailed format. ") hpnicf_dhcpr_option82_if_node_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('invalid', 1), ('mac', 2), ('sysname', 3), ('userdefine', 4))).clone('invalid')).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPROption82IfNodeType.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfNodeType.setDescription("Property of DHCP relay option 82 verbose format. The value can be set by user only when the value of hpnicfDHCPROption82IfFormat is set with 'verbose'. If the value of hpnicfDHCPROption82IfFormat is 'normal', the value is automatically set with 'invalid'. the value can not be set with 'invalid' by user. 'mac' indicates the option 82 verbose format is filled in with the mac of DHCP relay input interface. If the value of hpnicfDHCPROption82IfFormat is set with 'verbose', the value is automatically set with 'mac'. 'sysname' indicates the option 82 verbose format is filled in with the name of the DHCP relay. 'userdefine' indicates the option 82 verbose format is filled in with the string defined by user. If the value is set with 'userdefine', the value of hpnicfDHCPROption82IfUsrDefString must be set simultaneously. ") hpnicf_dhcpr_option82_if_usr_def_string = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 58, 1, 8, 3, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 256))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hpnicfDHCPROption82IfUsrDefString.setStatus('current') if mibBuilder.loadTexts: hpnicfDHCPROption82IfUsrDefString.setDescription("The string defined by user to fill in the option 82 verbose format. If the value of hpnicfDHCPROption82IfFormat is 'normal', or the value of hpnicfDHCPROption82IfNodeType is 'mac' or 'sysname', it is set with a null string automatically and can not be modified by user. It must be set with a non-zero length string when the value of hpnicfDHCPROption82IfNodeType is set with 'userdefine'. ") mibBuilder.exportSymbols('HPN-ICF-DHCPRELAY-MIB', hpnicfDHCPRSecurityClientRowStatus=hpnicfDHCPRSecurityClientRowStatus, hpnicfDHCPRRequestPktNum=hpnicfDHCPRRequestPktNum, hpnicfDHCPRInformPktNum=hpnicfDHCPRInformPktNum, hpnicfDHCPRIpToGroupServerIpType=hpnicfDHCPRIpToGroupServerIpType, hpnicfDHCPRSecurityEntry=hpnicfDHCPRSecurityEntry, hpnicfDHCPRDiscoverPktNum=hpnicfDHCPRDiscoverPktNum, hpnicfDHCPRReleasePktNum=hpnicfDHCPRReleasePktNum, hpnicfDHCPROption82IfNodeType=hpnicfDHCPROption82IfNodeType, hpnicfDHCPROption82IfUsrDefString=hpnicfDHCPROption82IfUsrDefString, hpnicfDHCPRIfSelectRelayMode=hpnicfDHCPRIfSelectRelayMode, hpnicfDHCPRMibObject=hpnicfDHCPRMibObject, hpnicfDHCPRConfigOption82IfTable=hpnicfDHCPRConfigOption82IfTable, hpnicfDhcpRelay=hpnicfDhcpRelay, hpnicfDHCPRSecurityClientIpAddrType=hpnicfDHCPRSecurityClientIpAddrType, hpnicfDHCPRAddrCheckTable=hpnicfDHCPRAddrCheckTable, hpnicfDHCPRRxClientPktNum=hpnicfDHCPRRxClientPktNum, hpnicfDHCPRAckPktNum=hpnicfDHCPRAckPktNum, hpnicfDHCPRTxServerPktNum=hpnicfDHCPRTxServerPktNum, hpnicfDHCPRDeclinePktNum=hpnicfDHCPRDeclinePktNum, hpnicfDHCPRConfigOption82IfEntry=hpnicfDHCPRConfigOption82IfEntry, hpnicfDHCPROption82IfSwitch=hpnicfDHCPROption82IfSwitch, hpnicfDHCPRIfToGroupRowStatus=hpnicfDHCPRIfToGroupRowStatus, hpnicfDHCPROption82IfFormat=hpnicfDHCPROption82IfFormat, hpnicfDHCPRIpToGroupTable=hpnicfDHCPRIpToGroupTable, hpnicfDHCPRSecurityClientProperty=hpnicfDHCPRSecurityClientProperty, hpnicfDHCPRSecurityClientIpAddr=hpnicfDHCPRSecurityClientIpAddr, hpnicfDHCPROption82Switch=hpnicfDHCPROption82Switch, hpnicfDHCPRIpToGroupServerIp=hpnicfDHCPRIpToGroupServerIp, hpnicfDHCPRIfSelectEntry=hpnicfDHCPRIfSelectEntry, hpnicfDHCPRIfSelectTable=hpnicfDHCPRIfSelectTable, hpnicfDHCPROption82HandleStrategy=hpnicfDHCPROption82HandleStrategy, hpnicfDHCPRIfToGroupTable=hpnicfDHCPRIfToGroupTable, hpnicfDHCPRCycleStatus=hpnicfDHCPRCycleStatus, hpnicfDHCPRStatisticsReset=hpnicfDHCPRStatisticsReset, hpnicfDHCPRStatisticsGroup=hpnicfDHCPRStatisticsGroup, hpnicfDHCPRCycleGroup=hpnicfDHCPRCycleGroup, hpnicfDHCPROfferPktNum=hpnicfDHCPROfferPktNum, hpnicfDHCPRIpToGroupGroupId=hpnicfDHCPRIpToGroupGroupId, hpnicfDHCPRConfigOption82Group=hpnicfDHCPRConfigOption82Group, hpnicfDHCPRIpToGroupRowStatus=hpnicfDHCPRIpToGroupRowStatus, hpnicfDHCPROption82IfStrategy=hpnicfDHCPROption82IfStrategy, hpnicfDHCPRAddrCheckSwitch=hpnicfDHCPRAddrCheckSwitch, hpnicfDHCPRTxClientPktNum=hpnicfDHCPRTxClientPktNum, hpnicfDHCPRIfToGroupEntry=hpnicfDHCPRIfToGroupEntry, hpnicfDHCPRSecurityClientMacAddr=hpnicfDHCPRSecurityClientMacAddr, hpnicfDHCPRIpToGroupEntry=hpnicfDHCPRIpToGroupEntry, hpnicfDHCPRIfToGroupGroupId=hpnicfDHCPRIfToGroupGroupId, PYSNMP_MODULE_ID=hpnicfDhcpRelay, hpnicfDHCPRNakPktNum=hpnicfDHCPRNakPktNum, hpnicfDHCPRRxServerPktNum=hpnicfDHCPRRxServerPktNum, hpnicfDHCPRSecurityTable=hpnicfDHCPRSecurityTable, hpnicfDHCPRAddrCheckEntry=hpnicfDHCPRAddrCheckEntry)
# ============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 10921.py # Description: UVa Online Judge - 10921 # ============================================================================= source = list("-1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ") target = list("-123456789022233344455566677778889999") mapping = dict(zip(source, target)) while True: try: line = input() except EOFError: break print("".join(list(map(lambda x: mapping[x], line))))
source = list('-1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ') target = list('-123456789022233344455566677778889999') mapping = dict(zip(source, target)) while True: try: line = input() except EOFError: break print(''.join(list(map(lambda x: mapping[x], line))))
#!/usr/bin/python3 def words_count(filename): with open(filename, 'r') as file: strg = file.read() number = len(strg.split()) return number print(words_count("testscript.py")) a = [1, 2, 3] b = (4, 5, 8) for i, j in zip(a,b): print(i + j)
def words_count(filename): with open(filename, 'r') as file: strg = file.read() number = len(strg.split()) return number print(words_count('testscript.py')) a = [1, 2, 3] b = (4, 5, 8) for (i, j) in zip(a, b): print(i + j)
def main(): n, k = map(int, input().split()) h = list(map(int, input().split())) cost = [float('inf')] * n cost[0] = 0 for i in range(1, n): for j in range(1, k + 1): if i - j < 0: break else: cost[i] = min(cost[i], cost[i - j] + abs(h[i] - h[i - j])) print(cost[n - 1]) if __name__ == "__main__": main()
def main(): (n, k) = map(int, input().split()) h = list(map(int, input().split())) cost = [float('inf')] * n cost[0] = 0 for i in range(1, n): for j in range(1, k + 1): if i - j < 0: break else: cost[i] = min(cost[i], cost[i - j] + abs(h[i] - h[i - j])) print(cost[n - 1]) if __name__ == '__main__': main()
grammar = """ nonzeroDigit = digit:x ?(x != '0') digits = <'0' | nonzeroDigit digit*>:i -> int(i) netstring = digits:length ':' <anything{length}>:string ',' -> string receiveNetstring = netstring:string -> receiver.netstringReceived(string) """ class NetstringSender(object): def __init__(self, transport): self.transport = transport def sendNetstring(self, string): self.transport.write('%d:%s,' % (len(string), string))
grammar = "\n\nnonzeroDigit = digit:x ?(x != '0')\ndigits = <'0' | nonzeroDigit digit*>:i -> int(i)\n\nnetstring = digits:length ':' <anything{length}>:string ',' -> string\n\nreceiveNetstring = netstring:string -> receiver.netstringReceived(string)\n\n" class Netstringsender(object): def __init__(self, transport): self.transport = transport def send_netstring(self, string): self.transport.write('%d:%s,' % (len(string), string))
""" type ctrl+space this executes this file type ctrl+. you see the result in a pane to see the result in a file type ctrl+. select line 20 (g 20 g v $) type ctrl+enter this executes your selection you see the result in a pane to see the result in a file type ctrl+. """ print('hello world!') """ ctrl+space ctrl+. and ctrl+enter are your friends use them to execute file in test_all.py marked with import file_name you can even execute test_all.py """
""" type ctrl+space this executes this file type ctrl+. you see the result in a pane to see the result in a file type ctrl+. select line 20 (g 20 g v $) type ctrl+enter this executes your selection you see the result in a pane to see the result in a file type ctrl+. """ print('hello world!') '\nctrl+space ctrl+. and ctrl+enter are your friends\nuse them to execute file in test_all.py marked with\n\timport file_name\n\nyou can even execute \n\ttest_all.py\n'
class SimApp(QWidget): def __init__(self, env): super().__init__() self.env = env self.initUI() def initUI(self): grid = QGridLayout() self.setLayout(grid) grid.addWidget(QLabel('pods_min:'), 0, 0) grid.addWidget(QLabel('pods_max:'), 1, 0) grid.addWidget(QLabel('timeout (sec):'), 2, 0) grid.addWidget(QLabel('autoscale period (sec):'), 3, 0) grid.addWidget(QLabel('simulation period (sec):'), 4, 0) grid.addWidget(QLabel('readiness_probe (sec):'), 5, 0) grid.addWidget(QLabel('scaling_tolerance:'), 6, 0) btn_run_one = QPushButton('Run One Step', self) grid.addWidget(btn_run_one, 7, 0) setting = self.env.get_setting() grid.addWidget(QLabel(str(setting["pods_min"])), 0, 1) grid.addWidget(QLabel(str(setting["pods_max"])), 1, 1) grid.addWidget(QLabel(str(setting["timeout"])), 2, 1) grid.addWidget(QLabel(str(setting["autoscale_period"])), 3, 1) grid.addWidget(QLabel(str(setting["simulation_period"])), 4, 1) grid.addWidget(QLabel(str(setting["readiness_probe"])), 5, 1) grid.addWidget(QLabel(str(setting["scaling_tolerance"])), 6, 1) btn_run = QPushButton('Run', self) grid.addWidget(btn_run, 7, 1) self.setWindowTitle('Simulator') self.show() def run_one_step(self): self.env.next_rl_state() class MyApp(QWidget): def __init__(self): super().__init__() self.loadHistroy() self.initUI() def loadHistroy(self): self.traffic_history = [] f = open('./data/nasa-http-data-3.csv', 'r', encoding='utf-8') rdr =csv.reader(f) j = 0 for line in rdr: if j == 0: j = j+1 self.traffic_history.append(0) continue # for i in range(60): self.traffic_history.append(int(line[0])) def initUI(self): grid = QGridLayout() self.setLayout(grid) grid.addWidget(QLabel('pods_min:'), 0, 0) grid.addWidget(QLabel('pods_max:'), 1, 0) grid.addWidget(QLabel('timeout (sec):'), 2, 0) grid.addWidget(QLabel('autoscale period (sec):'), 3, 0) grid.addWidget(QLabel('simulation period (sec):'), 4, 0) grid.addWidget(QLabel('readiness_probe (sec):'), 5, 0) grid.addWidget(QLabel('scaling_tolerance:'), 6, 0) self.qe_pods_min = QLineEdit() self.qe_pods_min.setText("1") self.qe_pods_max = QLineEdit() self.qe_pods_max.setText("6") self.qe_timeout = QLineEdit() self.qe_timeout.setText("0.3") self.qe_autoscale_period = QLineEdit() self.qe_autoscale_period.setText("15") self.qe_simulation_period = QLineEdit() self.qe_simulation_period.setText("0.1") self.qe_readiness_probe = QLineEdit() self.qe_readiness_probe.setText("3") self.qe_scaling_tolerance = QLineEdit() self.qe_scaling_tolerance.setText("0.1") grid.addWidget(self.qe_pods_min, 0, 1) grid.addWidget(self.qe_pods_max, 1, 1) grid.addWidget(self.qe_timeout, 2, 1) grid.addWidget(self.qe_autoscale_period, 3, 1) grid.addWidget(self.qe_simulation_period, 4, 1) grid.addWidget(self.qe_readiness_probe, 5, 1) grid.addWidget(self.qe_scaling_tolerance, 6, 1) btn_set = QPushButton('SetButton', self) btn_set.clicked.connect(self.set_env) grid.addWidget(btn_set, 7, 1) self.setWindowTitle('Setting') self.show() def set_env(self): self.env = Environment( application_profile=application_profile, traffic_history=self.traffic_history, pods_min=int(self.qe_pods_min.text()), pods_max=int(self.qe_pods_max.text()), timeout=float(self.qe_timeout.text()), autoscale_period=float(self.qe_autoscale_period.text()), simulation_period=float(self.qe_simulation_period.text()), readiness_probe=float(self.qe_readiness_probe.text()), scaling_tolerance=float(self.qe_scaling_tolerance.text()) ) self.sim = SimApp(self.env) self.sim.show() self.hide() # app = QApplication(sys.argv) # ex = MyApp() # sys.exit(app.exec_())
class Simapp(QWidget): def __init__(self, env): super().__init__() self.env = env self.initUI() def init_ui(self): grid = q_grid_layout() self.setLayout(grid) grid.addWidget(q_label('pods_min:'), 0, 0) grid.addWidget(q_label('pods_max:'), 1, 0) grid.addWidget(q_label('timeout (sec):'), 2, 0) grid.addWidget(q_label('autoscale period (sec):'), 3, 0) grid.addWidget(q_label('simulation period (sec):'), 4, 0) grid.addWidget(q_label('readiness_probe (sec):'), 5, 0) grid.addWidget(q_label('scaling_tolerance:'), 6, 0) btn_run_one = q_push_button('Run One Step', self) grid.addWidget(btn_run_one, 7, 0) setting = self.env.get_setting() grid.addWidget(q_label(str(setting['pods_min'])), 0, 1) grid.addWidget(q_label(str(setting['pods_max'])), 1, 1) grid.addWidget(q_label(str(setting['timeout'])), 2, 1) grid.addWidget(q_label(str(setting['autoscale_period'])), 3, 1) grid.addWidget(q_label(str(setting['simulation_period'])), 4, 1) grid.addWidget(q_label(str(setting['readiness_probe'])), 5, 1) grid.addWidget(q_label(str(setting['scaling_tolerance'])), 6, 1) btn_run = q_push_button('Run', self) grid.addWidget(btn_run, 7, 1) self.setWindowTitle('Simulator') self.show() def run_one_step(self): self.env.next_rl_state() class Myapp(QWidget): def __init__(self): super().__init__() self.loadHistroy() self.initUI() def load_histroy(self): self.traffic_history = [] f = open('./data/nasa-http-data-3.csv', 'r', encoding='utf-8') rdr = csv.reader(f) j = 0 for line in rdr: if j == 0: j = j + 1 self.traffic_history.append(0) continue self.traffic_history.append(int(line[0])) def init_ui(self): grid = q_grid_layout() self.setLayout(grid) grid.addWidget(q_label('pods_min:'), 0, 0) grid.addWidget(q_label('pods_max:'), 1, 0) grid.addWidget(q_label('timeout (sec):'), 2, 0) grid.addWidget(q_label('autoscale period (sec):'), 3, 0) grid.addWidget(q_label('simulation period (sec):'), 4, 0) grid.addWidget(q_label('readiness_probe (sec):'), 5, 0) grid.addWidget(q_label('scaling_tolerance:'), 6, 0) self.qe_pods_min = q_line_edit() self.qe_pods_min.setText('1') self.qe_pods_max = q_line_edit() self.qe_pods_max.setText('6') self.qe_timeout = q_line_edit() self.qe_timeout.setText('0.3') self.qe_autoscale_period = q_line_edit() self.qe_autoscale_period.setText('15') self.qe_simulation_period = q_line_edit() self.qe_simulation_period.setText('0.1') self.qe_readiness_probe = q_line_edit() self.qe_readiness_probe.setText('3') self.qe_scaling_tolerance = q_line_edit() self.qe_scaling_tolerance.setText('0.1') grid.addWidget(self.qe_pods_min, 0, 1) grid.addWidget(self.qe_pods_max, 1, 1) grid.addWidget(self.qe_timeout, 2, 1) grid.addWidget(self.qe_autoscale_period, 3, 1) grid.addWidget(self.qe_simulation_period, 4, 1) grid.addWidget(self.qe_readiness_probe, 5, 1) grid.addWidget(self.qe_scaling_tolerance, 6, 1) btn_set = q_push_button('SetButton', self) btn_set.clicked.connect(self.set_env) grid.addWidget(btn_set, 7, 1) self.setWindowTitle('Setting') self.show() def set_env(self): self.env = environment(application_profile=application_profile, traffic_history=self.traffic_history, pods_min=int(self.qe_pods_min.text()), pods_max=int(self.qe_pods_max.text()), timeout=float(self.qe_timeout.text()), autoscale_period=float(self.qe_autoscale_period.text()), simulation_period=float(self.qe_simulation_period.text()), readiness_probe=float(self.qe_readiness_probe.text()), scaling_tolerance=float(self.qe_scaling_tolerance.text())) self.sim = sim_app(self.env) self.sim.show() self.hide()
class ContentBasedFiltering: def limit_number_of_recommendations(self,limit): self.limit = limit def __init__(self,db, regenerate = False): self.db = db self.table = 'content_based_recommendations' if regenerate or not db.table_exists(self.table): self.generate_similarity_matrix() self.limit_number_of_recommendations(20) self.store_top_n_similarities_to_database() # fetch prediction from database def predict(self, item_id): prediction = self.db.get(self.table, where='id = ' + str(item_id)) prediction = prediction.drop(['index', 'id'], axis=1) return prediction.values[0] # regeneration of similarity matrix def generate_similarity_matrix(self): ml = Movielens(self.db) self.item_similarities = core.pairwise_cosine(ml.load_complete_movie_info()) def predict_using_similarirty_matrix(self, item_id): arguments_sorted = core.reverse_argsort(self.item_similarities[item_id]) # select everything except item_id; else same movie will be recommended arguments_sorted = arguments_sorted[arguments_sorted!=item_id] #limit to number of output arguments_sorted = arguments_sorted[: self.limit+1] return arguments_sorted def store_top_n_similarities_to_database(self): similar_movies = [] for i in range(0, self.item_similarities.shape[0]): predicted = self.predict_using_similarirty_matrix(i) similar_movies.append(predicted) df = pd.DataFrame(similar_movies) df['id']=df.index self.db.save_entire_df(df, self.table) ##### class CollaborativeFiltering: def limit_number_of_recommendations(self,limit): self.limit = limit def reload_conditions(self): return not self.db.table_exists(cf_table['user'],cf_table['item'],cf_table['user_recommendation']) def __init__(self, db, clear_cache=False): self.db = db ml = Movielens(db) self.user_similarities_table = 'collaborative_user_similarities' self.user_recommendation_table = 'collaborative_user_recommendation'; if self.reload_conditions() or clear_cache: PrepareCollaborativeFiltering(db) def predict_for_item(self, item_id): prediction = self.db.get(cf_table['item'], where = 'id = '+str(item_id)) prediction = prediction.drop(['index', 'id'], axis=1) return prediction.values[0] def generate_prediction(self, user_id): top_10_similar_users = self.db.get(cf_table['user'], where = 'id = '+ str(user_id)) top_10_similar_users = top_10_similar_users.drop(['index', 'id'], axis=1) similarities = dict(zip(top_10_similar_users['similar_user'].tolist(), top_10_similar_users['similarity'].tolist())) # get ratings similar_users_ratings = self.db.get('ratings', where = 'userId in ('+','.join(map(str,similarities))+')') similar_users_ratings = similar_users_ratings.drop(['index', 'timestamp'], axis=1) user_ratings = self.db.get('ratings', where = 'userId = '+str(user_id)) # remove things which are already rated by the user similar_users_ratings = similar_users_ratings[~similar_users_ratings['movieId'].isin(user_ratings['movieId'])] movies = similar_users_ratings['movieId'].unique().tolist() movie_weightage = [] for i in movies: user_who_have_rated = similar_users_ratings[similar_users_ratings['movieId']==i] user_who_have_rated['weightage'] = user_who_have_rated['rating'] * user_who_have_rated['userId'].map(similarities) movie_weightage.append([i, user_who_have_rated['weightage'].sum()]) df = pd.DataFrame(movie_weightage, columns=['id','weightage']) df = df.sort_values('weightage', ascending=False) return df.head(10)['id'].tolist() def predict_for_user(self, user_id): recommendation = self.db.get(cf_table['user_recommendation'], where = 'id = '+str(user_id)) recommendation = recommendation.drop(['index','id'], axis =1) return recommendation.values[0] # return self.generate_prediction(user_id) ### class PrepareCollaborativeFiltering: def __init__(self,db): self.db = db self.ratings = Movielens(db).load_ratings() self.limit = 20 self.generate_user_similarity_matrix() self.generate_item_similarity_matrix() self.save_complete_item_similarities_to_database() self.save_complete_similar_users_to_database() self.save_recommendation_for_user() # Item Similarity def generate_item_similarity_matrix(self): data = self.ratings.transpose() data[data > 0] = 1 self.item_similarities = core.pairwise_cosine(data) def save_complete_item_similarities_to_database(self): similar_movies = [] for i in range(0, self.ratings.shape[1]): predicted = self.predict_by_item_similarirty(i) similar_movies.append(predicted) df = pd.DataFrame(similar_movies) df['id']=df.index self.db.save_entire_df(df, cf_table['item']) def predict_by_item_similarirty(self, item_id): arguments_sorted = core.reverse_argsort(self.item_similarities[item_id]) arguments_sorted = arguments_sorted[arguments_sorted != item_id][:self.limit] return arguments_sorted # User Similarity def generate_user_similarity_matrix(self): self.user_similarities = core.pairwise_cosine(self.ratings) def top_n_similar_users(self,user_id): return np.argsort(self.user_similarities[user_id])[::-1][1:11] def user_similarity_for_index(self,row, column): return self.user_similarities[row, column] def save_complete_similar_users_to_database(self): values = [] for i in range(0, self.ratings.shape[0]): predicted = self.top_n_similar_users(i) similarity = self.user_similarity_for_index(i,predicted) user_id = np.array([i for j in range(predicted.shape[0])]) data = pd.DataFrame([user_id,predicted,similarity]) data = data.transpose() values.append(data) df = pd.concat(values) renaming = {0: 'id', 1: 'similar_user', 2: 'similarity'} df = df.rename(columns = renaming) df['id'] = df['id'].astype(int) df['similar_user'] = df['similar_user'].astype(int) #print(df) self.db.save_entire_df(df, cf_table['user']) def predict_by_user_similarity(self, user_id): top_10_similar_users = np.argsort(self.user_similarities[user_id])[::-1][1:11] value = [] for i in range(self.ratings.shape[0]): if self.ratings[user_id,i] != 0: value.append(0) continue weightage_of_item = 0 for k in top_10_similar_users: weightage_of_item+=self.ratings[k,i]*self.user_similarities[user_id,k] value.append(weightage_of_item) return np.argsort(value)[:self.limit] def save_recommendation_for_user(self): recommendation = [] print(self.user_similarities.shape[0]) for i in range(self.user_similarities.shape[0]): print(i) prediction = self.predict_by_user_similarity(i) recommendation.append(prediction) df = pd.DataFrame(recommendation) df['id'] = df.index print(df) self.db.save_entire_df(df, table_name=cf_table['user_recommendation']) ### class Normalised_ContentBasedFiltering: def limit_number_of_recommendations(self,limit): self.limit = limit def __init__(self,db, regenerate = False): self.db = db self.table = 'normalised_content_based_recommendations' self.ml = Movielens(self.db) self.normalise() exit() if regenerate or not db.table_exists(self.table): self.generate_similarity_matrix() self.limit_number_of_recommendations(20) self.store_top_n_similarities_to_database() def normalise(self): a = core.normalise_dataframe(self.ml.load_complete_movie_info()) print(a) # fetch prediction from database def predict(self, item_id): prediction = self.db.get(self.table, where='id = ' + str(item_id)) prediction = prediction.drop(['index', 'id'], axis=1) return prediction.values[0] # regeneration of similarity matrix def generate_similarity_matrix(self): ml = Movielens(self.db) self.item_similarities = core.pairwise_cosine(ml.load_complete_movie_info()) def predict_using_similarirty_matrix(self, item_id): arguments_sorted = core.reverse_argsort(self.item_similarities[item_id]) # select everything except item_id; else same movie will be recommended arguments_sorted = arguments_sorted[arguments_sorted!=item_id] #limit to number of output arguments_sorted = arguments_sorted[: self.limit+1] return arguments_sorted def store_top_n_similarities_to_database(self): similar_movies = [] for i in range(0, self.item_similarities.shape[0]): predicted = self.predict_using_similarirty_matrix(i) similar_movies.append(predicted) df = pd.DataFrame(similar_movies) df['id']=df.index self.db.save_entire_df(df, self.table)
class Contentbasedfiltering: def limit_number_of_recommendations(self, limit): self.limit = limit def __init__(self, db, regenerate=False): self.db = db self.table = 'content_based_recommendations' if regenerate or not db.table_exists(self.table): self.generate_similarity_matrix() self.limit_number_of_recommendations(20) self.store_top_n_similarities_to_database() def predict(self, item_id): prediction = self.db.get(self.table, where='id = ' + str(item_id)) prediction = prediction.drop(['index', 'id'], axis=1) return prediction.values[0] def generate_similarity_matrix(self): ml = movielens(self.db) self.item_similarities = core.pairwise_cosine(ml.load_complete_movie_info()) def predict_using_similarirty_matrix(self, item_id): arguments_sorted = core.reverse_argsort(self.item_similarities[item_id]) arguments_sorted = arguments_sorted[arguments_sorted != item_id] arguments_sorted = arguments_sorted[:self.limit + 1] return arguments_sorted def store_top_n_similarities_to_database(self): similar_movies = [] for i in range(0, self.item_similarities.shape[0]): predicted = self.predict_using_similarirty_matrix(i) similar_movies.append(predicted) df = pd.DataFrame(similar_movies) df['id'] = df.index self.db.save_entire_df(df, self.table) class Collaborativefiltering: def limit_number_of_recommendations(self, limit): self.limit = limit def reload_conditions(self): return not self.db.table_exists(cf_table['user'], cf_table['item'], cf_table['user_recommendation']) def __init__(self, db, clear_cache=False): self.db = db ml = movielens(db) self.user_similarities_table = 'collaborative_user_similarities' self.user_recommendation_table = 'collaborative_user_recommendation' if self.reload_conditions() or clear_cache: prepare_collaborative_filtering(db) def predict_for_item(self, item_id): prediction = self.db.get(cf_table['item'], where='id = ' + str(item_id)) prediction = prediction.drop(['index', 'id'], axis=1) return prediction.values[0] def generate_prediction(self, user_id): top_10_similar_users = self.db.get(cf_table['user'], where='id = ' + str(user_id)) top_10_similar_users = top_10_similar_users.drop(['index', 'id'], axis=1) similarities = dict(zip(top_10_similar_users['similar_user'].tolist(), top_10_similar_users['similarity'].tolist())) similar_users_ratings = self.db.get('ratings', where='userId in (' + ','.join(map(str, similarities)) + ')') similar_users_ratings = similar_users_ratings.drop(['index', 'timestamp'], axis=1) user_ratings = self.db.get('ratings', where='userId = ' + str(user_id)) similar_users_ratings = similar_users_ratings[~similar_users_ratings['movieId'].isin(user_ratings['movieId'])] movies = similar_users_ratings['movieId'].unique().tolist() movie_weightage = [] for i in movies: user_who_have_rated = similar_users_ratings[similar_users_ratings['movieId'] == i] user_who_have_rated['weightage'] = user_who_have_rated['rating'] * user_who_have_rated['userId'].map(similarities) movie_weightage.append([i, user_who_have_rated['weightage'].sum()]) df = pd.DataFrame(movie_weightage, columns=['id', 'weightage']) df = df.sort_values('weightage', ascending=False) return df.head(10)['id'].tolist() def predict_for_user(self, user_id): recommendation = self.db.get(cf_table['user_recommendation'], where='id = ' + str(user_id)) recommendation = recommendation.drop(['index', 'id'], axis=1) return recommendation.values[0] class Preparecollaborativefiltering: def __init__(self, db): self.db = db self.ratings = movielens(db).load_ratings() self.limit = 20 self.generate_user_similarity_matrix() self.generate_item_similarity_matrix() self.save_complete_item_similarities_to_database() self.save_complete_similar_users_to_database() self.save_recommendation_for_user() def generate_item_similarity_matrix(self): data = self.ratings.transpose() data[data > 0] = 1 self.item_similarities = core.pairwise_cosine(data) def save_complete_item_similarities_to_database(self): similar_movies = [] for i in range(0, self.ratings.shape[1]): predicted = self.predict_by_item_similarirty(i) similar_movies.append(predicted) df = pd.DataFrame(similar_movies) df['id'] = df.index self.db.save_entire_df(df, cf_table['item']) def predict_by_item_similarirty(self, item_id): arguments_sorted = core.reverse_argsort(self.item_similarities[item_id]) arguments_sorted = arguments_sorted[arguments_sorted != item_id][:self.limit] return arguments_sorted def generate_user_similarity_matrix(self): self.user_similarities = core.pairwise_cosine(self.ratings) def top_n_similar_users(self, user_id): return np.argsort(self.user_similarities[user_id])[::-1][1:11] def user_similarity_for_index(self, row, column): return self.user_similarities[row, column] def save_complete_similar_users_to_database(self): values = [] for i in range(0, self.ratings.shape[0]): predicted = self.top_n_similar_users(i) similarity = self.user_similarity_for_index(i, predicted) user_id = np.array([i for j in range(predicted.shape[0])]) data = pd.DataFrame([user_id, predicted, similarity]) data = data.transpose() values.append(data) df = pd.concat(values) renaming = {0: 'id', 1: 'similar_user', 2: 'similarity'} df = df.rename(columns=renaming) df['id'] = df['id'].astype(int) df['similar_user'] = df['similar_user'].astype(int) self.db.save_entire_df(df, cf_table['user']) def predict_by_user_similarity(self, user_id): top_10_similar_users = np.argsort(self.user_similarities[user_id])[::-1][1:11] value = [] for i in range(self.ratings.shape[0]): if self.ratings[user_id, i] != 0: value.append(0) continue weightage_of_item = 0 for k in top_10_similar_users: weightage_of_item += self.ratings[k, i] * self.user_similarities[user_id, k] value.append(weightage_of_item) return np.argsort(value)[:self.limit] def save_recommendation_for_user(self): recommendation = [] print(self.user_similarities.shape[0]) for i in range(self.user_similarities.shape[0]): print(i) prediction = self.predict_by_user_similarity(i) recommendation.append(prediction) df = pd.DataFrame(recommendation) df['id'] = df.index print(df) self.db.save_entire_df(df, table_name=cf_table['user_recommendation']) class Normalised_Contentbasedfiltering: def limit_number_of_recommendations(self, limit): self.limit = limit def __init__(self, db, regenerate=False): self.db = db self.table = 'normalised_content_based_recommendations' self.ml = movielens(self.db) self.normalise() exit() if regenerate or not db.table_exists(self.table): self.generate_similarity_matrix() self.limit_number_of_recommendations(20) self.store_top_n_similarities_to_database() def normalise(self): a = core.normalise_dataframe(self.ml.load_complete_movie_info()) print(a) def predict(self, item_id): prediction = self.db.get(self.table, where='id = ' + str(item_id)) prediction = prediction.drop(['index', 'id'], axis=1) return prediction.values[0] def generate_similarity_matrix(self): ml = movielens(self.db) self.item_similarities = core.pairwise_cosine(ml.load_complete_movie_info()) def predict_using_similarirty_matrix(self, item_id): arguments_sorted = core.reverse_argsort(self.item_similarities[item_id]) arguments_sorted = arguments_sorted[arguments_sorted != item_id] arguments_sorted = arguments_sorted[:self.limit + 1] return arguments_sorted def store_top_n_similarities_to_database(self): similar_movies = [] for i in range(0, self.item_similarities.shape[0]): predicted = self.predict_using_similarirty_matrix(i) similar_movies.append(predicted) df = pd.DataFrame(similar_movies) df['id'] = df.index self.db.save_entire_df(df, self.table)
#This code has conflicting attributes, #but the documentation in the standard library tells you do it this way :( #See https://discuss.lgtm.com/t/warning-on-normal-use-of-python-socketserver-mixins/677 class ThreadingMixIn(object): def process_request(selfself, req): pass class HTTPServer(object): def process_request(selfself, req): pass class _ThreadingSimpleServer(ThreadingMixIn, HTTPServer): pass
class Threadingmixin(object): def process_request(selfself, req): pass class Httpserver(object): def process_request(selfself, req): pass class _Threadingsimpleserver(ThreadingMixIn, HTTPServer): pass
""" 1. Clarification 2. Possible solutions - Backtracking + Bit manipulation - Iterative + Bit manipulation 3. Coding 4. Tests """ # T=O(len(all letters in arr) + 2^n), S=O(n) class Solution: def maxLength(self, arr: List[str]) -> int: masks = list() for s in arr: mask = 0 for ch in s: idx = ord(ch) - ord("a") if (mask >> idx) & 1: mask = 0 break mask |= 1 << idx if mask > 0: masks.append(mask) ans = 0 def backtrack(pos: int, mask: int) -> None: if pos == len(masks): nonlocal ans ans = max(ans, bin(mask).count('1')) return if (mask & masks[pos]) == 0: backtrack(pos + 1, mask | masks[pos]) backtrack(pos + 1, mask) backtrack(0, 0) return ans # T=O(len(all letters in arr) + 2^n), S=O(2^n) class Solution: def maxLength(self, arr: List[str]) -> int: ans = 0 masks = [0] for s in arr: mask = 0 for ch in s: idx = ord(ch) - ord("a") if (mask >> idx) & 1: mask = 0 break mask |= 1 << idx if mask == 0: continue n = len(masks) for i in range(n): m = masks[i] if (m & mask) == 0: masks.append(m | mask) ans = max(ans, bin(m | mask).count("1")) return ans
""" 1. Clarification 2. Possible solutions - Backtracking + Bit manipulation - Iterative + Bit manipulation 3. Coding 4. Tests """ class Solution: def max_length(self, arr: List[str]) -> int: masks = list() for s in arr: mask = 0 for ch in s: idx = ord(ch) - ord('a') if mask >> idx & 1: mask = 0 break mask |= 1 << idx if mask > 0: masks.append(mask) ans = 0 def backtrack(pos: int, mask: int) -> None: if pos == len(masks): nonlocal ans ans = max(ans, bin(mask).count('1')) return if mask & masks[pos] == 0: backtrack(pos + 1, mask | masks[pos]) backtrack(pos + 1, mask) backtrack(0, 0) return ans class Solution: def max_length(self, arr: List[str]) -> int: ans = 0 masks = [0] for s in arr: mask = 0 for ch in s: idx = ord(ch) - ord('a') if mask >> idx & 1: mask = 0 break mask |= 1 << idx if mask == 0: continue n = len(masks) for i in range(n): m = masks[i] if m & mask == 0: masks.append(m | mask) ans = max(ans, bin(m | mask).count('1')) return ans
def cap_text(text): ''' Input a String Output a Capitalized String ''' # return text.capitalize() return text.title()
def cap_text(text): """ Input a String Output a Capitalized String """ return text.title()
# test to make sure that every brand in our file is at least 3 characters long with open('car-brands.txt') as f: result = all(map(lambda row: len(row) >= 3, f)) print(result) # => True # test to see if any line is more than 10 characters with open('car-brands.txt') as f: result = any(map(lambda row: len(row) > 10, f)) print(result) # => True # More than 13? with open('car-brands.txt') as f: result = any(map(lambda row: len(row) > 13, f)) print(result) # => False # generator expressions instead of map with open('car-brands.txt') as f: result = any(len(row) > 13 for row in f) print(result) # => False
with open('car-brands.txt') as f: result = all(map(lambda row: len(row) >= 3, f)) print(result) with open('car-brands.txt') as f: result = any(map(lambda row: len(row) > 10, f)) print(result) with open('car-brands.txt') as f: result = any(map(lambda row: len(row) > 13, f)) print(result) with open('car-brands.txt') as f: result = any((len(row) > 13 for row in f)) print(result)
# from log_utils.remote_logs import ( # post_output_log, post_build_complete, # post_build_error, post_build_timeout) class TestPostOutputLog(): def test_post_output_log(self): pass class TestPostBuildComplete(): def test_post_build_complete(self): pass class TestPostBuildError(): def test_post_build_error(self): pass class TestPostBuildTimeout(): def test_post_build_timeout(self): pass
class Testpostoutputlog: def test_post_output_log(self): pass class Testpostbuildcomplete: def test_post_build_complete(self): pass class Testpostbuilderror: def test_post_build_error(self): pass class Testpostbuildtimeout: def test_post_build_timeout(self): pass
""" A simple stock analyzer that collects data from 3 stock-listed company files (NASDAQ, NYSE, and AMEX), and parses it into a single delimited file where a user can search company data from all 3 file sources. Author: Oscar Lopez """ def clean_data(data): """ Removes any trailing new lines, replaces '"' with tab delimiter, and removes trailing commas and unnecessary quotation marks. Parameters: data: String of data. """ data = data.strip("\n") data = data.replace('","', "\t") data = data.replace('"', '') # remove unnecessary comma at end of data. data = data[:len(data) -1] return data def parse_file_as_dict(*filename): """ Parses data from an opened file into a dictionary data. Parameters: (String) *filename: File name(s) of data to be parsed as dictionary of data. """ parsed_data_dict = dict() for f in filename: try: fopen = open(f) except: print(f'ERROR: Could not parse data from {f}!') continue #ignore header of file. fopen.readline() for line in fopen: line = clean_data(line) data_list = line.split('\t') symbol = data_list[0] parsed_data_dict.update( { symbol:{ 'Name': data_list[1], 'Last Sale': data_list[2], 'Market Cap': data_list[3], 'ADR TSO': data_list[4], 'IPO Year': data_list[5], 'Sector': data_list[6], 'Industry': data_list[7], 'Summary Quote': data_list[8] } } ) fopen.close() return parsed_data_dict def parse_file_as_list(*filename): """ Parses all data from file(s) as a list. Parameters: (String) *filename: File name(s) of data to be parsed as a list of data. """ parsed_data_list = list() for f in filename: try: fopen = open(f) except: print(f'ERROR: Could not parse data from {f}!') continue #ignore header of file. fopen.readline() for line in fopen: line = clean_data(line) data_list = line.split('\t') parsed_data_list.append(data_list) return parsed_data_list def output_data_file(filename, data): """ Writes data to an output file. Parameters: (String) filename: Name of file to be written to. (list) data: Data to be written to file. """ f_write = open(filename, "w+") data.sort() for line in data: for element in line: f_write.write(str(element) + '\t') f_write.write('\n') f_write.close() print(f'Finished writing data to {filename}') def search_symbol(symbol, dict_data): """ Searches for a company symbol and returns its data as a formatted string if found.Returns None otherwise. Parameters: (String) symbol: Company tag to be searched for. (dict) dict_data: Dictionary of data to be searched through. """ symbol = symbol.upper() if symbol in dict_data: name = dict_data[symbol]['Name'] last_sale = dict_data[symbol]['Last Sale'] market_cap = dict_data[symbol]['Market Cap'] ipo_year = dict_data[symbol]['IPO Year'] sector = dict_data[symbol]['Sector'] industry = dict_data[symbol]['Industry'] return f'{symbol}, {name}, {last_sale}, {market_cap}, {ipo_year}, {sector}, {industry}' return None def get_top_15_marketcap(data): """ Gets the top 15 companies based on their marketcap. Parameters: (list)data: A compiled list of lists of company data. """ top_15_marketcap = list() all_company_marketcap = list() for line in data: company_tag = line[0] company_marketcap = line[3] all_company_marketcap.append([company_marketcap, company_tag]) all_company_marketcap.sort(reverse=True) for i in range(0,15): top_15_marketcap.append(all_company_marketcap[i]) return top_15_marketcap def display_menu(): """ Returns the main menu of the program. """ return """ Lopez's CompanyList Data Analyzer ====================================== 1 : Export to merged/sorted(by stock symbol) CSV file. 2 : Search by stock symbol. 3 : Display 15 Companies with the highest MarketCap value. 4 : Exit """ def promptChoice(prompt): """ Returns the numerical choice of a prompt. Otherwise returns None. """ try: return int(input(prompt)) except ValueError: return None """ Main Program. """ # Parsing and preparing csv datasets. data_dict = parse_file_as_dict('companylist_nasdaq.csv', 'companylist_nyse.csv', 'companylist_amex.csv') data_list = parse_file_as_list('companylist_nasdaq.csv', 'companylist_nyse.csv', 'companylist_amex.csv') print(display_menu()) while True: try: user_choice = int(promptChoice('> ')) except: print('Plese enter a valid numerical value!') continue if user_choice == 1: filename = input('What will be the name of the file? ') output_data_file(filename, data_list) print(f'Sorted data exported to {filename}') elif user_choice == 2: company_symbol = input('Enter company symbol: ') result = search_symbol(company_symbol, data_dict) if result: print(result) else: print(f'Sorry, {company_symbol} not found!') elif user_choice == 3: for company in enumerate(get_top_15_marketcap(data_list)): print(f'{company[0] + 1} : Company: {company[1][1]} : MarketCap: {company[1][0]}') elif user_choice == 4: print('Exiting.') break else: print('Please enter a valid choice from the menu!')
""" A simple stock analyzer that collects data from 3 stock-listed company files (NASDAQ, NYSE, and AMEX), and parses it into a single delimited file where a user can search company data from all 3 file sources. Author: Oscar Lopez """ def clean_data(data): """ Removes any trailing new lines, replaces '"' with tab delimiter, and removes trailing commas and unnecessary quotation marks. Parameters: data: String of data. """ data = data.strip('\n') data = data.replace('","', '\t') data = data.replace('"', '') data = data[:len(data) - 1] return data def parse_file_as_dict(*filename): """ Parses data from an opened file into a dictionary data. Parameters: (String) *filename: File name(s) of data to be parsed as dictionary of data. """ parsed_data_dict = dict() for f in filename: try: fopen = open(f) except: print(f'ERROR: Could not parse data from {f}!') continue fopen.readline() for line in fopen: line = clean_data(line) data_list = line.split('\t') symbol = data_list[0] parsed_data_dict.update({symbol: {'Name': data_list[1], 'Last Sale': data_list[2], 'Market Cap': data_list[3], 'ADR TSO': data_list[4], 'IPO Year': data_list[5], 'Sector': data_list[6], 'Industry': data_list[7], 'Summary Quote': data_list[8]}}) fopen.close() return parsed_data_dict def parse_file_as_list(*filename): """ Parses all data from file(s) as a list. Parameters: (String) *filename: File name(s) of data to be parsed as a list of data. """ parsed_data_list = list() for f in filename: try: fopen = open(f) except: print(f'ERROR: Could not parse data from {f}!') continue fopen.readline() for line in fopen: line = clean_data(line) data_list = line.split('\t') parsed_data_list.append(data_list) return parsed_data_list def output_data_file(filename, data): """ Writes data to an output file. Parameters: (String) filename: Name of file to be written to. (list) data: Data to be written to file. """ f_write = open(filename, 'w+') data.sort() for line in data: for element in line: f_write.write(str(element) + '\t') f_write.write('\n') f_write.close() print(f'Finished writing data to {filename}') def search_symbol(symbol, dict_data): """ Searches for a company symbol and returns its data as a formatted string if found.Returns None otherwise. Parameters: (String) symbol: Company tag to be searched for. (dict) dict_data: Dictionary of data to be searched through. """ symbol = symbol.upper() if symbol in dict_data: name = dict_data[symbol]['Name'] last_sale = dict_data[symbol]['Last Sale'] market_cap = dict_data[symbol]['Market Cap'] ipo_year = dict_data[symbol]['IPO Year'] sector = dict_data[symbol]['Sector'] industry = dict_data[symbol]['Industry'] return f'{symbol}, {name}, {last_sale}, {market_cap}, {ipo_year}, {sector}, {industry}' return None def get_top_15_marketcap(data): """ Gets the top 15 companies based on their marketcap. Parameters: (list)data: A compiled list of lists of company data. """ top_15_marketcap = list() all_company_marketcap = list() for line in data: company_tag = line[0] company_marketcap = line[3] all_company_marketcap.append([company_marketcap, company_tag]) all_company_marketcap.sort(reverse=True) for i in range(0, 15): top_15_marketcap.append(all_company_marketcap[i]) return top_15_marketcap def display_menu(): """ Returns the main menu of the program. """ return "\n Lopez's CompanyList Data Analyzer\n ======================================\n 1 : Export to merged/sorted(by stock symbol) CSV file.\n 2 : Search by stock symbol.\n 3 : Display 15 Companies with the highest MarketCap value.\n 4 : Exit\n " def prompt_choice(prompt): """ Returns the numerical choice of a prompt. Otherwise returns None. """ try: return int(input(prompt)) except ValueError: return None ' Main Program. ' data_dict = parse_file_as_dict('companylist_nasdaq.csv', 'companylist_nyse.csv', 'companylist_amex.csv') data_list = parse_file_as_list('companylist_nasdaq.csv', 'companylist_nyse.csv', 'companylist_amex.csv') print(display_menu()) while True: try: user_choice = int(prompt_choice('> ')) except: print('Plese enter a valid numerical value!') continue if user_choice == 1: filename = input('What will be the name of the file? ') output_data_file(filename, data_list) print(f'Sorted data exported to {filename}') elif user_choice == 2: company_symbol = input('Enter company symbol: ') result = search_symbol(company_symbol, data_dict) if result: print(result) else: print(f'Sorry, {company_symbol} not found!') elif user_choice == 3: for company in enumerate(get_top_15_marketcap(data_list)): print(f'{company[0] + 1} : Company: {company[1][1]} : MarketCap: {company[1][0]}') elif user_choice == 4: print('Exiting.') break else: print('Please enter a valid choice from the menu!')
# Small Pizza: $15 # Medium Pizza: $20 # Large Pizza: $25 # Pepperoni for Small Pizza: +$2 # Pepperoni for Medium or Large Pizza: +$3 # Extra cheese for any size pizza: + $1 print("Welcome to Python Pizza Deliveries!") size = input("What size pizza do you want? S, M, or L ") add_pepperoni = input("Do you want pepperoni? Y or N ") extra_cheese = input("Do you want extra cheese? Y or N ") bill = 0 if size == "S": bill += 15 elif size == "M": bill += 20 elif size == "L": bill += 25 if add_pepperoni == "Y": if size == "S": bill += 2 else: bill += 3 if extra_cheese == "Y": bill += 1 print(f"Your final bill is: ${bill}")
print('Welcome to Python Pizza Deliveries!') size = input('What size pizza do you want? S, M, or L ') add_pepperoni = input('Do you want pepperoni? Y or N ') extra_cheese = input('Do you want extra cheese? Y or N ') bill = 0 if size == 'S': bill += 15 elif size == 'M': bill += 20 elif size == 'L': bill += 25 if add_pepperoni == 'Y': if size == 'S': bill += 2 else: bill += 3 if extra_cheese == 'Y': bill += 1 print(f'Your final bill is: ${bill}')
# # PySNMP MIB module FMX1830 (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FMX1830 # Produced by pysmi-0.3.4 at Mon Apr 29 19:00:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") IpAddress, iso, MibIdentifier, ObjectIdentity, enterprises, Counter32, TimeTicks, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Gauge32, Integer32, Counter64, ModuleIdentity, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "iso", "MibIdentifier", "ObjectIdentity", "enterprises", "Counter32", "TimeTicks", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Gauge32", "Integer32", "Counter64", "ModuleIdentity", "Unsigned32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") fibronics = MibIdentifier((1, 3, 6, 1, 4, 1, 22)) fmxbd = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65)) devices = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1)) terminal_server = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2)).setLabel("terminal-server") port = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 1)) server = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 2)) service = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 3)) slot = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 4)) serverAdmin = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5)) serverMibs = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6)) serverDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 1)) fmxServerDevice = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 1, 1)) serverProtocol = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2)) protNone = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2, 1)) protTelnet = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2, 2)) protRlogin = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2, 3)) protLt = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2, 4)) fmxServerMib = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1)) fmxSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1)) fmxPort = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2)) fmxService = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3)) fmxProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4)) fmxIpSecurity = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5)) fmxHostname = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6)) fmxNameserver = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7)) fmxTacacs = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8)) fmxIp = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9)) fmxArp = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10)) fmxTcp = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11)) fmxTelnet = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12)) fmxRlogin = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13)) fmxLt = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14)) fmxQueue = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15)) fmxSnmp = MibIdentifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16)) class Character(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 255) class DisplayChar(Integer32): subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(32, 126) class LtGroupList(OctetString): pass vSysIdentifier = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 1), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: vSysIdentifier.setStatus('mandatory') vSysReboot = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ready", 1), ("execute", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysReboot.setStatus('mandatory') vSysLtGroupStatus = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("present", 1), ("absent", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vSysLtGroupStatus.setStatus('mandatory') vSysPrimaryBoot = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("rom", 1), ("mop", 2), ("bootp", 3), ("tftp", 4), ("card", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysPrimaryBoot.setStatus('mandatory') vSysSecondaryBoot = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("rom", 1), ("mop", 2), ("bootp", 3), ("tftp", 4), ("card", 5), ("none", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysSecondaryBoot.setStatus('mandatory') vSysBootFilePath = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysBootFilePath.setStatus('mandatory') vSysBootFileName = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 9))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysBootFileName.setStatus('mandatory') vSysBootServer = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 8), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysBootServer.setStatus('mandatory') vSysRemoteBoot = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysRemoteBoot.setStatus('mandatory') vSysEtherType = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("autoSelect", 1), ("thinWire", 2), ("thickWire", 3), ("tenBaseT", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysEtherType.setStatus('mandatory') vSysBroadband = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysBroadband.setStatus('mandatory') vSysPasswordLimit = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 250))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysPasswordLimit.setStatus('mandatory') vSysPrivPassword = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysPrivPassword.setStatus('mandatory') vSysMaintenancePassword = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 14), OctetString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSysMaintenancePassword.setStatus('mandatory') vPortBroadcast = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortBroadcast.setStatus('mandatory') vPortInactivityTimer = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 120))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortInactivityTimer.setStatus('mandatory') vPortAbsoluteTimer = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1439))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortAbsoluteTimer.setStatus('mandatory') vPortLock = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortLock.setStatus('mandatory') vPortLoginPassword = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortLoginPassword.setStatus('mandatory') vPortConsoleIndex = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortConsoleIndex.setStatus('mandatory') vPortFailover = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortFailover.setStatus('mandatory') vPortSignalCheck = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortSignalCheck.setStatus('mandatory') vPortLoginMsgEnable = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortLoginMsgEnable.setStatus('mandatory') vPortBreakDuration = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortBreakDuration.setStatus('mandatory') vPortXoffMark = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 510))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortXoffMark.setStatus('mandatory') vPortXonMark = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 510))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortXonMark.setStatus('mandatory') vPortNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 13), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortNumber.setStatus('mandatory') vPortTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14), ) if mibBuilder.loadTexts: vPortTable.setStatus('mandatory') vPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1), ).setIndexNames((0, "FMX1830", "vPortIndex")) if mibBuilder.loadTexts: vPortEntry.setStatus('mandatory') vPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortIndex.setStatus('mandatory') vPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("unknown", 1), ("physicalRS-232", 2), ("physicalRS-423", 3), ("physicalModem", 4), ("physicalLCDPanel", 5), ("virtualConsole", 6), ("virtualNPT", 7), ("virtualX25", 8), ("virtual3270", 9)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortType.setStatus('mandatory') vPortName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortName.setStatus('mandatory') vPortUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortUserName.setStatus('mandatory') vPortState = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 1), ("idle", 2), ("local", 3), ("connecting", 4), ("connected", 5), ("locked", 6), ("serial-interface", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortState.setStatus('mandatory') vPortLogout = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ready", 1), ("execute", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortLogout.setStatus('mandatory') vPortActiveSessions = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 7), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortActiveSessions.setStatus('mandatory') vPortCurrSessNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortCurrSessNumber.setStatus('mandatory') vPortCurrSessProt = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 9), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortCurrSessProt.setStatus('mandatory') vPortAccess = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("local", 1), ("remote", 2), ("dynamic", 3), ("none", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortAccess.setStatus('mandatory') vPortVirtualEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortVirtualEnable.setStatus('mandatory') vPortVirtualString = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 112))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortVirtualString.setStatus('mandatory') vPortSessionLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortSessionLimit.setStatus('mandatory') vPortProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortProfile.setStatus('mandatory') vPortQueueing = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortQueueing.setStatus('mandatory') vPortPasswordEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortPasswordEnable.setStatus('mandatory') vPortTacacsEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortTacacsEnable.setStatus('mandatory') vPortSecurityEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortSecurityEnable.setStatus('mandatory') vPortGroups = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 19), LtGroupList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortGroups.setStatus('mandatory') vPortBreakMode = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("local", 1), ("remote", 2), ("disabled", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortBreakMode.setStatus('mandatory') vPortBackSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 21), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortBackSwitch.setStatus('mandatory') vPortForwSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 22), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortForwSwitch.setStatus('mandatory') vPortLocalSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 23), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortLocalSwitch.setStatus('mandatory') vPortPrefSvc = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 24), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortPrefSvc.setStatus('mandatory') vPortPrefNode = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 25), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortPrefNode.setStatus('mandatory') vPortPrefPort = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 26), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortPrefPort.setStatus('mandatory') vPortPrefMode = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("dedicated", 1), ("preferred", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortPrefMode.setStatus('mandatory') vPortAutoConnect = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortAutoConnect.setStatus('mandatory') vPortPrompt = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 29), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 11))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortPrompt.setStatus('mandatory') vPortInactiveLogout = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortInactiveLogout.setStatus('mandatory') vPortAutoPrompt = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortAutoPrompt.setStatus('mandatory') vPortBroadcastEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortBroadcastEnable.setStatus('mandatory') vPortInterrupts = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortInterrupts.setStatus('mandatory') vPortMessageCodes = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortMessageCodes.setStatus('mandatory') vPortVerification = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortVerification.setStatus('mandatory') vPortDialup = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortDialup.setStatus('mandatory') vPortRemoteModify = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 37), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortRemoteModify.setStatus('mandatory') vPortAbsoluteLogout = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortAbsoluteLogout.setStatus('mandatory') vPortIOflush = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortIOflush.setStatus('mandatory') vPortLogoutMsgEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortLogoutMsgEnable.setStatus('mandatory') vPortScreenType = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("ansi", 1), ("softcopy", 2), ("hardcopy", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortScreenType.setStatus('mandatory') vPortFlowType = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("none", 1), ("xonXoff", 2), ("hardware", 3), ("ctsRts", 4), ("dsrDtr", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortFlowType.setStatus('mandatory') vPortInFlowState = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 43), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("unknown", 2), ("stop", 3), ("go", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortInFlowState.setStatus('mandatory') vPortOutFlowState = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("unknown", 2), ("stop", 3), ("go", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortOutFlowState.setStatus('mandatory') vPortCTSstate = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("on", 2), ("off", 3), ("unknown", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortCTSstate.setStatus('mandatory') vPortDSRstate = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 46), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("on", 2), ("off", 3), ("unknown", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortDSRstate.setStatus('mandatory') vPortDCDstate = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 47), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("on", 2), ("off", 3), ("unknown", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortDCDstate.setStatus('mandatory') vPortDTRstate = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 48), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("on", 2), ("off", 3), ("unknown", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortDTRstate.setStatus('mandatory') vPortRIstate = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 49), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("on", 2), ("off", 3), ("unknown", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortRIstate.setStatus('mandatory') vPortRTSstate = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("on", 2), ("off", 3), ("unknown", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortRTSstate.setStatus('mandatory') vPortSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 51), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=NamedValues(("none", 1), ("baud-110", 2), ("baud-300", 3), ("baud-600", 4), ("baud-1200", 5), ("baud-2400", 6), ("baud-4800", 7), ("baud-9600", 8), ("baud-14400", 9), ("baud-19200", 10), ("baud-28800", 11), ("baud-38400", 12), ("baud-57600", 13)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortSpeed.setStatus('mandatory') vPortCharSize = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 52), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("seven-bits", 2), ("eight-bits", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortCharSize.setStatus('mandatory') vPortParityType = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("not-applicable", 1), ("none", 2), ("even", 3), ("odd", 4), ("mark", 5), ("space", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortParityType.setStatus('mandatory') vPortAutobaud = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 54), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("not-applicable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortAutobaud.setStatus('mandatory') vPortModemControl = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 55), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("not-applicable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortModemControl.setStatus('mandatory') vPortDSRlogout = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 56), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("not-applicable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortDSRlogout.setStatus('mandatory') vPortRing = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 57), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("not-applicable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortRing.setStatus('mandatory') vPortDTRwait = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 58), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("not-applicable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortDTRwait.setStatus('mandatory') vPortSignalCheckEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 59), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("not-applicable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortSignalCheckEnable.setStatus('mandatory') vPortHandshake = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 60), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("signalCTS", 1), ("signalRI", 2), ("not-applicable", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vPortHandshake.setStatus('mandatory') vPortRcvChars = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 61), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortRcvChars.setStatus('mandatory') vPortTrnChars = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 62), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortTrnChars.setStatus('mandatory') vPortFrameErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 63), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortFrameErrs.setStatus('mandatory') vPortOverrunErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 64), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortOverrunErrs.setStatus('mandatory') vPortParityErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 65), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortParityErrs.setStatus('mandatory') vPortCharsDropped = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 66), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vPortCharsDropped.setStatus('mandatory') vSvcRatingMode = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("scaled", 1), ("unScaled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcRatingMode.setStatus('mandatory') vSvcCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vSvcCurrNumber.setStatus('mandatory') vSvcTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3), ) if mibBuilder.loadTexts: vSvcTable.setStatus('mandatory') vSvcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1), ).setIndexNames((0, "FMX1830", "vSvcName")) if mibBuilder.loadTexts: vSvcEntry.setStatus('mandatory') vSvcName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcName.setStatus('mandatory') vSvcPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(32, 32)).setFixedLength(32)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcPorts.setStatus('mandatory') vSvcIdent = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 40))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcIdent.setStatus('mandatory') vSvcRating = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vSvcRating.setStatus('mandatory') vSvcLtEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcLtEnable.setStatus('mandatory') vSvcTelEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcTelEnable.setStatus('mandatory') vSvcLprEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcLprEnable.setStatus('mandatory') vSvcRawEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcRawEnable.setStatus('mandatory') vSvcVirtualEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcVirtualEnable.setStatus('mandatory') vSvcVirtualText = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 112))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcVirtualText.setStatus('mandatory') vSvcConnectEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcConnectEnable.setStatus('mandatory') vSvcPassword = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcPassword.setStatus('mandatory') vSvcQueueEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcQueueEnable.setStatus('mandatory') vSvcIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 14), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcIpAddr.setStatus('mandatory') vSvcTcpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcTcpPort.setStatus('mandatory') vSvcProfile = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcProfile.setStatus('mandatory') vSvcStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSvcStatus.setStatus('mandatory') vProfCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vProfCurrNumber.setStatus('mandatory') vProfTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2), ) if mibBuilder.loadTexts: vProfTable.setStatus('mandatory') vProfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1), ).setIndexNames((0, "FMX1830", "vProfName")) if mibBuilder.loadTexts: vProfEntry.setStatus('mandatory') vProfName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfName.setStatus('mandatory') vProfDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfDomain.setStatus('mandatory') vProfConcatenate = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfConcatenate.setStatus('mandatory') vProfPermHostOnly = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfPermHostOnly.setStatus('mandatory') vProfTcpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfTcpPort.setStatus('mandatory') vProfTcpTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfTcpTimeout.setStatus('mandatory') vProfTcpKeepalive = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfTcpKeepalive.setStatus('mandatory') vProfIpTTL = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfIpTTL.setStatus('mandatory') vProfIpPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfIpPrecedence.setStatus('mandatory') vProfTermType = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfTermType.setStatus('mandatory') vProfCrToNet = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfCrToNet.setStatus('mandatory') vProfCrFromTerm = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 12), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfCrFromTerm.setStatus('mandatory') vProfPadChar = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 13), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfPadChar.setStatus('mandatory') vProfPadLength = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfPadLength.setStatus('mandatory') vProfEndRecord = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 15), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfEndRecord.setStatus('mandatory') vProfNop = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 16), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfNop.setStatus('mandatory') vProfDataMark = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 17), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfDataMark.setStatus('mandatory') vProfBreak = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 18), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfBreak.setStatus('mandatory') vProfIntProcess = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 19), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfIntProcess.setStatus('mandatory') vProfAbortOutput = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 20), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfAbortOutput.setStatus('mandatory') vProfAttention = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 21), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfAttention.setStatus('mandatory') vProfEraseChar = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 22), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfEraseChar.setStatus('mandatory') vProfEraseLine = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 23), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfEraseLine.setStatus('mandatory') vProfGoAhead = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 24), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfGoAhead.setStatus('mandatory') vProfNullPass = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfNullPass.setStatus('mandatory') vProfLocalEcho = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("attempt", 1), ("refuse", 2), ("allow", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfLocalEcho.setStatus('mandatory') vProfRemoteEcho = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("attempt", 1), ("refuse", 2), ("allow", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfRemoteEcho.setStatus('mandatory') vProfLocalBinary = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("attempt", 1), ("refuse", 2), ("allow", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfLocalBinary.setStatus('mandatory') vProfRemoteBinary = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("attempt", 1), ("refuse", 2), ("allow", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfRemoteBinary.setStatus('mandatory') vProfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vProfStatus.setStatus('mandatory') vSecEnable = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSecEnable.setStatus('mandatory') vSecCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vSecCurrNumber.setStatus('mandatory') vSecTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3), ) if mibBuilder.loadTexts: vSecTable.setStatus('mandatory') vSecEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1), ).setIndexNames((0, "FMX1830", "vSecIndex")) if mibBuilder.loadTexts: vSecEntry.setStatus('mandatory') vSecIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSecIndex.setStatus('mandatory') vSecAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSecAddress.setStatus('mandatory') vSecMask = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSecMask.setStatus('mandatory') vSecGroups = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 4), LtGroupList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSecGroups.setStatus('mandatory') vSecStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSecStatus.setStatus('mandatory') vHostCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vHostCurrNumber.setStatus('mandatory') vHostTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2), ) if mibBuilder.loadTexts: vHostTable.setStatus('mandatory') vHostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1), ).setIndexNames((0, "FMX1830", "vHostHostname")) if mibBuilder.loadTexts: vHostEntry.setStatus('mandatory') vHostHostname = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vHostHostname.setStatus('mandatory') vHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vHostAddress.setStatus('mandatory') vHostTTL = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vHostTTL.setStatus('mandatory') vHostStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vHostStatus.setStatus('mandatory') vNsRequestMode = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("recursive", 1), ("nonRecursive", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vNsRequestMode.setStatus('mandatory') vNsAllowLowerCase = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vNsAllowLowerCase.setStatus('mandatory') vNsCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vNsCurrNumber.setStatus('mandatory') vNsTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4), ) if mibBuilder.loadTexts: vNsTable.setStatus('mandatory') vNsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1), ).setIndexNames((0, "FMX1830", "vNsAddress")) if mibBuilder.loadTexts: vNsEntry.setStatus('mandatory') vNsAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vNsAddress.setStatus('mandatory') vNsHostname = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: vNsHostname.setStatus('mandatory') vNsTTL = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1, 3), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: vNsTTL.setStatus('mandatory') vNsStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vNsStatus.setStatus('mandatory') vTacServerCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vTacServerCurrNumber.setStatus('mandatory') vTacTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2), ) if mibBuilder.loadTexts: vTacTable.setStatus('mandatory') vTacEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2, 1), ).setIndexNames((0, "FMX1830", "vTacAddress")) if mibBuilder.loadTexts: vTacEntry.setStatus('mandatory') vTacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTacAddress.setStatus('mandatory') vTacHostname = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTacHostname.setStatus('mandatory') vTacStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTacStatus.setStatus('mandatory') vIpBcastAddr = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vIpBcastAddr.setStatus('mandatory') vIpMaxAddr = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(8, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vIpMaxAddr.setStatus('mandatory') vIpMaxHostHashEntries = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("size-11", 1), ("size-13", 2), ("size-17", 3), ("size-19", 4), ("size-23", 5), ("size-29", 6), ("size-31", 7), ("size-37", 8), ("size-41", 9), ("size-43", 10), ("size-47", 11), ("size-49", 12), ("size-53", 13), ("size-59", 14), ("size-61", 15), ("size-67", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vIpMaxHostHashEntries.setStatus('mandatory') vIpMaxNetHashEntries = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("size-11", 1), ("size-13", 2), ("size-17", 3), ("size-19", 4), ("size-23", 5), ("size-29", 6), ("size-31", 7), ("size-37", 8), ("size-41", 9), ("size-43", 10), ("size-47", 11), ("size-49", 12), ("size-53", 13), ("size-59", 14), ("size-61", 15), ("size-67", 16)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vIpMaxNetHashEntries.setStatus('mandatory') vIpMaxInterfaces = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vIpMaxInterfaces.setStatus('mandatory') vIpMaxRoutes = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(16, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vIpMaxRoutes.setStatus('mandatory') vArpMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(16, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vArpMaxEntries.setStatus('mandatory') vArpRetryTimeout = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vArpRetryTimeout.setStatus('mandatory') vArpRetryMax = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(2, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vArpRetryMax.setStatus('mandatory') vArpConfirmTimer = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 300))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vArpConfirmTimer.setStatus('mandatory') vArpIdleTimeout = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(60, 1800))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vArpIdleTimeout.setStatus('mandatory') vTcpIpPrecedence = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTcpIpPrecedence.setStatus('mandatory') vTcpSendQSize = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 8192))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTcpSendQSize.setStatus('mandatory') vTcpRcvWinSize = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 8192))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTcpRcvWinSize.setStatus('mandatory') vTcpSegSize = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(64, 511))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTcpSegSize.setStatus('mandatory') vTcpTimerInterval = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTcpTimerInterval.setStatus('mandatory') vTcpChecksumEnable = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTcpChecksumEnable.setStatus('mandatory') vTelCourierEnable = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelCourierEnable.setStatus('mandatory') vTelCourierText = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelCourierText.setStatus('mandatory') vTelSessCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessCurrNumber.setStatus('mandatory') vTelSessTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4), ) if mibBuilder.loadTexts: vTelSessTable.setStatus('mandatory') vTelSessEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1), ).setIndexNames((0, "FMX1830", "vTelSessPortIndex"), (0, "FMX1830", "vTelSessIndex")) if mibBuilder.loadTexts: vTelSessEntry.setStatus('mandatory') vTelSessPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessPortIndex.setStatus('mandatory') vTelSessIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessIndex.setStatus('mandatory') vTelSessOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("network", 2), ("local", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessOrigin.setStatus('mandatory') vTelSessState = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("starting", 1), ("running", 2), ("stopping", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessState.setStatus('mandatory') vTelSessDisconnect = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ready", 1), ("execute", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessDisconnect.setStatus('mandatory') vTelSessLocalAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 6), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessLocalAddr.setStatus('mandatory') vTelSessLocalTcpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessLocalTcpPort.setStatus('mandatory') vTelSessRemAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 8), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessRemAddr.setStatus('mandatory') vTelSessRemTcpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessRemTcpPort.setStatus('mandatory') vTelSessCrToNet = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessCrToNet.setStatus('mandatory') vTelSessCrFromTerm = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 11), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessCrFromTerm.setStatus('mandatory') vTelSessPadChar = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 12), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessPadChar.setStatus('mandatory') vTelSessPadLength = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessPadLength.setStatus('mandatory') vTelSessUserTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessUserTimeout.setStatus('mandatory') vTelSessKeepalive = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessKeepalive.setStatus('mandatory') vTelSessIpTTL = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessIpTTL.setStatus('mandatory') vTelSessIpPrecedence = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessIpPrecedence.setStatus('mandatory') vTelSessEndRecord = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 18), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessEndRecord.setStatus('mandatory') vTelSessNop = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 19), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessNop.setStatus('mandatory') vTelSessDataMark = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 20), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessDataMark.setStatus('mandatory') vTelSessBreak = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 21), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessBreak.setStatus('mandatory') vTelSessIntProcess = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 22), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessIntProcess.setStatus('mandatory') vTelSessAbortOutput = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 23), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessAbortOutput.setStatus('mandatory') vTelSessAttention = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 24), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessAttention.setStatus('mandatory') vTelSessEraseChar = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 25), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessEraseChar.setStatus('mandatory') vTelSessEraseLine = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 26), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessEraseLine.setStatus('mandatory') vTelSessGoAhead = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 27), Character()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessGoAhead.setStatus('mandatory') vTelSessNullPass = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vTelSessNullPass.setStatus('mandatory') vTelSessTermType = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 29), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessTermType.setStatus('mandatory') vTelSessLocalEcho = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessLocalEcho.setStatus('mandatory') vTelSessRemoteEcho = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessRemoteEcho.setStatus('mandatory') vTelSessLocalBinary = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessLocalBinary.setStatus('mandatory') vTelSessRemoteBinary = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vTelSessRemoteBinary.setStatus('mandatory') vRlogSessCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessCurrNumber.setStatus('mandatory') vRlogSessTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2), ) if mibBuilder.loadTexts: vRlogSessTable.setStatus('mandatory') vRlogSessEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1), ).setIndexNames((0, "FMX1830", "vRlogSessPortIndex"), (0, "FMX1830", "vRlogSessIndex")) if mibBuilder.loadTexts: vRlogSessEntry.setStatus('mandatory') vRlogSessPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessPortIndex.setStatus('mandatory') vRlogSessIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessIndex.setStatus('mandatory') vRlogSessOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("network", 2), ("local", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessOrigin.setStatus('mandatory') vRlogSessState = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("starting", 1), ("running", 2), ("stopping", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessState.setStatus('mandatory') vRlogSessDisconnect = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ready", 1), ("execute", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vRlogSessDisconnect.setStatus('mandatory') vRlogSessLocalAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 6), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessLocalAddr.setStatus('mandatory') vRlogSessLocalTcpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessLocalTcpPort.setStatus('mandatory') vRlogSessRemAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 8), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessRemAddr.setStatus('mandatory') vRlogSessRemTcpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessRemTcpPort.setStatus('mandatory') vRlogSessTermType = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: vRlogSessTermType.setStatus('mandatory') vLtNodeName = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtNodeName.setStatus('mandatory') vLtNodeID = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 40))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtNodeID.setStatus('mandatory') vLtNodeGroups = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 3), LtGroupList()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtNodeGroups.setStatus('mandatory') vLtNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtNumber.setStatus('mandatory') vLtMcastEnable = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtMcastEnable.setStatus('mandatory') vLtMcastTimer = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 180))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtMcastTimer.setStatus('mandatory') vLtCktTimer = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 200))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtCktTimer.setStatus('mandatory') vLtKeepaliveTimer = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 180))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtKeepaliveTimer.setStatus('mandatory') vLtMaxRetran = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 120))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtMaxRetran.setStatus('mandatory') vLtSlotPerCkt = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtSlotPerCkt.setStatus('mandatory') vLtMaxNodes = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(16, 1024))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtMaxNodes.setStatus('mandatory') vLtMaxSvcs = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(16, 2048))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtMaxSvcs.setStatus('mandatory') vLtMaxCkts = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtMaxCkts.setStatus('mandatory') vLtSessCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 14), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtSessCurrNumber.setStatus('mandatory') vLtSessTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15), ) if mibBuilder.loadTexts: vLtSessTable.setStatus('mandatory') vLtSessEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1), ).setIndexNames((0, "FMX1830", "vLtSessPortIndex")) if mibBuilder.loadTexts: vLtSessEntry.setStatus('mandatory') vLtSessPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtSessPortIndex.setStatus('mandatory') vLtSessIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtSessIndex.setStatus('mandatory') vLtSessOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("network", 2), ("local", 3), ("remote-port", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtSessOrigin.setStatus('mandatory') vLtSessState = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("starting", 1), ("running", 2), ("stopping", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtSessState.setStatus('mandatory') vLtSessDisconnect = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ready", 1), ("execute", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vLtSessDisconnect.setStatus('mandatory') vLtSessSvcName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtSessSvcName.setStatus('mandatory') vLtSessNodeName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtSessNodeName.setStatus('mandatory') vLtSessDestName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtSessDestName.setStatus('mandatory') vLtTotalRcvPkts = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtTotalRcvPkts.setStatus('mandatory') vLtTotalTrnPkts = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtTotalTrnPkts.setStatus('mandatory') vLtTotalRetranPkts = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtTotalRetranPkts.setStatus('mandatory') vLtRcvCorruptPkts = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtRcvCorruptPkts.setStatus('mandatory') vLtRcvCorruptMcasts = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtRcvCorruptMcasts.setStatus('mandatory') vLtRcvDuplicatePkts = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtRcvDuplicatePkts.setStatus('mandatory') vLtReqAccepted = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtReqAccepted.setStatus('mandatory') vLtReqRejected = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtReqRejected.setStatus('mandatory') vLtTotalNodeDiscards = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 24), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vLtTotalNodeDiscards.setStatus('mandatory') vQueMaxEntries = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(4, 128))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vQueMaxEntries.setStatus('mandatory') vQueCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vQueCurrNumber.setStatus('mandatory') vQueTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3), ) if mibBuilder.loadTexts: vQueTable.setStatus('mandatory') vQueEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1), ).setIndexNames((0, "FMX1830", "vQueEntryNumber")) if mibBuilder.loadTexts: vQueEntry.setStatus('mandatory') vQueEntryNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vQueEntryNumber.setStatus('mandatory') vQueSvcName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: vQueSvcName.setStatus('mandatory') vQueNodeName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: vQueNodeName.setStatus('mandatory') vQuePortName = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: vQuePortName.setStatus('mandatory') vQueStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vQueStatus.setStatus('mandatory') vSnmpReadCommunity = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSnmpReadCommunity.setStatus('mandatory') vSnmpWriteCommunity = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSnmpWriteCommunity.setStatus('mandatory') vSnmpReadWriteCommunity = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSnmpReadWriteCommunity.setStatus('mandatory') vSnmpWriteEnable = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSnmpWriteEnable.setStatus('mandatory') vSnmpTrapDestCurrNumber = MibScalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vSnmpTrapDestCurrNumber.setStatus('mandatory') vSnmpTrapDestTable = MibTable((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6), ) if mibBuilder.loadTexts: vSnmpTrapDestTable.setStatus('mandatory') vSnmpTrapDestEntry = MibTableRow((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1), ).setIndexNames((0, "FMX1830", "vSnmpTrapDestAddr")) if mibBuilder.loadTexts: vSnmpTrapDestEntry.setStatus('mandatory') vSnmpTrapDestAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSnmpTrapDestAddr.setStatus('mandatory') vSnmpTrapDestCommunity = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("read", 1), ("write", 2), ("readwrite", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSnmpTrapDestCommunity.setStatus('mandatory') vSnmpTrapDestColdEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSnmpTrapDestColdEnable.setStatus('mandatory') vSnmpTrapDestAuthEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSnmpTrapDestAuthEnable.setStatus('mandatory') vSnmpTrapDestStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vSnmpTrapDestStatus.setStatus('mandatory') mibBuilder.exportSymbols("FMX1830", vPortTrnChars=vPortTrnChars, vSysLtGroupStatus=vSysLtGroupStatus, vSvcIpAddr=vSvcIpAddr, vSvcTelEnable=vSvcTelEnable, vPortAutobaud=vPortAutobaud, vNsAllowLowerCase=vNsAllowLowerCase, vPortInactivityTimer=vPortInactivityTimer, vHostTable=vHostTable, vProfIntProcess=vProfIntProcess, vQueCurrNumber=vQueCurrNumber, protTelnet=protTelnet, vPortParityErrs=vPortParityErrs, vPortCurrSessProt=vPortCurrSessProt, vTelSessCrToNet=vTelSessCrToNet, vProfLocalBinary=vProfLocalBinary, vRlogSessState=vRlogSessState, vPortDTRwait=vPortDTRwait, vNsAddress=vNsAddress, vRlogSessRemTcpPort=vRlogSessRemTcpPort, vTelSessDisconnect=vTelSessDisconnect, vSvcPorts=vSvcPorts, fmxLt=fmxLt, vNsCurrNumber=vNsCurrNumber, vPortFrameErrs=vPortFrameErrs, vProfNullPass=vProfNullPass, vLtSessTable=vLtSessTable, vArpIdleTimeout=vArpIdleTimeout, DisplayChar=DisplayChar, vSecGroups=vSecGroups, vLtSessOrigin=vLtSessOrigin, vTcpRcvWinSize=vTcpRcvWinSize, vLtMaxRetran=vLtMaxRetran, vTacTable=vTacTable, fmxSystem=fmxSystem, vProfGoAhead=vProfGoAhead, vPortAutoPrompt=vPortAutoPrompt, vSecAddress=vSecAddress, vIpBcastAddr=vIpBcastAddr, vLtNodeID=vLtNodeID, protLt=protLt, vSnmpTrapDestAuthEnable=vSnmpTrapDestAuthEnable, vSnmpTrapDestCommunity=vSnmpTrapDestCommunity, vPortLogout=vPortLogout, vHostAddress=vHostAddress, vTelSessState=vTelSessState, vSvcConnectEnable=vSvcConnectEnable, vTelSessIntProcess=vTelSessIntProcess, vPortIOflush=vPortIOflush, vTelSessRemTcpPort=vTelSessRemTcpPort, vLtRcvCorruptMcasts=vLtRcvCorruptMcasts, vSysPrimaryBoot=vSysPrimaryBoot, vProfEraseChar=vProfEraseChar, vPortMessageCodes=vPortMessageCodes, vIpMaxInterfaces=vIpMaxInterfaces, vTelSessNop=vTelSessNop, vQueEntry=vQueEntry, vIpMaxNetHashEntries=vIpMaxNetHashEntries, vLtSessCurrNumber=vLtSessCurrNumber, vTelSessIpPrecedence=vTelSessIpPrecedence, vPortQueueing=vPortQueueing, vSysPrivPassword=vSysPrivPassword, vTelSessEraseChar=vTelSessEraseChar, vLtTotalTrnPkts=vLtTotalTrnPkts, vLtMcastEnable=vLtMcastEnable, vPortEntry=vPortEntry, vLtRcvDuplicatePkts=vLtRcvDuplicatePkts, vLtSessSvcName=vLtSessSvcName, vPortRTSstate=vPortRTSstate, vTelSessIndex=vTelSessIndex, vPortVirtualEnable=vPortVirtualEnable, vSvcLprEnable=vSvcLprEnable, vLtNodeName=vLtNodeName, vTelSessLocalTcpPort=vTelSessLocalTcpPort, vTelSessEraseLine=vTelSessEraseLine, vPortDCDstate=vPortDCDstate, vSvcName=vSvcName, vProfAbortOutput=vProfAbortOutput, vPortDTRstate=vPortDTRstate, vLtSessIndex=vLtSessIndex, vProfPermHostOnly=vProfPermHostOnly, vPortNumber=vPortNumber, vRlogSessCurrNumber=vRlogSessCurrNumber, vPortActiveSessions=vPortActiveSessions, vQueStatus=vQueStatus, vProfAttention=vProfAttention, vProfTermType=vProfTermType, fmxSnmp=fmxSnmp, vTelSessPortIndex=vTelSessPortIndex, serverDevice=serverDevice, vSysBootServer=vSysBootServer, vSysPasswordLimit=vSysPasswordLimit, vLtReqRejected=vLtReqRejected, vPortPrefSvc=vPortPrefSvc, vIpMaxHostHashEntries=vIpMaxHostHashEntries, serverAdmin=serverAdmin, vSecEntry=vSecEntry, vTelSessLocalAddr=vTelSessLocalAddr, vRlogSessDisconnect=vRlogSessDisconnect, vLtNodeGroups=vLtNodeGroups, vRlogSessEntry=vRlogSessEntry, vRlogSessLocalAddr=vRlogSessLocalAddr, vLtSlotPerCkt=vLtSlotPerCkt, vProfCurrNumber=vProfCurrNumber, vProfPadChar=vProfPadChar, vPortHandshake=vPortHandshake, vPortAbsoluteTimer=vPortAbsoluteTimer, vSnmpTrapDestColdEnable=vSnmpTrapDestColdEnable, vTelSessLocalEcho=vTelSessLocalEcho, vPortState=vPortState, vNsTable=vNsTable, vPortRIstate=vPortRIstate, fmxServerDevice=fmxServerDevice, vIpMaxAddr=vIpMaxAddr, vArpConfirmTimer=vArpConfirmTimer, vRlogSessTable=vRlogSessTable, vPortFlowType=vPortFlowType, protNone=protNone, fmxbd=fmxbd, vPortLoginPassword=vPortLoginPassword, vQueEntryNumber=vQueEntryNumber, vSecEnable=vSecEnable, vProfRemoteBinary=vProfRemoteBinary, fmxTcp=fmxTcp, vPortAutoConnect=vPortAutoConnect, vSysEtherType=vSysEtherType, vRlogSessTermType=vRlogSessTermType, vProfDomain=vProfDomain, vSvcQueueEnable=vSvcQueueEnable, vSvcRating=vSvcRating, vHostEntry=vHostEntry, vPortRemoteModify=vPortRemoteModify, vProfDataMark=vProfDataMark, vTcpIpPrecedence=vTcpIpPrecedence, vTcpTimerInterval=vTcpTimerInterval, service=service, fmxRlogin=fmxRlogin, vTelSessEntry=vTelSessEntry, vSvcIdent=vSvcIdent, vTelSessEndRecord=vTelSessEndRecord, vTelSessCrFromTerm=vTelSessCrFromTerm, vPortModemControl=vPortModemControl, vLtNumber=vLtNumber, vPortXonMark=vPortXonMark, vPortIndex=vPortIndex, vPortBreakMode=vPortBreakMode, vLtMcastTimer=vLtMcastTimer, vQueNodeName=vQueNodeName, vPortPrefPort=vPortPrefPort, vLtSessEntry=vLtSessEntry, vRlogSessRemAddr=vRlogSessRemAddr, vTelSessPadChar=vTelSessPadChar, vTcpSegSize=vTcpSegSize, vSecStatus=vSecStatus, vPortConsoleIndex=vPortConsoleIndex, vHostCurrNumber=vHostCurrNumber, vSnmpTrapDestTable=vSnmpTrapDestTable, vPortSessionLimit=vPortSessionLimit, vQueSvcName=vQueSvcName, vPortBroadcast=vPortBroadcast, vProfTcpPort=vProfTcpPort, vTelSessRemoteEcho=vTelSessRemoteEcho, vPortType=vPortType, vProfEntry=vProfEntry, vProfEndRecord=vProfEndRecord, devices=devices, vHostHostname=vHostHostname, vHostStatus=vHostStatus, fmxServerMib=fmxServerMib, fmxHostname=fmxHostname, vSvcVirtualText=vSvcVirtualText, vPortSpeed=vPortSpeed, vTelSessCurrNumber=vTelSessCurrNumber, fmxQueue=fmxQueue, vTelSessBreak=vTelSessBreak, vTelSessLocalBinary=vTelSessLocalBinary, vPortPrompt=vPortPrompt, vNsTTL=vNsTTL, fmxTelnet=fmxTelnet, vProfCrFromTerm=vProfCrFromTerm, vTacAddress=vTacAddress, vPortUserName=vPortUserName, vSvcCurrNumber=vSvcCurrNumber, vSvcLtEnable=vSvcLtEnable, vPortInterrupts=vPortInterrupts, vTcpSendQSize=vTcpSendQSize, vProfTable=vProfTable, vSecCurrNumber=vSecCurrNumber, vPortParityType=vPortParityType, vPortForwSwitch=vPortForwSwitch, vHostTTL=vHostTTL, vTelSessAttention=vTelSessAttention, vSecTable=vSecTable, vLtSessState=vLtSessState, vPortPasswordEnable=vPortPasswordEnable, vProfConcatenate=vProfConcatenate, vTelSessTable=vTelSessTable, terminal_server=terminal_server, vLtMaxNodes=vLtMaxNodes, vTelSessRemAddr=vTelSessRemAddr, port=port, vTelSessIpTTL=vTelSessIpTTL, fmxIp=fmxIp, vSecMask=vSecMask, vPortPrefMode=vPortPrefMode, vProfPadLength=vProfPadLength, vPortVerification=vPortVerification, vSysSecondaryBoot=vSysSecondaryBoot, vProfIpTTL=vProfIpTTL, vSnmpTrapDestCurrNumber=vSnmpTrapDestCurrNumber, vRlogSessOrigin=vRlogSessOrigin, serverProtocol=serverProtocol, vPortCharsDropped=vPortCharsDropped, vPortSignalCheck=vPortSignalCheck, vTelCourierText=vTelCourierText, protRlogin=protRlogin, vSysMaintenancePassword=vSysMaintenancePassword, vPortGroups=vPortGroups, fmxNameserver=fmxNameserver, fibronics=fibronics, vLtSessDisconnect=vLtSessDisconnect, serverMibs=serverMibs, vPortLogoutMsgEnable=vPortLogoutMsgEnable, vPortPrefNode=vPortPrefNode, vSvcRatingMode=vSvcRatingMode, vPortAbsoluteLogout=vPortAbsoluteLogout, vPortRcvChars=vPortRcvChars, vSvcTable=vSvcTable, vPortLoginMsgEnable=vPortLoginMsgEnable, vLtTotalRetranPkts=vLtTotalRetranPkts, vPortDSRstate=vPortDSRstate, vSvcPassword=vSvcPassword, vSnmpReadCommunity=vSnmpReadCommunity, vLtKeepaliveTimer=vLtKeepaliveTimer, vArpRetryMax=vArpRetryMax, fmxIpSecurity=fmxIpSecurity, vProfIpPrecedence=vProfIpPrecedence, vSvcProfile=vSvcProfile, vPortDialup=vPortDialup, vSysBroadband=vSysBroadband, vSnmpReadWriteCommunity=vSnmpReadWriteCommunity, vSnmpTrapDestStatus=vSnmpTrapDestStatus, vSvcTcpPort=vSvcTcpPort, vProfNop=vProfNop, vTelSessDataMark=vTelSessDataMark, vLtTotalRcvPkts=vLtTotalRcvPkts, vQuePortName=vQuePortName, vSvcRawEnable=vSvcRawEnable, vArpRetryTimeout=vArpRetryTimeout, vLtTotalNodeDiscards=vLtTotalNodeDiscards, vQueMaxEntries=vQueMaxEntries, vTelSessAbortOutput=vTelSessAbortOutput, vPortCharSize=vPortCharSize, vPortProfile=vPortProfile, vPortAccess=vPortAccess) mibBuilder.exportSymbols("FMX1830", vTelSessTermType=vTelSessTermType, vLtSessNodeName=vLtSessNodeName, Character=Character, vSvcEntry=vSvcEntry, vPortRing=vPortRing, vPortSignalCheckEnable=vPortSignalCheckEnable, vPortScreenType=vPortScreenType, vPortVirtualString=vPortVirtualString, vProfLocalEcho=vProfLocalEcho, fmxArp=fmxArp, vProfBreak=vProfBreak, vPortInactiveLogout=vPortInactiveLogout, vPortLock=vPortLock, vLtSessDestName=vLtSessDestName, slot=slot, vProfEraseLine=vProfEraseLine, vPortInFlowState=vPortInFlowState, vNsEntry=vNsEntry, fmxProfile=fmxProfile, vIpMaxRoutes=vIpMaxRoutes, vTacHostname=vTacHostname, vPortLocalSwitch=vPortLocalSwitch, vProfTcpTimeout=vProfTcpTimeout, vProfTcpKeepalive=vProfTcpKeepalive, vProfStatus=vProfStatus, vNsHostname=vNsHostname, vTelCourierEnable=vTelCourierEnable, vLtRcvCorruptPkts=vLtRcvCorruptPkts, fmxTacacs=fmxTacacs, LtGroupList=LtGroupList, vTelSessNullPass=vTelSessNullPass, vTacStatus=vTacStatus, vPortFailover=vPortFailover, vPortCTSstate=vPortCTSstate, vSvcVirtualEnable=vSvcVirtualEnable, vTelSessOrigin=vTelSessOrigin, vPortXoffMark=vPortXoffMark, vNsStatus=vNsStatus, vRlogSessIndex=vRlogSessIndex, vLtMaxCkts=vLtMaxCkts, vSysReboot=vSysReboot, vSvcStatus=vSvcStatus, vProfName=vProfName, vQueTable=vQueTable, vSnmpWriteEnable=vSnmpWriteEnable, vSysIdentifier=vSysIdentifier, fmxService=fmxService, vLtReqAccepted=vLtReqAccepted, vPortOverrunErrs=vPortOverrunErrs, vPortOutFlowState=vPortOutFlowState, vTelSessRemoteBinary=vTelSessRemoteBinary, vSnmpTrapDestEntry=vSnmpTrapDestEntry, vPortName=vPortName, vArpMaxEntries=vArpMaxEntries, vPortBreakDuration=vPortBreakDuration, vSnmpTrapDestAddr=vSnmpTrapDestAddr, vSysRemoteBoot=vSysRemoteBoot, vPortDSRlogout=vPortDSRlogout, vTcpChecksumEnable=vTcpChecksumEnable, vTelSessUserTimeout=vTelSessUserTimeout, vSysBootFilePath=vSysBootFilePath, vSysBootFileName=vSysBootFileName, vRlogSessPortIndex=vRlogSessPortIndex, vRlogSessLocalTcpPort=vRlogSessLocalTcpPort, vTacEntry=vTacEntry, vPortTacacsEnable=vPortTacacsEnable, vTelSessPadLength=vTelSessPadLength, vLtMaxSvcs=vLtMaxSvcs, vLtSessPortIndex=vLtSessPortIndex, vPortBroadcastEnable=vPortBroadcastEnable, vTacServerCurrNumber=vTacServerCurrNumber, vPortSecurityEnable=vPortSecurityEnable, vTelSessGoAhead=vTelSessGoAhead, vProfCrToNet=vProfCrToNet, vPortTable=vPortTable, vSnmpWriteCommunity=vSnmpWriteCommunity, vLtCktTimer=vLtCktTimer, vSecIndex=vSecIndex, vProfRemoteEcho=vProfRemoteEcho, server=server, vNsRequestMode=vNsRequestMode, fmxPort=fmxPort, vPortCurrSessNumber=vPortCurrSessNumber, vPortBackSwitch=vPortBackSwitch, vTelSessKeepalive=vTelSessKeepalive)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, single_value_constraint, value_size_constraint, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (ip_address, iso, mib_identifier, object_identity, enterprises, counter32, time_ticks, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, gauge32, integer32, counter64, module_identity, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'iso', 'MibIdentifier', 'ObjectIdentity', 'enterprises', 'Counter32', 'TimeTicks', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Gauge32', 'Integer32', 'Counter64', 'ModuleIdentity', 'Unsigned32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') fibronics = mib_identifier((1, 3, 6, 1, 4, 1, 22)) fmxbd = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65)) devices = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1)) terminal_server = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2)).setLabel('terminal-server') port = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 1)) server = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 2)) service = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 3)) slot = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 4)) server_admin = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5)) server_mibs = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6)) server_device = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 1)) fmx_server_device = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 1, 1)) server_protocol = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2)) prot_none = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2, 1)) prot_telnet = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2, 2)) prot_rlogin = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2, 3)) prot_lt = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 5, 2, 4)) fmx_server_mib = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1)) fmx_system = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1)) fmx_port = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2)) fmx_service = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3)) fmx_profile = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4)) fmx_ip_security = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5)) fmx_hostname = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6)) fmx_nameserver = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7)) fmx_tacacs = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8)) fmx_ip = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9)) fmx_arp = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10)) fmx_tcp = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11)) fmx_telnet = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12)) fmx_rlogin = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13)) fmx_lt = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14)) fmx_queue = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15)) fmx_snmp = mib_identifier((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16)) class Character(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 255) class Displaychar(Integer32): subtype_spec = Integer32.subtypeSpec + value_range_constraint(32, 126) class Ltgrouplist(OctetString): pass v_sys_identifier = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 1), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: vSysIdentifier.setStatus('mandatory') v_sys_reboot = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ready', 1), ('execute', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysReboot.setStatus('mandatory') v_sys_lt_group_status = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('present', 1), ('absent', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vSysLtGroupStatus.setStatus('mandatory') v_sys_primary_boot = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('rom', 1), ('mop', 2), ('bootp', 3), ('tftp', 4), ('card', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysPrimaryBoot.setStatus('mandatory') v_sys_secondary_boot = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('rom', 1), ('mop', 2), ('bootp', 3), ('tftp', 4), ('card', 5), ('none', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysSecondaryBoot.setStatus('mandatory') v_sys_boot_file_path = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysBootFilePath.setStatus('mandatory') v_sys_boot_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 9))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysBootFileName.setStatus('mandatory') v_sys_boot_server = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 8), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysBootServer.setStatus('mandatory') v_sys_remote_boot = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysRemoteBoot.setStatus('mandatory') v_sys_ether_type = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('autoSelect', 1), ('thinWire', 2), ('thickWire', 3), ('tenBaseT', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysEtherType.setStatus('mandatory') v_sys_broadband = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysBroadband.setStatus('mandatory') v_sys_password_limit = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 12), integer32().subtype(subtypeSpec=value_range_constraint(0, 250))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysPasswordLimit.setStatus('mandatory') v_sys_priv_password = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(1, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysPrivPassword.setStatus('mandatory') v_sys_maintenance_password = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 1, 14), octet_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSysMaintenancePassword.setStatus('mandatory') v_port_broadcast = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortBroadcast.setStatus('mandatory') v_port_inactivity_timer = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 120))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortInactivityTimer.setStatus('mandatory') v_port_absolute_timer = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 1439))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortAbsoluteTimer.setStatus('mandatory') v_port_lock = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortLock.setStatus('mandatory') v_port_login_password = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 5), display_string().subtype(subtypeSpec=value_size_constraint(1, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortLoginPassword.setStatus('mandatory') v_port_console_index = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortConsoleIndex.setStatus('mandatory') v_port_failover = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortFailover.setStatus('mandatory') v_port_signal_check = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortSignalCheck.setStatus('mandatory') v_port_login_msg_enable = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortLoginMsgEnable.setStatus('mandatory') v_port_break_duration = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 10), integer32().subtype(subtypeSpec=value_range_constraint(10, 200))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortBreakDuration.setStatus('mandatory') v_port_xoff_mark = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 11), integer32().subtype(subtypeSpec=value_range_constraint(2, 510))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortXoffMark.setStatus('mandatory') v_port_xon_mark = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 12), integer32().subtype(subtypeSpec=value_range_constraint(2, 510))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortXonMark.setStatus('mandatory') v_port_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 13), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortNumber.setStatus('mandatory') v_port_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14)) if mibBuilder.loadTexts: vPortTable.setStatus('mandatory') v_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1)).setIndexNames((0, 'FMX1830', 'vPortIndex')) if mibBuilder.loadTexts: vPortEntry.setStatus('mandatory') v_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortIndex.setStatus('mandatory') v_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('unknown', 1), ('physicalRS-232', 2), ('physicalRS-423', 3), ('physicalModem', 4), ('physicalLCDPanel', 5), ('virtualConsole', 6), ('virtualNPT', 7), ('virtualX25', 8), ('virtual3270', 9)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortType.setStatus('mandatory') v_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortName.setStatus('mandatory') v_port_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortUserName.setStatus('mandatory') v_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('unknown', 1), ('idle', 2), ('local', 3), ('connecting', 4), ('connected', 5), ('locked', 6), ('serial-interface', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortState.setStatus('mandatory') v_port_logout = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ready', 1), ('execute', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortLogout.setStatus('mandatory') v_port_active_sessions = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 7), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortActiveSessions.setStatus('mandatory') v_port_curr_sess_number = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortCurrSessNumber.setStatus('mandatory') v_port_curr_sess_prot = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 9), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortCurrSessProt.setStatus('mandatory') v_port_access = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('local', 1), ('remote', 2), ('dynamic', 3), ('none', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortAccess.setStatus('mandatory') v_port_virtual_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortVirtualEnable.setStatus('mandatory') v_port_virtual_string = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(0, 112))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortVirtualString.setStatus('mandatory') v_port_session_limit = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortSessionLimit.setStatus('mandatory') v_port_profile = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortProfile.setStatus('mandatory') v_port_queueing = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortQueueing.setStatus('mandatory') v_port_password_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortPasswordEnable.setStatus('mandatory') v_port_tacacs_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortTacacsEnable.setStatus('mandatory') v_port_security_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortSecurityEnable.setStatus('mandatory') v_port_groups = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 19), lt_group_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortGroups.setStatus('mandatory') v_port_break_mode = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('local', 1), ('remote', 2), ('disabled', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortBreakMode.setStatus('mandatory') v_port_back_switch = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 21), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortBackSwitch.setStatus('mandatory') v_port_forw_switch = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 22), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortForwSwitch.setStatus('mandatory') v_port_local_switch = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 23), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortLocalSwitch.setStatus('mandatory') v_port_pref_svc = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 24), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortPrefSvc.setStatus('mandatory') v_port_pref_node = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 25), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortPrefNode.setStatus('mandatory') v_port_pref_port = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 26), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortPrefPort.setStatus('mandatory') v_port_pref_mode = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('dedicated', 1), ('preferred', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortPrefMode.setStatus('mandatory') v_port_auto_connect = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortAutoConnect.setStatus('mandatory') v_port_prompt = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 29), display_string().subtype(subtypeSpec=value_size_constraint(0, 11))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortPrompt.setStatus('mandatory') v_port_inactive_logout = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortInactiveLogout.setStatus('mandatory') v_port_auto_prompt = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortAutoPrompt.setStatus('mandatory') v_port_broadcast_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortBroadcastEnable.setStatus('mandatory') v_port_interrupts = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortInterrupts.setStatus('mandatory') v_port_message_codes = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 34), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortMessageCodes.setStatus('mandatory') v_port_verification = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 35), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortVerification.setStatus('mandatory') v_port_dialup = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 36), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortDialup.setStatus('mandatory') v_port_remote_modify = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 37), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortRemoteModify.setStatus('mandatory') v_port_absolute_logout = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortAbsoluteLogout.setStatus('mandatory') v_port_i_oflush = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortIOflush.setStatus('mandatory') v_port_logout_msg_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 40), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortLogoutMsgEnable.setStatus('mandatory') v_port_screen_type = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('ansi', 1), ('softcopy', 2), ('hardcopy', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortScreenType.setStatus('mandatory') v_port_flow_type = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('none', 1), ('xonXoff', 2), ('hardware', 3), ('ctsRts', 4), ('dsrDtr', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortFlowType.setStatus('mandatory') v_port_in_flow_state = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 43), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('unknown', 2), ('stop', 3), ('go', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortInFlowState.setStatus('mandatory') v_port_out_flow_state = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 44), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('unknown', 2), ('stop', 3), ('go', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortOutFlowState.setStatus('mandatory') v_port_ct_sstate = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 45), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('on', 2), ('off', 3), ('unknown', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortCTSstate.setStatus('mandatory') v_port_ds_rstate = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 46), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('on', 2), ('off', 3), ('unknown', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortDSRstate.setStatus('mandatory') v_port_dc_dstate = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 47), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('on', 2), ('off', 3), ('unknown', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortDCDstate.setStatus('mandatory') v_port_dt_rstate = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 48), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('on', 2), ('off', 3), ('unknown', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortDTRstate.setStatus('mandatory') v_port_r_istate = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 49), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('on', 2), ('off', 3), ('unknown', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortRIstate.setStatus('mandatory') v_port_rt_sstate = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 50), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('on', 2), ('off', 3), ('unknown', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortRTSstate.setStatus('mandatory') v_port_speed = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 51), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13))).clone(namedValues=named_values(('none', 1), ('baud-110', 2), ('baud-300', 3), ('baud-600', 4), ('baud-1200', 5), ('baud-2400', 6), ('baud-4800', 7), ('baud-9600', 8), ('baud-14400', 9), ('baud-19200', 10), ('baud-28800', 11), ('baud-38400', 12), ('baud-57600', 13)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortSpeed.setStatus('mandatory') v_port_char_size = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 52), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('seven-bits', 2), ('eight-bits', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortCharSize.setStatus('mandatory') v_port_parity_type = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 53), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('not-applicable', 1), ('none', 2), ('even', 3), ('odd', 4), ('mark', 5), ('space', 6)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortParityType.setStatus('mandatory') v_port_autobaud = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 54), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('not-applicable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortAutobaud.setStatus('mandatory') v_port_modem_control = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 55), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('not-applicable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortModemControl.setStatus('mandatory') v_port_ds_rlogout = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 56), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('not-applicable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortDSRlogout.setStatus('mandatory') v_port_ring = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 57), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('not-applicable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortRing.setStatus('mandatory') v_port_dt_rwait = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 58), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('not-applicable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortDTRwait.setStatus('mandatory') v_port_signal_check_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 59), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2), ('not-applicable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortSignalCheckEnable.setStatus('mandatory') v_port_handshake = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 60), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('signalCTS', 1), ('signalRI', 2), ('not-applicable', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vPortHandshake.setStatus('mandatory') v_port_rcv_chars = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 61), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortRcvChars.setStatus('mandatory') v_port_trn_chars = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 62), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortTrnChars.setStatus('mandatory') v_port_frame_errs = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 63), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortFrameErrs.setStatus('mandatory') v_port_overrun_errs = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 64), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortOverrunErrs.setStatus('mandatory') v_port_parity_errs = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 65), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortParityErrs.setStatus('mandatory') v_port_chars_dropped = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 2, 14, 1, 66), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vPortCharsDropped.setStatus('mandatory') v_svc_rating_mode = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('scaled', 1), ('unScaled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcRatingMode.setStatus('mandatory') v_svc_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vSvcCurrNumber.setStatus('mandatory') v_svc_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3)) if mibBuilder.loadTexts: vSvcTable.setStatus('mandatory') v_svc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1)).setIndexNames((0, 'FMX1830', 'vSvcName')) if mibBuilder.loadTexts: vSvcEntry.setStatus('mandatory') v_svc_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcName.setStatus('mandatory') v_svc_ports = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(32, 32)).setFixedLength(32)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcPorts.setStatus('mandatory') v_svc_ident = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 40))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcIdent.setStatus('mandatory') v_svc_rating = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vSvcRating.setStatus('mandatory') v_svc_lt_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcLtEnable.setStatus('mandatory') v_svc_tel_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcTelEnable.setStatus('mandatory') v_svc_lpr_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcLprEnable.setStatus('mandatory') v_svc_raw_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcRawEnable.setStatus('mandatory') v_svc_virtual_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcVirtualEnable.setStatus('mandatory') v_svc_virtual_text = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(0, 112))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcVirtualText.setStatus('mandatory') v_svc_connect_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcConnectEnable.setStatus('mandatory') v_svc_password = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcPassword.setStatus('mandatory') v_svc_queue_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcQueueEnable.setStatus('mandatory') v_svc_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 14), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcIpAddr.setStatus('mandatory') v_svc_tcp_port = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcTcpPort.setStatus('mandatory') v_svc_profile = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcProfile.setStatus('mandatory') v_svc_status = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 3, 3, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSvcStatus.setStatus('mandatory') v_prof_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vProfCurrNumber.setStatus('mandatory') v_prof_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2)) if mibBuilder.loadTexts: vProfTable.setStatus('mandatory') v_prof_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1)).setIndexNames((0, 'FMX1830', 'vProfName')) if mibBuilder.loadTexts: vProfEntry.setStatus('mandatory') v_prof_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfName.setStatus('mandatory') v_prof_domain = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfDomain.setStatus('mandatory') v_prof_concatenate = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfConcatenate.setStatus('mandatory') v_prof_perm_host_only = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfPermHostOnly.setStatus('mandatory') v_prof_tcp_port = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfTcpPort.setStatus('mandatory') v_prof_tcp_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfTcpTimeout.setStatus('mandatory') v_prof_tcp_keepalive = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfTcpKeepalive.setStatus('mandatory') v_prof_ip_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfIpTTL.setStatus('mandatory') v_prof_ip_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfIpPrecedence.setStatus('mandatory') v_prof_term_type = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfTermType.setStatus('mandatory') v_prof_cr_to_net = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(1, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfCrToNet.setStatus('mandatory') v_prof_cr_from_term = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 12), octet_string().subtype(subtypeSpec=value_size_constraint(1, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfCrFromTerm.setStatus('mandatory') v_prof_pad_char = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 13), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfPadChar.setStatus('mandatory') v_prof_pad_length = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfPadLength.setStatus('mandatory') v_prof_end_record = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 15), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfEndRecord.setStatus('mandatory') v_prof_nop = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 16), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfNop.setStatus('mandatory') v_prof_data_mark = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 17), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfDataMark.setStatus('mandatory') v_prof_break = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 18), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfBreak.setStatus('mandatory') v_prof_int_process = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 19), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfIntProcess.setStatus('mandatory') v_prof_abort_output = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 20), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfAbortOutput.setStatus('mandatory') v_prof_attention = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 21), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfAttention.setStatus('mandatory') v_prof_erase_char = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 22), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfEraseChar.setStatus('mandatory') v_prof_erase_line = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 23), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfEraseLine.setStatus('mandatory') v_prof_go_ahead = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 24), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfGoAhead.setStatus('mandatory') v_prof_null_pass = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfNullPass.setStatus('mandatory') v_prof_local_echo = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('attempt', 1), ('refuse', 2), ('allow', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfLocalEcho.setStatus('mandatory') v_prof_remote_echo = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('attempt', 1), ('refuse', 2), ('allow', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfRemoteEcho.setStatus('mandatory') v_prof_local_binary = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('attempt', 1), ('refuse', 2), ('allow', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfLocalBinary.setStatus('mandatory') v_prof_remote_binary = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 29), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('attempt', 1), ('refuse', 2), ('allow', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfRemoteBinary.setStatus('mandatory') v_prof_status = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 4, 2, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vProfStatus.setStatus('mandatory') v_sec_enable = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSecEnable.setStatus('mandatory') v_sec_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vSecCurrNumber.setStatus('mandatory') v_sec_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3)) if mibBuilder.loadTexts: vSecTable.setStatus('mandatory') v_sec_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1)).setIndexNames((0, 'FMX1830', 'vSecIndex')) if mibBuilder.loadTexts: vSecEntry.setStatus('mandatory') v_sec_index = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSecIndex.setStatus('mandatory') v_sec_address = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSecAddress.setStatus('mandatory') v_sec_mask = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSecMask.setStatus('mandatory') v_sec_groups = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 4), lt_group_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSecGroups.setStatus('mandatory') v_sec_status = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 5, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSecStatus.setStatus('mandatory') v_host_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vHostCurrNumber.setStatus('mandatory') v_host_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2)) if mibBuilder.loadTexts: vHostTable.setStatus('mandatory') v_host_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1)).setIndexNames((0, 'FMX1830', 'vHostHostname')) if mibBuilder.loadTexts: vHostEntry.setStatus('mandatory') v_host_hostname = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vHostHostname.setStatus('mandatory') v_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vHostAddress.setStatus('mandatory') v_host_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vHostTTL.setStatus('mandatory') v_host_status = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 6, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vHostStatus.setStatus('mandatory') v_ns_request_mode = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('recursive', 1), ('nonRecursive', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vNsRequestMode.setStatus('mandatory') v_ns_allow_lower_case = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vNsAllowLowerCase.setStatus('mandatory') v_ns_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vNsCurrNumber.setStatus('mandatory') v_ns_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4)) if mibBuilder.loadTexts: vNsTable.setStatus('mandatory') v_ns_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1)).setIndexNames((0, 'FMX1830', 'vNsAddress')) if mibBuilder.loadTexts: vNsEntry.setStatus('mandatory') v_ns_address = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vNsAddress.setStatus('mandatory') v_ns_hostname = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: vNsHostname.setStatus('mandatory') v_ns_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1, 3), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: vNsTTL.setStatus('mandatory') v_ns_status = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 7, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vNsStatus.setStatus('mandatory') v_tac_server_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vTacServerCurrNumber.setStatus('mandatory') v_tac_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2)) if mibBuilder.loadTexts: vTacTable.setStatus('mandatory') v_tac_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2, 1)).setIndexNames((0, 'FMX1830', 'vTacAddress')) if mibBuilder.loadTexts: vTacEntry.setStatus('mandatory') v_tac_address = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTacAddress.setStatus('mandatory') v_tac_hostname = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTacHostname.setStatus('mandatory') v_tac_status = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 8, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTacStatus.setStatus('mandatory') v_ip_bcast_addr = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vIpBcastAddr.setStatus('mandatory') v_ip_max_addr = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 2), integer32().subtype(subtypeSpec=value_range_constraint(8, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vIpMaxAddr.setStatus('mandatory') v_ip_max_host_hash_entries = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=named_values(('size-11', 1), ('size-13', 2), ('size-17', 3), ('size-19', 4), ('size-23', 5), ('size-29', 6), ('size-31', 7), ('size-37', 8), ('size-41', 9), ('size-43', 10), ('size-47', 11), ('size-49', 12), ('size-53', 13), ('size-59', 14), ('size-61', 15), ('size-67', 16)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vIpMaxHostHashEntries.setStatus('mandatory') v_ip_max_net_hash_entries = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=named_values(('size-11', 1), ('size-13', 2), ('size-17', 3), ('size-19', 4), ('size-23', 5), ('size-29', 6), ('size-31', 7), ('size-37', 8), ('size-41', 9), ('size-43', 10), ('size-47', 11), ('size-49', 12), ('size-53', 13), ('size-59', 14), ('size-61', 15), ('size-67', 16)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vIpMaxNetHashEntries.setStatus('mandatory') v_ip_max_interfaces = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 5), integer32().subtype(subtypeSpec=value_range_constraint(2, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vIpMaxInterfaces.setStatus('mandatory') v_ip_max_routes = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 9, 6), integer32().subtype(subtypeSpec=value_range_constraint(16, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vIpMaxRoutes.setStatus('mandatory') v_arp_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 1), integer32().subtype(subtypeSpec=value_range_constraint(16, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vArpMaxEntries.setStatus('mandatory') v_arp_retry_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vArpRetryTimeout.setStatus('mandatory') v_arp_retry_max = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 3), integer32().subtype(subtypeSpec=value_range_constraint(2, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vArpRetryMax.setStatus('mandatory') v_arp_confirm_timer = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 300))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vArpConfirmTimer.setStatus('mandatory') v_arp_idle_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 10, 5), integer32().subtype(subtypeSpec=value_range_constraint(60, 1800))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vArpIdleTimeout.setStatus('mandatory') v_tcp_ip_precedence = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTcpIpPrecedence.setStatus('mandatory') v_tcp_send_q_size = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 2), integer32().subtype(subtypeSpec=value_range_constraint(128, 8192))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTcpSendQSize.setStatus('mandatory') v_tcp_rcv_win_size = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 3), integer32().subtype(subtypeSpec=value_range_constraint(128, 8192))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTcpRcvWinSize.setStatus('mandatory') v_tcp_seg_size = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 4), integer32().subtype(subtypeSpec=value_range_constraint(64, 511))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTcpSegSize.setStatus('mandatory') v_tcp_timer_interval = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 5), integer32().subtype(subtypeSpec=value_range_constraint(1, 200))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTcpTimerInterval.setStatus('mandatory') v_tcp_checksum_enable = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 11, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTcpChecksumEnable.setStatus('mandatory') v_tel_courier_enable = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelCourierEnable.setStatus('mandatory') v_tel_courier_text = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelCourierText.setStatus('mandatory') v_tel_sess_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessCurrNumber.setStatus('mandatory') v_tel_sess_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4)) if mibBuilder.loadTexts: vTelSessTable.setStatus('mandatory') v_tel_sess_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1)).setIndexNames((0, 'FMX1830', 'vTelSessPortIndex'), (0, 'FMX1830', 'vTelSessIndex')) if mibBuilder.loadTexts: vTelSessEntry.setStatus('mandatory') v_tel_sess_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessPortIndex.setStatus('mandatory') v_tel_sess_index = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessIndex.setStatus('mandatory') v_tel_sess_origin = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('network', 2), ('local', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessOrigin.setStatus('mandatory') v_tel_sess_state = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('starting', 1), ('running', 2), ('stopping', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessState.setStatus('mandatory') v_tel_sess_disconnect = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ready', 1), ('execute', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessDisconnect.setStatus('mandatory') v_tel_sess_local_addr = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 6), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessLocalAddr.setStatus('mandatory') v_tel_sess_local_tcp_port = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessLocalTcpPort.setStatus('mandatory') v_tel_sess_rem_addr = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 8), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessRemAddr.setStatus('mandatory') v_tel_sess_rem_tcp_port = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessRemTcpPort.setStatus('mandatory') v_tel_sess_cr_to_net = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(1, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessCrToNet.setStatus('mandatory') v_tel_sess_cr_from_term = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 11), octet_string().subtype(subtypeSpec=value_size_constraint(1, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessCrFromTerm.setStatus('mandatory') v_tel_sess_pad_char = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 12), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessPadChar.setStatus('mandatory') v_tel_sess_pad_length = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 13), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessPadLength.setStatus('mandatory') v_tel_sess_user_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 14), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessUserTimeout.setStatus('mandatory') v_tel_sess_keepalive = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessKeepalive.setStatus('mandatory') v_tel_sess_ip_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessIpTTL.setStatus('mandatory') v_tel_sess_ip_precedence = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessIpPrecedence.setStatus('mandatory') v_tel_sess_end_record = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 18), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessEndRecord.setStatus('mandatory') v_tel_sess_nop = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 19), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessNop.setStatus('mandatory') v_tel_sess_data_mark = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 20), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessDataMark.setStatus('mandatory') v_tel_sess_break = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 21), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessBreak.setStatus('mandatory') v_tel_sess_int_process = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 22), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessIntProcess.setStatus('mandatory') v_tel_sess_abort_output = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 23), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessAbortOutput.setStatus('mandatory') v_tel_sess_attention = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 24), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessAttention.setStatus('mandatory') v_tel_sess_erase_char = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 25), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessEraseChar.setStatus('mandatory') v_tel_sess_erase_line = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 26), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessEraseLine.setStatus('mandatory') v_tel_sess_go_ahead = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 27), character()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessGoAhead.setStatus('mandatory') v_tel_sess_null_pass = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 28), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vTelSessNullPass.setStatus('mandatory') v_tel_sess_term_type = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 29), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessTermType.setStatus('mandatory') v_tel_sess_local_echo = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessLocalEcho.setStatus('mandatory') v_tel_sess_remote_echo = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessRemoteEcho.setStatus('mandatory') v_tel_sess_local_binary = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessLocalBinary.setStatus('mandatory') v_tel_sess_remote_binary = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 12, 4, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vTelSessRemoteBinary.setStatus('mandatory') v_rlog_sess_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessCurrNumber.setStatus('mandatory') v_rlog_sess_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2)) if mibBuilder.loadTexts: vRlogSessTable.setStatus('mandatory') v_rlog_sess_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1)).setIndexNames((0, 'FMX1830', 'vRlogSessPortIndex'), (0, 'FMX1830', 'vRlogSessIndex')) if mibBuilder.loadTexts: vRlogSessEntry.setStatus('mandatory') v_rlog_sess_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessPortIndex.setStatus('mandatory') v_rlog_sess_index = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessIndex.setStatus('mandatory') v_rlog_sess_origin = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('network', 2), ('local', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessOrigin.setStatus('mandatory') v_rlog_sess_state = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('starting', 1), ('running', 2), ('stopping', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessState.setStatus('mandatory') v_rlog_sess_disconnect = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ready', 1), ('execute', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vRlogSessDisconnect.setStatus('mandatory') v_rlog_sess_local_addr = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 6), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessLocalAddr.setStatus('mandatory') v_rlog_sess_local_tcp_port = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessLocalTcpPort.setStatus('mandatory') v_rlog_sess_rem_addr = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 8), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessRemAddr.setStatus('mandatory') v_rlog_sess_rem_tcp_port = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessRemTcpPort.setStatus('mandatory') v_rlog_sess_term_type = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 13, 2, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: vRlogSessTermType.setStatus('mandatory') v_lt_node_name = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtNodeName.setStatus('mandatory') v_lt_node_id = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 40))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtNodeID.setStatus('mandatory') v_lt_node_groups = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 3), lt_group_list()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtNodeGroups.setStatus('mandatory') v_lt_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtNumber.setStatus('mandatory') v_lt_mcast_enable = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtMcastEnable.setStatus('mandatory') v_lt_mcast_timer = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 6), integer32().subtype(subtypeSpec=value_range_constraint(10, 180))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtMcastTimer.setStatus('mandatory') v_lt_ckt_timer = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 200))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtCktTimer.setStatus('mandatory') v_lt_keepalive_timer = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 8), integer32().subtype(subtypeSpec=value_range_constraint(10, 180))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtKeepaliveTimer.setStatus('mandatory') v_lt_max_retran = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 9), integer32().subtype(subtypeSpec=value_range_constraint(4, 120))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtMaxRetran.setStatus('mandatory') v_lt_slot_per_ckt = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtSlotPerCkt.setStatus('mandatory') v_lt_max_nodes = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 11), integer32().subtype(subtypeSpec=value_range_constraint(16, 1024))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtMaxNodes.setStatus('mandatory') v_lt_max_svcs = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 12), integer32().subtype(subtypeSpec=value_range_constraint(16, 2048))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtMaxSvcs.setStatus('mandatory') v_lt_max_ckts = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 13), integer32().subtype(subtypeSpec=value_range_constraint(4, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtMaxCkts.setStatus('mandatory') v_lt_sess_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 14), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtSessCurrNumber.setStatus('mandatory') v_lt_sess_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15)) if mibBuilder.loadTexts: vLtSessTable.setStatus('mandatory') v_lt_sess_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1)).setIndexNames((0, 'FMX1830', 'vLtSessPortIndex')) if mibBuilder.loadTexts: vLtSessEntry.setStatus('mandatory') v_lt_sess_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtSessPortIndex.setStatus('mandatory') v_lt_sess_index = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtSessIndex.setStatus('mandatory') v_lt_sess_origin = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('network', 2), ('local', 3), ('remote-port', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtSessOrigin.setStatus('mandatory') v_lt_sess_state = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('starting', 1), ('running', 2), ('stopping', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtSessState.setStatus('mandatory') v_lt_sess_disconnect = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ready', 1), ('execute', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vLtSessDisconnect.setStatus('mandatory') v_lt_sess_svc_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtSessSvcName.setStatus('mandatory') v_lt_sess_node_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtSessNodeName.setStatus('mandatory') v_lt_sess_dest_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 15, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtSessDestName.setStatus('mandatory') v_lt_total_rcv_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtTotalRcvPkts.setStatus('mandatory') v_lt_total_trn_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtTotalTrnPkts.setStatus('mandatory') v_lt_total_retran_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtTotalRetranPkts.setStatus('mandatory') v_lt_rcv_corrupt_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtRcvCorruptPkts.setStatus('mandatory') v_lt_rcv_corrupt_mcasts = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtRcvCorruptMcasts.setStatus('mandatory') v_lt_rcv_duplicate_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtRcvDuplicatePkts.setStatus('mandatory') v_lt_req_accepted = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtReqAccepted.setStatus('mandatory') v_lt_req_rejected = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtReqRejected.setStatus('mandatory') v_lt_total_node_discards = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 14, 24), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vLtTotalNodeDiscards.setStatus('mandatory') v_que_max_entries = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 1), integer32().subtype(subtypeSpec=value_range_constraint(4, 128))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vQueMaxEntries.setStatus('mandatory') v_que_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vQueCurrNumber.setStatus('mandatory') v_que_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3)) if mibBuilder.loadTexts: vQueTable.setStatus('mandatory') v_que_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1)).setIndexNames((0, 'FMX1830', 'vQueEntryNumber')) if mibBuilder.loadTexts: vQueEntry.setStatus('mandatory') v_que_entry_number = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vQueEntryNumber.setStatus('mandatory') v_que_svc_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: vQueSvcName.setStatus('mandatory') v_que_node_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: vQueNodeName.setStatus('mandatory') v_que_port_name = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: vQuePortName.setStatus('mandatory') v_que_status = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 15, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vQueStatus.setStatus('mandatory') v_snmp_read_community = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSnmpReadCommunity.setStatus('mandatory') v_snmp_write_community = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSnmpWriteCommunity.setStatus('mandatory') v_snmp_read_write_community = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSnmpReadWriteCommunity.setStatus('mandatory') v_snmp_write_enable = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSnmpWriteEnable.setStatus('mandatory') v_snmp_trap_dest_curr_number = mib_scalar((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vSnmpTrapDestCurrNumber.setStatus('mandatory') v_snmp_trap_dest_table = mib_table((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6)) if mibBuilder.loadTexts: vSnmpTrapDestTable.setStatus('mandatory') v_snmp_trap_dest_entry = mib_table_row((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1)).setIndexNames((0, 'FMX1830', 'vSnmpTrapDestAddr')) if mibBuilder.loadTexts: vSnmpTrapDestEntry.setStatus('mandatory') v_snmp_trap_dest_addr = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSnmpTrapDestAddr.setStatus('mandatory') v_snmp_trap_dest_community = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('read', 1), ('write', 2), ('readwrite', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSnmpTrapDestCommunity.setStatus('mandatory') v_snmp_trap_dest_cold_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSnmpTrapDestColdEnable.setStatus('mandatory') v_snmp_trap_dest_auth_enable = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSnmpTrapDestAuthEnable.setStatus('mandatory') v_snmp_trap_dest_status = mib_table_column((1, 3, 6, 1, 4, 1, 22, 65, 1, 2, 6, 1, 16, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vSnmpTrapDestStatus.setStatus('mandatory') mibBuilder.exportSymbols('FMX1830', vPortTrnChars=vPortTrnChars, vSysLtGroupStatus=vSysLtGroupStatus, vSvcIpAddr=vSvcIpAddr, vSvcTelEnable=vSvcTelEnable, vPortAutobaud=vPortAutobaud, vNsAllowLowerCase=vNsAllowLowerCase, vPortInactivityTimer=vPortInactivityTimer, vHostTable=vHostTable, vProfIntProcess=vProfIntProcess, vQueCurrNumber=vQueCurrNumber, protTelnet=protTelnet, vPortParityErrs=vPortParityErrs, vPortCurrSessProt=vPortCurrSessProt, vTelSessCrToNet=vTelSessCrToNet, vProfLocalBinary=vProfLocalBinary, vRlogSessState=vRlogSessState, vPortDTRwait=vPortDTRwait, vNsAddress=vNsAddress, vRlogSessRemTcpPort=vRlogSessRemTcpPort, vTelSessDisconnect=vTelSessDisconnect, vSvcPorts=vSvcPorts, fmxLt=fmxLt, vNsCurrNumber=vNsCurrNumber, vPortFrameErrs=vPortFrameErrs, vProfNullPass=vProfNullPass, vLtSessTable=vLtSessTable, vArpIdleTimeout=vArpIdleTimeout, DisplayChar=DisplayChar, vSecGroups=vSecGroups, vLtSessOrigin=vLtSessOrigin, vTcpRcvWinSize=vTcpRcvWinSize, vLtMaxRetran=vLtMaxRetran, vTacTable=vTacTable, fmxSystem=fmxSystem, vProfGoAhead=vProfGoAhead, vPortAutoPrompt=vPortAutoPrompt, vSecAddress=vSecAddress, vIpBcastAddr=vIpBcastAddr, vLtNodeID=vLtNodeID, protLt=protLt, vSnmpTrapDestAuthEnable=vSnmpTrapDestAuthEnable, vSnmpTrapDestCommunity=vSnmpTrapDestCommunity, vPortLogout=vPortLogout, vHostAddress=vHostAddress, vTelSessState=vTelSessState, vSvcConnectEnable=vSvcConnectEnable, vTelSessIntProcess=vTelSessIntProcess, vPortIOflush=vPortIOflush, vTelSessRemTcpPort=vTelSessRemTcpPort, vLtRcvCorruptMcasts=vLtRcvCorruptMcasts, vSysPrimaryBoot=vSysPrimaryBoot, vProfEraseChar=vProfEraseChar, vPortMessageCodes=vPortMessageCodes, vIpMaxInterfaces=vIpMaxInterfaces, vTelSessNop=vTelSessNop, vQueEntry=vQueEntry, vIpMaxNetHashEntries=vIpMaxNetHashEntries, vLtSessCurrNumber=vLtSessCurrNumber, vTelSessIpPrecedence=vTelSessIpPrecedence, vPortQueueing=vPortQueueing, vSysPrivPassword=vSysPrivPassword, vTelSessEraseChar=vTelSessEraseChar, vLtTotalTrnPkts=vLtTotalTrnPkts, vLtMcastEnable=vLtMcastEnable, vPortEntry=vPortEntry, vLtRcvDuplicatePkts=vLtRcvDuplicatePkts, vLtSessSvcName=vLtSessSvcName, vPortRTSstate=vPortRTSstate, vTelSessIndex=vTelSessIndex, vPortVirtualEnable=vPortVirtualEnable, vSvcLprEnable=vSvcLprEnable, vLtNodeName=vLtNodeName, vTelSessLocalTcpPort=vTelSessLocalTcpPort, vTelSessEraseLine=vTelSessEraseLine, vPortDCDstate=vPortDCDstate, vSvcName=vSvcName, vProfAbortOutput=vProfAbortOutput, vPortDTRstate=vPortDTRstate, vLtSessIndex=vLtSessIndex, vProfPermHostOnly=vProfPermHostOnly, vPortNumber=vPortNumber, vRlogSessCurrNumber=vRlogSessCurrNumber, vPortActiveSessions=vPortActiveSessions, vQueStatus=vQueStatus, vProfAttention=vProfAttention, vProfTermType=vProfTermType, fmxSnmp=fmxSnmp, vTelSessPortIndex=vTelSessPortIndex, serverDevice=serverDevice, vSysBootServer=vSysBootServer, vSysPasswordLimit=vSysPasswordLimit, vLtReqRejected=vLtReqRejected, vPortPrefSvc=vPortPrefSvc, vIpMaxHostHashEntries=vIpMaxHostHashEntries, serverAdmin=serverAdmin, vSecEntry=vSecEntry, vTelSessLocalAddr=vTelSessLocalAddr, vRlogSessDisconnect=vRlogSessDisconnect, vLtNodeGroups=vLtNodeGroups, vRlogSessEntry=vRlogSessEntry, vRlogSessLocalAddr=vRlogSessLocalAddr, vLtSlotPerCkt=vLtSlotPerCkt, vProfCurrNumber=vProfCurrNumber, vProfPadChar=vProfPadChar, vPortHandshake=vPortHandshake, vPortAbsoluteTimer=vPortAbsoluteTimer, vSnmpTrapDestColdEnable=vSnmpTrapDestColdEnable, vTelSessLocalEcho=vTelSessLocalEcho, vPortState=vPortState, vNsTable=vNsTable, vPortRIstate=vPortRIstate, fmxServerDevice=fmxServerDevice, vIpMaxAddr=vIpMaxAddr, vArpConfirmTimer=vArpConfirmTimer, vRlogSessTable=vRlogSessTable, vPortFlowType=vPortFlowType, protNone=protNone, fmxbd=fmxbd, vPortLoginPassword=vPortLoginPassword, vQueEntryNumber=vQueEntryNumber, vSecEnable=vSecEnable, vProfRemoteBinary=vProfRemoteBinary, fmxTcp=fmxTcp, vPortAutoConnect=vPortAutoConnect, vSysEtherType=vSysEtherType, vRlogSessTermType=vRlogSessTermType, vProfDomain=vProfDomain, vSvcQueueEnable=vSvcQueueEnable, vSvcRating=vSvcRating, vHostEntry=vHostEntry, vPortRemoteModify=vPortRemoteModify, vProfDataMark=vProfDataMark, vTcpIpPrecedence=vTcpIpPrecedence, vTcpTimerInterval=vTcpTimerInterval, service=service, fmxRlogin=fmxRlogin, vTelSessEntry=vTelSessEntry, vSvcIdent=vSvcIdent, vTelSessEndRecord=vTelSessEndRecord, vTelSessCrFromTerm=vTelSessCrFromTerm, vPortModemControl=vPortModemControl, vLtNumber=vLtNumber, vPortXonMark=vPortXonMark, vPortIndex=vPortIndex, vPortBreakMode=vPortBreakMode, vLtMcastTimer=vLtMcastTimer, vQueNodeName=vQueNodeName, vPortPrefPort=vPortPrefPort, vLtSessEntry=vLtSessEntry, vRlogSessRemAddr=vRlogSessRemAddr, vTelSessPadChar=vTelSessPadChar, vTcpSegSize=vTcpSegSize, vSecStatus=vSecStatus, vPortConsoleIndex=vPortConsoleIndex, vHostCurrNumber=vHostCurrNumber, vSnmpTrapDestTable=vSnmpTrapDestTable, vPortSessionLimit=vPortSessionLimit, vQueSvcName=vQueSvcName, vPortBroadcast=vPortBroadcast, vProfTcpPort=vProfTcpPort, vTelSessRemoteEcho=vTelSessRemoteEcho, vPortType=vPortType, vProfEntry=vProfEntry, vProfEndRecord=vProfEndRecord, devices=devices, vHostHostname=vHostHostname, vHostStatus=vHostStatus, fmxServerMib=fmxServerMib, fmxHostname=fmxHostname, vSvcVirtualText=vSvcVirtualText, vPortSpeed=vPortSpeed, vTelSessCurrNumber=vTelSessCurrNumber, fmxQueue=fmxQueue, vTelSessBreak=vTelSessBreak, vTelSessLocalBinary=vTelSessLocalBinary, vPortPrompt=vPortPrompt, vNsTTL=vNsTTL, fmxTelnet=fmxTelnet, vProfCrFromTerm=vProfCrFromTerm, vTacAddress=vTacAddress, vPortUserName=vPortUserName, vSvcCurrNumber=vSvcCurrNumber, vSvcLtEnable=vSvcLtEnable, vPortInterrupts=vPortInterrupts, vTcpSendQSize=vTcpSendQSize, vProfTable=vProfTable, vSecCurrNumber=vSecCurrNumber, vPortParityType=vPortParityType, vPortForwSwitch=vPortForwSwitch, vHostTTL=vHostTTL, vTelSessAttention=vTelSessAttention, vSecTable=vSecTable, vLtSessState=vLtSessState, vPortPasswordEnable=vPortPasswordEnable, vProfConcatenate=vProfConcatenate, vTelSessTable=vTelSessTable, terminal_server=terminal_server, vLtMaxNodes=vLtMaxNodes, vTelSessRemAddr=vTelSessRemAddr, port=port, vTelSessIpTTL=vTelSessIpTTL, fmxIp=fmxIp, vSecMask=vSecMask, vPortPrefMode=vPortPrefMode, vProfPadLength=vProfPadLength, vPortVerification=vPortVerification, vSysSecondaryBoot=vSysSecondaryBoot, vProfIpTTL=vProfIpTTL, vSnmpTrapDestCurrNumber=vSnmpTrapDestCurrNumber, vRlogSessOrigin=vRlogSessOrigin, serverProtocol=serverProtocol, vPortCharsDropped=vPortCharsDropped, vPortSignalCheck=vPortSignalCheck, vTelCourierText=vTelCourierText, protRlogin=protRlogin, vSysMaintenancePassword=vSysMaintenancePassword, vPortGroups=vPortGroups, fmxNameserver=fmxNameserver, fibronics=fibronics, vLtSessDisconnect=vLtSessDisconnect, serverMibs=serverMibs, vPortLogoutMsgEnable=vPortLogoutMsgEnable, vPortPrefNode=vPortPrefNode, vSvcRatingMode=vSvcRatingMode, vPortAbsoluteLogout=vPortAbsoluteLogout, vPortRcvChars=vPortRcvChars, vSvcTable=vSvcTable, vPortLoginMsgEnable=vPortLoginMsgEnable, vLtTotalRetranPkts=vLtTotalRetranPkts, vPortDSRstate=vPortDSRstate, vSvcPassword=vSvcPassword, vSnmpReadCommunity=vSnmpReadCommunity, vLtKeepaliveTimer=vLtKeepaliveTimer, vArpRetryMax=vArpRetryMax, fmxIpSecurity=fmxIpSecurity, vProfIpPrecedence=vProfIpPrecedence, vSvcProfile=vSvcProfile, vPortDialup=vPortDialup, vSysBroadband=vSysBroadband, vSnmpReadWriteCommunity=vSnmpReadWriteCommunity, vSnmpTrapDestStatus=vSnmpTrapDestStatus, vSvcTcpPort=vSvcTcpPort, vProfNop=vProfNop, vTelSessDataMark=vTelSessDataMark, vLtTotalRcvPkts=vLtTotalRcvPkts, vQuePortName=vQuePortName, vSvcRawEnable=vSvcRawEnable, vArpRetryTimeout=vArpRetryTimeout, vLtTotalNodeDiscards=vLtTotalNodeDiscards, vQueMaxEntries=vQueMaxEntries, vTelSessAbortOutput=vTelSessAbortOutput, vPortCharSize=vPortCharSize, vPortProfile=vPortProfile, vPortAccess=vPortAccess) mibBuilder.exportSymbols('FMX1830', vTelSessTermType=vTelSessTermType, vLtSessNodeName=vLtSessNodeName, Character=Character, vSvcEntry=vSvcEntry, vPortRing=vPortRing, vPortSignalCheckEnable=vPortSignalCheckEnable, vPortScreenType=vPortScreenType, vPortVirtualString=vPortVirtualString, vProfLocalEcho=vProfLocalEcho, fmxArp=fmxArp, vProfBreak=vProfBreak, vPortInactiveLogout=vPortInactiveLogout, vPortLock=vPortLock, vLtSessDestName=vLtSessDestName, slot=slot, vProfEraseLine=vProfEraseLine, vPortInFlowState=vPortInFlowState, vNsEntry=vNsEntry, fmxProfile=fmxProfile, vIpMaxRoutes=vIpMaxRoutes, vTacHostname=vTacHostname, vPortLocalSwitch=vPortLocalSwitch, vProfTcpTimeout=vProfTcpTimeout, vProfTcpKeepalive=vProfTcpKeepalive, vProfStatus=vProfStatus, vNsHostname=vNsHostname, vTelCourierEnable=vTelCourierEnable, vLtRcvCorruptPkts=vLtRcvCorruptPkts, fmxTacacs=fmxTacacs, LtGroupList=LtGroupList, vTelSessNullPass=vTelSessNullPass, vTacStatus=vTacStatus, vPortFailover=vPortFailover, vPortCTSstate=vPortCTSstate, vSvcVirtualEnable=vSvcVirtualEnable, vTelSessOrigin=vTelSessOrigin, vPortXoffMark=vPortXoffMark, vNsStatus=vNsStatus, vRlogSessIndex=vRlogSessIndex, vLtMaxCkts=vLtMaxCkts, vSysReboot=vSysReboot, vSvcStatus=vSvcStatus, vProfName=vProfName, vQueTable=vQueTable, vSnmpWriteEnable=vSnmpWriteEnable, vSysIdentifier=vSysIdentifier, fmxService=fmxService, vLtReqAccepted=vLtReqAccepted, vPortOverrunErrs=vPortOverrunErrs, vPortOutFlowState=vPortOutFlowState, vTelSessRemoteBinary=vTelSessRemoteBinary, vSnmpTrapDestEntry=vSnmpTrapDestEntry, vPortName=vPortName, vArpMaxEntries=vArpMaxEntries, vPortBreakDuration=vPortBreakDuration, vSnmpTrapDestAddr=vSnmpTrapDestAddr, vSysRemoteBoot=vSysRemoteBoot, vPortDSRlogout=vPortDSRlogout, vTcpChecksumEnable=vTcpChecksumEnable, vTelSessUserTimeout=vTelSessUserTimeout, vSysBootFilePath=vSysBootFilePath, vSysBootFileName=vSysBootFileName, vRlogSessPortIndex=vRlogSessPortIndex, vRlogSessLocalTcpPort=vRlogSessLocalTcpPort, vTacEntry=vTacEntry, vPortTacacsEnable=vPortTacacsEnable, vTelSessPadLength=vTelSessPadLength, vLtMaxSvcs=vLtMaxSvcs, vLtSessPortIndex=vLtSessPortIndex, vPortBroadcastEnable=vPortBroadcastEnable, vTacServerCurrNumber=vTacServerCurrNumber, vPortSecurityEnable=vPortSecurityEnable, vTelSessGoAhead=vTelSessGoAhead, vProfCrToNet=vProfCrToNet, vPortTable=vPortTable, vSnmpWriteCommunity=vSnmpWriteCommunity, vLtCktTimer=vLtCktTimer, vSecIndex=vSecIndex, vProfRemoteEcho=vProfRemoteEcho, server=server, vNsRequestMode=vNsRequestMode, fmxPort=fmxPort, vPortCurrSessNumber=vPortCurrSessNumber, vPortBackSwitch=vPortBackSwitch, vTelSessKeepalive=vTelSessKeepalive)