content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
---|---|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
synthqc.errors
This module holds project defined errors
Author: Jacob Reinhold ([email protected])
Created on: Nov 15, 2018
"""
class SynthQCError(Exception):
pass
|
"""
synthqc.errors
This module holds project defined errors
Author: Jacob Reinhold ([email protected])
Created on: Nov 15, 2018
"""
class Synthqcerror(Exception):
pass
|
a = [1, 2, 3]
b = a
print(a == b)
# => True
print(a is b)
# => True
c = list(a)
# == evaluates to true if the objects referred by the variables are equal
print(a == c)
# => True
# is evaluates to true if both variables point to the same object
print(a is c)
# => false
|
a = [1, 2, 3]
b = a
print(a == b)
print(a is b)
c = list(a)
print(a == c)
print(a is c)
|
# Best
# time O(log(n))
# space O(1)
def binarySearch(array, target):
low = 0
high = len(array)-1
while low<=high:
mid = (low+high)//2
if array[mid] == target:
return mid
if target > array[mid]:
low = mid + 1
else:
high = mid - 1
return -1
# Good
# time O(log(n)) - n is len(array)
# space O(log(n)) - here n is max call stack size
def binarySearchHelper(array, target, low, high):
mid = (low+high)//2
# Base cases
if array[mid] == target:
return mid
if low>high:
return -1
# Recursive case
if target>array[mid]:
low = mid + 1
else:
high = mid - 1
return binarySearchHelper(array, target, low, high)
def binarySearch(array, target):
return binarySearchHelper(array, target, 0, len(array)-1)
|
def binary_search(array, target):
low = 0
high = len(array) - 1
while low <= high:
mid = (low + high) // 2
if array[mid] == target:
return mid
if target > array[mid]:
low = mid + 1
else:
high = mid - 1
return -1
def binary_search_helper(array, target, low, high):
mid = (low + high) // 2
if array[mid] == target:
return mid
if low > high:
return -1
if target > array[mid]:
low = mid + 1
else:
high = mid - 1
return binary_search_helper(array, target, low, high)
def binary_search(array, target):
return binary_search_helper(array, target, 0, len(array) - 1)
|
l = [1,2,3,4]
def printCombo(l):
for j in range(1, len(l)+1):
for i in range(len(l)-1):
l[i],l[i+1]=l[i+1],l[i]
print(l)
for i in range(len(l)):
printCombo(l[i:])
|
l = [1, 2, 3, 4]
def print_combo(l):
for j in range(1, len(l) + 1):
for i in range(len(l) - 1):
(l[i], l[i + 1]) = (l[i + 1], l[i])
print(l)
for i in range(len(l)):
print_combo(l[i:])
|
def read_u8(f):
"""Reads an unsigned byte from the file object f.
"""
temp = f.read(1)
if not temp:
raise EOFError("EOF")
return int.from_bytes(temp, byteorder='little', signed=False)
def read_u16(f):
"""Reads a two byte unsigned value from the file object f.
"""
temp = f.read(2)
if not temp:
raise EOFError("EOF")
return int.from_bytes(temp, byteorder='little', signed=False)
def read_u32(f):
"""Reads a four byte unsigned value from the file object f.
"""
temp = f.read(4)
if not temp:
raise EOFError("EOF")
return int.from_bytes(temp, byteorder='little', signed=False)
def write_u8(f, v):
"""Writes the value v as an unsigned byte to the file object f.
"""
f.write(v.to_bytes(1, byteorder='little', signed=False))
def write_u16(f, v):
"""Writes the value v as a two byte unsigned value to the file object f.
"""
f.write(v.to_bytes(2, byteorder='little', signed=False))
def write_u32(f, v):
"""Writes the value v as a four byte unsigned value to the file object f.
"""
f.write(v.to_bytes(4, byteorder='little', signed=False))
def print_bytes(data):
"""Prints the bytes in data formatted to stdout.
"""
# Generator that returns l in chunks of size n
def chunks(l, n):
for i in range(0, len(l), n):
yield l[i:i+n]
for chunk in chunks(data, 16):
# Lint to be printed
line = ""
# Add hex
str_hex = [ "{:02X}".format(byte) for byte in chunk ]
line += " ".join(str_hex)
if len(str_hex) < 16:
# Pad if less than 16 bytes
line += " " * (16 - len(str_hex))
# Add ascii
line += " |"
str_ascii = ["{:c}".format(byte) if 31 < byte < 127 else "." for byte in chunk]
line += "".join(str_ascii)
if len(str_ascii) < 16:
# Pad if less than 16 bytes
line += " " * (16 - len(str_ascii))
line += "|"
# Print line
print(line)
|
def read_u8(f):
"""Reads an unsigned byte from the file object f.
"""
temp = f.read(1)
if not temp:
raise eof_error('EOF')
return int.from_bytes(temp, byteorder='little', signed=False)
def read_u16(f):
"""Reads a two byte unsigned value from the file object f.
"""
temp = f.read(2)
if not temp:
raise eof_error('EOF')
return int.from_bytes(temp, byteorder='little', signed=False)
def read_u32(f):
"""Reads a four byte unsigned value from the file object f.
"""
temp = f.read(4)
if not temp:
raise eof_error('EOF')
return int.from_bytes(temp, byteorder='little', signed=False)
def write_u8(f, v):
"""Writes the value v as an unsigned byte to the file object f.
"""
f.write(v.to_bytes(1, byteorder='little', signed=False))
def write_u16(f, v):
"""Writes the value v as a two byte unsigned value to the file object f.
"""
f.write(v.to_bytes(2, byteorder='little', signed=False))
def write_u32(f, v):
"""Writes the value v as a four byte unsigned value to the file object f.
"""
f.write(v.to_bytes(4, byteorder='little', signed=False))
def print_bytes(data):
"""Prints the bytes in data formatted to stdout.
"""
def chunks(l, n):
for i in range(0, len(l), n):
yield l[i:i + n]
for chunk in chunks(data, 16):
line = ''
str_hex = ['{:02X}'.format(byte) for byte in chunk]
line += ' '.join(str_hex)
if len(str_hex) < 16:
line += ' ' * (16 - len(str_hex))
line += ' |'
str_ascii = ['{:c}'.format(byte) if 31 < byte < 127 else '.' for byte in chunk]
line += ''.join(str_ascii)
if len(str_ascii) < 16:
line += ' ' * (16 - len(str_ascii))
line += '|'
print(line)
|
"""
Author: David Oniani
Purpose: Homework (problem 8)
NOTE: I have not included the algorithm to check
that 6210001000 is indeed the only number that
meets the conditions. It needs a bit more explanation
for optimizations so I decided to take it out.
"""
def check(ten_digit_number):
"""
Function to check whether the number satisfied the
conditions stated in the problem or not.
"""
for idx in range(len(list(str(ten_digit_number)))):
digit = list(str(ten_digit_number))[idx]
if int(digit) != str(ten_digit_number).count(str(idx)):
return False
return True
def main():
"""
Verify that 6210001000 meets the conditions.
"""
print(check(6210001000)) # True! Thus, this number is indeed the answer
if __name__ == "__main__":
main()
|
"""
Author: David Oniani
Purpose: Homework (problem 8)
NOTE: I have not included the algorithm to check
that 6210001000 is indeed the only number that
meets the conditions. It needs a bit more explanation
for optimizations so I decided to take it out.
"""
def check(ten_digit_number):
"""
Function to check whether the number satisfied the
conditions stated in the problem or not.
"""
for idx in range(len(list(str(ten_digit_number)))):
digit = list(str(ten_digit_number))[idx]
if int(digit) != str(ten_digit_number).count(str(idx)):
return False
return True
def main():
"""
Verify that 6210001000 meets the conditions.
"""
print(check(6210001000))
if __name__ == '__main__':
main()
|
s = """75
95 64
17 47 82
18 35 87 10
20 04 82 47 65
19 01 23 75 03 34
88 02 77 73 07 63 67
99 65 04 28 06 16 70 92
41 41 26 56 83 40 80 70 33
41 48 72 33 47 32 37 16 94 29
53 71 44 65 25 43 91 52 97 51 14
70 11 33 28 77 73 17 78 39 68 17 57
91 71 52 38 17 14 91 43 58 50 27 29 48
63 66 04 68 89 53 67 30 73 16 69 87 40 31
04 62 98 27 23 09 70 98 73 93 38 53 60 04 23"""
max_level = 15
t = []
for l in s.split("\n"):
t.append([int(x) for x in l.split()])
max_sum = 0
def search(node_sum, level, i_child):
global max_sum
if level == max_level-1:
if node_sum > max_sum:
max_sum = node_sum
return
search(node_sum + t[level+1][i_child], level+1, i_child)
search(node_sum + t[level+1][i_child+1], level+1, i_child+1)
search(75, 0, 0)
print(max_sum)
|
s = '75\n95 64\n17 47 82\n18 35 87 10\n20 04 82 47 65\n19 01 23 75 03 34\n88 02 77 73 07 63 67\n99 65 04 28 06 16 70 92\n41 41 26 56 83 40 80 70 33\n41 48 72 33 47 32 37 16 94 29\n53 71 44 65 25 43 91 52 97 51 14\n70 11 33 28 77 73 17 78 39 68 17 57\n91 71 52 38 17 14 91 43 58 50 27 29 48\n63 66 04 68 89 53 67 30 73 16 69 87 40 31\n04 62 98 27 23 09 70 98 73 93 38 53 60 04 23'
max_level = 15
t = []
for l in s.split('\n'):
t.append([int(x) for x in l.split()])
max_sum = 0
def search(node_sum, level, i_child):
global max_sum
if level == max_level - 1:
if node_sum > max_sum:
max_sum = node_sum
return
search(node_sum + t[level + 1][i_child], level + 1, i_child)
search(node_sum + t[level + 1][i_child + 1], level + 1, i_child + 1)
search(75, 0, 0)
print(max_sum)
|
f=open('This.txt','r')
# this is Default read mode of file
f=open('This.txt') #open file
# data=f.read()
data=f.read(5) #Starting 5 characters from file
print(data)
f.close()
|
f = open('This.txt', 'r')
f = open('This.txt')
data = f.read(5)
print(data)
f.close()
|
# Create cache for known results
factorial_memo = {}
def factorial(k):
if k < 2:
return 1
if not k in factorial_memo:
factorial_memo[k] = k * factorial(k-1)
return factorial_memo[k]
print(factorial_memo)
print(factorial(4))
print(factorial_memo)
print(factorial(5))
print(factorial_memo)
|
factorial_memo = {}
def factorial(k):
if k < 2:
return 1
if not k in factorial_memo:
factorial_memo[k] = k * factorial(k - 1)
return factorial_memo[k]
print(factorial_memo)
print(factorial(4))
print(factorial_memo)
print(factorial(5))
print(factorial_memo)
|
# author: Gonzalo Salazar
# assigment: Homework #2
# description: contains three functions
# First function:
# Input: temperature value in degrees Centigrade
# Output: temperature value in degrees Fahrenheit
# Second function:
# Input: temperature value in degrees Fahrenheit
# Output: temperature value in degrees Centigrade
# Third function:
# Input: temperature value in degrees Fahrenheit and wind speed in mph
# Output: wind chill factor for those parameters
#Converts a Centigrade temperature to a Fahrenheit temperature
def centigrade_to_fahrenheit(T_c):
T_f = 9/5 * T_c + 32
return T_f
#Converts a Fahrenheit temperature to a Centigrade temperature\
def fahrenheit_to_centigrade(T_f):
T_c = 5/9 * (T_f - 32)
return T_c
#Calculates a wind chill factor (the "old" one)
def wind_chill_factor(TEMPERATURE,WIND):
wc = 0.0817 * (3.71 * WIND**0.5 + 5.81 - 0.25 * WIND) * (TEMPERATURE - 91.4) + 91.4
return wc
|
def centigrade_to_fahrenheit(T_c):
t_f = 9 / 5 * T_c + 32
return T_f
def fahrenheit_to_centigrade(T_f):
t_c = 5 / 9 * (T_f - 32)
return T_c
def wind_chill_factor(TEMPERATURE, WIND):
wc = 0.0817 * (3.71 * WIND ** 0.5 + 5.81 - 0.25 * WIND) * (TEMPERATURE - 91.4) + 91.4
return wc
|
# -*- coding: utf-8 -*-
"""
Mobile Forms - Controllers
"""
module = request.controller
# -----------------------------------------------------------------------------
def forms():
"""
Controller to download a list of available forms
"""
if request.env.request_method == "GET":
if auth.permission.format == "json":
if settings.get_mobile_masterkey_filter():
# Filter form list by master key
masterkey_id = 0 # filtering is mandatory
# Expect the client to send a master key UUID in GET vars
masterkey_uid = request.get_vars.get("mkuid")
if masterkey_uid:
table = s3db.auth_masterkey
query = (table.uuid == masterkey_uid)
masterkey = db(query).select(table.id,
limitby = (0, 1),
).first()
if masterkey:
masterkey_id = masterkey.id
# Alternatively, allow the client to authenticate with
# the expected master key
elif auth.s3_logged_in() and auth.user and auth.user.masterkey_id:
masterkey_id = auth.user.masterkey_id
else:
# Do not filter the form list by master key
masterkey_id = None
response.headers["Content-Type"] = "application/json"
return s3base.S3MobileFormList(masterkey_id=masterkey_id).json()
else:
error(415, "Invalid request format")
else:
error(405, "Unsupported request method")
# -----------------------------------------------------------------------------
def error(status, message):
"""
Raise HTTP error status in non-interactive controllers
@param status: the HTTP status code
@param message: the error message
"""
headers = {"Content-Type":"text/plain"}
current.log.error(message)
raise HTTP(status, body=message, web2py_error=message, **headers)
# END =========================================================================
|
"""
Mobile Forms - Controllers
"""
module = request.controller
def forms():
"""
Controller to download a list of available forms
"""
if request.env.request_method == 'GET':
if auth.permission.format == 'json':
if settings.get_mobile_masterkey_filter():
masterkey_id = 0
masterkey_uid = request.get_vars.get('mkuid')
if masterkey_uid:
table = s3db.auth_masterkey
query = table.uuid == masterkey_uid
masterkey = db(query).select(table.id, limitby=(0, 1)).first()
if masterkey:
masterkey_id = masterkey.id
elif auth.s3_logged_in() and auth.user and auth.user.masterkey_id:
masterkey_id = auth.user.masterkey_id
else:
masterkey_id = None
response.headers['Content-Type'] = 'application/json'
return s3base.S3MobileFormList(masterkey_id=masterkey_id).json()
else:
error(415, 'Invalid request format')
else:
error(405, 'Unsupported request method')
def error(status, message):
"""
Raise HTTP error status in non-interactive controllers
@param status: the HTTP status code
@param message: the error message
"""
headers = {'Content-Type': 'text/plain'}
current.log.error(message)
raise http(status, body=message, web2py_error=message, **headers)
|
# https://leetcode.com/problems/maximum-product-subarray/
class Solution:
def maxProduct(self, nums: List[int]) -> int:
res = nums[0]
maxNum, minNum = 1, 1
for num in nums:
tempMax = num * maxNum
tempMin = num * minNum
maxNum = max(num, tempMax, tempMin)
minNum = min(num, tempMax, tempMin)
res = max(res, maxNum)
return res
|
class Solution:
def max_product(self, nums: List[int]) -> int:
res = nums[0]
(max_num, min_num) = (1, 1)
for num in nums:
temp_max = num * maxNum
temp_min = num * minNum
max_num = max(num, tempMax, tempMin)
min_num = min(num, tempMax, tempMin)
res = max(res, maxNum)
return res
|
# Program to reverse an array
def reverseArray(arr : list) :
for i in range(len(arr) // 2) :
arr[i], arr[len(arr)-1-i] = arr[len(arr)-1-i], arr[i]
if __name__ == "__main__":
arr = [1,2,3,4,5,6,7]
reverseArray(arr)
print(arr)
|
def reverse_array(arr: list):
for i in range(len(arr) // 2):
(arr[i], arr[len(arr) - 1 - i]) = (arr[len(arr) - 1 - i], arr[i])
if __name__ == '__main__':
arr = [1, 2, 3, 4, 5, 6, 7]
reverse_array(arr)
print(arr)
|
#
# PySNMP MIB module Juniper-MPLS-CONF (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-MPLS-CONF
# Produced by pysmi-0.3.4 at Mon Apr 29 19:52:41 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, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint")
juniAgents, = mibBuilder.importSymbols("Juniper-Agents", "juniAgents")
ModuleCompliance, NotificationGroup, AgentCapabilities = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "AgentCapabilities")
TimeTicks, ObjectIdentity, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Integer32, Gauge32, ModuleIdentity, NotificationType, MibIdentifier, iso, Bits, Counter64, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Integer32", "Gauge32", "ModuleIdentity", "NotificationType", "MibIdentifier", "iso", "Bits", "Counter64", "Counter32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
juniMplsAgent = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51))
juniMplsAgent.setRevisions(('2004-06-11 21:36', '2003-01-24 18:34', '2002-11-04 15:47', '2001-12-05 21:41',))
if mibBuilder.loadTexts: juniMplsAgent.setLastUpdated('200406231509Z')
if mibBuilder.loadTexts: juniMplsAgent.setOrganization('Juniper Networks, Inc.')
juniMplsAgentV1 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 1))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV1 = juniMplsAgentV1.setProductRelease('Version 1 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component was supported in\n JUNOSe 4.0 system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV1 = juniMplsAgentV1.setStatus('obsolete')
juniMplsAgentV2 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 2))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV2 = juniMplsAgentV2.setProductRelease('Version 2 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component was supported in\n JUNOSe 4.1 and subsequent 4.x system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV2 = juniMplsAgentV2.setStatus('obsolete')
juniMplsAgentV3 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 3))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV3 = juniMplsAgentV3.setProductRelease('Version 3 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component is supported in\n JUNOSe 5.0 and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV3 = juniMplsAgentV3.setStatus('obsolete')
juniMplsAgentV4 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 4))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV4 = juniMplsAgentV4.setProductRelease('Version 4 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component is supported in\n JUNOSe 6.0 and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV4 = juniMplsAgentV4.setStatus('obsolete')
juniMplsAgentV5 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 5))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV5 = juniMplsAgentV5.setProductRelease('Version 5 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component is supported in\n JUNOSe 6.1 and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV5 = juniMplsAgentV5.setStatus('obsolete')
juniMplsAgentV6 = AgentCapabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 6))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV6 = juniMplsAgentV6.setProductRelease('Version 6 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component is supported in\n JUNOSe 7.1 and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juniMplsAgentV6 = juniMplsAgentV6.setStatus('current')
mibBuilder.exportSymbols("Juniper-MPLS-CONF", juniMplsAgentV1=juniMplsAgentV1, juniMplsAgentV5=juniMplsAgentV5, juniMplsAgentV2=juniMplsAgentV2, juniMplsAgent=juniMplsAgent, juniMplsAgentV4=juniMplsAgentV4, juniMplsAgentV3=juniMplsAgentV3, juniMplsAgentV6=juniMplsAgentV6, PYSNMP_MODULE_ID=juniMplsAgent)
|
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, constraints_union, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint')
(juni_agents,) = mibBuilder.importSymbols('Juniper-Agents', 'juniAgents')
(module_compliance, notification_group, agent_capabilities) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'AgentCapabilities')
(time_ticks, object_identity, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, integer32, gauge32, module_identity, notification_type, mib_identifier, iso, bits, counter64, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ObjectIdentity', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Integer32', 'Gauge32', 'ModuleIdentity', 'NotificationType', 'MibIdentifier', 'iso', 'Bits', 'Counter64', 'Counter32')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
juni_mpls_agent = module_identity((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51))
juniMplsAgent.setRevisions(('2004-06-11 21:36', '2003-01-24 18:34', '2002-11-04 15:47', '2001-12-05 21:41'))
if mibBuilder.loadTexts:
juniMplsAgent.setLastUpdated('200406231509Z')
if mibBuilder.loadTexts:
juniMplsAgent.setOrganization('Juniper Networks, Inc.')
juni_mpls_agent_v1 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 1))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v1 = juniMplsAgentV1.setProductRelease('Version 1 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component was supported in\n JUNOSe 4.0 system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v1 = juniMplsAgentV1.setStatus('obsolete')
juni_mpls_agent_v2 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 2))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v2 = juniMplsAgentV2.setProductRelease('Version 2 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component was supported in\n JUNOSe 4.1 and subsequent 4.x system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v2 = juniMplsAgentV2.setStatus('obsolete')
juni_mpls_agent_v3 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 3))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v3 = juniMplsAgentV3.setProductRelease('Version 3 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component is supported in\n JUNOSe 5.0 and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v3 = juniMplsAgentV3.setStatus('obsolete')
juni_mpls_agent_v4 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 4))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v4 = juniMplsAgentV4.setProductRelease('Version 4 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component is supported in\n JUNOSe 6.0 and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v4 = juniMplsAgentV4.setStatus('obsolete')
juni_mpls_agent_v5 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 5))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v5 = juniMplsAgentV5.setProductRelease('Version 5 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component is supported in\n JUNOSe 6.1 and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v5 = juniMplsAgentV5.setStatus('obsolete')
juni_mpls_agent_v6 = agent_capabilities((1, 3, 6, 1, 4, 1, 4874, 5, 2, 51, 6))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v6 = juniMplsAgentV6.setProductRelease('Version 6 of the MultiProtocol Label Switching (MPLS) component of the\n JUNOSe SNMP agent. This version of the MPLS component is supported in\n JUNOSe 7.1 and subsequent system releases.')
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
juni_mpls_agent_v6 = juniMplsAgentV6.setStatus('current')
mibBuilder.exportSymbols('Juniper-MPLS-CONF', juniMplsAgentV1=juniMplsAgentV1, juniMplsAgentV5=juniMplsAgentV5, juniMplsAgentV2=juniMplsAgentV2, juniMplsAgent=juniMplsAgent, juniMplsAgentV4=juniMplsAgentV4, juniMplsAgentV3=juniMplsAgentV3, juniMplsAgentV6=juniMplsAgentV6, PYSNMP_MODULE_ID=juniMplsAgent)
|
class Solution:
def searchInsert(self, nums: List[int], target: int) -> int:
s = 0
e = len(nums) - 1
while(s <= e):
m = (s + e) // 2
if (nums[m] < target):
s = m + 1
elif (nums[m] > target):
e = m - 1
else:
return m
return s
|
class Solution:
def search_insert(self, nums: List[int], target: int) -> int:
s = 0
e = len(nums) - 1
while s <= e:
m = (s + e) // 2
if nums[m] < target:
s = m + 1
elif nums[m] > target:
e = m - 1
else:
return m
return s
|
#%%
# dutch_w = 0.664
# turkish_w = 0.075
# moroccan_w = 0.13
# ghanaian_w = 0.021
# suriname_w = 0.11
# sample_n = 4000
# dutch_pop = sample_n * dutch_w
# suriname_pop = sample_n * suriname_w
# turkish_pop = sample_n * turkish_w
# moroccan_pop = sample_n * moroccan_w
# ghanaian_pop = sample_n * ghanaian_w
# ethnicity_weights = [
# dutch_w,
# suriname_w,
# moroccan_w,
# turkish_w,
# ghanaian_w,
# ]
# pops = [
# dutch_pop,
# suriname_pop,
# turkish_pop,
# moroccan_pop,
# ghanaian_pop
# ]
DEBUG = True
SAVETYPE = "group"
root = "C:/Users/Admin/Code/status/"
results_dir = "C:/Users/Admin/Code/status/results/"
param_dict = {
# "population_size": [],
# "chronic_threshold": [],
"similarity_min": [],
"interactions": [],
"ses_noise": [],
# "repeats": [],
"vul_param": [],
"psr_param": [],
"coping_noise": [],
"recover_param": [],
"prestige_beta": [],
"prestige_param": [],
"stressor_param": [],
}
DAY = 1
WEEK = 7*DAY
CHRONIC_STRESS_PERIOD = 10
MAX_STATUS_DIFFERENCE = 14
status_dict_linear = {
"occ": {
1: 0,
2: 1,
3: 1,
4: 2,
5: 3,
6: 4,
7: 5,
8: 6
},
"edu": {
1: 0,
2: 2,
3: 4,
4: 6
},
"inc": {
1: -1,
2: -0.5,
3: 0.5,
4: 1
}
}
status_dict = {
"occ": {
1: 0,
2: 1,
3: 1,
4: 2,
5: 2,
6: 3,
7: 4,
8: 5
},
"edu": {
1: 0,
2: 1,
3: 2,
4: 4
},
"inc": {
1: 0,
2: 0,
3: 1,
4: 1
}
}
base_columns = ["ID", "occupation","H1_InkHhMoeite","H1_Opleid","H1_Mastery_Sumscore","H1_SSQSa", "status_l", "psr", "H1_etniciteit", "prestige"]
rename_columns = dict({
"ID": "id",
"occupation":"occ",
"H1_InkHhMoeite":"inc",
"H1_Opleid":"edu",
"H1_Mastery_Sumscore":"mastery",
"H1_SSQSa":"support",
"status_l" :"status",
"H1_etniciteit": "eth",
"H1_LO_BMI": "bmi",
"H1_Roken": "smoke"
})
columns_normalized = ["occ","edu","mastery","support"]
# %%
|
debug = True
savetype = 'group'
root = 'C:/Users/Admin/Code/status/'
results_dir = 'C:/Users/Admin/Code/status/results/'
param_dict = {'similarity_min': [], 'interactions': [], 'ses_noise': [], 'vul_param': [], 'psr_param': [], 'coping_noise': [], 'recover_param': [], 'prestige_beta': [], 'prestige_param': [], 'stressor_param': []}
day = 1
week = 7 * DAY
chronic_stress_period = 10
max_status_difference = 14
status_dict_linear = {'occ': {1: 0, 2: 1, 3: 1, 4: 2, 5: 3, 6: 4, 7: 5, 8: 6}, 'edu': {1: 0, 2: 2, 3: 4, 4: 6}, 'inc': {1: -1, 2: -0.5, 3: 0.5, 4: 1}}
status_dict = {'occ': {1: 0, 2: 1, 3: 1, 4: 2, 5: 2, 6: 3, 7: 4, 8: 5}, 'edu': {1: 0, 2: 1, 3: 2, 4: 4}, 'inc': {1: 0, 2: 0, 3: 1, 4: 1}}
base_columns = ['ID', 'occupation', 'H1_InkHhMoeite', 'H1_Opleid', 'H1_Mastery_Sumscore', 'H1_SSQSa', 'status_l', 'psr', 'H1_etniciteit', 'prestige']
rename_columns = dict({'ID': 'id', 'occupation': 'occ', 'H1_InkHhMoeite': 'inc', 'H1_Opleid': 'edu', 'H1_Mastery_Sumscore': 'mastery', 'H1_SSQSa': 'support', 'status_l': 'status', 'H1_etniciteit': 'eth', 'H1_LO_BMI': 'bmi', 'H1_Roken': 'smoke'})
columns_normalized = ['occ', 'edu', 'mastery', 'support']
|
entries = [
{
'env-title': 'atari-alien',
'env-variant': 'Human start',
'score': 570.20,
},
{
'env-title': 'atari-amidar',
'env-variant': 'Human start',
'score': 133.40,
},
{
'env-title': 'atari-assault',
'env-variant': 'Human start',
'score': 3332.30,
},
{
'env-title': 'atari-asterix',
'env-variant': 'Human start',
'score': 124.50,
},
{
'env-title': 'atari-asteroids',
'env-variant': 'Human start',
'score': 697.10,
},
{
'env-title': 'atari-atlantis',
'env-variant': 'Human start',
'score': 76108.00,
},
{
'env-title': 'atari-bank-heist',
'env-variant': 'Human start',
'score': 176.30,
},
{
'env-title': 'atari-battle-zone',
'env-variant': 'Human start',
'score': 17560.00,
},
{
'env-title': 'atari-beam-rider',
'env-variant': 'Human start',
'score': 8672.40,
},
{
'env-title': 'atari-bowling',
'env-variant': 'Human start',
'score': 41.20,
},
{
'env-title': 'atari-boxing',
'env-variant': 'Human start',
'score': 25.80,
},
{
'env-title': 'atari-breakout',
'env-variant': 'Human start',
'score': 303.90,
},
{
'env-title': 'atari-centipede',
'env-variant': 'Human start',
'score': 3773.10,
},
{
'env-title': 'atari-chopper-command',
'env-variant': 'Human start',
'score': 3046.00,
},
{
'env-title': 'atari-crazy-climber',
'env-variant': 'Human start',
'score': 50992.00,
},
{
'env-title': 'atari-demon-attack',
'env-variant': 'Human start',
'score': 12835.20,
},
{
'env-title': 'atari-double-dunk',
'env-variant': 'Human start',
'score': -21.60,
},
{
'env-title': 'atari-enduro',
'env-variant': 'Human start',
'score': 475.60,
},
{
'env-title': 'atari-fishing-derby',
'env-variant': 'Human start',
'score': -2.30,
},
{
'env-title': 'atari-freeway',
'env-variant': 'Human start',
'score': 25.80,
},
{
'env-title': 'atari-frostbite',
'env-variant': 'Human start',
'score': 157.40,
},
{
'env-title': 'atari-gopher',
'env-variant': 'Human start',
'score': 2731.80,
},
{
'env-title': 'atari-gravitar',
'env-variant': 'Human start',
'score': 216.50,
},
{
'env-title': 'atari-hero',
'env-variant': 'Human start',
'score': 12952.50,
},
{
'env-title': 'atari-ice-hockey',
'env-variant': 'Human start',
'score': -3.80,
},
{
'env-title': 'atari-jamesbond',
'env-variant': 'Human start',
'score': 348.50,
},
{
'env-title': 'atari-kangaroo',
'env-variant': 'Human start',
'score': 2696.00,
},
{
'env-title': 'atari-krull',
'env-variant': 'Human start',
'score': 3864.00,
},
{
'env-title': 'atari-kung-fu-master',
'env-variant': 'Human start',
'score': 11875.00,
},
{
'env-title': 'atari-montezuma-revenge',
'env-variant': 'Human start',
'score': 50.00,
},
{
'env-title': 'atari-ms-pacman',
'env-variant': 'Human start',
'score': 763.50,
},
{
'env-title': 'atari-name-this-game',
'env-variant': 'Human start',
'score': 5439.90,
},
{
'env-title': 'atari-pong',
'env-variant': 'Human start',
'score': 16.20,
},
{
'env-title': 'atari-private-eye',
'env-variant': 'Human start',
'score': 298.20,
},
{
'env-title': 'atari-qbert',
'env-variant': 'Human start',
'score': 4589.80,
},
{
'env-title': 'atari-riverraid',
'env-variant': 'Human start',
'score': 4065.30,
},
{
'env-title': 'atari-road-runner',
'env-variant': 'Human start',
'score': 9264.00,
},
{
'env-title': 'atari-robotank',
'env-variant': 'Human start',
'score': 58.50,
},
{
'env-title': 'atari-seaquest',
'env-variant': 'Human start',
'score': 2793.90,
},
{
'env-title': 'atari-space-invaders',
'env-variant': 'Human start',
'score': 1449.70,
},
{
'env-title': 'atari-star-gunner',
'env-variant': 'Human start',
'score': 34081.00,
},
{
'env-title': 'atari-tennis',
'env-variant': 'Human start',
'score': -2.30,
},
{
'env-title': 'atari-time-pilot',
'env-variant': 'Human start',
'score': 5640.00,
},
{
'env-title': 'atari-tutankham',
'env-variant': 'Human start',
'score': 32.40,
},
{
'env-title': 'atari-up-n-down',
'env-variant': 'Human start',
'score': 3311.30,
},
{
'env-title': 'atari-venture',
'env-variant': 'Human start',
'score': 54.00,
},
{
'env-title': 'atari-video-pinball',
'env-variant': 'Human start',
'score': 20228.10,
},
{
'env-title': 'atari-wizard-of-wor',
'env-variant': 'Human start',
'score': 246.00,
},
{
'env-title': 'atari-zaxxon',
'env-variant': 'Human start',
'score': 831.00,
},
]
|
entries = [{'env-title': 'atari-alien', 'env-variant': 'Human start', 'score': 570.2}, {'env-title': 'atari-amidar', 'env-variant': 'Human start', 'score': 133.4}, {'env-title': 'atari-assault', 'env-variant': 'Human start', 'score': 3332.3}, {'env-title': 'atari-asterix', 'env-variant': 'Human start', 'score': 124.5}, {'env-title': 'atari-asteroids', 'env-variant': 'Human start', 'score': 697.1}, {'env-title': 'atari-atlantis', 'env-variant': 'Human start', 'score': 76108.0}, {'env-title': 'atari-bank-heist', 'env-variant': 'Human start', 'score': 176.3}, {'env-title': 'atari-battle-zone', 'env-variant': 'Human start', 'score': 17560.0}, {'env-title': 'atari-beam-rider', 'env-variant': 'Human start', 'score': 8672.4}, {'env-title': 'atari-bowling', 'env-variant': 'Human start', 'score': 41.2}, {'env-title': 'atari-boxing', 'env-variant': 'Human start', 'score': 25.8}, {'env-title': 'atari-breakout', 'env-variant': 'Human start', 'score': 303.9}, {'env-title': 'atari-centipede', 'env-variant': 'Human start', 'score': 3773.1}, {'env-title': 'atari-chopper-command', 'env-variant': 'Human start', 'score': 3046.0}, {'env-title': 'atari-crazy-climber', 'env-variant': 'Human start', 'score': 50992.0}, {'env-title': 'atari-demon-attack', 'env-variant': 'Human start', 'score': 12835.2}, {'env-title': 'atari-double-dunk', 'env-variant': 'Human start', 'score': -21.6}, {'env-title': 'atari-enduro', 'env-variant': 'Human start', 'score': 475.6}, {'env-title': 'atari-fishing-derby', 'env-variant': 'Human start', 'score': -2.3}, {'env-title': 'atari-freeway', 'env-variant': 'Human start', 'score': 25.8}, {'env-title': 'atari-frostbite', 'env-variant': 'Human start', 'score': 157.4}, {'env-title': 'atari-gopher', 'env-variant': 'Human start', 'score': 2731.8}, {'env-title': 'atari-gravitar', 'env-variant': 'Human start', 'score': 216.5}, {'env-title': 'atari-hero', 'env-variant': 'Human start', 'score': 12952.5}, {'env-title': 'atari-ice-hockey', 'env-variant': 'Human start', 'score': -3.8}, {'env-title': 'atari-jamesbond', 'env-variant': 'Human start', 'score': 348.5}, {'env-title': 'atari-kangaroo', 'env-variant': 'Human start', 'score': 2696.0}, {'env-title': 'atari-krull', 'env-variant': 'Human start', 'score': 3864.0}, {'env-title': 'atari-kung-fu-master', 'env-variant': 'Human start', 'score': 11875.0}, {'env-title': 'atari-montezuma-revenge', 'env-variant': 'Human start', 'score': 50.0}, {'env-title': 'atari-ms-pacman', 'env-variant': 'Human start', 'score': 763.5}, {'env-title': 'atari-name-this-game', 'env-variant': 'Human start', 'score': 5439.9}, {'env-title': 'atari-pong', 'env-variant': 'Human start', 'score': 16.2}, {'env-title': 'atari-private-eye', 'env-variant': 'Human start', 'score': 298.2}, {'env-title': 'atari-qbert', 'env-variant': 'Human start', 'score': 4589.8}, {'env-title': 'atari-riverraid', 'env-variant': 'Human start', 'score': 4065.3}, {'env-title': 'atari-road-runner', 'env-variant': 'Human start', 'score': 9264.0}, {'env-title': 'atari-robotank', 'env-variant': 'Human start', 'score': 58.5}, {'env-title': 'atari-seaquest', 'env-variant': 'Human start', 'score': 2793.9}, {'env-title': 'atari-space-invaders', 'env-variant': 'Human start', 'score': 1449.7}, {'env-title': 'atari-star-gunner', 'env-variant': 'Human start', 'score': 34081.0}, {'env-title': 'atari-tennis', 'env-variant': 'Human start', 'score': -2.3}, {'env-title': 'atari-time-pilot', 'env-variant': 'Human start', 'score': 5640.0}, {'env-title': 'atari-tutankham', 'env-variant': 'Human start', 'score': 32.4}, {'env-title': 'atari-up-n-down', 'env-variant': 'Human start', 'score': 3311.3}, {'env-title': 'atari-venture', 'env-variant': 'Human start', 'score': 54.0}, {'env-title': 'atari-video-pinball', 'env-variant': 'Human start', 'score': 20228.1}, {'env-title': 'atari-wizard-of-wor', 'env-variant': 'Human start', 'score': 246.0}, {'env-title': 'atari-zaxxon', 'env-variant': 'Human start', 'score': 831.0}]
|
SECRET_KEY = 'secret'
ROOT_URLCONF = 'jsonrpc.tests.test_backend_django.urls'
ALLOWED_HOSTS = ['testserver']
DATABASE_ENGINE = 'django.db.backends.sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
JSONRPC_MAP_VIEW_ENABLED = True
|
secret_key = 'secret'
root_urlconf = 'jsonrpc.tests.test_backend_django.urls'
allowed_hosts = ['testserver']
database_engine = 'django.db.backends.sqlite3'
databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:'}}
jsonrpc_map_view_enabled = True
|
packages = {
'Greenspace': {
'description': '',
'foundations' : [
'neighborhood_development_18_027',
'neighborhood_development_18_021'
],
'default_foundation' : 'neighborhood_development_18_027',
'slides' : [
'neighborhood_development_18_003',
'neighborhood_development_18_004',
'neighborhood_development_18_005'
],
'default_slide' : [
'neighborhood_development_18_003',
'neighborhood_development_18_004'
],
},
'Food Access': {
'description': '',
'foundations' : [
'Percent Renter Occupied',
'poverty rate'
],
'default_foundation' : 'poverty rate',
'slides' : [
'neighborhood_development_18_007',
'neighborhood_development_18_008',
'neighborhood_development_18_005',
'neighborhood_development_18_012'
],
'default_slide' : 'neighborhood_development_18_008'
},
'Sweeps': {
'description': '',
'foundations' : [
'neighborhood_development_18_020',
'neighborhood_development_18_021',
'neighborhood_development_18_027',
'neighborhood_development_18_034',
'neighborhood_development_18_028',
'neighborhood_development_18_030'
],
'default_foundation' : 'neighborhood_development_18_020',
'slides' : [
'neighborhood_development_18_010',
'neighborhood_development_18_011',
'neighborhood_development_18_009',
'neighborhood_development_18_003',
'neighborhood_development_18_004',
],
'default_slide' : [
'neighborhood_development_18_010',
],
},
'Bikes': {
'description': '',
'foundations' : [
'neighborhood_development_18_021'
],
'default_foundation' : 'neighborhood_development_18_021',
'slides' : [
'neighborhood_development_18_001',
'neighborhood_development_18_002',
'neighborhood_development_18_006',
'neighborhood_development_18_014',
'neighborhood_development_18_013'
],
'default_slide' : [
'neighborhood_development_18_001',
'neighborhood_development_18_002'
],
},
'Disaster Resilience': {
'description': '',
'foundations' : [
'disaster_resilience_18_002',
'disaster_resilience_18_003',
'disaster_resilience_18_004',
'disaster_resilience_18_005',
],
'default_foundation' : 'disaster_resilience_18_002',
'slides' : [
'disaster_resilience_18_001',
],
'default_slide' : [
'disaster_resilience_18_001',
]
},
'Evictions': {
'description': '',
'foundations' : [
'neighborhood_development_18_022',
'neighborhood_development_18_023',
'neighborhood_development_18_024',
'neighborhood_development_18_025',
'neighborhood_development_18_026',
'neighborhood_development_18_032',
],
'default_foundation' : 'neighborhood_development_18_024',
'slides' : [
'neighborhood_development_18_012',
'neighborhood_development_18_007',
'neighborhood_development_18_009',
'housing_affordability_18_001'
],
'default_slide' : ['neighborhood_development_18_009',]
},
'Voters': {
'description': '',
'foundations' : [
'neighborhood_development_18_015',
'neighborhood_development_18_016',
'neighborhood_development_18_017',
'neighborhood_development_18_018',
'neighborhood_development_18_019'
],
'default_foundation' : 'voters18',
'slides' : [
'neighborhood_development_18_007',
'neighborhood_development_18_004',
'neighborhood_development_18_006',
'neighborhood_development_18_002',
],
'default_slide' : []
},
'Transportation': {
'description': '',
'foundations' : [
'transportation_systems_18_005',
],
'default_foundation' : 'transportation_systems_18_005',
'slides' : [
'transportation_systems_18_001',
'transportation_systems_18_003',
'transportation_systems_18_004',
],
'default_slide' : [
'transportation_systems_18_001',
'transportation_systems_18_003',
'transportation_systems_18_004',
],
}
}
|
packages = {'Greenspace': {'description': '', 'foundations': ['neighborhood_development_18_027', 'neighborhood_development_18_021'], 'default_foundation': 'neighborhood_development_18_027', 'slides': ['neighborhood_development_18_003', 'neighborhood_development_18_004', 'neighborhood_development_18_005'], 'default_slide': ['neighborhood_development_18_003', 'neighborhood_development_18_004']}, 'Food Access': {'description': '', 'foundations': ['Percent Renter Occupied', 'poverty rate'], 'default_foundation': 'poverty rate', 'slides': ['neighborhood_development_18_007', 'neighborhood_development_18_008', 'neighborhood_development_18_005', 'neighborhood_development_18_012'], 'default_slide': 'neighborhood_development_18_008'}, 'Sweeps': {'description': '', 'foundations': ['neighborhood_development_18_020', 'neighborhood_development_18_021', 'neighborhood_development_18_027', 'neighborhood_development_18_034', 'neighborhood_development_18_028', 'neighborhood_development_18_030'], 'default_foundation': 'neighborhood_development_18_020', 'slides': ['neighborhood_development_18_010', 'neighborhood_development_18_011', 'neighborhood_development_18_009', 'neighborhood_development_18_003', 'neighborhood_development_18_004'], 'default_slide': ['neighborhood_development_18_010']}, 'Bikes': {'description': '', 'foundations': ['neighborhood_development_18_021'], 'default_foundation': 'neighborhood_development_18_021', 'slides': ['neighborhood_development_18_001', 'neighborhood_development_18_002', 'neighborhood_development_18_006', 'neighborhood_development_18_014', 'neighborhood_development_18_013'], 'default_slide': ['neighborhood_development_18_001', 'neighborhood_development_18_002']}, 'Disaster Resilience': {'description': '', 'foundations': ['disaster_resilience_18_002', 'disaster_resilience_18_003', 'disaster_resilience_18_004', 'disaster_resilience_18_005'], 'default_foundation': 'disaster_resilience_18_002', 'slides': ['disaster_resilience_18_001'], 'default_slide': ['disaster_resilience_18_001']}, 'Evictions': {'description': '', 'foundations': ['neighborhood_development_18_022', 'neighborhood_development_18_023', 'neighborhood_development_18_024', 'neighborhood_development_18_025', 'neighborhood_development_18_026', 'neighborhood_development_18_032'], 'default_foundation': 'neighborhood_development_18_024', 'slides': ['neighborhood_development_18_012', 'neighborhood_development_18_007', 'neighborhood_development_18_009', 'housing_affordability_18_001'], 'default_slide': ['neighborhood_development_18_009']}, 'Voters': {'description': '', 'foundations': ['neighborhood_development_18_015', 'neighborhood_development_18_016', 'neighborhood_development_18_017', 'neighborhood_development_18_018', 'neighborhood_development_18_019'], 'default_foundation': 'voters18', 'slides': ['neighborhood_development_18_007', 'neighborhood_development_18_004', 'neighborhood_development_18_006', 'neighborhood_development_18_002'], 'default_slide': []}, 'Transportation': {'description': '', 'foundations': ['transportation_systems_18_005'], 'default_foundation': 'transportation_systems_18_005', 'slides': ['transportation_systems_18_001', 'transportation_systems_18_003', 'transportation_systems_18_004'], 'default_slide': ['transportation_systems_18_001', 'transportation_systems_18_003', 'transportation_systems_18_004']}}
|
# Solution 2
# def fib(num, l=[]):
# a=b=1
# while(True):
# a+=b
# if a % 2 == 0:
# l.append(a)
# a,b=b,a
# if a >= num:
# break
# return l
# print(sum(fib(4000000)))
# Solution 3
# import math
# def factors(num):
# factors_list = []
# for value in range(2, math.ceil(math.sqrt(num))):
# if not num % value:
# factors_list.append(value)
# factors_list.append(num / value)
# return factors_list
# def prime_factors():
# facts = factors(600851475143)
# primes = []
# for num in facts:
# for val in range(2, math.ceil(math.sqrt(num))):
# if not num % val:
# break
# else:
# primes.append(num)
# return primes
# print(prime_factors())
# Solution 4
palindrome = []
for val in range(2, 1000)[::-1]:
for value in range(2, val)[::-1]:
str_int = str(val * value)
if list(str_int) == list(str_int)[::-1]:
palindrome.append((val * value))
print (max(palindrome))
|
palindrome = []
for val in range(2, 1000)[::-1]:
for value in range(2, val)[::-1]:
str_int = str(val * value)
if list(str_int) == list(str_int)[::-1]:
palindrome.append(val * value)
print(max(palindrome))
|
l = [4, 3, 5, 4, -3,10,2,33,98,4]
print(l)
min = l[0]
max = l[0]
n = len(l)
for i in range(1, n):
curr = l[i]
if curr < min:
min=curr
if curr>max:
max=curr
print("Min=",min,"Max=",max)
|
l = [4, 3, 5, 4, -3, 10, 2, 33, 98, 4]
print(l)
min = l[0]
max = l[0]
n = len(l)
for i in range(1, n):
curr = l[i]
if curr < min:
min = curr
if curr > max:
max = curr
print('Min=', min, 'Max=', max)
|
class MinMaxHeap:
# Checks if a binary tree is a min/max heap.
@staticmethod
def is_valid(values, index, level, min_value, max_value):
if index >= len(values):
return True
if (values[index] > min_value and values[index] < max_value) == False:
return False
if level % 2 != 0: # odd
min_value = values[index]
else: # even
max_value = values[index]
return (MinMaxHeap.is_valid(values, index * 2 + 1, level + 1, min_value, max_value)
and MinMaxHeap.is_valid(values, index * 2 + 2, level + 1, min_value, max_value))
def main():
# "8 71 41 31 10 11 16 46 51 31 21 13" - YES
# "8 71 41 31 25 11 16 46 51 31 21 13" - NO
N = int(input("N: "))
line = input()
l = line.split()
values = []
for number in l:
values.append(int(number))
result = MinMaxHeap.is_valid(values, 0, 1, 0, 1e10)
if result:
print("YES")
else:
print("NO")
if __name__ == '__main__':
main()
|
class Minmaxheap:
@staticmethod
def is_valid(values, index, level, min_value, max_value):
if index >= len(values):
return True
if (values[index] > min_value and values[index] < max_value) == False:
return False
if level % 2 != 0:
min_value = values[index]
else:
max_value = values[index]
return MinMaxHeap.is_valid(values, index * 2 + 1, level + 1, min_value, max_value) and MinMaxHeap.is_valid(values, index * 2 + 2, level + 1, min_value, max_value)
def main():
n = int(input('N: '))
line = input()
l = line.split()
values = []
for number in l:
values.append(int(number))
result = MinMaxHeap.is_valid(values, 0, 1, 0, 10000000000.0)
if result:
print('YES')
else:
print('NO')
if __name__ == '__main__':
main()
|
chars2get = set()
with open('biofic2take.tsv', encoding = 'utf-8') as f:
for line in f:
fields = line.strip().split('\t')
charid = fields[0]
chars2get.add(charid)
outlines = []
with open('../biofic50/biofic50_doctopics.txt', encoding = 'utf-8') as f:
for line in f:
fields = line.strip().split('\t')
charid = fields[1]
if charid in chars2get:
outlines.append(line)
with open('../biofic50/biofic50_viz.tsv', mode = 'w', encoding = 'utf-8') as f:
for line in outlines:
f.write(line)
|
chars2get = set()
with open('biofic2take.tsv', encoding='utf-8') as f:
for line in f:
fields = line.strip().split('\t')
charid = fields[0]
chars2get.add(charid)
outlines = []
with open('../biofic50/biofic50_doctopics.txt', encoding='utf-8') as f:
for line in f:
fields = line.strip().split('\t')
charid = fields[1]
if charid in chars2get:
outlines.append(line)
with open('../biofic50/biofic50_viz.tsv', mode='w', encoding='utf-8') as f:
for line in outlines:
f.write(line)
|
# Homework 01 - Game of life
#
# Your task is to implement part of the cell automata called
# Game of life. The automata is a 2D simulation where each cell
# on the grid is either dead or alive.
#
# State of each cell is updated in every iteration based state of neighbouring cells.
# Cell neighbours are cells that are horizontally, vertically, or diagonally adjacent.
#
# Rules for update are as follows:
#
# 1. Any live cell with fewer than two live neighbours dies, as if by underpopulation.
# 2. Any live cell with two or three live neighbours lives on to the next generation.
# 3. Any live cell with more than three live neighbours dies, as if by overpopulation.
# 4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
#
#
# Our implementation will use coordinate system will use grid coordinates starting from (0, 0) - upper left corner.
# The first coordinate is row and second is column.
#
# Do not use wrap around (toroid) when reaching edge of the board.
#
# For more details about Game of Life, see Wikipedia - https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
def createBoard(rows, cols):
board = [[False] * cols for i in range(rows)]
return board
def fillBoard(board, alive):
for j in alive:
x, y = j
board[x][y] = True
return None
def isAlive(board, x, y, rows, cols):
if x < 0 or x >= rows:
return False
if y < 0 or y >= cols:
return False
return board[x][y]
def sumAliveNeighbors(board, r, c, rows, cols) -> int:
sumN = 0
sumN += isAlive(board, r - 1, c, rows, cols) # up
sumN += isAlive(board, r + 1, c, rows, cols) # down
sumN += isAlive(board, r, c - 1, rows, cols) # left
sumN += isAlive(board, r, c + 1, rows, cols) # right
sumN += isAlive(board, r - 1, c - 1, rows, cols) # up left
sumN += isAlive(board, r - 1, c + 1, rows, cols) # up right
sumN += isAlive(board, r + 1, c - 1, rows, cols) # down left
sumN += isAlive(board, r + 1, c + 1, rows, cols) # down right
return sumN
def makeGameStep(current_board, rows, cols):
next_board = createBoard(rows, cols)
for r in range(rows):
for c in range(cols):
sumN = sumAliveNeighbors(current_board, r, c, rows, cols)
if current_board[r][c]:
if sumN < 2 or sumN > 3:
next_board[r][c] = False
if sumN == 2 or sumN == 3:
next_board[r][c] = True
else:
if sumN == 3:
next_board[r][c] = True
current_board = next_board
return current_board
def getAliveSet(board, rows, cols):
result = set()
for row in range(rows):
for column in range(cols):
if board[row][column]:
t = (row, column)
result.add(t)
return result
def update(alive, size, iter_n):
rows, cols = size
current_board = createBoard(rows, cols)
fillBoard(current_board, alive)
i = 0
while i < iter_n:
current_board = makeGameStep(current_board, rows, cols)
i += 1
# Return the set of alive cells from the last current_board
return getAliveSet(current_board, rows, cols)
def draw(alive, size):
"""
alive - set of cell coordinates marked as alive, can be empty
size - size of simulation grid as tuple - (
output - string showing the board state with alive cells marked with X
"""
# Don't call print in this method, just return board string as output.
# Example of 3x3 board with 1 alive cell at coordinates (0, 2):
# +---+
# | X|
# | |
# | |
# +---+
rows, cols = size
outputString = "+"
for i in range(cols):
outputString += "-"
outputString += "+\n"
for i in range(rows):
outputString += "|"
for j in range(cols):
if (i, j) in alive:
outputString += "X"
else:
outputString += " "
outputString += "|\n"
outputString += "+"
for i in range(cols):
outputString += "-"
outputString += "+"
return outputString
|
def create_board(rows, cols):
board = [[False] * cols for i in range(rows)]
return board
def fill_board(board, alive):
for j in alive:
(x, y) = j
board[x][y] = True
return None
def is_alive(board, x, y, rows, cols):
if x < 0 or x >= rows:
return False
if y < 0 or y >= cols:
return False
return board[x][y]
def sum_alive_neighbors(board, r, c, rows, cols) -> int:
sum_n = 0
sum_n += is_alive(board, r - 1, c, rows, cols)
sum_n += is_alive(board, r + 1, c, rows, cols)
sum_n += is_alive(board, r, c - 1, rows, cols)
sum_n += is_alive(board, r, c + 1, rows, cols)
sum_n += is_alive(board, r - 1, c - 1, rows, cols)
sum_n += is_alive(board, r - 1, c + 1, rows, cols)
sum_n += is_alive(board, r + 1, c - 1, rows, cols)
sum_n += is_alive(board, r + 1, c + 1, rows, cols)
return sumN
def make_game_step(current_board, rows, cols):
next_board = create_board(rows, cols)
for r in range(rows):
for c in range(cols):
sum_n = sum_alive_neighbors(current_board, r, c, rows, cols)
if current_board[r][c]:
if sumN < 2 or sumN > 3:
next_board[r][c] = False
if sumN == 2 or sumN == 3:
next_board[r][c] = True
elif sumN == 3:
next_board[r][c] = True
current_board = next_board
return current_board
def get_alive_set(board, rows, cols):
result = set()
for row in range(rows):
for column in range(cols):
if board[row][column]:
t = (row, column)
result.add(t)
return result
def update(alive, size, iter_n):
(rows, cols) = size
current_board = create_board(rows, cols)
fill_board(current_board, alive)
i = 0
while i < iter_n:
current_board = make_game_step(current_board, rows, cols)
i += 1
return get_alive_set(current_board, rows, cols)
def draw(alive, size):
"""
alive - set of cell coordinates marked as alive, can be empty
size - size of simulation grid as tuple - (
output - string showing the board state with alive cells marked with X
"""
(rows, cols) = size
output_string = '+'
for i in range(cols):
output_string += '-'
output_string += '+\n'
for i in range(rows):
output_string += '|'
for j in range(cols):
if (i, j) in alive:
output_string += 'X'
else:
output_string += ' '
output_string += '|\n'
output_string += '+'
for i in range(cols):
output_string += '-'
output_string += '+'
return outputString
|
class BoundingBox:
def __init__(self, top: float, right: float, bottom: float, left: float):
self.top = top
self.right = right
self.bottom = bottom
self.left = left
def to_flickr_bounding_box(self):
return '{self.left}, {self.bottom}, {self.right}, {self.top}'.format(self=self)
|
class Boundingbox:
def __init__(self, top: float, right: float, bottom: float, left: float):
self.top = top
self.right = right
self.bottom = bottom
self.left = left
def to_flickr_bounding_box(self):
return '{self.left}, {self.bottom}, {self.right}, {self.top}'.format(self=self)
|
#!/usr/bin/python3.6
class Reaction:
# the sets of reactants, inhibitors and products of the reaction
name = None
reactants = set()
inhibitors = set()
products = set()
# the creation of a reaction is made through the called of a function in which all the controls are performed, so we can
# assume that reactants, inhibitors and products arrives to this initialization already as sets, and we can
# assume moreover that the checks of correctness of the reaction is already been done
def __init__(self,_name,_reactants,_inhibitors,_products):
self.name = _name
self.reactants = _reactants
self.inhibitors = _inhibitors
self.products = _products
# special method to print easily a reaction
def __str__(self):
# put in string the reactants
rappresentation = "({"
for r in self.reactants:
rappresentation += r + ','
rappresentation = rappresentation[:-1] # remove the ,
# put in string the inhibitors
rappresentation += "},{"
for i in self.inhibitors:
rappresentation += i + ','
rappresentation = rappresentation[:-1] # remove the ,
# put in string the products
rappresentation += "},{"
for p in self.products:
rappresentation += p + ','
rappresentation = rappresentation[:-1] # remove the ,
rappresentation += "})"
return 'reaction_' + self.name + ' = ' + rappresentation
# check if a reaction belong to a given nonempty set
def BelongTo(self,s):
return self.reactants.issubset(s) and self.inhibitors.issubset(s) and self.products.issubset(s)
# check if a reaction is enabled by a given nonempty set
def EnabledBy(self,t):
return self.reactants.issubset(t) and self.inhibitors.isdisjoint(t)
# special method to permit a list of reactions to map into a set
def __hash__(self):
return 0
# special method to check if two reactions are equals
def __eq__(self,other):
if isinstance(other,Reaction):
return self.reactants == other.reactants and self.products == other.products and self.inhibitors == other.inhibitors
return NotImplemented
|
class Reaction:
name = None
reactants = set()
inhibitors = set()
products = set()
def __init__(self, _name, _reactants, _inhibitors, _products):
self.name = _name
self.reactants = _reactants
self.inhibitors = _inhibitors
self.products = _products
def __str__(self):
rappresentation = '({'
for r in self.reactants:
rappresentation += r + ','
rappresentation = rappresentation[:-1]
rappresentation += '},{'
for i in self.inhibitors:
rappresentation += i + ','
rappresentation = rappresentation[:-1]
rappresentation += '},{'
for p in self.products:
rappresentation += p + ','
rappresentation = rappresentation[:-1]
rappresentation += '})'
return 'reaction_' + self.name + ' = ' + rappresentation
def belong_to(self, s):
return self.reactants.issubset(s) and self.inhibitors.issubset(s) and self.products.issubset(s)
def enabled_by(self, t):
return self.reactants.issubset(t) and self.inhibitors.isdisjoint(t)
def __hash__(self):
return 0
def __eq__(self, other):
if isinstance(other, Reaction):
return self.reactants == other.reactants and self.products == other.products and (self.inhibitors == other.inhibitors)
return NotImplemented
|
# adapted from https://raw.githubusercontent.com/lucien2k/wipy-urllib/master/urllib.py
def unquote(s):
"""Kindly rewritten by Damien from Micropython"""
"""No longer uses caching because of memory limitations"""
res = s.split('%')
for i in range(1, len(res)):
item = res[i]
try:
res[i] = chr(int(item[:2], 16)) + item[2:]
except ValueError:
res[i] = '%' + item
return "".join(res)
def unquote_plus(s):
"""unquote('%7e/abc+def') -> '~/abc def'"""
s = s.replace('+', ' ')
return unquote(s)
|
def unquote(s):
"""Kindly rewritten by Damien from Micropython"""
'No longer uses caching because of memory limitations'
res = s.split('%')
for i in range(1, len(res)):
item = res[i]
try:
res[i] = chr(int(item[:2], 16)) + item[2:]
except ValueError:
res[i] = '%' + item
return ''.join(res)
def unquote_plus(s):
"""unquote('%7e/abc+def') -> '~/abc def'"""
s = s.replace('+', ' ')
return unquote(s)
|
# Description: Find H-bonds around a residue.
# Source: placeHolder
"""
cmd.do('remove element h; distance hbonds, all, all, 3.2, mode=2;')
"""
cmd.do('remove element h; distance hbonds, all, all, 3.2, mode=2;')
|
"""
cmd.do('remove element h; distance hbonds, all, all, 3.2, mode=2;')
"""
cmd.do('remove element h; distance hbonds, all, all, 3.2, mode=2;')
|
# Pattern that would startup the DUT, then do nothing else.
# Should still generate.
with Pattern() as pat:
...
|
with pattern() as pat:
...
|
N = int(input())
total = 0
for i in range(1, N+1):
if (i % 3) != 0 and (i % 5) != 0:
total = total+i
print(total)
|
n = int(input())
total = 0
for i in range(1, N + 1):
if i % 3 != 0 and i % 5 != 0:
total = total + i
print(total)
|
INSTRUCTIONS = {
"SUM": 0b00001,
"SUB": 0b00010,
"MULT": 0b00011,
"DIV": 0b00101,
}
def instrFor(instr):
return INSTRUCTIONS[instr]
|
instructions = {'SUM': 1, 'SUB': 2, 'MULT': 3, 'DIV': 5}
def instr_for(instr):
return INSTRUCTIONS[instr]
|
class Solution(object):
# def isPerfectSquare(self, num):
# """
# :type num: int
# :rtype: bool
# """
# i = 1
# while num > 0:
# num -= i
# i += 2
# return num == 0
def isPerfectSquare(self, num):
low, high = 1, num
while low <= high:
mid = (low + high) / 2
mid_square = mid * mid
if mid_square == num:
return True
elif mid_square < num:
low = mid + 1
else:
high = mid - 1
return False
# def isPerfectSquare(self, num):
# x = num
# while x * x > num:
# x = (x + num / x) / 2
# return x * x == num
|
class Solution(object):
def is_perfect_square(self, num):
(low, high) = (1, num)
while low <= high:
mid = (low + high) / 2
mid_square = mid * mid
if mid_square == num:
return True
elif mid_square < num:
low = mid + 1
else:
high = mid - 1
return False
|
VAT_NUMBER_REGEXES = {
# EU VAT number regexes have a high certainty
'AT': r'^U\d{8}$',
'BE': r'^[01]\d{9}$',
'BG': r'^\d{9,10}$',
'CY': r'^\d{8}[A-Z]$',
'CZ': r'^\d{8,10}$',
'DE': r'^\d{9}$',
'DK': r'^\d{8}$',
'EE': r'^\d{9}$',
'EL': r'^\d{9}$',
'ES': r'^([A-Z]\d{7}[A-Z0-9]|\d{8}[A-Z])$',
'FI': r'^\d{8}$',
'FR': r'^[A-Z0-9]{2}\d{9}$',
'GB': r'^(\d{9}|\d{12}|GD\d{3}|HA\d{3})$',
'HR': r'^\d{11}$',
'HU': r'^[0-9]{8}$',
'IE': r'^(\d[A-Z0-9]\d{5}[A-Z]|\d{7}[A-Z]{2})$',
'IT': r'^\d{11}$',
'LT': r'^(\d{9}|\d{12})$',
'LU': r'^\d{8}$',
'LV': r'^\d{11}$',
'MT': r'^\d{8}$',
'NL': r'^\d{9}B\d{2}$',
'PL': r'^\d{10}$',
'PT': r'^\d{9}$',
'RO': r'^\d{2,10}$',
'SE': r'^\d{12}$',
'SI': r'^\d{8}$',
'SK': r'^\d{10}$',
'EU': r'^\d{9}$',
# Others
# if no source listed below, these regexes are based on Wikipedia
# patches (with sources) for these are welcome
'AL': r'^[JK]\d{8}[A-Z]$',
'MK': r'^\d{13}$',
'AU': r'^\d{9}$',
'BY': r'^\d{9}$',
'CA': r'^\d{9}R[TPCMRDENGZ]\d{4}$',
'IS': r'^\d{5,6}$',
'IN': r'^\d{11}[CV]$',
'ID': r'^\d{15}$',
'IL': r'^\d{9}$',
'KZ': r'^\d{12}$',
'NZ': r'^\d{9}$',
'NG': r'^\d{12}$',
'NO': r'^\d{9}$',
'PH': r'^\d{12}$',
'RU': r'^(\d{10}|\d{12})$',
'SM': r'^\d{5}$',
'RS': r'^\d{9}$',
'CH': r'^\d{9}$',
'TR': r'^\d{10}$',
'UA': r'^\d{12}$',
'UZ': r'^\d{9}$',
'AR': r'^\d{11}$',
'BO': r'^\d{7}$',
'BR': r'^\d{14}$',
'CL': r'^\d{9}$',
'CO': r'^\d{10}$',
'CR': r'^\d{9,12}$',
'EC': r'^\d{13}$',
'SV': r'^\d{14}$',
'GT': r'^\d{8}$',
# HN
'MX': r'^[A-Z0-9]{3,4}\d{6}[A-Z0-9]{3}$',
'NI': r'^\d{13}[A-Z]$',
# PA
'PY': r'^\d{7,9}$',
'PE': r'^\d{11}$',
'DO': r'^(\d{9}|\d{11})$',
'UY': r'^\d{12}$',
'VE': r'^[EGJV]\d{9}$',
}
"""List of all VAT number regexes to be used for validating European VAT numbers. Regexes do not include any
formatting characters.
Sources:
EU: http://www.hmrc.gov.uk/vat/managing/international/esl/country-codes.htm
CA: http://www.cra-arc.gc.ca/tx/bsnss/tpcs/bn-ne/wrks-eng.html
others: https://en.wikipedia.org/wiki/VAT_identification_number
"""
EU_VAT_AREA = ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'EL', 'ES', 'FI', 'FR', 'GB', 'HR',
'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK']
VAT_MIN_LENGTH = 4 # Romania seems to have the shortest
VAT_MAX_LENGTH = 16 # BR seems to be the longest
|
vat_number_regexes = {'AT': '^U\\d{8}$', 'BE': '^[01]\\d{9}$', 'BG': '^\\d{9,10}$', 'CY': '^\\d{8}[A-Z]$', 'CZ': '^\\d{8,10}$', 'DE': '^\\d{9}$', 'DK': '^\\d{8}$', 'EE': '^\\d{9}$', 'EL': '^\\d{9}$', 'ES': '^([A-Z]\\d{7}[A-Z0-9]|\\d{8}[A-Z])$', 'FI': '^\\d{8}$', 'FR': '^[A-Z0-9]{2}\\d{9}$', 'GB': '^(\\d{9}|\\d{12}|GD\\d{3}|HA\\d{3})$', 'HR': '^\\d{11}$', 'HU': '^[0-9]{8}$', 'IE': '^(\\d[A-Z0-9]\\d{5}[A-Z]|\\d{7}[A-Z]{2})$', 'IT': '^\\d{11}$', 'LT': '^(\\d{9}|\\d{12})$', 'LU': '^\\d{8}$', 'LV': '^\\d{11}$', 'MT': '^\\d{8}$', 'NL': '^\\d{9}B\\d{2}$', 'PL': '^\\d{10}$', 'PT': '^\\d{9}$', 'RO': '^\\d{2,10}$', 'SE': '^\\d{12}$', 'SI': '^\\d{8}$', 'SK': '^\\d{10}$', 'EU': '^\\d{9}$', 'AL': '^[JK]\\d{8}[A-Z]$', 'MK': '^\\d{13}$', 'AU': '^\\d{9}$', 'BY': '^\\d{9}$', 'CA': '^\\d{9}R[TPCMRDENGZ]\\d{4}$', 'IS': '^\\d{5,6}$', 'IN': '^\\d{11}[CV]$', 'ID': '^\\d{15}$', 'IL': '^\\d{9}$', 'KZ': '^\\d{12}$', 'NZ': '^\\d{9}$', 'NG': '^\\d{12}$', 'NO': '^\\d{9}$', 'PH': '^\\d{12}$', 'RU': '^(\\d{10}|\\d{12})$', 'SM': '^\\d{5}$', 'RS': '^\\d{9}$', 'CH': '^\\d{9}$', 'TR': '^\\d{10}$', 'UA': '^\\d{12}$', 'UZ': '^\\d{9}$', 'AR': '^\\d{11}$', 'BO': '^\\d{7}$', 'BR': '^\\d{14}$', 'CL': '^\\d{9}$', 'CO': '^\\d{10}$', 'CR': '^\\d{9,12}$', 'EC': '^\\d{13}$', 'SV': '^\\d{14}$', 'GT': '^\\d{8}$', 'MX': '^[A-Z0-9]{3,4}\\d{6}[A-Z0-9]{3}$', 'NI': '^\\d{13}[A-Z]$', 'PY': '^\\d{7,9}$', 'PE': '^\\d{11}$', 'DO': '^(\\d{9}|\\d{11})$', 'UY': '^\\d{12}$', 'VE': '^[EGJV]\\d{9}$'}
'List of all VAT number regexes to be used for validating European VAT numbers. Regexes do not include any\nformatting characters.\n\nSources:\nEU: http://www.hmrc.gov.uk/vat/managing/international/esl/country-codes.htm\nCA: http://www.cra-arc.gc.ca/tx/bsnss/tpcs/bn-ne/wrks-eng.html\nothers: https://en.wikipedia.org/wiki/VAT_identification_number\n'
eu_vat_area = ['AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'EL', 'ES', 'FI', 'FR', 'GB', 'HR', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK']
vat_min_length = 4
vat_max_length = 16
|
#
# This file contains the Python code from Program 6.7 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm06_07.txt
#
class StackAsLinkedList(Stack):
def push(self, obj):
self._list.prepend(obj)
self._count += 1
def pop(self):
if self._count == 0:
raise ContainerEmpty
result = self._list.first
self._list.extract(result)
self._count -= 1
return result
def getTop(self):
if self._count == 0:
raise ContainerEmpty
return self._list.first
# ...
|
class Stackaslinkedlist(Stack):
def push(self, obj):
self._list.prepend(obj)
self._count += 1
def pop(self):
if self._count == 0:
raise ContainerEmpty
result = self._list.first
self._list.extract(result)
self._count -= 1
return result
def get_top(self):
if self._count == 0:
raise ContainerEmpty
return self._list.first
|
class Model():
def __init__(self, model):
pass
|
class Model:
def __init__(self, model):
pass
|
pound = int(input())
conv_to_dollar = pound * 1.31
print(f"{conv_to_dollar:.3f}")
|
pound = int(input())
conv_to_dollar = pound * 1.31
print(f'{conv_to_dollar:.3f}')
|
"""
Codemonk link: https://www.hackerearth.com/practice/basic-programming/implementation/basics-of-implementation/practice-problems/algorithm/binary-movement/
You are given a bit array (0 and 1) of size n. Your task is to perform Q queries. In each query you have to toggle all
the bits from the index L to R (L and R inclusive). After performing all the queries, print the count of all the set
bits and the newly updated array.
Input - Output:
The first line contains an integer N denoting the size of the array.
The Second line contains N space-separated binary numbers.
The third line contains Q denoting the number of queries.
The next Q lines contain L and R for each ith query.
Print the count of all the set bits and newly updated array in the new line.
Sample input:
6
1 0 1 1 0 1
3
1 3
4 5
2 5
Sample Output:
3
0 0 1 1 0 1
"""
"""
The problem can be translated to the following: To find the value of each index, find how many queries start before this
index and how many end before or after this specific index. If, overall, we find an even odd number of queries starting
before and ending after or at the position of the index, then we change its value.
O(N) for the first and second "for".
Final complexity: O(2*N) => O(N)
"""
inp_len = int(input())
bit_list = list(map(int, input().rstrip().split()))
q_len = int(input())
# Creating 2 supplementary arrays.
count_queries_before = [0] * inp_len
count_queries_after = [0] * inp_len
count = 0
count_ones = 0
for i in range(0, q_len):
rl = list(map(int, input().rstrip().split()))
# The first array contains the starting positions of all the queries.
# The second array contains the ending positions of all the queries.
count_queries_before[rl[0]-1] += 1
count_queries_after[rl[1]-1] += 1
count += count_queries_before[0]
if count % 2 != 0:
if bit_list[0] == 0:
bit_list[0] = 1
else:
bit_list[0] = 0
for i in range(1, inp_len):
# For each next index,
# add the amount of of queries starting from there and
# subtract the amount of queries ending 1 index before.
count += count_queries_before[i]
count -= count_queries_after[i-1]
if count % 2 != 0:
if bit_list[i] == 0:
bit_list[i] = 1
else:
bit_list[i] = 0
count_ones += bit_list[i]
print(count_ones)
print(*bit_list)
|
"""
Codemonk link: https://www.hackerearth.com/practice/basic-programming/implementation/basics-of-implementation/practice-problems/algorithm/binary-movement/
You are given a bit array (0 and 1) of size n. Your task is to perform Q queries. In each query you have to toggle all
the bits from the index L to R (L and R inclusive). After performing all the queries, print the count of all the set
bits and the newly updated array.
Input - Output:
The first line contains an integer N denoting the size of the array.
The Second line contains N space-separated binary numbers.
The third line contains Q denoting the number of queries.
The next Q lines contain L and R for each ith query.
Print the count of all the set bits and newly updated array in the new line.
Sample input:
6
1 0 1 1 0 1
3
1 3
4 5
2 5
Sample Output:
3
0 0 1 1 0 1
"""
'\nThe problem can be translated to the following: To find the value of each index, find how many queries start before this\nindex and how many end before or after this specific index. If, overall, we find an even odd number of queries starting\nbefore and ending after or at the position of the index, then we change its value.\n\nO(N) for the first and second "for".\n\nFinal complexity: O(2*N) => O(N)\n'
inp_len = int(input())
bit_list = list(map(int, input().rstrip().split()))
q_len = int(input())
count_queries_before = [0] * inp_len
count_queries_after = [0] * inp_len
count = 0
count_ones = 0
for i in range(0, q_len):
rl = list(map(int, input().rstrip().split()))
count_queries_before[rl[0] - 1] += 1
count_queries_after[rl[1] - 1] += 1
count += count_queries_before[0]
if count % 2 != 0:
if bit_list[0] == 0:
bit_list[0] = 1
else:
bit_list[0] = 0
for i in range(1, inp_len):
count += count_queries_before[i]
count -= count_queries_after[i - 1]
if count % 2 != 0:
if bit_list[i] == 0:
bit_list[i] = 1
else:
bit_list[i] = 0
count_ones += bit_list[i]
print(count_ones)
print(*bit_list)
|
# Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray).
# Example 1:
# Input: [1,3,5,4,7]
# Output: 3
# Explanation: The longest continuous increasing subsequence is [1,3,5], its length is 3.
# Even though [1,3,5,7] is also an increasing subsequence, it's not a continuous one where 5 and 7 are separated by 4.
# Example 2:
# Input: [2,2,2,2,2]
# Output: 1
# Explanation: The longest continuous increasing subsequence is [2], its length is 1.
# Note: Length of the array will not exceed 10,000.
class Solution(object):
def findLengthOfLCIS(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
l = len(nums)
if (l < 2):
return l
lens = 0
temp = 1
for i in range(1,l):
if (nums[i] <= nums[i-1]):
lens = max(lens, temp)
temp = 1
i += 1
else:
temp += 1
return max(lens, temp)
|
class Solution(object):
def find_length_of_lcis(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
l = len(nums)
if l < 2:
return l
lens = 0
temp = 1
for i in range(1, l):
if nums[i] <= nums[i - 1]:
lens = max(lens, temp)
temp = 1
i += 1
else:
temp += 1
return max(lens, temp)
|
S, W = map(int, input().split())
if(W >= S):
print("unsafe")
else:
print("safe")
|
(s, w) = map(int, input().split())
if W >= S:
print('unsafe')
else:
print('safe')
|
#medicine = 'Coughussin'
#dosage = 5
#duration = 4.5
#instructions = '{} - Take {} ML by mouth every {} hours.'.format(medicine, dosage, duration)
#print(instructions)
#instructions = '{2} - Take {1} ML by mouth every {0} hours'.format(medicine, dosage, duration)
#print(instructions)
#instructions = '{medicine} - Take {dosage} ML by mouth every {duration} hours'.format(medicine = 'Sneezergen', dosage = 10, duration = 6)
#print(instructions)
#name = 'World'
#message = f'Hello, {name}'
#print(message)
#count = 10
#value = 3.14
#message = f'Count to {10}. Multiply by {value}.'
#print(message)
#width = 5
#height = 10
#print(f'The perimeter is {2 * width + 2 * height} and the area is {width * height}.')
value = 'hi'
print(f'.{value:<25}.')
print(f'.{value:>25}.')
print(f'.{value:^25}.')
print(f'.{value:-^25}.')
|
value = 'hi'
print(f'.{value:<25}.')
print(f'.{value:>25}.')
print(f'.{value:^25}.')
print(f'.{value:-^25}.')
|
# TWITTER PYTHON
# Copyright 2022 Billyfranklim
# See LICENSE for details.
__version__ = '0.1.0'
__author__ = 'Billyfranklim Pereira'
__license__ = 'MIT'
|
__version__ = '0.1.0'
__author__ = 'Billyfranklim Pereira'
__license__ = 'MIT'
|
"""
586. Sqrt(x) II
Implement double sqrt(double x) and x >= 0.
Compute and return the square root of x.
You do not care about the accuracy of the result, we will help you to output results.
binary search?
by result?
"""
class Solution:
"""
@param x: a double
@return: the square root of x
"""
def sqrt(self, x):
# write your code here
if x >= 1:
left, right = 0, x * 1.0
else:
left, right = x * 1.0, 1.0
while right - left > 1e-10:
mid = (left + right) / 2.0
if mid * mid < x:
left = mid
else:
right = mid
return mid
s = Solution()
print(s.sqrt(3))
|
"""
586. Sqrt(x) II
Implement double sqrt(double x) and x >= 0.
Compute and return the square root of x.
You do not care about the accuracy of the result, we will help you to output results.
binary search?
by result?
"""
class Solution:
"""
@param x: a double
@return: the square root of x
"""
def sqrt(self, x):
if x >= 1:
(left, right) = (0, x * 1.0)
else:
(left, right) = (x * 1.0, 1.0)
while right - left > 1e-10:
mid = (left + right) / 2.0
if mid * mid < x:
left = mid
else:
right = mid
return mid
s = solution()
print(s.sqrt(3))
|
"""Top-level package for Female Health Analysis."""
__author__ = """Daniel Schulz"""
__email__ = '[email protected]'
__version__ = '0.1.0'
|
"""Top-level package for Female Health Analysis."""
__author__ = 'Daniel Schulz'
__email__ = '[email protected]'
__version__ = '0.1.0'
|
# Time: O(n)
# Space: O(n)
# 1182 biweekly contest 8 9/7/2019
# You are given an array colors, in which there are three colors: 1, 2 and 3.
#
# You are also given some queries. Each query consists of two integers i and c, return the shortest distance
# between the given index i and the target color c. If there is no solution return -1.
# 1 <= colors.length, queries.length <= 5*10^4
# Input: colors = [1,1,2,1,3,2,2,3,3], queries = [[1,3],[2,2],[6,1]]
# Output: [3,0,3]
try:
xrange
except NameError:
xrange = range
class Solution(object):
# dp[c][j] distance from nearest color c to jth elem
def shortestDistanceColor(self, colors, queries):
N = len(colors)
dp = [[float('inf')] * N for _ in xrange(4)]
# forward pass, get nearest to the left
dp[colors[0]][0] = 0
for i in range(1, N):
for c in range(1, 4):
dp[c][i] = 1 + dp[c][i-1]
dp[colors[i]][i] = 0
# backward pass, get nearest to the right
for i in reversed(range(N-1)):
for c in range(1, 4):
dp[c][i] = min(dp[c][i], dp[c][i+1] + 1)
return [dp[c][i] if dp[c][i] != float('inf') else -1 for i, c in queries]
# dp[c][j] index of nearest color c to jth elem
def shortestDistanceColor_kamyu(self, colors, queries):
"""
:type colors: List[int]
:type queries: List[List[int]]
:rtype: List[int]
"""
N = len(colors)
dp = [[-1] * N for _ in xrange(4)]
dp[colors[0]][0] = 0
for i in xrange(1, N):
for color in xrange(1, 4):
dp[color][i] = dp[color][i-1]
dp[colors[i]][i] = i
for i in reversed(xrange(N-1)):
for color in xrange(1, 4):
if dp[color][i+1] == -1:
continue
if dp[color][i] == -1 or \
abs(dp[color][i+1]-i) < abs(dp[color][i]-i):
dp[color][i] = dp[color][i+1]
return [abs(dp[color][i]-i) if dp[color][i] != -1 else -1 \
for i, color in queries]
print(Solution().shortestDistanceColor([1,1,2,1,3,2,2,3,3], [[1,3],[2,2],[6,1]])) # [3,0,3]
print(Solution().shortestDistanceColor([1,2], [[0,3]])) # [-1]
|
try:
xrange
except NameError:
xrange = range
class Solution(object):
def shortest_distance_color(self, colors, queries):
n = len(colors)
dp = [[float('inf')] * N for _ in xrange(4)]
dp[colors[0]][0] = 0
for i in range(1, N):
for c in range(1, 4):
dp[c][i] = 1 + dp[c][i - 1]
dp[colors[i]][i] = 0
for i in reversed(range(N - 1)):
for c in range(1, 4):
dp[c][i] = min(dp[c][i], dp[c][i + 1] + 1)
return [dp[c][i] if dp[c][i] != float('inf') else -1 for (i, c) in queries]
def shortest_distance_color_kamyu(self, colors, queries):
"""
:type colors: List[int]
:type queries: List[List[int]]
:rtype: List[int]
"""
n = len(colors)
dp = [[-1] * N for _ in xrange(4)]
dp[colors[0]][0] = 0
for i in xrange(1, N):
for color in xrange(1, 4):
dp[color][i] = dp[color][i - 1]
dp[colors[i]][i] = i
for i in reversed(xrange(N - 1)):
for color in xrange(1, 4):
if dp[color][i + 1] == -1:
continue
if dp[color][i] == -1 or abs(dp[color][i + 1] - i) < abs(dp[color][i] - i):
dp[color][i] = dp[color][i + 1]
return [abs(dp[color][i] - i) if dp[color][i] != -1 else -1 for (i, color) in queries]
print(solution().shortestDistanceColor([1, 1, 2, 1, 3, 2, 2, 3, 3], [[1, 3], [2, 2], [6, 1]]))
print(solution().shortestDistanceColor([1, 2], [[0, 3]]))
|
# def print_hi(name):
# print(f'Hi, {name}')
# if __name__ == '__main__':
# print_hi('PyCharm')
print("Hello World Python xd")
# Para saber la direccion de memoria de cierta variable se usa el metodo id()
name = "Juan Diego Castellanos"
print(name)
print(id(name))
print("------")
print("tipo de dato")
print(type(name))
# Agregar hints o pistas de que tipo deben ser las variables
last_name: str = "Castellanos Jerez"
print(last_name)
print("---------Day Qualifier--------")
dia = int(input("How was your day? (between 1 to 10 ): "))
print(f"Your day was: {dia}")
print("----------------Book info----------------")
author = input("Please provide the author's name: ")
title = input("Please provide the book's title: ")
print("thanks for your information! ")
print(f"The {title} it was written by {author}")
print("--------------Rectangle Area and Perimeter-------------")
height = int(input("Please provide the height: "))
width = int(input("Please provide the width: "))
print(f"The Area is {(height*width)}")
print(f"The Perimeter is {((height+width)*2)}")
|
print('Hello World Python xd')
name = 'Juan Diego Castellanos'
print(name)
print(id(name))
print('------')
print('tipo de dato')
print(type(name))
last_name: str = 'Castellanos Jerez'
print(last_name)
print('---------Day Qualifier--------')
dia = int(input('How was your day? (between 1 to 10 ): '))
print(f'Your day was: {dia}')
print('----------------Book info----------------')
author = input("Please provide the author's name: ")
title = input("Please provide the book's title: ")
print('thanks for your information! ')
print(f'The {title} it was written by {author}')
print('--------------Rectangle Area and Perimeter-------------')
height = int(input('Please provide the height: '))
width = int(input('Please provide the width: '))
print(f'The Area is {height * width}')
print(f'The Perimeter is {(height + width) * 2}')
|
"""
Shared constant values.
"""
"""
## Handling Concurrency.
When appending events to a stream, you can supply a
*stream state* or *stream revision*. Your client can
use this to tell EventStoreDB what state or version
you expect the stream to be in when you append. If the
stream isn't in that state the an exception will be thrown.
The are three available stream states:
* Any
* NoStream
* StreamExists
This check can be used to implement optimistic concurrency. When you retrieve a stream
from EventStoreDB, you take note of the current version number, then when you save it
back you can determine if somebody else has modified the record in the meantime.
"""
NO_STREAM = "NO_STREAM"
ANY = "ANY"
STREAM_EXISTS = "STREAM_EXISTS"
"""
## Directions
"""
FORWARDS = "FORWARDS"
BACKWARDS = "BACKWARDS"
"""
## Revision positions.
"""
START = "START"
END = "END"
"""
## OTHERS
"""
WRONG_EXPECTED_VERSION = "wrong_expected_version"
|
"""
Shared constant values.
"""
"\n## Handling Concurrency.\nWhen appending events to a stream, you can supply a\n*stream state* or *stream revision*. Your client can\nuse this to tell EventStoreDB what state or version\nyou expect the stream to be in when you append. If the\nstream isn't in that state the an exception will be thrown.\n\nThe are three available stream states:\n\n* Any\n* NoStream\n* StreamExists\n\nThis check can be used to implement optimistic concurrency. When you retrieve a stream\nfrom EventStoreDB, you take note of the current version number, then when you save it\nback you can determine if somebody else has modified the record in the meantime.\n"
no_stream = 'NO_STREAM'
any = 'ANY'
stream_exists = 'STREAM_EXISTS'
'\n## Directions\n'
forwards = 'FORWARDS'
backwards = 'BACKWARDS'
'\n## Revision positions.\n'
start = 'START'
end = 'END'
'\n## OTHERS\n'
wrong_expected_version = 'wrong_expected_version'
|
"""
Django Rest Framework Auth provides very simple & quick way to adopt
authentication APIs' to your django project.
Rationale
---------
django-rest-framework's `Serializer` is nice idea for detaching
business logic from view functions. It's very similar to django's
``Form``, but serializer is not obligible for rendering response data,
and should not. - django forms also do this, seriously!!!
some expert beginners just know form is ONLY FOR `html form rendering` :(
Unluckily, even though django already provides forms and views
for authentication, We cannot use these for REST-APIs. It uses forms!!
(rest_framework does not use forms.)
We think there should be some serializers & views (or viewsets)
to use ``rest_framework``'s full features.
(such as throttling, pagination, versioning or content-negotiations)
Let's have a good taste of these elegant implementations.
API Endpoints
-------------
Below API endpoints can be re-configured if you write your urls.py
* POST /login/
* username
* password
authenticate user and persist him/her to website
* POST /logout/
let a user logged out.
.. NOTE::
Logout from HTTP GET is not implemented.
* POST /forgot/
* email
send a link for resetting password to user
* GET /reset/{uid64}/{token}/
* uid64, token - automatically generated tokens (when email is sent)
* new_password
* new_password (confirm)
reset a password for user
* GET /reset/d/
a view seen by user after resetting password
* POST /change-password/
* old_password
* new_password
* new_password (confirm)
change a password for user
* GET /api-root/
* see api lists
* POST /signup/
* username
* email
* password
* confirm_password
Create a user.
verification e-mail is sent when you set
``REST_AUTH_SIGNUP_REQUIRE_EMAIL_CONFIRMATION``
* GET /signup/v/{uid64}/{token}/
Verify user. After verification, user can use full features of websites.
"""
__version__ = '1.0.0'
default_app_config = 'rest_auth.apps.AppConfig'
|
"""
Django Rest Framework Auth provides very simple & quick way to adopt
authentication APIs' to your django project.
Rationale
---------
django-rest-framework's `Serializer` is nice idea for detaching
business logic from view functions. It's very similar to django's
``Form``, but serializer is not obligible for rendering response data,
and should not. - django forms also do this, seriously!!!
some expert beginners just know form is ONLY FOR `html form rendering` :(
Unluckily, even though django already provides forms and views
for authentication, We cannot use these for REST-APIs. It uses forms!!
(rest_framework does not use forms.)
We think there should be some serializers & views (or viewsets)
to use ``rest_framework``'s full features.
(such as throttling, pagination, versioning or content-negotiations)
Let's have a good taste of these elegant implementations.
API Endpoints
-------------
Below API endpoints can be re-configured if you write your urls.py
* POST /login/
* username
* password
authenticate user and persist him/her to website
* POST /logout/
let a user logged out.
.. NOTE::
Logout from HTTP GET is not implemented.
* POST /forgot/
* email
send a link for resetting password to user
* GET /reset/{uid64}/{token}/
* uid64, token - automatically generated tokens (when email is sent)
* new_password
* new_password (confirm)
reset a password for user
* GET /reset/d/
a view seen by user after resetting password
* POST /change-password/
* old_password
* new_password
* new_password (confirm)
change a password for user
* GET /api-root/
* see api lists
* POST /signup/
* username
* email
* password
* confirm_password
Create a user.
verification e-mail is sent when you set
``REST_AUTH_SIGNUP_REQUIRE_EMAIL_CONFIRMATION``
* GET /signup/v/{uid64}/{token}/
Verify user. After verification, user can use full features of websites.
"""
__version__ = '1.0.0'
default_app_config = 'rest_auth.apps.AppConfig'
|
'''
Your plot of the ECDF and determination of the confidence interval make it pretty clear that the beaks of G. scandens on Daphne Major have gotten deeper. But is it possible that this effect is just due to random chance? In other words, what is the probability that we would get the observed difference in mean beak depth if the means were the same?
Be careful! The hypothesis we are testing is not that the beak depths come from the same distribution. For that we could use a permutation test. The hypothesis is that the means are equal. To perform this hypothesis test, we need to shift the two data sets so that they have the same mean and then use bootstrap sampling to compute the difference of means.
'''
# Compute mean of combined data set: combined_mean
combined_mean = np.mean(np.concatenate((bd_1975, bd_2012)))
# Shift the samples
bd_1975_shifted = bd_1975 - np.mean(bd_1975) + combined_mean
bd_2012_shifted = bd_2012 - np.mean(bd_2012) + combined_mean
# Get bootstrap replicates of shifted data sets
bs_replicates_1975 = draw_bs_reps(bd_1975_shifted, np.mean, 10000)
bs_replicates_2012 = draw_bs_reps(bd_2012_shifted, np.mean, 10000)
# Compute replicates of difference of means: bs_diff_replicates
bs_diff_replicates = bs_replicates_2012 - bs_replicates_1975
# Compute the p-value
p = np.sum(bs_diff_replicates >= mean_diff) / len(bs_diff_replicates)
# Print p-value
print('p =', p)
|
"""
Your plot of the ECDF and determination of the confidence interval make it pretty clear that the beaks of G. scandens on Daphne Major have gotten deeper. But is it possible that this effect is just due to random chance? In other words, what is the probability that we would get the observed difference in mean beak depth if the means were the same?
Be careful! The hypothesis we are testing is not that the beak depths come from the same distribution. For that we could use a permutation test. The hypothesis is that the means are equal. To perform this hypothesis test, we need to shift the two data sets so that they have the same mean and then use bootstrap sampling to compute the difference of means.
"""
combined_mean = np.mean(np.concatenate((bd_1975, bd_2012)))
bd_1975_shifted = bd_1975 - np.mean(bd_1975) + combined_mean
bd_2012_shifted = bd_2012 - np.mean(bd_2012) + combined_mean
bs_replicates_1975 = draw_bs_reps(bd_1975_shifted, np.mean, 10000)
bs_replicates_2012 = draw_bs_reps(bd_2012_shifted, np.mean, 10000)
bs_diff_replicates = bs_replicates_2012 - bs_replicates_1975
p = np.sum(bs_diff_replicates >= mean_diff) / len(bs_diff_replicates)
print('p =', p)
|
#!/usr/bin/env python3
def isBalanced(s: str) -> bool:
stack = []
pair = {'(': ')', '{': '}', '[': ']'}
for ch in s:
# For left brackets push right brackets
if (ch in pair.keys()):
stack.append(pair[ch])
else:
# Unmatch right char
if len(stack) == 0:
return False
# Ensure a match
if (ch != stack[-1]):
return False
# Good match, pop
stack.pop()
return len(stack) == 0
if __name__ == "__main__":
print(isBalanced("((){[]})"))
print(isBalanced(""))
print(isBalanced("[[["))
|
def is_balanced(s: str) -> bool:
stack = []
pair = {'(': ')', '{': '}', '[': ']'}
for ch in s:
if ch in pair.keys():
stack.append(pair[ch])
else:
if len(stack) == 0:
return False
if ch != stack[-1]:
return False
stack.pop()
return len(stack) == 0
if __name__ == '__main__':
print(is_balanced('((){[]})'))
print(is_balanced(''))
print(is_balanced('[[['))
|
#
# if type(input) == string:
# find if palindrome
# elif type(input) == number:
# find factorial
# find if palindrome
#
def pal(st):
l = len(st)
i = 0
flag = True
while i < l//2:
if st[i] == st[l-i-1]:
pass
else:
flag = False
i += 1
return flag
while True:
print("Menu\n1. for palindrome\n2. for factorial\n3. exit")
ip = int(input("enter your choise: "))
if ip == 1:
st = input("enter number or string: ")
if pal(st):
print("the input is a plaindrome")
else:
print("the input is not a plindrome")
elif ip == 2:
st = int(input("enter number: "))
i = 1
fact = 1
while i <= int(st):
fact *= i
i += 1
print("fact of",ip, "is",fact)
elif ip == 3:
break
else:
print("enter valid choise")
|
def pal(st):
l = len(st)
i = 0
flag = True
while i < l // 2:
if st[i] == st[l - i - 1]:
pass
else:
flag = False
i += 1
return flag
while True:
print('Menu\n1. for palindrome\n2. for factorial\n3. exit')
ip = int(input('enter your choise: '))
if ip == 1:
st = input('enter number or string: ')
if pal(st):
print('the input is a plaindrome')
else:
print('the input is not a plindrome')
elif ip == 2:
st = int(input('enter number: '))
i = 1
fact = 1
while i <= int(st):
fact *= i
i += 1
print('fact of', ip, 'is', fact)
elif ip == 3:
break
else:
print('enter valid choise')
|
class TSDBClientException(Exception):
pass
class TSDBNotAlive(TSDBClientException):
pass
class TagsError(TSDBClientException):
pass
class ValidationError(TSDBClientException):
pass
class UnknownTSDBConnectProtocol(TSDBClientException):
def __init__(self, protocol):
self.protocol = protocol
def __str__(self):
return "Unknown TSDB connection protocol: %s" % self.protocol
|
class Tsdbclientexception(Exception):
pass
class Tsdbnotalive(TSDBClientException):
pass
class Tagserror(TSDBClientException):
pass
class Validationerror(TSDBClientException):
pass
class Unknowntsdbconnectprotocol(TSDBClientException):
def __init__(self, protocol):
self.protocol = protocol
def __str__(self):
return 'Unknown TSDB connection protocol: %s' % self.protocol
|
# Author: Jocelino F.G
a, b = input().split(), input().split()
q1 = int(a[1])
v1 = float(a[2])
q2 = int(b[1])
v2 = float(b[2])
t1 = q1 * v1
t2 = q2 * v2
tt = t1 + t2
print('VALOR A PAGAR: R$ %.2f' %tt)
|
(a, b) = (input().split(), input().split())
q1 = int(a[1])
v1 = float(a[2])
q2 = int(b[1])
v2 = float(b[2])
t1 = q1 * v1
t2 = q2 * v2
tt = t1 + t2
print('VALOR A PAGAR: R$ %.2f' % tt)
|
def merge_sort(unsorted_list):
if len(unsorted_list) <= 1:
return unsorted_list
# Finding the middle point and partitioning the array into two halves
middle = len(unsorted_list) // 2
left = unsorted_list[:middle]
right = unsorted_list[middle:]
left = merge_sort(left)
right = merge_sort(right)
return list(merge(left, right))
#Merging the sorted halves
def merge(left,right):
res = []
while len(left) != 0 and len(right) != 0:
if left[0] < right[0]:
res.append(left[0])
left.remove(left[0])
else:
res.append(right[0])
right.remove(right[0])
if len(left) == 0:
res = res + right
else:
res = res + left
return res
input_list = list(map(int,input("Enter unsorted input list: ").split()))
print("Unsorted Input: ", input_list)
print("Sorted Output: ", merge_sort(input_list))
|
def merge_sort(unsorted_list):
if len(unsorted_list) <= 1:
return unsorted_list
middle = len(unsorted_list) // 2
left = unsorted_list[:middle]
right = unsorted_list[middle:]
left = merge_sort(left)
right = merge_sort(right)
return list(merge(left, right))
def merge(left, right):
res = []
while len(left) != 0 and len(right) != 0:
if left[0] < right[0]:
res.append(left[0])
left.remove(left[0])
else:
res.append(right[0])
right.remove(right[0])
if len(left) == 0:
res = res + right
else:
res = res + left
return res
input_list = list(map(int, input('Enter unsorted input list: ').split()))
print('Unsorted Input: ', input_list)
print('Sorted Output: ', merge_sort(input_list))
|
x = 0
drone_chk = [112, 334, 4444, 4444, 445, 112, 27466, 445, 27466]
for i in drone_chk:
x ^= i
print("The missing drone order ID is:", x)
|
x = 0
drone_chk = [112, 334, 4444, 4444, 445, 112, 27466, 445, 27466]
for i in drone_chk:
x ^= i
print('The missing drone order ID is:', x)
|
############################################################################
#
# 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():
files = checkAndCopyFiles(testData.dataset("files.tsv"), "filename", tempDir())
if not files:
return
startApplication("qtcreator" + SettingsPath)
if not startedWithoutPluginError():
return
for currentFile in files:
test.log("Opening file %s" % currentFile)
invokeMenuItem("File", "Open File or Project...")
selectFromFileDialog(currentFile)
editor = getEditorForFileSuffix(currentFile)
if editor == None:
test.fatal("Could not get the editor for '%s'" % currentFile,
"Skipping this file for now.")
continue
contentBefore = readFile(currentFile)
os.remove(currentFile)
if not currentFile.endswith(".bin"):
popupText = ("The file %s has been removed from disk. Do you want to "
"save it under a different name, or close the editor?")
test.compare(waitForObject(":File has been removed_QMessageBox").text,
popupText % currentFile)
clickButton(waitForObject(":File has been removed.Save_QPushButton"))
waitFor("os.path.exists(currentFile)", 5000)
# avoids a lock-up on some Linux machines, purely empiric, might have different cause
waitFor("checkIfObjectExists(':File has been removed_QMessageBox', False, 0)", 5000)
test.compare(readFile(currentFile), contentBefore,
"Verifying that file '%s' was restored correctly" % currentFile)
# Test for QTCREATORBUG-8130
os.remove(currentFile)
test.compare(waitForObject(":File has been removed_QMessageBox").text,
popupText % currentFile)
clickButton(waitForObject(":File has been removed.Close_QPushButton"))
test.verify(checkIfObjectExists(objectMap.realName(editor), False),
"Was the editor closed after deleting the file?")
invokeMenuItem("File", "Exit")
|
source('../../shared/qtcreator.py')
def main():
files = check_and_copy_files(testData.dataset('files.tsv'), 'filename', temp_dir())
if not files:
return
start_application('qtcreator' + SettingsPath)
if not started_without_plugin_error():
return
for current_file in files:
test.log('Opening file %s' % currentFile)
invoke_menu_item('File', 'Open File or Project...')
select_from_file_dialog(currentFile)
editor = get_editor_for_file_suffix(currentFile)
if editor == None:
test.fatal("Could not get the editor for '%s'" % currentFile, 'Skipping this file for now.')
continue
content_before = read_file(currentFile)
os.remove(currentFile)
if not currentFile.endswith('.bin'):
popup_text = 'The file %s has been removed from disk. Do you want to save it under a different name, or close the editor?'
test.compare(wait_for_object(':File has been removed_QMessageBox').text, popupText % currentFile)
click_button(wait_for_object(':File has been removed.Save_QPushButton'))
wait_for('os.path.exists(currentFile)', 5000)
wait_for("checkIfObjectExists(':File has been removed_QMessageBox', False, 0)", 5000)
test.compare(read_file(currentFile), contentBefore, "Verifying that file '%s' was restored correctly" % currentFile)
os.remove(currentFile)
test.compare(wait_for_object(':File has been removed_QMessageBox').text, popupText % currentFile)
click_button(wait_for_object(':File has been removed.Close_QPushButton'))
test.verify(check_if_object_exists(objectMap.realName(editor), False), 'Was the editor closed after deleting the file?')
invoke_menu_item('File', 'Exit')
|
"""
Code Challenge 1
Certificate Generator
Develop a Python code that can generate certificates in image format.
It must take names and other required information from the user and generates
certificate of participation in a Python Bootcamp conducted by Forsk.
Certificate should have Forsk Seal, Forsk Signature, Different Fonts
Code Challenge 2
I-Card Generation System
Write a Python code for a system that generates I-card for all studentsof Forsk
Summer Developer Program and store them in image format.
It must take names and other required information from the user.
Code Challenge 3
Watermarking Application
Have some pictures you want copyright protected? Add your own logo or text lightly
across the background so that no one can simply steal your graphics off your site.
Make a program that will add this watermark to the picture.
Code Challenge 4
GIF Creator
A program that puts together multiple images (PNGs, JPGs, TIFFs) to make a smooth
GIF that can be exported. Make the program convert small video files to GIFs as
well.
Code Challenge 5
Fortune Teller (Horoscope)
A program that checks your horoscope on various astrology sites and puts them
together for you each day. The code should share the Horoscope on Tweeter account
of the user.
"""
|
"""
Code Challenge 1
Certificate Generator
Develop a Python code that can generate certificates in image format.
It must take names and other required information from the user and generates
certificate of participation in a Python Bootcamp conducted by Forsk.
Certificate should have Forsk Seal, Forsk Signature, Different Fonts
Code Challenge 2
I-Card Generation System
Write a Python code for a system that generates I-card for all studentsof Forsk
Summer Developer Program and store them in image format.
It must take names and other required information from the user.
Code Challenge 3
Watermarking Application
Have some pictures you want copyright protected? Add your own logo or text lightly
across the background so that no one can simply steal your graphics off your site.
Make a program that will add this watermark to the picture.
Code Challenge 4
GIF Creator
A program that puts together multiple images (PNGs, JPGs, TIFFs) to make a smooth
GIF that can be exported. Make the program convert small video files to GIFs as
well.
Code Challenge 5
Fortune Teller (Horoscope)
A program that checks your horoscope on various astrology sites and puts them
together for you each day. The code should share the Horoscope on Tweeter account
of the user.
"""
|
#
# PySNMP MIB module F5-3DNS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/F5-3DNS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:11:39 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, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "SingleValueConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Counter32, Counter64, ObjectIdentity, Bits, NotificationType, Unsigned32, Integer32, Gauge32, NotificationType, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, TimeTicks, enterprises, iso, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "Counter64", "ObjectIdentity", "Bits", "NotificationType", "Unsigned32", "Integer32", "Gauge32", "NotificationType", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "TimeTicks", "enterprises", "iso", "ModuleIdentity")
TextualConvention, DisplayString, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "DateAndTime")
f5 = MibIdentifier((1, 3, 6, 1, 4, 1, 3375))
f5systems = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1))
f53dns = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2))
f53dnsMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1))
f53dnsMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1))
globals = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1))
dataCenters = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2))
lbRouters = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3))
hosts = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4))
lbDnsServs = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5))
lbDomains = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6))
summary = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7))
threednsTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2))
threednsTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2))
globalCheckStaticDepends = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalCheckStaticDepends.setStatus('mandatory')
if mibBuilder.loadTexts: globalCheckStaticDepends.setDescription('Indicates whether the availability of virtual servers on load-balancing routers and hosts is checked. Normally true, but can be false for testing.')
globalDefaultAlternate = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("returnDNS", 1), ("none", 2), ("returnVS", 3), ("roundRobin", 4), ("ratio", 5), ("random", 6), ("topology", 7), ("staticPersist", 8), ("globalAvailability", 9), ("servers", 10), ("connections", 11), ("roundTripTime", 12), ("hops", 13), ("packetRate", 14), ("mem", 15), ("cpu", 16), ("diskSpace", 17), ("hitRatio", 18), ("qos", 19)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalDefaultAlternate.setStatus('mandatory')
if mibBuilder.loadTexts: globalDefaultAlternate.setDescription('Default static load balancing mode.')
globalTimerGetLBRouterData = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalTimerGetLBRouterData.setStatus('mandatory')
if mibBuilder.loadTexts: globalTimerGetLBRouterData.setDescription('Interval in seconds between refreshes of load-balancing router data.')
globalTimerGetVServData = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalTimerGetVServData.setStatus('mandatory')
if mibBuilder.loadTexts: globalTimerGetVServData.setDescription('Interval in seconds between refreshes of virtual server data.')
globalTimerGetPathData = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalTimerGetPathData.setStatus('mandatory')
if mibBuilder.loadTexts: globalTimerGetPathData.setDescription('Interval in seconds between refreshes of path data.')
globalLBRouterTTL = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalLBRouterTTL.setStatus('mandatory')
if mibBuilder.loadTexts: globalLBRouterTTL.setDescription('Amount of time in seconds that load-balancing router data is considered valid for name resolution and load balancing.')
globalVSTTL = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalVSTTL.setStatus('mandatory')
if mibBuilder.loadTexts: globalVSTTL.setDescription('Amount of time in seconds that virtual server data is considered valid for name resolution and load balancing.')
globalPathTTL = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalPathTTL.setStatus('mandatory')
if mibBuilder.loadTexts: globalPathTTL.setDescription('Amount of time in seconds that path data is considered valid for name resolution and load balancing.')
globalRTTTimeout = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTTimeout.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTTimeout.setDescription('Amount of time in seconds that the RTT listener daemon waits for a probe.')
globalRTTSampleCount = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 25))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTSampleCount.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTSampleCount.setDescription('Number of packets to send when measuring round-trip times.')
globalRTTPacketLength = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(64, 500))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTPacketLength.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTPacketLength.setDescription('Length in bytes of packets used for measuring round-trip times.')
globalRTTProbeProtocol = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("icmp", 1), ("tcp", 2), ("udp", 3), ("dnsnslookupDot", 4), ("dnsRetrieveBindVers", 5), ("numberItems", 6), ("none", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTProbeProtocol.setDescription('Probing protocol used for measuring round-trip times.')
globalEncryption = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalEncryption.setStatus('mandatory')
if mibBuilder.loadTexts: globalEncryption.setDescription('Indicates whether encryption is used for iQuery events.')
globalEncryptionKeyFile = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 14), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalEncryptionKeyFile.setStatus('mandatory')
if mibBuilder.loadTexts: globalEncryptionKeyFile.setDescription('The pathname of the key file used for encryption.')
globalPathHiWater = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalPathHiWater.setStatus('mandatory')
if mibBuilder.loadTexts: globalPathHiWater.setDescription('Path memory usage level that triggers reaping, in bytes.')
globalPathLoWater = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalPathLoWater.setStatus('mandatory')
if mibBuilder.loadTexts: globalPathLoWater.setDescription('Path memory usage level at which reaping is discontinued, in bytes.')
globalPathDuration = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3600, 2419200))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalPathDuration.setStatus('mandatory')
if mibBuilder.loadTexts: globalPathDuration.setDescription('Interval in seconds between checks of path memory usage to determine whether to reap.')
globalPathReapAlg = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("lru", 1), ("fewestHits", 2), ("numberItems", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalPathReapAlg.setStatus('mandatory')
if mibBuilder.loadTexts: globalPathReapAlg.setDescription('Algorithm used for selecting paths to be discarded when reaping.')
globalTimerKeepAlive = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalTimerKeepAlive.setStatus('mandatory')
if mibBuilder.loadTexts: globalTimerKeepAlive.setDescription('Interval in seconds between periodic queries of load-balancing routers.')
globalRxBufSize = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 20), Integer32().subtype(subtypeSpec=ValueRangeConstraint(8192, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRxBufSize.setStatus('mandatory')
if mibBuilder.loadTexts: globalRxBufSize.setDescription('Size of each socket receive buffer, in bytes.')
globalTxBufSize = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(8192, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalTxBufSize.setStatus('mandatory')
if mibBuilder.loadTexts: globalTxBufSize.setDescription('Size of each socket transmit buffer, in bytes.')
globalQosCoeffRTT = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosCoeffRTT.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosCoeffRTT.setDescription('Relative weight given to the round-trip time in the quality of service load balancing mode.')
globalQosCoeffCompletionRate = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 23), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosCoeffCompletionRate.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosCoeffCompletionRate.setDescription('Relative weight given to the completion rate in the quality of service load balancing mode.')
globalQosCoeffHops = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosCoeffHops.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosCoeffHops.setDescription('Relative weight given to the hop count in the quality of service load balancing mode.')
globalQosCoeffPacketRate = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosCoeffPacketRate.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosCoeffPacketRate.setDescription('Relative weight given to the packet rate in the quality of service load balancing mode.')
globalPathsNoClobber = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 26), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalPathsNoClobber.setStatus('mandatory')
if mibBuilder.loadTexts: globalPathsNoClobber.setDescription('Specifies whether the load-balancing DNS server overwrites existing path data with blank data when a path probe fails.')
globalPathsNeverDie = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalPathsNeverDie.setStatus('mandatory')
if mibBuilder.loadTexts: globalPathsNeverDie.setDescription('Specifies whether dynamic load balancing modes can use path data even after the ttl for the path data has expired.')
globalRegulateInit = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 28), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRegulateInit.setStatus('mandatory')
if mibBuilder.loadTexts: globalRegulateInit.setDescription('Defines the initial amount of path probe requests 3DNS will send to each big3d after initialization. After the first series of probe requests, 3DNS adjusts the number of future probe requests according to the amount received during the last probe interval (defined by timer_get_path_data) plus the increment defined by regulate_paths.')
globalRegulatePaths = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 29), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRegulatePaths.setStatus('mandatory')
if mibBuilder.loadTexts: globalRegulatePaths.setDescription("If zero, no path regulation will be attempted. Every path in the cache that is not fresh will be sent to each big3d every timer_get_path_data seconds. If non-zero, this defines the increment over the amount of path's probed and refreshed over the past interval to determine an upper bound for probe requests to send to each big3d.")
globalProberAddr = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 30), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalProberAddr.setStatus('mandatory')
if mibBuilder.loadTexts: globalProberAddr.setDescription('The default prober for host status.')
globalCheckDynamicDepends = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalCheckDynamicDepends.setStatus('mandatory')
if mibBuilder.loadTexts: globalCheckDynamicDepends.setDescription('Indicates whether the load-balancing DNS server checks the availability of a path before it uses the path for load balancing.')
globalDefaultFallback = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("returnDNS", 1), ("none", 2), ("returnVS", 3), ("roundRobin", 4), ("ratio", 5), ("random", 6), ("topology", 7), ("staticPersist", 8), ("globalAvailability", 9), ("servers", 10), ("connections", 11), ("roundTripTime", 12), ("hops", 13), ("packetRate", 14), ("mem", 15), ("cpu", 16), ("diskSpace", 17), ("hitRatio", 18), ("qos", 19)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalDefaultFallback.setStatus('mandatory')
if mibBuilder.loadTexts: globalDefaultFallback.setDescription('The default load balancing mode used for the fallback method.')
globalDefaultTTL = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 33), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalDefaultTTL.setStatus('mandatory')
if mibBuilder.loadTexts: globalDefaultTTL.setDescription('The amount of time (in seconds) that information is to be used for name resolution and load balancing.')
globalPersistLDns = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalPersistLDns.setStatus('mandatory')
if mibBuilder.loadTexts: globalPersistLDns.setDescription("If TRUE (default), then 3DNS will remember all LDNS's that make requests in its cache. This must be TRUE in order to store and use path information.")
globalFbRespectAcl = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalFbRespectAcl.setStatus('mandatory')
if mibBuilder.loadTexts: globalFbRespectAcl.setDescription('Indicates whether the load-balancing DNS server imposes access control when load balancing switches to the specified fallback mode.')
globalFbRespectDepends = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalFbRespectDepends.setStatus('mandatory')
if mibBuilder.loadTexts: globalFbRespectDepends.setDescription('Indicates whether the load-balancing DNS server respects virtual server status when load balancing switches to the specified fallback mode.')
globalHostTTL = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 37), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalHostTTL.setStatus('mandatory')
if mibBuilder.loadTexts: globalHostTTL.setDescription('The amount of time (in seconds) that host machine information is to be used for name resolution and load balancing.')
globalTimerGetHostData = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 38), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalTimerGetHostData.setStatus('mandatory')
if mibBuilder.loadTexts: globalTimerGetHostData.setDescription('The interval (in seconds) between refreshes of host information.')
globalRTTRetireZero = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTRetireZero.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTRetireZero.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
globalRTTPortDiscovery = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTPortDiscovery.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTPortDiscovery.setDescription('Indicates whether the load-balancing DNS server uses the discovery factory to find an alternate port to be used by the probing factory, if probing on port 53 fails.')
globalRTTDiscoveryMethod = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("short", 1), ("wks", 2), ("full", 3), ("all", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTDiscoveryMethod.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTDiscoveryMethod.setDescription('Indicates the set of ports scanned when searching for an alternate port to be used bythe probing factory, if probing on port 53 fails.')
globalRTTProbeDynamic = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTProbeDynamic.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTProbeDynamic.setDescription('Indicates whether the load-balancing DNS server attempts a second probe using the alternate probe protocol if the probe protocol specified by globalRTTProbeProtocol fails during the first probe.')
globalResolverRXBufSize = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 43), Integer32().subtype(subtypeSpec=ValueRangeConstraint(8192, 131072))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalResolverRXBufSize.setStatus('mandatory')
if mibBuilder.loadTexts: globalResolverRXBufSize.setDescription('The UDP receive buffer size.')
globalResolverTXBufSize = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 44), Integer32().subtype(subtypeSpec=ValueRangeConstraint(8192, 32768))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalResolverTXBufSize.setStatus('mandatory')
if mibBuilder.loadTexts: globalResolverTXBufSize.setDescription('The TCP send buffer size.')
globalCoeffLastAccess = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 45), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalCoeffLastAccess.setStatus('mandatory')
if mibBuilder.loadTexts: globalCoeffLastAccess.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
globalCoeffFreshRemain = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 46), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalCoeffFreshRemain.setStatus('mandatory')
if mibBuilder.loadTexts: globalCoeffFreshRemain.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
globalCoeffAccessRefresh = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 47), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalCoeffAccessRefresh.setStatus('mandatory')
if mibBuilder.loadTexts: globalCoeffAccessRefresh.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
globalCoeffAccessTotal = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 48), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalCoeffAccessTotal.setStatus('mandatory')
if mibBuilder.loadTexts: globalCoeffAccessTotal.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
globalCoeffDRTT = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 49), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalCoeffDRTT.setStatus('mandatory')
if mibBuilder.loadTexts: globalCoeffDRTT.setDescription('Relative weighting for round trip time when the load balancing mode is set to Quality of Service.')
globalCoeffDCompletionRate = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 50), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalCoeffDCompletionRate.setStatus('mandatory')
if mibBuilder.loadTexts: globalCoeffDCompletionRate.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
globalQosCoeffTopology = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 51), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosCoeffTopology.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosCoeffTopology.setDescription('Relative weighting for topology when the load balancing mode is set to Quality of Service.')
globalQosFactorRTT = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 52), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosFactorRTT.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosFactorRTT.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
globalQosFactorHops = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 53), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosFactorHops.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosFactorHops.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
globalQosFactorCompletionRate = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 54), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosFactorCompletionRate.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosFactorCompletionRate.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
globalQosFactorPacketRate = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 55), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosFactorPacketRate.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosFactorPacketRate.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
globalQosFactorTopology = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 56), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalQosFactorTopology.setStatus('mandatory')
if mibBuilder.loadTexts: globalQosFactorTopology.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
globalLDnsHiWater = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 57), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalLDnsHiWater.setStatus('mandatory')
if mibBuilder.loadTexts: globalLDnsHiWater.setDescription('LDNS memory usage level that triggers reaping, in bytes.')
globalLDnsLoWater = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 58), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalLDnsLoWater.setStatus('mandatory')
if mibBuilder.loadTexts: globalLDnsLoWater.setDescription('LDNS memory usage level at which reaping is discontinued, in bytes.')
globalLDnsDuration = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 59), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3600, 424967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalLDnsDuration.setStatus('mandatory')
if mibBuilder.loadTexts: globalLDnsDuration.setDescription('Interval in seconds between checks of LDNS memory usage to determine whether to reap.')
globalLDnsReapAlg = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 60), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("lru", 1), ("fewestHits", 2), ("numberItems", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalLDnsReapAlg.setStatus('mandatory')
if mibBuilder.loadTexts: globalLDnsReapAlg.setDescription('Algorithm used for selecting LDNS entries to be discarded when reaping.')
globalUseAltIqPort = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 61), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalUseAltIqPort.setStatus('mandatory')
if mibBuilder.loadTexts: globalUseAltIqPort.setDescription('If true, the registered port 4353 is used for iQuery traffic. If false, the traditional port 245 is used.')
globalMultiplexIq = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 62), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalMultiplexIq.setStatus('mandatory')
if mibBuilder.loadTexts: globalMultiplexIq.setDescription('If true, port 4353 is used for all incoming iQuery traffic. If false, ports from the ephemeral port range are used.')
globalRTTProbeProtocolList = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 63), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTProbeProtocolList.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTProbeProtocolList.setDescription('List of RTT probe protocols to use. The protocols are listed in the order in which they will be attempted. If an attempt to use a specified protocol fails, the next one in the list will be used for a subsequent attempt. If the last protocol in the list fails the first one in the list will then be used.')
globalRTTProbeProtocolState = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 64), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalRTTProbeProtocolState.setStatus('mandatory')
if mibBuilder.loadTexts: globalRTTProbeProtocolState.setDescription('The current RTT probe protocol being used. This will return the name of the protocol being used followed by a number signifying the position of that protocol in the list of protocols returned by globalRTTProbeProtocolList.')
globalResetCounters = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 65), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("reset", 1), ("unreset", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: globalResetCounters.setStatus('mandatory')
if mibBuilder.loadTexts: globalResetCounters.setDescription('Writing a one to this variable will cause counters within 3DNS to be reset. If the counters have been reset this variable will have a value of 1. If the counters have not been reset the variable will have a value of 2.')
globalResetCounterTime = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 66), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: globalResetCounterTime.setStatus('mandatory')
if mibBuilder.loadTexts: globalResetCounterTime.setDescription('The time of the last reset of the 3DNS counters. If the counters have not been reset this variable will contain the time when statistic gathering first started.')
dataCenterTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1), )
if mibBuilder.loadTexts: dataCenterTable.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterTable.setDescription('Information describing the defined data centers.')
dataCenterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1), ).setIndexNames((0, "F5-3DNS-MIB", "dataCenterName"))
if mibBuilder.loadTexts: dataCenterEntry.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterEntry.setDescription('This table contains a row for each data center. The rows are indexed by the names of the data centers.')
dataCenterName = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dataCenterName.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterName.setDescription('The name of the data center in this row of the table.')
dataCenterContact = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dataCenterContact.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterContact.setDescription('Contact information for the data center in this row of the table.')
dataCenterLocation = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dataCenterLocation.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterLocation.setDescription('The location of the data center in this row of the table.')
dataCenterPathCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dataCenterPathCount.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterPathCount.setDescription('The number of paths in the data center in this row of the table.')
dataCenterDisabled = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dataCenterDisabled.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterDisabled.setDescription('Is this datacenter disabled. If a datacenter is disabled then all servers within the datacenter are treated as disabled.')
dataCenterDisableDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 6), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dataCenterDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterDisableDuration.setDescription('The duration of a disable of this datacenter.')
dataCenterServTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 2), )
if mibBuilder.loadTexts: dataCenterServTable.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterServTable.setDescription('Information about the servers associated with each data center.')
dataCenterServEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 2, 1), ).setIndexNames((0, "F5-3DNS-MIB", "dataCenterName"), (0, "F5-3DNS-MIB", "dataCenterServAddr"))
if mibBuilder.loadTexts: dataCenterServEntry.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterServEntry.setDescription('This table contains a row for each server in each data center.')
dataCenterServAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 2, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dataCenterServAddr.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterServAddr.setDescription('The IP address of the server.')
dataCenterServType = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("lbRouter", 2), ("lbDnsServ", 3), ("host", 4), ("lDns", 5), ("prober", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dataCenterServType.setStatus('mandatory')
if mibBuilder.loadTexts: dataCenterServType.setDescription('The server type.')
lbRouterTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1), )
if mibBuilder.loadTexts: lbRouterTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterTable.setDescription('Information about the defined load-balancing routers.')
lbRouterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbRouterAddr"))
if mibBuilder.loadTexts: lbRouterEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterEntry.setDescription("This table contains a row for each load-balancing router known to the system. It is indexed by the router's canonical IP address.")
lbRouterAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterAddr.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterAddr.setDescription("The load-balancing router's canonical IP address.")
lbRouterName = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterName.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterName.setDescription("The load-balancing router's name.")
lbRouterVServCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServCount.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServCount.setDescription('The number of virtual servers associated with the load-balancing router.')
lbRouterPicks = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterPicks.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterPicks.setDescription('The number of times the specified load-balancing router has been chosen by the load-balancing DNS server.')
lbRouterRefreshes = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterRefreshes.setDescription('The number of times that server and connection counts have been refreshed with new data from the load-balancing router.')
lbRouterDisabled = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterDisabled.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterDisabled.setDescription('Is this load -balancing router disabled. If a load-balancing router is disabled then all of its virtual servers are considered to be disabled.')
lbRouterDisableDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 7), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterDisableDuration.setDescription('Duration of a disable of this load-balancing router.')
lbRouterIQProto = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("tcp", 1), ("udp", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIQProto.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIQProto.setDescription('IQuery protocol to use for this load-balancing router.')
lbRouterIfTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2), )
if mibBuilder.loadTexts: lbRouterIfTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfTable.setDescription('Information about the network interfaces on a load-balancing router.')
lbRouterIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbRouterAddr"), (0, "F5-3DNS-MIB", "lbRouterIfAddr"))
if mibBuilder.loadTexts: lbRouterIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfEntry.setDescription('This table contains a row for each network interface associated with a load-balancing router. It is indexed by the canonical IP address of the router and the specific IP address of the interface.')
lbRouterIfAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfAddr.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfAddr.setDescription('The specific IP address of the network interface in this row of the table.')
lbRouterIfShared = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfShared.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfShared.setDescription('Whether the interface is the shared IP address of the load-balancing router.')
lbRouterIfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("up", 2), ("down", 3), ("waiting", 4), ("alert", 5), ("panic", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfStatus.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfStatus.setDescription('The status of the network interface.')
lbRouterIfTXPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfTXPackets.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfTXPackets.setDescription('The number of packets that have been transmitted on the network interface.')
lbRouterIfRXPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfRXPackets.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfRXPackets.setDescription('The number of packets that have been received on the network interface.')
lbRouterIfPacketRate = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfPacketRate.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfPacketRate.setDescription("The interface's current packet rate in packets per second.")
lbRouterIfUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 7), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfUpTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfUpTime.setDescription('The amount of time the interface has been up.')
lbRouterIfAliveTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 8), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfAliveTime.setDescription('The most recent date and time when the interface was known to be running.')
lbRouterIfDataTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 9), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfDataTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfDataTime.setDescription('The most recent date and time when data was transmitted through the interface.')
lbRouterIfPathSentTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 10), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfPathSentTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfPathSentTime.setDescription('The date and time when path data corresponding to the interface was most recently sent.')
lbRouterIfPathsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfPathsSent.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfPathsSent.setDescription('The number of paths sent in the most recent batch.')
lbRouterIfPathsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfPathsRcvd.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfPathsRcvd.setDescription('The number of paths received in the most recent batch.')
lbRouterIfPathSends = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfPathSends.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfPathSends.setDescription('The number of batches of paths that have been sent.')
lbRouterIfPathRcvs = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfPathRcvs.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfPathRcvs.setDescription('The number of batches of paths that have been received.')
lbRouterIfAvgPathsSentX1000 = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfAvgPathsSentX1000.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfAvgPathsSentX1000.setDescription('The average sent path batch size, multiplied by 1000.')
lbRouterIfAvgPathsRcvdX1000 = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfAvgPathsRcvdX1000.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfAvgPathsRcvdX1000.setDescription('The average received path batch size, multiplied by 1000.')
lbRouterIfFctryTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 3), )
if mibBuilder.loadTexts: lbRouterIfFctryTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfFctryTable.setDescription('Information about the factories running on each load-balancing router interface.')
lbRouterIfFctryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 3, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbRouterAddr"), (0, "F5-3DNS-MIB", "lbRouterIfAddr"), (0, "F5-3DNS-MIB", "lbRouterIfFctryType"))
if mibBuilder.loadTexts: lbRouterIfFctryEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfFctryEntry.setDescription('This table gives the number of factories of each type that are running on each load-balancing router interface.')
lbRouterIfFctryType = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("lbRouter", 1), ("prober", 2), ("discovery", 3), ("snmp", 4), ("hops", 5), ("server", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfFctryType.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfFctryType.setDescription('The type of the factory in this row of the table.')
lbRouterIfFctryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterIfFctryCount.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterIfFctryCount.setDescription('The number of factories of the type corresponding to this row of the table.')
lbRouterVServTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4), )
if mibBuilder.loadTexts: lbRouterVServTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServTable.setDescription('Information about the virtual servers associated with each load-balancing router.')
lbRouterVServEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbRouterAddr"), (0, "F5-3DNS-MIB", "lbRouterVServAddr"), (0, "F5-3DNS-MIB", "lbRouterVServPort"))
if mibBuilder.loadTexts: lbRouterVServEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServEntry.setDescription('This table contains a row for each virtual server on each load-balancing router. It is indexed by the router address and by the address/port combination that defines the virtual server.')
lbRouterVServAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServAddr.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServAddr.setDescription('The IP address of the virtual server.')
lbRouterVServPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServPort.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServPort.setDescription('The port number of the virtual server.')
lbRouterVServXlatedAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServXlatedAddr.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServXlatedAddr.setDescription('The translated (NAT) address of the virtual server.')
lbRouterVServXlatedPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServXlatedPort.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServXlatedPort.setDescription('The translated (NAT) port number of the virtual server.')
lbRouterVServProbeProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("icmp", 1), ("tcp", 2), ("udp", 3), ("dnsnslookupDot", 4), ("dnsRetrieveBindVers", 5), ("numberItems", 6), ("none", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServProbeProtocol.setDescription('The probing protocol used for measuring round-trip times to the virtual server.')
lbRouterVServPicks = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServPicks.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServPicks.setDescription('The number of times the specified virtual server has been chosen by the load-balancing DNS server.')
lbRouterVServRefreshes = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServRefreshes.setDescription('The number of times that data associated with the virtual server have been refreshed with new information.')
lbRouterVServAliveTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 8), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServAliveTime.setDescription('When the virtual server was last known to be up.')
lbRouterVServDataTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 9), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServDataTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServDataTime.setDescription('When data was last received from the virtual server.')
lbRouterVServCurConns = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServCurConns.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServCurConns.setDescription('The current number of connections being processed by the virtual server.')
lbRouterVServCurConnLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServCurConnLimit.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServCurConnLimit.setDescription('The current connection limit for the virtual server.')
lbRouterVServCurNodesUp = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServCurNodesUp.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServCurNodesUp.setDescription('The current number of nodes associated with the virtual server that are up.')
lbRouterVServCurEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServCurEnabled.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServCurEnabled.setDescription('Whether the virtual server is currently enabled.')
lbRouterVServDnsServDisabled = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServDnsServDisabled.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServDnsServDisabled.setDescription('Whether the virtual server is currently disabled from the load-balancing DNS server.')
lbRouterVServDisableDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 15), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbRouterVServDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts: lbRouterVServDisableDuration.setDescription('Duration of a disable of this server by the load-balancing DNS server.')
hostTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1), )
if mibBuilder.loadTexts: hostTable.setStatus('mandatory')
if mibBuilder.loadTexts: hostTable.setDescription('Information about the defined hosts other than load-balancing routers.')
hostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1), ).setIndexNames((0, "F5-3DNS-MIB", "hostAddr"))
if mibBuilder.loadTexts: hostEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hostEntry.setDescription('This table contains a row for each host other than the load-balancing routers. It is indexed by the canonical IP address of each host.')
hostAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostAddr.setStatus('mandatory')
if mibBuilder.loadTexts: hostAddr.setDescription('The canonical IP address of the host.')
hostName = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostName.setStatus('mandatory')
if mibBuilder.loadTexts: hostName.setDescription('The name of the host.')
hostProber = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostProber.setStatus('mandatory')
if mibBuilder.loadTexts: hostProber.setDescription('The IP address of the prober for the host.')
hostProbeProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("icmp", 1), ("tcp", 2), ("udp", 3), ("dnsnslookupDot", 4), ("dnsRetrieveBindVers", 5), ("numberItems", 6), ("none", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts: hostProbeProtocol.setDescription('The protocol used when probing the host.')
hostProbePort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostProbePort.setStatus('mandatory')
if mibBuilder.loadTexts: hostProbePort.setDescription('The port to which probes are directed.')
hostVServCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServCount.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServCount.setDescription('The number of virtual servers associated with the host.')
hostStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("up", 2), ("down", 3), ("waiting", 4), ("alert", 5), ("panic", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostStatus.setStatus('mandatory')
if mibBuilder.loadTexts: hostStatus.setDescription('The current status of the host.')
hostPicks = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostPicks.setStatus('mandatory')
if mibBuilder.loadTexts: hostPicks.setDescription('The number of times the host has been chosen by the load-balancing DNS server.')
hostRefreshes = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts: hostRefreshes.setDescription('The number of times the data from the host has been refreshed with new information.')
hostDisabled = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostDisabled.setStatus('mandatory')
if mibBuilder.loadTexts: hostDisabled.setDescription('Is this load host disabled. If a host is disabled then all of its virtual servers are considered to be disabled.')
hostDisableDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 11), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts: hostDisableDuration.setDescription('Duration of a disable of this host.')
hostMetrics = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unkown", 1), ("yes", 2), ("no", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostMetrics.setStatus('mandatory')
if mibBuilder.loadTexts: hostMetrics.setDescription('Are Cisco virtual server metrics available for the virtual servers on this host.')
hostMemory = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostMemory.setStatus('mandatory')
if mibBuilder.loadTexts: hostMemory.setDescription('Total number of kilobytes of free virtual memory for this host. If this statistic is not available it will have a value of -1.')
hostCPU = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostCPU.setStatus('mandatory')
if mibBuilder.loadTexts: hostCPU.setDescription('CPU utilization. All CPU utilization is expressed a percentage rounded up to the nearest integer. CPU utilization is computed differently for each SNMP agent. CPU usage is computed for the UCD mib as the load average in the last 5 minutes divided by a configured maximum saturated load average. CPU usage is computed for the Solstice mib as the number of time ticks spent in user and system execution divided by the total number of elapsed time tics. If this statistic is not available it will have a value of -1.')
hostDiskSpace = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostDiskSpace.setStatus('mandatory')
if mibBuilder.loadTexts: hostDiskSpace.setDescription('The amount of available disk space for / in kilobytes. If this statistic is not available it will have a value of -1.')
hostSNMPConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostSNMPConfigured.setStatus('mandatory')
if mibBuilder.loadTexts: hostSNMPConfigured.setDescription('Is an SNMP agent configured for this host.')
hostSNMPAgentType = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("ciscold", 1), ("ciscold2", 2), ("ciscold3", 3), ("ucd", 4), ("solstice", 5), ("ntserv", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostSNMPAgentType.setStatus('mandatory')
if mibBuilder.loadTexts: hostSNMPAgentType.setDescription('Is an SNMP agent configured for this host.')
hostSNMPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 18), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostSNMPAddress.setStatus('mandatory')
if mibBuilder.loadTexts: hostSNMPAddress.setDescription('The IP address of the SNMP agent for this host. If no SNMP agent is configured for this host this will have a value of 0.0.0.0.')
hostSNMPPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostSNMPPort.setStatus('mandatory')
if mibBuilder.loadTexts: hostSNMPPort.setDescription('The port for the SNMP agent of this host. If no SNMP agent is configured for this host this will have a value of -1.')
hostSNMPRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 20), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostSNMPRetries.setStatus('mandatory')
if mibBuilder.loadTexts: hostSNMPRetries.setDescription('Number of retries to use when attempting to query the SNMP agent of this host. If no SNMP agent is configured for this host this will have a value of -1.')
hostSNMPTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 21), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostSNMPTimeout.setStatus('mandatory')
if mibBuilder.loadTexts: hostSNMPTimeout.setDescription('Time in seconds to wait before retrying a query of the SNMP agent for this host. If no SNMP agent is configured for this host this will have a value of -1.')
hostSNMPVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("v1", 1), ("v2", 2), ("v3", 3), ("notset", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostSNMPVersion.setStatus('mandatory')
if mibBuilder.loadTexts: hostSNMPVersion.setDescription('SNMP version number to use when communicating with the SNMP agent for this host. If no SNMP agent is configured for this host this will have a value of -1.')
hostSNMPCommunity = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 23), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostSNMPCommunity.setStatus('mandatory')
if mibBuilder.loadTexts: hostSNMPCommunity.setDescription('SNMP community name to use when communicating with the SNMP agent for this host. If no SNMP agent is configured for this host this will have a value of none.')
hostIfTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2), )
if mibBuilder.loadTexts: hostIfTable.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfTable.setDescription('Information about the network interfaces on a host.')
hostIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1), ).setIndexNames((0, "F5-3DNS-MIB", "hostAddr"), (0, "F5-3DNS-MIB", "hostIfAddr"))
if mibBuilder.loadTexts: hostIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfEntry.setDescription('This table contains a row for each network interface associated with a host. It is indexed by the canonical IP address of the host and the specific IP address of the interface.')
hostIfAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfAddr.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfAddr.setDescription('The specific IP address of the network interface in this row of the table.')
hostIfShared = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfShared.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfShared.setDescription('Whether the interface is the shared IP address of the host.')
hostIfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("up", 2), ("down", 3), ("waiting", 4), ("alert", 5), ("panic", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfStatus.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfStatus.setDescription('The status of the network interface.')
hostIfTXPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfTXPackets.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfTXPackets.setDescription('The number of packets that have been transmitted on the network interface.')
hostIfRXPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfRXPackets.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfRXPackets.setDescription('The number of packets that have been received on the network interface.')
hostIfUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 6), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfUpTime.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfUpTime.setDescription('The amount of time the interface has been up.')
hostIfAliveTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 7), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfAliveTime.setDescription('The most recent date and time when the interface was known to be running.')
hostIfDataTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 8), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfDataTime.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfDataTime.setDescription('The most recent date and time when data was transmitted through the interface.')
hostIfPathSentTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 9), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfPathSentTime.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfPathSentTime.setDescription('The date and time when path data corresponding to the interface was most recently sent.')
hostIfPathsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfPathsSent.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfPathsSent.setDescription('The number of paths sent in the most recent batch.')
hostIfPathsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfPathsRcvd.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfPathsRcvd.setDescription('The number of paths received in the most recent batch.')
hostIfPathSends = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfPathSends.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfPathSends.setDescription('The number of batches of paths that have been sent.')
hostIfPathRcvs = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfPathRcvs.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfPathRcvs.setDescription('The number of batches of paths that have been received.')
hostIfAvgPathsSentX1000 = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfAvgPathsSentX1000.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfAvgPathsSentX1000.setDescription('The average sent path batch size, multiplied by 1000.')
hostIfAvgPathsRcvdX1000 = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfAvgPathsRcvdX1000.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfAvgPathsRcvdX1000.setDescription('The average received path batch size, multiplied by 1000.')
hostIfFctryTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 3), )
if mibBuilder.loadTexts: hostIfFctryTable.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfFctryTable.setDescription('Information about the factories running on each host interface.')
hostIfFctryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 3, 1), ).setIndexNames((0, "F5-3DNS-MIB", "hostAddr"), (0, "F5-3DNS-MIB", "hostIfAddr"), (0, "F5-3DNS-MIB", "hostIfFctryType"))
if mibBuilder.loadTexts: hostIfFctryEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfFctryEntry.setDescription('This table gives the number of factories of each type that are running on each host interface.')
hostIfFctryType = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("lbRouter", 1), ("prober", 2), ("discovery", 3), ("snmp", 4), ("hops", 5), ("server", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfFctryType.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfFctryType.setDescription('The type of the factory in this row of the table.')
hostIfFctryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIfFctryCount.setStatus('mandatory')
if mibBuilder.loadTexts: hostIfFctryCount.setDescription('The number of factories of the type corresponding to this row of the table.')
hostVServTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4), )
if mibBuilder.loadTexts: hostVServTable.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServTable.setDescription('Information about the virtual servers associated with each host.')
hostVServEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1), ).setIndexNames((0, "F5-3DNS-MIB", "hostAddr"), (0, "F5-3DNS-MIB", "hostVServAddr"), (0, "F5-3DNS-MIB", "hostVServPort"))
if mibBuilder.loadTexts: hostVServEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServEntry.setDescription('This table contains a row for each virtual server on each host other than load-balancing routers. It is indexed by the host address and by the address/port combination that defines the virtual server.')
hostVServAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServAddr.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServAddr.setDescription('The IP address of the virtual server.')
hostVServPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServPort.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServPort.setDescription('The port number of the virtual server.')
hostVServXlatedAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServXlatedAddr.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServXlatedAddr.setDescription('The translated (NAT) address of the virtual server.')
hostVServXlatedPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServXlatedPort.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServXlatedPort.setDescription('The translated (NAT) port number of the virtual server.')
hostVServProbeProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("icmp", 1), ("tcp", 2), ("udp", 3), ("dnsnslookupDot", 4), ("dnsRetrieveBindVers", 5), ("numberItems", 6), ("none", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServProbeProtocol.setDescription('The probing protocol used for measuring round-trip times to the virtual server.')
hostVServPicks = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServPicks.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServPicks.setDescription('The number of times the specified virtual server has been chosen by the load-balancing DNS server.')
hostVServRefreshes = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServRefreshes.setDescription('The number of times that data associated with the virtual server have been refreshed with new information.')
hostVServAliveTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 8), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServAliveTime.setDescription('When the virtual server was last known to be up.')
hostVServDataTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 9), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServDataTime.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServDataTime.setDescription('When data was last received from the virtual server.')
hostVServDisabled = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServDisabled.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServDisabled.setDescription('Is this virtual server disabled. If a virtual server is disabled it is considered unavailable for load balancing by 3DNS.')
hostVServDisableDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 11), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostVServDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts: hostVServDisableDuration.setDescription('Disable duration of this virtual server.')
lbDnsServTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1), )
if mibBuilder.loadTexts: lbDnsServTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServTable.setDescription('Information about the load-balancing DNS servers.')
lbDnsServEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbDnsServAddr"))
if mibBuilder.loadTexts: lbDnsServEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServEntry.setDescription("This table contains a row for each load-balancing DNS server, indexed by the server's canonical IP address.")
lbDnsServAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServAddr.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServAddr.setDescription('The canonical IP address of the load-balancing DNS server.')
lbDnsServName = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServName.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServName.setDescription('The name of the load-balancing DNS server.')
lbDnsServProber = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServProber.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServProber.setDescription("The IP address of the server's prober.")
lbDnsServProbeProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("icmp", 1), ("tcp", 2), ("udp", 3), ("dnsnslookupDot", 4), ("dnsRetrieveBindVers", 5), ("numberItems", 6), ("none", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServProbeProtocol.setDescription('The The probing protocol used for measuring round-trip times to the server.')
lbDnsServProbePort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServProbePort.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServProbePort.setDescription('The port to which probes are directed.')
lbDnsServStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("up", 2), ("down", 3), ("waiting", 4), ("alert", 5), ("panic", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServStatus.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServStatus.setDescription('The current status of the server.')
lbDnsServPicks = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServPicks.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServPicks.setDescription('The number of times the host has been chosen.')
lbDnsServRefreshes = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServRefreshes.setDescription('The number of times the data from the server has been refreshed with new information.')
lbDnsServDisabled = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServDisabled.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServDisabled.setDescription('Is this load-balancing DNS server disabled. If a load balancing DNS server is disabled then it is not available for load-balancing and it will not be included in any sync groups.')
lbDnsServDisableDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 10), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServDisableDuration.setDescription('Duration of a disable of this load-balancing DNS server.')
lbDnsServIQProto = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("tcp", 1), ("udp", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIQProto.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIQProto.setDescription('Iquery protocol to use for this load-balancing DNS server.')
lbDnsServIfTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2), )
if mibBuilder.loadTexts: lbDnsServIfTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfTable.setDescription('Information about the network interfaces on a load-balancing DNS server.')
lbDnsServIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbDnsServAddr"), (0, "F5-3DNS-MIB", "lbDnsServIfAddr"))
if mibBuilder.loadTexts: lbDnsServIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfEntry.setDescription('This table contains a row for each network interface associated with a load-balancing DNS server. It is indexed by the canonical IP address of the server and the specific IP address of the interface.')
lbDnsServIfAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfAddr.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfAddr.setDescription('The specific IP address of the network interface in this row of the table.')
lbDnsServIfShared = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfShared.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfShared.setDescription('Whether the interface is the shared IP address of the server.')
lbDnsServIfStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("up", 2), ("down", 3), ("waiting", 4), ("alert", 5), ("panic", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfStatus.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfStatus.setDescription('The status of the network interface.')
lbDnsServIfTXPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfTXPackets.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfTXPackets.setDescription('The number of packets that have been transmitted on the network interface.')
lbDnsServIfRXPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfRXPackets.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfRXPackets.setDescription('The number of packets that have been received on the network interface.')
lbDnsServIfUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 6), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfUpTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfUpTime.setDescription('The amount of time the interface has been up.')
lbDnsServIfAliveTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 7), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfAliveTime.setDescription('The most recent date and time when the interface was known to be running.')
lbDnsServIfDataTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 8), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfDataTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfDataTime.setDescription('The most recent date and time when data was transmitted through the interface.')
lbDnsServIfPathSentTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 9), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfPathSentTime.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfPathSentTime.setDescription('The date and time when path data corresponding to the interface was most recently sent.')
lbDnsServIfPathsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfPathsSent.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfPathsSent.setDescription('The number of paths sent in the most recent batch.')
lbDnsServIfPathsRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfPathsRcvd.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfPathsRcvd.setDescription('The number of paths received in the most recent batch.')
lbDnsServIfPathSends = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfPathSends.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfPathSends.setDescription('The number of batches of paths that have been sent.')
lbDnsServIfPathRcvs = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfPathRcvs.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfPathRcvs.setDescription('The number of batches of paths that have been received.')
lbDnsServIfAvgPathsSentX1000 = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfAvgPathsSentX1000.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfAvgPathsSentX1000.setDescription('The average sent path batch size, multiplied by 1000.')
lbDnsServIfAvgPathsRcvdX1000 = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfAvgPathsRcvdX1000.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfAvgPathsRcvdX1000.setDescription('The average received path batch size, multiplied by 1000.')
lbDnsServIfFctryTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 3), )
if mibBuilder.loadTexts: lbDnsServIfFctryTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfFctryTable.setDescription('Information about the factories running on each load-balancing DNS server interface.')
lbDnsServIfFctryEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 3, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbDnsServAddr"), (0, "F5-3DNS-MIB", "lbDnsServIfAddr"), (0, "F5-3DNS-MIB", "lbDnsServIfFctryType"))
if mibBuilder.loadTexts: lbDnsServIfFctryEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfFctryEntry.setDescription('This table gives the number of factories of each type that are running on each load-balancing DNS server interface.')
lbDnsServIfFctryType = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("lbRouter", 1), ("prober", 2), ("discovery", 3), ("snmp", 4), ("hops", 5), ("server", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfFctryType.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfFctryType.setDescription('The type of the factory in this row of the table.')
lbDnsServIfFctryCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDnsServIfFctryCount.setStatus('mandatory')
if mibBuilder.loadTexts: lbDnsServIfFctryCount.setDescription('The number of factories of the type corresponding to this row of the table.')
lbDomainTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1), )
if mibBuilder.loadTexts: lbDomainTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainTable.setDescription('Information about the load-balanced domains.')
lbDomainEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbDomainName"))
if mibBuilder.loadTexts: lbDomainEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainEntry.setDescription('This table contains a row for each load-balanced domain. It is indexed by the domain name.')
lbDomainName = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainName.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainName.setDescription('The domain name of the load-balanced domain in this row of the table.')
lbDomainAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainAddr.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainAddr.setDescription('The canonical IP address of the load-balanced domain.')
lbDomainPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPort.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPort.setDescription("The load-balanced domain's default service port number.")
lbDomainTTL = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainTTL.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainTTL.setDescription("The amount of time (in seconds) that the specified domain's information is to be used by the load-balancing DNS server for name resolution and load balancing.")
lbDomainLBModePool = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("returnDNS", 1), ("none", 2), ("returnVS", 3), ("roundRobin", 4), ("ratio", 5), ("random", 6), ("topology", 7), ("staticPersist", 8), ("globalAvailability", 9), ("servers", 10), ("connections", 11), ("roundTripTime", 12), ("hops", 13), ("packetRate", 14), ("mem", 15), ("cpu", 16), ("diskSpace", 17), ("hitRatio", 18), ("qos", 19)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainLBModePool.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainLBModePool.setDescription('The load balancing mode to use to balance requests over all pools.')
lbDomainQosCoeffRTT = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainQosCoeffRTT.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainQosCoeffRTT.setDescription('Relative weighting for round trip time when the load balancing mode is set to Quality of Service.')
lbDomainQosCoeffHops = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainQosCoeffHops.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainQosCoeffHops.setDescription('Relative weighting for number of hops when the load balancing mode is set to Quality of Service.')
lbDomainQosCoeffTopology = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainQosCoeffTopology.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainQosCoeffTopology.setDescription('Relative weighting for topology when the load balancing mode is set to Quality of Service.')
lbDomainQosCoeffCompletionRate = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainQosCoeffCompletionRate.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainQosCoeffCompletionRate.setDescription('Relative weighting for completion rate when the load balancing mode is set to Quality of Service.')
lbDomainQosCoeffPacketRate = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainQosCoeffPacketRate.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainQosCoeffPacketRate.setDescription('Relative weighting for packet rate when the load balancing mode is set to Quality of Service.')
lbDomainRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainRequests.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainRequests.setDescription('The number of DNS requests for this domain.')
lbDomainPreferredResolves = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPreferredResolves.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPreferredResolves.setDescription('The number of times the domain has been resolved using the preferred mode.')
lbDomainAlternateResolves = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainAlternateResolves.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainAlternateResolves.setDescription('The number of times the domain has been resolved using the alternate mode.')
lbDomainFallbackResolves = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainFallbackResolves.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainFallbackResolves.setDescription('The number of times the domain has been resolved using the fallback mode.')
lbDomainReturnsToDns = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainReturnsToDns.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainReturnsToDns.setDescription('The number of times the domain has been resolved using standard DNS.')
lbDomainLastResolve = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 16), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainLastResolve.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainLastResolve.setDescription('When the domain was most recently resolved.')
lbDomainDisabled = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainDisabled.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainDisabled.setDescription('Is this domain disabled. If a domain is disabled then all name resolution requests are returned to DNS.')
lbDomainDisableDuration = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 18), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainDisableDuration.setDescription('The duration of a disable of this domain.')
lbDomainPersist = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPersist.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPersist.setDescription("When this is true this domain will maintain connections between LDNS's and virtual servers.")
lbDomainPersistTTL = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 20), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPersistTTL.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPersistTTL.setDescription("The duration that the domain will maintain connections between LDNS's and virtual servers.")
lbDomainAliasTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2), )
if mibBuilder.loadTexts: lbDomainAliasTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainAliasTable.setDescription('Information about the domain names serverd by each load-balanced domain.')
lbDomainAliasEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbDomainName"), (0, "F5-3DNS-MIB", "lbDomainAliasIndex"))
if mibBuilder.loadTexts: lbDomainAliasEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainAliasEntry.setDescription('This table contains a row for each domain name associated with a load-balanced domain. The table is indexed by the canonical domain name as well as a numeric index into the list of associated domain names.')
lbDomainAliasIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainAliasIndex.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainAliasIndex.setDescription('The index into the list of domain names.')
lbDomainAliasName = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainAliasName.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainAliasName.setDescription('The domain name in this row of the table.')
lbDomainAliasRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainAliasRequests.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainAliasRequests.setDescription('The number of requests for the domain name in this row of the table.')
lbDomainPortTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 3), )
if mibBuilder.loadTexts: lbDomainPortTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPortTable.setDescription('Information about the ports associated with a load-balanced domain.')
lbDomainPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 3, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbDomainName"), (0, "F5-3DNS-MIB", "lbDomainPortPort"))
if mibBuilder.loadTexts: lbDomainPortEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPortEntry.setDescription('This table contains a row for each port associated with each load-balanced domain. It is indexed by the canonical domain name and by the port number.')
lbDomainPortPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPortPort.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPortPort.setDescription('A port number associated with the load-balanced domain.')
lbDomainPoolTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4), )
if mibBuilder.loadTexts: lbDomainPoolTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolTable.setDescription('Information about the resource pools associated with each load-balanced domain.')
lbDomainPoolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbDomainName"), (0, "F5-3DNS-MIB", "lbDomainPoolIndex"))
if mibBuilder.loadTexts: lbDomainPoolEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolEntry.setDescription('This table contains a row for each resource pool associated with each load-balanced domain. It is indexed by the canonical domain name as well as by a numeric index specifying the resource pool.')
lbDomainPoolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolIndex.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolIndex.setDescription('A numeric index into the list of resource pools for this domain.')
lbDomainPoolName = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolName.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolName.setDescription('The name of the resource pool in this row of the table.')
lbDomainPoolType = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("lbRouter", 2), ("host", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolType.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolType.setDescription('The type of the resource pool.')
lbDomainPoolState = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("preferred", 2), ("alternate", 3), ("fallback", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolState.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolState.setDescription('The current state of the pool.')
lbDomainPoolVSCount = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolVSCount.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolVSCount.setDescription('The number of virtual servers in the pool.')
lbDomainPoolLBMode = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("returnDNS", 1), ("none", 2), ("returnVS", 3), ("roundRobin", 4), ("ratio", 5), ("random", 6), ("topology", 7), ("staticPersist", 8), ("globalAvailability", 9), ("servers", 10), ("connections", 11), ("roundTripTime", 12), ("hops", 13), ("packetRate", 14), ("mem", 15), ("cpu", 16), ("diskSpace", 17), ("hitRatio", 18), ("qos", 19)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolLBMode.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolLBMode.setDescription('The preferred load-balancing mode for the pool.')
lbDomainPoolAlternateLBMode = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("returnDNS", 1), ("none", 2), ("returnVS", 3), ("roundRobin", 4), ("ratio", 5), ("random", 6), ("topology", 7), ("staticPersist", 8), ("globalAvailability", 9), ("servers", 10), ("connections", 11), ("roundTripTime", 12), ("hops", 13), ("packetRate", 14), ("mem", 15), ("cpu", 16), ("diskSpace", 17), ("hitRatio", 18), ("qos", 19)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolAlternateLBMode.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolAlternateLBMode.setDescription('The alternate load-balancing mode for the pool.')
lbDomainPoolFallbackLBMode = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=NamedValues(("returnDNS", 1), ("none", 2), ("returnVS", 3), ("roundRobin", 4), ("ratio", 5), ("random", 6), ("topology", 7), ("staticPersist", 8), ("globalAvailability", 9), ("servers", 10), ("connections", 11), ("roundTripTime", 12), ("hops", 13), ("packetRate", 14), ("mem", 15), ("cpu", 16), ("diskSpace", 17), ("hitRatio", 18), ("qos", 19)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolFallbackLBMode.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolFallbackLBMode.setDescription('The fallback load-balancing mode for the pool.')
lbDomainPoolCheckStaticDepends = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolCheckStaticDepends.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolCheckStaticDepends.setDescription('Indicates whether the availability of virtual servers in the pool is checked.')
lbDomainPoolCheckDynamicDepends = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolCheckDynamicDepends.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolCheckDynamicDepends.setDescription('Indicates whether the availability of paths associated with the pool is checked.')
lbDomainPoolRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolRatio.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolRatio.setDescription('The default weighting to use with respect to other pools.')
lbDomainPoolRipeness = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolRipeness.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolRipeness.setDescription('The counter used to determine whether the pool can be chosen during load balancing when the pool_lbmode is ratio. It is initialized to the pool ratio value, and decremented each time the pool is chosen. When non-zero the pool can be chosen. When zero, the pool will be skipped. When all pools reach zero ripeness, all pool ripeness values are re-initialized to their ratio values.')
lbDomainPoolPreferredResolves = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolPreferredResolves.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolPreferredResolves.setDescription('The number of times the pool has been resolved using the preferred mode.')
lbDomainPoolAlternateResolves = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolAlternateResolves.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolAlternateResolves.setDescription('The number of times the pool has been resolved using the alternate mode.')
lbDomainPoolFallbackResolves = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolFallbackResolves.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolFallbackResolves.setDescription('The number of times the pool has been resolved using the fallback mode.')
lbDomainPoolReturnsToDns = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolReturnsToDns.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolReturnsToDns.setDescription('The number of times the pool has been resolved using standard DNS.')
lbDomainPoolRRLdns = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolRRLdns.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolRRLdns.setDescription('Enables passing of blocks of ip addresses back to local dns servers.')
lbDomainPoolRRLdnsLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolRRLdnsLimit.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolRRLdnsLimit.setDescription('The limit of the number of addresses to be passed back in an rr_ldns block. There will be no limit if this attribute is 0.')
lbDomainPoolVSTable = MibTable((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5), )
if mibBuilder.loadTexts: lbDomainPoolVSTable.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolVSTable.setDescription('Information about the virtual servers in each resource pool.')
lbDomainPoolVSEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1), ).setIndexNames((0, "F5-3DNS-MIB", "lbDomainName"), (0, "F5-3DNS-MIB", "lbDomainPoolIndex"), (0, "F5-3DNS-MIB", "lbDomainPoolVSAddr"), (0, "F5-3DNS-MIB", "lbDomainPoolVSPort"))
if mibBuilder.loadTexts: lbDomainPoolVSEntry.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolVSEntry.setDescription('This table contains a row for each virtual server in each resource pool associated with each load-balanced domain.')
lbDomainPoolVSAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolVSAddr.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolVSAddr.setDescription('The IP address of the virtual server.')
lbDomainPoolVSPort = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolVSPort.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolVSPort.setDescription('The port number of the virtual server.')
lbDomainPoolVSRatio = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolVSRatio.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolVSRatio.setDescription('The weighting to use with respect to other virtual servers in the pool.')
lbDomainPoolVSRipeness = MibTableColumn((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: lbDomainPoolVSRipeness.setStatus('mandatory')
if mibBuilder.loadTexts: lbDomainPoolVSRipeness.setDescription('The counter used to determine whether the VS can be chosen during load balancing when the lbmode is ratio. It is initialized to the VS ratio value as specified in the pool, and decremented each time the VS is chosen. When non-zero the VS can be chosen. When zero, the VS will be skipped. When all VS reach zero ripeness, all VS ripeness values are re-initialized to their ratio values.')
summaryVersion = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: summaryVersion.setStatus('mandatory')
if mibBuilder.loadTexts: summaryVersion.setDescription('The version number of the system.')
summaryUpTime = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summaryUpTime.setStatus('mandatory')
if mibBuilder.loadTexts: summaryUpTime.setDescription('The elapsed time since the system was last initialized.')
summaryDate = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 3), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summaryDate.setStatus('mandatory')
if mibBuilder.loadTexts: summaryDate.setDescription("The system's notion of the local date and time of day.")
summaryLastReload = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summaryLastReload.setStatus('mandatory')
if mibBuilder.loadTexts: summaryLastReload.setDescription('The value of summaryUpTime when the system was most recently commanded to reload its DNS database.')
summaryLastDump = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 5), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summaryLastDump.setStatus('mandatory')
if mibBuilder.loadTexts: summaryLastDump.setDescription('The value of summaryUpTime when the system was most recently commanded to dump its database, cache, and status information.')
summaryRequests = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summaryRequests.setStatus('mandatory')
if mibBuilder.loadTexts: summaryRequests.setDescription('The total number of requests received.')
summarySyncMode = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("none", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: summarySyncMode.setStatus('mandatory')
if mibBuilder.loadTexts: summarySyncMode.setDescription('Whether the system is a primary 3DNS, secondary 3DNS, or neither.')
summarySyncFile = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly")
if mibBuilder.loadTexts: summarySyncFile.setStatus('mandatory')
if mibBuilder.loadTexts: summarySyncFile.setDescription('The pathname of the file to which sync dumps are written. Valid only if summarySyncMode is primary.')
summarySyncIns = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summarySyncIns.setStatus('mandatory')
if mibBuilder.loadTexts: summarySyncIns.setDescription('The total number of incoming syncs performed.')
summarySyncInErrors = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summarySyncInErrors.setStatus('mandatory')
if mibBuilder.loadTexts: summarySyncInErrors.setDescription('The total number of errors encountered when performing incoming syncs.')
summaryLastSyncIn = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 11), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summaryLastSyncIn.setStatus('mandatory')
if mibBuilder.loadTexts: summaryLastSyncIn.setDescription('The value of summaryUpTime when the most recent incoming sync was performed.')
summarySyncOuts = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summarySyncOuts.setStatus('mandatory')
if mibBuilder.loadTexts: summarySyncOuts.setDescription('The total number of outgoing syncs performed.')
summarySyncOutErrors = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summarySyncOutErrors.setStatus('mandatory')
if mibBuilder.loadTexts: summarySyncOutErrors.setDescription('The total number of errors encountered when performing outgoing syncs.')
summaryLastSyncOut = MibScalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 14), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: summaryLastSyncOut.setStatus('mandatory')
if mibBuilder.loadTexts: summaryLastSyncOut.setDescription('The value of summaryUpTime when the most recent outgoing sync was performed.')
threednsTrapVSGreenToRed = NotificationType((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0,1))
if mibBuilder.loadTexts: threednsTrapVSGreenToRed.setDescription('Virtual server change from green to red status.')
threednsTrapVSRedToGreen = NotificationType((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0,2))
if mibBuilder.loadTexts: threednsTrapVSRedToGreen.setDescription('Virtual server change from red to green status.')
threednsTrapServerRedToGreen = NotificationType((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0,3))
if mibBuilder.loadTexts: threednsTrapServerRedToGreen.setDescription('Server change from red to green status.')
threednsTrapServerGreenToRed = NotificationType((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0,4))
if mibBuilder.loadTexts: threednsTrapServerGreenToRed.setDescription('Server change from green to red status.')
threednsTrapCRCFailure = NotificationType((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0,5))
if mibBuilder.loadTexts: threednsTrapCRCFailure.setDescription('CRC failure.')
mibBuilder.exportSymbols("F5-3DNS-MIB", summaryRequests=summaryRequests, hostIfPathSends=hostIfPathSends, hostTable=hostTable, lbRouterVServProbeProtocol=lbRouterVServProbeProtocol, lbDnsServStatus=lbDnsServStatus, lbDnsServIQProto=lbDnsServIQProto, hostSNMPConfigured=hostSNMPConfigured, f5systems=f5systems, hostIfAliveTime=hostIfAliveTime, summarySyncIns=summarySyncIns, lbDomainAddr=lbDomainAddr, hostIfFctryType=hostIfFctryType, lbDomainPortPort=lbDomainPortPort, globalCoeffDRTT=globalCoeffDRTT, f53dnsMIBObjects=f53dnsMIBObjects, globalQosFactorHops=globalQosFactorHops, hostProber=hostProber, globalQosCoeffTopology=globalQosCoeffTopology, lbDnsServProber=lbDnsServProber, globalPathLoWater=globalPathLoWater, threednsTrap=threednsTrap, hostSNMPCommunity=hostSNMPCommunity, lbDnsServRefreshes=lbDnsServRefreshes, lbRouterIfTXPackets=lbRouterIfTXPackets, globalPathDuration=globalPathDuration, globalRTTPacketLength=globalRTTPacketLength, globalRTTSampleCount=globalRTTSampleCount, globalPathHiWater=globalPathHiWater, hostIfUpTime=hostIfUpTime, lbRouterVServPicks=lbRouterVServPicks, globalTimerKeepAlive=globalTimerKeepAlive, globalFbRespectDepends=globalFbRespectDepends, lbDomainPoolVSRatio=lbDomainPoolVSRatio, dataCenterTable=dataCenterTable, lbDomainPoolReturnsToDns=lbDomainPoolReturnsToDns, dataCenterEntry=dataCenterEntry, hostIfAvgPathsSentX1000=hostIfAvgPathsSentX1000, lbDomainQosCoeffRTT=lbDomainQosCoeffRTT, lbDnsServIfFctryType=lbDnsServIfFctryType, summaryDate=summaryDate, lbRouterVServDataTime=lbRouterVServDataTime, hostVServTable=hostVServTable, lbDnsServIfShared=lbDnsServIfShared, lbDnsServIfFctryTable=lbDnsServIfFctryTable, hostIfEntry=hostIfEntry, lbDomainPoolCheckStaticDepends=lbDomainPoolCheckStaticDepends, globalCoeffAccessRefresh=globalCoeffAccessRefresh, lbDomainQosCoeffPacketRate=lbDomainQosCoeffPacketRate, globalPathReapAlg=globalPathReapAlg, lbDomainPoolType=lbDomainPoolType, globalTxBufSize=globalTxBufSize, lbRouterIfFctryEntry=lbRouterIfFctryEntry, hostIfTable=hostIfTable, lbDomainPoolLBMode=lbDomainPoolLBMode, lbDnsServIfAliveTime=lbDnsServIfAliveTime, lbDomainPoolRatio=lbDomainPoolRatio, lbDomainTable=lbDomainTable, globalCoeffDCompletionRate=globalCoeffDCompletionRate, threednsTrapServerGreenToRed=threednsTrapServerGreenToRed, hostVServPicks=hostVServPicks, lbRouterIfAliveTime=lbRouterIfAliveTime, summarySyncMode=summarySyncMode, lbDomainPoolVSPort=lbDomainPoolVSPort, f5=f5, lbRouterIQProto=lbRouterIQProto, globalEncryptionKeyFile=globalEncryptionKeyFile, globalLBRouterTTL=globalLBRouterTTL, lbDomainQosCoeffHops=lbDomainQosCoeffHops, summarySyncFile=summarySyncFile, hostPicks=hostPicks, lbRouterVServAddr=lbRouterVServAddr, lbDomainPreferredResolves=lbDomainPreferredResolves, globalQosFactorRTT=globalQosFactorRTT, globalRTTProbeProtocol=globalRTTProbeProtocol, lbRouterIfAddr=lbRouterIfAddr, lbRouterIfFctryTable=lbRouterIfFctryTable, lbDnsServIfAddr=lbDnsServIfAddr, summarySyncInErrors=summarySyncInErrors, hostVServProbeProtocol=hostVServProbeProtocol, hostIfStatus=hostIfStatus, globalQosFactorPacketRate=globalQosFactorPacketRate, globalCheckStaticDepends=globalCheckStaticDepends, threednsTrapCRCFailure=threednsTrapCRCFailure, lbDomainTTL=lbDomainTTL, hostDisableDuration=hostDisableDuration, globalVSTTL=globalVSTTL, lbDomainPoolFallbackLBMode=lbDomainPoolFallbackLBMode, lbRouterIfStatus=lbRouterIfStatus, lbRouters=lbRouters, globalUseAltIqPort=globalUseAltIqPort, lbDnsServIfFctryEntry=lbDnsServIfFctryEntry, hostSNMPAgentType=hostSNMPAgentType, lbRouterAddr=lbRouterAddr, hostSNMPPort=hostSNMPPort, lbRouterVServDisableDuration=lbRouterVServDisableDuration, dataCenterLocation=dataCenterLocation, hostIfPathSentTime=hostIfPathSentTime, lbDnsServName=lbDnsServName, globalCheckDynamicDepends=globalCheckDynamicDepends, lbRouterIfEntry=lbRouterIfEntry, threednsTrapServerRedToGreen=threednsTrapServerRedToGreen, hostSNMPTimeout=hostSNMPTimeout, lbDomainQosCoeffTopology=lbDomainQosCoeffTopology, lbDomainAliasEntry=lbDomainAliasEntry, threednsTrapVSGreenToRed=threednsTrapVSGreenToRed, hostIfFctryEntry=hostIfFctryEntry, summarySyncOutErrors=summarySyncOutErrors, lbDnsServIfUpTime=lbDnsServIfUpTime, hostVServAliveTime=hostVServAliveTime, lbDomainLastResolve=lbDomainLastResolve, hostMetrics=hostMetrics, globalResolverTXBufSize=globalResolverTXBufSize, globalTimerGetLBRouterData=globalTimerGetLBRouterData, lbRouterVServCurConnLimit=lbRouterVServCurConnLimit, lbDomainLBModePool=lbDomainLBModePool, lbRouterVServEntry=lbRouterVServEntry, globalQosCoeffCompletionRate=globalQosCoeffCompletionRate, lbRouterIfDataTime=lbRouterIfDataTime, lbRouterIfAvgPathsRcvdX1000=lbRouterIfAvgPathsRcvdX1000, globalCoeffLastAccess=globalCoeffLastAccess, globalQosFactorCompletionRate=globalQosFactorCompletionRate, lbRouterVServXlatedPort=lbRouterVServXlatedPort, hostSNMPRetries=hostSNMPRetries, lbDnsServAddr=lbDnsServAddr, summaryVersion=summaryVersion, lbDomainPoolEntry=lbDomainPoolEntry, lbDnsServIfPathsRcvd=lbDnsServIfPathsRcvd, hostVServPort=hostVServPort, lbRouterIfTable=lbRouterIfTable, globalQosFactorTopology=globalQosFactorTopology, lbRouterVServPort=lbRouterVServPort, globalRTTProbeDynamic=globalRTTProbeDynamic, lbRouterVServCurConns=lbRouterVServCurConns, dataCenterServAddr=dataCenterServAddr, lbDnsServProbePort=lbDnsServProbePort, lbRouterIfPathRcvs=lbRouterIfPathRcvs, lbDomainPoolVSRipeness=lbDomainPoolVSRipeness, summaryLastSyncIn=summaryLastSyncIn, lbRouterEntry=lbRouterEntry, hostIfAvgPathsRcvdX1000=hostIfAvgPathsRcvdX1000, hostProbeProtocol=hostProbeProtocol, globalRTTProbeProtocolList=globalRTTProbeProtocolList, hostMemory=hostMemory, threednsTraps=threednsTraps, lbRouterIfFctryCount=lbRouterIfFctryCount, lbDnsServIfPathsSent=lbDnsServIfPathsSent, lbDomainPoolVSCount=lbDomainPoolVSCount, globalResetCounterTime=globalResetCounterTime, lbRouterVServAliveTime=lbRouterVServAliveTime, globalRTTDiscoveryMethod=globalRTTDiscoveryMethod, lbDomainPortEntry=lbDomainPortEntry, hostVServXlatedAddr=hostVServXlatedAddr, hostIfShared=hostIfShared, lbRouterIfAvgPathsSentX1000=lbRouterIfAvgPathsSentX1000, hostVServDisabled=hostVServDisabled, lbDnsServIfTable=lbDnsServIfTable, lbDnsServIfAvgPathsSentX1000=lbDnsServIfAvgPathsSentX1000, lbDomainPoolIndex=lbDomainPoolIndex, lbDomainPoolTable=lbDomainPoolTable, hosts=hosts, globalQosCoeffRTT=globalQosCoeffRTT, lbRouterVServDnsServDisabled=lbRouterVServDnsServDisabled, globalTimerGetVServData=globalTimerGetVServData, lbRouterVServCount=lbRouterVServCount, summaryLastDump=summaryLastDump, lbDomainName=lbDomainName, lbDnsServEntry=lbDnsServEntry, lbDnsServIfEntry=lbDnsServIfEntry, hostIfDataTime=hostIfDataTime, lbRouterVServCurNodesUp=lbRouterVServCurNodesUp, lbDomainFallbackResolves=lbDomainFallbackResolves, lbDnsServIfPathSends=lbDnsServIfPathSends, summaryLastSyncOut=summaryLastSyncOut, lbRouterDisableDuration=lbRouterDisableDuration, hostName=hostName, globalProberAddr=globalProberAddr, lbDomainPoolRipeness=lbDomainPoolRipeness, lbDnsServIfRXPackets=lbDnsServIfRXPackets, f53dns=f53dns, hostDisabled=hostDisabled, hostIfPathRcvs=hostIfPathRcvs, hostProbePort=hostProbePort, globalRTTPortDiscovery=globalRTTPortDiscovery, hostRefreshes=hostRefreshes, lbDnsServIfStatus=lbDnsServIfStatus, lbRouterIfShared=lbRouterIfShared, dataCenterDisabled=dataCenterDisabled, globalHostTTL=globalHostTTL, lbDnsServIfPathSentTime=lbDnsServIfPathSentTime, lbDomainPoolVSTable=lbDomainPoolVSTable, lbRouterIfFctryType=lbRouterIfFctryType, globalDefaultTTL=globalDefaultTTL, lbDomainAliasIndex=lbDomainAliasIndex, dataCenterContact=dataCenterContact, lbRouterVServTable=lbRouterVServTable, lbDnsServs=lbDnsServs, lbRouterRefreshes=lbRouterRefreshes, lbDnsServIfDataTime=lbDnsServIfDataTime, globalDefaultAlternate=globalDefaultAlternate, lbDomainEntry=lbDomainEntry, dataCenterDisableDuration=dataCenterDisableDuration, lbDnsServDisableDuration=lbDnsServDisableDuration, hostSNMPAddress=hostSNMPAddress, lbRouterIfUpTime=lbRouterIfUpTime, lbRouterIfPacketRate=lbRouterIfPacketRate, lbRouterTable=lbRouterTable, globalCoeffFreshRemain=globalCoeffFreshRemain, globalDefaultFallback=globalDefaultFallback, lbDomainPoolName=lbDomainPoolName, hostIfFctryCount=hostIfFctryCount, globalTimerGetHostData=globalTimerGetHostData, lbDomainDisabled=lbDomainDisabled, dataCenterServTable=dataCenterServTable, globalMultiplexIq=globalMultiplexIq, hostIfTXPackets=hostIfTXPackets, dataCenters=dataCenters, summaryLastReload=summaryLastReload, f53dnsMIB=f53dnsMIB, hostVServCount=hostVServCount, lbDomainQosCoeffCompletionRate=lbDomainQosCoeffCompletionRate, globalPathTTL=globalPathTTL, lbDnsServIfFctryCount=lbDnsServIfFctryCount, lbDomainAliasRequests=lbDomainAliasRequests, lbRouterVServCurEnabled=lbRouterVServCurEnabled, lbDomainAlternateResolves=lbDomainAlternateResolves, lbDomainPoolPreferredResolves=lbDomainPoolPreferredResolves, lbDomainReturnsToDns=lbDomainReturnsToDns, lbDomainPoolAlternateResolves=lbDomainPoolAlternateResolves, lbDomainPoolRRLdnsLimit=lbDomainPoolRRLdnsLimit, globalRTTTimeout=globalRTTTimeout, globalEncryption=globalEncryption, dataCenterName=dataCenterName, lbDomainPortTable=lbDomainPortTable, globalRegulatePaths=globalRegulatePaths, lbDomainPoolCheckDynamicDepends=lbDomainPoolCheckDynamicDepends, lbDomainAliasTable=lbDomainAliasTable, lbDnsServIfPathRcvs=lbDnsServIfPathRcvs, lbDomains=lbDomains, globalFbRespectAcl=globalFbRespectAcl, lbRouterIfPathSends=lbRouterIfPathSends, hostVServDataTime=hostVServDataTime, globalLDnsHiWater=globalLDnsHiWater, hostIfFctryTable=hostIfFctryTable, lbRouterIfRXPackets=lbRouterIfRXPackets, hostIfPathsSent=hostIfPathsSent, dataCenterServType=dataCenterServType, summary=summary, hostVServRefreshes=hostVServRefreshes, lbDnsServIfTXPackets=lbDnsServIfTXPackets, globalPathsNoClobber=globalPathsNoClobber, globalQosCoeffPacketRate=globalQosCoeffPacketRate, hostIfRXPackets=hostIfRXPackets, lbRouterIfPathsRcvd=lbRouterIfPathsRcvd, globalRegulateInit=globalRegulateInit)
mibBuilder.exportSymbols("F5-3DNS-MIB", globalLDnsLoWater=globalLDnsLoWater, lbRouterPicks=lbRouterPicks, hostStatus=hostStatus, globalResetCounters=globalResetCounters, lbRouterDisabled=lbRouterDisabled, summarySyncOuts=summarySyncOuts, lbDomainPort=lbDomainPort, lbDomainPoolAlternateLBMode=lbDomainPoolAlternateLBMode, lbDomainPoolVSEntry=lbDomainPoolVSEntry, lbDomainPoolRRLdns=lbDomainPoolRRLdns, globalRxBufSize=globalRxBufSize, lbDomainPoolVSAddr=lbDomainPoolVSAddr, globalQosCoeffHops=globalQosCoeffHops, globalCoeffAccessTotal=globalCoeffAccessTotal, lbDnsServDisabled=lbDnsServDisabled, lbRouterIfPathsSent=lbRouterIfPathsSent, dataCenterPathCount=dataCenterPathCount, hostCPU=hostCPU, lbDomainPersist=lbDomainPersist, globalTimerGetPathData=globalTimerGetPathData, hostVServEntry=hostVServEntry, lbRouterIfPathSentTime=lbRouterIfPathSentTime, globals=globals, lbRouterVServXlatedAddr=lbRouterVServXlatedAddr, hostVServAddr=hostVServAddr, hostDiskSpace=hostDiskSpace, hostIfPathsRcvd=hostIfPathsRcvd, lbDomainPersistTTL=lbDomainPersistTTL, lbDnsServIfAvgPathsRcvdX1000=lbDnsServIfAvgPathsRcvdX1000, lbDomainPoolFallbackResolves=lbDomainPoolFallbackResolves, globalResolverRXBufSize=globalResolverRXBufSize, lbDnsServProbeProtocol=lbDnsServProbeProtocol, globalRTTRetireZero=globalRTTRetireZero, lbRouterName=lbRouterName, lbDnsServTable=lbDnsServTable, lbRouterVServRefreshes=lbRouterVServRefreshes, summaryUpTime=summaryUpTime, globalPathsNeverDie=globalPathsNeverDie, lbDomainDisableDuration=lbDomainDisableDuration, lbDomainPoolState=lbDomainPoolState, hostVServDisableDuration=hostVServDisableDuration, hostVServXlatedPort=hostVServXlatedPort, lbDnsServPicks=lbDnsServPicks, threednsTrapVSRedToGreen=threednsTrapVSRedToGreen, globalLDnsReapAlg=globalLDnsReapAlg, hostEntry=hostEntry, lbDomainAliasName=lbDomainAliasName, dataCenterServEntry=dataCenterServEntry, hostIfAddr=hostIfAddr, globalRTTProbeProtocolState=globalRTTProbeProtocolState, globalLDnsDuration=globalLDnsDuration, globalPersistLDns=globalPersistLDns, hostSNMPVersion=hostSNMPVersion, hostAddr=hostAddr, lbDomainRequests=lbDomainRequests)
|
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, constraints_union, constraints_intersection, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'SingleValueConstraint')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(counter32, counter64, object_identity, bits, notification_type, unsigned32, integer32, gauge32, notification_type, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, time_ticks, enterprises, iso, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'Counter64', 'ObjectIdentity', 'Bits', 'NotificationType', 'Unsigned32', 'Integer32', 'Gauge32', 'NotificationType', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'TimeTicks', 'enterprises', 'iso', 'ModuleIdentity')
(textual_convention, display_string, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'DateAndTime')
f5 = mib_identifier((1, 3, 6, 1, 4, 1, 3375))
f5systems = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1))
f53dns = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2))
f53dns_mib = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1))
f53dns_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1))
globals = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1))
data_centers = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2))
lb_routers = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3))
hosts = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4))
lb_dns_servs = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5))
lb_domains = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6))
summary = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7))
threedns_trap = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2))
threedns_traps = mib_identifier((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2))
global_check_static_depends = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalCheckStaticDepends.setStatus('mandatory')
if mibBuilder.loadTexts:
globalCheckStaticDepends.setDescription('Indicates whether the availability of virtual servers on load-balancing routers and hosts is checked. Normally true, but can be false for testing.')
global_default_alternate = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=named_values(('returnDNS', 1), ('none', 2), ('returnVS', 3), ('roundRobin', 4), ('ratio', 5), ('random', 6), ('topology', 7), ('staticPersist', 8), ('globalAvailability', 9), ('servers', 10), ('connections', 11), ('roundTripTime', 12), ('hops', 13), ('packetRate', 14), ('mem', 15), ('cpu', 16), ('diskSpace', 17), ('hitRatio', 18), ('qos', 19)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalDefaultAlternate.setStatus('mandatory')
if mibBuilder.loadTexts:
globalDefaultAlternate.setDescription('Default static load balancing mode.')
global_timer_get_lb_router_data = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalTimerGetLBRouterData.setStatus('mandatory')
if mibBuilder.loadTexts:
globalTimerGetLBRouterData.setDescription('Interval in seconds between refreshes of load-balancing router data.')
global_timer_get_v_serv_data = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalTimerGetVServData.setStatus('mandatory')
if mibBuilder.loadTexts:
globalTimerGetVServData.setDescription('Interval in seconds between refreshes of virtual server data.')
global_timer_get_path_data = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalTimerGetPathData.setStatus('mandatory')
if mibBuilder.loadTexts:
globalTimerGetPathData.setDescription('Interval in seconds between refreshes of path data.')
global_lb_router_ttl = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalLBRouterTTL.setStatus('mandatory')
if mibBuilder.loadTexts:
globalLBRouterTTL.setDescription('Amount of time in seconds that load-balancing router data is considered valid for name resolution and load balancing.')
global_vsttl = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalVSTTL.setStatus('mandatory')
if mibBuilder.loadTexts:
globalVSTTL.setDescription('Amount of time in seconds that virtual server data is considered valid for name resolution and load balancing.')
global_path_ttl = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalPathTTL.setStatus('mandatory')
if mibBuilder.loadTexts:
globalPathTTL.setDescription('Amount of time in seconds that path data is considered valid for name resolution and load balancing.')
global_rtt_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTTimeout.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTTimeout.setDescription('Amount of time in seconds that the RTT listener daemon waits for a probe.')
global_rtt_sample_count = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 25))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTSampleCount.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTSampleCount.setDescription('Number of packets to send when measuring round-trip times.')
global_rtt_packet_length = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(64, 500))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTPacketLength.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTPacketLength.setDescription('Length in bytes of packets used for measuring round-trip times.')
global_rtt_probe_protocol = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('icmp', 1), ('tcp', 2), ('udp', 3), ('dnsnslookupDot', 4), ('dnsRetrieveBindVers', 5), ('numberItems', 6), ('none', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTProbeProtocol.setDescription('Probing protocol used for measuring round-trip times.')
global_encryption = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalEncryption.setStatus('mandatory')
if mibBuilder.loadTexts:
globalEncryption.setDescription('Indicates whether encryption is used for iQuery events.')
global_encryption_key_file = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 14), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalEncryptionKeyFile.setStatus('mandatory')
if mibBuilder.loadTexts:
globalEncryptionKeyFile.setDescription('The pathname of the key file used for encryption.')
global_path_hi_water = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 15), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalPathHiWater.setStatus('mandatory')
if mibBuilder.loadTexts:
globalPathHiWater.setDescription('Path memory usage level that triggers reaping, in bytes.')
global_path_lo_water = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 16), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalPathLoWater.setStatus('mandatory')
if mibBuilder.loadTexts:
globalPathLoWater.setDescription('Path memory usage level at which reaping is discontinued, in bytes.')
global_path_duration = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 17), integer32().subtype(subtypeSpec=value_range_constraint(3600, 2419200))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalPathDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
globalPathDuration.setDescription('Interval in seconds between checks of path memory usage to determine whether to reap.')
global_path_reap_alg = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('lru', 1), ('fewestHits', 2), ('numberItems', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalPathReapAlg.setStatus('mandatory')
if mibBuilder.loadTexts:
globalPathReapAlg.setDescription('Algorithm used for selecting paths to be discarded when reaping.')
global_timer_keep_alive = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalTimerKeepAlive.setStatus('mandatory')
if mibBuilder.loadTexts:
globalTimerKeepAlive.setDescription('Interval in seconds between periodic queries of load-balancing routers.')
global_rx_buf_size = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 20), integer32().subtype(subtypeSpec=value_range_constraint(8192, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRxBufSize.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRxBufSize.setDescription('Size of each socket receive buffer, in bytes.')
global_tx_buf_size = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(8192, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalTxBufSize.setStatus('mandatory')
if mibBuilder.loadTexts:
globalTxBufSize.setDescription('Size of each socket transmit buffer, in bytes.')
global_qos_coeff_rtt = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosCoeffRTT.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosCoeffRTT.setDescription('Relative weight given to the round-trip time in the quality of service load balancing mode.')
global_qos_coeff_completion_rate = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 23), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosCoeffCompletionRate.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosCoeffCompletionRate.setDescription('Relative weight given to the completion rate in the quality of service load balancing mode.')
global_qos_coeff_hops = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosCoeffHops.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosCoeffHops.setDescription('Relative weight given to the hop count in the quality of service load balancing mode.')
global_qos_coeff_packet_rate = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosCoeffPacketRate.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosCoeffPacketRate.setDescription('Relative weight given to the packet rate in the quality of service load balancing mode.')
global_paths_no_clobber = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 26), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalPathsNoClobber.setStatus('mandatory')
if mibBuilder.loadTexts:
globalPathsNoClobber.setDescription('Specifies whether the load-balancing DNS server overwrites existing path data with blank data when a path probe fails.')
global_paths_never_die = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalPathsNeverDie.setStatus('mandatory')
if mibBuilder.loadTexts:
globalPathsNeverDie.setDescription('Specifies whether dynamic load balancing modes can use path data even after the ttl for the path data has expired.')
global_regulate_init = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 28), integer32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRegulateInit.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRegulateInit.setDescription('Defines the initial amount of path probe requests 3DNS will send to each big3d after initialization. After the first series of probe requests, 3DNS adjusts the number of future probe requests according to the amount received during the last probe interval (defined by timer_get_path_data) plus the increment defined by regulate_paths.')
global_regulate_paths = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 29), integer32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRegulatePaths.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRegulatePaths.setDescription("If zero, no path regulation will be attempted. Every path in the cache that is not fresh will be sent to each big3d every timer_get_path_data seconds. If non-zero, this defines the increment over the amount of path's probed and refreshed over the past interval to determine an upper bound for probe requests to send to each big3d.")
global_prober_addr = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 30), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalProberAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
globalProberAddr.setDescription('The default prober for host status.')
global_check_dynamic_depends = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalCheckDynamicDepends.setStatus('mandatory')
if mibBuilder.loadTexts:
globalCheckDynamicDepends.setDescription('Indicates whether the load-balancing DNS server checks the availability of a path before it uses the path for load balancing.')
global_default_fallback = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=named_values(('returnDNS', 1), ('none', 2), ('returnVS', 3), ('roundRobin', 4), ('ratio', 5), ('random', 6), ('topology', 7), ('staticPersist', 8), ('globalAvailability', 9), ('servers', 10), ('connections', 11), ('roundTripTime', 12), ('hops', 13), ('packetRate', 14), ('mem', 15), ('cpu', 16), ('diskSpace', 17), ('hitRatio', 18), ('qos', 19)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalDefaultFallback.setStatus('mandatory')
if mibBuilder.loadTexts:
globalDefaultFallback.setDescription('The default load balancing mode used for the fallback method.')
global_default_ttl = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 33), integer32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalDefaultTTL.setStatus('mandatory')
if mibBuilder.loadTexts:
globalDefaultTTL.setDescription('The amount of time (in seconds) that information is to be used for name resolution and load balancing.')
global_persist_l_dns = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 34), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalPersistLDns.setStatus('mandatory')
if mibBuilder.loadTexts:
globalPersistLDns.setDescription("If TRUE (default), then 3DNS will remember all LDNS's that make requests in its cache. This must be TRUE in order to store and use path information.")
global_fb_respect_acl = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 35), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalFbRespectAcl.setStatus('mandatory')
if mibBuilder.loadTexts:
globalFbRespectAcl.setDescription('Indicates whether the load-balancing DNS server imposes access control when load balancing switches to the specified fallback mode.')
global_fb_respect_depends = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 36), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalFbRespectDepends.setStatus('mandatory')
if mibBuilder.loadTexts:
globalFbRespectDepends.setDescription('Indicates whether the load-balancing DNS server respects virtual server status when load balancing switches to the specified fallback mode.')
global_host_ttl = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 37), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalHostTTL.setStatus('mandatory')
if mibBuilder.loadTexts:
globalHostTTL.setDescription('The amount of time (in seconds) that host machine information is to be used for name resolution and load balancing.')
global_timer_get_host_data = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 38), integer32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalTimerGetHostData.setStatus('mandatory')
if mibBuilder.loadTexts:
globalTimerGetHostData.setDescription('The interval (in seconds) between refreshes of host information.')
global_rtt_retire_zero = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTRetireZero.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTRetireZero.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
global_rtt_port_discovery = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 40), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTPortDiscovery.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTPortDiscovery.setDescription('Indicates whether the load-balancing DNS server uses the discovery factory to find an alternate port to be used by the probing factory, if probing on port 53 fails.')
global_rtt_discovery_method = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('short', 1), ('wks', 2), ('full', 3), ('all', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTDiscoveryMethod.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTDiscoveryMethod.setDescription('Indicates the set of ports scanned when searching for an alternate port to be used bythe probing factory, if probing on port 53 fails.')
global_rtt_probe_dynamic = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTProbeDynamic.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTProbeDynamic.setDescription('Indicates whether the load-balancing DNS server attempts a second probe using the alternate probe protocol if the probe protocol specified by globalRTTProbeProtocol fails during the first probe.')
global_resolver_rx_buf_size = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 43), integer32().subtype(subtypeSpec=value_range_constraint(8192, 131072))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalResolverRXBufSize.setStatus('mandatory')
if mibBuilder.loadTexts:
globalResolverRXBufSize.setDescription('The UDP receive buffer size.')
global_resolver_tx_buf_size = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 44), integer32().subtype(subtypeSpec=value_range_constraint(8192, 32768))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalResolverTXBufSize.setStatus('mandatory')
if mibBuilder.loadTexts:
globalResolverTXBufSize.setDescription('The TCP send buffer size.')
global_coeff_last_access = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 45), integer32().subtype(subtypeSpec=value_range_constraint(0, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalCoeffLastAccess.setStatus('mandatory')
if mibBuilder.loadTexts:
globalCoeffLastAccess.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
global_coeff_fresh_remain = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 46), integer32().subtype(subtypeSpec=value_range_constraint(0, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalCoeffFreshRemain.setStatus('mandatory')
if mibBuilder.loadTexts:
globalCoeffFreshRemain.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
global_coeff_access_refresh = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 47), integer32().subtype(subtypeSpec=value_range_constraint(0, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalCoeffAccessRefresh.setStatus('mandatory')
if mibBuilder.loadTexts:
globalCoeffAccessRefresh.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
global_coeff_access_total = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 48), integer32().subtype(subtypeSpec=value_range_constraint(0, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalCoeffAccessTotal.setStatus('mandatory')
if mibBuilder.loadTexts:
globalCoeffAccessTotal.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
global_coeff_drtt = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 49), integer32().subtype(subtypeSpec=value_range_constraint(0, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalCoeffDRTT.setStatus('mandatory')
if mibBuilder.loadTexts:
globalCoeffDRTT.setDescription('Relative weighting for round trip time when the load balancing mode is set to Quality of Service.')
global_coeff_d_completion_rate = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 50), integer32().subtype(subtypeSpec=value_range_constraint(0, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalCoeffDCompletionRate.setStatus('mandatory')
if mibBuilder.loadTexts:
globalCoeffDCompletionRate.setDescription('Default 0. Coefficient used in custom path prioritization algorithm.')
global_qos_coeff_topology = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 51), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosCoeffTopology.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosCoeffTopology.setDescription('Relative weighting for topology when the load balancing mode is set to Quality of Service.')
global_qos_factor_rtt = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 52), integer32().subtype(subtypeSpec=value_range_constraint(1, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosFactorRTT.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosFactorRTT.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
global_qos_factor_hops = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 53), integer32().subtype(subtypeSpec=value_range_constraint(1, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosFactorHops.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosFactorHops.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
global_qos_factor_completion_rate = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 54), integer32().subtype(subtypeSpec=value_range_constraint(1, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosFactorCompletionRate.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosFactorCompletionRate.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
global_qos_factor_packet_rate = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 55), integer32().subtype(subtypeSpec=value_range_constraint(1, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosFactorPacketRate.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosFactorPacketRate.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
global_qos_factor_topology = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 56), integer32().subtype(subtypeSpec=value_range_constraint(1, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalQosFactorTopology.setStatus('mandatory')
if mibBuilder.loadTexts:
globalQosFactorTopology.setDescription('Factor used to normalize raw RTT values when computing the QOS score.')
global_l_dns_hi_water = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 57), integer32().subtype(subtypeSpec=value_range_constraint(0, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalLDnsHiWater.setStatus('mandatory')
if mibBuilder.loadTexts:
globalLDnsHiWater.setDescription('LDNS memory usage level that triggers reaping, in bytes.')
global_l_dns_lo_water = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 58), integer32().subtype(subtypeSpec=value_range_constraint(0, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalLDnsLoWater.setStatus('mandatory')
if mibBuilder.loadTexts:
globalLDnsLoWater.setDescription('LDNS memory usage level at which reaping is discontinued, in bytes.')
global_l_dns_duration = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 59), integer32().subtype(subtypeSpec=value_range_constraint(3600, 424967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalLDnsDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
globalLDnsDuration.setDescription('Interval in seconds between checks of LDNS memory usage to determine whether to reap.')
global_l_dns_reap_alg = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 60), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('lru', 1), ('fewestHits', 2), ('numberItems', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalLDnsReapAlg.setStatus('mandatory')
if mibBuilder.loadTexts:
globalLDnsReapAlg.setDescription('Algorithm used for selecting LDNS entries to be discarded when reaping.')
global_use_alt_iq_port = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 61), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalUseAltIqPort.setStatus('mandatory')
if mibBuilder.loadTexts:
globalUseAltIqPort.setDescription('If true, the registered port 4353 is used for iQuery traffic. If false, the traditional port 245 is used.')
global_multiplex_iq = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 62), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalMultiplexIq.setStatus('mandatory')
if mibBuilder.loadTexts:
globalMultiplexIq.setDescription('If true, port 4353 is used for all incoming iQuery traffic. If false, ports from the ephemeral port range are used.')
global_rtt_probe_protocol_list = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 63), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTProbeProtocolList.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTProbeProtocolList.setDescription('List of RTT probe protocols to use. The protocols are listed in the order in which they will be attempted. If an attempt to use a specified protocol fails, the next one in the list will be used for a subsequent attempt. If the last protocol in the list fails the first one in the list will then be used.')
global_rtt_probe_protocol_state = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 64), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalRTTProbeProtocolState.setStatus('mandatory')
if mibBuilder.loadTexts:
globalRTTProbeProtocolState.setDescription('The current RTT probe protocol being used. This will return the name of the protocol being used followed by a number signifying the position of that protocol in the list of protocols returned by globalRTTProbeProtocolList.')
global_reset_counters = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 65), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('reset', 1), ('unreset', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
globalResetCounters.setStatus('mandatory')
if mibBuilder.loadTexts:
globalResetCounters.setDescription('Writing a one to this variable will cause counters within 3DNS to be reset. If the counters have been reset this variable will have a value of 1. If the counters have not been reset the variable will have a value of 2.')
global_reset_counter_time = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 1, 66), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
globalResetCounterTime.setStatus('mandatory')
if mibBuilder.loadTexts:
globalResetCounterTime.setDescription('The time of the last reset of the 3DNS counters. If the counters have not been reset this variable will contain the time when statistic gathering first started.')
data_center_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1))
if mibBuilder.loadTexts:
dataCenterTable.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterTable.setDescription('Information describing the defined data centers.')
data_center_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'dataCenterName'))
if mibBuilder.loadTexts:
dataCenterEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterEntry.setDescription('This table contains a row for each data center. The rows are indexed by the names of the data centers.')
data_center_name = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dataCenterName.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterName.setDescription('The name of the data center in this row of the table.')
data_center_contact = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dataCenterContact.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterContact.setDescription('Contact information for the data center in this row of the table.')
data_center_location = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dataCenterLocation.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterLocation.setDescription('The location of the data center in this row of the table.')
data_center_path_count = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dataCenterPathCount.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterPathCount.setDescription('The number of paths in the data center in this row of the table.')
data_center_disabled = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dataCenterDisabled.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterDisabled.setDescription('Is this datacenter disabled. If a datacenter is disabled then all servers within the datacenter are treated as disabled.')
data_center_disable_duration = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 1, 1, 6), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dataCenterDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterDisableDuration.setDescription('The duration of a disable of this datacenter.')
data_center_serv_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 2))
if mibBuilder.loadTexts:
dataCenterServTable.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterServTable.setDescription('Information about the servers associated with each data center.')
data_center_serv_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 2, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'dataCenterName'), (0, 'F5-3DNS-MIB', 'dataCenterServAddr'))
if mibBuilder.loadTexts:
dataCenterServEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterServEntry.setDescription('This table contains a row for each server in each data center.')
data_center_serv_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 2, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dataCenterServAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterServAddr.setDescription('The IP address of the server.')
data_center_serv_type = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('lbRouter', 2), ('lbDnsServ', 3), ('host', 4), ('lDns', 5), ('prober', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dataCenterServType.setStatus('mandatory')
if mibBuilder.loadTexts:
dataCenterServType.setDescription('The server type.')
lb_router_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1))
if mibBuilder.loadTexts:
lbRouterTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterTable.setDescription('Information about the defined load-balancing routers.')
lb_router_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbRouterAddr'))
if mibBuilder.loadTexts:
lbRouterEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterEntry.setDescription("This table contains a row for each load-balancing router known to the system. It is indexed by the router's canonical IP address.")
lb_router_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterAddr.setDescription("The load-balancing router's canonical IP address.")
lb_router_name = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterName.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterName.setDescription("The load-balancing router's name.")
lb_router_v_serv_count = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServCount.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServCount.setDescription('The number of virtual servers associated with the load-balancing router.')
lb_router_picks = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterPicks.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterPicks.setDescription('The number of times the specified load-balancing router has been chosen by the load-balancing DNS server.')
lb_router_refreshes = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterRefreshes.setDescription('The number of times that server and connection counts have been refreshed with new data from the load-balancing router.')
lb_router_disabled = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterDisabled.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterDisabled.setDescription('Is this load -balancing router disabled. If a load-balancing router is disabled then all of its virtual servers are considered to be disabled.')
lb_router_disable_duration = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 7), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterDisableDuration.setDescription('Duration of a disable of this load-balancing router.')
lb_router_iq_proto = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('tcp', 1), ('udp', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIQProto.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIQProto.setDescription('IQuery protocol to use for this load-balancing router.')
lb_router_if_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2))
if mibBuilder.loadTexts:
lbRouterIfTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfTable.setDescription('Information about the network interfaces on a load-balancing router.')
lb_router_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbRouterAddr'), (0, 'F5-3DNS-MIB', 'lbRouterIfAddr'))
if mibBuilder.loadTexts:
lbRouterIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfEntry.setDescription('This table contains a row for each network interface associated with a load-balancing router. It is indexed by the canonical IP address of the router and the specific IP address of the interface.')
lb_router_if_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfAddr.setDescription('The specific IP address of the network interface in this row of the table.')
lb_router_if_shared = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfShared.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfShared.setDescription('Whether the interface is the shared IP address of the load-balancing router.')
lb_router_if_status = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('up', 2), ('down', 3), ('waiting', 4), ('alert', 5), ('panic', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfStatus.setDescription('The status of the network interface.')
lb_router_if_tx_packets = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfTXPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfTXPackets.setDescription('The number of packets that have been transmitted on the network interface.')
lb_router_if_rx_packets = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfRXPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfRXPackets.setDescription('The number of packets that have been received on the network interface.')
lb_router_if_packet_rate = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfPacketRate.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfPacketRate.setDescription("The interface's current packet rate in packets per second.")
lb_router_if_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 7), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfUpTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfUpTime.setDescription('The amount of time the interface has been up.')
lb_router_if_alive_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 8), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfAliveTime.setDescription('The most recent date and time when the interface was known to be running.')
lb_router_if_data_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 9), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfDataTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfDataTime.setDescription('The most recent date and time when data was transmitted through the interface.')
lb_router_if_path_sent_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 10), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfPathSentTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfPathSentTime.setDescription('The date and time when path data corresponding to the interface was most recently sent.')
lb_router_if_paths_sent = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfPathsSent.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfPathsSent.setDescription('The number of paths sent in the most recent batch.')
lb_router_if_paths_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfPathsRcvd.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfPathsRcvd.setDescription('The number of paths received in the most recent batch.')
lb_router_if_path_sends = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfPathSends.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfPathSends.setDescription('The number of batches of paths that have been sent.')
lb_router_if_path_rcvs = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfPathRcvs.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfPathRcvs.setDescription('The number of batches of paths that have been received.')
lb_router_if_avg_paths_sent_x1000 = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfAvgPathsSentX1000.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfAvgPathsSentX1000.setDescription('The average sent path batch size, multiplied by 1000.')
lb_router_if_avg_paths_rcvd_x1000 = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 2, 1, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfAvgPathsRcvdX1000.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfAvgPathsRcvdX1000.setDescription('The average received path batch size, multiplied by 1000.')
lb_router_if_fctry_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 3))
if mibBuilder.loadTexts:
lbRouterIfFctryTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfFctryTable.setDescription('Information about the factories running on each load-balancing router interface.')
lb_router_if_fctry_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 3, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbRouterAddr'), (0, 'F5-3DNS-MIB', 'lbRouterIfAddr'), (0, 'F5-3DNS-MIB', 'lbRouterIfFctryType'))
if mibBuilder.loadTexts:
lbRouterIfFctryEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfFctryEntry.setDescription('This table gives the number of factories of each type that are running on each load-balancing router interface.')
lb_router_if_fctry_type = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('lbRouter', 1), ('prober', 2), ('discovery', 3), ('snmp', 4), ('hops', 5), ('server', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfFctryType.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfFctryType.setDescription('The type of the factory in this row of the table.')
lb_router_if_fctry_count = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 3, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterIfFctryCount.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterIfFctryCount.setDescription('The number of factories of the type corresponding to this row of the table.')
lb_router_v_serv_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4))
if mibBuilder.loadTexts:
lbRouterVServTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServTable.setDescription('Information about the virtual servers associated with each load-balancing router.')
lb_router_v_serv_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbRouterAddr'), (0, 'F5-3DNS-MIB', 'lbRouterVServAddr'), (0, 'F5-3DNS-MIB', 'lbRouterVServPort'))
if mibBuilder.loadTexts:
lbRouterVServEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServEntry.setDescription('This table contains a row for each virtual server on each load-balancing router. It is indexed by the router address and by the address/port combination that defines the virtual server.')
lb_router_v_serv_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServAddr.setDescription('The IP address of the virtual server.')
lb_router_v_serv_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServPort.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServPort.setDescription('The port number of the virtual server.')
lb_router_v_serv_xlated_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServXlatedAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServXlatedAddr.setDescription('The translated (NAT) address of the virtual server.')
lb_router_v_serv_xlated_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServXlatedPort.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServXlatedPort.setDescription('The translated (NAT) port number of the virtual server.')
lb_router_v_serv_probe_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('icmp', 1), ('tcp', 2), ('udp', 3), ('dnsnslookupDot', 4), ('dnsRetrieveBindVers', 5), ('numberItems', 6), ('none', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServProbeProtocol.setDescription('The probing protocol used for measuring round-trip times to the virtual server.')
lb_router_v_serv_picks = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServPicks.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServPicks.setDescription('The number of times the specified virtual server has been chosen by the load-balancing DNS server.')
lb_router_v_serv_refreshes = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServRefreshes.setDescription('The number of times that data associated with the virtual server have been refreshed with new information.')
lb_router_v_serv_alive_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 8), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServAliveTime.setDescription('When the virtual server was last known to be up.')
lb_router_v_serv_data_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 9), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServDataTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServDataTime.setDescription('When data was last received from the virtual server.')
lb_router_v_serv_cur_conns = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServCurConns.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServCurConns.setDescription('The current number of connections being processed by the virtual server.')
lb_router_v_serv_cur_conn_limit = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServCurConnLimit.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServCurConnLimit.setDescription('The current connection limit for the virtual server.')
lb_router_v_serv_cur_nodes_up = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServCurNodesUp.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServCurNodesUp.setDescription('The current number of nodes associated with the virtual server that are up.')
lb_router_v_serv_cur_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServCurEnabled.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServCurEnabled.setDescription('Whether the virtual server is currently enabled.')
lb_router_v_serv_dns_serv_disabled = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServDnsServDisabled.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServDnsServDisabled.setDescription('Whether the virtual server is currently disabled from the load-balancing DNS server.')
lb_router_v_serv_disable_duration = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 3, 4, 1, 15), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbRouterVServDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
lbRouterVServDisableDuration.setDescription('Duration of a disable of this server by the load-balancing DNS server.')
host_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1))
if mibBuilder.loadTexts:
hostTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hostTable.setDescription('Information about the defined hosts other than load-balancing routers.')
host_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'hostAddr'))
if mibBuilder.loadTexts:
hostEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hostEntry.setDescription('This table contains a row for each host other than the load-balancing routers. It is indexed by the canonical IP address of each host.')
host_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
hostAddr.setDescription('The canonical IP address of the host.')
host_name = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostName.setStatus('mandatory')
if mibBuilder.loadTexts:
hostName.setDescription('The name of the host.')
host_prober = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostProber.setStatus('mandatory')
if mibBuilder.loadTexts:
hostProber.setDescription('The IP address of the prober for the host.')
host_probe_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('icmp', 1), ('tcp', 2), ('udp', 3), ('dnsnslookupDot', 4), ('dnsRetrieveBindVers', 5), ('numberItems', 6), ('none', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts:
hostProbeProtocol.setDescription('The protocol used when probing the host.')
host_probe_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostProbePort.setStatus('mandatory')
if mibBuilder.loadTexts:
hostProbePort.setDescription('The port to which probes are directed.')
host_v_serv_count = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServCount.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServCount.setDescription('The number of virtual servers associated with the host.')
host_status = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('up', 2), ('down', 3), ('waiting', 4), ('alert', 5), ('panic', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
hostStatus.setDescription('The current status of the host.')
host_picks = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostPicks.setStatus('mandatory')
if mibBuilder.loadTexts:
hostPicks.setDescription('The number of times the host has been chosen by the load-balancing DNS server.')
host_refreshes = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts:
hostRefreshes.setDescription('The number of times the data from the host has been refreshed with new information.')
host_disabled = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostDisabled.setStatus('mandatory')
if mibBuilder.loadTexts:
hostDisabled.setDescription('Is this load host disabled. If a host is disabled then all of its virtual servers are considered to be disabled.')
host_disable_duration = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 11), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
hostDisableDuration.setDescription('Duration of a disable of this host.')
host_metrics = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unkown', 1), ('yes', 2), ('no', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostMetrics.setStatus('mandatory')
if mibBuilder.loadTexts:
hostMetrics.setDescription('Are Cisco virtual server metrics available for the virtual servers on this host.')
host_memory = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostMemory.setStatus('mandatory')
if mibBuilder.loadTexts:
hostMemory.setDescription('Total number of kilobytes of free virtual memory for this host. If this statistic is not available it will have a value of -1.')
host_cpu = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostCPU.setStatus('mandatory')
if mibBuilder.loadTexts:
hostCPU.setDescription('CPU utilization. All CPU utilization is expressed a percentage rounded up to the nearest integer. CPU utilization is computed differently for each SNMP agent. CPU usage is computed for the UCD mib as the load average in the last 5 minutes divided by a configured maximum saturated load average. CPU usage is computed for the Solstice mib as the number of time ticks spent in user and system execution divided by the total number of elapsed time tics. If this statistic is not available it will have a value of -1.')
host_disk_space = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostDiskSpace.setStatus('mandatory')
if mibBuilder.loadTexts:
hostDiskSpace.setDescription('The amount of available disk space for / in kilobytes. If this statistic is not available it will have a value of -1.')
host_snmp_configured = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostSNMPConfigured.setStatus('mandatory')
if mibBuilder.loadTexts:
hostSNMPConfigured.setDescription('Is an SNMP agent configured for this host.')
host_snmp_agent_type = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('ciscold', 1), ('ciscold2', 2), ('ciscold3', 3), ('ucd', 4), ('solstice', 5), ('ntserv', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostSNMPAgentType.setStatus('mandatory')
if mibBuilder.loadTexts:
hostSNMPAgentType.setDescription('Is an SNMP agent configured for this host.')
host_snmp_address = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 18), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostSNMPAddress.setStatus('mandatory')
if mibBuilder.loadTexts:
hostSNMPAddress.setDescription('The IP address of the SNMP agent for this host. If no SNMP agent is configured for this host this will have a value of 0.0.0.0.')
host_snmp_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 19), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostSNMPPort.setStatus('mandatory')
if mibBuilder.loadTexts:
hostSNMPPort.setDescription('The port for the SNMP agent of this host. If no SNMP agent is configured for this host this will have a value of -1.')
host_snmp_retries = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 20), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostSNMPRetries.setStatus('mandatory')
if mibBuilder.loadTexts:
hostSNMPRetries.setDescription('Number of retries to use when attempting to query the SNMP agent of this host. If no SNMP agent is configured for this host this will have a value of -1.')
host_snmp_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 21), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostSNMPTimeout.setStatus('mandatory')
if mibBuilder.loadTexts:
hostSNMPTimeout.setDescription('Time in seconds to wait before retrying a query of the SNMP agent for this host. If no SNMP agent is configured for this host this will have a value of -1.')
host_snmp_version = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('v1', 1), ('v2', 2), ('v3', 3), ('notset', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostSNMPVersion.setStatus('mandatory')
if mibBuilder.loadTexts:
hostSNMPVersion.setDescription('SNMP version number to use when communicating with the SNMP agent for this host. If no SNMP agent is configured for this host this will have a value of -1.')
host_snmp_community = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 1, 1, 23), octet_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostSNMPCommunity.setStatus('mandatory')
if mibBuilder.loadTexts:
hostSNMPCommunity.setDescription('SNMP community name to use when communicating with the SNMP agent for this host. If no SNMP agent is configured for this host this will have a value of none.')
host_if_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2))
if mibBuilder.loadTexts:
hostIfTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfTable.setDescription('Information about the network interfaces on a host.')
host_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'hostAddr'), (0, 'F5-3DNS-MIB', 'hostIfAddr'))
if mibBuilder.loadTexts:
hostIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfEntry.setDescription('This table contains a row for each network interface associated with a host. It is indexed by the canonical IP address of the host and the specific IP address of the interface.')
host_if_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfAddr.setDescription('The specific IP address of the network interface in this row of the table.')
host_if_shared = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfShared.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfShared.setDescription('Whether the interface is the shared IP address of the host.')
host_if_status = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('up', 2), ('down', 3), ('waiting', 4), ('alert', 5), ('panic', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfStatus.setDescription('The status of the network interface.')
host_if_tx_packets = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfTXPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfTXPackets.setDescription('The number of packets that have been transmitted on the network interface.')
host_if_rx_packets = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfRXPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfRXPackets.setDescription('The number of packets that have been received on the network interface.')
host_if_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 6), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfUpTime.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfUpTime.setDescription('The amount of time the interface has been up.')
host_if_alive_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 7), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfAliveTime.setDescription('The most recent date and time when the interface was known to be running.')
host_if_data_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 8), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfDataTime.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfDataTime.setDescription('The most recent date and time when data was transmitted through the interface.')
host_if_path_sent_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 9), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfPathSentTime.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfPathSentTime.setDescription('The date and time when path data corresponding to the interface was most recently sent.')
host_if_paths_sent = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfPathsSent.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfPathsSent.setDescription('The number of paths sent in the most recent batch.')
host_if_paths_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfPathsRcvd.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfPathsRcvd.setDescription('The number of paths received in the most recent batch.')
host_if_path_sends = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfPathSends.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfPathSends.setDescription('The number of batches of paths that have been sent.')
host_if_path_rcvs = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfPathRcvs.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfPathRcvs.setDescription('The number of batches of paths that have been received.')
host_if_avg_paths_sent_x1000 = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfAvgPathsSentX1000.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfAvgPathsSentX1000.setDescription('The average sent path batch size, multiplied by 1000.')
host_if_avg_paths_rcvd_x1000 = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 2, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfAvgPathsRcvdX1000.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfAvgPathsRcvdX1000.setDescription('The average received path batch size, multiplied by 1000.')
host_if_fctry_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 3))
if mibBuilder.loadTexts:
hostIfFctryTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfFctryTable.setDescription('Information about the factories running on each host interface.')
host_if_fctry_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 3, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'hostAddr'), (0, 'F5-3DNS-MIB', 'hostIfAddr'), (0, 'F5-3DNS-MIB', 'hostIfFctryType'))
if mibBuilder.loadTexts:
hostIfFctryEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfFctryEntry.setDescription('This table gives the number of factories of each type that are running on each host interface.')
host_if_fctry_type = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('lbRouter', 1), ('prober', 2), ('discovery', 3), ('snmp', 4), ('hops', 5), ('server', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfFctryType.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfFctryType.setDescription('The type of the factory in this row of the table.')
host_if_fctry_count = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 3, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIfFctryCount.setStatus('mandatory')
if mibBuilder.loadTexts:
hostIfFctryCount.setDescription('The number of factories of the type corresponding to this row of the table.')
host_v_serv_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4))
if mibBuilder.loadTexts:
hostVServTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServTable.setDescription('Information about the virtual servers associated with each host.')
host_v_serv_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'hostAddr'), (0, 'F5-3DNS-MIB', 'hostVServAddr'), (0, 'F5-3DNS-MIB', 'hostVServPort'))
if mibBuilder.loadTexts:
hostVServEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServEntry.setDescription('This table contains a row for each virtual server on each host other than load-balancing routers. It is indexed by the host address and by the address/port combination that defines the virtual server.')
host_v_serv_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServAddr.setDescription('The IP address of the virtual server.')
host_v_serv_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServPort.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServPort.setDescription('The port number of the virtual server.')
host_v_serv_xlated_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServXlatedAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServXlatedAddr.setDescription('The translated (NAT) address of the virtual server.')
host_v_serv_xlated_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServXlatedPort.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServXlatedPort.setDescription('The translated (NAT) port number of the virtual server.')
host_v_serv_probe_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('icmp', 1), ('tcp', 2), ('udp', 3), ('dnsnslookupDot', 4), ('dnsRetrieveBindVers', 5), ('numberItems', 6), ('none', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServProbeProtocol.setDescription('The probing protocol used for measuring round-trip times to the virtual server.')
host_v_serv_picks = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServPicks.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServPicks.setDescription('The number of times the specified virtual server has been chosen by the load-balancing DNS server.')
host_v_serv_refreshes = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServRefreshes.setDescription('The number of times that data associated with the virtual server have been refreshed with new information.')
host_v_serv_alive_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 8), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServAliveTime.setDescription('When the virtual server was last known to be up.')
host_v_serv_data_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 9), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServDataTime.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServDataTime.setDescription('When data was last received from the virtual server.')
host_v_serv_disabled = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServDisabled.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServDisabled.setDescription('Is this virtual server disabled. If a virtual server is disabled it is considered unavailable for load balancing by 3DNS.')
host_v_serv_disable_duration = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 4, 4, 1, 11), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostVServDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
hostVServDisableDuration.setDescription('Disable duration of this virtual server.')
lb_dns_serv_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1))
if mibBuilder.loadTexts:
lbDnsServTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServTable.setDescription('Information about the load-balancing DNS servers.')
lb_dns_serv_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbDnsServAddr'))
if mibBuilder.loadTexts:
lbDnsServEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServEntry.setDescription("This table contains a row for each load-balancing DNS server, indexed by the server's canonical IP address.")
lb_dns_serv_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServAddr.setDescription('The canonical IP address of the load-balancing DNS server.')
lb_dns_serv_name = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServName.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServName.setDescription('The name of the load-balancing DNS server.')
lb_dns_serv_prober = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServProber.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServProber.setDescription("The IP address of the server's prober.")
lb_dns_serv_probe_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('icmp', 1), ('tcp', 2), ('udp', 3), ('dnsnslookupDot', 4), ('dnsRetrieveBindVers', 5), ('numberItems', 6), ('none', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServProbeProtocol.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServProbeProtocol.setDescription('The The probing protocol used for measuring round-trip times to the server.')
lb_dns_serv_probe_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServProbePort.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServProbePort.setDescription('The port to which probes are directed.')
lb_dns_serv_status = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('up', 2), ('down', 3), ('waiting', 4), ('alert', 5), ('panic', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServStatus.setDescription('The current status of the server.')
lb_dns_serv_picks = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServPicks.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServPicks.setDescription('The number of times the host has been chosen.')
lb_dns_serv_refreshes = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServRefreshes.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServRefreshes.setDescription('The number of times the data from the server has been refreshed with new information.')
lb_dns_serv_disabled = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServDisabled.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServDisabled.setDescription('Is this load-balancing DNS server disabled. If a load balancing DNS server is disabled then it is not available for load-balancing and it will not be included in any sync groups.')
lb_dns_serv_disable_duration = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 10), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServDisableDuration.setDescription('Duration of a disable of this load-balancing DNS server.')
lb_dns_serv_iq_proto = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('tcp', 1), ('udp', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIQProto.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIQProto.setDescription('Iquery protocol to use for this load-balancing DNS server.')
lb_dns_serv_if_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2))
if mibBuilder.loadTexts:
lbDnsServIfTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfTable.setDescription('Information about the network interfaces on a load-balancing DNS server.')
lb_dns_serv_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbDnsServAddr'), (0, 'F5-3DNS-MIB', 'lbDnsServIfAddr'))
if mibBuilder.loadTexts:
lbDnsServIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfEntry.setDescription('This table contains a row for each network interface associated with a load-balancing DNS server. It is indexed by the canonical IP address of the server and the specific IP address of the interface.')
lb_dns_serv_if_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfAddr.setDescription('The specific IP address of the network interface in this row of the table.')
lb_dns_serv_if_shared = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfShared.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfShared.setDescription('Whether the interface is the shared IP address of the server.')
lb_dns_serv_if_status = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('up', 2), ('down', 3), ('waiting', 4), ('alert', 5), ('panic', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfStatus.setDescription('The status of the network interface.')
lb_dns_serv_if_tx_packets = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfTXPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfTXPackets.setDescription('The number of packets that have been transmitted on the network interface.')
lb_dns_serv_if_rx_packets = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfRXPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfRXPackets.setDescription('The number of packets that have been received on the network interface.')
lb_dns_serv_if_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 6), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfUpTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfUpTime.setDescription('The amount of time the interface has been up.')
lb_dns_serv_if_alive_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 7), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfAliveTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfAliveTime.setDescription('The most recent date and time when the interface was known to be running.')
lb_dns_serv_if_data_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 8), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfDataTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfDataTime.setDescription('The most recent date and time when data was transmitted through the interface.')
lb_dns_serv_if_path_sent_time = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 9), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfPathSentTime.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfPathSentTime.setDescription('The date and time when path data corresponding to the interface was most recently sent.')
lb_dns_serv_if_paths_sent = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfPathsSent.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfPathsSent.setDescription('The number of paths sent in the most recent batch.')
lb_dns_serv_if_paths_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfPathsRcvd.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfPathsRcvd.setDescription('The number of paths received in the most recent batch.')
lb_dns_serv_if_path_sends = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfPathSends.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfPathSends.setDescription('The number of batches of paths that have been sent.')
lb_dns_serv_if_path_rcvs = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfPathRcvs.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfPathRcvs.setDescription('The number of batches of paths that have been received.')
lb_dns_serv_if_avg_paths_sent_x1000 = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfAvgPathsSentX1000.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfAvgPathsSentX1000.setDescription('The average sent path batch size, multiplied by 1000.')
lb_dns_serv_if_avg_paths_rcvd_x1000 = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 2, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfAvgPathsRcvdX1000.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfAvgPathsRcvdX1000.setDescription('The average received path batch size, multiplied by 1000.')
lb_dns_serv_if_fctry_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 3))
if mibBuilder.loadTexts:
lbDnsServIfFctryTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfFctryTable.setDescription('Information about the factories running on each load-balancing DNS server interface.')
lb_dns_serv_if_fctry_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 3, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbDnsServAddr'), (0, 'F5-3DNS-MIB', 'lbDnsServIfAddr'), (0, 'F5-3DNS-MIB', 'lbDnsServIfFctryType'))
if mibBuilder.loadTexts:
lbDnsServIfFctryEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfFctryEntry.setDescription('This table gives the number of factories of each type that are running on each load-balancing DNS server interface.')
lb_dns_serv_if_fctry_type = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('lbRouter', 1), ('prober', 2), ('discovery', 3), ('snmp', 4), ('hops', 5), ('server', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfFctryType.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfFctryType.setDescription('The type of the factory in this row of the table.')
lb_dns_serv_if_fctry_count = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 5, 3, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDnsServIfFctryCount.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDnsServIfFctryCount.setDescription('The number of factories of the type corresponding to this row of the table.')
lb_domain_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1))
if mibBuilder.loadTexts:
lbDomainTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainTable.setDescription('Information about the load-balanced domains.')
lb_domain_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbDomainName'))
if mibBuilder.loadTexts:
lbDomainEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainEntry.setDescription('This table contains a row for each load-balanced domain. It is indexed by the domain name.')
lb_domain_name = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainName.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainName.setDescription('The domain name of the load-balanced domain in this row of the table.')
lb_domain_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainAddr.setDescription('The canonical IP address of the load-balanced domain.')
lb_domain_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPort.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPort.setDescription("The load-balanced domain's default service port number.")
lb_domain_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainTTL.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainTTL.setDescription("The amount of time (in seconds) that the specified domain's information is to be used by the load-balancing DNS server for name resolution and load balancing.")
lb_domain_lb_mode_pool = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=named_values(('returnDNS', 1), ('none', 2), ('returnVS', 3), ('roundRobin', 4), ('ratio', 5), ('random', 6), ('topology', 7), ('staticPersist', 8), ('globalAvailability', 9), ('servers', 10), ('connections', 11), ('roundTripTime', 12), ('hops', 13), ('packetRate', 14), ('mem', 15), ('cpu', 16), ('diskSpace', 17), ('hitRatio', 18), ('qos', 19)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainLBModePool.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainLBModePool.setDescription('The load balancing mode to use to balance requests over all pools.')
lb_domain_qos_coeff_rtt = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainQosCoeffRTT.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainQosCoeffRTT.setDescription('Relative weighting for round trip time when the load balancing mode is set to Quality of Service.')
lb_domain_qos_coeff_hops = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainQosCoeffHops.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainQosCoeffHops.setDescription('Relative weighting for number of hops when the load balancing mode is set to Quality of Service.')
lb_domain_qos_coeff_topology = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainQosCoeffTopology.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainQosCoeffTopology.setDescription('Relative weighting for topology when the load balancing mode is set to Quality of Service.')
lb_domain_qos_coeff_completion_rate = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainQosCoeffCompletionRate.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainQosCoeffCompletionRate.setDescription('Relative weighting for completion rate when the load balancing mode is set to Quality of Service.')
lb_domain_qos_coeff_packet_rate = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainQosCoeffPacketRate.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainQosCoeffPacketRate.setDescription('Relative weighting for packet rate when the load balancing mode is set to Quality of Service.')
lb_domain_requests = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainRequests.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainRequests.setDescription('The number of DNS requests for this domain.')
lb_domain_preferred_resolves = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPreferredResolves.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPreferredResolves.setDescription('The number of times the domain has been resolved using the preferred mode.')
lb_domain_alternate_resolves = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainAlternateResolves.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainAlternateResolves.setDescription('The number of times the domain has been resolved using the alternate mode.')
lb_domain_fallback_resolves = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainFallbackResolves.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainFallbackResolves.setDescription('The number of times the domain has been resolved using the fallback mode.')
lb_domain_returns_to_dns = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainReturnsToDns.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainReturnsToDns.setDescription('The number of times the domain has been resolved using standard DNS.')
lb_domain_last_resolve = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 16), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainLastResolve.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainLastResolve.setDescription('When the domain was most recently resolved.')
lb_domain_disabled = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainDisabled.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainDisabled.setDescription('Is this domain disabled. If a domain is disabled then all name resolution requests are returned to DNS.')
lb_domain_disable_duration = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 18), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainDisableDuration.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainDisableDuration.setDescription('The duration of a disable of this domain.')
lb_domain_persist = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPersist.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPersist.setDescription("When this is true this domain will maintain connections between LDNS's and virtual servers.")
lb_domain_persist_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 1, 1, 20), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPersistTTL.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPersistTTL.setDescription("The duration that the domain will maintain connections between LDNS's and virtual servers.")
lb_domain_alias_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2))
if mibBuilder.loadTexts:
lbDomainAliasTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainAliasTable.setDescription('Information about the domain names serverd by each load-balanced domain.')
lb_domain_alias_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbDomainName'), (0, 'F5-3DNS-MIB', 'lbDomainAliasIndex'))
if mibBuilder.loadTexts:
lbDomainAliasEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainAliasEntry.setDescription('This table contains a row for each domain name associated with a load-balanced domain. The table is indexed by the canonical domain name as well as a numeric index into the list of associated domain names.')
lb_domain_alias_index = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainAliasIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainAliasIndex.setDescription('The index into the list of domain names.')
lb_domain_alias_name = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainAliasName.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainAliasName.setDescription('The domain name in this row of the table.')
lb_domain_alias_requests = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 2, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainAliasRequests.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainAliasRequests.setDescription('The number of requests for the domain name in this row of the table.')
lb_domain_port_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 3))
if mibBuilder.loadTexts:
lbDomainPortTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPortTable.setDescription('Information about the ports associated with a load-balanced domain.')
lb_domain_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 3, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbDomainName'), (0, 'F5-3DNS-MIB', 'lbDomainPortPort'))
if mibBuilder.loadTexts:
lbDomainPortEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPortEntry.setDescription('This table contains a row for each port associated with each load-balanced domain. It is indexed by the canonical domain name and by the port number.')
lb_domain_port_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPortPort.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPortPort.setDescription('A port number associated with the load-balanced domain.')
lb_domain_pool_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4))
if mibBuilder.loadTexts:
lbDomainPoolTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolTable.setDescription('Information about the resource pools associated with each load-balanced domain.')
lb_domain_pool_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbDomainName'), (0, 'F5-3DNS-MIB', 'lbDomainPoolIndex'))
if mibBuilder.loadTexts:
lbDomainPoolEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolEntry.setDescription('This table contains a row for each resource pool associated with each load-balanced domain. It is indexed by the canonical domain name as well as by a numeric index specifying the resource pool.')
lb_domain_pool_index = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolIndex.setDescription('A numeric index into the list of resource pools for this domain.')
lb_domain_pool_name = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolName.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolName.setDescription('The name of the resource pool in this row of the table.')
lb_domain_pool_type = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('lbRouter', 2), ('host', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolType.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolType.setDescription('The type of the resource pool.')
lb_domain_pool_state = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('preferred', 2), ('alternate', 3), ('fallback', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolState.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolState.setDescription('The current state of the pool.')
lb_domain_pool_vs_count = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolVSCount.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolVSCount.setDescription('The number of virtual servers in the pool.')
lb_domain_pool_lb_mode = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=named_values(('returnDNS', 1), ('none', 2), ('returnVS', 3), ('roundRobin', 4), ('ratio', 5), ('random', 6), ('topology', 7), ('staticPersist', 8), ('globalAvailability', 9), ('servers', 10), ('connections', 11), ('roundTripTime', 12), ('hops', 13), ('packetRate', 14), ('mem', 15), ('cpu', 16), ('diskSpace', 17), ('hitRatio', 18), ('qos', 19)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolLBMode.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolLBMode.setDescription('The preferred load-balancing mode for the pool.')
lb_domain_pool_alternate_lb_mode = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=named_values(('returnDNS', 1), ('none', 2), ('returnVS', 3), ('roundRobin', 4), ('ratio', 5), ('random', 6), ('topology', 7), ('staticPersist', 8), ('globalAvailability', 9), ('servers', 10), ('connections', 11), ('roundTripTime', 12), ('hops', 13), ('packetRate', 14), ('mem', 15), ('cpu', 16), ('diskSpace', 17), ('hitRatio', 18), ('qos', 19)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolAlternateLBMode.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolAlternateLBMode.setDescription('The alternate load-balancing mode for the pool.')
lb_domain_pool_fallback_lb_mode = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19))).clone(namedValues=named_values(('returnDNS', 1), ('none', 2), ('returnVS', 3), ('roundRobin', 4), ('ratio', 5), ('random', 6), ('topology', 7), ('staticPersist', 8), ('globalAvailability', 9), ('servers', 10), ('connections', 11), ('roundTripTime', 12), ('hops', 13), ('packetRate', 14), ('mem', 15), ('cpu', 16), ('diskSpace', 17), ('hitRatio', 18), ('qos', 19)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolFallbackLBMode.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolFallbackLBMode.setDescription('The fallback load-balancing mode for the pool.')
lb_domain_pool_check_static_depends = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolCheckStaticDepends.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolCheckStaticDepends.setDescription('Indicates whether the availability of virtual servers in the pool is checked.')
lb_domain_pool_check_dynamic_depends = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolCheckDynamicDepends.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolCheckDynamicDepends.setDescription('Indicates whether the availability of paths associated with the pool is checked.')
lb_domain_pool_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolRatio.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolRatio.setDescription('The default weighting to use with respect to other pools.')
lb_domain_pool_ripeness = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolRipeness.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolRipeness.setDescription('The counter used to determine whether the pool can be chosen during load balancing when the pool_lbmode is ratio. It is initialized to the pool ratio value, and decremented each time the pool is chosen. When non-zero the pool can be chosen. When zero, the pool will be skipped. When all pools reach zero ripeness, all pool ripeness values are re-initialized to their ratio values.')
lb_domain_pool_preferred_resolves = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolPreferredResolves.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolPreferredResolves.setDescription('The number of times the pool has been resolved using the preferred mode.')
lb_domain_pool_alternate_resolves = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolAlternateResolves.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolAlternateResolves.setDescription('The number of times the pool has been resolved using the alternate mode.')
lb_domain_pool_fallback_resolves = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolFallbackResolves.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolFallbackResolves.setDescription('The number of times the pool has been resolved using the fallback mode.')
lb_domain_pool_returns_to_dns = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolReturnsToDns.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolReturnsToDns.setDescription('The number of times the pool has been resolved using standard DNS.')
lb_domain_pool_rr_ldns = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolRRLdns.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolRRLdns.setDescription('Enables passing of blocks of ip addresses back to local dns servers.')
lb_domain_pool_rr_ldns_limit = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 4, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolRRLdnsLimit.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolRRLdnsLimit.setDescription('The limit of the number of addresses to be passed back in an rr_ldns block. There will be no limit if this attribute is 0.')
lb_domain_pool_vs_table = mib_table((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5))
if mibBuilder.loadTexts:
lbDomainPoolVSTable.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolVSTable.setDescription('Information about the virtual servers in each resource pool.')
lb_domain_pool_vs_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1)).setIndexNames((0, 'F5-3DNS-MIB', 'lbDomainName'), (0, 'F5-3DNS-MIB', 'lbDomainPoolIndex'), (0, 'F5-3DNS-MIB', 'lbDomainPoolVSAddr'), (0, 'F5-3DNS-MIB', 'lbDomainPoolVSPort'))
if mibBuilder.loadTexts:
lbDomainPoolVSEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolVSEntry.setDescription('This table contains a row for each virtual server in each resource pool associated with each load-balanced domain.')
lb_domain_pool_vs_addr = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolVSAddr.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolVSAddr.setDescription('The IP address of the virtual server.')
lb_domain_pool_vs_port = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolVSPort.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolVSPort.setDescription('The port number of the virtual server.')
lb_domain_pool_vs_ratio = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolVSRatio.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolVSRatio.setDescription('The weighting to use with respect to other virtual servers in the pool.')
lb_domain_pool_vs_ripeness = mib_table_column((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 6, 5, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
lbDomainPoolVSRipeness.setStatus('mandatory')
if mibBuilder.loadTexts:
lbDomainPoolVSRipeness.setDescription('The counter used to determine whether the VS can be chosen during load balancing when the lbmode is ratio. It is initialized to the VS ratio value as specified in the pool, and decremented each time the VS is chosen. When non-zero the VS can be chosen. When zero, the VS will be skipped. When all VS reach zero ripeness, all VS ripeness values are re-initialized to their ratio values.')
summary_version = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summaryVersion.setStatus('mandatory')
if mibBuilder.loadTexts:
summaryVersion.setDescription('The version number of the system.')
summary_up_time = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summaryUpTime.setStatus('mandatory')
if mibBuilder.loadTexts:
summaryUpTime.setDescription('The elapsed time since the system was last initialized.')
summary_date = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 3), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summaryDate.setStatus('mandatory')
if mibBuilder.loadTexts:
summaryDate.setDescription("The system's notion of the local date and time of day.")
summary_last_reload = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summaryLastReload.setStatus('mandatory')
if mibBuilder.loadTexts:
summaryLastReload.setDescription('The value of summaryUpTime when the system was most recently commanded to reload its DNS database.')
summary_last_dump = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 5), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summaryLastDump.setStatus('mandatory')
if mibBuilder.loadTexts:
summaryLastDump.setDescription('The value of summaryUpTime when the system was most recently commanded to dump its database, cache, and status information.')
summary_requests = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summaryRequests.setStatus('mandatory')
if mibBuilder.loadTexts:
summaryRequests.setDescription('The total number of requests received.')
summary_sync_mode = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('none', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summarySyncMode.setStatus('mandatory')
if mibBuilder.loadTexts:
summarySyncMode.setDescription('Whether the system is a primary 3DNS, secondary 3DNS, or neither.')
summary_sync_file = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 8), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summarySyncFile.setStatus('mandatory')
if mibBuilder.loadTexts:
summarySyncFile.setDescription('The pathname of the file to which sync dumps are written. Valid only if summarySyncMode is primary.')
summary_sync_ins = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summarySyncIns.setStatus('mandatory')
if mibBuilder.loadTexts:
summarySyncIns.setDescription('The total number of incoming syncs performed.')
summary_sync_in_errors = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summarySyncInErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
summarySyncInErrors.setDescription('The total number of errors encountered when performing incoming syncs.')
summary_last_sync_in = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 11), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summaryLastSyncIn.setStatus('mandatory')
if mibBuilder.loadTexts:
summaryLastSyncIn.setDescription('The value of summaryUpTime when the most recent incoming sync was performed.')
summary_sync_outs = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summarySyncOuts.setStatus('mandatory')
if mibBuilder.loadTexts:
summarySyncOuts.setDescription('The total number of outgoing syncs performed.')
summary_sync_out_errors = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summarySyncOutErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
summarySyncOutErrors.setDescription('The total number of errors encountered when performing outgoing syncs.')
summary_last_sync_out = mib_scalar((1, 3, 6, 1, 4, 1, 3375, 1, 2, 1, 1, 7, 14), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
summaryLastSyncOut.setStatus('mandatory')
if mibBuilder.loadTexts:
summaryLastSyncOut.setDescription('The value of summaryUpTime when the most recent outgoing sync was performed.')
threedns_trap_vs_green_to_red = notification_type((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0, 1))
if mibBuilder.loadTexts:
threednsTrapVSGreenToRed.setDescription('Virtual server change from green to red status.')
threedns_trap_vs_red_to_green = notification_type((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0, 2))
if mibBuilder.loadTexts:
threednsTrapVSRedToGreen.setDescription('Virtual server change from red to green status.')
threedns_trap_server_red_to_green = notification_type((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0, 3))
if mibBuilder.loadTexts:
threednsTrapServerRedToGreen.setDescription('Server change from red to green status.')
threedns_trap_server_green_to_red = notification_type((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0, 4))
if mibBuilder.loadTexts:
threednsTrapServerGreenToRed.setDescription('Server change from green to red status.')
threedns_trap_crc_failure = notification_type((1, 3, 6, 1, 4, 1, 3375, 1, 2, 2, 2) + (0, 5))
if mibBuilder.loadTexts:
threednsTrapCRCFailure.setDescription('CRC failure.')
mibBuilder.exportSymbols('F5-3DNS-MIB', summaryRequests=summaryRequests, hostIfPathSends=hostIfPathSends, hostTable=hostTable, lbRouterVServProbeProtocol=lbRouterVServProbeProtocol, lbDnsServStatus=lbDnsServStatus, lbDnsServIQProto=lbDnsServIQProto, hostSNMPConfigured=hostSNMPConfigured, f5systems=f5systems, hostIfAliveTime=hostIfAliveTime, summarySyncIns=summarySyncIns, lbDomainAddr=lbDomainAddr, hostIfFctryType=hostIfFctryType, lbDomainPortPort=lbDomainPortPort, globalCoeffDRTT=globalCoeffDRTT, f53dnsMIBObjects=f53dnsMIBObjects, globalQosFactorHops=globalQosFactorHops, hostProber=hostProber, globalQosCoeffTopology=globalQosCoeffTopology, lbDnsServProber=lbDnsServProber, globalPathLoWater=globalPathLoWater, threednsTrap=threednsTrap, hostSNMPCommunity=hostSNMPCommunity, lbDnsServRefreshes=lbDnsServRefreshes, lbRouterIfTXPackets=lbRouterIfTXPackets, globalPathDuration=globalPathDuration, globalRTTPacketLength=globalRTTPacketLength, globalRTTSampleCount=globalRTTSampleCount, globalPathHiWater=globalPathHiWater, hostIfUpTime=hostIfUpTime, lbRouterVServPicks=lbRouterVServPicks, globalTimerKeepAlive=globalTimerKeepAlive, globalFbRespectDepends=globalFbRespectDepends, lbDomainPoolVSRatio=lbDomainPoolVSRatio, dataCenterTable=dataCenterTable, lbDomainPoolReturnsToDns=lbDomainPoolReturnsToDns, dataCenterEntry=dataCenterEntry, hostIfAvgPathsSentX1000=hostIfAvgPathsSentX1000, lbDomainQosCoeffRTT=lbDomainQosCoeffRTT, lbDnsServIfFctryType=lbDnsServIfFctryType, summaryDate=summaryDate, lbRouterVServDataTime=lbRouterVServDataTime, hostVServTable=hostVServTable, lbDnsServIfShared=lbDnsServIfShared, lbDnsServIfFctryTable=lbDnsServIfFctryTable, hostIfEntry=hostIfEntry, lbDomainPoolCheckStaticDepends=lbDomainPoolCheckStaticDepends, globalCoeffAccessRefresh=globalCoeffAccessRefresh, lbDomainQosCoeffPacketRate=lbDomainQosCoeffPacketRate, globalPathReapAlg=globalPathReapAlg, lbDomainPoolType=lbDomainPoolType, globalTxBufSize=globalTxBufSize, lbRouterIfFctryEntry=lbRouterIfFctryEntry, hostIfTable=hostIfTable, lbDomainPoolLBMode=lbDomainPoolLBMode, lbDnsServIfAliveTime=lbDnsServIfAliveTime, lbDomainPoolRatio=lbDomainPoolRatio, lbDomainTable=lbDomainTable, globalCoeffDCompletionRate=globalCoeffDCompletionRate, threednsTrapServerGreenToRed=threednsTrapServerGreenToRed, hostVServPicks=hostVServPicks, lbRouterIfAliveTime=lbRouterIfAliveTime, summarySyncMode=summarySyncMode, lbDomainPoolVSPort=lbDomainPoolVSPort, f5=f5, lbRouterIQProto=lbRouterIQProto, globalEncryptionKeyFile=globalEncryptionKeyFile, globalLBRouterTTL=globalLBRouterTTL, lbDomainQosCoeffHops=lbDomainQosCoeffHops, summarySyncFile=summarySyncFile, hostPicks=hostPicks, lbRouterVServAddr=lbRouterVServAddr, lbDomainPreferredResolves=lbDomainPreferredResolves, globalQosFactorRTT=globalQosFactorRTT, globalRTTProbeProtocol=globalRTTProbeProtocol, lbRouterIfAddr=lbRouterIfAddr, lbRouterIfFctryTable=lbRouterIfFctryTable, lbDnsServIfAddr=lbDnsServIfAddr, summarySyncInErrors=summarySyncInErrors, hostVServProbeProtocol=hostVServProbeProtocol, hostIfStatus=hostIfStatus, globalQosFactorPacketRate=globalQosFactorPacketRate, globalCheckStaticDepends=globalCheckStaticDepends, threednsTrapCRCFailure=threednsTrapCRCFailure, lbDomainTTL=lbDomainTTL, hostDisableDuration=hostDisableDuration, globalVSTTL=globalVSTTL, lbDomainPoolFallbackLBMode=lbDomainPoolFallbackLBMode, lbRouterIfStatus=lbRouterIfStatus, lbRouters=lbRouters, globalUseAltIqPort=globalUseAltIqPort, lbDnsServIfFctryEntry=lbDnsServIfFctryEntry, hostSNMPAgentType=hostSNMPAgentType, lbRouterAddr=lbRouterAddr, hostSNMPPort=hostSNMPPort, lbRouterVServDisableDuration=lbRouterVServDisableDuration, dataCenterLocation=dataCenterLocation, hostIfPathSentTime=hostIfPathSentTime, lbDnsServName=lbDnsServName, globalCheckDynamicDepends=globalCheckDynamicDepends, lbRouterIfEntry=lbRouterIfEntry, threednsTrapServerRedToGreen=threednsTrapServerRedToGreen, hostSNMPTimeout=hostSNMPTimeout, lbDomainQosCoeffTopology=lbDomainQosCoeffTopology, lbDomainAliasEntry=lbDomainAliasEntry, threednsTrapVSGreenToRed=threednsTrapVSGreenToRed, hostIfFctryEntry=hostIfFctryEntry, summarySyncOutErrors=summarySyncOutErrors, lbDnsServIfUpTime=lbDnsServIfUpTime, hostVServAliveTime=hostVServAliveTime, lbDomainLastResolve=lbDomainLastResolve, hostMetrics=hostMetrics, globalResolverTXBufSize=globalResolverTXBufSize, globalTimerGetLBRouterData=globalTimerGetLBRouterData, lbRouterVServCurConnLimit=lbRouterVServCurConnLimit, lbDomainLBModePool=lbDomainLBModePool, lbRouterVServEntry=lbRouterVServEntry, globalQosCoeffCompletionRate=globalQosCoeffCompletionRate, lbRouterIfDataTime=lbRouterIfDataTime, lbRouterIfAvgPathsRcvdX1000=lbRouterIfAvgPathsRcvdX1000, globalCoeffLastAccess=globalCoeffLastAccess, globalQosFactorCompletionRate=globalQosFactorCompletionRate, lbRouterVServXlatedPort=lbRouterVServXlatedPort, hostSNMPRetries=hostSNMPRetries, lbDnsServAddr=lbDnsServAddr, summaryVersion=summaryVersion, lbDomainPoolEntry=lbDomainPoolEntry, lbDnsServIfPathsRcvd=lbDnsServIfPathsRcvd, hostVServPort=hostVServPort, lbRouterIfTable=lbRouterIfTable, globalQosFactorTopology=globalQosFactorTopology, lbRouterVServPort=lbRouterVServPort, globalRTTProbeDynamic=globalRTTProbeDynamic, lbRouterVServCurConns=lbRouterVServCurConns, dataCenterServAddr=dataCenterServAddr, lbDnsServProbePort=lbDnsServProbePort, lbRouterIfPathRcvs=lbRouterIfPathRcvs, lbDomainPoolVSRipeness=lbDomainPoolVSRipeness, summaryLastSyncIn=summaryLastSyncIn, lbRouterEntry=lbRouterEntry, hostIfAvgPathsRcvdX1000=hostIfAvgPathsRcvdX1000, hostProbeProtocol=hostProbeProtocol, globalRTTProbeProtocolList=globalRTTProbeProtocolList, hostMemory=hostMemory, threednsTraps=threednsTraps, lbRouterIfFctryCount=lbRouterIfFctryCount, lbDnsServIfPathsSent=lbDnsServIfPathsSent, lbDomainPoolVSCount=lbDomainPoolVSCount, globalResetCounterTime=globalResetCounterTime, lbRouterVServAliveTime=lbRouterVServAliveTime, globalRTTDiscoveryMethod=globalRTTDiscoveryMethod, lbDomainPortEntry=lbDomainPortEntry, hostVServXlatedAddr=hostVServXlatedAddr, hostIfShared=hostIfShared, lbRouterIfAvgPathsSentX1000=lbRouterIfAvgPathsSentX1000, hostVServDisabled=hostVServDisabled, lbDnsServIfTable=lbDnsServIfTable, lbDnsServIfAvgPathsSentX1000=lbDnsServIfAvgPathsSentX1000, lbDomainPoolIndex=lbDomainPoolIndex, lbDomainPoolTable=lbDomainPoolTable, hosts=hosts, globalQosCoeffRTT=globalQosCoeffRTT, lbRouterVServDnsServDisabled=lbRouterVServDnsServDisabled, globalTimerGetVServData=globalTimerGetVServData, lbRouterVServCount=lbRouterVServCount, summaryLastDump=summaryLastDump, lbDomainName=lbDomainName, lbDnsServEntry=lbDnsServEntry, lbDnsServIfEntry=lbDnsServIfEntry, hostIfDataTime=hostIfDataTime, lbRouterVServCurNodesUp=lbRouterVServCurNodesUp, lbDomainFallbackResolves=lbDomainFallbackResolves, lbDnsServIfPathSends=lbDnsServIfPathSends, summaryLastSyncOut=summaryLastSyncOut, lbRouterDisableDuration=lbRouterDisableDuration, hostName=hostName, globalProberAddr=globalProberAddr, lbDomainPoolRipeness=lbDomainPoolRipeness, lbDnsServIfRXPackets=lbDnsServIfRXPackets, f53dns=f53dns, hostDisabled=hostDisabled, hostIfPathRcvs=hostIfPathRcvs, hostProbePort=hostProbePort, globalRTTPortDiscovery=globalRTTPortDiscovery, hostRefreshes=hostRefreshes, lbDnsServIfStatus=lbDnsServIfStatus, lbRouterIfShared=lbRouterIfShared, dataCenterDisabled=dataCenterDisabled, globalHostTTL=globalHostTTL, lbDnsServIfPathSentTime=lbDnsServIfPathSentTime, lbDomainPoolVSTable=lbDomainPoolVSTable, lbRouterIfFctryType=lbRouterIfFctryType, globalDefaultTTL=globalDefaultTTL, lbDomainAliasIndex=lbDomainAliasIndex, dataCenterContact=dataCenterContact, lbRouterVServTable=lbRouterVServTable, lbDnsServs=lbDnsServs, lbRouterRefreshes=lbRouterRefreshes, lbDnsServIfDataTime=lbDnsServIfDataTime, globalDefaultAlternate=globalDefaultAlternate, lbDomainEntry=lbDomainEntry, dataCenterDisableDuration=dataCenterDisableDuration, lbDnsServDisableDuration=lbDnsServDisableDuration, hostSNMPAddress=hostSNMPAddress, lbRouterIfUpTime=lbRouterIfUpTime, lbRouterIfPacketRate=lbRouterIfPacketRate, lbRouterTable=lbRouterTable, globalCoeffFreshRemain=globalCoeffFreshRemain, globalDefaultFallback=globalDefaultFallback, lbDomainPoolName=lbDomainPoolName, hostIfFctryCount=hostIfFctryCount, globalTimerGetHostData=globalTimerGetHostData, lbDomainDisabled=lbDomainDisabled, dataCenterServTable=dataCenterServTable, globalMultiplexIq=globalMultiplexIq, hostIfTXPackets=hostIfTXPackets, dataCenters=dataCenters, summaryLastReload=summaryLastReload, f53dnsMIB=f53dnsMIB, hostVServCount=hostVServCount, lbDomainQosCoeffCompletionRate=lbDomainQosCoeffCompletionRate, globalPathTTL=globalPathTTL, lbDnsServIfFctryCount=lbDnsServIfFctryCount, lbDomainAliasRequests=lbDomainAliasRequests, lbRouterVServCurEnabled=lbRouterVServCurEnabled, lbDomainAlternateResolves=lbDomainAlternateResolves, lbDomainPoolPreferredResolves=lbDomainPoolPreferredResolves, lbDomainReturnsToDns=lbDomainReturnsToDns, lbDomainPoolAlternateResolves=lbDomainPoolAlternateResolves, lbDomainPoolRRLdnsLimit=lbDomainPoolRRLdnsLimit, globalRTTTimeout=globalRTTTimeout, globalEncryption=globalEncryption, dataCenterName=dataCenterName, lbDomainPortTable=lbDomainPortTable, globalRegulatePaths=globalRegulatePaths, lbDomainPoolCheckDynamicDepends=lbDomainPoolCheckDynamicDepends, lbDomainAliasTable=lbDomainAliasTable, lbDnsServIfPathRcvs=lbDnsServIfPathRcvs, lbDomains=lbDomains, globalFbRespectAcl=globalFbRespectAcl, lbRouterIfPathSends=lbRouterIfPathSends, hostVServDataTime=hostVServDataTime, globalLDnsHiWater=globalLDnsHiWater, hostIfFctryTable=hostIfFctryTable, lbRouterIfRXPackets=lbRouterIfRXPackets, hostIfPathsSent=hostIfPathsSent, dataCenterServType=dataCenterServType, summary=summary, hostVServRefreshes=hostVServRefreshes, lbDnsServIfTXPackets=lbDnsServIfTXPackets, globalPathsNoClobber=globalPathsNoClobber, globalQosCoeffPacketRate=globalQosCoeffPacketRate, hostIfRXPackets=hostIfRXPackets, lbRouterIfPathsRcvd=lbRouterIfPathsRcvd, globalRegulateInit=globalRegulateInit)
mibBuilder.exportSymbols('F5-3DNS-MIB', globalLDnsLoWater=globalLDnsLoWater, lbRouterPicks=lbRouterPicks, hostStatus=hostStatus, globalResetCounters=globalResetCounters, lbRouterDisabled=lbRouterDisabled, summarySyncOuts=summarySyncOuts, lbDomainPort=lbDomainPort, lbDomainPoolAlternateLBMode=lbDomainPoolAlternateLBMode, lbDomainPoolVSEntry=lbDomainPoolVSEntry, lbDomainPoolRRLdns=lbDomainPoolRRLdns, globalRxBufSize=globalRxBufSize, lbDomainPoolVSAddr=lbDomainPoolVSAddr, globalQosCoeffHops=globalQosCoeffHops, globalCoeffAccessTotal=globalCoeffAccessTotal, lbDnsServDisabled=lbDnsServDisabled, lbRouterIfPathsSent=lbRouterIfPathsSent, dataCenterPathCount=dataCenterPathCount, hostCPU=hostCPU, lbDomainPersist=lbDomainPersist, globalTimerGetPathData=globalTimerGetPathData, hostVServEntry=hostVServEntry, lbRouterIfPathSentTime=lbRouterIfPathSentTime, globals=globals, lbRouterVServXlatedAddr=lbRouterVServXlatedAddr, hostVServAddr=hostVServAddr, hostDiskSpace=hostDiskSpace, hostIfPathsRcvd=hostIfPathsRcvd, lbDomainPersistTTL=lbDomainPersistTTL, lbDnsServIfAvgPathsRcvdX1000=lbDnsServIfAvgPathsRcvdX1000, lbDomainPoolFallbackResolves=lbDomainPoolFallbackResolves, globalResolverRXBufSize=globalResolverRXBufSize, lbDnsServProbeProtocol=lbDnsServProbeProtocol, globalRTTRetireZero=globalRTTRetireZero, lbRouterName=lbRouterName, lbDnsServTable=lbDnsServTable, lbRouterVServRefreshes=lbRouterVServRefreshes, summaryUpTime=summaryUpTime, globalPathsNeverDie=globalPathsNeverDie, lbDomainDisableDuration=lbDomainDisableDuration, lbDomainPoolState=lbDomainPoolState, hostVServDisableDuration=hostVServDisableDuration, hostVServXlatedPort=hostVServXlatedPort, lbDnsServPicks=lbDnsServPicks, threednsTrapVSRedToGreen=threednsTrapVSRedToGreen, globalLDnsReapAlg=globalLDnsReapAlg, hostEntry=hostEntry, lbDomainAliasName=lbDomainAliasName, dataCenterServEntry=dataCenterServEntry, hostIfAddr=hostIfAddr, globalRTTProbeProtocolState=globalRTTProbeProtocolState, globalLDnsDuration=globalLDnsDuration, globalPersistLDns=globalPersistLDns, hostSNMPVersion=hostSNMPVersion, hostAddr=hostAddr, lbDomainRequests=lbDomainRequests)
|
#Return the sum of all the multiples of 3 or 5 below the number passed in.
def solution(number):
lit = []
for i in range(0, number):
if i % 3 == 0 or i % 5 == 0:
lit.append(i)
return sum(lit)
#Alternate Solution
def solution(number):
return sum(x for x in range(number) if x % 3 == 0 or x % 5 == 0)
|
def solution(number):
lit = []
for i in range(0, number):
if i % 3 == 0 or i % 5 == 0:
lit.append(i)
return sum(lit)
def solution(number):
return sum((x for x in range(number) if x % 3 == 0 or x % 5 == 0))
|
class Queue:
def __init__(self, initial_values):
self.queue = initial_values
def enqueue(self, val):
self.queue.insert(0, val)
def dequeue(self):
if self.is_empty():
return None
else:
return self.queue.pop()
def size(self):
return len(self.queue)
def is_empty(self):
return self.size() == 0
|
class Queue:
def __init__(self, initial_values):
self.queue = initial_values
def enqueue(self, val):
self.queue.insert(0, val)
def dequeue(self):
if self.is_empty():
return None
else:
return self.queue.pop()
def size(self):
return len(self.queue)
def is_empty(self):
return self.size() == 0
|
# <auto-generated>
# This code was generated by the UnitCodeGenerator tool
#
# Changes to this file will be lost if the code is regenerated
# </auto-generated>
def to_millilitres(value):
return value * 14.786764781249998848
def to_litres(value):
return value * 0.014786764781249998848
def to_kilolitres(value):
return value * 0.000014786764781249998
def to_teaspoons(value):
return value * 2.4980215213991718912
def to_tablespoons(value):
return value * 0.83267384046639071232
def to_quarts(value):
return value * 0.013010528757287354368
def to_pints(value):
return value * 0.026021057514574708736
def to_gallons(value):
return value * 0.003252632189321838592
def to_fluid_ounces(value):
return value * 0.52042115029149417472
def to_u_s_teaspoons(value):
return value * 3.0
def to_u_s_quarts(value):
return value / 64.0
def to_u_s_pints(value):
return value / 32.0
def to_u_s_gallons(value):
return value / 256.0
def to_u_s_fluid_ounces(value):
return value / 2.0
def to_u_s_cups(value):
return value / 16.0
|
def to_millilitres(value):
return value * 14.78676478125
def to_litres(value):
return value * 0.01478676478125
def to_kilolitres(value):
return value * 1.4786764781249997e-05
def to_teaspoons(value):
return value * 2.498021521399172
def to_tablespoons(value):
return value * 0.8326738404663907
def to_quarts(value):
return value * 0.013010528757287355
def to_pints(value):
return value * 0.02602105751457471
def to_gallons(value):
return value * 0.0032526321893218387
def to_fluid_ounces(value):
return value * 0.5204211502914942
def to_u_s_teaspoons(value):
return value * 3.0
def to_u_s_quarts(value):
return value / 64.0
def to_u_s_pints(value):
return value / 32.0
def to_u_s_gallons(value):
return value / 256.0
def to_u_s_fluid_ounces(value):
return value / 2.0
def to_u_s_cups(value):
return value / 16.0
|
# Configure schema: 'Column_name': ['List', 'of', 'synonyms']
columns_with_synonyms = {
'Name': ['Mitglied des Landtages'],
'Fraktion': ['Partei',
'Fraktion (ggf. Partei)',
],
'Wahlkreis': ['Landtagswahlkreis der Direktkandidaten',
'Landtagswahlkreis',
'Wahlkreis/Liste',
],
'Kommentar': ['Anmerkung',
'Anmerkungen',
'Bemerkungen',
],
'Bild': ['Foto'],
'Wikipedia-URL': []
}
# Automatically generate schema and synonym map for scraper (dev only)
schema = list(columns_with_synonyms.keys())
schema_map = {}
for column in columns_with_synonyms.keys():
for synonym in columns_with_synonyms[column]:
schema_map[synonym] = column
|
columns_with_synonyms = {'Name': ['Mitglied des Landtages'], 'Fraktion': ['Partei', 'Fraktion (ggf. Partei)'], 'Wahlkreis': ['Landtagswahlkreis der Direktkandidaten', 'Landtagswahlkreis', 'Wahlkreis/Liste'], 'Kommentar': ['Anmerkung', 'Anmerkungen', 'Bemerkungen'], 'Bild': ['Foto'], 'Wikipedia-URL': []}
schema = list(columns_with_synonyms.keys())
schema_map = {}
for column in columns_with_synonyms.keys():
for synonym in columns_with_synonyms[column]:
schema_map[synonym] = column
|
#!/usr/bin/env python
# AUTHOR OF MODULE NAME
AUTHOR="Mauricio Velazco (@mvelazco)"
# DESCRIPTION OF THE MODULE
DESCRIPTION="This module simulates an adversary leveraging a compromised host to perform password spray attacks."
LONGDESCRIPTION="This scenario can occur if an adversary has obtained control of a domain joined computer through a --spear phishing attack or any other kind of client side attack.--Spray_empire leverages the Powershell Empire framework and its API to instruct Empire agents--to perform password spray attacks by using Invoke-SMBLogin (https://github.com/mvelazc0/Invoke-SMBLogin).--The module will connect to the Empire server and leverage existing agents. If no agents are found,--it will use impackets wmiexec to execute an Empire stager on a remote host defined on the settings."
# TODO
OPTIONS="""{"Dc": {"Description": "Domain Controller Ip address", "Required": "True", "Value": ""}, "Domain": {"Description": "Root domain name ( org.com )", "Required": "True", "Value": ""}, "Username": {"Description": "Domain user for ldap queries", "Required": "True", "Value": ""}, "Password": {"Description": "Domain user password for ldap queries", "Required": "True", "Value": ""}, "DomainUsers": {"Description": "Use domain users to spray. If False, random usernames will be used", "Required": "True", "Value": "True"}, "Nusers": {"Description": "Number of domain users to spray", "Required": "True", "Value": "10"}, "Type": {"Description": "Type of simulation", "Required": "True", "Value": "0"}, "UseKerberos": {"Description": "Kerberos or NTLM", "Required": "True", "Value": "True"}, "SprayPassword": {"Description": "Password used to spray", "Required": "True", "Value": "Winter2019"}}"""
ADVANCED_OPTIONS="""{ "EmpireHost": {"Description": "Ip address of the Empire Server ", "Required": "True", "Value": ""}, "EmpirePort": {"Description": "Rest API port number", "Required": "True", "Value": "1337"}, "EmpirePassword": {"Description": "Empire Rest API Password", "Required": "True", "Value": ""} ,"SimulationHost": {"Description": "Ip address of the simulation host", "Required": "False", "Value": ""}, "SimulationUser": {"Description": "Used against the simulation host. Requires admin privs", "Required": "False", "Value": ""} , "SimulationPass": {"Description": "Used against the simulation hos", "Required": "False", "Value": ""}, "Sleep": {"Description": "Time to sleep between each authentication attempt", "Required": "True", "Value": "0"} }"""
TYPES="""{"0": {"Description": "Perform the spray against a randomly picked domain controller"},"1": {"Description": "Perform the spray against a randomly picked domain computer "} , "2": {"Description": "Perform the spray against randomly picked domain computers. One auth per computer"}}"""
|
author = 'Mauricio Velazco (@mvelazco)'
description = 'This module simulates an adversary leveraging a compromised host to perform password spray attacks.'
longdescription = 'This scenario can occur if an adversary has obtained control of a domain joined computer through a --spear phishing attack or any other kind of client side attack.--Spray_empire leverages the Powershell Empire framework and its API to instruct Empire agents--to perform password spray attacks by using Invoke-SMBLogin (https://github.com/mvelazc0/Invoke-SMBLogin).--The module will connect to the Empire server and leverage existing agents. If no agents are found,--it will use impackets wmiexec to execute an Empire stager on a remote host defined on the settings.'
options = '{"Dc": {"Description": "Domain Controller Ip address", "Required": "True", "Value": ""}, "Domain": {"Description": "Root domain name ( org.com )", "Required": "True", "Value": ""}, "Username": {"Description": "Domain user for ldap queries", "Required": "True", "Value": ""}, "Password": {"Description": "Domain user password for ldap queries", "Required": "True", "Value": ""}, "DomainUsers": {"Description": "Use domain users to spray. If False, random usernames will be used", "Required": "True", "Value": "True"}, "Nusers": {"Description": "Number of domain users to spray", "Required": "True", "Value": "10"}, "Type": {"Description": "Type of simulation", "Required": "True", "Value": "0"}, "UseKerberos": {"Description": "Kerberos or NTLM", "Required": "True", "Value": "True"}, "SprayPassword": {"Description": "Password used to spray", "Required": "True", "Value": "Winter2019"}}'
advanced_options = '{ "EmpireHost": {"Description": "Ip address of the Empire Server ", "Required": "True", "Value": ""}, "EmpirePort": {"Description": "Rest API port number", "Required": "True", "Value": "1337"}, "EmpirePassword": {"Description": "Empire Rest API Password", "Required": "True", "Value": ""} ,"SimulationHost": {"Description": "Ip address of the simulation host", "Required": "False", "Value": ""}, "SimulationUser": {"Description": "Used against the simulation host. Requires admin privs", "Required": "False", "Value": ""} , "SimulationPass": {"Description": "Used against the simulation hos", "Required": "False", "Value": ""}, "Sleep": {"Description": "Time to sleep between each authentication attempt", "Required": "True", "Value": "0"} }'
types = '{"0": {"Description": "Perform the spray against a randomly picked domain controller"},"1": {"Description": "Perform the spray against a randomly picked domain computer "} , "2": {"Description": "Perform the spray against randomly picked domain computers. One auth per computer"}}'
|
"""
for a string with '(' find the count of complete '()' ones, '(()))" does not count, if does not have full brackets, return -1
time & space: O(n), n = length of S
"""
def count_brackets(S):
# initializations
cs,stack,cnt = S[:],[],0
# iterate through char array of S
for c in cs:
# if it is '(', push this to stack
if c == '(':
stack.append(c)
# if it is ')', pop element from the stack
elif c == ')':
# check if stack is empty
if len(stack) == 0:
#invalid
return -1
el = stack.pop()
# check if element is '('
if el == '(':
# increments the count
cnt += 1
return cnt
test = "(())()"
print(count_brackets(test))
|
"""
for a string with '(' find the count of complete '()' ones, '(()))" does not count, if does not have full brackets, return -1
time & space: O(n), n = length of S
"""
def count_brackets(S):
(cs, stack, cnt) = (S[:], [], 0)
for c in cs:
if c == '(':
stack.append(c)
elif c == ')':
if len(stack) == 0:
return -1
el = stack.pop()
if el == '(':
cnt += 1
return cnt
test = '(())()'
print(count_brackets(test))
|
# 18. Write a language program to get the volume of a sphere with radius 6
radius=6
volume=(4/3)*3.14*(radius**3)
print("Volume of sphere with radius 6= ",volume)
|
radius = 6
volume = 4 / 3 * 3.14 * radius ** 3
print('Volume of sphere with radius 6= ', volume)
|
# I usually do not hard-code urls here,
# but there is not much need for complex configuration
BASEURL = 'https://simple-chat-asapp.herokuapp.com/'
login_button_text = 'Login'
sign_in_message = 'Sign in to Chat'
who_are_you = 'Who are you?'
who_are_you_talking_to = 'Who are you talking to?'
chatting_text = 'Chatting'
chatting_with_text = 'You\'re {0}, and you\'re chatting with {1}'
say_something_text = 'Say something...'
send_button_text = 'Send'
# If these need to remain a secret, I normally create a separate file
# for secret data and exclude it in .gitignore
username_1 = 'nicole 1'
username_2 = 'nicole 2'
username_3 = 'nicole 3'
long_username = 'hello' * 20
empty_username = ''
# Messages
hello_message = 'Hello chat!'
hello_2_message = 'Hello to you too!'
secret_message = 'We have a secret! Ssh!'
long_message = '1234567890' * 100
comma_message = 'Hello, I have a comma!'
|
baseurl = 'https://simple-chat-asapp.herokuapp.com/'
login_button_text = 'Login'
sign_in_message = 'Sign in to Chat'
who_are_you = 'Who are you?'
who_are_you_talking_to = 'Who are you talking to?'
chatting_text = 'Chatting'
chatting_with_text = "You're {0}, and you're chatting with {1}"
say_something_text = 'Say something...'
send_button_text = 'Send'
username_1 = 'nicole 1'
username_2 = 'nicole 2'
username_3 = 'nicole 3'
long_username = 'hello' * 20
empty_username = ''
hello_message = 'Hello chat!'
hello_2_message = 'Hello to you too!'
secret_message = 'We have a secret! Ssh!'
long_message = '1234567890' * 100
comma_message = 'Hello, I have a comma!'
|
# code to run in IPython shell to test whether clustering info in spikes struct array and in
# the neurons dict is consistent:
for nid in sorted(self.sort.neurons):
print(nid, (self.sort.neurons[nid].sids == np.where(self.sort.spikes['nid'] == nid)[0]).all())
|
for nid in sorted(self.sort.neurons):
print(nid, (self.sort.neurons[nid].sids == np.where(self.sort.spikes['nid'] == nid)[0]).all())
|
def sum67(nums):
count = 0
blocked = False
for n in nums:
if n == 6:
blocked = True
continue
if n == 7 and blocked:
blocked = False
continue
if not blocked:
count += n
return count
|
def sum67(nums):
count = 0
blocked = False
for n in nums:
if n == 6:
blocked = True
continue
if n == 7 and blocked:
blocked = False
continue
if not blocked:
count += n
return count
|
# author : @akash kumar
# problem link:
# https://prepinsta.com/tcs-coding-question-1/
x,y,d,t=0,0,10,1
for n in range(int(input())):
if t==1:
x+=d
t=2
d+=10
elif t==2:
y+=d
t=3
d+=10
elif t==3:
x-=d
t=4
d+=10
elif t==4:
y-=d
t=5
d+=10
else:
x+=d
t=1
d+=10
print(x,y)
#Time complexity T(n)=O(n)
|
(x, y, d, t) = (0, 0, 10, 1)
for n in range(int(input())):
if t == 1:
x += d
t = 2
d += 10
elif t == 2:
y += d
t = 3
d += 10
elif t == 3:
x -= d
t = 4
d += 10
elif t == 4:
y -= d
t = 5
d += 10
else:
x += d
t = 1
d += 10
print(x, y)
|
#!/usr/bin/env python3
#encoding=utf-8
#--------------------------------------------
# Usage: python3 3-calltracer_descr-for-method.py
# Description: make descriptor class as decorator to decorate class method
#--------------------------------------------
class Tracer: # a decorator + descriptor
def __init__(self, func): # on @ decorator
print('in property descriptor __init__')
self.calls = 0
self.func = func
def __call__(self, *args, **kwargs): # on call to original func
print('in property descriptor __call__')
self.calls += 1
print('call %s to %s' % (self.calls, self.func.__name__))
return self.func(*args, **kwargs)
def __get__(self, instance, owner): # on method attribute fetch
print('in property descriptor __get__')
def wrapper(*args, **kwargs): # retain state information in both instance
print('in enclosing method wrapper')
return self(instance, *args, **kwargs) # runs __call__
return wrapper
# apply to normal function
@Tracer
def spam(a, b, c):
print('in original function spam')
print('<', a + b + c, '>')
@Tracer
def eggs(x, y):
print('in original function eggs')
print('<', x ** y, '>')
# apply to class method
class Person:
def __init__(self, name, pay):
print('in original class Person __init__')
self.name = name
self.pay = pay
@Tracer
def giveRaise(self, percent):
print('in decorated class giveRaise method')
self.pay *= (1.0 + percent)
@Tracer
def lastName(self):
print('in decorated class lastName method')
return self.name.split()[-1]
if __name__ == '__main__':
print('\n\033[1;36mEntrance\033[0m\n')
print('\n\033[1;37mApply to simple function\033[0m\n')
spam(1, 2, 3)
spam(a=4, b=5, c=6)
print('\n\033[1;37mApply to class method\033[0m\n')
bob = Person('Bob Smith', 50000)
sue = Person('Sue Jones', 100000)
print('<', bob.name, sue.name, '>')
sue.giveRaise(.10)
print(int(sue.pay))
print('<', bob.lastName(), sue.lastName(), '>')
'''
Execution results:
Chapter39.Decorators]# python3 3-calltracer_descr-for-method-1.py
in property descriptor __init__
in property descriptor __init__
in property descriptor __init__
in property descriptor __init__
[1;36mEntrance[0m
[1;37mApply to simple function[0m
in property descriptor __call__
call 1 to spam
in original function spam
< 6 >
in property descriptor __call__
call 2 to spam
in original function spam
< 15 >
[1;37mApply to class method[0m
in original class Person __init__
in original class Person __init__
< Bob Smith Sue Jones >
in property descriptor __get__
in enclosing method wrapper
in property descriptor __call__
call 1 to giveRaise
in decorated class giveRaise method
110000
in property descriptor __get__
in enclosing method wrapper
in property descriptor __call__
call 1 to lastName
in decorated class lastName method
in property descriptor __get__
in enclosing method wrapper
in property descriptor __call__
call 2 to lastName
in decorated class lastName method
< Smith Jones >
'''
|
class Tracer:
def __init__(self, func):
print('in property descriptor __init__')
self.calls = 0
self.func = func
def __call__(self, *args, **kwargs):
print('in property descriptor __call__')
self.calls += 1
print('call %s to %s' % (self.calls, self.func.__name__))
return self.func(*args, **kwargs)
def __get__(self, instance, owner):
print('in property descriptor __get__')
def wrapper(*args, **kwargs):
print('in enclosing method wrapper')
return self(instance, *args, **kwargs)
return wrapper
@Tracer
def spam(a, b, c):
print('in original function spam')
print('<', a + b + c, '>')
@Tracer
def eggs(x, y):
print('in original function eggs')
print('<', x ** y, '>')
class Person:
def __init__(self, name, pay):
print('in original class Person __init__')
self.name = name
self.pay = pay
@Tracer
def give_raise(self, percent):
print('in decorated class giveRaise method')
self.pay *= 1.0 + percent
@Tracer
def last_name(self):
print('in decorated class lastName method')
return self.name.split()[-1]
if __name__ == '__main__':
print('\n\x1b[1;36mEntrance\x1b[0m\n')
print('\n\x1b[1;37mApply to simple function\x1b[0m\n')
spam(1, 2, 3)
spam(a=4, b=5, c=6)
print('\n\x1b[1;37mApply to class method\x1b[0m\n')
bob = person('Bob Smith', 50000)
sue = person('Sue Jones', 100000)
print('<', bob.name, sue.name, '>')
sue.giveRaise(0.1)
print(int(sue.pay))
print('<', bob.lastName(), sue.lastName(), '>')
'\n Execution results:\n Chapter39.Decorators]# python3 3-calltracer_descr-for-method-1.py\n in property descriptor __init__\n in property descriptor __init__\n in property descriptor __init__\n in property descriptor __init__\n \n \x1b[1;36mEntrance\x1b[0m\n \n \n \x1b[1;37mApply to simple function\x1b[0m\n \n in property descriptor __call__\n call 1 to spam\n in original function spam\n < 6 >\n in property descriptor __call__\n call 2 to spam\n in original function spam\n < 15 >\n \n \x1b[1;37mApply to class method\x1b[0m\n \n in original class Person __init__\n in original class Person __init__\n < Bob Smith Sue Jones >\n in property descriptor __get__\n in enclosing method wrapper\n in property descriptor __call__\n call 1 to giveRaise\n in decorated class giveRaise method\n 110000\n in property descriptor __get__\n in enclosing method wrapper\n in property descriptor __call__\n call 1 to lastName\n in decorated class lastName method\n in property descriptor __get__\n in enclosing method wrapper\n in property descriptor __call__\n call 2 to lastName\n in decorated class lastName method\n < Smith Jones >\n '
|
def bytes2int(data: bytes) -> int:
return int.from_bytes(data, byteorder="big", signed=True)
def int2bytes(x: int) -> bytes:
return int.to_bytes(x, length=4, byteorder="big", signed=True)
|
def bytes2int(data: bytes) -> int:
return int.from_bytes(data, byteorder='big', signed=True)
def int2bytes(x: int) -> bytes:
return int.to_bytes(x, length=4, byteorder='big', signed=True)
|
#!/usr/bin/python3.4
tableData = [['apples','oranges','cherries','bananas'],
['Alice','Bob','Carol','David'],
['dogs','cats','moose','goose']]
# Per the hint
colWidth = [0] * len(tableData)
# Who knew you had to transpose this list of lists
def matrixTranspose( matrix ):
if not matrix: return []
return [ [ row[ i ] for row in matrix ] for i in range( len( matrix[ 0 ] ) ) ]
def printTable(argData):
# Copy of transpose
argDataTrans = matrixTranspose(argData)
# Get longest string in each
for sub in range(len(argData)):
for i in argData[sub]:
if(len(i)>colWidth[sub]):
colWidth[sub] = len(i)
# Get max column width
maxCol = max(colWidth)
# Now print it using the transposed array
for j in range(len(argDataTrans)):
for k in range(len(argDataTrans[j])):
print(argDataTrans[j][k].rjust(maxCol),end='')
print()
if __name__ == '__main__':
printTable(tableData)
|
table_data = [['apples', 'oranges', 'cherries', 'bananas'], ['Alice', 'Bob', 'Carol', 'David'], ['dogs', 'cats', 'moose', 'goose']]
col_width = [0] * len(tableData)
def matrix_transpose(matrix):
if not matrix:
return []
return [[row[i] for row in matrix] for i in range(len(matrix[0]))]
def print_table(argData):
arg_data_trans = matrix_transpose(argData)
for sub in range(len(argData)):
for i in argData[sub]:
if len(i) > colWidth[sub]:
colWidth[sub] = len(i)
max_col = max(colWidth)
for j in range(len(argDataTrans)):
for k in range(len(argDataTrans[j])):
print(argDataTrans[j][k].rjust(maxCol), end='')
print()
if __name__ == '__main__':
print_table(tableData)
|
#!/usr/bin/env python3
"""
ATTOM API
https://api.developer.attomdata.com
"""
HINSDALE = "HINSDALE, IL"
MADISON_HINSDALE = {}
HOMES = {
"216 S MADISON ST": HINSDALE,
"607 S ADAMS ST": HINSDALE,
"428 MINNEOLA ST": HINSDALE,
"600 S BRUNER ST": HINSDALE,
"637 S BRUNER ST": HINSDALE,
"142 S STOUGH ST": HINSDALE,
"106 S BRUNER ST": HINSDALE,
"37 S STOUGH ST": HINSDALE,
"840 S ADAMS ST": HINSDALE,
"618 S QUINCY ST": HINSDALE,
"904 S STOUGH ST": HINSDALE,
"222 CENTER ST": HINSDALE,
"602 S ADAMS ST": HINSDALE,
"18 E NORTH ST": HINSDALE,
"818 S MADISON ST": HINSDALE,
"427 N MADISON ST": HINSDALE,
"317 E CHICAGO AVE": HINSDALE,
"2 S BRUNER ST": HINSDALE,
"133 S QUINCY ST": HINSDALE,
"410 S MADISON ST": HINSDALE,
"113 MAUMELL ST": HINSDALE,
"138 E MAPLE ST": HINSDALE,
"819 W 8TH ST": HINSDALE,
"519 E 1ST ST": HINSDALE,
"733 N ELM ST": HINSDALE,
"603 JEFFERSON ST": HINSDALE,
"729 JEFFERSON ST": HINSDALE,
"731 TOWN PL": HINSDALE,
"233 S QUINCY ST": HINSDALE,
"238 S MADISON ST": HINSDALE,
"718 W 4TH ST": HINSDALE,
"209 S MADISON ST": HINSDALE,
"415 N COUNTY LINE RD": HINSDALE,
"111 S STOUGH ST": HINSDALE,
"818 W HINSDALE AVE": HINSDALE,
"712 S STOUGH ST": HINSDALE,
"650 S THURLOW ST": HINSDALE,
"134 MAUMELL ST": HINSDALE,
"508 HIGHLAND RD": HINSDALE,
"411 S STOUGH ST": HINSDALE,
"431 S QUINCY ST": HINSDALE,
"442 S QUINCY ST": HINSDALE,
}
|
"""
ATTOM API
https://api.developer.attomdata.com
"""
hinsdale = 'HINSDALE, IL'
madison_hinsdale = {}
homes = {'216 S MADISON ST': HINSDALE, '607 S ADAMS ST': HINSDALE, '428 MINNEOLA ST': HINSDALE, '600 S BRUNER ST': HINSDALE, '637 S BRUNER ST': HINSDALE, '142 S STOUGH ST': HINSDALE, '106 S BRUNER ST': HINSDALE, '37 S STOUGH ST': HINSDALE, '840 S ADAMS ST': HINSDALE, '618 S QUINCY ST': HINSDALE, '904 S STOUGH ST': HINSDALE, '222 CENTER ST': HINSDALE, '602 S ADAMS ST': HINSDALE, '18 E NORTH ST': HINSDALE, '818 S MADISON ST': HINSDALE, '427 N MADISON ST': HINSDALE, '317 E CHICAGO AVE': HINSDALE, '2 S BRUNER ST': HINSDALE, '133 S QUINCY ST': HINSDALE, '410 S MADISON ST': HINSDALE, '113 MAUMELL ST': HINSDALE, '138 E MAPLE ST': HINSDALE, '819 W 8TH ST': HINSDALE, '519 E 1ST ST': HINSDALE, '733 N ELM ST': HINSDALE, '603 JEFFERSON ST': HINSDALE, '729 JEFFERSON ST': HINSDALE, '731 TOWN PL': HINSDALE, '233 S QUINCY ST': HINSDALE, '238 S MADISON ST': HINSDALE, '718 W 4TH ST': HINSDALE, '209 S MADISON ST': HINSDALE, '415 N COUNTY LINE RD': HINSDALE, '111 S STOUGH ST': HINSDALE, '818 W HINSDALE AVE': HINSDALE, '712 S STOUGH ST': HINSDALE, '650 S THURLOW ST': HINSDALE, '134 MAUMELL ST': HINSDALE, '508 HIGHLAND RD': HINSDALE, '411 S STOUGH ST': HINSDALE, '431 S QUINCY ST': HINSDALE, '442 S QUINCY ST': HINSDALE}
|
folder_nm='end_to_end'
coref_path="/home/raj/"+folder_nm+"/output/coreferent_pairs/output2.txt"
chains_path="/home/raj/"+folder_nm+"/output/chains/chains.txt"
f1=open(chains_path,"w+")
def linear_search(obj, item, start=0):
for l in range(start, len(obj)):
if obj[l] == item:
return l
return -1
with open(coref_path, 'r') as f6:
i=0
key=[]
value=[]
words,start,start_end,concept=[],[],[],[]
for num,line in enumerate(f6,1):
#from the coreferent pairs file separate the words and their positions in file
items_nnp = line.rstrip("\n\r").split("|")
word_1,start_1,end_1,word_2,start_2,end_2,concept_type = items_nnp[0], items_nnp[1],items_nnp[2],items_nnp[3],items_nnp[4],items_nnp[5],items_nnp[6]
#get all words in a list and also their positions in another list at corresponding positions
if linear_search(start,start_1)==-1:
words.append(word_1)
start.append(start_1)
start_end.append(start_1+" "+end_1)
concept.append(concept_type)
if linear_search(start,start_2)==-1:
words.append(word_2)
start.append(start_2)
start_end.append(start_2+" "+end_2)
concept.append(concept_type)
#1st row will be marked as 1st pair and so on
key.append(num)
value.append(start_1)
key.append(num)
value.append(start_2)
def formchain(i,Chains):
#if the element is not present in the chain then add it
if linear_search(Chains,value[i])==-1:
Chains.append(value[i])
#store the key and value temporarily
temp_k=key[i]
temp_v=value[i]
#if there is only one element in the list delete it
if i==(len(key)-1):
key[len(key)-1]=""
value[len(value)-1]=""
else:
#delete the element by shifting the following elements by 1 position to left
for j in range (i,len(key)-1):
key[j]=key[j+1]
value[j]=value[j+1]
#mark the last position as ""
key[len(key)-1]=""
value[len(value)-1]=""
# call the method again for the another mention of the pair which shares same key
if linear_search(key,temp_k)!=-1:
formchain(linear_search(key,temp_k),Chains)
# call the method for another pair which has same mention which has already been included
if linear_search(value,temp_v)!=-1:
formchain(linear_search(value,temp_v),Chains)
#As positions are being shifted left, 0th element will never be zero unless the entire array is empty
while(key[0]!=""):
Chains=[]
#start with first element of the list
formchain(0,Chains)
for i in range(len(Chains)-1):
j=linear_search(start,Chains[i])
f1.write(words[j]+"|"+start_end[j]+"|")
j=linear_search(start,Chains[len(Chains)-1])
f1.write(words[j]+"|"+start_end[j]+"|"+concept[j]+"\n")
f1.close()
|
folder_nm = 'end_to_end'
coref_path = '/home/raj/' + folder_nm + '/output/coreferent_pairs/output2.txt'
chains_path = '/home/raj/' + folder_nm + '/output/chains/chains.txt'
f1 = open(chains_path, 'w+')
def linear_search(obj, item, start=0):
for l in range(start, len(obj)):
if obj[l] == item:
return l
return -1
with open(coref_path, 'r') as f6:
i = 0
key = []
value = []
(words, start, start_end, concept) = ([], [], [], [])
for (num, line) in enumerate(f6, 1):
items_nnp = line.rstrip('\n\r').split('|')
(word_1, start_1, end_1, word_2, start_2, end_2, concept_type) = (items_nnp[0], items_nnp[1], items_nnp[2], items_nnp[3], items_nnp[4], items_nnp[5], items_nnp[6])
if linear_search(start, start_1) == -1:
words.append(word_1)
start.append(start_1)
start_end.append(start_1 + ' ' + end_1)
concept.append(concept_type)
if linear_search(start, start_2) == -1:
words.append(word_2)
start.append(start_2)
start_end.append(start_2 + ' ' + end_2)
concept.append(concept_type)
key.append(num)
value.append(start_1)
key.append(num)
value.append(start_2)
def formchain(i, Chains):
if linear_search(Chains, value[i]) == -1:
Chains.append(value[i])
temp_k = key[i]
temp_v = value[i]
if i == len(key) - 1:
key[len(key) - 1] = ''
value[len(value) - 1] = ''
else:
for j in range(i, len(key) - 1):
key[j] = key[j + 1]
value[j] = value[j + 1]
key[len(key) - 1] = ''
value[len(value) - 1] = ''
if linear_search(key, temp_k) != -1:
formchain(linear_search(key, temp_k), Chains)
if linear_search(value, temp_v) != -1:
formchain(linear_search(value, temp_v), Chains)
while key[0] != '':
chains = []
formchain(0, Chains)
for i in range(len(Chains) - 1):
j = linear_search(start, Chains[i])
f1.write(words[j] + '|' + start_end[j] + '|')
j = linear_search(start, Chains[len(Chains) - 1])
f1.write(words[j] + '|' + start_end[j] + '|' + concept[j] + '\n')
f1.close()
|
SCOUTOATH = '''
On my honor, I will do my best
to do my duty to God and my country
to obey the Scout Law
to help other people at all times
to keep myself physically strong, mentally awake and morally straight.
'''
SCOUTLAW = '''
A scout is:
Trustworthy
Loyal
Helpful
Friendly
Courteous
Kind
Obedient
Cheerful
Thrifty
Brave
Clean
and Reverent
'''
OUTDOORCODE = '''
As an American, I will do my best:
To be clean in my outdoor manner
To be careful with fire
To be considerate in the outdoors
And to be conservation-minded
'''
PLEDGE = '''
I pledge allegiance
to the flag
of the United States of America
and to the republic
for which it stands:
one nation under God
with liberty
and justice for all
'''
|
scoutoath = '\nOn my honor, I will do my best\nto do my duty to God and my country\nto obey the Scout Law\nto help other people at all times\nto keep myself physically strong, mentally awake and morally straight.\n'
scoutlaw = '\nA scout is:\n Trustworthy\n Loyal\n Helpful\n Friendly\n Courteous\n Kind\n Obedient\n Cheerful\n Thrifty\n Brave\n Clean\n and Reverent\n'
outdoorcode = '\nAs an American, I will do my best:\n To be clean in my outdoor manner\n To be careful with fire\n To be considerate in the outdoors\n And to be conservation-minded\n'
pledge = '\nI pledge allegiance\nto the flag\nof the United States of America\nand to the republic\nfor which it stands:\none nation under God\nwith liberty\nand justice for all\n'
|
# Colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREY = (140, 140, 140)
CYAN = (0, 255, 255)
DARK_CYAN = (0, 150, 150)
ORANGE = (255, 165, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
|
black = (0, 0, 0)
white = (255, 255, 255)
grey = (140, 140, 140)
cyan = (0, 255, 255)
dark_cyan = (0, 150, 150)
orange = (255, 165, 0)
red = (255, 0, 0)
green = (0, 255, 0)
|
data = (
'kka', # 0x00
'kk', # 0x01
'nu', # 0x02
'no', # 0x03
'ne', # 0x04
'nee', # 0x05
'ni', # 0x06
'na', # 0x07
'mu', # 0x08
'mo', # 0x09
'me', # 0x0a
'mee', # 0x0b
'mi', # 0x0c
'ma', # 0x0d
'yu', # 0x0e
'yo', # 0x0f
'ye', # 0x10
'yee', # 0x11
'yi', # 0x12
'ya', # 0x13
'ju', # 0x14
'ju', # 0x15
'jo', # 0x16
'je', # 0x17
'jee', # 0x18
'ji', # 0x19
'ji', # 0x1a
'ja', # 0x1b
'jju', # 0x1c
'jjo', # 0x1d
'jje', # 0x1e
'jjee', # 0x1f
'jji', # 0x20
'jja', # 0x21
'lu', # 0x22
'lo', # 0x23
'le', # 0x24
'lee', # 0x25
'li', # 0x26
'la', # 0x27
'dlu', # 0x28
'dlo', # 0x29
'dle', # 0x2a
'dlee', # 0x2b
'dli', # 0x2c
'dla', # 0x2d
'lhu', # 0x2e
'lho', # 0x2f
'lhe', # 0x30
'lhee', # 0x31
'lhi', # 0x32
'lha', # 0x33
'tlhu', # 0x34
'tlho', # 0x35
'tlhe', # 0x36
'tlhee', # 0x37
'tlhi', # 0x38
'tlha', # 0x39
'tlu', # 0x3a
'tlo', # 0x3b
'tle', # 0x3c
'tlee', # 0x3d
'tli', # 0x3e
'tla', # 0x3f
'zu', # 0x40
'zo', # 0x41
'ze', # 0x42
'zee', # 0x43
'zi', # 0x44
'za', # 0x45
'z', # 0x46
'z', # 0x47
'dzu', # 0x48
'dzo', # 0x49
'dze', # 0x4a
'dzee', # 0x4b
'dzi', # 0x4c
'dza', # 0x4d
'su', # 0x4e
'so', # 0x4f
'se', # 0x50
'see', # 0x51
'si', # 0x52
'sa', # 0x53
'shu', # 0x54
'sho', # 0x55
'she', # 0x56
'shee', # 0x57
'shi', # 0x58
'sha', # 0x59
'sh', # 0x5a
'tsu', # 0x5b
'tso', # 0x5c
'tse', # 0x5d
'tsee', # 0x5e
'tsi', # 0x5f
'tsa', # 0x60
'chu', # 0x61
'cho', # 0x62
'che', # 0x63
'chee', # 0x64
'chi', # 0x65
'cha', # 0x66
'ttsu', # 0x67
'ttso', # 0x68
'ttse', # 0x69
'ttsee', # 0x6a
'ttsi', # 0x6b
'ttsa', # 0x6c
'X', # 0x6d
'.', # 0x6e
'qai', # 0x6f
'ngai', # 0x70
'nngi', # 0x71
'nngii', # 0x72
'nngo', # 0x73
'nngoo', # 0x74
'nnga', # 0x75
'nngaa', # 0x76
'[?]', # 0x77
'[?]', # 0x78
'[?]', # 0x79
'[?]', # 0x7a
'[?]', # 0x7b
'[?]', # 0x7c
'[?]', # 0x7d
'[?]', # 0x7e
'[?]', # 0x7f
' ', # 0x80
'b', # 0x81
'l', # 0x82
'f', # 0x83
's', # 0x84
'n', # 0x85
'h', # 0x86
'd', # 0x87
't', # 0x88
'c', # 0x89
'q', # 0x8a
'm', # 0x8b
'g', # 0x8c
'ng', # 0x8d
'z', # 0x8e
'r', # 0x8f
'a', # 0x90
'o', # 0x91
'u', # 0x92
'e', # 0x93
'i', # 0x94
'ch', # 0x95
'th', # 0x96
'ph', # 0x97
'p', # 0x98
'x', # 0x99
'p', # 0x9a
'<', # 0x9b
'>', # 0x9c
'[?]', # 0x9d
'[?]', # 0x9e
'[?]', # 0x9f
'f', # 0xa0
'v', # 0xa1
'u', # 0xa2
'yr', # 0xa3
'y', # 0xa4
'w', # 0xa5
'th', # 0xa6
'th', # 0xa7
'a', # 0xa8
'o', # 0xa9
'ac', # 0xaa
'ae', # 0xab
'o', # 0xac
'o', # 0xad
'o', # 0xae
'oe', # 0xaf
'on', # 0xb0
'r', # 0xb1
'k', # 0xb2
'c', # 0xb3
'k', # 0xb4
'g', # 0xb5
'ng', # 0xb6
'g', # 0xb7
'g', # 0xb8
'w', # 0xb9
'h', # 0xba
'h', # 0xbb
'h', # 0xbc
'h', # 0xbd
'n', # 0xbe
'n', # 0xbf
'n', # 0xc0
'i', # 0xc1
'e', # 0xc2
'j', # 0xc3
'g', # 0xc4
'ae', # 0xc5
'a', # 0xc6
'eo', # 0xc7
'p', # 0xc8
'z', # 0xc9
's', # 0xca
's', # 0xcb
's', # 0xcc
'c', # 0xcd
'z', # 0xce
't', # 0xcf
't', # 0xd0
'd', # 0xd1
'b', # 0xd2
'b', # 0xd3
'p', # 0xd4
'p', # 0xd5
'e', # 0xd6
'm', # 0xd7
'm', # 0xd8
'm', # 0xd9
'l', # 0xda
'l', # 0xdb
'ng', # 0xdc
'ng', # 0xdd
'd', # 0xde
'o', # 0xdf
'ear', # 0xe0
'ior', # 0xe1
'qu', # 0xe2
'qu', # 0xe3
'qu', # 0xe4
's', # 0xe5
'yr', # 0xe6
'yr', # 0xe7
'yr', # 0xe8
'q', # 0xe9
'x', # 0xea
'.', # 0xeb
':', # 0xec
'+', # 0xed
'17', # 0xee
'18', # 0xef
'19', # 0xf0
'[?]', # 0xf1
'[?]', # 0xf2
'[?]', # 0xf3
'[?]', # 0xf4
'[?]', # 0xf5
'[?]', # 0xf6
'[?]', # 0xf7
'[?]', # 0xf8
'[?]', # 0xf9
'[?]', # 0xfa
'[?]', # 0xfb
'[?]', # 0xfc
'[?]', # 0xfd
'[?]', # 0xfe
)
|
data = ('kka', 'kk', 'nu', 'no', 'ne', 'nee', 'ni', 'na', 'mu', 'mo', 'me', 'mee', 'mi', 'ma', 'yu', 'yo', 'ye', 'yee', 'yi', 'ya', 'ju', 'ju', 'jo', 'je', 'jee', 'ji', 'ji', 'ja', 'jju', 'jjo', 'jje', 'jjee', 'jji', 'jja', 'lu', 'lo', 'le', 'lee', 'li', 'la', 'dlu', 'dlo', 'dle', 'dlee', 'dli', 'dla', 'lhu', 'lho', 'lhe', 'lhee', 'lhi', 'lha', 'tlhu', 'tlho', 'tlhe', 'tlhee', 'tlhi', 'tlha', 'tlu', 'tlo', 'tle', 'tlee', 'tli', 'tla', 'zu', 'zo', 'ze', 'zee', 'zi', 'za', 'z', 'z', 'dzu', 'dzo', 'dze', 'dzee', 'dzi', 'dza', 'su', 'so', 'se', 'see', 'si', 'sa', 'shu', 'sho', 'she', 'shee', 'shi', 'sha', 'sh', 'tsu', 'tso', 'tse', 'tsee', 'tsi', 'tsa', 'chu', 'cho', 'che', 'chee', 'chi', 'cha', 'ttsu', 'ttso', 'ttse', 'ttsee', 'ttsi', 'ttsa', 'X', '.', 'qai', 'ngai', 'nngi', 'nngii', 'nngo', 'nngoo', 'nnga', 'nngaa', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', ' ', 'b', 'l', 'f', 's', 'n', 'h', 'd', 't', 'c', 'q', 'm', 'g', 'ng', 'z', 'r', 'a', 'o', 'u', 'e', 'i', 'ch', 'th', 'ph', 'p', 'x', 'p', '<', '>', '[?]', '[?]', '[?]', 'f', 'v', 'u', 'yr', 'y', 'w', 'th', 'th', 'a', 'o', 'ac', 'ae', 'o', 'o', 'o', 'oe', 'on', 'r', 'k', 'c', 'k', 'g', 'ng', 'g', 'g', 'w', 'h', 'h', 'h', 'h', 'n', 'n', 'n', 'i', 'e', 'j', 'g', 'ae', 'a', 'eo', 'p', 'z', 's', 's', 's', 'c', 'z', 't', 't', 'd', 'b', 'b', 'p', 'p', 'e', 'm', 'm', 'm', 'l', 'l', 'ng', 'ng', 'd', 'o', 'ear', 'ior', 'qu', 'qu', 'qu', 's', 'yr', 'yr', 'yr', 'q', 'x', '.', ':', '+', '17', '18', '19', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]')
|
# -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Alex Dementsov
# California Institute of Technology
# (C) 2010 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
testtext = """
/*******************************************************************************
*
*
*
* McStas, neutron ray-tracing package
* Copyright 1997-2002, All rights reserved
* Risoe National Laboratory, Roskilde, Denmark
* Institut Laue Langevin, Grenoble, France
*
* Component: E_monitor
*
* %I
* Written by: Kristian Nielsen and Kim Lefmann
* Date: April 20, 1998
* Version: $Revision: 438 $
* Origin: Risoe
* Release: McStas 1.6
*
* Energy-sensitive monitor.
*
* %D
* A square single monitor that measures the energy of the incoming neutrons.
*
* Example: E_monitor(xmin=-0.1, xmax=0.1, ymin=-0.1, ymax=0.1,
* Emin=1, Emax=50, nchan=20, filename="Output.nrj")
*
* %P
* INPUT PARAMETERS:
*
* xmin: Lower x bound of detector opening (m)
* xmax: Upper x bound of detector opening (m)
* ymin: Lower y bound of detector opening (m)
* ymax: Upper y bound of detector opening (m)
* Emin: Minimum energy to detect (meV)
* Emax: Maximum energy to detect (meV)
* nchan: Number of energy channels (1)
* filename: Name of file in which to store the detector image (text)
*
* OUTPUT PARAMETERS:
*
* E_N: Array of neutron counts
* E_p: Array of neutron weight counts
* E_p2: Array of second moments
*
* %E
*******************************************************************************/
the rest of text
"""
snstext = """
DEFINE COMPONENT SNS_source
DEFINITION PARAMETERS ()
SETTING PARAMETERS (char *S_filename="SNS_moderator_data_file",width=0.1, height=0.12, dist=2.5, xw=0.1, yh=0.12, Emin=50, Emax=70)
OUTPUT PARAMETERS (hdiv,vdiv,p_in)
STATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p)
"""
# XXX: Check if split by lines for definitions is legal
psd_tew = """
DEFINE COMPONENT PSD_TEW_monitor
DEFINITION PARAMETERS (nxchan=20, nychan=20, nbchan=20, string type="time", string filename, string format="table")
SETTING PARAMETERS (xwidth=0, yheight=0, bmin=0, bmax=0, deltab=0,
restore_neutron=0)
OUTPUT PARAMETERS (TOF_N, TOF_p, TOF_p2, b_min, b_max, delta_b, x_min, x_max, delta_x, y_min, y_max, delta_y)
STATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p)
POLARISATION PARAMETERS (sx,sy,sz)
"""
iqetext = """
DEFINE COMPONENT IQE_monitor
DEFINITION PARAMETERS ()
SETTING PARAMETERS (Ei=60, Qmin=0, Qmax=10, Emin=-45, Emax=45, int nQ=100,
int nE=90, max_angle_in_plane = 120, min_angle_in_plane = 0,
max_angle_out_of_plane = 30, min_angle_out_of_plane = -30, char *filename = "iqe_monitor.dat")
OUTPUT PARAMETERS () //(IQE_N, IQE_p, IQE_p2)
STATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p)
"""
sourcegen = """
DEFINE COMPONENT Source_gen
DEFINITION PARAMETERS (string flux_file=0, string xdiv_file=0, string ydiv_file=0)
SETTING PARAMETERS (radius=0.0, dist=0, xw=0, yh=0, E0=0, dE=0, Lambda0=0, dLambda=0, I1=0,
h=0, w=0, verbose=0, T1=0,
flux_file_perAA=0, flux_file_log=0,
Lmin=0,Lmax=0,Emin=0,Emax=0,T2=0,I2=0,T3=0,I3=0,length=0)
OUTPUT PARAMETERS (p_in, lambda0, lambda02, L2P, lambda0b, lambda02b, L2Pb,lambda0c, lambda02c, L2Pc, pTable, pTable_x, pTable_y,pTable_xmin, pTable_xmax, pTable_xsum, pTable_ymin, pTable_ymax, pTable_ysum, pTable_dxmin, pTable_dxmax, pTable_dymin, pTable_dymax)
STATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p)
"""
__date__ = "$Sep 15, 2010 3:17:26 PM$"
|
testtext = '\n/*******************************************************************************\n*\n*\n*\n* McStas, neutron ray-tracing package\n* Copyright 1997-2002, All rights reserved\n* Risoe National Laboratory, Roskilde, Denmark\n* Institut Laue Langevin, Grenoble, France\n*\n* Component: E_monitor\n*\n* %I\n* Written by: Kristian Nielsen and Kim Lefmann\n* Date: April 20, 1998\n* Version: $Revision: 438 $\n* Origin: Risoe\n* Release: McStas 1.6\n*\n* Energy-sensitive monitor.\n*\n* %D\n* A square single monitor that measures the energy of the incoming neutrons.\n*\n* Example: E_monitor(xmin=-0.1, xmax=0.1, ymin=-0.1, ymax=0.1,\n* Emin=1, Emax=50, nchan=20, filename="Output.nrj")\n*\n* %P\n* INPUT PARAMETERS:\n*\n* xmin: Lower x bound of detector opening (m)\n* xmax: Upper x bound of detector opening (m)\n* ymin: Lower y bound of detector opening (m)\n* ymax: Upper y bound of detector opening (m)\n* Emin: Minimum energy to detect (meV)\n* Emax: Maximum energy to detect (meV)\n* nchan: Number of energy channels (1)\n* filename: Name of file in which to store the detector image (text)\n*\n* OUTPUT PARAMETERS:\n*\n* E_N: Array of neutron counts\n* E_p: Array of neutron weight counts\n* E_p2: Array of second moments\n*\n* %E\n*******************************************************************************/\nthe rest of text\n'
snstext = '\nDEFINE COMPONENT SNS_source\nDEFINITION PARAMETERS ()\nSETTING PARAMETERS (char *S_filename="SNS_moderator_data_file",width=0.1, height=0.12, dist=2.5, xw=0.1, yh=0.12, Emin=50, Emax=70)\nOUTPUT PARAMETERS (hdiv,vdiv,p_in)\nSTATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p)\n'
psd_tew = '\nDEFINE COMPONENT PSD_TEW_monitor\nDEFINITION PARAMETERS (nxchan=20, nychan=20, nbchan=20, string type="time", string filename, string format="table")\nSETTING PARAMETERS (xwidth=0, yheight=0, bmin=0, bmax=0, deltab=0,\n restore_neutron=0)\nOUTPUT PARAMETERS (TOF_N, TOF_p, TOF_p2, b_min, b_max, delta_b, x_min, x_max, delta_x, y_min, y_max, delta_y)\nSTATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p)\nPOLARISATION PARAMETERS (sx,sy,sz)\n'
iqetext = '\nDEFINE COMPONENT IQE_monitor\nDEFINITION PARAMETERS ()\nSETTING PARAMETERS (Ei=60, Qmin=0, Qmax=10, Emin=-45, Emax=45, int nQ=100,\nint nE=90, max_angle_in_plane = 120, min_angle_in_plane = 0,\nmax_angle_out_of_plane = 30, min_angle_out_of_plane = -30, char *filename = "iqe_monitor.dat")\nOUTPUT PARAMETERS () //(IQE_N, IQE_p, IQE_p2)\nSTATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p)\n'
sourcegen = '\nDEFINE COMPONENT Source_gen\nDEFINITION PARAMETERS (string flux_file=0, string xdiv_file=0, string ydiv_file=0)\nSETTING PARAMETERS (radius=0.0, dist=0, xw=0, yh=0, E0=0, dE=0, Lambda0=0, dLambda=0, I1=0,\n h=0, w=0, verbose=0, T1=0,\n flux_file_perAA=0, flux_file_log=0,\n Lmin=0,Lmax=0,Emin=0,Emax=0,T2=0,I2=0,T3=0,I3=0,length=0)\nOUTPUT PARAMETERS (p_in, lambda0, lambda02, L2P, lambda0b, lambda02b, L2Pb,lambda0c, lambda02c, L2Pc, pTable, pTable_x, pTable_y,pTable_xmin, pTable_xmax, pTable_xsum, pTable_ymin, pTable_ymax, pTable_ysum, pTable_dxmin, pTable_dxmax, pTable_dymin, pTable_dymax)\nSTATE PARAMETERS (x,y,z,vx,vy,vz,t,s1,s2,p)\n'
__date__ = '$Sep 15, 2010 3:17:26 PM$'
|
class RangeQuery:
def __init__(self, data, func=min):
self.func = func
self._data = _data = [list(data)]
i, n = 1, len(_data[0])
while 2 * i <= n:
prev = _data[-1]
_data.append([func(prev[j], prev[j + i]) for j in range(n - 2 * i + 1)])
i <<= 1
def query(self, begin, end):
depth = (end - begin).bit_length() - 1
return self.func(
self._data[depth][begin], self._data[depth][end - (1 << depth)]
)
class LCA:
def __init__(self, root, graph):
"""Assumes the graph is zero-indexed"""
self.first = [-1] * len(graph)
self.path = [-1] * len(graph)
parents = [-1] * len(graph)
h = -1
dfs = [root]
# This is just routine-standard DFS traversal
while dfs:
print("The dfs is:", dfs)
node = dfs.pop()
print("The node popped is:", node)
self.path[h] = parents[node]
self.first[node] = h = h + 1
for nei in graph[node]:
if self.first[nei] == -1:
parents[nei] = node
dfs.append(nei)
print("The parents array is:", parents)
print("The first array:", self.first)
print("The path is:", self.path)
print("****************************************************************")
heights = [self.first[node] for node in self.path]
print("The heights are:", heights)
# Instantiating the rangeQuery class with heights
self.rmq = RangeQuery(heights)
def __call__(self, left, right):
if left == right:
return left
# The first array is storing the heights
left = self.first[left]
right = self.first[right]
# If left is greater than right
if left > right:
left, right = right, left
return self.path[self.rmq.query(left, right)]
if __name__ == "__main__":
g = {0: [1], 1: [2, 3, 4], 2: [5, 6], 3: [1], 4: [1, 7], 5: [2], 6: [2], 7: [4]}
print("The graph is:", g)
lca = LCA(1, g)
result = lca(5, 6)
print("The lowest common ancestor is:", result)
|
class Rangequery:
def __init__(self, data, func=min):
self.func = func
self._data = _data = [list(data)]
(i, n) = (1, len(_data[0]))
while 2 * i <= n:
prev = _data[-1]
_data.append([func(prev[j], prev[j + i]) for j in range(n - 2 * i + 1)])
i <<= 1
def query(self, begin, end):
depth = (end - begin).bit_length() - 1
return self.func(self._data[depth][begin], self._data[depth][end - (1 << depth)])
class Lca:
def __init__(self, root, graph):
"""Assumes the graph is zero-indexed"""
self.first = [-1] * len(graph)
self.path = [-1] * len(graph)
parents = [-1] * len(graph)
h = -1
dfs = [root]
while dfs:
print('The dfs is:', dfs)
node = dfs.pop()
print('The node popped is:', node)
self.path[h] = parents[node]
self.first[node] = h = h + 1
for nei in graph[node]:
if self.first[nei] == -1:
parents[nei] = node
dfs.append(nei)
print('The parents array is:', parents)
print('The first array:', self.first)
print('The path is:', self.path)
print('****************************************************************')
heights = [self.first[node] for node in self.path]
print('The heights are:', heights)
self.rmq = range_query(heights)
def __call__(self, left, right):
if left == right:
return left
left = self.first[left]
right = self.first[right]
if left > right:
(left, right) = (right, left)
return self.path[self.rmq.query(left, right)]
if __name__ == '__main__':
g = {0: [1], 1: [2, 3, 4], 2: [5, 6], 3: [1], 4: [1, 7], 5: [2], 6: [2], 7: [4]}
print('The graph is:', g)
lca = lca(1, g)
result = lca(5, 6)
print('The lowest common ancestor is:', result)
|
"""
Main python file for the sssdevops example
"""
def mean(num_list):
"""
Calculate the mean of a list of numbers
Parameters
----------
num_list: list of int or float
Returns
-------
float of the mean of the list
Examples
--------
>>> mean([1, 2, 3, 4, 5])
3.0
"""
return sum(num_list) / len(num_list)
|
"""
Main python file for the sssdevops example
"""
def mean(num_list):
"""
Calculate the mean of a list of numbers
Parameters
----------
num_list: list of int or float
Returns
-------
float of the mean of the list
Examples
--------
>>> mean([1, 2, 3, 4, 5])
3.0
"""
return sum(num_list) / len(num_list)
|
class SymbolTableItem:
def __init__(self, type, name, customId, value):
self.type = type
self.name = name
self.value = value
# if type == 'int' or type == 'bool':
# self.value = 0
# elif type == 'string':
# self.value = ' '
# else:
# self.value = None
self.id = 'id_{}'.format(customId)
def __str__(self):
return '{}, {}, {}, {}'.format(self.type, self.name, self.value, self.id)
|
class Symboltableitem:
def __init__(self, type, name, customId, value):
self.type = type
self.name = name
self.value = value
self.id = 'id_{}'.format(customId)
def __str__(self):
return '{}, {}, {}, {}'.format(self.type, self.name, self.value, self.id)
|
# Define the fileName as a variable
fileToWrite = 'outputFile.txt'
fileHandle = open(fileToWrite, 'w')
i = 0
while i < 10:
fileHandle.write("This is line Number " + str(i) + "\n")
i += 1
fileHandle.close()
|
file_to_write = 'outputFile.txt'
file_handle = open(fileToWrite, 'w')
i = 0
while i < 10:
fileHandle.write('This is line Number ' + str(i) + '\n')
i += 1
fileHandle.close()
|
NOTES = """
(c) 2017 JUSTYN CHAYKOWSKI
PROVIDED UNDER MIT LICENSE
SCHOOLOGY.COM
ACCESS CODE: GNH9N-KZ2C2
RIC 115 <-- OFFICE HOURS:
M 4-6 PM
W 12-6 PM
##########################################
# RICE LAB
#
# TEXT BOOK = ARDX ARDUINO EXPERIMENTER'S KIT - OOMLOUT
#
# CLASS PROJECT --MUST-- BUILD OFF OF WORK ALREADY DONE BY OTHER PEOPLE
#
# CTECH MAKER SPACE UNDER RIDDELL !!!!
##########################################
'FIRST FINAL EXAM QUESTION':
- SEE THE TOPICS MAP PROVIDED "TOPIC_MAP_EXAMQ_1_2.JPG"
HACKER:
A MORE LEGITIMATE DEFINITION: "SOMEONE WHO MAKES A DEVICE DO SOMETHING OTHER
THAN IT WAS ORIGINALLY INTENDED TO DO."
SOCIETY DEFINITION (DO NOT USE): "SOMEONE WHO BREAKS INTO COMPUTERS FOR MALICIOUS
PURPOSES."
RICHARD STALLMAN'S DEFINITION: "SOMEONE WHO ENJOYS PLAYFUL CLEVERNESS"
"MAKER MOVEMENT"
'MAKING' BECOMES MAINSTREAM THANKS TO NEW TECHNOLOGIES ENTERING PUB. DOMAIN:
1. FUSED DEPOSITION MOULDING
2. ARDUINO
THE ARDUINO
- ORIGINALLY CALLED 'WIRING'
-
"""
if __name__ == ('__main__'):
print(NOTES)
print('Done.')
if __name__ != ('__main__'):
print('first-day-notes.py successfully imported.')
print('first-day-notes.NOTES the class notes.')
|
notes = '\n(c) 2017 JUSTYN CHAYKOWSKI\nPROVIDED UNDER MIT LICENSE\n\nSCHOOLOGY.COM\nACCESS CODE: GNH9N-KZ2C2\n\n\nRIC 115 <-- OFFICE HOURS:\nM 4-6 PM\nW 12-6 PM\n\n##########################################\n# RICE LAB\n#\n# TEXT BOOK = ARDX ARDUINO EXPERIMENTER\'S KIT - OOMLOUT\n#\n# CLASS PROJECT --MUST-- BUILD OFF OF WORK ALREADY DONE BY OTHER PEOPLE\n#\n# CTECH MAKER SPACE UNDER RIDDELL !!!!\n##########################################\n\n\'FIRST FINAL EXAM QUESTION\':\n - SEE THE TOPICS MAP PROVIDED "TOPIC_MAP_EXAMQ_1_2.JPG"\n\nHACKER:\nA MORE LEGITIMATE DEFINITION: "SOMEONE WHO MAKES A DEVICE DO SOMETHING OTHER\nTHAN IT WAS ORIGINALLY INTENDED TO DO."\n\nSOCIETY DEFINITION (DO NOT USE): "SOMEONE WHO BREAKS INTO COMPUTERS FOR MALICIOUS\nPURPOSES."\n\nRICHARD STALLMAN\'S DEFINITION: "SOMEONE WHO ENJOYS PLAYFUL CLEVERNESS"\n\n"MAKER MOVEMENT"\n\'MAKING\' BECOMES MAINSTREAM THANKS TO NEW TECHNOLOGIES ENTERING PUB. DOMAIN:\n 1. FUSED DEPOSITION MOULDING\n 2. ARDUINO\n\nTHE ARDUINO\n - ORIGINALLY CALLED \'WIRING\'\n - \n'
if __name__ == '__main__':
print(NOTES)
print('Done.')
if __name__ != '__main__':
print('first-day-notes.py successfully imported.')
print('first-day-notes.NOTES the class notes.')
|
a = source()
if True:
b = a + 3 * sanitizer2(y)
else:
b = sanitizer(a)
sink(b)
|
a = source()
if True:
b = a + 3 * sanitizer2(y)
else:
b = sanitizer(a)
sink(b)
|
#
# This file contains the Python code from Program 10.10 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm10_10.txt
#
class AVLTree(BinarySearchTree):
def balance(self):
self.adjustHeight()
if self.balanceFactor > 1:
if self._left.balanceFactor > 0:
self.doLLRotation()
else:
self.doLRRotation()
elif self.balanceFactor < -1:
if self._right.balanceFactor < 0:
self.doRRRotation()
else:
self.doRLRotation()
# ...
|
class Avltree(BinarySearchTree):
def balance(self):
self.adjustHeight()
if self.balanceFactor > 1:
if self._left.balanceFactor > 0:
self.doLLRotation()
else:
self.doLRRotation()
elif self.balanceFactor < -1:
if self._right.balanceFactor < 0:
self.doRRRotation()
else:
self.doRLRotation()
|
# Python program to print Even Numbers in given range
start, end = 4, 19
# iterating each number in list
for num in range(start, end + 1):
# checking condition
if num % 2 == 0:
print(num, end = " ")
|
(start, end) = (4, 19)
for num in range(start, end + 1):
if num % 2 == 0:
print(num, end=' ')
|
x = input()
y = input()
z = input()
flag = z % (1 + 1) == 0 and (1 < x and x < 123) or (1 > y and y > x and x > y and y < 123)
def identity(var):
return var
if x ^ y == 1 or (
x % 2 == 0 and (3 > x and x <= 3 and 3 <= y and y > z and z >= 5) or (
identity(-1) + hash('hello') < 10 + 120 and 10 + 120 < hash('world') - 1)):
print(x, y, z)
|
x = input()
y = input()
z = input()
flag = z % (1 + 1) == 0 and (1 < x and x < 123) or (1 > y and y > x and (x > y) and (y < 123))
def identity(var):
return var
if x ^ y == 1 or (x % 2 == 0 and (3 > x and x <= 3 and (3 <= y) and (y > z) and (z >= 5)) or (identity(-1) + hash('hello') < 10 + 120 and 10 + 120 < hash('world') - 1)):
print(x, y, z)
|
def main():
class student:
std = []
def __init__(self,name,id,cgpa):
self.name = name
self.id = id
self.cgpa = cgpa
def showId(self):
return self.id
def result(self):
if(self.cgpa > 8.5):
print("Great score")
elif(self.cgpa > 7 and self.cgpa < 8.5):
print("Keep it up")
else:
print("Not gonna pass")
def details(self):
print(f'STUDENT ID: {self.id}\nSTUDENT NAME: {self.name}\nCGPA: {self.cgpa}\nPROGRESS REPORT:',end='')+self.result()
def insert():
if 1:
x = input('Enter the name of the student: ')
y = input('Enter the id of the student: ')
z = input('Enter the cgpa of the student: ')
while not(z.isdigit() and int(z)<10):
z = input('Enter a correct cgpa')
if float(z)<5:
print(f'Hey {x}, You better work on your studies')
data = student(x,y,float(z))
student.std.append(data.__dict__)
print(f'id no {y} has been added')
def search():
found = 0
try:
x= input('Enter your id: ')
for data in student.std:
if x == data['id']:
print('NAME: '+ data['name'])
print('CGPA: '+ str(data['cgpa']))
found=1
# print(data['id'])
if found ==0:
print('Data not found')
except:
print('Ooops!Error')
def decision(x):
try:
return{
'1':insert(),
'2':search(),
'3':delete(),
'4': exit()
}[x]
except:
print('Invalid input')
while True:
y = input('Press 1 if you want to insert data\nPress 2 if you want to search data\nPress 3 if you want to delete a data\npress 4 if you want to exit\n')
if y in ['1','2','3']:
if y is '1':
insert()
print(student.std)
continue
elif y is '2':
search()
continue
else:
search()
continue
else:
x1=input('INVALID OPTION.PRESS * TO CONTINUE OR ELSE TO EXIT :')
if int(ord(x1))==42:
continue
else:
break
if __name__=='__main__':
main()
|
def main():
class Student:
std = []
def __init__(self, name, id, cgpa):
self.name = name
self.id = id
self.cgpa = cgpa
def show_id(self):
return self.id
def result(self):
if self.cgpa > 8.5:
print('Great score')
elif self.cgpa > 7 and self.cgpa < 8.5:
print('Keep it up')
else:
print('Not gonna pass')
def details(self):
print(f'STUDENT ID: {self.id}\nSTUDENT NAME: {self.name}\nCGPA: {self.cgpa}\nPROGRESS REPORT:', end='') + self.result()
def insert():
if 1:
x = input('Enter the name of the student: ')
y = input('Enter the id of the student: ')
z = input('Enter the cgpa of the student: ')
while not (z.isdigit() and int(z) < 10):
z = input('Enter a correct cgpa')
if float(z) < 5:
print(f'Hey {x}, You better work on your studies')
data = student(x, y, float(z))
student.std.append(data.__dict__)
print(f'id no {y} has been added')
def search():
found = 0
try:
x = input('Enter your id: ')
for data in student.std:
if x == data['id']:
print('NAME: ' + data['name'])
print('CGPA: ' + str(data['cgpa']))
found = 1
if found == 0:
print('Data not found')
except:
print('Ooops!Error')
def decision(x):
try:
return {'1': insert(), '2': search(), '3': delete(), '4': exit()}[x]
except:
print('Invalid input')
while True:
y = input('Press 1 if you want to insert data\nPress 2 if you want to search data\nPress 3 if you want to delete a data\npress 4 if you want to exit\n')
if y in ['1', '2', '3']:
if y is '1':
insert()
print(student.std)
continue
elif y is '2':
search()
continue
else:
search()
continue
else:
x1 = input('INVALID OPTION.PRESS * TO CONTINUE OR ELSE TO EXIT :')
if int(ord(x1)) == 42:
continue
else:
break
if __name__ == '__main__':
main()
|
def valid(a):
a = str(a)
num = set()
for char in a:
num.add(char)
return len(a) == len(num)
n = int(input())
n += 1
while True:
if valid(n):
print(n)
break
else:
n += 1
|
def valid(a):
a = str(a)
num = set()
for char in a:
num.add(char)
return len(a) == len(num)
n = int(input())
n += 1
while True:
if valid(n):
print(n)
break
else:
n += 1
|
class QtConnectionError(Exception):
pass
class QtRestApiError(Exception):
""" Problem with authentification"""
pass
class QtFileTypeError(Exception):
"""Invalid type of file"""
pass
class QtArgumentError(Exception):
pass
class QtVocabularyError(Exception):
pass
class QtModelError(Exception):
pass
class QtJobError(Exception):
pass
|
class Qtconnectionerror(Exception):
pass
class Qtrestapierror(Exception):
""" Problem with authentification"""
pass
class Qtfiletypeerror(Exception):
"""Invalid type of file"""
pass
class Qtargumenterror(Exception):
pass
class Qtvocabularyerror(Exception):
pass
class Qtmodelerror(Exception):
pass
class Qtjoberror(Exception):
pass
|
class PeculiarBalance:
"""
Can we save them? Beta Rabbit is trying to break into a lab that contains the only known zombie cure - but there's
an obstacle. The door will only open if a challenge is solved correctly. The future of the zombified rabbit
population is at stake, so Beta reads the challenge: There is a scale with an object on the left-hand side, whose
mass is given in some number of units. Predictably, the task is to balance the two sides. But there is a catch:
You only have this peculiar weight set, having masses 1, 3, 9, 27, ... units. That is, one for each power of 3.
Being a brilliant mathematician, Beta Rabbit quickly discovers that any number of units of mass can be balanced
exactly using this set.
To help Beta get into the room, write a method called answer(x), which outputs a list of strings representing where
the weights should be placed, in order for the two sides to be balanced, assuming that weight on the left has mass
x units.
The first element of the output list should correspond to the 1-unit weight, the second element to the 3-unit
weight, and so on. Each string is one of:
"L" : put weight on left-hand side
"R" : put weight on right-hand side
"-" : do not use weight
To ensure that the output is the smallest possible, the last element of the list must not be "-".
x will always be a positive integer, no larger than 1000000000.
"""
@staticmethod
def answer(x):
"""
Peculiar Balance.
Parameters
----------
x : int
Returns
-------
ret : list
Examples
--------
>>> PeculiarBalance().answer(2)
['L', 'R']
>>> PeculiarBalance().answer(8)
['L', '-', 'R']
>>> PeculiarBalance().answer(345)
['-', 'R', 'L', 'R', 'R', 'R']
"""
def _to_rev_ternary(q):
"""
Converts `q` to ternary equivalent in reversed order.
Parameters
----------
q : int
Returns
-------
d2t : list
Examples
--------
>>> _to_rev_ternary(345)
[0, 1, 2, 0, 1, 1]
"""
d2t = []
if q == 0:
d2t.append(0)
while q > 0:
d2t.append(q % 3)
q = q // 3
return d2t
def _to_rev_balanced_ternary(s_q):
"""
Converts `s_q` into balanced ternary.
Parameters
----------
s_q : list
Returns
-------
t2bt : list
Examples
--------
>>> _to_rev_balanced_ternary([0, 1, 2, 0, 1, 1])
[0, 1, 'T', 1, 1, 1]
"""
t2bt = []
carry = 0
for trit in s_q:
if (trit == 2) or (trit + carry == 2):
trit = trit + carry + 1
if trit == 3:
t2bt.append('T')
carry = 1
elif trit == 4:
t2bt.append(0)
carry = 1
else:
t2bt.append(trit + carry)
carry = 0
if carry > 0:
t2bt.append(carry)
return t2bt
# Unbalanced ternary
_t = _to_rev_ternary(x)
# print("""Ternary: {}""".format(_t[::-1]))
# Balanced ternary
_bt = _to_rev_balanced_ternary(_t)
# print("""Balanced Ternary: {}""".format(_bt[::-1]))
return [('L' if (str(t)) == 'T' else ('R' if t == 1 else '-')) for t in _bt]
|
class Peculiarbalance:
"""
Can we save them? Beta Rabbit is trying to break into a lab that contains the only known zombie cure - but there's
an obstacle. The door will only open if a challenge is solved correctly. The future of the zombified rabbit
population is at stake, so Beta reads the challenge: There is a scale with an object on the left-hand side, whose
mass is given in some number of units. Predictably, the task is to balance the two sides. But there is a catch:
You only have this peculiar weight set, having masses 1, 3, 9, 27, ... units. That is, one for each power of 3.
Being a brilliant mathematician, Beta Rabbit quickly discovers that any number of units of mass can be balanced
exactly using this set.
To help Beta get into the room, write a method called answer(x), which outputs a list of strings representing where
the weights should be placed, in order for the two sides to be balanced, assuming that weight on the left has mass
x units.
The first element of the output list should correspond to the 1-unit weight, the second element to the 3-unit
weight, and so on. Each string is one of:
"L" : put weight on left-hand side
"R" : put weight on right-hand side
"-" : do not use weight
To ensure that the output is the smallest possible, the last element of the list must not be "-".
x will always be a positive integer, no larger than 1000000000.
"""
@staticmethod
def answer(x):
"""
Peculiar Balance.
Parameters
----------
x : int
Returns
-------
ret : list
Examples
--------
>>> PeculiarBalance().answer(2)
['L', 'R']
>>> PeculiarBalance().answer(8)
['L', '-', 'R']
>>> PeculiarBalance().answer(345)
['-', 'R', 'L', 'R', 'R', 'R']
"""
def _to_rev_ternary(q):
"""
Converts `q` to ternary equivalent in reversed order.
Parameters
----------
q : int
Returns
-------
d2t : list
Examples
--------
>>> _to_rev_ternary(345)
[0, 1, 2, 0, 1, 1]
"""
d2t = []
if q == 0:
d2t.append(0)
while q > 0:
d2t.append(q % 3)
q = q // 3
return d2t
def _to_rev_balanced_ternary(s_q):
"""
Converts `s_q` into balanced ternary.
Parameters
----------
s_q : list
Returns
-------
t2bt : list
Examples
--------
>>> _to_rev_balanced_ternary([0, 1, 2, 0, 1, 1])
[0, 1, 'T', 1, 1, 1]
"""
t2bt = []
carry = 0
for trit in s_q:
if trit == 2 or trit + carry == 2:
trit = trit + carry + 1
if trit == 3:
t2bt.append('T')
carry = 1
elif trit == 4:
t2bt.append(0)
carry = 1
else:
t2bt.append(trit + carry)
carry = 0
if carry > 0:
t2bt.append(carry)
return t2bt
_t = _to_rev_ternary(x)
_bt = _to_rev_balanced_ternary(_t)
return ['L' if str(t) == 'T' else 'R' if t == 1 else '-' for t in _bt]
|
P, A, B = map(int, input().split())
if P >= A+B:
print(P)
elif B > P:
print(-1)
else:
print(A+B)
|
(p, a, b) = map(int, input().split())
if P >= A + B:
print(P)
elif B > P:
print(-1)
else:
print(A + B)
|
PASSWORD = "PASSW0RD2019"
TO = ["[email protected]",
"[email protected]"]
FROM = "[email protected]"
|
password = 'PASSW0RD2019'
to = ['[email protected]', '[email protected]']
from = '[email protected]'
|
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=too-many-lines
def edgeorder_order_show(client,
name,
resource_group_name,
location):
return client.get_order_by_name(order_name=name,
resource_group_name=resource_group_name,
location=location)
def edgeorder_list_config(client,
configuration_filters,
skip_token=None,
registered_features=None,
location_placement_id=None,
quota_id=None):
configurations_request = {}
configurations_request['configuration_filters'] = configuration_filters
configurations_request['customer_subscription_details'] = {}
if registered_features is not None:
configurations_request['customer_subscription_details']['registered_features'] = registered_features
if location_placement_id is not None:
configurations_request['customer_subscription_details']['location_placement_id'] = location_placement_id
if quota_id is not None:
configurations_request['customer_subscription_details']['quota_id'] = quota_id
if len(configurations_request['customer_subscription_details']) == 0:
del configurations_request['customer_subscription_details']
return client.list_configurations(skip_token=skip_token,
configurations_request=configurations_request)
def edgeorder_list_family(client,
filterable_properties,
expand=None,
skip_token=None,
registered_features=None,
location_placement_id=None,
quota_id=None):
product_families_request = {}
product_families_request['filterable_properties'] = filterable_properties
product_families_request['customer_subscription_details'] = {}
if registered_features is not None:
product_families_request['customer_subscription_details']['registered_features'] = registered_features
if location_placement_id is not None:
product_families_request['customer_subscription_details']['location_placement_id'] = location_placement_id
if quota_id is not None:
product_families_request['customer_subscription_details']['quota_id'] = quota_id
if len(product_families_request['customer_subscription_details']) == 0:
del product_families_request['customer_subscription_details']
return client.list_product_families(expand=expand,
skip_token=skip_token,
product_families_request=product_families_request)
def edgeorder_list_metadata(client,
skip_token=None):
return client.list_product_families_metadata(skip_token=skip_token)
def edgeorder_list_operation(client):
return client.list_operations()
def edgeorder_address_list(client,
resource_group_name=None,
filter_=None,
skip_token=None):
if resource_group_name:
return client.list_by_group(resource_group_name=resource_group_name,
filter=filter_,
skip_token=skip_token)
return client.list(filter=filter_,
skip_token=skip_token)
def edgeorder_address_show(client,
address_name,
resource_group_name):
return client.get_address_by_name(address_name=address_name,
resource_group_name=resource_group_name)
def edgeorder_address_create(client,
address_name,
resource_group_name,
location,
contact_details,
tags=None,
shipping_address=None):
address_resource = {}
if tags is not None:
address_resource['tags'] = tags
address_resource['location'] = location
if shipping_address is not None:
address_resource['shipping_address'] = shipping_address
address_resource['contact_details'] = contact_details
return client.begin_create_address(address_name=address_name,
resource_group_name=resource_group_name,
address_resource=address_resource)
def edgeorder_address_update(client,
address_name,
resource_group_name,
if_match=None,
tags=None,
shipping_address=None,
contact_details=None):
address_update_parameter = {}
if tags is not None:
address_update_parameter['tags'] = tags
if shipping_address is not None:
address_update_parameter['shipping_address'] = shipping_address
if contact_details is not None:
address_update_parameter['contact_details'] = contact_details
return client.begin_update_address(address_name=address_name,
resource_group_name=resource_group_name,
if_match=if_match,
address_update_parameter=address_update_parameter)
def edgeorder_address_delete(client,
address_name,
resource_group_name):
return client.begin_delete_address_by_name(address_name=address_name,
resource_group_name=resource_group_name)
def edgeorder_order_list(client,
resource_group_name=None,
skip_token=None):
if resource_group_name:
return client.list_by_group(resource_group_name=resource_group_name,
skip_token=skip_token)
return client.list(skip_token=skip_token)
def edgeorder_order_item_list(client,
resource_group_name=None,
filter_=None,
expand=None,
skip_token=None):
if resource_group_name:
return client.list_by_group(resource_group_name=resource_group_name,
filter=filter_,
expand=expand,
skip_token=skip_token)
return client.list(filter=filter_,
expand=expand,
skip_token=skip_token)
def edgeorder_order_item_show(client,
order_item_name,
resource_group_name,
expand=None):
return client.get_order_item_by_name(order_item_name=order_item_name,
resource_group_name=resource_group_name,
expand=expand)
def edgeorder_order_item_create(client,
order_item_name,
resource_group_name,
order_item_resource):
return client.begin_create_order_item(order_item_name=order_item_name,
resource_group_name=resource_group_name,
order_item_resource=order_item_resource)
def edgeorder_order_item_update(client,
order_item_name,
resource_group_name,
if_match=None,
tags=None,
notification_email_list=None,
notification_preferences=None,
transport_preferences=None,
encryption_preferences=None,
management_resource_preferences=None,
shipping_address=None,
contact_details=None):
order_item_update_parameter = {}
if tags is not None:
order_item_update_parameter['tags'] = tags
if notification_email_list is not None:
order_item_update_parameter['notification_email_list'] = notification_email_list
order_item_update_parameter['preferences'] = {}
if notification_preferences is not None:
order_item_update_parameter['preferences']['notification_preferences'] = notification_preferences
if transport_preferences is not None:
order_item_update_parameter['preferences']['transport_preferences'] = transport_preferences
if encryption_preferences is not None:
order_item_update_parameter['preferences']['encryption_preferences'] = encryption_preferences
if management_resource_preferences is not None:
order_item_update_parameter['preferences']['management_resource_preferences'] = management_resource_preferences
if len(order_item_update_parameter['preferences']) == 0:
del order_item_update_parameter['preferences']
order_item_update_parameter['forward_address'] = {}
if shipping_address is not None:
order_item_update_parameter['forward_address']['shipping_address'] = shipping_address
if contact_details is not None:
order_item_update_parameter['forward_address']['contact_details'] = contact_details
if len(order_item_update_parameter['forward_address']) == 0:
del order_item_update_parameter['forward_address']
return client.begin_update_order_item(order_item_name=order_item_name,
resource_group_name=resource_group_name,
if_match=if_match,
order_item_update_parameter=order_item_update_parameter)
def edgeorder_order_item_delete(client,
order_item_name,
resource_group_name):
return client.begin_delete_order_item_by_name(order_item_name=order_item_name,
resource_group_name=resource_group_name)
def edgeorder_order_item_cancel(client,
order_item_name,
resource_group_name,
reason):
cancellation_reason = {}
cancellation_reason['reason'] = reason
return client.cancel_order_item(order_item_name=order_item_name,
resource_group_name=resource_group_name,
cancellation_reason=cancellation_reason)
def edgeorder_order_item_return(client,
order_item_name,
resource_group_name,
return_reason,
service_tag=None,
shipping_box_required=None,
shipping_address=None,
contact_details=None):
return_order_item_details = {}
return_order_item_details['return_reason'] = return_reason
if service_tag is not None:
return_order_item_details['service_tag'] = service_tag
if shipping_box_required is not None:
return_order_item_details['shipping_box_required'] = shipping_box_required
else:
return_order_item_details['shipping_box_required'] = False
return_order_item_details['return_address'] = {}
if shipping_address is not None:
return_order_item_details['return_address']['shipping_address'] = shipping_address
if contact_details is not None:
return_order_item_details['return_address']['contact_details'] = contact_details
if len(return_order_item_details['return_address']) == 0:
del return_order_item_details['return_address']
return client.begin_return_order_item(order_item_name=order_item_name,
resource_group_name=resource_group_name,
return_order_item_details=return_order_item_details)
|
def edgeorder_order_show(client, name, resource_group_name, location):
return client.get_order_by_name(order_name=name, resource_group_name=resource_group_name, location=location)
def edgeorder_list_config(client, configuration_filters, skip_token=None, registered_features=None, location_placement_id=None, quota_id=None):
configurations_request = {}
configurations_request['configuration_filters'] = configuration_filters
configurations_request['customer_subscription_details'] = {}
if registered_features is not None:
configurations_request['customer_subscription_details']['registered_features'] = registered_features
if location_placement_id is not None:
configurations_request['customer_subscription_details']['location_placement_id'] = location_placement_id
if quota_id is not None:
configurations_request['customer_subscription_details']['quota_id'] = quota_id
if len(configurations_request['customer_subscription_details']) == 0:
del configurations_request['customer_subscription_details']
return client.list_configurations(skip_token=skip_token, configurations_request=configurations_request)
def edgeorder_list_family(client, filterable_properties, expand=None, skip_token=None, registered_features=None, location_placement_id=None, quota_id=None):
product_families_request = {}
product_families_request['filterable_properties'] = filterable_properties
product_families_request['customer_subscription_details'] = {}
if registered_features is not None:
product_families_request['customer_subscription_details']['registered_features'] = registered_features
if location_placement_id is not None:
product_families_request['customer_subscription_details']['location_placement_id'] = location_placement_id
if quota_id is not None:
product_families_request['customer_subscription_details']['quota_id'] = quota_id
if len(product_families_request['customer_subscription_details']) == 0:
del product_families_request['customer_subscription_details']
return client.list_product_families(expand=expand, skip_token=skip_token, product_families_request=product_families_request)
def edgeorder_list_metadata(client, skip_token=None):
return client.list_product_families_metadata(skip_token=skip_token)
def edgeorder_list_operation(client):
return client.list_operations()
def edgeorder_address_list(client, resource_group_name=None, filter_=None, skip_token=None):
if resource_group_name:
return client.list_by_group(resource_group_name=resource_group_name, filter=filter_, skip_token=skip_token)
return client.list(filter=filter_, skip_token=skip_token)
def edgeorder_address_show(client, address_name, resource_group_name):
return client.get_address_by_name(address_name=address_name, resource_group_name=resource_group_name)
def edgeorder_address_create(client, address_name, resource_group_name, location, contact_details, tags=None, shipping_address=None):
address_resource = {}
if tags is not None:
address_resource['tags'] = tags
address_resource['location'] = location
if shipping_address is not None:
address_resource['shipping_address'] = shipping_address
address_resource['contact_details'] = contact_details
return client.begin_create_address(address_name=address_name, resource_group_name=resource_group_name, address_resource=address_resource)
def edgeorder_address_update(client, address_name, resource_group_name, if_match=None, tags=None, shipping_address=None, contact_details=None):
address_update_parameter = {}
if tags is not None:
address_update_parameter['tags'] = tags
if shipping_address is not None:
address_update_parameter['shipping_address'] = shipping_address
if contact_details is not None:
address_update_parameter['contact_details'] = contact_details
return client.begin_update_address(address_name=address_name, resource_group_name=resource_group_name, if_match=if_match, address_update_parameter=address_update_parameter)
def edgeorder_address_delete(client, address_name, resource_group_name):
return client.begin_delete_address_by_name(address_name=address_name, resource_group_name=resource_group_name)
def edgeorder_order_list(client, resource_group_name=None, skip_token=None):
if resource_group_name:
return client.list_by_group(resource_group_name=resource_group_name, skip_token=skip_token)
return client.list(skip_token=skip_token)
def edgeorder_order_item_list(client, resource_group_name=None, filter_=None, expand=None, skip_token=None):
if resource_group_name:
return client.list_by_group(resource_group_name=resource_group_name, filter=filter_, expand=expand, skip_token=skip_token)
return client.list(filter=filter_, expand=expand, skip_token=skip_token)
def edgeorder_order_item_show(client, order_item_name, resource_group_name, expand=None):
return client.get_order_item_by_name(order_item_name=order_item_name, resource_group_name=resource_group_name, expand=expand)
def edgeorder_order_item_create(client, order_item_name, resource_group_name, order_item_resource):
return client.begin_create_order_item(order_item_name=order_item_name, resource_group_name=resource_group_name, order_item_resource=order_item_resource)
def edgeorder_order_item_update(client, order_item_name, resource_group_name, if_match=None, tags=None, notification_email_list=None, notification_preferences=None, transport_preferences=None, encryption_preferences=None, management_resource_preferences=None, shipping_address=None, contact_details=None):
order_item_update_parameter = {}
if tags is not None:
order_item_update_parameter['tags'] = tags
if notification_email_list is not None:
order_item_update_parameter['notification_email_list'] = notification_email_list
order_item_update_parameter['preferences'] = {}
if notification_preferences is not None:
order_item_update_parameter['preferences']['notification_preferences'] = notification_preferences
if transport_preferences is not None:
order_item_update_parameter['preferences']['transport_preferences'] = transport_preferences
if encryption_preferences is not None:
order_item_update_parameter['preferences']['encryption_preferences'] = encryption_preferences
if management_resource_preferences is not None:
order_item_update_parameter['preferences']['management_resource_preferences'] = management_resource_preferences
if len(order_item_update_parameter['preferences']) == 0:
del order_item_update_parameter['preferences']
order_item_update_parameter['forward_address'] = {}
if shipping_address is not None:
order_item_update_parameter['forward_address']['shipping_address'] = shipping_address
if contact_details is not None:
order_item_update_parameter['forward_address']['contact_details'] = contact_details
if len(order_item_update_parameter['forward_address']) == 0:
del order_item_update_parameter['forward_address']
return client.begin_update_order_item(order_item_name=order_item_name, resource_group_name=resource_group_name, if_match=if_match, order_item_update_parameter=order_item_update_parameter)
def edgeorder_order_item_delete(client, order_item_name, resource_group_name):
return client.begin_delete_order_item_by_name(order_item_name=order_item_name, resource_group_name=resource_group_name)
def edgeorder_order_item_cancel(client, order_item_name, resource_group_name, reason):
cancellation_reason = {}
cancellation_reason['reason'] = reason
return client.cancel_order_item(order_item_name=order_item_name, resource_group_name=resource_group_name, cancellation_reason=cancellation_reason)
def edgeorder_order_item_return(client, order_item_name, resource_group_name, return_reason, service_tag=None, shipping_box_required=None, shipping_address=None, contact_details=None):
return_order_item_details = {}
return_order_item_details['return_reason'] = return_reason
if service_tag is not None:
return_order_item_details['service_tag'] = service_tag
if shipping_box_required is not None:
return_order_item_details['shipping_box_required'] = shipping_box_required
else:
return_order_item_details['shipping_box_required'] = False
return_order_item_details['return_address'] = {}
if shipping_address is not None:
return_order_item_details['return_address']['shipping_address'] = shipping_address
if contact_details is not None:
return_order_item_details['return_address']['contact_details'] = contact_details
if len(return_order_item_details['return_address']) == 0:
del return_order_item_details['return_address']
return client.begin_return_order_item(order_item_name=order_item_name, resource_group_name=resource_group_name, return_order_item_details=return_order_item_details)
|
class Config(object):
ORG_NAME = 'footprints'
ORG_DOMAIN = 'footprints.devel'
APP_NAME = 'Footprints'
APP_VERSION = '0.4.0'
|
class Config(object):
org_name = 'footprints'
org_domain = 'footprints.devel'
app_name = 'Footprints'
app_version = '0.4.0'
|
class Solution:
def minSubArrayLen(self, s: int, nums: List[int]) -> int:
left, sum, count = 0, 0, float('inf')
for right in range(len(nums)):
sum += nums[right]
while sum >= s:
count = min(count, right - left + 1)
sum -= nums[left]
left += 1
return count if count != float('inf') else 0
|
class Solution:
def min_sub_array_len(self, s: int, nums: List[int]) -> int:
(left, sum, count) = (0, 0, float('inf'))
for right in range(len(nums)):
sum += nums[right]
while sum >= s:
count = min(count, right - left + 1)
sum -= nums[left]
left += 1
return count if count != float('inf') else 0
|
def line(y1, x1, y2, x2):
"""
Yield integer coordinates for a line from (y1, x1) to (y2, x2).
"""
dy = abs(y2 - y1)
dx = abs(x2 - x1)
if dy == 0: # Horizontal
for x in range(x1, x2 + 1):
yield y1, x
elif dx == 0: # Vertical
for y in range(y1, y2 + 1):
yield y, x1
elif dy < dx: # Low-sloped lines
dx = x2 - x1
dy, yi = (2 * (y2 - y1), 1) if y2 >= y1 else (2 * (y1 - y2), -1)
dif = dy - 2 * dx
delta = dy - dx
y = y1
for x in range(x1, x2 + 1):
yield y, x
if delta > 0:
y += yi
delta += dif
else:
delta += dy
else: # High-sloped lines
dx, xi = (2 * (x2 - x1), 1) if x2 >= x1 else (2 * (x1 - x2), -1)
dy = y2 - y1
dif = dx - 2 * dy
delta = dx - dy
x = x1
for y in range(y1, y2 + 1):
yield y, x
if delta > 0:
x += xi
delta += dif
else:
delta += dx
|
def line(y1, x1, y2, x2):
"""
Yield integer coordinates for a line from (y1, x1) to (y2, x2).
"""
dy = abs(y2 - y1)
dx = abs(x2 - x1)
if dy == 0:
for x in range(x1, x2 + 1):
yield (y1, x)
elif dx == 0:
for y in range(y1, y2 + 1):
yield (y, x1)
elif dy < dx:
dx = x2 - x1
(dy, yi) = (2 * (y2 - y1), 1) if y2 >= y1 else (2 * (y1 - y2), -1)
dif = dy - 2 * dx
delta = dy - dx
y = y1
for x in range(x1, x2 + 1):
yield (y, x)
if delta > 0:
y += yi
delta += dif
else:
delta += dy
else:
(dx, xi) = (2 * (x2 - x1), 1) if x2 >= x1 else (2 * (x1 - x2), -1)
dy = y2 - y1
dif = dx - 2 * dy
delta = dx - dy
x = x1
for y in range(y1, y2 + 1):
yield (y, x)
if delta > 0:
x += xi
delta += dif
else:
delta += dx
|
"""
TESTS TO WRITE:
* API contract tests for notify/email provider, github, trello
"""
|
"""
TESTS TO WRITE:
* API contract tests for notify/email provider, github, trello
"""
|
def pisano(m):
prev,curr=0,1
for i in range(0,m*m):
prev,curr=curr,(prev+curr)%m
if prev==0 and curr == 1 :
return i+1
def fib(n,m):
seq=pisano(m)
n%=seq
if n<2:
return n
f=[0]*(n+1)
f[1]=1
for i in range(2,n+1):
f[i]=f[i-1]+f[i-2]
return f[n]
# Print Fn % m where n and m are 2 inputs, and Fn => nth Fibonacci Term
inp=list(map(int,input().split()))
print(fib(inp[0],inp[1])%inp[1])
|
def pisano(m):
(prev, curr) = (0, 1)
for i in range(0, m * m):
(prev, curr) = (curr, (prev + curr) % m)
if prev == 0 and curr == 1:
return i + 1
def fib(n, m):
seq = pisano(m)
n %= seq
if n < 2:
return n
f = [0] * (n + 1)
f[1] = 1
for i in range(2, n + 1):
f[i] = f[i - 1] + f[i - 2]
return f[n]
inp = list(map(int, input().split()))
print(fib(inp[0], inp[1]) % inp[1])
|
#
# PySNMP MIB module TRAPEZE-NETWORKS-RF-BLACKLIST-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRAPEZE-NETWORKS-RF-BLACKLIST-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:27: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)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueRangeConstraint")
ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Unsigned32, Counter32, ObjectIdentity, iso, Gauge32, Counter64, NotificationType, Bits, IpAddress, ModuleIdentity, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Unsigned32", "Counter32", "ObjectIdentity", "iso", "Gauge32", "Counter64", "NotificationType", "Bits", "IpAddress", "ModuleIdentity", "Integer32")
DisplayString, TextualConvention, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention", "MacAddress")
trpzMibs, = mibBuilder.importSymbols("TRAPEZE-NETWORKS-ROOT-MIB", "trpzMibs")
trpzRFBlacklistMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 14525, 4, 18))
trpzRFBlacklistMib.setRevisions(('2011-02-24 00:14',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: trpzRFBlacklistMib.setRevisionsDescriptions(('v1.0.4: Initial version, for 7.5 release',))
if mibBuilder.loadTexts: trpzRFBlacklistMib.setLastUpdated('201102240014Z')
if mibBuilder.loadTexts: trpzRFBlacklistMib.setOrganization('Trapeze Networks')
if mibBuilder.loadTexts: trpzRFBlacklistMib.setContactInfo('Trapeze Networks Technical Support www.trapezenetworks.com US: 866.TRPZ.TAC International: 925.474.2400 [email protected]')
if mibBuilder.loadTexts: trpzRFBlacklistMib.setDescription("RF Blacklist objects for Trapeze Networks wireless switches. Copyright (c) 2009-2011 by Trapeze Networks, Inc. All rights reserved. This Trapeze Networks SNMP Management Information Base Specification (Specification) embodies Trapeze Networks' confidential and proprietary intellectual property. Trapeze Networks retains all title and ownership in the Specification, including any revisions. This Specification is supplied 'AS IS' and Trapeze Networks makes no warranty, either express or implied, as to the use, operation, condition, or performance of the Specification.")
class TrpzRFBlacklistedEntryType(TextualConvention, Integer32):
description = 'Enumeration to indicate the Type of a Blacklisted Entry: configuredPermanent: The MAC address has been permanently blacklisted by administrative action; configuredDynamic: The MAC address has been temporarily blacklisted by administrative action; assocReqFlood, reassocReqFlood, disassocReqFlood, unknownDynamic: The MAC address has been automatically blacklisted by RF Detection.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))
namedValues = NamedValues(("other", 1), ("unknownDynamic", 2), ("configuredPermanent", 3), ("configuredDynamic", 4), ("assocReqFlood", 5), ("reassocReqFlood", 6), ("disassocReqFlood", 7))
trpzRFBlacklistMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1))
trpzRFBlacklistXmtrTable = MibTable((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2), )
if mibBuilder.loadTexts: trpzRFBlacklistXmtrTable.setStatus('current')
if mibBuilder.loadTexts: trpzRFBlacklistXmtrTable.setDescription('A table containing transmitters blacklisted by RF Detection.')
trpzRFBlacklistXmtrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2, 1), ).setIndexNames((0, "TRAPEZE-NETWORKS-RF-BLACKLIST-MIB", "trpzRFBlacklistXmtrMacAddress"))
if mibBuilder.loadTexts: trpzRFBlacklistXmtrEntry.setStatus('current')
if mibBuilder.loadTexts: trpzRFBlacklistXmtrEntry.setDescription('Information about a particular blacklisted transmitter.')
trpzRFBlacklistXmtrMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2, 1, 1), MacAddress())
if mibBuilder.loadTexts: trpzRFBlacklistXmtrMacAddress.setStatus('current')
if mibBuilder.loadTexts: trpzRFBlacklistXmtrMacAddress.setDescription('The MAC Address of this Blacklisted Transmitter.')
trpzRFBlacklistXmtrType = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2, 1, 2), TrpzRFBlacklistedEntryType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trpzRFBlacklistXmtrType.setStatus('current')
if mibBuilder.loadTexts: trpzRFBlacklistXmtrType.setDescription('The Type of this Blacklisted Transmitter.')
trpzRFBlacklistXmtrTimeToLive = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trpzRFBlacklistXmtrTimeToLive.setStatus('current')
if mibBuilder.loadTexts: trpzRFBlacklistXmtrTimeToLive.setDescription('The remaining time in seconds until this Transmitter is removed from the RF Blacklist. For permanent entries, the value will be always zero.')
trpzRFBlacklistConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2))
trpzRFBlacklistCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2, 1))
trpzRFBlacklistGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2, 2))
trpzRFBlacklistCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2, 1, 1)).setObjects(("TRAPEZE-NETWORKS-RF-BLACKLIST-MIB", "trpzRFBlacklistXmtrGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
trpzRFBlacklistCompliance = trpzRFBlacklistCompliance.setStatus('current')
if mibBuilder.loadTexts: trpzRFBlacklistCompliance.setDescription('The compliance statement for devices that implement RF Blacklist MIB. This compliance statement is for releases 7.5 and greater of AC (wireless switch) software.')
trpzRFBlacklistXmtrGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2, 2, 1)).setObjects(("TRAPEZE-NETWORKS-RF-BLACKLIST-MIB", "trpzRFBlacklistXmtrType"), ("TRAPEZE-NETWORKS-RF-BLACKLIST-MIB", "trpzRFBlacklistXmtrTimeToLive"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
trpzRFBlacklistXmtrGroup = trpzRFBlacklistXmtrGroup.setStatus('current')
if mibBuilder.loadTexts: trpzRFBlacklistXmtrGroup.setDescription('Group of columnar objects implemented to provide Blacklisted Transmitter info in releases 7.5 and greater.')
mibBuilder.exportSymbols("TRAPEZE-NETWORKS-RF-BLACKLIST-MIB", trpzRFBlacklistXmtrEntry=trpzRFBlacklistXmtrEntry, TrpzRFBlacklistedEntryType=TrpzRFBlacklistedEntryType, trpzRFBlacklistXmtrType=trpzRFBlacklistXmtrType, trpzRFBlacklistCompliances=trpzRFBlacklistCompliances, trpzRFBlacklistMib=trpzRFBlacklistMib, trpzRFBlacklistMibObjects=trpzRFBlacklistMibObjects, trpzRFBlacklistGroups=trpzRFBlacklistGroups, trpzRFBlacklistXmtrMacAddress=trpzRFBlacklistXmtrMacAddress, trpzRFBlacklistXmtrTimeToLive=trpzRFBlacklistXmtrTimeToLive, trpzRFBlacklistXmtrGroup=trpzRFBlacklistXmtrGroup, trpzRFBlacklistXmtrTable=trpzRFBlacklistXmtrTable, trpzRFBlacklistCompliance=trpzRFBlacklistCompliance, trpzRFBlacklistConformance=trpzRFBlacklistConformance, PYSNMP_MODULE_ID=trpzRFBlacklistMib)
|
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_size_constraint, single_value_constraint, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueRangeConstraint')
(object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup')
(time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, unsigned32, counter32, object_identity, iso, gauge32, counter64, notification_type, bits, ip_address, module_identity, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Unsigned32', 'Counter32', 'ObjectIdentity', 'iso', 'Gauge32', 'Counter64', 'NotificationType', 'Bits', 'IpAddress', 'ModuleIdentity', 'Integer32')
(display_string, textual_convention, mac_address) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention', 'MacAddress')
(trpz_mibs,) = mibBuilder.importSymbols('TRAPEZE-NETWORKS-ROOT-MIB', 'trpzMibs')
trpz_rf_blacklist_mib = module_identity((1, 3, 6, 1, 4, 1, 14525, 4, 18))
trpzRFBlacklistMib.setRevisions(('2011-02-24 00:14',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
trpzRFBlacklistMib.setRevisionsDescriptions(('v1.0.4: Initial version, for 7.5 release',))
if mibBuilder.loadTexts:
trpzRFBlacklistMib.setLastUpdated('201102240014Z')
if mibBuilder.loadTexts:
trpzRFBlacklistMib.setOrganization('Trapeze Networks')
if mibBuilder.loadTexts:
trpzRFBlacklistMib.setContactInfo('Trapeze Networks Technical Support www.trapezenetworks.com US: 866.TRPZ.TAC International: 925.474.2400 [email protected]')
if mibBuilder.loadTexts:
trpzRFBlacklistMib.setDescription("RF Blacklist objects for Trapeze Networks wireless switches. Copyright (c) 2009-2011 by Trapeze Networks, Inc. All rights reserved. This Trapeze Networks SNMP Management Information Base Specification (Specification) embodies Trapeze Networks' confidential and proprietary intellectual property. Trapeze Networks retains all title and ownership in the Specification, including any revisions. This Specification is supplied 'AS IS' and Trapeze Networks makes no warranty, either express or implied, as to the use, operation, condition, or performance of the Specification.")
class Trpzrfblacklistedentrytype(TextualConvention, Integer32):
description = 'Enumeration to indicate the Type of a Blacklisted Entry: configuredPermanent: The MAC address has been permanently blacklisted by administrative action; configuredDynamic: The MAC address has been temporarily blacklisted by administrative action; assocReqFlood, reassocReqFlood, disassocReqFlood, unknownDynamic: The MAC address has been automatically blacklisted by RF Detection.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))
named_values = named_values(('other', 1), ('unknownDynamic', 2), ('configuredPermanent', 3), ('configuredDynamic', 4), ('assocReqFlood', 5), ('reassocReqFlood', 6), ('disassocReqFlood', 7))
trpz_rf_blacklist_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1))
trpz_rf_blacklist_xmtr_table = mib_table((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2))
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrTable.setStatus('current')
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrTable.setDescription('A table containing transmitters blacklisted by RF Detection.')
trpz_rf_blacklist_xmtr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2, 1)).setIndexNames((0, 'TRAPEZE-NETWORKS-RF-BLACKLIST-MIB', 'trpzRFBlacklistXmtrMacAddress'))
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrEntry.setStatus('current')
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrEntry.setDescription('Information about a particular blacklisted transmitter.')
trpz_rf_blacklist_xmtr_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2, 1, 1), mac_address())
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrMacAddress.setStatus('current')
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrMacAddress.setDescription('The MAC Address of this Blacklisted Transmitter.')
trpz_rf_blacklist_xmtr_type = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2, 1, 2), trpz_rf_blacklisted_entry_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrType.setStatus('current')
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrType.setDescription('The Type of this Blacklisted Transmitter.')
trpz_rf_blacklist_xmtr_time_to_live = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 18, 1, 2, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrTimeToLive.setStatus('current')
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrTimeToLive.setDescription('The remaining time in seconds until this Transmitter is removed from the RF Blacklist. For permanent entries, the value will be always zero.')
trpz_rf_blacklist_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2))
trpz_rf_blacklist_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2, 1))
trpz_rf_blacklist_groups = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2, 2))
trpz_rf_blacklist_compliance = module_compliance((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2, 1, 1)).setObjects(('TRAPEZE-NETWORKS-RF-BLACKLIST-MIB', 'trpzRFBlacklistXmtrGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
trpz_rf_blacklist_compliance = trpzRFBlacklistCompliance.setStatus('current')
if mibBuilder.loadTexts:
trpzRFBlacklistCompliance.setDescription('The compliance statement for devices that implement RF Blacklist MIB. This compliance statement is for releases 7.5 and greater of AC (wireless switch) software.')
trpz_rf_blacklist_xmtr_group = object_group((1, 3, 6, 1, 4, 1, 14525, 4, 18, 2, 2, 1)).setObjects(('TRAPEZE-NETWORKS-RF-BLACKLIST-MIB', 'trpzRFBlacklistXmtrType'), ('TRAPEZE-NETWORKS-RF-BLACKLIST-MIB', 'trpzRFBlacklistXmtrTimeToLive'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
trpz_rf_blacklist_xmtr_group = trpzRFBlacklistXmtrGroup.setStatus('current')
if mibBuilder.loadTexts:
trpzRFBlacklistXmtrGroup.setDescription('Group of columnar objects implemented to provide Blacklisted Transmitter info in releases 7.5 and greater.')
mibBuilder.exportSymbols('TRAPEZE-NETWORKS-RF-BLACKLIST-MIB', trpzRFBlacklistXmtrEntry=trpzRFBlacklistXmtrEntry, TrpzRFBlacklistedEntryType=TrpzRFBlacklistedEntryType, trpzRFBlacklistXmtrType=trpzRFBlacklistXmtrType, trpzRFBlacklistCompliances=trpzRFBlacklistCompliances, trpzRFBlacklistMib=trpzRFBlacklistMib, trpzRFBlacklistMibObjects=trpzRFBlacklistMibObjects, trpzRFBlacklistGroups=trpzRFBlacklistGroups, trpzRFBlacklistXmtrMacAddress=trpzRFBlacklistXmtrMacAddress, trpzRFBlacklistXmtrTimeToLive=trpzRFBlacklistXmtrTimeToLive, trpzRFBlacklistXmtrGroup=trpzRFBlacklistXmtrGroup, trpzRFBlacklistXmtrTable=trpzRFBlacklistXmtrTable, trpzRFBlacklistCompliance=trpzRFBlacklistCompliance, trpzRFBlacklistConformance=trpzRFBlacklistConformance, PYSNMP_MODULE_ID=trpzRFBlacklistMib)
|
T = int(input())
for i in range(T):
try:
a, b = map(str, input().split())
print(int(int(a)//int(b)))
except Exception as e:
print("Error Code:", e)
|
t = int(input())
for i in range(T):
try:
(a, b) = map(str, input().split())
print(int(int(a) // int(b)))
except Exception as e:
print('Error Code:', e)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.