content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
###exercicio 76
produtos = ('lapis', 1.5, 'borracha', 2.00, 'caderno', 15.00, 'livro', 50.00, 'mochila', 75.00)
print ('='*60)
print ('{:^60}'.format('Lista de produtos'))
print ('='*60)
for c in range (0, len(produtos), 2):
print ('{:<50}R$ {:>7}'.format(produtos[c], produtos[c+1]))
print ('-'*60) | produtos = ('lapis', 1.5, 'borracha', 2.0, 'caderno', 15.0, 'livro', 50.0, 'mochila', 75.0)
print('=' * 60)
print('{:^60}'.format('Lista de produtos'))
print('=' * 60)
for c in range(0, len(produtos), 2):
print('{:<50}R$ {:>7}'.format(produtos[c], produtos[c + 1]))
print('-' * 60) |
# Programacion orientada a objetos (POO o OOP)
# Definir una clase (molde para crear mas objetos de ese tipo)
# (Coche) con caracteristicas similares
class Coche:
# Atributos o propiedades (variables)
# caracteristicas del coche
color = "Rojo"
marca = "Ferrari"
modelo = "Aventador"
velocidad = 300
caballaje = 500
plazas = 2
# Metodos, son acciones que hace el objeto (coche) (Conocidas como funciones)
def setColor(self, color):
self.color = color
def getColor(self):
return self.color
def setModelo(self, modelo):
self.modelo = modelo
def getModelo(self):
return self.modelo
def acelerar(self):
self.velocidad += 1
def frenar(self):
self.velocidad -= 1
def getVelocidad(self):
return self.velocidad
# fin definicion clase
# Crear objeto // Instanciar clase
coche = Coche()
coche.setColor("Amarillo")
coche.setModelo("Murcielago")
print("COCHE 1:")
print(coche.marca, coche.getModelo(), coche.getColor() )
print("Velocidad actual: ", coche.getVelocidad() )
coche.acelerar()
coche.acelerar()
coche.acelerar()
coche.acelerar()
coche.frenar()
print("Velocidad nueva: ", coche.velocidad )
# Crear mas objetos.
coche2 = Coche()
coche2.setColor("Verde")
coche2.setModelo("Gallardo")
print("------------------------------")
print("COCHE 2:")
print(coche2.marca, coche2.getModelo(), coche2.getColor() )
print("Velocidad actual: ", coche2.getVelocidad() )
print(type(coche2)) | class Coche:
color = 'Rojo'
marca = 'Ferrari'
modelo = 'Aventador'
velocidad = 300
caballaje = 500
plazas = 2
def set_color(self, color):
self.color = color
def get_color(self):
return self.color
def set_modelo(self, modelo):
self.modelo = modelo
def get_modelo(self):
return self.modelo
def acelerar(self):
self.velocidad += 1
def frenar(self):
self.velocidad -= 1
def get_velocidad(self):
return self.velocidad
coche = coche()
coche.setColor('Amarillo')
coche.setModelo('Murcielago')
print('COCHE 1:')
print(coche.marca, coche.getModelo(), coche.getColor())
print('Velocidad actual: ', coche.getVelocidad())
coche.acelerar()
coche.acelerar()
coche.acelerar()
coche.acelerar()
coche.frenar()
print('Velocidad nueva: ', coche.velocidad)
coche2 = coche()
coche2.setColor('Verde')
coche2.setModelo('Gallardo')
print('------------------------------')
print('COCHE 2:')
print(coche2.marca, coche2.getModelo(), coche2.getColor())
print('Velocidad actual: ', coche2.getVelocidad())
print(type(coche2)) |
class Solution:
def calculate(self, s: str) -> int:
stacks = [[0, 1]]
val = ""
sign = 1
for i, ch in enumerate(s):
if ch == ' ':
continue
if ch == '(':
stacks[-1][-1] = sign
stacks.append([0, 1])
sign = 1
elif ch in "+-":
if val:
stacks[-1][0] += sign * int(val)
val = ""
sign = 1 if ch == '+' else -1
elif ch == ')':
if val:
stacks[-1][0] += sign * int(val)
val = ""
sign = 1
top = stacks.pop()[0]
stacks[-1][0] += stacks[-1][1] * top
else:
val += ch
if val:
stacks[-1][0] += sign * int(val)
return stacks[-1][0]
| class Solution:
def calculate(self, s: str) -> int:
stacks = [[0, 1]]
val = ''
sign = 1
for (i, ch) in enumerate(s):
if ch == ' ':
continue
if ch == '(':
stacks[-1][-1] = sign
stacks.append([0, 1])
sign = 1
elif ch in '+-':
if val:
stacks[-1][0] += sign * int(val)
val = ''
sign = 1 if ch == '+' else -1
elif ch == ')':
if val:
stacks[-1][0] += sign * int(val)
val = ''
sign = 1
top = stacks.pop()[0]
stacks[-1][0] += stacks[-1][1] * top
else:
val += ch
if val:
stacks[-1][0] += sign * int(val)
return stacks[-1][0] |
class Solution(object):
def frequencySort(self, s):
"""
:type s: str
:rtype: str
"""
freq = dict()
for char in s:
if char in freq:
freq[char] += 1
else:
freq[char] = 1
sortedList = sorted(freq.items(),key = lambda x: x[1],reverse=True)
return "".join(x[0]*x[1] for x in sortedList)
| class Solution(object):
def frequency_sort(self, s):
"""
:type s: str
:rtype: str
"""
freq = dict()
for char in s:
if char in freq:
freq[char] += 1
else:
freq[char] = 1
sorted_list = sorted(freq.items(), key=lambda x: x[1], reverse=True)
return ''.join((x[0] * x[1] for x in sortedList)) |
# -*- coding: utf-8 -*-
urls = (
"/", "Home",
)
| urls = ('/', 'Home') |
#!/usr/bin/env python3
BUS = 'http://m.bus.go.kr/mBus/bus/'
SUBWAY = 'http://m.bus.go.kr/mBus/subway/'
PATH = 'http://m.bus.go.kr/mBus/path/'
all_bus_routes = BUS + 'getBusRouteList.bms'
bus_route_search = all_bus_routes + '?strSrch={0}'
bus_route_by_id = BUS + 'getRouteInfo.bms?busRouteId={0}'
all_low_bus_routes = BUS + 'getLowBusRoute.bms'
low_bus_route_search = all_low_bus_routes + 'strSrch={0}'
all_night_bus_routes = BUS + 'getNBusRoute.bms'
night_bus_route_search = all_night_bus_routes + 'strSrch={0}'
all_airport_bus_routes = BUS + 'getAirBusRoute.bms'
bus_routes_by_type = BUS + 'getRttpRoute.bms?strSrch={0}&stRttp={1}'
route_path_by_id = BUS + 'getRoutePath.bms?busRouteId={0}'
route_path_detailed_by_id = BUS + 'getStaionByRoute.bms?busRouteId={0}'
route_path_realtime_by_id = BUS + 'getRttpRouteAndPos.bms?busRouteId={0}'
low_route_path_realtime_by_id = BUS + 'getLowRouteAndPos.bms?busRouteId={0}'
bus_arrival_info_by_route = BUS + 'getArrInfoByRouteAll.bms?busRouteId={0}'
bus_arrival_info_by_route_and_station = BUS + 'getArrInfoByRoute.bms?busRouteId={0}&stId={1}&ord=1'
bus_stations_by_position = BUS + 'getStationByPos.bms?tmX={0}&tmY={1}&radius={2}'
routes_by_position = BUS + 'getNearRouteByPos.bms?tmX={0}&tmY={1}&radius={2}'
bus_stations_by_name = BUS + 'getStationByName.bms?stSrch={0}'
low_bus_stations_by_name = BUS + 'getLowStationByName.bms?stSrch={0}'
routes_by_bus_station = BUS + 'getRouteByStation.bms?arsId={0}'
arrival_info_by_bus_station = BUS + 'getStationByUid.bms?arsId{0}'
low_arrival_info_by_bus_station = BUS + 'getLowStationByUid.bms?arsId{0}'
operating_times_by_bus_station_and_route = BUS + 'getBustimeByStation.bms?arsId={0}&busRouteId={1}'
bus_position_by_route = BUS + 'getBusPosByRtid.bms?busRouteId={0}'
low_bus_position_by_route = BUS + 'getLowBusPosByRtid.bms?busRouteId={0}'
bus_position_by_id = BUS + 'getBusPosByVehId.bms?vehId={0}'
closest_station_by_position = PATH + 'getNearStationByPos.bms?tmX={0}&tmY={1}&radius={2}'
location_by_name = PATH + 'getLocationInfo.bms?stSrch={0}'
path_by_bus = PATH + 'getPathInfoByBus.bms?startX={0}&startY={1}&endX={2}&endY={3}'
path_by_subway = PATH + 'getPathInfoBySubway.bms?startX={0}&startY={1}&endX={2}&endY={3}'
path_by_bus_and_subway = PATH + 'getPathInfoByBusNSub.bms?startX={0}&startY={1}&endX={2}&endY={3}'
all_subway_stations = SUBWAY + 'getStatnByNm.bms'
subway_stations_by_name = all_subway_stations + '?statnNm={0}'
subway_stations_by_route = SUBWAY + 'getStatnByRoute.bms?subwayId={0}'
subway_arrival_info_by_route_and_station = SUBWAY + 'getArvlByInfo.bms?subwayId={0}&statnId={1}'
subway_station_by_route_and_id = SUBWAY + 'getStatnById.bms?subwayId={0}&statnId={1}'
subway_timetable_by_route_and_station = SUBWAY + 'getPlanyByStatn.bms?subwayId={0}&statnId={1}&tabType={2}'
first_and_last_subway_by_route_and_station = SUBWAY + 'getLastcarByStatn.bms?subwayId={0}&statnId={1}'
bus_stations_by_subway_station = SUBWAY + 'getBusByStation.bms?statnId={0}'
subway_entrance_info_by_station = SUBWAY + 'getEntrcByInfo.bms?statnId={0}'
subway_station_position_by_id = SUBWAY + 'getStatnByIdPos.bms?statnId={0}'
train_info_by_subway_route_and_station = SUBWAY + 'getStatnTrainInfo.bms?subwayId={0}&statnId={1}'
| bus = 'http://m.bus.go.kr/mBus/bus/'
subway = 'http://m.bus.go.kr/mBus/subway/'
path = 'http://m.bus.go.kr/mBus/path/'
all_bus_routes = BUS + 'getBusRouteList.bms'
bus_route_search = all_bus_routes + '?strSrch={0}'
bus_route_by_id = BUS + 'getRouteInfo.bms?busRouteId={0}'
all_low_bus_routes = BUS + 'getLowBusRoute.bms'
low_bus_route_search = all_low_bus_routes + 'strSrch={0}'
all_night_bus_routes = BUS + 'getNBusRoute.bms'
night_bus_route_search = all_night_bus_routes + 'strSrch={0}'
all_airport_bus_routes = BUS + 'getAirBusRoute.bms'
bus_routes_by_type = BUS + 'getRttpRoute.bms?strSrch={0}&stRttp={1}'
route_path_by_id = BUS + 'getRoutePath.bms?busRouteId={0}'
route_path_detailed_by_id = BUS + 'getStaionByRoute.bms?busRouteId={0}'
route_path_realtime_by_id = BUS + 'getRttpRouteAndPos.bms?busRouteId={0}'
low_route_path_realtime_by_id = BUS + 'getLowRouteAndPos.bms?busRouteId={0}'
bus_arrival_info_by_route = BUS + 'getArrInfoByRouteAll.bms?busRouteId={0}'
bus_arrival_info_by_route_and_station = BUS + 'getArrInfoByRoute.bms?busRouteId={0}&stId={1}&ord=1'
bus_stations_by_position = BUS + 'getStationByPos.bms?tmX={0}&tmY={1}&radius={2}'
routes_by_position = BUS + 'getNearRouteByPos.bms?tmX={0}&tmY={1}&radius={2}'
bus_stations_by_name = BUS + 'getStationByName.bms?stSrch={0}'
low_bus_stations_by_name = BUS + 'getLowStationByName.bms?stSrch={0}'
routes_by_bus_station = BUS + 'getRouteByStation.bms?arsId={0}'
arrival_info_by_bus_station = BUS + 'getStationByUid.bms?arsId{0}'
low_arrival_info_by_bus_station = BUS + 'getLowStationByUid.bms?arsId{0}'
operating_times_by_bus_station_and_route = BUS + 'getBustimeByStation.bms?arsId={0}&busRouteId={1}'
bus_position_by_route = BUS + 'getBusPosByRtid.bms?busRouteId={0}'
low_bus_position_by_route = BUS + 'getLowBusPosByRtid.bms?busRouteId={0}'
bus_position_by_id = BUS + 'getBusPosByVehId.bms?vehId={0}'
closest_station_by_position = PATH + 'getNearStationByPos.bms?tmX={0}&tmY={1}&radius={2}'
location_by_name = PATH + 'getLocationInfo.bms?stSrch={0}'
path_by_bus = PATH + 'getPathInfoByBus.bms?startX={0}&startY={1}&endX={2}&endY={3}'
path_by_subway = PATH + 'getPathInfoBySubway.bms?startX={0}&startY={1}&endX={2}&endY={3}'
path_by_bus_and_subway = PATH + 'getPathInfoByBusNSub.bms?startX={0}&startY={1}&endX={2}&endY={3}'
all_subway_stations = SUBWAY + 'getStatnByNm.bms'
subway_stations_by_name = all_subway_stations + '?statnNm={0}'
subway_stations_by_route = SUBWAY + 'getStatnByRoute.bms?subwayId={0}'
subway_arrival_info_by_route_and_station = SUBWAY + 'getArvlByInfo.bms?subwayId={0}&statnId={1}'
subway_station_by_route_and_id = SUBWAY + 'getStatnById.bms?subwayId={0}&statnId={1}'
subway_timetable_by_route_and_station = SUBWAY + 'getPlanyByStatn.bms?subwayId={0}&statnId={1}&tabType={2}'
first_and_last_subway_by_route_and_station = SUBWAY + 'getLastcarByStatn.bms?subwayId={0}&statnId={1}'
bus_stations_by_subway_station = SUBWAY + 'getBusByStation.bms?statnId={0}'
subway_entrance_info_by_station = SUBWAY + 'getEntrcByInfo.bms?statnId={0}'
subway_station_position_by_id = SUBWAY + 'getStatnByIdPos.bms?statnId={0}'
train_info_by_subway_route_and_station = SUBWAY + 'getStatnTrainInfo.bms?subwayId={0}&statnId={1}' |
def config_record_on_account(request,account_id):
pass
def config_record_on_channel(request, channel_id):
pass
| def config_record_on_account(request, account_id):
pass
def config_record_on_channel(request, channel_id):
pass |
def gen_primes():
current_number = 2
primes = []
while True:
is_prime = True
for prime in primes:
if prime*prime > current_number: ## This is saying it's a prime if prime * prime > current_testing_number
# print("Caught here")
break # I'd love to see the original proof to this
if current_number % prime == 0: # if divisable by a known prime, then it's not a prime
is_prime = False
break
if is_prime:
primes.append(current_number)
yield current_number
current_number += 1
# primes: 2, 3, 5, 7, 11
# not p : 4, 6, 8, 9, 10
x = 2
for p in gen_primes():
if x > 10001:
print(p)
break
x += 1 | def gen_primes():
current_number = 2
primes = []
while True:
is_prime = True
for prime in primes:
if prime * prime > current_number:
break
if current_number % prime == 0:
is_prime = False
break
if is_prime:
primes.append(current_number)
yield current_number
current_number += 1
x = 2
for p in gen_primes():
if x > 10001:
print(p)
break
x += 1 |
def isPrime(x):
for i in range(2,x):
if x%i == 0:
return False
return True
def findPrime(beginning, finish):
for j in range(beginning,finish):
if isPrime(j):
return j
def encrypt():
print("Provide two integers")
x = int(input())
y = int(input())
prime1 = findPrime(x,y)
print("Provide two more integers")
x = int(input())
y = int(input())
prime2 = findPrime(x,y)
return prime1*prime2
print(encrypt(), encrypt())
# print("What is the number?")
# x=int(input())
# if isPrime(x):
# print(f"The number {x} is prime!")
# else:
# print("The number was not prime!")
| def is_prime(x):
for i in range(2, x):
if x % i == 0:
return False
return True
def find_prime(beginning, finish):
for j in range(beginning, finish):
if is_prime(j):
return j
def encrypt():
print('Provide two integers')
x = int(input())
y = int(input())
prime1 = find_prime(x, y)
print('Provide two more integers')
x = int(input())
y = int(input())
prime2 = find_prime(x, y)
return prime1 * prime2
print(encrypt(), encrypt()) |
# Gegeven zijn twee lijsten: lijst1 en lijst2
# Zoek alle elementen die beide lijsten gemeenschappelijk hebben
# Stop deze elementen in een nieuwe lijst
# Print de lijst met gemeenschappelijke elementen
lijst1 = [1, 45, 65, 24, 87, 45, 23, 24, 56]
lijst2 = [10, 76, 34, 1, 56, 22, 33, 77, 1]
| lijst1 = [1, 45, 65, 24, 87, 45, 23, 24, 56]
lijst2 = [10, 76, 34, 1, 56, 22, 33, 77, 1] |
class iterator:
def __init__(self,data):
self.data=data
self.index=-2
def __iter__(self):
return self
def __next__(self):
if self.index>=len(self.data):
raise StopIteration
self.index+=2
return self.data[self.index]
liczby=iterator([0,1,2,3,4,5,6,7])
print(next(liczby),end=', ')
print(next(liczby),end=', ')
print(next(liczby),end=', ')
print(next(liczby)) | class Iterator:
def __init__(self, data):
self.data = data
self.index = -2
def __iter__(self):
return self
def __next__(self):
if self.index >= len(self.data):
raise StopIteration
self.index += 2
return self.data[self.index]
liczby = iterator([0, 1, 2, 3, 4, 5, 6, 7])
print(next(liczby), end=', ')
print(next(liczby), end=', ')
print(next(liczby), end=', ')
print(next(liczby)) |
class RemovedInWagtail21Warning(DeprecationWarning):
pass
removed_in_next_version_warning = RemovedInWagtail21Warning
class RemovedInWagtail22Warning(PendingDeprecationWarning):
pass
| class Removedinwagtail21Warning(DeprecationWarning):
pass
removed_in_next_version_warning = RemovedInWagtail21Warning
class Removedinwagtail22Warning(PendingDeprecationWarning):
pass |
class ListNode(object):
"""
Definition fro singly-linked list.
"""
def __init__(self, val=0, next=None) -> None:
self.val = val
self.next = next | class Listnode(object):
"""
Definition fro singly-linked list.
"""
def __init__(self, val=0, next=None) -> None:
self.val = val
self.next = next |
"""
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
class Solution:
def postorder(self, root: 'Node') -> List[int]:
if root == None:
return []
res = []
for index in range(len(root.children)):
res += self.postorder(root.children[index])
res += [root.val]
return res
| """
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
class Solution:
def postorder(self, root: 'Node') -> List[int]:
if root == None:
return []
res = []
for index in range(len(root.children)):
res += self.postorder(root.children[index])
res += [root.val]
return res |
arr = list(map(int, input().split()))
n = int(input())
for i in range(len(arr)):
one = arr[i]
for j in range(i+1,len(arr)):
two = arr[j]
s = one + two
if s == n:
print(f'{one} {two}') | arr = list(map(int, input().split()))
n = int(input())
for i in range(len(arr)):
one = arr[i]
for j in range(i + 1, len(arr)):
two = arr[j]
s = one + two
if s == n:
print(f'{one} {two}') |
"""
Error Message for REST API
"""
CUSTOM_VISION_ACCESS_ERROR = \
('Training key or Endpoint is invalid. Please change the settings')
CUSTOM_VISION_MISSING_FIELD = \
('Either Namespace or Key is missing or incorrect. Please check again')
| """
Error Message for REST API
"""
custom_vision_access_error = 'Training key or Endpoint is invalid. Please change the settings'
custom_vision_missing_field = 'Either Namespace or Key is missing or incorrect. Please check again' |
def format(string):
''' Formats the docstring. '''
# reStructuredText formatting?
# Remove all \n and replace all spaces with a single space
string = ' '.join(list(filter(None, string.replace('\n', ' ').split(' '))))
return string
class DocString:
def __init__(self, string):
self.string = format(string)
def __str__(self):
return self.string
def __add__(self, other):
return str(self) + other
def __radd__(self, other):
return other + str(self) | def format(string):
""" Formats the docstring. """
string = ' '.join(list(filter(None, string.replace('\n', ' ').split(' '))))
return string
class Docstring:
def __init__(self, string):
self.string = format(string)
def __str__(self):
return self.string
def __add__(self, other):
return str(self) + other
def __radd__(self, other):
return other + str(self) |
class Solution:
def longestCommonPrefix(self, strs):
if strs == []:
return ""
ans = ""
for i, ch in enumerate(strs[0]): # iterate over the characters of first word
for j, s in enumerate(strs): # iterate over the list of words
if i >= len(strs[j]) or ch != s[i]: # IF the first word is longer
return ans # OR the characters do not match return answer string
ans += ch # ELSE add the current character to answer
return ans # all words are identical or longer than first
obj = Solution()
l = ["flower","flow","flight", "flipped"]
print("List of Words: {}" .format(l))
print("Answer: {}" .format(obj.longestCommonPrefix(l))) | class Solution:
def longest_common_prefix(self, strs):
if strs == []:
return ''
ans = ''
for (i, ch) in enumerate(strs[0]):
for (j, s) in enumerate(strs):
if i >= len(strs[j]) or ch != s[i]:
return ans
ans += ch
return ans
obj = solution()
l = ['flower', 'flow', 'flight', 'flipped']
print('List of Words: {}'.format(l))
print('Answer: {}'.format(obj.longestCommonPrefix(l))) |
# ---------------- User Configuration Settings for speed-cam.py ---------------------------------
# Ver 8.4 speed-cam.py webcam720 Stream Variable Configuration Settings
#######################################
# speed-cam.py plugin settings
#######################################
# Calibration Settings
# ===================
cal_obj_px = 310 # Length of a calibration object in pixels
cal_obj_mm = 4330.0 # Length of the calibration object in millimetres
# Motion Event Settings
# ---------------------
MIN_AREA = 100 # Default= 100 Exclude all contours less than or equal to this sq-px Area
x_diff_max = 200 # Default= 200 Exclude if max px away >= last motion event x pos
x_diff_min = 1 # Default= 1 Exclude if min px away <= last event x pos
track_timeout = 0.0 # Default= 0.0 Optional seconds to wait after track End (Avoid dual tracking)
event_timeout = 0.4 # Default= 0.4 seconds to wait for next motion event before starting new track
log_data_to_CSV = True # Default= True True= Save log data as CSV comma separated values
# Camera Settings
# ---------------
WEBCAM = True # Default= False False=PiCamera True=USB WebCamera
# Web Camera Settings
# -------------------
WEBCAM_SRC = 0 # Default= 0 USB opencv connection number
WEBCAM_WIDTH = 1280 # Default= 1280 USB Webcam Image width
WEBCAM_HEIGHT = 720 # Default= 720 USB Webcam Image height
# Camera Image Settings
# ---------------------
image_font_size = 20 # Default= 20 Font text height in px for text on images
image_bigger = 1 # Default= 1 Resize saved speed image by value
# ---------------------------------------------- End of User Variables -----------------------------------------------------
| cal_obj_px = 310
cal_obj_mm = 4330.0
min_area = 100
x_diff_max = 200
x_diff_min = 1
track_timeout = 0.0
event_timeout = 0.4
log_data_to_csv = True
webcam = True
webcam_src = 0
webcam_width = 1280
webcam_height = 720
image_font_size = 20
image_bigger = 1 |
def busca(lista, elemento):
for i in range(len(lista)):
if lista[i] == elemento:
return i
return False
o = busca([0,7,8,5,10], 10)
print(o) | def busca(lista, elemento):
for i in range(len(lista)):
if lista[i] == elemento:
return i
return False
o = busca([0, 7, 8, 5, 10], 10)
print(o) |
gem3 = (
(79, ("ING")),
)
gem2 = (
(5, ("TH")),
(41, ("EO")),
(79, ("NG")),
(83, ("OE")),
(101, ("AE")),
(107, ("IA", "IO")),
(109, ("EA")),
)
gem = (
(2, ("F")),
(3, ("U", "V")),
(7, ("O")),
(11, ("R")),
(13, ("C", "K")),
(17, ("G")),
(19, ("W")),
(23, ("H")),
(29, ("N")),
(31, ("I")),
(37, ("J")),
(43, ("P")),
(47, ("X")),
(53, ("S", "Z")),
(59, ("T")),
(61, ("B")),
(67, ("E")),
(71, ("M")),
(73, ("L")),
(89, ("D")),
(97, ("A")),
(103, ("Y")),
)
def enc_2(c, arr):
for g in arr:
if c.upper() in g[1]:
return g[0]
def enc(s):
sum = 0
i = 0
while i < len(s):
if i < len(s) - 2:
c = s[i] + s[i + 1] + s[i + 2]
o = enc_2(c, gem3)
if o > 0:
print("{0}, {1}".format(c, o))
sum += o
i += 3
continue
if i < len(s) - 1:
c = s[i] + s[i + 1]
o = enc_2(c, gem2)
if o > 0:
print("{0}, {1}".format(c, o))
sum += o
i += 2
continue
o = enc_2(s[i], gem)
if o > 0:
print("{0}, {1}".format(s[i], o))
sum += o
i += 1
return sum
sum = 0
for line in ["Like the instar, tunneling to the surface",
"We must shed our own circumferences;",
"Find the divinity within and emerge."
]:
o = enc(line)
print(o)
if sum == 0:
sum = o
else:
sum *= o
print(sum) | gem3 = ((79, 'ING'),)
gem2 = ((5, 'TH'), (41, 'EO'), (79, 'NG'), (83, 'OE'), (101, 'AE'), (107, ('IA', 'IO')), (109, 'EA'))
gem = ((2, 'F'), (3, ('U', 'V')), (7, 'O'), (11, 'R'), (13, ('C', 'K')), (17, 'G'), (19, 'W'), (23, 'H'), (29, 'N'), (31, 'I'), (37, 'J'), (43, 'P'), (47, 'X'), (53, ('S', 'Z')), (59, 'T'), (61, 'B'), (67, 'E'), (71, 'M'), (73, 'L'), (89, 'D'), (97, 'A'), (103, 'Y'))
def enc_2(c, arr):
for g in arr:
if c.upper() in g[1]:
return g[0]
def enc(s):
sum = 0
i = 0
while i < len(s):
if i < len(s) - 2:
c = s[i] + s[i + 1] + s[i + 2]
o = enc_2(c, gem3)
if o > 0:
print('{0}, {1}'.format(c, o))
sum += o
i += 3
continue
if i < len(s) - 1:
c = s[i] + s[i + 1]
o = enc_2(c, gem2)
if o > 0:
print('{0}, {1}'.format(c, o))
sum += o
i += 2
continue
o = enc_2(s[i], gem)
if o > 0:
print('{0}, {1}'.format(s[i], o))
sum += o
i += 1
return sum
sum = 0
for line in ['Like the instar, tunneling to the surface', 'We must shed our own circumferences;', 'Find the divinity within and emerge.']:
o = enc(line)
print(o)
if sum == 0:
sum = o
else:
sum *= o
print(sum) |
def part_1(data):
blah = {'n': (0, 1), 'ne': (1, 0), 'se': (1, -1),
's': (0, -1), 'sw': (-1, 0), 'nw': (-1, 1)}
x, y = 0, 0
for step in data.split(","):
x, y = x + blah[step][0], y + blah[step][1]
distance = (abs(x) + abs(y) + abs(-x-y)) // 2
return distance
def part_2(data):
blah = {'n': (0, 1), 'ne': (1, 0), 'se': (1, -1),
's': (0, -1), 'sw': (-1, 0), 'nw': (-1, 1)}
x, y = 0, 0
max_distance = 0
for step in data.split(','):
x, y = x + blah[step][0], y + blah[step][1]
distance = (abs(x) + abs(y) + abs(-x-y)) // 2
max_distance = max(max_distance, distance)
return max_distance
if __name__ == '__main__':
with open('day_11_input.txt') as f:
inp = f.readlines()[0]
print("Part 1 answer: " + str(part_1(inp)))
print("Part 2 answer: " + str(part_2(inp))) | def part_1(data):
blah = {'n': (0, 1), 'ne': (1, 0), 'se': (1, -1), 's': (0, -1), 'sw': (-1, 0), 'nw': (-1, 1)}
(x, y) = (0, 0)
for step in data.split(','):
(x, y) = (x + blah[step][0], y + blah[step][1])
distance = (abs(x) + abs(y) + abs(-x - y)) // 2
return distance
def part_2(data):
blah = {'n': (0, 1), 'ne': (1, 0), 'se': (1, -1), 's': (0, -1), 'sw': (-1, 0), 'nw': (-1, 1)}
(x, y) = (0, 0)
max_distance = 0
for step in data.split(','):
(x, y) = (x + blah[step][0], y + blah[step][1])
distance = (abs(x) + abs(y) + abs(-x - y)) // 2
max_distance = max(max_distance, distance)
return max_distance
if __name__ == '__main__':
with open('day_11_input.txt') as f:
inp = f.readlines()[0]
print('Part 1 answer: ' + str(part_1(inp)))
print('Part 2 answer: ' + str(part_2(inp))) |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 18 12:00:00 2020
@author: divyanshvinayak
"""
for _ in range(int(input())):
N, K = map(int, input().split())
A = list(map(int, input().split()))
print(sum(A) % K) | """
Created on Tue Feb 18 12:00:00 2020
@author: divyanshvinayak
"""
for _ in range(int(input())):
(n, k) = map(int, input().split())
a = list(map(int, input().split()))
print(sum(A) % K) |
# -*- coding: utf-8 -*-
"""
Global tables and re-usable fields
"""
# =============================================================================
# Representations for Auth Users & Groups
def shn_user_represent(id):
table = db.auth_user
user = db(table.id == id).select(table.email, limitby=(0, 1), cache=(cache.ram, 10)).first()
if user:
return user.email
return None
def shn_role_represent(id):
table = db.auth_group
role = db(table.id == id).select(table.role, limitby=(0, 1), cache=(cache.ram, 10)).first()
if role:
return role.role
return None
# =============================================================================
# "Reusable" fields for table meta-data
# -----------------------------------------------------------------------------
# Record identity meta-fields
# Use URNs according to http://tools.ietf.org/html/rfc4122
s3uuid = SQLCustomType(
type = "string",
native = "VARCHAR(128)",
encoder = (lambda x: "'%s'" % (uuid.uuid4().urn if x == "" else str(x).replace("'", "''"))),
decoder = (lambda x: x)
)
# Universally unique identifier for a record
meta_uuid = S3ReusableField("uuid",
type=s3uuid,
length=128,
notnull=True,
unique=True,
readable=False,
writable=False,
default="")
# Master-Copy-Index (for Sync)
meta_mci = S3ReusableField("mci", "integer",
default=0,
readable=False,
writable=False)
def s3_uid():
return (meta_uuid(), meta_mci())
# -----------------------------------------------------------------------------
# Record soft-deletion meta-fields
# "Deleted"-flag
meta_deletion_status = S3ReusableField("deleted", "boolean",
readable=False,
writable=False,
default=False)
# Parked foreign keys of a deleted record
# => to be restored upon "un"-delete
meta_deletion_fk = S3ReusableField("deleted_fk", #"text",
readable=False,
writable=False)
def s3_deletion_status():
return (meta_deletion_status(), meta_deletion_fk())
# -----------------------------------------------------------------------------
# Record timestamp meta-fields
meta_created_on = S3ReusableField("created_on", "datetime",
readable=False,
writable=False,
default=request.utcnow)
meta_modified_on = S3ReusableField("modified_on", "datetime",
readable=False,
writable=False,
default=request.utcnow,
update=request.utcnow)
def s3_timestamp():
return (meta_created_on(), meta_modified_on())
# -----------------------------------------------------------------------------
# Record authorship meta-fields
# Author of a record
meta_created_by = S3ReusableField("created_by", db.auth_user,
readable=False, # Enable when needed, not by default
writable=False,
requires=None,
default=session.auth.user.id if auth.is_logged_in() else None,
represent=lambda id: id and shn_user_represent(id) or UNKNOWN_OPT,
ondelete="RESTRICT")
# Last author of a record
meta_modified_by = S3ReusableField("modified_by", db.auth_user,
readable=False, # Enable when needed, not by default
writable=False,
requires=None,
default=session.auth.user.id if auth.is_logged_in() else None,
update=session.auth.user.id if auth.is_logged_in() else None,
represent=lambda id: id and shn_user_represent(id) or UNKNOWN_OPT,
ondelete="RESTRICT")
def s3_authorstamp():
return (meta_created_by(),
meta_modified_by())
# -----------------------------------------------------------------------------
# Record ownership meta-fields
# Individual user who owns the record
meta_owned_by_user = S3ReusableField("owned_by_user", db.auth_user,
readable=False, # Enable when needed, not by default
writable=False,
requires=None,
default=session.auth.user.id if auth.is_logged_in() else None,
represent=lambda id: id and shn_user_represent(id) or UNKNOWN_OPT,
ondelete="RESTRICT")
# Role of users who collectively own the record
meta_owned_by_role = S3ReusableField("owned_by_role", db.auth_group,
readable=False, # Enable when needed, not by default
writable=False,
requires=None,
default=None,
represent=lambda id: id and shn_role_represent(id) or UNKNOWN_OPT,
ondelete="RESTRICT")
def s3_ownerstamp():
return (meta_owned_by_user(),
meta_owned_by_role())
# -----------------------------------------------------------------------------
# Common meta-fields
def s3_meta_fields():
fields = (meta_uuid(),
meta_mci(),
meta_deletion_status(),
meta_deletion_fk(),
meta_created_on(),
meta_modified_on(),
meta_created_by(),
meta_modified_by(),
meta_owned_by_user(),
meta_owned_by_role())
return fields
# =============================================================================
# Reusable roles fields for map layer permissions management (GIS)
role_required = S3ReusableField("role_required", db.auth_group, sortby="role",
requires = IS_NULL_OR(IS_ONE_OF(db, "auth_group.id", "%(role)s", zero=T("Public"))),
widget = S3AutocompleteWidget(request, "auth", "group", fieldname="role"),
represent = lambda id: shn_role_represent(id),
label = T("Role Required"),
comment = DIV(_class="tooltip",
_title=T("Role Required") + "|" + T("If this record should be restricted then select which role is required to access the record here.")),
ondelete = "RESTRICT")
roles_permitted = S3ReusableField("roles_permitted", db.auth_group, sortby="role",
requires = IS_NULL_OR(IS_ONE_OF(db, "auth_group.id", "%(role)s", multiple=True)),
# @ToDo
#widget = S3CheckboxesWidget(db,
# lookup_table_name = "auth_group",
# lookup_field_name = "role",
# multiple = True),
represent = lambda id: shn_role_represent(id),
label = T("Roles Permitted"),
comment = DIV(_class="tooltip",
_title=T("Roles Permitted") + "|" + T("If this record should be restricted then select which role(s) are permitted to access the record here.")),
ondelete = "RESTRICT")
# =============================================================================
# Other reusable fields
# -----------------------------------------------------------------------------
# comments field to include in other table definitions
comments = S3ReusableField("comments", "text",
label = T("Comments"),
comment = DIV(_class="tooltip",
_title=T("Comments") + "|" + T("Please use this field to record any additional information, including a history of the record if it is updated.")))
# -----------------------------------------------------------------------------
# Reusable currency field to include in other table definitions
currency_type_opts = {
1:T("Dollars"),
2:T("Euros"),
3:T("Pounds")
}
currency_type = S3ReusableField("currency_type", "integer",
notnull=True,
requires = IS_IN_SET(currency_type_opts, zero=None),
#default = 1,
label = T("Currency"),
represent = lambda opt: \
currency_type_opts.get(opt, UNKNOWN_OPT))
# =============================================================================
# Default CRUD strings
ADD_RECORD = T("Add Record")
LIST_RECORDS = T("List Records")
s3.crud_strings = Storage(
title_create = ADD_RECORD,
title_display = T("Record Details"),
title_list = LIST_RECORDS,
title_update = T("Edit Record"),
title_search = T("Search Records"),
subtitle_create = T("Add New Record"),
subtitle_list = T("Available Records"),
label_list_button = LIST_RECORDS,
label_create_button = ADD_RECORD,
label_delete_button = T("Delete Record"),
msg_record_created = T("Record added"),
msg_record_modified = T("Record updated"),
msg_record_deleted = T("Record deleted"),
msg_list_empty = T("No Records currently available"),
msg_no_match = T("No Records matching the query"))
# =============================================================================
# Common tables
# -----------------------------------------------------------------------------
# Theme
module = "admin"
resource = "theme"
tablename = "%s_%s" % (module, resource)
table = db.define_table(tablename,
Field("name"),
Field("logo"),
Field("header_background"),
Field("col_background"),
Field("col_txt"),
Field("col_txt_background"),
Field("col_txt_border"),
Field("col_txt_underline"),
Field("col_menu"),
Field("col_highlight"),
Field("col_input"),
Field("col_border_btn_out"),
Field("col_border_btn_in"),
Field("col_btn_hover"),
migrate=migrate)
table.name.requires = [IS_NOT_EMPTY(), IS_NOT_ONE_OF(db, "%s.name" % tablename)]
table.col_background.requires = IS_HTML_COLOUR()
table.col_txt.requires = IS_HTML_COLOUR()
table.col_txt_background.requires = IS_HTML_COLOUR()
table.col_txt_border.requires = IS_HTML_COLOUR()
table.col_txt_underline.requires = IS_HTML_COLOUR()
table.col_menu.requires = IS_HTML_COLOUR()
table.col_highlight.requires = IS_HTML_COLOUR()
table.col_input.requires = IS_HTML_COLOUR()
table.col_border_btn_out.requires = IS_HTML_COLOUR()
table.col_border_btn_in.requires = IS_HTML_COLOUR()
table.col_btn_hover.requires = IS_HTML_COLOUR()
# -----------------------------------------------------------------------------
# Settings - systemwide
module = "s3"
s3_setting_security_policy_opts = {
1:T("simple"),
2:T("editor"),
3:T("full")
}
# @ToDo Move these to deployment_settings
resource = "setting"
tablename = "%s_%s" % (module, resource)
table = db.define_table(tablename,
meta_uuid(),
Field("admin_name"),
Field("admin_email"),
Field("admin_tel"),
Field("theme", db.admin_theme),
migrate=migrate, *s3_timestamp())
table.theme.requires = IS_IN_DB(db, "admin_theme.id", "admin_theme.name", zero=None)
table.theme.represent = lambda name: db(db.admin_theme.id == name).select(db.admin_theme.name, limitby=(0, 1)).first().name
# Define CRUD strings (NB These apply to all Modules' "settings" too)
ADD_SETTING = T("Add Setting")
LIST_SETTINGS = T("List Settings")
s3.crud_strings[resource] = Storage(
title_create = ADD_SETTING,
title_display = T("Setting Details"),
title_list = LIST_SETTINGS,
title_update = T("Edit Setting"),
title_search = T("Search Settings"),
subtitle_create = T("Add New Setting"),
subtitle_list = T("Settings"),
label_list_button = LIST_SETTINGS,
label_create_button = ADD_SETTING,
msg_record_created = T("Setting added"),
msg_record_modified = T("Setting updated"),
msg_record_deleted = T("Setting deleted"),
msg_list_empty = T("No Settings currently defined"))
# =============================================================================
| """
Global tables and re-usable fields
"""
def shn_user_represent(id):
table = db.auth_user
user = db(table.id == id).select(table.email, limitby=(0, 1), cache=(cache.ram, 10)).first()
if user:
return user.email
return None
def shn_role_represent(id):
table = db.auth_group
role = db(table.id == id).select(table.role, limitby=(0, 1), cache=(cache.ram, 10)).first()
if role:
return role.role
return None
s3uuid = sql_custom_type(type='string', native='VARCHAR(128)', encoder=lambda x: "'%s'" % (uuid.uuid4().urn if x == '' else str(x).replace("'", "''")), decoder=lambda x: x)
meta_uuid = s3_reusable_field('uuid', type=s3uuid, length=128, notnull=True, unique=True, readable=False, writable=False, default='')
meta_mci = s3_reusable_field('mci', 'integer', default=0, readable=False, writable=False)
def s3_uid():
return (meta_uuid(), meta_mci())
meta_deletion_status = s3_reusable_field('deleted', 'boolean', readable=False, writable=False, default=False)
meta_deletion_fk = s3_reusable_field('deleted_fk', readable=False, writable=False)
def s3_deletion_status():
return (meta_deletion_status(), meta_deletion_fk())
meta_created_on = s3_reusable_field('created_on', 'datetime', readable=False, writable=False, default=request.utcnow)
meta_modified_on = s3_reusable_field('modified_on', 'datetime', readable=False, writable=False, default=request.utcnow, update=request.utcnow)
def s3_timestamp():
return (meta_created_on(), meta_modified_on())
meta_created_by = s3_reusable_field('created_by', db.auth_user, readable=False, writable=False, requires=None, default=session.auth.user.id if auth.is_logged_in() else None, represent=lambda id: id and shn_user_represent(id) or UNKNOWN_OPT, ondelete='RESTRICT')
meta_modified_by = s3_reusable_field('modified_by', db.auth_user, readable=False, writable=False, requires=None, default=session.auth.user.id if auth.is_logged_in() else None, update=session.auth.user.id if auth.is_logged_in() else None, represent=lambda id: id and shn_user_represent(id) or UNKNOWN_OPT, ondelete='RESTRICT')
def s3_authorstamp():
return (meta_created_by(), meta_modified_by())
meta_owned_by_user = s3_reusable_field('owned_by_user', db.auth_user, readable=False, writable=False, requires=None, default=session.auth.user.id if auth.is_logged_in() else None, represent=lambda id: id and shn_user_represent(id) or UNKNOWN_OPT, ondelete='RESTRICT')
meta_owned_by_role = s3_reusable_field('owned_by_role', db.auth_group, readable=False, writable=False, requires=None, default=None, represent=lambda id: id and shn_role_represent(id) or UNKNOWN_OPT, ondelete='RESTRICT')
def s3_ownerstamp():
return (meta_owned_by_user(), meta_owned_by_role())
def s3_meta_fields():
fields = (meta_uuid(), meta_mci(), meta_deletion_status(), meta_deletion_fk(), meta_created_on(), meta_modified_on(), meta_created_by(), meta_modified_by(), meta_owned_by_user(), meta_owned_by_role())
return fields
role_required = s3_reusable_field('role_required', db.auth_group, sortby='role', requires=is_null_or(is_one_of(db, 'auth_group.id', '%(role)s', zero=t('Public'))), widget=s3_autocomplete_widget(request, 'auth', 'group', fieldname='role'), represent=lambda id: shn_role_represent(id), label=t('Role Required'), comment=div(_class='tooltip', _title=t('Role Required') + '|' + t('If this record should be restricted then select which role is required to access the record here.')), ondelete='RESTRICT')
roles_permitted = s3_reusable_field('roles_permitted', db.auth_group, sortby='role', requires=is_null_or(is_one_of(db, 'auth_group.id', '%(role)s', multiple=True)), represent=lambda id: shn_role_represent(id), label=t('Roles Permitted'), comment=div(_class='tooltip', _title=t('Roles Permitted') + '|' + t('If this record should be restricted then select which role(s) are permitted to access the record here.')), ondelete='RESTRICT')
comments = s3_reusable_field('comments', 'text', label=t('Comments'), comment=div(_class='tooltip', _title=t('Comments') + '|' + t('Please use this field to record any additional information, including a history of the record if it is updated.')))
currency_type_opts = {1: t('Dollars'), 2: t('Euros'), 3: t('Pounds')}
currency_type = s3_reusable_field('currency_type', 'integer', notnull=True, requires=is_in_set(currency_type_opts, zero=None), label=t('Currency'), represent=lambda opt: currency_type_opts.get(opt, UNKNOWN_OPT))
add_record = t('Add Record')
list_records = t('List Records')
s3.crud_strings = storage(title_create=ADD_RECORD, title_display=t('Record Details'), title_list=LIST_RECORDS, title_update=t('Edit Record'), title_search=t('Search Records'), subtitle_create=t('Add New Record'), subtitle_list=t('Available Records'), label_list_button=LIST_RECORDS, label_create_button=ADD_RECORD, label_delete_button=t('Delete Record'), msg_record_created=t('Record added'), msg_record_modified=t('Record updated'), msg_record_deleted=t('Record deleted'), msg_list_empty=t('No Records currently available'), msg_no_match=t('No Records matching the query'))
module = 'admin'
resource = 'theme'
tablename = '%s_%s' % (module, resource)
table = db.define_table(tablename, field('name'), field('logo'), field('header_background'), field('col_background'), field('col_txt'), field('col_txt_background'), field('col_txt_border'), field('col_txt_underline'), field('col_menu'), field('col_highlight'), field('col_input'), field('col_border_btn_out'), field('col_border_btn_in'), field('col_btn_hover'), migrate=migrate)
table.name.requires = [is_not_empty(), is_not_one_of(db, '%s.name' % tablename)]
table.col_background.requires = is_html_colour()
table.col_txt.requires = is_html_colour()
table.col_txt_background.requires = is_html_colour()
table.col_txt_border.requires = is_html_colour()
table.col_txt_underline.requires = is_html_colour()
table.col_menu.requires = is_html_colour()
table.col_highlight.requires = is_html_colour()
table.col_input.requires = is_html_colour()
table.col_border_btn_out.requires = is_html_colour()
table.col_border_btn_in.requires = is_html_colour()
table.col_btn_hover.requires = is_html_colour()
module = 's3'
s3_setting_security_policy_opts = {1: t('simple'), 2: t('editor'), 3: t('full')}
resource = 'setting'
tablename = '%s_%s' % (module, resource)
table = db.define_table(tablename, meta_uuid(), field('admin_name'), field('admin_email'), field('admin_tel'), field('theme', db.admin_theme), *s3_timestamp(), migrate=migrate)
table.theme.requires = is_in_db(db, 'admin_theme.id', 'admin_theme.name', zero=None)
table.theme.represent = lambda name: db(db.admin_theme.id == name).select(db.admin_theme.name, limitby=(0, 1)).first().name
add_setting = t('Add Setting')
list_settings = t('List Settings')
s3.crud_strings[resource] = storage(title_create=ADD_SETTING, title_display=t('Setting Details'), title_list=LIST_SETTINGS, title_update=t('Edit Setting'), title_search=t('Search Settings'), subtitle_create=t('Add New Setting'), subtitle_list=t('Settings'), label_list_button=LIST_SETTINGS, label_create_button=ADD_SETTING, msg_record_created=t('Setting added'), msg_record_modified=t('Setting updated'), msg_record_deleted=t('Setting deleted'), msg_list_empty=t('No Settings currently defined')) |
#!/bin/zsh
class Person:
def __init__(self, name, age):
mysillyobject.name = name
mysillyobject.age = age
def myfunc(abc):
print("Hello my name is " + abc.name)
p1 = Person("John", 36)
p1.myfunc() | class Person:
def __init__(self, name, age):
mysillyobject.name = name
mysillyobject.age = age
def myfunc(abc):
print('Hello my name is ' + abc.name)
p1 = person('John', 36)
p1.myfunc() |
class SmRestartEnum(basestring):
"""
always|never|default
Possible values:
<ul>
<li> "always" ,
<li> "never" ,
<li> "default"
</ul>
"""
@staticmethod
def get_api_name():
return "sm-restart-enum"
| class Smrestartenum(basestring):
"""
always|never|default
Possible values:
<ul>
<li> "always" ,
<li> "never" ,
<li> "default"
</ul>
"""
@staticmethod
def get_api_name():
return 'sm-restart-enum' |
def TrimmedMean(UpCoverage):
nonzero_count = 0
for i in range(1,50):
if (UpCoverage[-i]>0):
nonzero_count += 1
total = 0
count=0
for cov in UpCoverage:
if(cov>0):
total += cov
count += 1
trimMean = 0
if nonzero_count > 0 and count >20:
#if count >20:
trimMean = total/count;
return trimMean
| def trimmed_mean(UpCoverage):
nonzero_count = 0
for i in range(1, 50):
if UpCoverage[-i] > 0:
nonzero_count += 1
total = 0
count = 0
for cov in UpCoverage:
if cov > 0:
total += cov
count += 1
trim_mean = 0
if nonzero_count > 0 and count > 20:
trim_mean = total / count
return trimMean |
N = int(input())
gradeReal = list(map(int, input().split()))
M = max(gradeReal)
gradeNew = 0
for i in gradeReal:
gradeNew += (i / M * 100)
print(gradeNew / N) | n = int(input())
grade_real = list(map(int, input().split()))
m = max(gradeReal)
grade_new = 0
for i in gradeReal:
grade_new += i / M * 100
print(gradeNew / N) |
# -*- coding: utf-8 -*-
"""Entry point for the Nessie Airflow provider.
Contains important descriptions for registering to Airflow
"""
__version__ = "0.1.2"
def get_provider_info() -> dict:
"""Hook for Airflow."""
return {
"package-name": "airflow-provider-nessie",
"name": "Nessie Airflow Provider",
"description": "An Airflow provider for Project Nessie",
"hook-class-names": ["airflow_provider_nessie.hooks.nessie_hook.NessieHook"],
"versions": [__version__],
}
| """Entry point for the Nessie Airflow provider.
Contains important descriptions for registering to Airflow
"""
__version__ = '0.1.2'
def get_provider_info() -> dict:
"""Hook for Airflow."""
return {'package-name': 'airflow-provider-nessie', 'name': 'Nessie Airflow Provider', 'description': 'An Airflow provider for Project Nessie', 'hook-class-names': ['airflow_provider_nessie.hooks.nessie_hook.NessieHook'], 'versions': [__version__]} |
universalSet={23,32,12,45,56,67,7,89,80,96}
subSetList=[{23,32,12,45},{32,12,45,56},{56,67,7,89},{80,96},{12,45,56,67,7,89},{7,89,80,96},{89,80,96}]
def getMinSubSetList(universalSet,subSetList):
SetDs=[[i,len(i)] for i in subSetList]
tempSet=set()
setList=[]
while(len(universalSet)!=0):
print("\n++++++++++++++++++++++++++++++++\n")
SetDs=sorted(SetDs,key=lambda x :x[1])
print("@@@@@@\n",SetDs,"\n@@@@@@@@@@@@|\n")
tmpSet=SetDs.pop()[0]
print(tmpSet)
setList.append(tmpSet)
tempSet=tempSet.union(tmpSet)
print(tempSet)
universalSet.difference_update(tempSet)
SetDsi=SetDs
SetDs=[]
for elem in SetDsi:
tmp=len(elem[0])-len(elem[0].intersection(tempSet))
print("#############\n",elem[0],tempSet,elem[1],tmp,universalSet,"\n############")
SetDs.append([elem[0],tmp])
print("\n########DSI\n",SetDs,"\n########\n")
return setList
print(getMinSubSetList(universalSet,subSetList)) | universal_set = {23, 32, 12, 45, 56, 67, 7, 89, 80, 96}
sub_set_list = [{23, 32, 12, 45}, {32, 12, 45, 56}, {56, 67, 7, 89}, {80, 96}, {12, 45, 56, 67, 7, 89}, {7, 89, 80, 96}, {89, 80, 96}]
def get_min_sub_set_list(universalSet, subSetList):
set_ds = [[i, len(i)] for i in subSetList]
temp_set = set()
set_list = []
while len(universalSet) != 0:
print('\n++++++++++++++++++++++++++++++++\n')
set_ds = sorted(SetDs, key=lambda x: x[1])
print('@@@@@@\n', SetDs, '\n@@@@@@@@@@@@|\n')
tmp_set = SetDs.pop()[0]
print(tmpSet)
setList.append(tmpSet)
temp_set = tempSet.union(tmpSet)
print(tempSet)
universalSet.difference_update(tempSet)
set_dsi = SetDs
set_ds = []
for elem in SetDsi:
tmp = len(elem[0]) - len(elem[0].intersection(tempSet))
print('#############\n', elem[0], tempSet, elem[1], tmp, universalSet, '\n############')
SetDs.append([elem[0], tmp])
print('\n########DSI\n', SetDs, '\n########\n')
return setList
print(get_min_sub_set_list(universalSet, subSetList)) |
class RMCError(Exception):
def __init__(self, message):
Exception.__init__(self, message)
self.__line_number=None
def set_line_number(self, new_line_number):
self.__line_number=new_line_number
def get_line_number(self):
return self.__line_number
#operations throws RMCError if not successful
#throws also for +1, +2 and so on (but also -1)
def asNonnegInt(literal, must_be_positive=False, lit_name="unknown"):
condition="positive" if must_be_positive else "nonnegative"
if not literal.isdigit():
raise RMCError(lit_name+" must be a "+condition+" integer, found "+literal)
res=int(literal)
if must_be_positive and res==0:
raise RMCError(lit_name+" must be a "+condition+" integer, found "+literal)
return res
| class Rmcerror(Exception):
def __init__(self, message):
Exception.__init__(self, message)
self.__line_number = None
def set_line_number(self, new_line_number):
self.__line_number = new_line_number
def get_line_number(self):
return self.__line_number
def as_nonneg_int(literal, must_be_positive=False, lit_name='unknown'):
condition = 'positive' if must_be_positive else 'nonnegative'
if not literal.isdigit():
raise rmc_error(lit_name + ' must be a ' + condition + ' integer, found ' + literal)
res = int(literal)
if must_be_positive and res == 0:
raise rmc_error(lit_name + ' must be a ' + condition + ' integer, found ' + literal)
return res |
TO_BIN = {'0': '0000', '1': '0001', '2': '0010', '3': '0011',
'4': '0100', '5': '0101', '6': '0110', '7': '0111',
'8': '1000', '9': '1001', 'a': '1010', 'b': '1011',
'c': '1100', 'd': '1101', 'e': '1110', 'f': '1111'}
TO_HEX = {v: k for k, v in TO_BIN.iteritems()}
def hex_to_bin(hex_string):
return ''.join(TO_BIN[a] for a in hex_string.lower()).lstrip('0') or '0'
# return '{:b}'.format(int(hex_string, 16))
def bin_to_hex(binary_string):
length = len(binary_string)
q, r = divmod(length, 4)
if r > 0:
length = 4 * (q + 1)
binary_string = binary_string.zfill(length)
return ''.join(TO_HEX[binary_string[a:a + 4]]
for a in xrange(0, length, 4)).lstrip('0') or '0'
# return '{:x}'.format(int(binary_string, 2))
| to_bin = {'0': '0000', '1': '0001', '2': '0010', '3': '0011', '4': '0100', '5': '0101', '6': '0110', '7': '0111', '8': '1000', '9': '1001', 'a': '1010', 'b': '1011', 'c': '1100', 'd': '1101', 'e': '1110', 'f': '1111'}
to_hex = {v: k for (k, v) in TO_BIN.iteritems()}
def hex_to_bin(hex_string):
return ''.join((TO_BIN[a] for a in hex_string.lower())).lstrip('0') or '0'
def bin_to_hex(binary_string):
length = len(binary_string)
(q, r) = divmod(length, 4)
if r > 0:
length = 4 * (q + 1)
binary_string = binary_string.zfill(length)
return ''.join((TO_HEX[binary_string[a:a + 4]] for a in xrange(0, length, 4))).lstrip('0') or '0' |
def table(positionsList):
print("\n\t Tic-Tac-Toe")
print("\t~~~~~~~~~~~~~~~~~")
print("\t|| {} || {} || {} ||".format(positionsList[0], positionsList[1], positionsList[2]))
print("\t|| {} || {} || {} ||".format(positionsList[3], positionsList[4], positionsList[5]))
print("\t|| {} || {} || {} ||".format(positionsList[6], positionsList[7], positionsList[8]))
print("\t~~~~~~~~~~~~~~~~~")
def playerMove(playerLetter, positionsList):
while True:
playerPos = int(input("{}: Where would you like to place your piece (1-9): ".format(playerLetter)))
if playerPos > 0 and playerPos < 10:
if positionsList[playerPos - 1] == "_":
return playerPos
else:
print("That position is already chosen. Try another spot.")
else:
print("That is not a right option. Try a number between (1-9).")
def placePlayerTable(playerLetter, playerPos, positionsList):
positionsList[playerPos - 1] = playerLetter
def winner(pLet, posList):
return ((posList[0] == pLet and posList[1] == pLet and posList[2] == pLet) or
(posList[3] == pLet and posList[4] == pLet and posList[5] == pLet) or
(posList[6] == pLet and posList[7] == pLet and posList[8] == pLet) or
(posList[0] == pLet and posList[3] == pLet and posList[6] == pLet) or
(posList[1] == pLet and posList[4] == pLet and posList[7] == pLet) or
(posList[2] == pLet and posList[5] == pLet and posList[8] == pLet) or
(posList[0] == pLet and posList[4] == pLet and posList[8] == pLet) or
(posList[2] == pLet and posList[4] == pLet and posList[6] == pLet))
listGame = ["_"]*9
exampleTab = ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
player1 = "X"
player2 = "O"
table(exampleTab)
table(listGame)
while True:
#player 1
move = playerMove(player1, listGame)
placePlayerTable(player1, move, listGame)
table(exampleTab)
table(listGame)
if winner(player1, listGame):
print("Player 1 wins!")
break
elif "_" not in listGame:
print("Was a tie!")
break
#player 2
move = playerMove(player2, listGame)
placePlayerTable(player2, move, listGame)
table(exampleTab)
table(listGame)
if winner(player2, listGame):
print("Player 2 wins!")
break | def table(positionsList):
print('\n\t Tic-Tac-Toe')
print('\t~~~~~~~~~~~~~~~~~')
print('\t|| {} || {} || {} ||'.format(positionsList[0], positionsList[1], positionsList[2]))
print('\t|| {} || {} || {} ||'.format(positionsList[3], positionsList[4], positionsList[5]))
print('\t|| {} || {} || {} ||'.format(positionsList[6], positionsList[7], positionsList[8]))
print('\t~~~~~~~~~~~~~~~~~')
def player_move(playerLetter, positionsList):
while True:
player_pos = int(input('{}: Where would you like to place your piece (1-9): '.format(playerLetter)))
if playerPos > 0 and playerPos < 10:
if positionsList[playerPos - 1] == '_':
return playerPos
else:
print('That position is already chosen. Try another spot.')
else:
print('That is not a right option. Try a number between (1-9).')
def place_player_table(playerLetter, playerPos, positionsList):
positionsList[playerPos - 1] = playerLetter
def winner(pLet, posList):
return posList[0] == pLet and posList[1] == pLet and (posList[2] == pLet) or (posList[3] == pLet and posList[4] == pLet and (posList[5] == pLet)) or (posList[6] == pLet and posList[7] == pLet and (posList[8] == pLet)) or (posList[0] == pLet and posList[3] == pLet and (posList[6] == pLet)) or (posList[1] == pLet and posList[4] == pLet and (posList[7] == pLet)) or (posList[2] == pLet and posList[5] == pLet and (posList[8] == pLet)) or (posList[0] == pLet and posList[4] == pLet and (posList[8] == pLet)) or (posList[2] == pLet and posList[4] == pLet and (posList[6] == pLet))
list_game = ['_'] * 9
example_tab = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
player1 = 'X'
player2 = 'O'
table(exampleTab)
table(listGame)
while True:
move = player_move(player1, listGame)
place_player_table(player1, move, listGame)
table(exampleTab)
table(listGame)
if winner(player1, listGame):
print('Player 1 wins!')
break
elif '_' not in listGame:
print('Was a tie!')
break
move = player_move(player2, listGame)
place_player_table(player2, move, listGame)
table(exampleTab)
table(listGame)
if winner(player2, listGame):
print('Player 2 wins!')
break |
def Spline(*points):
assert len(points) >= 2
return _SplineEval(points, _SplineNormal(points))
def Spline1(points, s0, sn):
assert len(points) >= 2
points = tuple(points)
s0 = float(s0)
sn = float(sn)
return _SplineEval(points, _SplineFirstDeriv(points, s0, sn))
def _IPolyMult(prod, poly):
if not prod:
return
if not poly:
prod[:] = []
return
for i in xrange(len(poly)-1):
prod.append(0)
for i in xrange(len(prod)-1, -1, -1):
for j in xrange(len(poly)):
if j == 0:
prod[i] = poly[j]*prod[i]
elif i >= j:
prod[i] += poly[j]*prod[i-j]
def _IPolyAdd(sum, poly):
for i in xrange(len(poly)):
if i == len(sum):
sum.append(poly[i])
else:
sum[i] += poly[i]
def _PolyCompose(f, g):
sum = []
for i in xrange(len(f) - 1, -1, -1):
_IPolyMult(sum, g)
_IPolyAdd(sum, [f[i]])
return sum
def _PolyEval(f, x):
sum = 0
for i in xrange(len(f) - 1, -1, -1):
sum = sum*x + f[i]
return sum
def _IPoly3Fit(poly3, x, y):
actual = _PolyEval(poly3, x)
poly3[3] = float(y - actual) / x**3
def _Poly3Shift(poly3, x):
result = _PolyCompose(poly3, [x, 1.0])
result[3] = 0.0
return result
def _Spline(points, x, x2):
assert points
cubic = [float(points[0][1]), x, x2, 0.0]
result = []
for i in xrange(len(points)-1):
xdiff = float(points[i+1][0]-points[i][0])
_IPoly3Fit(cubic, xdiff, float(points[i+1][1]))
result.append(cubic)
cubic = _Poly3Shift(cubic, xdiff)
result.append(cubic)
return result
def _SplineNormal(points):
splines0 = _Spline(points, 0.0, 0.0)
splines1 = _Spline(points, 1.0, 0.0)
plen = len(points)
end2nd0 = splines0[plen-1][2]
end2nd1 = splines1[plen-1][2]
start1st = -end2nd0 / (end2nd1-end2nd0)
return _Spline(points, start1st, 0.0)
def _SplineFirstDeriv(points, s0, sn):
splines0 = _Spline(points, s0, 0.0)
splines1 = _Spline(points, s0, 1.0)
plen = len(points)
end1st0 = splines0[plen-1][1]
end1st1 = splines1[plen-1][1]
start2nd = (sn - end1st0) / (end1st1 - end1st0)
return _Spline(points, s0, start2nd)
class _SplineEval(object):
def __init__(self, points, splines):
self._points = points
self._splines = splines
def __call__(self, x):
plen = len(self._points)
assert x >= self._points[0][0]
assert x <= self._points[plen-1][0]
first = 0
last = plen-1
while first + 1 < last:
mid = (first + last) / 2
if x >= self._points[mid][0]:
first = mid
else:
last = mid
return _PolyEval(self._splines[first], x - self._points[first][0])
| def spline(*points):
assert len(points) >= 2
return __spline_eval(points, __spline_normal(points))
def spline1(points, s0, sn):
assert len(points) >= 2
points = tuple(points)
s0 = float(s0)
sn = float(sn)
return __spline_eval(points, __spline_first_deriv(points, s0, sn))
def _i_poly_mult(prod, poly):
if not prod:
return
if not poly:
prod[:] = []
return
for i in xrange(len(poly) - 1):
prod.append(0)
for i in xrange(len(prod) - 1, -1, -1):
for j in xrange(len(poly)):
if j == 0:
prod[i] = poly[j] * prod[i]
elif i >= j:
prod[i] += poly[j] * prod[i - j]
def _i_poly_add(sum, poly):
for i in xrange(len(poly)):
if i == len(sum):
sum.append(poly[i])
else:
sum[i] += poly[i]
def __poly_compose(f, g):
sum = []
for i in xrange(len(f) - 1, -1, -1):
_i_poly_mult(sum, g)
_i_poly_add(sum, [f[i]])
return sum
def __poly_eval(f, x):
sum = 0
for i in xrange(len(f) - 1, -1, -1):
sum = sum * x + f[i]
return sum
def _i_poly3_fit(poly3, x, y):
actual = __poly_eval(poly3, x)
poly3[3] = float(y - actual) / x ** 3
def __poly3_shift(poly3, x):
result = __poly_compose(poly3, [x, 1.0])
result[3] = 0.0
return result
def __spline(points, x, x2):
assert points
cubic = [float(points[0][1]), x, x2, 0.0]
result = []
for i in xrange(len(points) - 1):
xdiff = float(points[i + 1][0] - points[i][0])
_i_poly3_fit(cubic, xdiff, float(points[i + 1][1]))
result.append(cubic)
cubic = __poly3_shift(cubic, xdiff)
result.append(cubic)
return result
def __spline_normal(points):
splines0 = __spline(points, 0.0, 0.0)
splines1 = __spline(points, 1.0, 0.0)
plen = len(points)
end2nd0 = splines0[plen - 1][2]
end2nd1 = splines1[plen - 1][2]
start1st = -end2nd0 / (end2nd1 - end2nd0)
return __spline(points, start1st, 0.0)
def __spline_first_deriv(points, s0, sn):
splines0 = __spline(points, s0, 0.0)
splines1 = __spline(points, s0, 1.0)
plen = len(points)
end1st0 = splines0[plen - 1][1]
end1st1 = splines1[plen - 1][1]
start2nd = (sn - end1st0) / (end1st1 - end1st0)
return __spline(points, s0, start2nd)
class _Splineeval(object):
def __init__(self, points, splines):
self._points = points
self._splines = splines
def __call__(self, x):
plen = len(self._points)
assert x >= self._points[0][0]
assert x <= self._points[plen - 1][0]
first = 0
last = plen - 1
while first + 1 < last:
mid = (first + last) / 2
if x >= self._points[mid][0]:
first = mid
else:
last = mid
return __poly_eval(self._splines[first], x - self._points[first][0]) |
def find_missing_number(c):
b = max(c)
d = min(c + [0]) if min(c) == 1 else min(c)
v = set(range(d, b)) - set(c)
return list(v)[0] if v != set() else None
print(find_missing_number([1, 3, 2, 4]))
print(find_missing_number([0, 2, 3, 4, 5]))
print(find_missing_number([9, 7, 5, 8]))
| def find_missing_number(c):
b = max(c)
d = min(c + [0]) if min(c) == 1 else min(c)
v = set(range(d, b)) - set(c)
return list(v)[0] if v != set() else None
print(find_missing_number([1, 3, 2, 4]))
print(find_missing_number([0, 2, 3, 4, 5]))
print(find_missing_number([9, 7, 5, 8])) |
load("@bazel_skylib//lib:dicts.bzl", "dicts")
# load("//ocaml:providers.bzl", "CcDepsProvider")
load("//ocaml/_functions:module_naming.bzl", "file_to_lib_name")
## see: https://github.com/bazelbuild/bazel/blob/master/src/main/starlark/builtins_bzl/common/cc/cc_import.bzl
## does this still apply?
# "Library outputs of cc_library shouldn't be relied on, and should be considered as a implementation detail and are toolchain dependent (e.g. if you're using gold linker, we don't produce .a libs at all and use lib-groups instead, also linkstatic=0 on cc_test is something that might change in the future). Ideally you should wait for cc_shared_library (https://docs.google.com/document/d/1d4SPgVX-OTCiEK_l24DNWiFlT14XS5ZxD7XhttFbvrI/edit#heading=h.jwrigiapdkr2) or use cc_binary(name="libfoo.so", linkshared=1) with the hack you mentioned in the meantime. The actual location of shared library dependencies should be available from Skyalrk. Eventually."
## src: https://github.com/bazelbuild/bazel/issues/4218
## DefaultInfo.files will be empty for cc_import deps, so in
## that case use CcInfo.
## For cc_library, DefaultInfo.files will contain the
## generated files (usually .a, .so, unless linkstatic is set)
## At the end we'll have one CcInfo whose entire depset will go
## on cmd line. This includes indirect deps like the .a files
## in @//ocaml/csdk and @rules_ocaml//cfg/lib/ctypes.
#########################
def dump_library_to_link(ctx, idx, lib):
print(" alwayslink[{i}]: {al}".format(i=idx, al = lib.alwayslink))
flds = ["static_library",
"pic_static_library",
"interface_library",
"dynamic_library",]
for fld in flds:
if hasattr(lib, fld):
if getattr(lib, fld):
print(" lib[{i}].{f}: {p}".format(
i=idx, f=fld, p=getattr(lib,fld).path))
else:
print(" lib[{i}].{f} == None".format(i=idx, f=fld))
# if lib.dynamic_library:
# print(" lib[{i}].dynamic_library: {lib}".format(
# i=idx, lib=lib.dynamic_library.path))
# else:
# print(" lib[{i}].dynamic_library == None".format(i=idx))
#########################
def dump_CcInfo(ctx, cc_info): # dep):
# print("DUMP_CCINFO for %s" % ctx.label)
# print("CcInfo dep: {d}".format(d = dep))
# dfiles = dep[DefaultInfo].files.to_list()
# if len(dfiles) > 0:
# for f in dfiles:
# print(" %s" % f)
## ASSUMPTION: all files in DefaultInfo are also in CcInfo
# print("dep[CcInfo].linking_context:")
# cc_info = dep[CcInfo]
compilation_ctx = cc_info.compilation_context
linking_ctx = cc_info.linking_context
linker_inputs = linking_ctx.linker_inputs.to_list()
# print("linker_inputs count: %s" % len(linker_inputs))
lidx = 0
for linput in linker_inputs:
# print(" linker_input[{i}]".format(i=lidx))
# print(" linkflags[{i}]: {f}".format(i=lidx, f= linput.user_link_flags))
libs = linput.libraries
# print(" libs count: %s" % len(libs))
if len(libs) > 0:
i = 0
for lib in linput.libraries:
dump_library_to_link(ctx, i, lib)
i = i+1
lidx = lidx + 1
# else:
# for dep in dfiles:
# print(" Default f: %s" % dep)
################################################################
## to be called from {ocaml,ppx}_executable
## tasks:
## - construct args
## - construct inputs_depset
## - extract runfiles
def link_ccdeps(ctx,
default_linkmode, # platform default
args,
ccInfo):
# print("link_ccdeps %s" % ctx.label)
inputs_list = []
runfiles = []
compilation_ctx = ccInfo.compilation_context
linking_ctx = ccInfo.linking_context
linker_inputs = linking_ctx.linker_inputs.to_list()
for linput in linker_inputs:
libs = linput.libraries
if len(libs) > 0:
for lib in libs:
if lib.pic_static_library:
inputs_list.append(lib.pic_static_library)
args.add(lib.pic_static_library.path)
if lib.static_library:
inputs_list.append(lib.static_library)
args.add(lib.static_library.path)
if lib.dynamic_library:
inputs_list.append(lib.dynamic_library)
args.add("-ccopt", "-L" + lib.dynamic_library.dirname)
args.add("-cclib", lib.dynamic_library.path)
return [inputs_list, runfiles]
################################################################
def x(ctx,
cc_deps_dict,
default_linkmode,
args,
includes,
cclib_deps,
cc_runfiles):
dfiles = dep[DefaultInfo].files.to_list()
# print("dep[DefaultInfo].files count: %s" % len(dfiles))
if len(dfiles) > 0:
for f in dfiles:
print(" %s" % f)
# print("dep[CcInfo].linking_context:")
cc_info = dep[CcInfo]
compilation_ctx = cc_info.compilation_context
linking_ctx = cc_info.linking_context
linker_inputs = linking_ctx.linker_inputs.to_list()
# print("linker_inputs count: %s" % len(linker_inputs))
# for linput in linker_inputs:
# print("NEW LINKER_INPUT")
# print(" LINKFLAGS: %s" % linput.user_link_flags)
# print(" LINKLIB[0]: %s" % linput.libraries[0].static_library.path)
## ?filter on prefix for e.g. csdk: example/ocaml
# for lib in linput.libraries:
# print(" LINKLIB: %s" % lib.static_library.path)
# else:
# for dep in dfiles:
# print(" Default f: %s" % dep)
## FIXME: static v. dynamic linking of cc libs in bytecode mode
# see https://caml.inria.fr/pub/docs/manual-ocaml/intfc.html#ss%3Adynlink-c-code
# default linkmode for toolchain is determined by platform
# see @rules_ocaml//cfg/toolchain:BUILD.bazel, ocaml/_toolchains/*.bzl
# dynamic linking does not currently work on the mac - ocamlrun
# wants a file named 'dllfoo.so', which rust cannot produce. to
# support this we would need to rename the file using install_name_tool
# for macos linkmode is dynamic, so we need to override this for bytecode mode
debug = False
# if ctx.attr._rule == "ocaml_executable":
# debug = True
if debug:
print("EXEC _handle_cc_deps %s" % ctx.label)
print("CC_DEPS_DICT: %s" % cc_deps_dict)
# first dedup
ccdeps = {}
for ccdict in cclib_deps:
for [dep, linkmode] in ccdict.items():
if dep in ccdeps.keys():
if debug:
print("CCDEP DUP? %s" % dep)
else:
ccdeps.update({dep: linkmode})
for [dep, linkmode] in cc_deps_dict.items():
if debug:
print("CCLIB DEP: ")
print(dep)
if linkmode == "default":
if debug: print("DEFAULT LINKMODE: %s" % default_linkmode)
for depfile in dep.files.to_list():
if default_linkmode == "static":
if (depfile.extension == "a"):
args.add(depfile)
cclib_deps.append(depfile)
includes.append(depfile.dirname)
else:
for depfile in dep.files.to_list():
if (depfile.extension == "so"):
libname = file_to_lib_name(depfile)
args.add("-ccopt", "-L" + depfile.dirname)
args.add("-cclib", "-l" + libname)
cclib_deps.append(depfile)
elif (depfile.extension == "dylib"):
libname = file_to_lib_name(depfile)
args.add("-cclib", "-l" + libname)
args.add("-ccopt", "-L" + depfile.dirname)
cclib_deps.append(depfile)
cc_runfiles.append(dep.files)
elif linkmode == "static":
if debug:
print("STATIC lib: %s:" % dep)
for depfile in dep.files.to_list():
if (depfile.extension == "a"):
args.add(depfile)
cclib_deps.append(depfile)
includes.append(depfile.dirname)
elif linkmode == "static-linkall":
if debug:
print("STATIC LINKALL lib: %s:" % dep)
for depfile in dep.files.to_list():
if (depfile.extension == "a"):
cclib_deps.append(depfile)
includes.append(depfile.dirname)
if ctx.toolchains["@rules_ocaml//ocaml:toolchain"].cc_toolchain == "clang":
args.add("-ccopt", "-Wl,-force_load,{path}".format(path = depfile.path))
elif ctx.toolchains["@rules_ocaml//ocaml:toolchain"].cc_toolchain == "gcc":
libname = file_to_lib_name(depfile)
args.add("-ccopt", "-L{dir}".format(dir=depfile.dirname))
args.add("-ccopt", "-Wl,--push-state,-whole-archive")
args.add("-ccopt", "-l{lib}".format(lib=libname))
args.add("-ccopt", "-Wl,--pop-state")
else:
fail("NO CC")
elif linkmode == "dynamic":
if debug:
print("DYNAMIC lib: %s" % dep)
for depfile in dep.files.to_list():
if (depfile.extension == "so"):
libname = file_to_lib_name(depfile)
print("so LIBNAME: %s" % libname)
args.add("-ccopt", "-L" + depfile.dirname)
args.add("-cclib", "-l" + libname)
cclib_deps.append(depfile)
elif (depfile.extension == "dylib"):
libname = file_to_lib_name(depfile)
print("LIBNAME: %s:" % libname)
args.add("-cclib", "-l" + libname)
args.add("-ccopt", "-L" + depfile.dirname)
cclib_deps.append(depfile)
cc_runfiles.append(dep.files)
################################################################
## returns:
## depset to be added to action_inputs
## updated args
## a CcDepsProvider containing cclibs dictionary {dep: linkmode}
## a depset containing ccdeps files, for OutputGroups
## FIXME: what about cc_runfiles?
# def handle_ccdeps(ctx,
# # for_pack,
# default_linkmode, # in
# # cc_deps_dict, ## list of dicts
# args, ## in/out
# # includes,
# # cclib_deps,
# # cc_runfiles):
# ):
# debug = False
# ## steps:
# ## 1. accumulate all ccdep dictionaries = direct + indirect
# ## a. remove duplicate dict entries?
# ## 2. construct action_inputs list
# ## 3. derive cmd line args
# ## 4. construct CcDepsProvider
# # 1. accumulate
# # a. direct cc deps
# direct_ccdeps_maps_list = []
# if hasattr(ctx.attr, "cc_deps"):
# direct_ccdeps_maps_list = [ctx.attr.cc_deps]
# ## FIXME: ctx.attr._cc_deps is a label_flag attr, cannot be a dict
# # all_ccdeps_maps_list.update(ctx.attr._cc_deps)
# # print("CCDEPS DIRECT: %s" % direct_ccdeps_maps_list)
# # b. indirect cc deps
# all_deps = []
# if hasattr(ctx.attr, "deps"):
# all_deps.extend(ctx.attr.deps)
# if hasattr(ctx.attr, "_deps"):
# all_deps.append(ctx.attr._deps)
# if hasattr(ctx.attr, "deps_deferred"):
# all_deps.extend(ctx.attr.deps_deferred)
# if hasattr(ctx.attr, "sig"):
# all_deps.append(ctx.attr.sig)
# ## for ocaml_library
# if hasattr(ctx.attr, "modules"):
# all_deps.extend(ctx.attr.modules)
# ## for ocaml_ns_library
# if hasattr(ctx.attr, "submodules"):
# all_deps.extend(ctx.attr.submodules)
# ## [ocaml/ppx]_executable
# if hasattr(ctx.attr, "main"):
# all_deps.append(ctx.attr.main)
# indirect_ccdeps_maps_list = []
# for dep in all_deps:
# if None == dep: continue # e.g. attr.sig may be missing
# if CcDepsProvider in dep:
# if dep[CcDepsProvider].ccdeps_map: # skip empty maps
# indirect_ccdeps_maps_list.append(dep[CcDepsProvider].ccdeps_map)
# # print("CCDEPS INDIRECT: %s" % indirect_ccdeps_maps_list)
# ## depsets cannot contain dictionaries so we use a list
# all_ccdeps_maps_list = direct_ccdeps_maps_list + indirect_ccdeps_maps_list
# ## now merge the maps and remove duplicate entries
# all_ccdeps_map = {} # merged ccdeps maps
# for ccdeps_map in all_ccdeps_maps_list:
# # print("CCDEPS_MAP ITEM: %s" % ccdeps_map)
# for [ccdep, cclinkmode] in ccdeps_map.items():
# if ccdep in all_ccdeps_map:
# if cclinkmode == all_ccdeps_map[ccdep]:
# ## duplicate
# # print("Removing duplicate ccdep: {k}: {v}".format(
# # k = ccdep, v = cclinkmode
# # ))
# continue
# else:
# # duplicate key, different linkmode
# fail("CCDEP: duplicate dep {dep} with different linkmodes: {lm1}, {lm2}".format(
# dep = dep,
# lm1 = all_ccdeps_map[ccdep],
# lm2 = cclinkmode
# ))
# else:
# ## accum
# all_ccdeps_map.update({ccdep: cclinkmode})
# ## end: accumulate
# # print("ALLCCDEPS: %s" % all_ccdeps_map)
# # print("ALLCCDEPS KEYS: %s" % all_ccdeps_map.keys())
# # 2. derive action inputs
# action_inputs_ccdep_filelist = []
# for tgt in all_ccdeps_map.keys():
# action_inputs_ccdep_filelist.extend(tgt.files.to_list())
# # print("ACTION_INPUTS_ccdep_filelist: %s" % action_inputs_ccdep_filelist)
# ## 3. derive cmd line args
# ## FIXME: static v. dynamic linking of cc libs in bytecode mode
# # see https://caml.inria.fr/pub/docs/manual-ocaml/intfc.html#ss%3Adynlink-c-code
# # default linkmode for toolchain is determined by platform
# # see @rules_ocaml//cfg/toolchain:BUILD.bazel, ocaml/_toolchains/*.bzl
# # dynamic linking does not currently work on the mac - ocamlrun
# # wants a file named 'dllfoo.so', which rust cannot produce. to
# # support this we would need to rename the file using install_name_tool
# # for macos linkmode is dynamic, so we need to override this for bytecode mode
# cc_runfiles = [] # FIXME?
# debug = True
# ## FIXME: always pass -fvisibility=hidden? see https://stackoverflow.com/questions/9894961/strange-warnings-from-the-linker-ld
# for [dep, linkmode] in all_ccdeps_map.items():
# if debug:
# print("CCLIB DEP: ")
# print(dep)
# for f in dep.files.to_list():
# print(" f: %s" % f)
# if CcInfo in dep:
# print(" CcInfo: %s" % dep[CcInfo])
# if linkmode == "default":
# if debug: print("DEFAULT LINKMODE: %s" % default_linkmode)
# for depfile in dep.files.to_list():
# if default_linkmode == "static":
# if (depfile.extension == "a"):
# args.add(depfile)
# # cclib_deps.append(depfile)
# # includes.append(depfile.dirname)
# else:
# for depfile in dep.files.to_list():
# if debug:
# print("DEPFILE dir: %s" % depfile.dirname)
# print("DEPFILE path: %s" % depfile.path)
# if (depfile.extension == "so"):
# libname = file_to_lib_name(depfile)
# args.add("-ccopt", "-L" + depfile.dirname)
# args.add("-cclib", "-l" + libname)
# # cclib_deps.append(depfile)
# elif (depfile.extension == "dylib"):
# libname = file_to_lib_name(depfile)
# args.add("-cclib", "-l" + libname)
# args.add("-ccopt", "-L" + depfile.dirname)
# # cclib_deps.append(depfile)
# cc_runfiles.append(dep.files)
# elif linkmode == "static":
# if debug:
# print("STATIC LINK: %s:" % dep)
# lctx = dep[CcInfo].linking_context
# for linputs in lctx.linker_inputs.to_list():
# for lib in linputs.libraries:
# print(" LINKLIB: %s" % lib.static_library)
# for depfile in dep.files.to_list():
# if debug:
# print(" LIB: %s" % depfile)
# fail("xxxx")
# if (depfile.extension == "a"):
# # for .a files we do not need --cclib etc. just
# # add directly to command line:
# args.add(depfile)
# elif linkmode == "static-linkall":
# if debug:
# print("STATIC LINKALL lib: %s:" % dep)
# for depfile in dep.files.to_list():
# if (depfile.extension == "a"):
# # cclib_deps.append(depfile)
# # includes.append(depfile.dirname)
# if ctx.toolchains["@rules_ocaml//ocaml:toolchain"].cc_toolchain == "clang":
# args.add("-ccopt", "-Wl,-force_load,{path}".format(path = depfile.path))
# elif ctx.toolchains["@rules_ocaml//ocaml:toolchain"].cc_toolchain == "gcc":
# libname = file_to_lib_name(depfile)
# args.add("-ccopt", "-L{dir}".format(dir=depfile.dirname))
# args.add("-ccopt", "-Wl,--push-state,-whole-archive")
# args.add("-ccopt", "-l{lib}".format(lib=libname))
# args.add("-ccopt", "-Wl,--pop-state")
# else:
# fail("NO CC")
# elif linkmode == "dynamic":
# if debug:
# print("DYNAMIC lib: %s" % dep)
# for depfile in dep.files.to_list():
# if (depfile.extension == "so"):
# libname = file_to_lib_name(depfile)
# if debug:
# print("so LIBNAME: %s" % libname)
# print("so dir: %s" % depfile.dirname)
# args.add("-ccopt", "-L" + depfile.dirname)
# args.add("-cclib", "-l" + libname)
# # cclib_deps.append(depfile)
# elif (depfile.extension == "dylib"):
# libname = file_to_lib_name(depfile)
# if debug:
# print("LIBNAME: %s:" % libname)
# args.add("-cclib", "-l" + libname)
# args.add("-ccopt", "-L" + depfile.dirname)
# # cclib_deps.append(depfile)
# cc_runfiles.append(dep.files)
# ## end: derive cmd options
# ## now derive CcDepsProvider:
# # for OutputGroups: use action_inputs_ccdep_filelist
# ccDepsProvider = CcDepsProvider(
# ccdeps_map = all_ccdeps_map
# )
# return [action_inputs_ccdep_filelist, ccDepsProvider]
| load('@bazel_skylib//lib:dicts.bzl', 'dicts')
load('//ocaml/_functions:module_naming.bzl', 'file_to_lib_name')
def dump_library_to_link(ctx, idx, lib):
print(' alwayslink[{i}]: {al}'.format(i=idx, al=lib.alwayslink))
flds = ['static_library', 'pic_static_library', 'interface_library', 'dynamic_library']
for fld in flds:
if hasattr(lib, fld):
if getattr(lib, fld):
print(' lib[{i}].{f}: {p}'.format(i=idx, f=fld, p=getattr(lib, fld).path))
else:
print(' lib[{i}].{f} == None'.format(i=idx, f=fld))
def dump__cc_info(ctx, cc_info):
compilation_ctx = cc_info.compilation_context
linking_ctx = cc_info.linking_context
linker_inputs = linking_ctx.linker_inputs.to_list()
lidx = 0
for linput in linker_inputs:
libs = linput.libraries
if len(libs) > 0:
i = 0
for lib in linput.libraries:
dump_library_to_link(ctx, i, lib)
i = i + 1
lidx = lidx + 1
def link_ccdeps(ctx, default_linkmode, args, ccInfo):
inputs_list = []
runfiles = []
compilation_ctx = ccInfo.compilation_context
linking_ctx = ccInfo.linking_context
linker_inputs = linking_ctx.linker_inputs.to_list()
for linput in linker_inputs:
libs = linput.libraries
if len(libs) > 0:
for lib in libs:
if lib.pic_static_library:
inputs_list.append(lib.pic_static_library)
args.add(lib.pic_static_library.path)
if lib.static_library:
inputs_list.append(lib.static_library)
args.add(lib.static_library.path)
if lib.dynamic_library:
inputs_list.append(lib.dynamic_library)
args.add('-ccopt', '-L' + lib.dynamic_library.dirname)
args.add('-cclib', lib.dynamic_library.path)
return [inputs_list, runfiles]
def x(ctx, cc_deps_dict, default_linkmode, args, includes, cclib_deps, cc_runfiles):
dfiles = dep[DefaultInfo].files.to_list()
if len(dfiles) > 0:
for f in dfiles:
print(' %s' % f)
cc_info = dep[CcInfo]
compilation_ctx = cc_info.compilation_context
linking_ctx = cc_info.linking_context
linker_inputs = linking_ctx.linker_inputs.to_list()
debug = False
if debug:
print('EXEC _handle_cc_deps %s' % ctx.label)
print('CC_DEPS_DICT: %s' % cc_deps_dict)
ccdeps = {}
for ccdict in cclib_deps:
for [dep, linkmode] in ccdict.items():
if dep in ccdeps.keys():
if debug:
print('CCDEP DUP? %s' % dep)
else:
ccdeps.update({dep: linkmode})
for [dep, linkmode] in cc_deps_dict.items():
if debug:
print('CCLIB DEP: ')
print(dep)
if linkmode == 'default':
if debug:
print('DEFAULT LINKMODE: %s' % default_linkmode)
for depfile in dep.files.to_list():
if default_linkmode == 'static':
if depfile.extension == 'a':
args.add(depfile)
cclib_deps.append(depfile)
includes.append(depfile.dirname)
else:
for depfile in dep.files.to_list():
if depfile.extension == 'so':
libname = file_to_lib_name(depfile)
args.add('-ccopt', '-L' + depfile.dirname)
args.add('-cclib', '-l' + libname)
cclib_deps.append(depfile)
elif depfile.extension == 'dylib':
libname = file_to_lib_name(depfile)
args.add('-cclib', '-l' + libname)
args.add('-ccopt', '-L' + depfile.dirname)
cclib_deps.append(depfile)
cc_runfiles.append(dep.files)
elif linkmode == 'static':
if debug:
print('STATIC lib: %s:' % dep)
for depfile in dep.files.to_list():
if depfile.extension == 'a':
args.add(depfile)
cclib_deps.append(depfile)
includes.append(depfile.dirname)
elif linkmode == 'static-linkall':
if debug:
print('STATIC LINKALL lib: %s:' % dep)
for depfile in dep.files.to_list():
if depfile.extension == 'a':
cclib_deps.append(depfile)
includes.append(depfile.dirname)
if ctx.toolchains['@rules_ocaml//ocaml:toolchain'].cc_toolchain == 'clang':
args.add('-ccopt', '-Wl,-force_load,{path}'.format(path=depfile.path))
elif ctx.toolchains['@rules_ocaml//ocaml:toolchain'].cc_toolchain == 'gcc':
libname = file_to_lib_name(depfile)
args.add('-ccopt', '-L{dir}'.format(dir=depfile.dirname))
args.add('-ccopt', '-Wl,--push-state,-whole-archive')
args.add('-ccopt', '-l{lib}'.format(lib=libname))
args.add('-ccopt', '-Wl,--pop-state')
else:
fail('NO CC')
elif linkmode == 'dynamic':
if debug:
print('DYNAMIC lib: %s' % dep)
for depfile in dep.files.to_list():
if depfile.extension == 'so':
libname = file_to_lib_name(depfile)
print('so LIBNAME: %s' % libname)
args.add('-ccopt', '-L' + depfile.dirname)
args.add('-cclib', '-l' + libname)
cclib_deps.append(depfile)
elif depfile.extension == 'dylib':
libname = file_to_lib_name(depfile)
print('LIBNAME: %s:' % libname)
args.add('-cclib', '-l' + libname)
args.add('-ccopt', '-L' + depfile.dirname)
cclib_deps.append(depfile)
cc_runfiles.append(dep.files) |
'''
Created on Jan 22, 2013
@author: sesuskic
'''
__all__ = ["ch_flt"]
def ch_flt(filter_k):
chflt_coe_list = {
1 : [-3, -4, 1, 15, 30, 27, -4, -55, -87, -49, 81, 271, 442, 511], # 305k BW (decim-8*3) original PRO2
# 1: [13 17 -8 -15 14 20 -27 -23 48 27 -94 -29 303 511 ]'; # 464k BW (decim-8*3, fil-1) for EZR2 tracking
# 1: [9 -6 -26 -35 -13 29 50 13 -64 -101 -15 192 415 511]'; # 378k BW (decim-8*3, fil-3) for EZR2 tracking
# 1: [-16 -9 8 34 51 38 -9 -69 -96 -44 95 284 447 511 ]'; # 302k BW (decim-8*3, fil-5) for EZR2 tracking
2 : [ 0, 3, 12, 22, 23, 5, -34, -72, -75, -11, 127, 304, 452, 511],
3 : [ 4, 10, 17, 18, 5, -22, -55, -71, -47, 33, 160, 304, 417, 460],
4 : [ 3, 7, 8, 2, -14, -37, -57, -56, -18, 63, 175, 294, 385, 418],
5 : [ 3, 3, 0, -10, -26, -42, -50, -35, 11, 88, 186, 283, 356, 382],
6 : [ 1, -2, -9, -20, -33, -42, -37, -12, 37, 109, 192, 271, 327, 347],
7 : [-3, -10, -19, -29, -36, -36, -20, 12, 63, 127, 195, 256, 299, 313],
8 : [-5, -10, -18, -24, -26, -20, -1, 33, 80, 136, 194, 244, 279, 291],
9 : [-4, -8, -14, -17, -17, -8, 11, 43, 85, 134, 185, 228, 257, 268],
10 : [-4, -7, -10, -12, -9, 1, 21, 51, 89, 134, 177, 215, 240, 249],
11 : [-3, -6, -7, -7, -2, 10, 30, 58, 93, 132, 170, 202, 223, 231],
#11: [2 13 26 50 83 126 179 240 304 367 424 469 498 508 ]'; # for ETSI class-1 169MHz 12.5k channel
12 : [-3, -3, -3, -1, 6, 19, 39, 65, 97, 130, 163, 190, 208, 214],
13 : [-2, -1, 0, 5, 14, 27, 47, 71, 99, 128, 156, 178, 193, 198],
14 : [-1, 2, 5, 2, 22, 37, 55, 77, 101, 125, 147, 165, 176, 180],
15 : [ 2, 6, 11, 20, 31, 46, 63, 82, 102, 121, 138, 151, 160, 162]
}
return [x+2**10 for x in chflt_coe_list.get(filter_k, chflt_coe_list[1])][::-1]
| """
Created on Jan 22, 2013
@author: sesuskic
"""
__all__ = ['ch_flt']
def ch_flt(filter_k):
chflt_coe_list = {1: [-3, -4, 1, 15, 30, 27, -4, -55, -87, -49, 81, 271, 442, 511], 2: [0, 3, 12, 22, 23, 5, -34, -72, -75, -11, 127, 304, 452, 511], 3: [4, 10, 17, 18, 5, -22, -55, -71, -47, 33, 160, 304, 417, 460], 4: [3, 7, 8, 2, -14, -37, -57, -56, -18, 63, 175, 294, 385, 418], 5: [3, 3, 0, -10, -26, -42, -50, -35, 11, 88, 186, 283, 356, 382], 6: [1, -2, -9, -20, -33, -42, -37, -12, 37, 109, 192, 271, 327, 347], 7: [-3, -10, -19, -29, -36, -36, -20, 12, 63, 127, 195, 256, 299, 313], 8: [-5, -10, -18, -24, -26, -20, -1, 33, 80, 136, 194, 244, 279, 291], 9: [-4, -8, -14, -17, -17, -8, 11, 43, 85, 134, 185, 228, 257, 268], 10: [-4, -7, -10, -12, -9, 1, 21, 51, 89, 134, 177, 215, 240, 249], 11: [-3, -6, -7, -7, -2, 10, 30, 58, 93, 132, 170, 202, 223, 231], 12: [-3, -3, -3, -1, 6, 19, 39, 65, 97, 130, 163, 190, 208, 214], 13: [-2, -1, 0, 5, 14, 27, 47, 71, 99, 128, 156, 178, 193, 198], 14: [-1, 2, 5, 2, 22, 37, 55, 77, 101, 125, 147, 165, 176, 180], 15: [2, 6, 11, 20, 31, 46, 63, 82, 102, 121, 138, 151, 160, 162]}
return [x + 2 ** 10 for x in chflt_coe_list.get(filter_k, chflt_coe_list[1])][::-1] |
N = int(input())
A = [0] + [int(a) for a in input().split()]
B = [0] + [int(a) for a in input().split()]
C = [0] + [int(a) for a in input().split()]
previous = -1
satisfaction = 0
for a in A[1:]:
satisfaction += B[a]
if previous == a-1:
satisfaction += C[a-1]
previous = a
print(satisfaction)
| n = int(input())
a = [0] + [int(a) for a in input().split()]
b = [0] + [int(a) for a in input().split()]
c = [0] + [int(a) for a in input().split()]
previous = -1
satisfaction = 0
for a in A[1:]:
satisfaction += B[a]
if previous == a - 1:
satisfaction += C[a - 1]
previous = a
print(satisfaction) |
#!/usr/bin/python
# Filename: ex_for_before.py
print('Hello')
print('Hello')
print('Hello')
print('Hello')
print('Hello')
| print('Hello')
print('Hello')
print('Hello')
print('Hello')
print('Hello') |
class InvalidDataDirectory(Exception):
"""
Error raised when the chosen intput directory for the dataset is not valid.
"""
| class Invaliddatadirectory(Exception):
"""
Error raised when the chosen intput directory for the dataset is not valid.
""" |
"""
0340. Longest Substring with At Most K Distinct Characters
Medium
Given a string s and an integer k, return the length of the longest substring of s that contains at most k distinct characters.
Example 1:
Input: s = "eceba", k = 2
Output: 3
Explanation: The substring is "ece" with length 3.
Example 2:
Input: s = "aa", k = 1
Output: 2
Explanation: The substring is "aa" with length 2.
Constraints:
1 <= s.length <= 5 * 104
0 <= k <= 50
"""
class Solution:
def lengthOfLongestSubstringKDistinct(self, s: str, k: int) -> int:
d = {}
low, res = 0, 0
for i, c in enumerate(s):
d[c] = i
if len(d) > k:
low = min(d.values())
del d[s[low]]
low += 1
res = max(i - low + 1, res)
return res | """
0340. Longest Substring with At Most K Distinct Characters
Medium
Given a string s and an integer k, return the length of the longest substring of s that contains at most k distinct characters.
Example 1:
Input: s = "eceba", k = 2
Output: 3
Explanation: The substring is "ece" with length 3.
Example 2:
Input: s = "aa", k = 1
Output: 2
Explanation: The substring is "aa" with length 2.
Constraints:
1 <= s.length <= 5 * 104
0 <= k <= 50
"""
class Solution:
def length_of_longest_substring_k_distinct(self, s: str, k: int) -> int:
d = {}
(low, res) = (0, 0)
for (i, c) in enumerate(s):
d[c] = i
if len(d) > k:
low = min(d.values())
del d[s[low]]
low += 1
res = max(i - low + 1, res)
return res |
class Solution:
def smallestRange(self, nums: List[List[int]]) -> List[int]:
lo, hi = -100000, 100000
pq = [(lst[0], i, 1) for i, lst in enumerate(nums)]
heapq.heapify(pq)
right = max(lst[0] for lst in nums)
while len(pq) == len(nums):
mn, idx, nxt = heapq.heappop(pq)
if right - mn < hi - lo:
lo = mn
hi = right
if nxt < len(nums[idx]):
right = max(right, nums[idx][nxt])
heapq.heappush(pq, (nums[idx][nxt], idx, nxt + 1))
return [lo, hi]
| class Solution:
def smallest_range(self, nums: List[List[int]]) -> List[int]:
(lo, hi) = (-100000, 100000)
pq = [(lst[0], i, 1) for (i, lst) in enumerate(nums)]
heapq.heapify(pq)
right = max((lst[0] for lst in nums))
while len(pq) == len(nums):
(mn, idx, nxt) = heapq.heappop(pq)
if right - mn < hi - lo:
lo = mn
hi = right
if nxt < len(nums[idx]):
right = max(right, nums[idx][nxt])
heapq.heappush(pq, (nums[idx][nxt], idx, nxt + 1))
return [lo, hi] |
def snail(arr):
""" Inspired by a solution on Codewars by MMMAAANNN """
matrix = list(arr)
result = []
while matrix:
result.extend(matrix.pop(0))
matrix = zip(*matrix)
matrix.reverse()
return result
| def snail(arr):
""" Inspired by a solution on Codewars by MMMAAANNN """
matrix = list(arr)
result = []
while matrix:
result.extend(matrix.pop(0))
matrix = zip(*matrix)
matrix.reverse()
return result |
# Copyright (C) 2021 Anthony Harrison
# SPDX-License-Identifier: MIT
VERSION: str = "0.1"
| version: str = '0.1' |
'''
File: structures.py
Description: Defines the structures used by socket handler
Date: 26/09/2017
Author: Saurabh Badhwar <sbadhwar@redhat.com>
'''
class ClientList(object):
"""ClientList structure. Used for holding the connected clients list
The general structure looks like:
client_list: {'topic': [clients]}
"""
client_list = {} #Initialize the client list
def __init__(self):
"""ClientList constructor
Initializes the ClientList for use in the socket handler
"""
self.topic_count = 0
self.error_count = 0
def add_topic(self, topic):
"""Add a new topic to the client list
Keyword arguments:
topic -- the topic to be added to the client list
Returns:
count The number of keys in list
"""
if topic in self.client_list.keys():
return self.topic_count
self.client_list[topic] = []
self.topic_count = len(self.client_list)
return self.topic_count
def add_client(self, topic, client):
"""Add a new client to the client list
Keyword arguments:
topic -- The topic to which the client should be added
client -- The callable socket object for the client
Returns:
True on success
False on Failure
"""
if topic not in self.client_list.keys():
self.add_topic(topic)
if client in self.client_list[topic]:
return False
self.client_list[topic].append(client)
return True
def get_topics(self):
"""Get the list of topics
Returns: List of topics
"""
return self.client_list.keys()
def get_clients(self, topic):
"""Return the list of clients associated with the provided topic
Keyword arguments:
topic -- The topic for which to return the client list
Returns:
list on Success
False on Failure
"""
if topic not in self.client_list.keys():
return False
return self.client_list[topic]
def is_topic(self, topic):
"""Check if a topic is present in the client list or not
Keyword arguments:
topic -- The topic to be checked for presence
Returns: Bool
"""
if topic in self.client_list.keys():
return True
return False
def remove_client(self, client, topic=''):
"""Remove the provided client from the client list
If the topic is not provided, client will be removed from all the topics
it is present in.
Keyword arguments:
topic -- The topic to be searched for the client (Default: '')
client -- The client to be removed
Return: True
"""
if topic == '':
for t in self.client_list:
if client in self.client_list[t]:
self.client_list[t].remove(client)
else:
self.client_list[topic].remove(client)
return True
def remove_topic(self, topic, force=False):
"""Removes the mentioned topics from the client list
Removes the topics from the client list if the client list for that
topic is empty.
The optional force parameter if set to true will cause the topic to be
removed even if the client list contains clients subscribed to that
topic.
Keyword arguments:
topic -- The topic to be removed
force -- Force the removal of the topic (Default: False)
Raises:
RuntimeError if the user tries to remove a topic which has active
clients
Returns: True
"""
if topic in self.client_list.keys():
if len(self.client_list[topic]) != 0 and force==False:
raise RuntimeError("Can't remove a topic with active clients")
else:
del self.client_list[topic]
return True
| """
File: structures.py
Description: Defines the structures used by socket handler
Date: 26/09/2017
Author: Saurabh Badhwar <sbadhwar@redhat.com>
"""
class Clientlist(object):
"""ClientList structure. Used for holding the connected clients list
The general structure looks like:
client_list: {'topic': [clients]}
"""
client_list = {}
def __init__(self):
"""ClientList constructor
Initializes the ClientList for use in the socket handler
"""
self.topic_count = 0
self.error_count = 0
def add_topic(self, topic):
"""Add a new topic to the client list
Keyword arguments:
topic -- the topic to be added to the client list
Returns:
count The number of keys in list
"""
if topic in self.client_list.keys():
return self.topic_count
self.client_list[topic] = []
self.topic_count = len(self.client_list)
return self.topic_count
def add_client(self, topic, client):
"""Add a new client to the client list
Keyword arguments:
topic -- The topic to which the client should be added
client -- The callable socket object for the client
Returns:
True on success
False on Failure
"""
if topic not in self.client_list.keys():
self.add_topic(topic)
if client in self.client_list[topic]:
return False
self.client_list[topic].append(client)
return True
def get_topics(self):
"""Get the list of topics
Returns: List of topics
"""
return self.client_list.keys()
def get_clients(self, topic):
"""Return the list of clients associated with the provided topic
Keyword arguments:
topic -- The topic for which to return the client list
Returns:
list on Success
False on Failure
"""
if topic not in self.client_list.keys():
return False
return self.client_list[topic]
def is_topic(self, topic):
"""Check if a topic is present in the client list or not
Keyword arguments:
topic -- The topic to be checked for presence
Returns: Bool
"""
if topic in self.client_list.keys():
return True
return False
def remove_client(self, client, topic=''):
"""Remove the provided client from the client list
If the topic is not provided, client will be removed from all the topics
it is present in.
Keyword arguments:
topic -- The topic to be searched for the client (Default: '')
client -- The client to be removed
Return: True
"""
if topic == '':
for t in self.client_list:
if client in self.client_list[t]:
self.client_list[t].remove(client)
else:
self.client_list[topic].remove(client)
return True
def remove_topic(self, topic, force=False):
"""Removes the mentioned topics from the client list
Removes the topics from the client list if the client list for that
topic is empty.
The optional force parameter if set to true will cause the topic to be
removed even if the client list contains clients subscribed to that
topic.
Keyword arguments:
topic -- The topic to be removed
force -- Force the removal of the topic (Default: False)
Raises:
RuntimeError if the user tries to remove a topic which has active
clients
Returns: True
"""
if topic in self.client_list.keys():
if len(self.client_list[topic]) != 0 and force == False:
raise runtime_error("Can't remove a topic with active clients")
else:
del self.client_list[topic]
return True |
# coding: utf-8
"""
Created on 30.07.2018
:author: Polianok Bogdan
"""
class Item:
"""
Class represented Item object in skyskanner website response
"""
def __init__(self, jsonItem):
self.agent_id = jsonItem['agent_id']
self.url = jsonItem['url']
self.transfer_protection = jsonItem['transfer_protection']
| """
Created on 30.07.2018
:author: Polianok Bogdan
"""
class Item:
"""
Class represented Item object in skyskanner website response
"""
def __init__(self, jsonItem):
self.agent_id = jsonItem['agent_id']
self.url = jsonItem['url']
self.transfer_protection = jsonItem['transfer_protection'] |
NEGATIVE_CONSTRUCTS = set([
"ain't",
"can't",
"cannot"
"don't"
"isn't"
"mustn't",
"needn't",
"neither",
"never",
"no",
"nobody",
"none",
"nothing",
"nowhere"
"shan't",
"shouldn't",
"wasn't"
"weren't",
"won't"
])
URLS = r'(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+' \
'[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+' \
'[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]\.' \
'[^\s]{2,}|www\.[a-zA-Z0-9]\.[^\s]{2,})'
POSITIVE_EMOTICONS = set([
':-)', ':)', ':-]', ':-3', ':3', ':^)',
'8-)', '8)', '=]', '=)', ':-D', ':D', ':-))'
])
NEGATIVE_EMOTICONS = set([
':-(', ':(', ':-c', ':c', ':<', ':[', ':''-(',
':-[', ':-||', '>:[', ':{', '>:(', ':-|', ':|',
':/', ':-/', ':\'', '>:/', ':S'
])
| negative_constructs = set(["ain't", "can't", "cannotdon'tisn'tmustn't", "needn't", 'neither', 'never', 'no', 'nobody', 'none', 'nothing', "nowhereshan't", "shouldn't", "wasn'tweren't", "won't"])
urls = '(https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|https?:\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]\\.[^\\s]{2,})'
positive_emoticons = set([':-)', ':)', ':-]', ':-3', ':3', ':^)', '8-)', '8)', '=]', '=)', ':-D', ':D', ':-))'])
negative_emoticons = set([':-(', ':(', ':-c', ':c', ':<', ':[', ':-(', ':-[', ':-||', '>:[', ':{', '>:(', ':-|', ':|', ':/', ':-/', ":'", '>:/', ':S']) |
class Configuration:
port = 5672
security_mechanisms = 'PLAIN'
version_major = 0
version_minor = 9
amqp_version = (0, 0, 9, 1)
secure_response = ''
client_properties = {'client': 'amqpsfw:0.1'}
server_properties = {'server': 'amqpsfw:0.1'}
secure_challenge = 'tratata'
| class Configuration:
port = 5672
security_mechanisms = 'PLAIN'
version_major = 0
version_minor = 9
amqp_version = (0, 0, 9, 1)
secure_response = ''
client_properties = {'client': 'amqpsfw:0.1'}
server_properties = {'server': 'amqpsfw:0.1'}
secure_challenge = 'tratata' |
class TrieNode:
def __init__(self):
self.flag = False
self.children = {}
class Trie(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.root = TrieNode()
def insert(self, word):
"""
Inserts a word into the trie.
:type word: str
:rtype: None
"""
current = self.root
for character in word:
if character not in current.children:
current.children[character] = TrieNode()
current = current.children[character]
current.flag = True
def search(self, word):
"""
Returns if the word is in the trie.
:type word: str
:rtype: bool
"""
result, node = self.childSearch(word)
if result:
return node.flag
return False
def startsWith(self, prefix):
"""
Returns if there is any word in the trie that starts with the given prefix.
:type prefix: str
:rtype: bool
"""
result, node = self.childSearch(prefix)
return result
def childSearch(self, word):
current = self.root
for character in word:
if character in current.children:
current = current.children[character]
else:
return False, None
return True, current
# Your Trie object will be instantiated and called as such:
# obj = Trie()
# obj.insert(word)
# param_2 = obj.search(word)
# param_3 = obj.startsWith(prefix) | class Trienode:
def __init__(self):
self.flag = False
self.children = {}
class Trie(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.root = trie_node()
def insert(self, word):
"""
Inserts a word into the trie.
:type word: str
:rtype: None
"""
current = self.root
for character in word:
if character not in current.children:
current.children[character] = trie_node()
current = current.children[character]
current.flag = True
def search(self, word):
"""
Returns if the word is in the trie.
:type word: str
:rtype: bool
"""
(result, node) = self.childSearch(word)
if result:
return node.flag
return False
def starts_with(self, prefix):
"""
Returns if there is any word in the trie that starts with the given prefix.
:type prefix: str
:rtype: bool
"""
(result, node) = self.childSearch(prefix)
return result
def child_search(self, word):
current = self.root
for character in word:
if character in current.children:
current = current.children[character]
else:
return (False, None)
return (True, current) |
class Solution(object):
def getRow(self, rowIndex):
"""
:type rowIndex: int
:rtype: List[int]
"""
pascal_triangle = [None] * 2
for i in range(rowIndex + 1):
row = [0] * (i + 1)
row[0] = 1
row[-1] = 1
for j in range(1, len(row) - 1):
row[j] = pascal_triangle[(i - 1) % 2][j - 1] + pascal_triangle[(i - 1) % 2][j]
pascal_triangle[i % 2] = row
return pascal_triangle[i % 2] | class Solution(object):
def get_row(self, rowIndex):
"""
:type rowIndex: int
:rtype: List[int]
"""
pascal_triangle = [None] * 2
for i in range(rowIndex + 1):
row = [0] * (i + 1)
row[0] = 1
row[-1] = 1
for j in range(1, len(row) - 1):
row[j] = pascal_triangle[(i - 1) % 2][j - 1] + pascal_triangle[(i - 1) % 2][j]
pascal_triangle[i % 2] = row
return pascal_triangle[i % 2] |
# -*- coding: utf-8 -*-
class MissingSender(Exception):
pass
class WrongSenderSecret(Exception):
pass
class NotAllowed(Exception):
pass
class MissingProject(Exception):
pass
class MissingAction(Exception):
pass
| class Missingsender(Exception):
pass
class Wrongsendersecret(Exception):
pass
class Notallowed(Exception):
pass
class Missingproject(Exception):
pass
class Missingaction(Exception):
pass |
# O(j +d) Time and space
def topologicalSort(jobs, deps):
# We will use a class to define the graph:
jobGraph = createJobGraph(jobs, deps)
# Helper function:
return getOrderedJobs(jobGraph)
def getOrderedJobs(jobGraph):
orderedJobs = []
# In this case, we need to take the nodes with NO prereqs
nodesWithNoPrereqs = list(filter(lambda node: node.numbOfPrereqs == 0, jobGraph.nodes))
# so long as we have a list with elements of no prereqs, we append it directly to ordered jobs,
# AND remove the deps
while len(nodesWithNoPrereqs):
node = nodesWithNoPrereqs.pop()
orderedJobs.append(node.jobs)
removeDeps(node, nodesWithNoPrereqs)
# here, we know for a fact that we will have at least one node where the num of dependecies is zero
# therefore if any of the nodes have a truthy value, return
graphHasEdges = any(node.numbOfPrereqs for node in jobGraph.nodes)
return [] if graphHasEdges else orderedJobs
def removeDeps(node, nodesWithNoPrereqs):
# remove the deps of the current node, since we are deleting it
while len(node.deps):
dep = node.deps.pop() # same technique; we pop the deps and do -1 to all of them until finished
dep.numbOfPrereqs -= 1
if dep.numbOfPrereqs == 0:
nodesWithNoPrereqs.append(dep)
def createJobGraph(jobs, deps):
# initialize graph with: list of JobNodes and a dictionary that maps the the jobNode with a job
graph = JobGraph(jobs)
# (x,y) -> y depends on x, so we use this approach now, and using the addDep the pre-reqs of x is +1
for job, deps in deps:
#add a prereq in the job seen
graph.addDep(job, deps)
return graph
class JobGraph:
# IMPORTANT: Job is the element itself; the Node contains more info, such as prereqs, if visited or not, etc.
def __init__(self,jobs):
self.nodes = [] # will contain the graph itself, with the edges and dependencies
self.graph = {} # will map values to other values, map jobs to their nodes
# basically graph lists {1: <JobNode 1>, 2: <JobNode 2>,...} and node=[<JobNode 1>, <JobNode 2>...]
for job in jobs:
# for each job [1,2,...] we will add the nodes , which contains the info of the job and pre-requisites
# from a JobNode object.
self.addNode(job)
def addNode(self, job):
self.graph[job] = JobNode(job)
self.nodes.append(self.graph[job])
def addDep(self, job, dep):
# get the node from job; get the node that reference to the prereq and simply append the latter to the job prereq field.
jobNode = self.getNode(job)
depNode = self.getNode(dep)
jobNode.deps.append(depNode)
# include the new prereq number
depNode.numbOfPrereqs += 1
def getNode(self, job):
if job not in self.graph:
self.addNode(job)
# the method simply serves a lookup dictionary
# and returns a JobNode object
return self.graph[job]
class JobNode:
def __init__(self, job):
self.jobs = job
# now, we use dependencies instead of pre-reqs (is an inversion of what we had before)
self.deps = []
# we define the number of pre-reqs of the current Node
self.numbOfPrereqs = 0
| def topological_sort(jobs, deps):
job_graph = create_job_graph(jobs, deps)
return get_ordered_jobs(jobGraph)
def get_ordered_jobs(jobGraph):
ordered_jobs = []
nodes_with_no_prereqs = list(filter(lambda node: node.numbOfPrereqs == 0, jobGraph.nodes))
while len(nodesWithNoPrereqs):
node = nodesWithNoPrereqs.pop()
orderedJobs.append(node.jobs)
remove_deps(node, nodesWithNoPrereqs)
graph_has_edges = any((node.numbOfPrereqs for node in jobGraph.nodes))
return [] if graphHasEdges else orderedJobs
def remove_deps(node, nodesWithNoPrereqs):
while len(node.deps):
dep = node.deps.pop()
dep.numbOfPrereqs -= 1
if dep.numbOfPrereqs == 0:
nodesWithNoPrereqs.append(dep)
def create_job_graph(jobs, deps):
graph = job_graph(jobs)
for (job, deps) in deps:
graph.addDep(job, deps)
return graph
class Jobgraph:
def __init__(self, jobs):
self.nodes = []
self.graph = {}
for job in jobs:
self.addNode(job)
def add_node(self, job):
self.graph[job] = job_node(job)
self.nodes.append(self.graph[job])
def add_dep(self, job, dep):
job_node = self.getNode(job)
dep_node = self.getNode(dep)
jobNode.deps.append(depNode)
depNode.numbOfPrereqs += 1
def get_node(self, job):
if job not in self.graph:
self.addNode(job)
return self.graph[job]
class Jobnode:
def __init__(self, job):
self.jobs = job
self.deps = []
self.numbOfPrereqs = 0 |
mystr = "Anupam"
newstr = ""
# Iterating the loop in backward direction.
# for char in mystr[::-1]:
for char in reversed(mystr):
newstr = newstr + char
print(newstr)
| mystr = 'Anupam'
newstr = ''
for char in reversed(mystr):
newstr = newstr + char
print(newstr) |
#
# PySNMP MIB module F3-TIMEZONE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/F3-TIMEZONE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:11:37 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)
#
fsp150cm, = mibBuilder.importSymbols("ADVA-MIB", "fsp150cm")
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup")
ObjectIdentity, NotificationType, Counter64, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Unsigned32, IpAddress, Gauge32, Bits, ModuleIdentity, Counter32, Integer32, iso = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "NotificationType", "Counter64", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Unsigned32", "IpAddress", "Gauge32", "Bits", "ModuleIdentity", "Counter32", "Integer32", "iso")
TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "TruthValue", "DisplayString")
f3TimeZoneMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32))
f3TimeZoneMIB.setRevisions(('2014-06-05 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: f3TimeZoneMIB.setRevisionsDescriptions((' Notes from release 201406050000Z, (1) MIB version ready for release FSP150CC 6.5.CC.',))
if mibBuilder.loadTexts: f3TimeZoneMIB.setLastUpdated('201406050000Z')
if mibBuilder.loadTexts: f3TimeZoneMIB.setOrganization('ADVA Optical Networking')
if mibBuilder.loadTexts: f3TimeZoneMIB.setContactInfo(' Michal Pawlowski ADVA Optical Networking, Inc. Tel: +48 58 7716 416 E-mail: mpawlowski@advaoptical.com Postal: ul. Slaska 35/37 81-310 Gdynia, Poland')
if mibBuilder.loadTexts: f3TimeZoneMIB.setDescription('This module defines the Time Zone MIB definitions used by the F3 (FSP150CM/CC) product lines. Copyright (C) ADVA Optical Networking.')
f3TimeZoneConfigObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1))
f3TimeZoneConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2))
class MonthOfYear(TextualConvention, Integer32):
description = 'Month of year.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
namedValues = NamedValues(("january", 1), ("february", 2), ("march", 3), ("april", 4), ("may", 5), ("june", 6), ("july", 7), ("august", 8), ("september", 9), ("october", 10), ("november", 11), ("december", 12))
f3TimeZoneUtcOffset = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneUtcOffset.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneUtcOffset.setDescription('This object provides the ability to set UTC offset.')
f3TimeZoneDstControlEnabled = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstControlEnabled.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstControlEnabled.setDescription('This object provides the ability to toggle DST functionality.')
f3TimeZoneDstUtcOffset = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstUtcOffset.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstUtcOffset.setDescription('This object provides the ability to set DST Offset which is the Daylight Savings Time offset from Local Time.')
f3TimeZoneDstStartMonth = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 4), MonthOfYear()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstStartMonth.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstStartMonth.setDescription('This object provides the ability to set DST start month.')
f3TimeZoneDstStartDay = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstStartDay.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstStartDay.setDescription('This object provides the ability to set DST start day.')
f3TimeZoneDstStartTime = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstStartTime.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstStartTime.setDescription('This object provides the ability to set DST start time.')
f3TimeZoneDstEndMonth = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 7), MonthOfYear()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstEndMonth.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstEndMonth.setDescription('This object provides the ability to set DST end month.')
f3TimeZoneDstEndDay = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstEndDay.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstEndDay.setDescription('This object provides the ability to set DST end day.')
f3TimeZoneDstEndTime = MibScalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: f3TimeZoneDstEndTime.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneDstEndTime.setDescription('This object provides the ability to set DST end time.')
f3TimeZoneCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 1))
f3TimeZoneGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 2))
f3TimeZoneCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 1, 1)).setObjects(("F3-TIMEZONE-MIB", "f3TimeZoneConfigGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
f3TimeZoneCompliance = f3TimeZoneCompliance.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneCompliance.setDescription('Describes the requirements for conformance to the F3-TIMEZONE-MIB compliance.')
f3TimeZoneConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 2, 1)).setObjects(("F3-TIMEZONE-MIB", "f3TimeZoneUtcOffset"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstControlEnabled"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstUtcOffset"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstStartMonth"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstStartDay"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstStartTime"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstEndMonth"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstEndDay"), ("F3-TIMEZONE-MIB", "f3TimeZoneDstEndTime"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
f3TimeZoneConfigGroup = f3TimeZoneConfigGroup.setStatus('current')
if mibBuilder.loadTexts: f3TimeZoneConfigGroup.setDescription('A collection of objects used to manage the Time Zone.')
mibBuilder.exportSymbols("F3-TIMEZONE-MIB", f3TimeZoneDstControlEnabled=f3TimeZoneDstControlEnabled, f3TimeZoneDstStartMonth=f3TimeZoneDstStartMonth, MonthOfYear=MonthOfYear, f3TimeZoneDstStartDay=f3TimeZoneDstStartDay, PYSNMP_MODULE_ID=f3TimeZoneMIB, f3TimeZoneUtcOffset=f3TimeZoneUtcOffset, f3TimeZoneDstUtcOffset=f3TimeZoneDstUtcOffset, f3TimeZoneDstEndDay=f3TimeZoneDstEndDay, f3TimeZoneCompliances=f3TimeZoneCompliances, f3TimeZoneGroups=f3TimeZoneGroups, f3TimeZoneCompliance=f3TimeZoneCompliance, f3TimeZoneDstEndTime=f3TimeZoneDstEndTime, f3TimeZoneConfigObjects=f3TimeZoneConfigObjects, f3TimeZoneDstEndMonth=f3TimeZoneDstEndMonth, f3TimeZoneConfigGroup=f3TimeZoneConfigGroup, f3TimeZoneDstStartTime=f3TimeZoneDstStartTime, f3TimeZoneConformance=f3TimeZoneConformance, f3TimeZoneMIB=f3TimeZoneMIB)
| (fsp150cm,) = mibBuilder.importSymbols('ADVA-MIB', 'fsp150cm')
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_union, value_size_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint')
(notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup')
(object_identity, notification_type, counter64, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, unsigned32, ip_address, gauge32, bits, module_identity, counter32, integer32, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'NotificationType', 'Counter64', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Unsigned32', 'IpAddress', 'Gauge32', 'Bits', 'ModuleIdentity', 'Counter32', 'Integer32', 'iso')
(textual_convention, truth_value, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'TruthValue', 'DisplayString')
f3_time_zone_mib = module_identity((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32))
f3TimeZoneMIB.setRevisions(('2014-06-05 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
f3TimeZoneMIB.setRevisionsDescriptions((' Notes from release 201406050000Z, (1) MIB version ready for release FSP150CC 6.5.CC.',))
if mibBuilder.loadTexts:
f3TimeZoneMIB.setLastUpdated('201406050000Z')
if mibBuilder.loadTexts:
f3TimeZoneMIB.setOrganization('ADVA Optical Networking')
if mibBuilder.loadTexts:
f3TimeZoneMIB.setContactInfo(' Michal Pawlowski ADVA Optical Networking, Inc. Tel: +48 58 7716 416 E-mail: mpawlowski@advaoptical.com Postal: ul. Slaska 35/37 81-310 Gdynia, Poland')
if mibBuilder.loadTexts:
f3TimeZoneMIB.setDescription('This module defines the Time Zone MIB definitions used by the F3 (FSP150CM/CC) product lines. Copyright (C) ADVA Optical Networking.')
f3_time_zone_config_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1))
f3_time_zone_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2))
class Monthofyear(TextualConvention, Integer32):
description = 'Month of year.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
named_values = named_values(('january', 1), ('february', 2), ('march', 3), ('april', 4), ('may', 5), ('june', 6), ('july', 7), ('august', 8), ('september', 9), ('october', 10), ('november', 11), ('december', 12))
f3_time_zone_utc_offset = mib_scalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
f3TimeZoneUtcOffset.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneUtcOffset.setDescription('This object provides the ability to set UTC offset.')
f3_time_zone_dst_control_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 2), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
f3TimeZoneDstControlEnabled.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneDstControlEnabled.setDescription('This object provides the ability to toggle DST functionality.')
f3_time_zone_dst_utc_offset = mib_scalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
f3TimeZoneDstUtcOffset.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneDstUtcOffset.setDescription('This object provides the ability to set DST Offset which is the Daylight Savings Time offset from Local Time.')
f3_time_zone_dst_start_month = mib_scalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 4), month_of_year()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
f3TimeZoneDstStartMonth.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneDstStartMonth.setDescription('This object provides the ability to set DST start month.')
f3_time_zone_dst_start_day = mib_scalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
f3TimeZoneDstStartDay.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneDstStartDay.setDescription('This object provides the ability to set DST start day.')
f3_time_zone_dst_start_time = mib_scalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 6), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
f3TimeZoneDstStartTime.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneDstStartTime.setDescription('This object provides the ability to set DST start time.')
f3_time_zone_dst_end_month = mib_scalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 7), month_of_year()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
f3TimeZoneDstEndMonth.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneDstEndMonth.setDescription('This object provides the ability to set DST end month.')
f3_time_zone_dst_end_day = mib_scalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
f3TimeZoneDstEndDay.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneDstEndDay.setDescription('This object provides the ability to set DST end day.')
f3_time_zone_dst_end_time = mib_scalar((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 1, 9), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
f3TimeZoneDstEndTime.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneDstEndTime.setDescription('This object provides the ability to set DST end time.')
f3_time_zone_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 1))
f3_time_zone_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 2))
f3_time_zone_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 1, 1)).setObjects(('F3-TIMEZONE-MIB', 'f3TimeZoneConfigGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
f3_time_zone_compliance = f3TimeZoneCompliance.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneCompliance.setDescription('Describes the requirements for conformance to the F3-TIMEZONE-MIB compliance.')
f3_time_zone_config_group = object_group((1, 3, 6, 1, 4, 1, 2544, 1, 12, 32, 2, 2, 1)).setObjects(('F3-TIMEZONE-MIB', 'f3TimeZoneUtcOffset'), ('F3-TIMEZONE-MIB', 'f3TimeZoneDstControlEnabled'), ('F3-TIMEZONE-MIB', 'f3TimeZoneDstUtcOffset'), ('F3-TIMEZONE-MIB', 'f3TimeZoneDstStartMonth'), ('F3-TIMEZONE-MIB', 'f3TimeZoneDstStartDay'), ('F3-TIMEZONE-MIB', 'f3TimeZoneDstStartTime'), ('F3-TIMEZONE-MIB', 'f3TimeZoneDstEndMonth'), ('F3-TIMEZONE-MIB', 'f3TimeZoneDstEndDay'), ('F3-TIMEZONE-MIB', 'f3TimeZoneDstEndTime'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
f3_time_zone_config_group = f3TimeZoneConfigGroup.setStatus('current')
if mibBuilder.loadTexts:
f3TimeZoneConfigGroup.setDescription('A collection of objects used to manage the Time Zone.')
mibBuilder.exportSymbols('F3-TIMEZONE-MIB', f3TimeZoneDstControlEnabled=f3TimeZoneDstControlEnabled, f3TimeZoneDstStartMonth=f3TimeZoneDstStartMonth, MonthOfYear=MonthOfYear, f3TimeZoneDstStartDay=f3TimeZoneDstStartDay, PYSNMP_MODULE_ID=f3TimeZoneMIB, f3TimeZoneUtcOffset=f3TimeZoneUtcOffset, f3TimeZoneDstUtcOffset=f3TimeZoneDstUtcOffset, f3TimeZoneDstEndDay=f3TimeZoneDstEndDay, f3TimeZoneCompliances=f3TimeZoneCompliances, f3TimeZoneGroups=f3TimeZoneGroups, f3TimeZoneCompliance=f3TimeZoneCompliance, f3TimeZoneDstEndTime=f3TimeZoneDstEndTime, f3TimeZoneConfigObjects=f3TimeZoneConfigObjects, f3TimeZoneDstEndMonth=f3TimeZoneDstEndMonth, f3TimeZoneConfigGroup=f3TimeZoneConfigGroup, f3TimeZoneDstStartTime=f3TimeZoneDstStartTime, f3TimeZoneConformance=f3TimeZoneConformance, f3TimeZoneMIB=f3TimeZoneMIB) |
class EmptyContextManager:
"""
A context manager that does nothing. Only to support conditional change of context managers,
eg in such a way:
>>> if tx_enabled:
>>> ctxt = transaction.atomic
>>> else:
>>> ctxt = EmptyContextManager()
>>> with ctxt:
>>> ...
"""
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
return False
| class Emptycontextmanager:
"""
A context manager that does nothing. Only to support conditional change of context managers,
eg in such a way:
>>> if tx_enabled:
>>> ctxt = transaction.atomic
>>> else:
>>> ctxt = EmptyContextManager()
>>> with ctxt:
>>> ...
"""
def __enter__(self):
return self
def __exit__(self, exc_type, exc_val, exc_tb):
return False |
def setup ():
size (500, 500)
smooth ()
background(255)
strokeWeight(30)
noLoop ()
def draw ():
stroke(20)
line(50*1,200,150+50*0,300)
line(50*2,200,150+50*1,300)
line(50*3,200,150+50*2,300)
| def setup():
size(500, 500)
smooth()
background(255)
stroke_weight(30)
no_loop()
def draw():
stroke(20)
line(50 * 1, 200, 150 + 50 * 0, 300)
line(50 * 2, 200, 150 + 50 * 1, 300)
line(50 * 3, 200, 150 + 50 * 2, 300) |
def number_indice_to_string(index)->str:
"""
Convert a number to a string.
"""
indicename = ["x", "y", "z"]
return "".join([indicename[i] for i in index]) | def number_indice_to_string(index) -> str:
"""
Convert a number to a string.
"""
indicename = ['x', 'y', 'z']
return ''.join([indicename[i] for i in index]) |
def validate_pin(pin):
if (len(pin) == 4 or len(pin) == 6) and pin.isdigit():
return True
else:
return False | def validate_pin(pin):
if (len(pin) == 4 or len(pin) == 6) and pin.isdigit():
return True
else:
return False |
"""solved with help, hard """
class Solution:
def convertToTitle(self, n):
"""
:type n: int
:rtype: str
"""
result = []
while n > 0:
n -= 1
result.append(chr(n % 26 + 65))
n = n // 26
return ''.join(result[::-1])
if __name__ == '__main__':
print(Solution().convertToTitle(1024))
exit()
assert Solution().convertToTitle(1) == 'A'
assert Solution().convertToTitle(28) == 'AB'
assert Solution().convertToTitle(701) == 'ZY' | """solved with help, hard """
class Solution:
def convert_to_title(self, n):
"""
:type n: int
:rtype: str
"""
result = []
while n > 0:
n -= 1
result.append(chr(n % 26 + 65))
n = n // 26
return ''.join(result[::-1])
if __name__ == '__main__':
print(solution().convertToTitle(1024))
exit()
assert solution().convertToTitle(1) == 'A'
assert solution().convertToTitle(28) == 'AB'
assert solution().convertToTitle(701) == 'ZY' |
"""Membership operators
@see: https://www.w3schools.com/python/python_operators.asp
Membership operators are used to test if a sequence is presented in an object.
"""
def test_membership_operators():
"""Membership operators"""
# Let's use the following fruit list to illustrate membership concept.
fruit_list = ["apple", "banana"]
# in
# Returns True if a sequence with the specified value is present in the object.
# Returns True because a sequence with the value "banana" is in the list
assert "banana" in fruit_list
# not in
# Returns True if a sequence with the specified value is not present in the object
# Returns True because a sequence with the value "pineapple" is not in the list.
assert "pineapple" not in fruit_list
| """Membership operators
@see: https://www.w3schools.com/python/python_operators.asp
Membership operators are used to test if a sequence is presented in an object.
"""
def test_membership_operators():
"""Membership operators"""
fruit_list = ['apple', 'banana']
assert 'banana' in fruit_list
assert 'pineapple' not in fruit_list |
def moveElementToEnd(array, toMove):
# Write your code here.
left = 0
right = len(array) - 1
while left < right:
if array[right] == toMove:
right -= 1
elif array[left] != toMove:
left += 1
elif array[left] == toMove:
array[left], array[right] = array[right], array[left]
left += 1
right -= 1
return array
| def move_element_to_end(array, toMove):
left = 0
right = len(array) - 1
while left < right:
if array[right] == toMove:
right -= 1
elif array[left] != toMove:
left += 1
elif array[left] == toMove:
(array[left], array[right]) = (array[right], array[left])
left += 1
right -= 1
return array |
people = [
{"name": "Harry", "house":"Gryffibdor"},
{"name": "Ron", "house":"Ravenclaw"},
{"name": "Hermione", "house":"Gryffibdor"}
]
# def f(person):
# return person["house"]
people.sort(key=lambda person: person["house"])
print(people) | people = [{'name': 'Harry', 'house': 'Gryffibdor'}, {'name': 'Ron', 'house': 'Ravenclaw'}, {'name': 'Hermione', 'house': 'Gryffibdor'}]
people.sort(key=lambda person: person['house'])
print(people) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
PIXEL_ON = '#'
PIXEL_OFF = '.'
GROWTH_PER_ITERATION = 3
ITERATIONS_PART_ONE = 2
ITERATIONS_PART_TWO = 50
def filter_to_integer(image, x, y, default_value):
# The image enhancement algorithm describes how to enhance an image by simultaneously
# converting all pixels in the input image into an output image. Each pixel of the
# output image is determined by looking at a 3x3 square of pixels centered on the
# corresponding input image pixel.
integer = 0
for y_local in range(y - 1, y + 2):
for x_local in range(x - 1, x + 2):
# These nine input pixels are combined into a single binary number
# that is used as an index in the image enhancement algorithm string.
integer <<= 1
if image.get((x_local, y_local), default_value) == PIXEL_ON:
integer += 1
return integer
def run_filter(i, default_value):
# Scan a 3x3 area for each pixel in the image we're going to generate.
# Because our filter is sneaky and lights up infinite pixels sometimes,
# we'll provide a default value for what we expect in the image if we
# don't get a hit.
new_image = {}
for x in range(0 - (GROWTH_PER_ITERATION * iteration), image_size_x + (GROWTH_PER_ITERATION * iteration) + 1):
for y in range(0 - (GROWTH_PER_ITERATION * iteration), image_size_y + (GROWTH_PER_ITERATION * iteration) + 1):
filter_index = filter_to_integer(i, x, y, default_value)
new_image[(x, y)] = enhancement_algo[filter_index]
return new_image
def lit_pixels(image):
pixel_count = 0
for pixel in image:
if image[pixel] == PIXEL_ON: pixel_count += 1
return pixel_count
# Parse the ocean trench map file
with open('day20_input.txt') as f:
lines = [line.rstrip('\n') for line in f]
# The first section is the image enhancement algorithm. It is normally given on a single line,
# but it has been wrapped to multiple lines in this example for legibility.
enhancement_algo = lines[0]
# The second section is the input image, a two-dimensional grid of light pixels (#) and dark pixels (.).
input_image = lines[2:]
image = {}
for y in range(len(input_image)):
for x in range(len(input_image[y])):
if input_image[y][x] == PIXEL_ON: image[(x, y)] = input_image[y][x]
image_size_x = x
image_size_y = y
iteration = 1
while iteration <= ITERATIONS_PART_TWO:
# The puzzle input very subtly deviates from the example given in the puzzle description:
# Any 3x3 region with no lit pixels will be lit in the next iteration, meaning an infinite
# number will be lit on odd ticks, and then be unlit on the subsequent (even) tick.
#
# To handle this, the filter only examines an area 3 pixels larger in every dimension
# than the existing image. We then know on the next tick that every pixel should default
# to "lit" if it's not in the given image.
image_with_infinite_pixels_lit = run_filter(image, default_value=PIXEL_OFF)
iteration += 1
# Run the same filter, but now defaulting to "lit" out to infinity.
image = run_filter(image_with_infinite_pixels_lit, default_value=PIXEL_ON)
iteration += 1
# Start with the original input image and apply the image enhancement algorithm twice, being careful to account
# for the infinite size of the images. How many pixels are lit in the resulting image?
if iteration - 1 == ITERATIONS_PART_ONE:
print('Part One: {0} pixels are lit after {1} image enhancement algorithms.'.format(lit_pixels(image), ITERATIONS_PART_ONE))
# Start again with the original input image and apply the image enhancement algorithm 50 times.
# How many pixels are lit in the resulting image?
print('Part Two: {0} pixels are lit after {1} image enhancement algorithms.'.format(lit_pixels(image), ITERATIONS_PART_TWO)) | pixel_on = '#'
pixel_off = '.'
growth_per_iteration = 3
iterations_part_one = 2
iterations_part_two = 50
def filter_to_integer(image, x, y, default_value):
integer = 0
for y_local in range(y - 1, y + 2):
for x_local in range(x - 1, x + 2):
integer <<= 1
if image.get((x_local, y_local), default_value) == PIXEL_ON:
integer += 1
return integer
def run_filter(i, default_value):
new_image = {}
for x in range(0 - GROWTH_PER_ITERATION * iteration, image_size_x + GROWTH_PER_ITERATION * iteration + 1):
for y in range(0 - GROWTH_PER_ITERATION * iteration, image_size_y + GROWTH_PER_ITERATION * iteration + 1):
filter_index = filter_to_integer(i, x, y, default_value)
new_image[x, y] = enhancement_algo[filter_index]
return new_image
def lit_pixels(image):
pixel_count = 0
for pixel in image:
if image[pixel] == PIXEL_ON:
pixel_count += 1
return pixel_count
with open('day20_input.txt') as f:
lines = [line.rstrip('\n') for line in f]
enhancement_algo = lines[0]
input_image = lines[2:]
image = {}
for y in range(len(input_image)):
for x in range(len(input_image[y])):
if input_image[y][x] == PIXEL_ON:
image[x, y] = input_image[y][x]
image_size_x = x
image_size_y = y
iteration = 1
while iteration <= ITERATIONS_PART_TWO:
image_with_infinite_pixels_lit = run_filter(image, default_value=PIXEL_OFF)
iteration += 1
image = run_filter(image_with_infinite_pixels_lit, default_value=PIXEL_ON)
iteration += 1
if iteration - 1 == ITERATIONS_PART_ONE:
print('Part One: {0} pixels are lit after {1} image enhancement algorithms.'.format(lit_pixels(image), ITERATIONS_PART_ONE))
print('Part Two: {0} pixels are lit after {1} image enhancement algorithms.'.format(lit_pixels(image), ITERATIONS_PART_TWO)) |
# FIBONACCI PROBLEM
# Write a function 'fib(N)' that takes in a number as an argument.
# The function should return the nth number of the Fibonnaci sequence.
#
# The 0th number of sequence is 0.
# The 1st number of sequence is 1.
#
# To generate the next number of the sequence,we sum the previous two.
#
# N : 0, 1, 2, 3, 4, 5, 6, 7, ...
# fib(N): 0, 1, 1, 2, 3, 5, 8, 13, ...
# --------------------------------------
# A Brute force implementation
# Time Complexity: O(2^N)
# Space Complexity: O(N)
def fib_brute(N):
# Base conditions
if N == 0:
return 0
elif N == 1:
return 1
# Recursive call
return fib_brute(N - 1) + fib_brute(N - 2)
# --------------------------------------
# A DP implementation
# Time Complexity: O(N)
# Space Complexity: O(N)
def fib_dp(N, cache = {}):
# First check if fib(N) present in cache
if N in cache:
return cache[N]
# Base conditions
if N == 0:
return 0
elif N == 1:
return 1
# Make the Recursive call, save it in cache
# and then return the value from cache
cache[N] = fib_dp(N - 1, cache) + fib_dp(N - 2, cache)
return cache[N]
if __name__ == "__main__":
print(fib_brute(7)) # Output must be 13.
print(fib_dp(50)) # Output must be 12586269025. | def fib_brute(N):
if N == 0:
return 0
elif N == 1:
return 1
return fib_brute(N - 1) + fib_brute(N - 2)
def fib_dp(N, cache={}):
if N in cache:
return cache[N]
if N == 0:
return 0
elif N == 1:
return 1
cache[N] = fib_dp(N - 1, cache) + fib_dp(N - 2, cache)
return cache[N]
if __name__ == '__main__':
print(fib_brute(7))
print(fib_dp(50)) |
#lg1009
def exp(n):
ans = 1
for i in range(2, n + 1):
ans *= i
pass
return ans
pass
n = int(input())
tot = 0
for i in range(1, n + 1):
tot += exp(i)
pass
print(tot)
| def exp(n):
ans = 1
for i in range(2, n + 1):
ans *= i
pass
return ans
pass
n = int(input())
tot = 0
for i in range(1, n + 1):
tot += exp(i)
pass
print(tot) |
'''
Problem Description:
------------------
The program takes a file name from the user and
reads the contents of the file in reverse order.
'''
print(__doc__,end="")
print('-'*25)
fileName=input('Enter file name: ')
print('-'*40)
print('Contents of text in reversed order are: ')
for line in reversed(list(open(fileName))):
print(line.rstrip()) | """
Problem Description:
------------------
The program takes a file name from the user and
reads the contents of the file in reverse order.
"""
print(__doc__, end='')
print('-' * 25)
file_name = input('Enter file name: ')
print('-' * 40)
print('Contents of text in reversed order are: ')
for line in reversed(list(open(fileName))):
print(line.rstrip()) |
class Solution:
def mergeTwoLists(self, list1: Optional[ListNode], list2: Optional[ListNode]) -> Optional[ListNode]:
if not list1 or not list2:
return list1 if list1 else list2
if list1.val > list2.val:
list1, list2 = list2, list1
list1.next = self.mergeTwoLists(list1.next, list2)
return list1
| class Solution:
def merge_two_lists(self, list1: Optional[ListNode], list2: Optional[ListNode]) -> Optional[ListNode]:
if not list1 or not list2:
return list1 if list1 else list2
if list1.val > list2.val:
(list1, list2) = (list2, list1)
list1.next = self.mergeTwoLists(list1.next, list2)
return list1 |
#exercicio 97
def escreva(txt):
c = len(txt)
print ('-'*c)
print (txt)
print ('-'*c)
escreva (' Exercicio97 ')
escreva (' resolvido ') | def escreva(txt):
c = len(txt)
print('-' * c)
print(txt)
print('-' * c)
escreva(' Exercicio97 ')
escreva(' resolvido ') |
# 74. Search a 2D Matrix
class Solution:
def searchMatrix(self, matrix: [[int]], target: int) -> bool:
"""
Efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
- Integers in each row are sorted from left to right.
- The first integer of each row is greater than the last integer of the previous row.
"""
if not len(matrix):
return False
row, colum = 0, len(matrix[0]) - 1
while row < len(matrix) and colum >= 0:
matrixItem = matrix[row][colum]
print(matrixItem)
if matrixItem < target:
row += 1
elif matrixItem > target:
colum -= 1
else:
return True
return False
| class Solution:
def search_matrix(self, matrix: [[int]], target: int) -> bool:
"""
Efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
- Integers in each row are sorted from left to right.
- The first integer of each row is greater than the last integer of the previous row.
"""
if not len(matrix):
return False
(row, colum) = (0, len(matrix[0]) - 1)
while row < len(matrix) and colum >= 0:
matrix_item = matrix[row][colum]
print(matrixItem)
if matrixItem < target:
row += 1
elif matrixItem > target:
colum -= 1
else:
return True
return False |
class Elemento:
dado = None
anterior = None
proximo = None
def __init__(self, dado, anterior=None, proximo=None):
self.dado = dado
self.anterior = anterior
self.proximo = proximo
class Lista:
cabeca = None
cauda = None
def __init__(self, elemento):
self.cabeca = elemento
self.cauda = elemento
def inserir_no_meio(self, elemento, posicao):
contador = 0
elemento_atual = self.cabeca
while (contador != posicao):
elemento_atual = elemento_atual.proximo
contador += 1
elemento.proximo = elemento_atual
elemento_atual.anterior.proximo = elemento
elemento_atual.anterior = elemento
def inserir_no_fim(self, elemento):
elemento.anterior = self.cauda
self.cauda.proximo = elemento
self.cauda = elemento
def inserir_no_inicio(self, elemento):
elemento.proximo = self.cabeca
self.cabeca.anterior = elemento
self.cabeca = elemento
| class Elemento:
dado = None
anterior = None
proximo = None
def __init__(self, dado, anterior=None, proximo=None):
self.dado = dado
self.anterior = anterior
self.proximo = proximo
class Lista:
cabeca = None
cauda = None
def __init__(self, elemento):
self.cabeca = elemento
self.cauda = elemento
def inserir_no_meio(self, elemento, posicao):
contador = 0
elemento_atual = self.cabeca
while contador != posicao:
elemento_atual = elemento_atual.proximo
contador += 1
elemento.proximo = elemento_atual
elemento_atual.anterior.proximo = elemento
elemento_atual.anterior = elemento
def inserir_no_fim(self, elemento):
elemento.anterior = self.cauda
self.cauda.proximo = elemento
self.cauda = elemento
def inserir_no_inicio(self, elemento):
elemento.proximo = self.cabeca
self.cabeca.anterior = elemento
self.cabeca = elemento |
"""Storage module for static ids of DataProviders for consistent access.
IDs stored in this module should not be modified programmatically for any reason. Don't do it.
"""
INDICATOR_BLOCK_PROVIDER_ID = "IndicatorBlockProvider"
CLUSTERED_BLOCK_PROVIDER_ID = "ClusteredBlockProvider"
SPLIT_BLOCK_PROVIDER_ID = "SplitBlockProvider"
TREND_DETERMINISTIC_BLOCK_PROVIDER_ID = "TrendDeterministicBlockProvider"
CLOSING_PRICE_REGRESSION_BLOCK_PROVIDER_ID = "ClosingPriceRegressionBlockProvider"
PERCENTAGE_CHANGE_BLOCK_PROVIDER_ID = "PercentageChangeBlockProvider"
| """Storage module for static ids of DataProviders for consistent access.
IDs stored in this module should not be modified programmatically for any reason. Don't do it.
"""
indicator_block_provider_id = 'IndicatorBlockProvider'
clustered_block_provider_id = 'ClusteredBlockProvider'
split_block_provider_id = 'SplitBlockProvider'
trend_deterministic_block_provider_id = 'TrendDeterministicBlockProvider'
closing_price_regression_block_provider_id = 'ClosingPriceRegressionBlockProvider'
percentage_change_block_provider_id = 'PercentageChangeBlockProvider' |
hexN = '0x41ba0320'
print(hexN)
hexP = hexN[2:]
print (hexP[0:2])
print (hexP[2:4])
print (hexP[4:6])
print (hexP[6:8])
print(hexP)
print("{}.{}.{}.{}".format(hexP[0:2],hexP[2:4],hexP[4:6],hexP[6:8])) | hex_n = '0x41ba0320'
print(hexN)
hex_p = hexN[2:]
print(hexP[0:2])
print(hexP[2:4])
print(hexP[4:6])
print(hexP[6:8])
print(hexP)
print('{}.{}.{}.{}'.format(hexP[0:2], hexP[2:4], hexP[4:6], hexP[6:8])) |
# print('Hello, what is your name?') will type out the text in the ()
print('Hello, what is your name?')
# name = input() means that the name you typed is the answer to the question.
name = input()
# print('your name is '+name) will print the sentence plus the name you put in at name = input().
print('Your name is '+name)
| print('Hello, what is your name?')
name = input()
print('Your name is ' + name) |
n,k = map(int,input().split())
l = list(map(int,input().split()))
l.append("fake")
idx=0
ans=[l[0]]
s=set(l)
for i in range(1,n*k+1):
if i not in s:
ans.append(i)
if len(ans)==n:
print(*ans)
idx+=1
ans=[l[idx]] | (n, k) = map(int, input().split())
l = list(map(int, input().split()))
l.append('fake')
idx = 0
ans = [l[0]]
s = set(l)
for i in range(1, n * k + 1):
if i not in s:
ans.append(i)
if len(ans) == n:
print(*ans)
idx += 1
ans = [l[idx]] |
class Solution:
def maxValue(self, grid: List[List[int]]) -> int:
if not grid:
return 0
m, n = len(grid), len(grid[0])
dp = [0] * n
for idx, _ in enumerate(grid[0]):
if idx == 0:
dp[idx] = _
else:
dp[idx] = _ + dp[idx - 1]
for i in range(1, m):
for j in range(n):
if j == 0:
dp[j] += grid[i][j]
else:
dp[j] = max(dp[j - 1], dp[j]) + grid[i][j]
return dp[-1]
| class Solution:
def max_value(self, grid: List[List[int]]) -> int:
if not grid:
return 0
(m, n) = (len(grid), len(grid[0]))
dp = [0] * n
for (idx, _) in enumerate(grid[0]):
if idx == 0:
dp[idx] = _
else:
dp[idx] = _ + dp[idx - 1]
for i in range(1, m):
for j in range(n):
if j == 0:
dp[j] += grid[i][j]
else:
dp[j] = max(dp[j - 1], dp[j]) + grid[i][j]
return dp[-1] |
NON_EMPTY_FILEKEYS = """
.Contents[]
| select(.Size > 0)
| .Key
| select(endswith(".jsonl"))
"""
EMPTY_FILEKEYS = """
.Contents[]
| select(.Size == 0)
| .Key
| select(endswith(".jsonl"))
"""
DELETE_FILTER = """
.ResponseMetadata | {HTTPStatusCode, RetryAttempts}
"""
| non_empty_filekeys = '\n .Contents[]\n | select(.Size > 0)\n | .Key\n | select(endswith(".jsonl"))\n'
empty_filekeys = '\n .Contents[]\n | select(.Size == 0)\n | .Key\n | select(endswith(".jsonl"))\n'
delete_filter = '\n .ResponseMetadata | {HTTPStatusCode, RetryAttempts}\n' |
def yes_no_query():
result = input("[y/n | yes/no]")
result = result.lower()
if result == 'y' or result == 'yes':
return True
elif result == 'n' or result == 'no':
return False
else:
print("[Please Enter yes or no]")
return yes_no_query()
def do_discussion():
# todo: implement speaking stack
# todo: add handling for motion to table
# todo: add handling for call to question
pass
def do_motion(motion_text, motion_maker):
print(f"Motion is {motion_text}")
print("[confirm summary of motion is correct with motion maker and note taker]")
input("[Press any key to continue...]")
print("Do I have a second?")
seconded = yes_no_query()
if not seconded:
return {
"motion text": motion_text,
"motion maker": motion_maker,
"seconded": seconded
}
print("Do I hear any questions or opposition")
discussion = yes_no_query()
if discussion:
do_discussion()
# todo confirm input type, warning on incorrect input and ask again
yay = input("Those in favor: ")
nay = input("Those opposed: ")
abstain = input("Those abstaining: ")
print("[confirm vote tally with note taker]")
input("[Press any key to continue...]")
return {
"motion text": motion_text,
"motion maker": motion_maker,
"seconded": seconded,
"result": (yay, nay, abstain)
}
| def yes_no_query():
result = input('[y/n | yes/no]')
result = result.lower()
if result == 'y' or result == 'yes':
return True
elif result == 'n' or result == 'no':
return False
else:
print('[Please Enter yes or no]')
return yes_no_query()
def do_discussion():
pass
def do_motion(motion_text, motion_maker):
print(f'Motion is {motion_text}')
print('[confirm summary of motion is correct with motion maker and note taker]')
input('[Press any key to continue...]')
print('Do I have a second?')
seconded = yes_no_query()
if not seconded:
return {'motion text': motion_text, 'motion maker': motion_maker, 'seconded': seconded}
print('Do I hear any questions or opposition')
discussion = yes_no_query()
if discussion:
do_discussion()
yay = input('Those in favor: ')
nay = input('Those opposed: ')
abstain = input('Those abstaining: ')
print('[confirm vote tally with note taker]')
input('[Press any key to continue...]')
return {'motion text': motion_text, 'motion maker': motion_maker, 'seconded': seconded, 'result': (yay, nay, abstain)} |
load(
"//rules/common:private/utils.bzl",
_action_singlejar = "action_singlejar",
)
#
# PHASE: binary_deployjar
#
# Writes the optional deploy jar that includes all of the dependencies
#
def phase_binary_deployjar(ctx, g):
main_class = None
if getattr(ctx.attr, "main_class", ""):
main_class = ctx.attr.main_class
_action_singlejar(
ctx,
inputs = depset(
[ctx.outputs.jar],
transitive = [g.javainfo.java_info.transitive_runtime_jars],
),
main_class = main_class,
output = ctx.outputs.deploy_jar,
progress_message = "scala deployable %s" % ctx.label,
compression = True,
)
| load('//rules/common:private/utils.bzl', _action_singlejar='action_singlejar')
def phase_binary_deployjar(ctx, g):
main_class = None
if getattr(ctx.attr, 'main_class', ''):
main_class = ctx.attr.main_class
_action_singlejar(ctx, inputs=depset([ctx.outputs.jar], transitive=[g.javainfo.java_info.transitive_runtime_jars]), main_class=main_class, output=ctx.outputs.deploy_jar, progress_message='scala deployable %s' % ctx.label, compression=True) |
"""
Discounts are determined by a combination of user and course, and have a one to one relationship with the enrollment
(if already enrolled) or a join table of user and course. They are determined in LMS, because all of the data for
the business rules exists here. Discount rules are meant to be permanent.
"""
| """
Discounts are determined by a combination of user and course, and have a one to one relationship with the enrollment
(if already enrolled) or a join table of user and course. They are determined in LMS, because all of the data for
the business rules exists here. Discount rules are meant to be permanent.
""" |
def find_pattern(given):
total = len(given)
pattern = given[0]
to_compare = len(pattern)
for i in range(1, total):
for j in range(to_compare):
if given[i][j] != pattern[j]:
pattern = pattern[:j] + '?' + pattern[j + 1:]
return pattern
if __name__ == '__main__':
n = int(input())
test_case = [input() for _ in range(n)]
# print(test_case)
print(find_pattern(test_case))
| def find_pattern(given):
total = len(given)
pattern = given[0]
to_compare = len(pattern)
for i in range(1, total):
for j in range(to_compare):
if given[i][j] != pattern[j]:
pattern = pattern[:j] + '?' + pattern[j + 1:]
return pattern
if __name__ == '__main__':
n = int(input())
test_case = [input() for _ in range(n)]
print(find_pattern(test_case)) |
"""Some utils to make parsing easier."""
def _string_to_db(stream: str) -> list:
db_values = []
if stream == '':
return db_values
escaped_actual = (
(r'\n', ord('\n')),
(r'\t', ord('\t'))
)
for c, val in escaped_actual:
if c in stream:
a, b = stream.split(c, maxsplit=1)
a = _string_to_db(a)
b = _string_to_db(b)
db_values.extend([*a, val, *b])
return db_values
return [stream]
def string_to_db(stream: str) -> str:
vals = _string_to_db(stream)
vals_quoted = []
length = 0
for val in vals:
if isinstance(val, str):
length += len(val)
vals_quoted.append(f'"{val}"')
else:
length += 1
vals_quoted.append(str(val))
return ','.join(vals_quoted) + ', 0', length + 1
def read_until_sentinel(iterator, sentinel: str) -> str:
acc = ''
for item in iterator:
acc += item
if item == sentinel:
break
return acc
def remove_comments(stream: str) -> str:
"""
Remove comments from a stream of code.
Not the prettiest of solutions but it'll do
"""
def remove_comment_from_line(line):
return line.split('#', maxsplit=1)[0]
uncommented_lines = map(remove_comment_from_line, stream.split('\n'))
uncommented_code = '\n'.join(uncommented_lines)
return uncommented_code
def pyre_split(stream: str) -> list:
"""Get a list of lexemes from a stream of code."""
# We add a space at the end to force the last item to be added
# Modern problems require modern solutions
stream = stream.strip() + ' '
items = []
acc = ''
stream_iterator = iter(stream)
for c in stream_iterator:
if c == '"' or c == "'":
assert acc == ''
acc = c + read_until_sentinel(stream_iterator, sentinel=c)
elif c == '[':
acc += c + read_until_sentinel(stream_iterator, sentinel=']')
elif c.isspace():
if acc != '':
items.append(acc)
acc = ''
continue
else:
acc += c
return items
| """Some utils to make parsing easier."""
def _string_to_db(stream: str) -> list:
db_values = []
if stream == '':
return db_values
escaped_actual = (('\\n', ord('\n')), ('\\t', ord('\t')))
for (c, val) in escaped_actual:
if c in stream:
(a, b) = stream.split(c, maxsplit=1)
a = _string_to_db(a)
b = _string_to_db(b)
db_values.extend([*a, val, *b])
return db_values
return [stream]
def string_to_db(stream: str) -> str:
vals = _string_to_db(stream)
vals_quoted = []
length = 0
for val in vals:
if isinstance(val, str):
length += len(val)
vals_quoted.append(f'"{val}"')
else:
length += 1
vals_quoted.append(str(val))
return (','.join(vals_quoted) + ', 0', length + 1)
def read_until_sentinel(iterator, sentinel: str) -> str:
acc = ''
for item in iterator:
acc += item
if item == sentinel:
break
return acc
def remove_comments(stream: str) -> str:
"""
Remove comments from a stream of code.
Not the prettiest of solutions but it'll do
"""
def remove_comment_from_line(line):
return line.split('#', maxsplit=1)[0]
uncommented_lines = map(remove_comment_from_line, stream.split('\n'))
uncommented_code = '\n'.join(uncommented_lines)
return uncommented_code
def pyre_split(stream: str) -> list:
"""Get a list of lexemes from a stream of code."""
stream = stream.strip() + ' '
items = []
acc = ''
stream_iterator = iter(stream)
for c in stream_iterator:
if c == '"' or c == "'":
assert acc == ''
acc = c + read_until_sentinel(stream_iterator, sentinel=c)
elif c == '[':
acc += c + read_until_sentinel(stream_iterator, sentinel=']')
elif c.isspace():
if acc != '':
items.append(acc)
acc = ''
continue
else:
acc += c
return items |
x = float(input())
n = int(input())
def expo(x, n):
num = 1
den = 1
sumi = 1
if n == 1:
return 1
for cnt in range(1, n):
num *= x
den *= cnt
sumi += num / den
return sumi
print("{:.3f}".format(expo(x, n) ))
| x = float(input())
n = int(input())
def expo(x, n):
num = 1
den = 1
sumi = 1
if n == 1:
return 1
for cnt in range(1, n):
num *= x
den *= cnt
sumi += num / den
return sumi
print('{:.3f}'.format(expo(x, n))) |
# fo =open("/disk/lulu/TCGA11.txt","w")
with open(r"/disk/lulu/TCGA1.txt","r") as TCGA:
temp=[]
cancerlist=[]
cancer =[]
for line in TCGA:
list = line.strip().split("\t")
temp = list[0]
cancerlist.append(temp)
cancer = sorted(set(cancerlist))
print (cancer)
TCGAlist=[]
for item in cancer:
# print (item)
dict = {item: []}
with open(r"/disk/lulu/TCGA1.txt", "r") as TCGA1:
for line in TCGA1:
list = line.strip().split("\t")
if item==list[0]:
dict[item].append(list[2])
TCGAlist.append(dict)
print (TCGAlist)
# print (dict)
# temp.append(line1)
# mytemp = sorted(set(temp))
# for item in mytemp:
# fo.write(item+"\t"+str(round(temp.count(item)/38,2))+"\n")
# # print(item+"\t"+str(round(temp.count(item)/38,2))+"\n") | with open('/disk/lulu/TCGA1.txt', 'r') as tcga:
temp = []
cancerlist = []
cancer = []
for line in TCGA:
list = line.strip().split('\t')
temp = list[0]
cancerlist.append(temp)
cancer = sorted(set(cancerlist))
print(cancer)
tcg_alist = []
for item in cancer:
dict = {item: []}
with open('/disk/lulu/TCGA1.txt', 'r') as tcga1:
for line in TCGA1:
list = line.strip().split('\t')
if item == list[0]:
dict[item].append(list[2])
TCGAlist.append(dict)
print(TCGAlist) |
# https://www.hackerrank.com/challenges/strange-code/problem?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign
starting = 3
index = 1
# time and value seperated by 2 min
time,value = [],[]
for i in range(1,40+1):
time.append(index) # time
value.append(starting) # value
index = starting+index
starting *= 2
cycle = list(zip(time,value))
# time
t = 213921847123
# value to find in time
f = 0
for i in range(len(time)):
if ((t<time[i]) is True) and ((t>time[i]) is False):
f = (i-1,time[i-1])
break
a = abs(f[1]-t)
print(value[f[0]]-a) | starting = 3
index = 1
(time, value) = ([], [])
for i in range(1, 40 + 1):
time.append(index)
value.append(starting)
index = starting + index
starting *= 2
cycle = list(zip(time, value))
t = 213921847123
f = 0
for i in range(len(time)):
if (t < time[i]) is True and (t > time[i]) is False:
f = (i - 1, time[i - 1])
break
a = abs(f[1] - t)
print(value[f[0]] - a) |
#
# PySNMP MIB module HPN-ICF-EPON-DEVICE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-EPON-DEVICE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:38:33 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint")
hpnicfEpon, = mibBuilder.importSymbols("HPN-ICF-OID-MIB", "hpnicfEpon")
ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Integer32, TimeTicks, NotificationType, Gauge32, mib_2, ObjectIdentity, Counter64, IpAddress, zeroDotZero, iso, MibIdentifier, Counter32, ModuleIdentity, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Integer32", "TimeTicks", "NotificationType", "Gauge32", "mib-2", "ObjectIdentity", "Counter64", "IpAddress", "zeroDotZero", "iso", "MibIdentifier", "Counter32", "ModuleIdentity", "Unsigned32")
MacAddress, DateAndTime, RowStatus, TextualConvention, TruthValue, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "DateAndTime", "RowStatus", "TextualConvention", "TruthValue", "DisplayString")
hpnicfEponDeviceMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4))
hpnicfEponDeviceMIB.setRevisions(('2004-09-21 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setRevisionsDescriptions(('Initial version, published as RFC XXXX.',))
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setLastUpdated('200409210000Z')
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setOrganization('')
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setContactInfo('')
if mibBuilder.loadTexts: hpnicfEponDeviceMIB.setDescription("The objects in this MIB module are used to manage Ethernet Passive Optical Network (EPON) devices which are based on the Ethernet in the First Mile (EFM) PON as defined in IEEE Draft P802.3ah/D3.0 clause 60,64,65. This MIB is excerpted from the draft files directly,only changed the object name,added the hpnicf as prefix. The following reference is used throughout this MIB module: [802.3ah] refers to: IEEE Draft P802.3ah/D3.3: 'Draft amendment to - Information technology - Telecommunications and information exchange between systems - Local and metropolitan area networks - Specific requirements - Part 3: Carrier sense multiple access with collision detection (CSMA/CD) access method and physical layer specifications - Media Access Control Parameters, Physical Layers and Management Parameters for subscriber access networks', 22 April 2004. Of particular interest are Clause 64(MPCP) 65(P2mP RS) and 60 (PON PMDs). Clause 30, 'Management', and Clause 45,'Management Data Input/Output (MDIO) Interface'. Copyright (C) The Internet Society (2004). This version of this MIB module is part of XXXX see the RFC itself for full legal notices.")
hpnicfEponDeviceObjectMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1))
hpnicfEponDeviceObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1))
hpnicfEponDeviceConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2))
hpnicfEponDeviceControlObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1))
hpnicfEponDeviceStatObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2))
hpnicfEponDeviceEventObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3))
hpnicfEponDeviceControlTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1), )
if mibBuilder.loadTexts: hpnicfEponDeviceControlTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceControlTable.setDescription('Table for EPON device MIB modules.')
hpnicfEponDeviceControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceControlEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceControlEntry.setDescription('An entry in the EPON device Control table.')
hpnicfEponDeviceObjectReset = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("running", 1), ("reset", 2))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectReset.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectReset.setDescription('This variable is used to reset the EPON device. The interface may be unavailable while the reset occurs and data may be lost. During reading operation it returns the state of the EPON device. running(1) indicates and operates normal operation, reset(2) indicates and operates reset mode. Writing can be done all the time.')
hpnicfEponDeviceObjectModes = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("olt", 1), ("onu", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectModes.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectModes.setDescription('This variable defines the mode of the EPON device. When an olt(1) it is an Optical Line Terminal device (server) and when an onu(2) and Optical Network Unit device (client)')
hpnicfEponDeviceObjectFecEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noFecEnabled", 1), ("fecTxEnabled", 2), ("fecRxEnabled", 3), ("fecTxRxEnabled", 4))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectFecEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectFecEnabled.setDescription('This variable defines and provides information whether the EPON device uses FEC as defined in the [802.3ah] clause 65.2 for EPON. When noFECEnabled(1) the device does not support FEC mode When fecTxEnabled(2) the device supports the FEC transmission mode. When fecRxEnabled(3) the device supports the FEC Receive mode. When fecTxRxEnabled(4) the device supports the FEC transmission and receive mode. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectOamMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noOam", 1), ("oamServer", 2), ("oamclient", 3))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectOamMode.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectOamMode.setDescription('This variable defines and provides information on the Operation Administration and Maintenance (OAM) mode of an EPON device as defined by the [802.3ah] clause 57. When noOam(1) the device does not supports the OAM mode. When oamServer(2) the device supports the OAM mode as a server unit. When oamClient(3) the device supports the OAM mode as a client unit. Writing can be done during initialization, hpnicfEponDeviceObjectDeviceReadyMode is in notReady(1) or inProcess(2). This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectDeviceReadyMode = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notReady", 1), ("inProcess", 2), ("ready", 3))).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectDeviceReadyMode.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectDeviceReadyMode.setDescription('This variable defines the mode of an EPON device and provides information on the mode in initialization - ready for registration as defined by the [802.3ah] clause 64. When notReady(1) the device is not ready for operation. When inProcess(2) the device is in initialization process. When ready(3) the device is ready for registration. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectPowerDown = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 7), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectPowerDown.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectPowerDown.setDescription('Setting this variable to True(1) will cause Device to be entered into Power down mode where no registration is allowed and only receiving data from the link. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectNumberOfLLIDs = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectNumberOfLLIDs.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectNumberOfLLIDs.setDescription('A read only variable which defines the number of registered LLIDs (as defined by the [802.3ah] clause 65) in a EPON network for an OLT and an ONU. Initialization value is 0. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceObjectReportThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 9), Integer32()).setUnits('TQ (16nsec)').setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceObjectReportThreshold.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceObjectReportThreshold.setDescription('A set of 8 integers, for each LLID, that defines the threshold reporting for each Queue in the REPORT message, as defined in [802.3ah] 64. First Queue set reporting will provide information on the queue occupancy of frames below this Threshold. The value returned shall be in Time quanta (TQ) which is 16nsec or 2 octets increments. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceRemoteMACAddressLLIDControl = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("resetLog", 2), ("useDefaultReporting", 3))).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDControl.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDControl.setDescription('Indicates and controls the resetting of the LLID MAC address log. Setting this object to none(1) has no action resetLog(2) empties the LLID MAC address log. All data is deleted. Setting it to useDefaultReporting(3) returns all entries priorities to their factory-default reporting. Reading this object always returns useDefaultReporting(3).')
hpnicfEponDeviceRemoteMACAddressLLIDTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2), )
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDTable.setDescription('A table of read-only value that identifies the source_address and LLIDs parameter of the remote devices in the network. This MacAddress value, as defined in [802.3ah], 30.3.5.1.5, is updated on reception of a valid frame with a unicast destination Field or (1) a destination Field equal to the reserved multicast address for MAC Control specified in [802.3ah] Annex 31A, (2) lengthOrType field value equal to the reserved Type for MAC Control as specified in [802.3ah] Annex 31A. (3)an MPCP subtype value equal to the subtype reserved for MPCP as specified in [802.3ah] Annex 31A, and an LLID as allocated by the OLT. The table is defined as Remote MAC address - LLID (RMadL) The table is relevant only for an OLT device, and is equivalent from a bridge emulation to the bridge port-MAC address table where the LLIDs are equivalent to virtual bridge ports.')
hpnicfEponDeviceRemoteMACAddressLLIDEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDEntry.setDescription('A group of entries. Applications create and delete entries using hpnicfEponDeviceRMadlEntryStatus. When adding objects to an LLID they are added in the persistent order of their index in this table.')
hpnicfEponDeviceRemoteMACAddressLLIDName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDName.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRemoteMACAddressLLIDName.setDescription('A locally-unique, administratively assigned name for a group of entries.')
hpnicfEponDeviceRMadlLLID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlLLID.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlLLID.setDescription('An arbitrary integer for the purpose of identifying the LLID. Writing can be done all the time.')
hpnicfEponDeviceRMadlLogID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 3), ObjectIdentifier().clone((0, 0))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlLogID.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlLogID.setDescription('The object identifier of a MIB module object to add to an entry, indicating the entry ID in the table. Writing can be done all the time.')
hpnicfEponDeviceRMadlRemoteAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 4), MacAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlRemoteAddress.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlRemoteAddress.setDescription('The remote MAC address of the LLID. Writing can be done all the time.')
hpnicfEponDeviceRMadlType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notRegister", 1), ("registered", 2))).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlType.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlType.setDescription('A list of types for entries - LLIDs. Indicates and defines the state of registration. notRegister(1) marks a non registered LID, registered(2) marks a registered LLID. Writing can be done all the time.')
hpnicfEponDeviceRMadlAction = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("register", 2), ("deregister", 3), ("reregister", 4))).clone(1)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlAction.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlAction.setDescription('A list of actions for an entry - LLID. Indicates and defines the state of registration for the remote device. none(1) marks no action, register(2) marks to register an LLID, deregister(3) marks to deregister an LLID, reregister(4) marks reregistered LLID. Writing can be done all the time.')
hpnicfEponDeviceRMadlEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 7), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlEntryStatus.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceRMadlEntryStatus.setDescription('The control that allows creation and deletion of entries. Once made active an entry MAY not be modified except to delete it.')
hpnicfEponDeviceStatTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1), )
if mibBuilder.loadTexts: hpnicfEponDeviceStatTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTable.setDescription('This table defines the list of statistics counters of EPON devices. The attributes are relevant for an OLT and an ONU.')
hpnicfEponDeviceStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceStatEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatEntry.setDescription('Table entries for Table of statistics counters of EPON devices.')
hpnicfEponDeviceStatTxFramesQueue0 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 1), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue0.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue0.setDescription('A count of the number of times a -Queue-0- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-0-. The -Queue-0- marking matched the REPORT MPCP message Queue-0 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue1 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 2), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue1.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue1.setDescription('A count of the number of times a -Queue-1- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-1-. The -Queue-1- marking matched the REPORT MPCP message Queue-1 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue2 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 3), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue2.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue2.setDescription('A count of the number of times a -Queue-2- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-2-. The -Queue-2- marking matched the REPORT MPCP message Queue-2 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue3 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 4), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue3.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue3.setDescription('A count of the number of times a -Queue-3- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-3-. The -Queue-3- marking matched the REPORT MPCP message Queue-3 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue4 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 5), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue4.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue4.setDescription('A count of the number of times a -Queue-4- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-4-. The -Queue-4- marking matched the REPORT MPCP message Queue-4 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue5 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 6), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue5.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue5.setDescription('A count of the number of times a -Queue-5- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-5-. The -Queue-5- marking matched the REPORT MPCP message Queue-5 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue6 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 7), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue6.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue6.setDescription('A count of the number of times a -Queue-6- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-6-. The -Queue-6- marking matched the REPORT MPCP message Queue-6 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatTxFramesQueue7 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 8), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue7.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatTxFramesQueue7.setDescription('A count of the number of times a -Queue-7- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-7-. The -Queue-7- marking matched the REPORT MPCP message Queue-7 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatRxFramesQueue0 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 9), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue0.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue0.setDescription('A count of the number of times a -Queue-0- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-0-. The -Queue-0- marking matched the REPORT MPCP message Queue-0 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue1 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 10), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue1.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue1.setDescription('A count of the number of times a -Queue-1- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-1-. The -Queue-1- marking matched the REPORT MPCP message Queue-1 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue2 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 11), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue2.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue2.setDescription('A count of the number of times a -Queue-2- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-2-. The -Queue-2- marking matched the REPORT MPCP message Queue-2 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue3 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 12), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue3.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue3.setDescription('A count of the number of times a -Queue-3- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-3-. The -Queue-3- marking matched the REPORT MPCP message Queue-3 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue4 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 13), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue4.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue4.setDescription('A count of the number of times a -Queue-4- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-4-. The -Queue-4- marking matched the REPORT MPCP message Queue-4 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue5 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 14), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue5.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue5.setDescription('A count of the number of times a -Queue-5- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-5-. The -Queue-5- marking matched the REPORT MPCP message Queue-5 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue6 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 15), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue6.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue6.setDescription('A count of the number of times a -Queue-6- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-6-. The -Queue-6- marking matched the REPORT MPCP message Queue-6 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatRxFramesQueue7 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 16), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue7.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatRxFramesQueue7.setDescription('A count of the number of times a -Queue-7- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-7-. The -Queue-7- marking matched the REPORT MPCP message Queue-7 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicfEponDeviceStatDroppedFramesQueue0 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 17), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue0.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue0.setDescription('A count of the number of times a -Queue-0- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-0-. The -Queue-0- marking matched the REPORT MPCP message Queue-0 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue1 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 18), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue1.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue1.setDescription('A count of the number of times a -Queue-1- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-1-. The -Queue-1- marking matched the REPORT MPCP message Queue-1 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue2 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 19), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue2.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue2.setDescription('A count of the number of times a -Queue-2- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-2-. The -Queue-2- marking matched the REPORT MPCP message Queue-2 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue3 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 20), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue3.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue3.setDescription('A count of the number of times a -Queue-3- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-3-. The -Queue-3- marking matched the REPORT MPCP message Queue-3 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue4 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 21), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue4.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue4.setDescription('A count of the number of times a -Queue-4- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-4-. The -Queue-4- marking matched the REPORT MPCP message Queue-4 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue5 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 22), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue5.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue5.setDescription('A count of the number of times a -Queue-5- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-5-. The -Queue-5- marking matched the REPORT MPCP message Queue-5 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue6 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 23), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue6.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue6.setDescription('A count of the number of times a -Queue-6- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-6-. The -Queue-6- marking matched the REPORT MPCP message Queue-6 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceStatDroppedFramesQueue7 = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 24), Counter32()).setUnits('frames').setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue7.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceStatDroppedFramesQueue7.setDescription('A count of the number of times a -Queue-7- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-7-. The -Queue-7- marking matched the REPORT MPCP message Queue-7 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicfEponDeviceEventObjectTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1), )
if mibBuilder.loadTexts: hpnicfEponDeviceEventObjectTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventObjectTable.setDescription('This table defines the Event Objects for EPON devices. The attributes are relevant for an OLT and an ONU.')
hpnicfEponDeviceEventObjectEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceEventObjectEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventObjectEntry.setDescription('Table entries for Table of Event objects for EPON devices.')
hpnicfEponDeviceSampleMinimum = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647)).clone(1)).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceSampleMinimum.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceSampleMinimum.setDescription("The minimum Frequency of events this system will accept. A system may use the larger values of this minimum to lessen the impact of constant sampling. For larger sampling intervals the system samples less often and suffers less overhead. Unless explicitly resource limited, a system's value for this object SHOULD be 1, allowing as small as a 1 second interval for ongoing trigger sampling. Writing of the value can be done all the time.")
hpnicfEponDeviceDyingGaspAlarmState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceDyingGaspAlarmState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceDyingGaspAlarmState.setDescription('A read-only variable, which defines the state of the Dying Gasp indication of the OAM alarm indications as described in the [802.3ah] clause 57. When true the device has a dying gasp alarm asserted. When false the dying gasp alarm is reset ')
hpnicfEponDeviceDyingGaspAlarmEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 3), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceDyingGaspAlarmEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceDyingGaspAlarmEnabled.setDescription('A control to allow DyingGaspAlarm event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceCriticalEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 4), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceCriticalEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceCriticalEventState.setDescription('A read-only variable, which defines the state of the Critical Event indication of the OAM alarm indications as described in the [802.3ah] clause 57. When true the device has a Critical Event asserted. When false the Critical Event is reset.')
hpnicfEponDeviceCriticalEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 5), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceCriticalEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceCriticalEventEnabled.setDescription('A control to allow CriticalEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceLocalLinkFaultAlarmState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 6), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceLocalLinkFaultAlarmState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceLocalLinkFaultAlarmState.setDescription('A read-only variable, which defines the state of the Local Link Fault indication of the OAM alarm indications as described in the [802.3ah] clause 57. When true the device has a Local Link Fault alarm asserted. When false the Local Link Fault alarm is reset.')
hpnicfEponDeviceLocalLinkFaultAlarmEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 7), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceLocalLinkFaultAlarmEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceLocalLinkFaultAlarmEnabled.setDescription('A control to allow LocalLinkFaultAlarm event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceTemperatureEventIndicationState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 8), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceTemperatureEventIndicationState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceTemperatureEventIndicationState.setDescription('A read-only variable, which defines the state of the Temperature Event indication of an EPON device. When condition of box temperature is above the threshold defined the alarm is asserted. When the condition is below that threshold the alarm is de-asserted. When true the device has a Temperature Event Indication asserted. When false the Temperature Event Indication is reset.')
hpnicfEponDeviceTemperatureEventIndicationEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 9), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceTemperatureEventIndicationEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceTemperatureEventIndicationEnabled.setDescription('A control to allow TemperatureEventIndication event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDevicePowerVoltageEventIndicationState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 10), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDevicePowerVoltageEventIndicationState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDevicePowerVoltageEventIndicationState.setDescription('A read-only variable, which defines the state of the Power/Voltage Event Indication of an EPON device. When condition of box Power/voltage is above the threshold defined the alarm is asserted. When the condition is below that threshold the alarm is de-asserted. When true the device has a Power/Voltage Event Indication asserted. When false the Power/Voltage Event Indication is reset. ')
hpnicfEponDevicePowerVoltageEventIndicationEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 11), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDevicePowerVoltageEventIndicationEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDevicePowerVoltageEventIndicationEnabled.setDescription('A control to allow PowerVoltageEventIndication event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceGlobalEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 12), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceGlobalEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGlobalEventState.setDescription('A read-only variable, which defines the state of the Global Event indication of an EPON device. When the indication of the event input occurs the event is asserted. When the input is removed that event is de-asserted. When true the device has a Global Event asserted. When false the Global Event Indication is reset.')
hpnicfEponDeviceGlobalEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 13), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceGlobalEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGlobalEventEnabled.setDescription('A control to allow GlobalEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceErroredSymbolPeriodEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 14), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredSymbolPeriodEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredSymbolPeriodEventState.setDescription('A read-only variable, which defines the state of the Errored Symbol Period Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Symbol Period Event asserted. When false the Errored Symbol Period Event is reset.')
hpnicfEponDeviceErroredSymbolPeriodEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 15), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredSymbolPeriodEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredSymbolPeriodEventEnabled.setDescription('A control to allow ErroredSymbolPeriodEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceErroredFrameEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 16), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameEventState.setDescription('A read-only variable, which defines the state of the Errored Frame Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Frame Event asserted. When false the Errored Frame Event is reset.')
hpnicfEponDeviceErroredFrameEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 17), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameEventEnabled.setDescription('A control to allow ErroredFrameEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceErroredFramePeriodEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 18), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFramePeriodEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFramePeriodEventState.setDescription('A read-only variable, which defines the state of the Errored Frame Period Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Frame Period Event asserted. When false the Errored Frame Period Event is reset.')
hpnicfEponDeviceErroredFramePeriodEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 19), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFramePeriodEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFramePeriodEventEnabled.setDescription('A control to allow ErroredFramePeriodEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceErroredFrameSecondsSummaryEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 20), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameSecondsSummaryEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameSecondsSummaryEventState.setDescription('A read-only variable, which defines the state of the Errored Frame Seconds Summary Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Frame Seconds Summary Event asserted. When false the Errored Frame Seconds Summary Event is reset.')
hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 21), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled.setDescription('A control to allow ErroredFrameSecondsSummaryEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceOrganizationSpecificEventState = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 22), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceOrganizationSpecificEventState.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceOrganizationSpecificEventState.setDescription('A read-only variable, which defines the state of the Organization Specific Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Organization Specific Event asserted. When false the Organization Specific Event is reset.')
hpnicfEponDeviceOrganizationSpecificEventEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 23), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceOrganizationSpecificEventEnabled.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceOrganizationSpecificEventEnabled.setDescription('A control to allow OrganizationSpecificEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicfEponDeviceEventControl = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("resetLog", 2), ("useDefaultReporting", 3))).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hpnicfEponDeviceEventControl.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventControl.setDescription('Indicates and controls the resetting of the Event log. Setting this object to none(1) has no action resetLog(2) empties the event log. All data is deleted. Setting it to useDefaultReporting(3) returns all event priorities to their factory-default reporting. Reading this object always returns useDefaultReporting(3).')
hpnicfEponDeviceEventsLogTable = MibTable((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2), )
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogTable.setDescription('A table of objects provides a log of notification based on the event as pointed to by entries in those tables. The intent is a MAC level event log (set of events to when they happened). This attribute is relevant for an OLT and an ONU.')
hpnicfEponDeviceEventsLogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1), ).setIndexNames((0, "HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogName"), (0, "HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogIndex"))
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogEntry.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogEntry.setDescription('A group of Events. Applications create and delete entries using hpnicfEponDeviceEventsEntryStatus. When adding objects to a notification they are added in the lexical order of their index in this table.')
hpnicfEponDeviceEventsLogName = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 32)))
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogName.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogName.setDescription('A locally-unique, administratively assigned name for a group of Events.')
hpnicfEponDeviceEventsLogIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogIndex.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogIndex.setDescription('An arbitrary integer for the purpose of identifying individual Events within a hpnicfEponDeviceEventsLogName group. Events within a group are placed in the notification in the numerical order of this index.')
hpnicfEponDeviceEventsLogID = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 3), ObjectIdentifier().clone((0, 0))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogID.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogID.setDescription('The object identifier of a MIB module object to add to a Notification that results from the event. Writing can be done all the time.')
hpnicfEponDeviceEventsLogFirstTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 4), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogFirstTime.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogFirstTime.setDescription('The time that an entry was created.')
hpnicfEponDeviceEventsLogLastTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 5), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogLastTime.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogLastTime.setDescription('If multiple events are reported via the same entry, the time that the last event for this entry occurred, otherwise this should have the same value as hpnicfEponDeviceEventsLogFirstTime.')
hpnicfEponDeviceEventsLogCounts = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogCounts.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogCounts.setDescription('The number of consecutive event instances reported by this entry. This starts at 1 with the creation of this row and increments by 1 for each subsequent duplicate event.')
hpnicfEponDeviceEventsLogType = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("hpnicfEponDeviceDyingGaspAlarmState", 1), ("hpnicfEponDeviceCriticalEventState", 2), ("hpnicfEponDeviceLocalLinkFaultAlarmState", 3), ("hpnicfEponDeviceTemperatureEventIndicationState", 4), ("hpnicfEponDevicePowerVoltageEventIndicationState", 5), ("hpnicfEponDeviceGlobalEventState", 6), ("hpnicfEponDeviceErroredSymbolPeriodEventState", 7), ("hpnicfEponDeviceErroredFrameEventState", 8), ("hpnicfEponDeviceErroredFramePeriodEventState", 9), ("hpnicfEponDeviceErroredFrameSecondsSummaryEventState", 10), ("hpnicfEponDeviceOrganizationSpecificEventState", 11)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogType.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogType.setDescription('A list of types for Events. Events are ordered according to their significance where 1 is the highest severity. hpnicfEponDeviceDyingGaspAlarmState(1) indicates a Dying Gasp Alarm State, hpnicfEponDeviceCriticalEventState(2) indicates a Critical Event State, hpnicfEponDeviceLocalLinkFaultAlarmState(3) indicates a Local Link Fault Alarm State, hpnicfEponDeviceTemperatureEventIndicationState(4) indicates a Temperature Event Indication State, hpnicfEponDevicePowerVoltageEventIndicationState(5) indicates a Power Voltage Event Indication State, hpnicfEponDeviceGlobalEventState(6) indicates a Global Event State, hpnicfEponDeviceErroredSymbolPeriodEventState(7) indicates an Errored Symbol Period Event State, hpnicfEponDeviceErroredFrameEventState(8) indicates an Errored Frame Event State, hpnicfEponDeviceErroredFramePeriodEventState(9) indicates an Errored Frame Period Event State, hpnicfEponDeviceErroredFrameSecondsSummaryEventState(10) indicates an Errored Frame Seconds Summary Event State, hpnicfEponDeviceOrganizationSpecificEventState(11) indicates an Organization Specific Event State. ')
hpnicfEponDeviceEventsLogEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 8), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogEntryStatus.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceEventsLogEntryStatus.setDescription('The control that allows creation and deletion of entries. Once made active an entry MAY not be modified except to delete it.')
hpnicfEponDeviceGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1))
hpnicfEponDeviceGroupControl = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 1)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectReset"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectModes"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectFecEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectOamMode"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectDeviceReadyMode"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectPowerDown"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectNumberOfLLIDs"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceObjectReportThreshold"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRemoteMACAddressLLIDControl"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupControl = hpnicfEponDeviceGroupControl.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupControl.setDescription('A collection of objects of hpnicfEponDevice control definition.')
hpnicfEponDeviceGroupRMadLTable = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 2)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlLLID"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlLogID"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlRemoteAddress"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlType"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlAction"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceRMadlEntryStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupRMadLTable = hpnicfEponDeviceGroupRMadLTable.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupRMadLTable.setDescription('A collection of objects of hpnicfEponDevice remote Mac address to LLID table.')
hpnicfEponDeviceGroupStat = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 3)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue0"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue1"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue2"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue3"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue4"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue5"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue6"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatTxFramesQueue7"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue0"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue1"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue2"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue3"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue4"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue5"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue6"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatRxFramesQueue7"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue0"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue1"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue2"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue3"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue4"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue5"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue6"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceStatDroppedFramesQueue7"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupStat = hpnicfEponDeviceGroupStat.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupStat.setDescription('A collection of objects of EPON device Statistics')
hpnicfEponDeviceGroupEvent = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 4)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceSampleMinimum"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceDyingGaspAlarmState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceDyingGaspAlarmEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceCriticalEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceCriticalEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceLocalLinkFaultAlarmState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceLocalLinkFaultAlarmEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceTemperatureEventIndicationState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceTemperatureEventIndicationEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDevicePowerVoltageEventIndicationState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDevicePowerVoltageEventIndicationEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGlobalEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGlobalEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredSymbolPeriodEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredSymbolPeriodEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFrameEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFrameEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFramePeriodEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFramePeriodEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFrameSecondsSummaryEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceOrganizationSpecificEventState"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceOrganizationSpecificEventEnabled"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventControl"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupEvent = hpnicfEponDeviceGroupEvent.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupEvent.setDescription('A collection of objects for EPON device Events')
hpnicfEponDeviceGroupEventLog = ObjectGroup((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 5)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogID"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogFirstTime"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogLastTime"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogCounts"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogType"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceEventsLogEntryStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceGroupEventLog = hpnicfEponDeviceGroupEventLog.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceGroupEventLog.setDescription('A collection of objects for EPON device Events log')
hpnicfEponDeviceCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 2))
hpnicfEponDeviceCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 2, 1)).setObjects(("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupControl"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupRMadLTable"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupStat"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupEvent"), ("HPN-ICF-EPON-DEVICE-MIB", "hpnicfEponDeviceGroupEventLog"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicfEponDeviceCompliance = hpnicfEponDeviceCompliance.setStatus('current')
if mibBuilder.loadTexts: hpnicfEponDeviceCompliance.setDescription('The compliance statement for EPON Devices.')
mibBuilder.exportSymbols("HPN-ICF-EPON-DEVICE-MIB", hpnicfEponDeviceGroupEventLog=hpnicfEponDeviceGroupEventLog, hpnicfEponDeviceStatEntry=hpnicfEponDeviceStatEntry, hpnicfEponDeviceEventsLogEntryStatus=hpnicfEponDeviceEventsLogEntryStatus, hpnicfEponDeviceCompliance=hpnicfEponDeviceCompliance, hpnicfEponDeviceGroupControl=hpnicfEponDeviceGroupControl, hpnicfEponDeviceStatTxFramesQueue4=hpnicfEponDeviceStatTxFramesQueue4, hpnicfEponDeviceStatObjects=hpnicfEponDeviceStatObjects, hpnicfEponDeviceLocalLinkFaultAlarmState=hpnicfEponDeviceLocalLinkFaultAlarmState, hpnicfEponDeviceConformance=hpnicfEponDeviceConformance, hpnicfEponDeviceEventsLogFirstTime=hpnicfEponDeviceEventsLogFirstTime, hpnicfEponDeviceStatTable=hpnicfEponDeviceStatTable, hpnicfEponDeviceErroredFramePeriodEventEnabled=hpnicfEponDeviceErroredFramePeriodEventEnabled, hpnicfEponDeviceErroredFrameEventState=hpnicfEponDeviceErroredFrameEventState, hpnicfEponDeviceErroredSymbolPeriodEventEnabled=hpnicfEponDeviceErroredSymbolPeriodEventEnabled, hpnicfEponDeviceEventControl=hpnicfEponDeviceEventControl, hpnicfEponDeviceEventsLogName=hpnicfEponDeviceEventsLogName, hpnicfEponDeviceErroredFrameSecondsSummaryEventState=hpnicfEponDeviceErroredFrameSecondsSummaryEventState, hpnicfEponDeviceEventsLogLastTime=hpnicfEponDeviceEventsLogLastTime, hpnicfEponDeviceStatTxFramesQueue6=hpnicfEponDeviceStatTxFramesQueue6, hpnicfEponDeviceStatTxFramesQueue1=hpnicfEponDeviceStatTxFramesQueue1, hpnicfEponDeviceOrganizationSpecificEventEnabled=hpnicfEponDeviceOrganizationSpecificEventEnabled, hpnicfEponDeviceMIB=hpnicfEponDeviceMIB, hpnicfEponDeviceObjectReset=hpnicfEponDeviceObjectReset, hpnicfEponDeviceObjectModes=hpnicfEponDeviceObjectModes, hpnicfEponDeviceStatDroppedFramesQueue6=hpnicfEponDeviceStatDroppedFramesQueue6, hpnicfEponDeviceStatDroppedFramesQueue7=hpnicfEponDeviceStatDroppedFramesQueue7, hpnicfEponDeviceEventsLogCounts=hpnicfEponDeviceEventsLogCounts, hpnicfEponDeviceEventsLogTable=hpnicfEponDeviceEventsLogTable, hpnicfEponDeviceGroupStat=hpnicfEponDeviceGroupStat, hpnicfEponDeviceStatDroppedFramesQueue1=hpnicfEponDeviceStatDroppedFramesQueue1, hpnicfEponDeviceStatRxFramesQueue0=hpnicfEponDeviceStatRxFramesQueue0, hpnicfEponDeviceEventObjects=hpnicfEponDeviceEventObjects, hpnicfEponDeviceEventsLogType=hpnicfEponDeviceEventsLogType, hpnicfEponDeviceSampleMinimum=hpnicfEponDeviceSampleMinimum, hpnicfEponDeviceStatRxFramesQueue4=hpnicfEponDeviceStatRxFramesQueue4, hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled=hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled, hpnicfEponDeviceCriticalEventEnabled=hpnicfEponDeviceCriticalEventEnabled, hpnicfEponDeviceGroupRMadLTable=hpnicfEponDeviceGroupRMadLTable, hpnicfEponDeviceControlObjects=hpnicfEponDeviceControlObjects, hpnicfEponDeviceRMadlType=hpnicfEponDeviceRMadlType, hpnicfEponDeviceRemoteMACAddressLLIDEntry=hpnicfEponDeviceRemoteMACAddressLLIDEntry, hpnicfEponDeviceRMadlLLID=hpnicfEponDeviceRMadlLLID, hpnicfEponDeviceStatTxFramesQueue0=hpnicfEponDeviceStatTxFramesQueue0, hpnicfEponDeviceErroredFrameEventEnabled=hpnicfEponDeviceErroredFrameEventEnabled, hpnicfEponDeviceObjectPowerDown=hpnicfEponDeviceObjectPowerDown, hpnicfEponDeviceStatTxFramesQueue7=hpnicfEponDeviceStatTxFramesQueue7, hpnicfEponDeviceStatDroppedFramesQueue3=hpnicfEponDeviceStatDroppedFramesQueue3, hpnicfEponDeviceObjectReportThreshold=hpnicfEponDeviceObjectReportThreshold, hpnicfEponDeviceRemoteMACAddressLLIDTable=hpnicfEponDeviceRemoteMACAddressLLIDTable, hpnicfEponDeviceStatTxFramesQueue5=hpnicfEponDeviceStatTxFramesQueue5, hpnicfEponDeviceTemperatureEventIndicationState=hpnicfEponDeviceTemperatureEventIndicationState, hpnicfEponDeviceOrganizationSpecificEventState=hpnicfEponDeviceOrganizationSpecificEventState, hpnicfEponDeviceLocalLinkFaultAlarmEnabled=hpnicfEponDeviceLocalLinkFaultAlarmEnabled, hpnicfEponDeviceControlTable=hpnicfEponDeviceControlTable, hpnicfEponDeviceStatRxFramesQueue2=hpnicfEponDeviceStatRxFramesQueue2, hpnicfEponDeviceDyingGaspAlarmState=hpnicfEponDeviceDyingGaspAlarmState, hpnicfEponDeviceCriticalEventState=hpnicfEponDeviceCriticalEventState, hpnicfEponDeviceObjectOamMode=hpnicfEponDeviceObjectOamMode, PYSNMP_MODULE_ID=hpnicfEponDeviceMIB, hpnicfEponDeviceErroredFramePeriodEventState=hpnicfEponDeviceErroredFramePeriodEventState, hpnicfEponDeviceObjectMIB=hpnicfEponDeviceObjectMIB, hpnicfEponDevicePowerVoltageEventIndicationEnabled=hpnicfEponDevicePowerVoltageEventIndicationEnabled, hpnicfEponDeviceErroredSymbolPeriodEventState=hpnicfEponDeviceErroredSymbolPeriodEventState, hpnicfEponDeviceEventObjectEntry=hpnicfEponDeviceEventObjectEntry, hpnicfEponDeviceDyingGaspAlarmEnabled=hpnicfEponDeviceDyingGaspAlarmEnabled, hpnicfEponDevicePowerVoltageEventIndicationState=hpnicfEponDevicePowerVoltageEventIndicationState, hpnicfEponDeviceObjectFecEnabled=hpnicfEponDeviceObjectFecEnabled, hpnicfEponDeviceRemoteMACAddressLLIDName=hpnicfEponDeviceRemoteMACAddressLLIDName, hpnicfEponDeviceEventsLogEntry=hpnicfEponDeviceEventsLogEntry, hpnicfEponDeviceEventsLogID=hpnicfEponDeviceEventsLogID, hpnicfEponDeviceGroupEvent=hpnicfEponDeviceGroupEvent, hpnicfEponDeviceObjectNumberOfLLIDs=hpnicfEponDeviceObjectNumberOfLLIDs, hpnicfEponDeviceTemperatureEventIndicationEnabled=hpnicfEponDeviceTemperatureEventIndicationEnabled, hpnicfEponDeviceStatDroppedFramesQueue5=hpnicfEponDeviceStatDroppedFramesQueue5, hpnicfEponDeviceGlobalEventState=hpnicfEponDeviceGlobalEventState, hpnicfEponDeviceEventObjectTable=hpnicfEponDeviceEventObjectTable, hpnicfEponDeviceStatDroppedFramesQueue4=hpnicfEponDeviceStatDroppedFramesQueue4, hpnicfEponDeviceStatTxFramesQueue3=hpnicfEponDeviceStatTxFramesQueue3, hpnicfEponDeviceStatTxFramesQueue2=hpnicfEponDeviceStatTxFramesQueue2, hpnicfEponDeviceGroups=hpnicfEponDeviceGroups, hpnicfEponDeviceStatRxFramesQueue6=hpnicfEponDeviceStatRxFramesQueue6, hpnicfEponDeviceObjectDeviceReadyMode=hpnicfEponDeviceObjectDeviceReadyMode, hpnicfEponDeviceRMadlRemoteAddress=hpnicfEponDeviceRMadlRemoteAddress, hpnicfEponDeviceGlobalEventEnabled=hpnicfEponDeviceGlobalEventEnabled, hpnicfEponDeviceRMadlLogID=hpnicfEponDeviceRMadlLogID, hpnicfEponDeviceStatRxFramesQueue3=hpnicfEponDeviceStatRxFramesQueue3, hpnicfEponDeviceRMadlEntryStatus=hpnicfEponDeviceRMadlEntryStatus, hpnicfEponDeviceEventsLogIndex=hpnicfEponDeviceEventsLogIndex, hpnicfEponDeviceObjects=hpnicfEponDeviceObjects, hpnicfEponDeviceCompliances=hpnicfEponDeviceCompliances, hpnicfEponDeviceStatRxFramesQueue7=hpnicfEponDeviceStatRxFramesQueue7, hpnicfEponDeviceStatDroppedFramesQueue0=hpnicfEponDeviceStatDroppedFramesQueue0, hpnicfEponDeviceRemoteMACAddressLLIDControl=hpnicfEponDeviceRemoteMACAddressLLIDControl, hpnicfEponDeviceStatRxFramesQueue1=hpnicfEponDeviceStatRxFramesQueue1, hpnicfEponDeviceControlEntry=hpnicfEponDeviceControlEntry, hpnicfEponDeviceStatDroppedFramesQueue2=hpnicfEponDeviceStatDroppedFramesQueue2, hpnicfEponDeviceRMadlAction=hpnicfEponDeviceRMadlAction, hpnicfEponDeviceStatRxFramesQueue5=hpnicfEponDeviceStatRxFramesQueue5)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_range_constraint, value_size_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint')
(hpnicf_epon,) = mibBuilder.importSymbols('HPN-ICF-OID-MIB', 'hpnicfEpon')
(if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(mib_scalar, mib_table, mib_table_row, mib_table_column, bits, integer32, time_ticks, notification_type, gauge32, mib_2, object_identity, counter64, ip_address, zero_dot_zero, iso, mib_identifier, counter32, module_identity, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Integer32', 'TimeTicks', 'NotificationType', 'Gauge32', 'mib-2', 'ObjectIdentity', 'Counter64', 'IpAddress', 'zeroDotZero', 'iso', 'MibIdentifier', 'Counter32', 'ModuleIdentity', 'Unsigned32')
(mac_address, date_and_time, row_status, textual_convention, truth_value, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'DateAndTime', 'RowStatus', 'TextualConvention', 'TruthValue', 'DisplayString')
hpnicf_epon_device_mib = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4))
hpnicfEponDeviceMIB.setRevisions(('2004-09-21 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
hpnicfEponDeviceMIB.setRevisionsDescriptions(('Initial version, published as RFC XXXX.',))
if mibBuilder.loadTexts:
hpnicfEponDeviceMIB.setLastUpdated('200409210000Z')
if mibBuilder.loadTexts:
hpnicfEponDeviceMIB.setOrganization('')
if mibBuilder.loadTexts:
hpnicfEponDeviceMIB.setContactInfo('')
if mibBuilder.loadTexts:
hpnicfEponDeviceMIB.setDescription("The objects in this MIB module are used to manage Ethernet Passive Optical Network (EPON) devices which are based on the Ethernet in the First Mile (EFM) PON as defined in IEEE Draft P802.3ah/D3.0 clause 60,64,65. This MIB is excerpted from the draft files directly,only changed the object name,added the hpnicf as prefix. The following reference is used throughout this MIB module: [802.3ah] refers to: IEEE Draft P802.3ah/D3.3: 'Draft amendment to - Information technology - Telecommunications and information exchange between systems - Local and metropolitan area networks - Specific requirements - Part 3: Carrier sense multiple access with collision detection (CSMA/CD) access method and physical layer specifications - Media Access Control Parameters, Physical Layers and Management Parameters for subscriber access networks', 22 April 2004. Of particular interest are Clause 64(MPCP) 65(P2mP RS) and 60 (PON PMDs). Clause 30, 'Management', and Clause 45,'Management Data Input/Output (MDIO) Interface'. Copyright (C) The Internet Society (2004). This version of this MIB module is part of XXXX see the RFC itself for full legal notices.")
hpnicf_epon_device_object_mib = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1))
hpnicf_epon_device_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1))
hpnicf_epon_device_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2))
hpnicf_epon_device_control_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1))
hpnicf_epon_device_stat_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2))
hpnicf_epon_device_event_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3))
hpnicf_epon_device_control_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1))
if mibBuilder.loadTexts:
hpnicfEponDeviceControlTable.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceControlTable.setDescription('Table for EPON device MIB modules.')
hpnicf_epon_device_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
hpnicfEponDeviceControlEntry.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceControlEntry.setDescription('An entry in the EPON device Control table.')
hpnicf_epon_device_object_reset = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('running', 1), ('reset', 2))).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectReset.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectReset.setDescription('This variable is used to reset the EPON device. The interface may be unavailable while the reset occurs and data may be lost. During reading operation it returns the state of the EPON device. running(1) indicates and operates normal operation, reset(2) indicates and operates reset mode. Writing can be done all the time.')
hpnicf_epon_device_object_modes = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('olt', 1), ('onu', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectModes.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectModes.setDescription('This variable defines the mode of the EPON device. When an olt(1) it is an Optical Line Terminal device (server) and when an onu(2) and Optical Network Unit device (client)')
hpnicf_epon_device_object_fec_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('noFecEnabled', 1), ('fecTxEnabled', 2), ('fecRxEnabled', 3), ('fecTxRxEnabled', 4))).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectFecEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectFecEnabled.setDescription('This variable defines and provides information whether the EPON device uses FEC as defined in the [802.3ah] clause 65.2 for EPON. When noFECEnabled(1) the device does not support FEC mode When fecTxEnabled(2) the device supports the FEC transmission mode. When fecRxEnabled(3) the device supports the FEC Receive mode. When fecTxRxEnabled(4) the device supports the FEC transmission and receive mode. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicf_epon_device_object_oam_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noOam', 1), ('oamServer', 2), ('oamclient', 3))).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectOamMode.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectOamMode.setDescription('This variable defines and provides information on the Operation Administration and Maintenance (OAM) mode of an EPON device as defined by the [802.3ah] clause 57. When noOam(1) the device does not supports the OAM mode. When oamServer(2) the device supports the OAM mode as a server unit. When oamClient(3) the device supports the OAM mode as a client unit. Writing can be done during initialization, hpnicfEponDeviceObjectDeviceReadyMode is in notReady(1) or inProcess(2). This attribute is relevant for an OLT and an ONU.')
hpnicf_epon_device_object_device_ready_mode = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notReady', 1), ('inProcess', 2), ('ready', 3))).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectDeviceReadyMode.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectDeviceReadyMode.setDescription('This variable defines the mode of an EPON device and provides information on the mode in initialization - ready for registration as defined by the [802.3ah] clause 64. When notReady(1) the device is not ready for operation. When inProcess(2) the device is in initialization process. When ready(3) the device is ready for registration. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicf_epon_device_object_power_down = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 7), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectPowerDown.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectPowerDown.setDescription('Setting this variable to True(1) will cause Device to be entered into Power down mode where no registration is allowed and only receiving data from the link. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicf_epon_device_object_number_of_lli_ds = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectNumberOfLLIDs.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectNumberOfLLIDs.setDescription('A read only variable which defines the number of registered LLIDs (as defined by the [802.3ah] clause 65) in a EPON network for an OLT and an ONU. Initialization value is 0. This attribute is relevant for an OLT and an ONU.')
hpnicf_epon_device_object_report_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 9), integer32()).setUnits('TQ (16nsec)').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectReportThreshold.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceObjectReportThreshold.setDescription('A set of 8 integers, for each LLID, that defines the threshold reporting for each Queue in the REPORT message, as defined in [802.3ah] 64. First Queue set reporting will provide information on the queue occupancy of frames below this Threshold. The value returned shall be in Time quanta (TQ) which is 16nsec or 2 octets increments. Writing can be done all the time. This attribute is relevant for an OLT and an ONU.')
hpnicf_epon_device_remote_mac_address_llid_control = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('resetLog', 2), ('useDefaultReporting', 3))).clone(3)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceRemoteMACAddressLLIDControl.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRemoteMACAddressLLIDControl.setDescription('Indicates and controls the resetting of the LLID MAC address log. Setting this object to none(1) has no action resetLog(2) empties the LLID MAC address log. All data is deleted. Setting it to useDefaultReporting(3) returns all entries priorities to their factory-default reporting. Reading this object always returns useDefaultReporting(3).')
hpnicf_epon_device_remote_mac_address_llid_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2))
if mibBuilder.loadTexts:
hpnicfEponDeviceRemoteMACAddressLLIDTable.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRemoteMACAddressLLIDTable.setDescription('A table of read-only value that identifies the source_address and LLIDs parameter of the remote devices in the network. This MacAddress value, as defined in [802.3ah], 30.3.5.1.5, is updated on reception of a valid frame with a unicast destination Field or (1) a destination Field equal to the reserved multicast address for MAC Control specified in [802.3ah] Annex 31A, (2) lengthOrType field value equal to the reserved Type for MAC Control as specified in [802.3ah] Annex 31A. (3)an MPCP subtype value equal to the subtype reserved for MPCP as specified in [802.3ah] Annex 31A, and an LLID as allocated by the OLT. The table is defined as Remote MAC address - LLID (RMadL) The table is relevant only for an OLT device, and is equivalent from a bridge emulation to the bridge port-MAC address table where the LLIDs are equivalent to virtual bridge ports.')
hpnicf_epon_device_remote_mac_address_llid_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
hpnicfEponDeviceRemoteMACAddressLLIDEntry.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRemoteMACAddressLLIDEntry.setDescription('A group of entries. Applications create and delete entries using hpnicfEponDeviceRMadlEntryStatus. When adding objects to an LLID they are added in the persistent order of their index in this table.')
hpnicf_epon_device_remote_mac_address_llid_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpnicfEponDeviceRemoteMACAddressLLIDName.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRemoteMACAddressLLIDName.setDescription('A locally-unique, administratively assigned name for a group of entries.')
hpnicf_epon_device_r_madl_llid = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)).clone(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlLLID.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlLLID.setDescription('An arbitrary integer for the purpose of identifying the LLID. Writing can be done all the time.')
hpnicf_epon_device_r_madl_log_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 3), object_identifier().clone((0, 0))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlLogID.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlLogID.setDescription('The object identifier of a MIB module object to add to an entry, indicating the entry ID in the table. Writing can be done all the time.')
hpnicf_epon_device_r_madl_remote_address = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 4), mac_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlRemoteAddress.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlRemoteAddress.setDescription('The remote MAC address of the LLID. Writing can be done all the time.')
hpnicf_epon_device_r_madl_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notRegister', 1), ('registered', 2))).clone(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlType.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlType.setDescription('A list of types for entries - LLIDs. Indicates and defines the state of registration. notRegister(1) marks a non registered LID, registered(2) marks a registered LLID. Writing can be done all the time.')
hpnicf_epon_device_r_madl_action = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('register', 2), ('deregister', 3), ('reregister', 4))).clone(1)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlAction.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlAction.setDescription('A list of actions for an entry - LLID. Indicates and defines the state of registration for the remote device. none(1) marks no action, register(2) marks to register an LLID, deregister(3) marks to deregister an LLID, reregister(4) marks reregistered LLID. Writing can be done all the time.')
hpnicf_epon_device_r_madl_entry_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 1, 2, 1, 7), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlEntryStatus.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceRMadlEntryStatus.setDescription('The control that allows creation and deletion of entries. Once made active an entry MAY not be modified except to delete it.')
hpnicf_epon_device_stat_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1))
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTable.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTable.setDescription('This table defines the list of statistics counters of EPON devices. The attributes are relevant for an OLT and an ONU.')
hpnicf_epon_device_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
hpnicfEponDeviceStatEntry.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatEntry.setDescription('Table entries for Table of statistics counters of EPON devices.')
hpnicf_epon_device_stat_tx_frames_queue0 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 1), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue0.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue0.setDescription('A count of the number of times a -Queue-0- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-0-. The -Queue-0- marking matched the REPORT MPCP message Queue-0 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_tx_frames_queue1 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 2), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue1.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue1.setDescription('A count of the number of times a -Queue-1- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-1-. The -Queue-1- marking matched the REPORT MPCP message Queue-1 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_tx_frames_queue2 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 3), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue2.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue2.setDescription('A count of the number of times a -Queue-2- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-2-. The -Queue-2- marking matched the REPORT MPCP message Queue-2 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_tx_frames_queue3 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 4), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue3.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue3.setDescription('A count of the number of times a -Queue-3- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-3-. The -Queue-3- marking matched the REPORT MPCP message Queue-3 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_tx_frames_queue4 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 5), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue4.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue4.setDescription('A count of the number of times a -Queue-4- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-4-. The -Queue-4- marking matched the REPORT MPCP message Queue-4 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_tx_frames_queue5 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 6), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue5.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue5.setDescription('A count of the number of times a -Queue-5- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-5-. The -Queue-5- marking matched the REPORT MPCP message Queue-5 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_tx_frames_queue6 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 7), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue6.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue6.setDescription('A count of the number of times a -Queue-6- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-6-. The -Queue-6- marking matched the REPORT MPCP message Queue-6 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_tx_frames_queue7 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 8), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue7.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatTxFramesQueue7.setDescription('A count of the number of times a -Queue-7- frames transmission occurs. Increment the counter by one for each frame transmitted which is an output of -Queue-7-. The -Queue-7- marking matched the REPORT MPCP message Queue-7 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_rx_frames_queue0 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 9), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue0.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue0.setDescription('A count of the number of times a -Queue-0- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-0-. The -Queue-0- marking matched the REPORT MPCP message Queue-0 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicf_epon_device_stat_rx_frames_queue1 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 10), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue1.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue1.setDescription('A count of the number of times a -Queue-1- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-1-. The -Queue-1- marking matched the REPORT MPCP message Queue-1 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicf_epon_device_stat_rx_frames_queue2 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 11), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue2.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue2.setDescription('A count of the number of times a -Queue-2- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-2-. The -Queue-2- marking matched the REPORT MPCP message Queue-2 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicf_epon_device_stat_rx_frames_queue3 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 12), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue3.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue3.setDescription('A count of the number of times a -Queue-3- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-3-. The -Queue-3- marking matched the REPORT MPCP message Queue-3 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicf_epon_device_stat_rx_frames_queue4 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 13), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue4.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue4.setDescription('A count of the number of times a -Queue-4- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-4-. The -Queue-4- marking matched the REPORT MPCP message Queue-4 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicf_epon_device_stat_rx_frames_queue5 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 14), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue5.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue5.setDescription('A count of the number of times a -Queue-5- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-5-. The -Queue-5- marking matched the REPORT MPCP message Queue-5 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicf_epon_device_stat_rx_frames_queue6 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 15), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue6.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue6.setDescription('A count of the number of times a -Queue-6- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-6-. The -Queue-6- marking matched the REPORT MPCP message Queue-6 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicf_epon_device_stat_rx_frames_queue7 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 16), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue7.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatRxFramesQueue7.setDescription('A count of the number of times a -Queue-7- frames reception occurs. A single counter at the ONU and a set of counters, one for each LLID, at the OLT. Increment the counter by one for each frame received for each LLID, which is an output of -Queue-7-. The -Queue-7- marking matched the REPORT MPCP message Queue-7 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU and an OLT.')
hpnicf_epon_device_stat_dropped_frames_queue0 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 17), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue0.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue0.setDescription('A count of the number of times a -Queue-0- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-0-. The -Queue-0- marking matched the REPORT MPCP message Queue-0 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_dropped_frames_queue1 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 18), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue1.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue1.setDescription('A count of the number of times a -Queue-1- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-1-. The -Queue-1- marking matched the REPORT MPCP message Queue-1 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_dropped_frames_queue2 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 19), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue2.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue2.setDescription('A count of the number of times a -Queue-2- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-2-. The -Queue-2- marking matched the REPORT MPCP message Queue-2 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_dropped_frames_queue3 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 20), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue3.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue3.setDescription('A count of the number of times a -Queue-3- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-3-. The -Queue-3- marking matched the REPORT MPCP message Queue-3 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_dropped_frames_queue4 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 21), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue4.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue4.setDescription('A count of the number of times a -Queue-4- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-4-. The -Queue-4- marking matched the REPORT MPCP message Queue-4 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_dropped_frames_queue5 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 22), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue5.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue5.setDescription('A count of the number of times a -Queue-5- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-5-. The -Queue-5- marking matched the REPORT MPCP message Queue-5 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_dropped_frames_queue6 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 23), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue6.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue6.setDescription('A count of the number of times a -Queue-6- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-6-. The -Queue-6- marking matched the REPORT MPCP message Queue-6 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_stat_dropped_frames_queue7 = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 2, 1, 1, 24), counter32()).setUnits('frames').setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue7.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceStatDroppedFramesQueue7.setDescription('A count of the number of times a -Queue-7- frames drops occurs. Increment the counter by one for each frame dropped from -Queue-7-. The -Queue-7- marking matched the REPORT MPCP message Queue-7 field, as defined in [802.3ah] clause 64. This counter is mandatory for an ONU.')
hpnicf_epon_device_event_object_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1))
if mibBuilder.loadTexts:
hpnicfEponDeviceEventObjectTable.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventObjectTable.setDescription('This table defines the Event Objects for EPON devices. The attributes are relevant for an OLT and an ONU.')
hpnicf_epon_device_event_object_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
hpnicfEponDeviceEventObjectEntry.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventObjectEntry.setDescription('Table entries for Table of Event objects for EPON devices.')
hpnicf_epon_device_sample_minimum = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647)).clone(1)).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceSampleMinimum.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceSampleMinimum.setDescription("The minimum Frequency of events this system will accept. A system may use the larger values of this minimum to lessen the impact of constant sampling. For larger sampling intervals the system samples less often and suffers less overhead. Unless explicitly resource limited, a system's value for this object SHOULD be 1, allowing as small as a 1 second interval for ongoing trigger sampling. Writing of the value can be done all the time.")
hpnicf_epon_device_dying_gasp_alarm_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 2), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceDyingGaspAlarmState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceDyingGaspAlarmState.setDescription('A read-only variable, which defines the state of the Dying Gasp indication of the OAM alarm indications as described in the [802.3ah] clause 57. When true the device has a dying gasp alarm asserted. When false the dying gasp alarm is reset ')
hpnicf_epon_device_dying_gasp_alarm_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 3), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceDyingGaspAlarmEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceDyingGaspAlarmEnabled.setDescription('A control to allow DyingGaspAlarm event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_critical_event_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 4), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceCriticalEventState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceCriticalEventState.setDescription('A read-only variable, which defines the state of the Critical Event indication of the OAM alarm indications as described in the [802.3ah] clause 57. When true the device has a Critical Event asserted. When false the Critical Event is reset.')
hpnicf_epon_device_critical_event_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 5), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceCriticalEventEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceCriticalEventEnabled.setDescription('A control to allow CriticalEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_local_link_fault_alarm_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 6), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceLocalLinkFaultAlarmState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceLocalLinkFaultAlarmState.setDescription('A read-only variable, which defines the state of the Local Link Fault indication of the OAM alarm indications as described in the [802.3ah] clause 57. When true the device has a Local Link Fault alarm asserted. When false the Local Link Fault alarm is reset.')
hpnicf_epon_device_local_link_fault_alarm_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 7), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceLocalLinkFaultAlarmEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceLocalLinkFaultAlarmEnabled.setDescription('A control to allow LocalLinkFaultAlarm event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_temperature_event_indication_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 8), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceTemperatureEventIndicationState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceTemperatureEventIndicationState.setDescription('A read-only variable, which defines the state of the Temperature Event indication of an EPON device. When condition of box temperature is above the threshold defined the alarm is asserted. When the condition is below that threshold the alarm is de-asserted. When true the device has a Temperature Event Indication asserted. When false the Temperature Event Indication is reset.')
hpnicf_epon_device_temperature_event_indication_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 9), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceTemperatureEventIndicationEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceTemperatureEventIndicationEnabled.setDescription('A control to allow TemperatureEventIndication event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_power_voltage_event_indication_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 10), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDevicePowerVoltageEventIndicationState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDevicePowerVoltageEventIndicationState.setDescription('A read-only variable, which defines the state of the Power/Voltage Event Indication of an EPON device. When condition of box Power/voltage is above the threshold defined the alarm is asserted. When the condition is below that threshold the alarm is de-asserted. When true the device has a Power/Voltage Event Indication asserted. When false the Power/Voltage Event Indication is reset. ')
hpnicf_epon_device_power_voltage_event_indication_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 11), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDevicePowerVoltageEventIndicationEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDevicePowerVoltageEventIndicationEnabled.setDescription('A control to allow PowerVoltageEventIndication event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_global_event_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 12), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceGlobalEventState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceGlobalEventState.setDescription('A read-only variable, which defines the state of the Global Event indication of an EPON device. When the indication of the event input occurs the event is asserted. When the input is removed that event is de-asserted. When true the device has a Global Event asserted. When false the Global Event Indication is reset.')
hpnicf_epon_device_global_event_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 13), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceGlobalEventEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceGlobalEventEnabled.setDescription('A control to allow GlobalEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_errored_symbol_period_event_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 14), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredSymbolPeriodEventState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredSymbolPeriodEventState.setDescription('A read-only variable, which defines the state of the Errored Symbol Period Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Symbol Period Event asserted. When false the Errored Symbol Period Event is reset.')
hpnicf_epon_device_errored_symbol_period_event_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 15), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredSymbolPeriodEventEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredSymbolPeriodEventEnabled.setDescription('A control to allow ErroredSymbolPeriodEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_errored_frame_event_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 16), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFrameEventState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFrameEventState.setDescription('A read-only variable, which defines the state of the Errored Frame Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Frame Event asserted. When false the Errored Frame Event is reset.')
hpnicf_epon_device_errored_frame_event_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 17), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFrameEventEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFrameEventEnabled.setDescription('A control to allow ErroredFrameEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_errored_frame_period_event_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 18), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFramePeriodEventState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFramePeriodEventState.setDescription('A read-only variable, which defines the state of the Errored Frame Period Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Frame Period Event asserted. When false the Errored Frame Period Event is reset.')
hpnicf_epon_device_errored_frame_period_event_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 19), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFramePeriodEventEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFramePeriodEventEnabled.setDescription('A control to allow ErroredFramePeriodEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_errored_frame_seconds_summary_event_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 20), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFrameSecondsSummaryEventState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFrameSecondsSummaryEventState.setDescription('A read-only variable, which defines the state of the Errored Frame Seconds Summary Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Errored Frame Seconds Summary Event asserted. When false the Errored Frame Seconds Summary Event is reset.')
hpnicf_epon_device_errored_frame_seconds_summary_event_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 21), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled.setDescription('A control to allow ErroredFrameSecondsSummaryEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_organization_specific_event_state = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 22), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceOrganizationSpecificEventState.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceOrganizationSpecificEventState.setDescription('A read-only variable, which defines the state of the Organization Specific Event indication of the OAM alarm TLV indications as described in the [802.3ah] clause 57.5.3. When true the device has an Organization Specific Event asserted. When false the Organization Specific Event is reset.')
hpnicf_epon_device_organization_specific_event_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 23), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceOrganizationSpecificEventEnabled.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceOrganizationSpecificEventEnabled.setDescription('A control to allow OrganizationSpecificEvent event to be used. When the value is true the event is sampled. When the value is false the event is not sampled. Writing can be done all the time.')
hpnicf_epon_device_event_control = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 1, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('resetLog', 2), ('useDefaultReporting', 3))).clone(3)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventControl.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventControl.setDescription('Indicates and controls the resetting of the Event log. Setting this object to none(1) has no action resetLog(2) empties the event log. All data is deleted. Setting it to useDefaultReporting(3) returns all event priorities to their factory-default reporting. Reading this object always returns useDefaultReporting(3).')
hpnicf_epon_device_events_log_table = mib_table((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2))
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogTable.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogTable.setDescription('A table of objects provides a log of notification based on the event as pointed to by entries in those tables. The intent is a MAC level event log (set of events to when they happened). This attribute is relevant for an OLT and an ONU.')
hpnicf_epon_device_events_log_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1)).setIndexNames((0, 'HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceEventsLogName'), (0, 'HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceEventsLogIndex'))
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogEntry.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogEntry.setDescription('A group of Events. Applications create and delete entries using hpnicfEponDeviceEventsEntryStatus. When adding objects to a notification they are added in the lexical order of their index in this table.')
hpnicf_epon_device_events_log_name = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 32)))
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogName.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogName.setDescription('A locally-unique, administratively assigned name for a group of Events.')
hpnicf_epon_device_events_log_index = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogIndex.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogIndex.setDescription('An arbitrary integer for the purpose of identifying individual Events within a hpnicfEponDeviceEventsLogName group. Events within a group are placed in the notification in the numerical order of this index.')
hpnicf_epon_device_events_log_id = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 3), object_identifier().clone((0, 0))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogID.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogID.setDescription('The object identifier of a MIB module object to add to a Notification that results from the event. Writing can be done all the time.')
hpnicf_epon_device_events_log_first_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 4), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogFirstTime.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogFirstTime.setDescription('The time that an entry was created.')
hpnicf_epon_device_events_log_last_time = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 5), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogLastTime.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogLastTime.setDescription('If multiple events are reported via the same entry, the time that the last event for this entry occurred, otherwise this should have the same value as hpnicfEponDeviceEventsLogFirstTime.')
hpnicf_epon_device_events_log_counts = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogCounts.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogCounts.setDescription('The number of consecutive event instances reported by this entry. This starts at 1 with the creation of this row and increments by 1 for each subsequent duplicate event.')
hpnicf_epon_device_events_log_type = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('hpnicfEponDeviceDyingGaspAlarmState', 1), ('hpnicfEponDeviceCriticalEventState', 2), ('hpnicfEponDeviceLocalLinkFaultAlarmState', 3), ('hpnicfEponDeviceTemperatureEventIndicationState', 4), ('hpnicfEponDevicePowerVoltageEventIndicationState', 5), ('hpnicfEponDeviceGlobalEventState', 6), ('hpnicfEponDeviceErroredSymbolPeriodEventState', 7), ('hpnicfEponDeviceErroredFrameEventState', 8), ('hpnicfEponDeviceErroredFramePeriodEventState', 9), ('hpnicfEponDeviceErroredFrameSecondsSummaryEventState', 10), ('hpnicfEponDeviceOrganizationSpecificEventState', 11)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogType.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogType.setDescription('A list of types for Events. Events are ordered according to their significance where 1 is the highest severity. hpnicfEponDeviceDyingGaspAlarmState(1) indicates a Dying Gasp Alarm State, hpnicfEponDeviceCriticalEventState(2) indicates a Critical Event State, hpnicfEponDeviceLocalLinkFaultAlarmState(3) indicates a Local Link Fault Alarm State, hpnicfEponDeviceTemperatureEventIndicationState(4) indicates a Temperature Event Indication State, hpnicfEponDevicePowerVoltageEventIndicationState(5) indicates a Power Voltage Event Indication State, hpnicfEponDeviceGlobalEventState(6) indicates a Global Event State, hpnicfEponDeviceErroredSymbolPeriodEventState(7) indicates an Errored Symbol Period Event State, hpnicfEponDeviceErroredFrameEventState(8) indicates an Errored Frame Event State, hpnicfEponDeviceErroredFramePeriodEventState(9) indicates an Errored Frame Period Event State, hpnicfEponDeviceErroredFrameSecondsSummaryEventState(10) indicates an Errored Frame Seconds Summary Event State, hpnicfEponDeviceOrganizationSpecificEventState(11) indicates an Organization Specific Event State. ')
hpnicf_epon_device_events_log_entry_status = mib_table_column((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 1, 3, 2, 1, 8), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogEntryStatus.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceEventsLogEntryStatus.setDescription('The control that allows creation and deletion of entries. Once made active an entry MAY not be modified except to delete it.')
hpnicf_epon_device_groups = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1))
hpnicf_epon_device_group_control = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 1)).setObjects(('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceObjectReset'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceObjectModes'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceObjectFecEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceObjectOamMode'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceObjectDeviceReadyMode'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceObjectPowerDown'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceObjectNumberOfLLIDs'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceObjectReportThreshold'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceRemoteMACAddressLLIDControl'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicf_epon_device_group_control = hpnicfEponDeviceGroupControl.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceGroupControl.setDescription('A collection of objects of hpnicfEponDevice control definition.')
hpnicf_epon_device_group_r_mad_l_table = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 2)).setObjects(('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceRMadlLLID'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceRMadlLogID'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceRMadlRemoteAddress'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceRMadlType'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceRMadlAction'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceRMadlEntryStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicf_epon_device_group_r_mad_l_table = hpnicfEponDeviceGroupRMadLTable.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceGroupRMadLTable.setDescription('A collection of objects of hpnicfEponDevice remote Mac address to LLID table.')
hpnicf_epon_device_group_stat = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 3)).setObjects(('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatTxFramesQueue0'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatTxFramesQueue1'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatTxFramesQueue2'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatTxFramesQueue3'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatTxFramesQueue4'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatTxFramesQueue5'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatTxFramesQueue6'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatTxFramesQueue7'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatRxFramesQueue0'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatRxFramesQueue1'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatRxFramesQueue2'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatRxFramesQueue3'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatRxFramesQueue4'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatRxFramesQueue5'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatRxFramesQueue6'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatRxFramesQueue7'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatDroppedFramesQueue0'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatDroppedFramesQueue1'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatDroppedFramesQueue2'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatDroppedFramesQueue3'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatDroppedFramesQueue4'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatDroppedFramesQueue5'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatDroppedFramesQueue6'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceStatDroppedFramesQueue7'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicf_epon_device_group_stat = hpnicfEponDeviceGroupStat.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceGroupStat.setDescription('A collection of objects of EPON device Statistics')
hpnicf_epon_device_group_event = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 4)).setObjects(('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceSampleMinimum'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceDyingGaspAlarmState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceDyingGaspAlarmEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceCriticalEventState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceCriticalEventEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceLocalLinkFaultAlarmState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceLocalLinkFaultAlarmEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceTemperatureEventIndicationState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceTemperatureEventIndicationEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDevicePowerVoltageEventIndicationState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDevicePowerVoltageEventIndicationEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceGlobalEventState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceGlobalEventEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceErroredSymbolPeriodEventState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceErroredSymbolPeriodEventEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceErroredFrameEventState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceErroredFrameEventEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceErroredFramePeriodEventState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceErroredFramePeriodEventEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceErroredFrameSecondsSummaryEventState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceOrganizationSpecificEventState'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceOrganizationSpecificEventEnabled'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceEventControl'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicf_epon_device_group_event = hpnicfEponDeviceGroupEvent.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceGroupEvent.setDescription('A collection of objects for EPON device Events')
hpnicf_epon_device_group_event_log = object_group((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 1, 5)).setObjects(('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceEventsLogID'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceEventsLogFirstTime'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceEventsLogLastTime'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceEventsLogCounts'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceEventsLogType'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceEventsLogEntryStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicf_epon_device_group_event_log = hpnicfEponDeviceGroupEventLog.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceGroupEventLog.setDescription('A collection of objects for EPON device Events log')
hpnicf_epon_device_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 2))
hpnicf_epon_device_compliance = module_compliance((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 42, 4, 1, 2, 2, 1)).setObjects(('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceGroupControl'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceGroupRMadLTable'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceGroupStat'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceGroupEvent'), ('HPN-ICF-EPON-DEVICE-MIB', 'hpnicfEponDeviceGroupEventLog'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hpnicf_epon_device_compliance = hpnicfEponDeviceCompliance.setStatus('current')
if mibBuilder.loadTexts:
hpnicfEponDeviceCompliance.setDescription('The compliance statement for EPON Devices.')
mibBuilder.exportSymbols('HPN-ICF-EPON-DEVICE-MIB', hpnicfEponDeviceGroupEventLog=hpnicfEponDeviceGroupEventLog, hpnicfEponDeviceStatEntry=hpnicfEponDeviceStatEntry, hpnicfEponDeviceEventsLogEntryStatus=hpnicfEponDeviceEventsLogEntryStatus, hpnicfEponDeviceCompliance=hpnicfEponDeviceCompliance, hpnicfEponDeviceGroupControl=hpnicfEponDeviceGroupControl, hpnicfEponDeviceStatTxFramesQueue4=hpnicfEponDeviceStatTxFramesQueue4, hpnicfEponDeviceStatObjects=hpnicfEponDeviceStatObjects, hpnicfEponDeviceLocalLinkFaultAlarmState=hpnicfEponDeviceLocalLinkFaultAlarmState, hpnicfEponDeviceConformance=hpnicfEponDeviceConformance, hpnicfEponDeviceEventsLogFirstTime=hpnicfEponDeviceEventsLogFirstTime, hpnicfEponDeviceStatTable=hpnicfEponDeviceStatTable, hpnicfEponDeviceErroredFramePeriodEventEnabled=hpnicfEponDeviceErroredFramePeriodEventEnabled, hpnicfEponDeviceErroredFrameEventState=hpnicfEponDeviceErroredFrameEventState, hpnicfEponDeviceErroredSymbolPeriodEventEnabled=hpnicfEponDeviceErroredSymbolPeriodEventEnabled, hpnicfEponDeviceEventControl=hpnicfEponDeviceEventControl, hpnicfEponDeviceEventsLogName=hpnicfEponDeviceEventsLogName, hpnicfEponDeviceErroredFrameSecondsSummaryEventState=hpnicfEponDeviceErroredFrameSecondsSummaryEventState, hpnicfEponDeviceEventsLogLastTime=hpnicfEponDeviceEventsLogLastTime, hpnicfEponDeviceStatTxFramesQueue6=hpnicfEponDeviceStatTxFramesQueue6, hpnicfEponDeviceStatTxFramesQueue1=hpnicfEponDeviceStatTxFramesQueue1, hpnicfEponDeviceOrganizationSpecificEventEnabled=hpnicfEponDeviceOrganizationSpecificEventEnabled, hpnicfEponDeviceMIB=hpnicfEponDeviceMIB, hpnicfEponDeviceObjectReset=hpnicfEponDeviceObjectReset, hpnicfEponDeviceObjectModes=hpnicfEponDeviceObjectModes, hpnicfEponDeviceStatDroppedFramesQueue6=hpnicfEponDeviceStatDroppedFramesQueue6, hpnicfEponDeviceStatDroppedFramesQueue7=hpnicfEponDeviceStatDroppedFramesQueue7, hpnicfEponDeviceEventsLogCounts=hpnicfEponDeviceEventsLogCounts, hpnicfEponDeviceEventsLogTable=hpnicfEponDeviceEventsLogTable, hpnicfEponDeviceGroupStat=hpnicfEponDeviceGroupStat, hpnicfEponDeviceStatDroppedFramesQueue1=hpnicfEponDeviceStatDroppedFramesQueue1, hpnicfEponDeviceStatRxFramesQueue0=hpnicfEponDeviceStatRxFramesQueue0, hpnicfEponDeviceEventObjects=hpnicfEponDeviceEventObjects, hpnicfEponDeviceEventsLogType=hpnicfEponDeviceEventsLogType, hpnicfEponDeviceSampleMinimum=hpnicfEponDeviceSampleMinimum, hpnicfEponDeviceStatRxFramesQueue4=hpnicfEponDeviceStatRxFramesQueue4, hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled=hpnicfEponDeviceErroredFrameSecondsSummaryEventEnabled, hpnicfEponDeviceCriticalEventEnabled=hpnicfEponDeviceCriticalEventEnabled, hpnicfEponDeviceGroupRMadLTable=hpnicfEponDeviceGroupRMadLTable, hpnicfEponDeviceControlObjects=hpnicfEponDeviceControlObjects, hpnicfEponDeviceRMadlType=hpnicfEponDeviceRMadlType, hpnicfEponDeviceRemoteMACAddressLLIDEntry=hpnicfEponDeviceRemoteMACAddressLLIDEntry, hpnicfEponDeviceRMadlLLID=hpnicfEponDeviceRMadlLLID, hpnicfEponDeviceStatTxFramesQueue0=hpnicfEponDeviceStatTxFramesQueue0, hpnicfEponDeviceErroredFrameEventEnabled=hpnicfEponDeviceErroredFrameEventEnabled, hpnicfEponDeviceObjectPowerDown=hpnicfEponDeviceObjectPowerDown, hpnicfEponDeviceStatTxFramesQueue7=hpnicfEponDeviceStatTxFramesQueue7, hpnicfEponDeviceStatDroppedFramesQueue3=hpnicfEponDeviceStatDroppedFramesQueue3, hpnicfEponDeviceObjectReportThreshold=hpnicfEponDeviceObjectReportThreshold, hpnicfEponDeviceRemoteMACAddressLLIDTable=hpnicfEponDeviceRemoteMACAddressLLIDTable, hpnicfEponDeviceStatTxFramesQueue5=hpnicfEponDeviceStatTxFramesQueue5, hpnicfEponDeviceTemperatureEventIndicationState=hpnicfEponDeviceTemperatureEventIndicationState, hpnicfEponDeviceOrganizationSpecificEventState=hpnicfEponDeviceOrganizationSpecificEventState, hpnicfEponDeviceLocalLinkFaultAlarmEnabled=hpnicfEponDeviceLocalLinkFaultAlarmEnabled, hpnicfEponDeviceControlTable=hpnicfEponDeviceControlTable, hpnicfEponDeviceStatRxFramesQueue2=hpnicfEponDeviceStatRxFramesQueue2, hpnicfEponDeviceDyingGaspAlarmState=hpnicfEponDeviceDyingGaspAlarmState, hpnicfEponDeviceCriticalEventState=hpnicfEponDeviceCriticalEventState, hpnicfEponDeviceObjectOamMode=hpnicfEponDeviceObjectOamMode, PYSNMP_MODULE_ID=hpnicfEponDeviceMIB, hpnicfEponDeviceErroredFramePeriodEventState=hpnicfEponDeviceErroredFramePeriodEventState, hpnicfEponDeviceObjectMIB=hpnicfEponDeviceObjectMIB, hpnicfEponDevicePowerVoltageEventIndicationEnabled=hpnicfEponDevicePowerVoltageEventIndicationEnabled, hpnicfEponDeviceErroredSymbolPeriodEventState=hpnicfEponDeviceErroredSymbolPeriodEventState, hpnicfEponDeviceEventObjectEntry=hpnicfEponDeviceEventObjectEntry, hpnicfEponDeviceDyingGaspAlarmEnabled=hpnicfEponDeviceDyingGaspAlarmEnabled, hpnicfEponDevicePowerVoltageEventIndicationState=hpnicfEponDevicePowerVoltageEventIndicationState, hpnicfEponDeviceObjectFecEnabled=hpnicfEponDeviceObjectFecEnabled, hpnicfEponDeviceRemoteMACAddressLLIDName=hpnicfEponDeviceRemoteMACAddressLLIDName, hpnicfEponDeviceEventsLogEntry=hpnicfEponDeviceEventsLogEntry, hpnicfEponDeviceEventsLogID=hpnicfEponDeviceEventsLogID, hpnicfEponDeviceGroupEvent=hpnicfEponDeviceGroupEvent, hpnicfEponDeviceObjectNumberOfLLIDs=hpnicfEponDeviceObjectNumberOfLLIDs, hpnicfEponDeviceTemperatureEventIndicationEnabled=hpnicfEponDeviceTemperatureEventIndicationEnabled, hpnicfEponDeviceStatDroppedFramesQueue5=hpnicfEponDeviceStatDroppedFramesQueue5, hpnicfEponDeviceGlobalEventState=hpnicfEponDeviceGlobalEventState, hpnicfEponDeviceEventObjectTable=hpnicfEponDeviceEventObjectTable, hpnicfEponDeviceStatDroppedFramesQueue4=hpnicfEponDeviceStatDroppedFramesQueue4, hpnicfEponDeviceStatTxFramesQueue3=hpnicfEponDeviceStatTxFramesQueue3, hpnicfEponDeviceStatTxFramesQueue2=hpnicfEponDeviceStatTxFramesQueue2, hpnicfEponDeviceGroups=hpnicfEponDeviceGroups, hpnicfEponDeviceStatRxFramesQueue6=hpnicfEponDeviceStatRxFramesQueue6, hpnicfEponDeviceObjectDeviceReadyMode=hpnicfEponDeviceObjectDeviceReadyMode, hpnicfEponDeviceRMadlRemoteAddress=hpnicfEponDeviceRMadlRemoteAddress, hpnicfEponDeviceGlobalEventEnabled=hpnicfEponDeviceGlobalEventEnabled, hpnicfEponDeviceRMadlLogID=hpnicfEponDeviceRMadlLogID, hpnicfEponDeviceStatRxFramesQueue3=hpnicfEponDeviceStatRxFramesQueue3, hpnicfEponDeviceRMadlEntryStatus=hpnicfEponDeviceRMadlEntryStatus, hpnicfEponDeviceEventsLogIndex=hpnicfEponDeviceEventsLogIndex, hpnicfEponDeviceObjects=hpnicfEponDeviceObjects, hpnicfEponDeviceCompliances=hpnicfEponDeviceCompliances, hpnicfEponDeviceStatRxFramesQueue7=hpnicfEponDeviceStatRxFramesQueue7, hpnicfEponDeviceStatDroppedFramesQueue0=hpnicfEponDeviceStatDroppedFramesQueue0, hpnicfEponDeviceRemoteMACAddressLLIDControl=hpnicfEponDeviceRemoteMACAddressLLIDControl, hpnicfEponDeviceStatRxFramesQueue1=hpnicfEponDeviceStatRxFramesQueue1, hpnicfEponDeviceControlEntry=hpnicfEponDeviceControlEntry, hpnicfEponDeviceStatDroppedFramesQueue2=hpnicfEponDeviceStatDroppedFramesQueue2, hpnicfEponDeviceRMadlAction=hpnicfEponDeviceRMadlAction, hpnicfEponDeviceStatRxFramesQueue5=hpnicfEponDeviceStatRxFramesQueue5) |
# Question Link : https://leetcode.com/explore/challenge/card/august-leetcoding-challenge/552/week-4-august-22nd-august-28th/3436/
# Level : Hard
# Solution right below :-
class Solution(object):
def mincostTickets(self, days, costs):
"""
:type days: List[int]
:type costs: List[int]
:rtype: int
"""
def dp(day):
if day>days[-1]:
return 0
if memo[day]:
return memo[day]
if(day in days):
ans = min(dp(day+1)+costs[0],dp(day+7)+costs[1],dp(day+30)+costs[2])
else:
ans = dp(day+1)
memo[day] = ans
return ans
memo = [False]*(days[-1]+1)
return dp(1)
print('Min Cost :',Solution().mincostTickets([1,4,6,7,8,20],[2,7,15]))
| class Solution(object):
def mincost_tickets(self, days, costs):
"""
:type days: List[int]
:type costs: List[int]
:rtype: int
"""
def dp(day):
if day > days[-1]:
return 0
if memo[day]:
return memo[day]
if day in days:
ans = min(dp(day + 1) + costs[0], dp(day + 7) + costs[1], dp(day + 30) + costs[2])
else:
ans = dp(day + 1)
memo[day] = ans
return ans
memo = [False] * (days[-1] + 1)
return dp(1)
print('Min Cost :', solution().mincostTickets([1, 4, 6, 7, 8, 20], [2, 7, 15])) |
# comprehensive solution
class Solution:
def numJewelsInStones(self, J: str, S: str) -> int:
# https://leetcode.com/problems/jewels-and-stones/discuss/527360/Several-Python-solution.-w-Explanation
jewel = set(J)
return sum( 1 for item in S if item in jewel )
def numJewelsInStones(self, J: str, S: str) -> int:
# https://leetcode.com/problems/jewels-and-stones/discuss/527360/Several-Python-solution.-w-Explanation
return sum( S.count(jewel) for jewel in J )
def numJewelsInStones(self, J: str, S: str) -> int:
# https://leetcode.com/problems/jewels-and-stones/discuss/?currentPage=1&orderBy=most_votes&query=
return sum(s in J for s in S)
def numJewelsInStones(self, J: str, S: str) -> int:
# https://leetcode.com/problems/jewels-and-stones/discuss/?currentPage=1&orderBy=most_votes&query=
return sum(map(J.count, S)) | class Solution:
def num_jewels_in_stones(self, J: str, S: str) -> int:
jewel = set(J)
return sum((1 for item in S if item in jewel))
def num_jewels_in_stones(self, J: str, S: str) -> int:
return sum((S.count(jewel) for jewel in J))
def num_jewels_in_stones(self, J: str, S: str) -> int:
return sum((s in J for s in S))
def num_jewels_in_stones(self, J: str, S: str) -> int:
return sum(map(J.count, S)) |
TIEMPO_POR_INSTRUCCION = 15
TIEMPO_AVISO_NO_MOVIMIENTO = 10
constante_cambio_area = 1000 # constante de cambio de area, entre mayor sea el numero, mayor es el area a detectar para cambio, es decir el equivalente a la velocidad de movimiento
valor_cambio = 200 # Constante incremental para cambio de estado [Lavandose_manos, Persona_ausente_o_sin_movimiento]
STATUS_MOVIMIENTO = ("MOVE", "NO_MOVE")
TIEMPO_VOLVER_LAVAR_MANOS = 60 # segundos (recomendado 5 minutos)
| tiempo_por_instruccion = 15
tiempo_aviso_no_movimiento = 10
constante_cambio_area = 1000
valor_cambio = 200
status_movimiento = ('MOVE', 'NO_MOVE')
tiempo_volver_lavar_manos = 60 |
# -*- coding=utf-8 -*-
# library: jionlp
# author: dongrixinyu
# license: Apache License 2.0
# Email: dongrixinyu.89@163.com
# github: https://github.com/dongrixinyu/JioNLP
# description: Preprocessing tool for Chinese NLP
def bracket(regular_expression):
return ''.join([r'(', regular_expression, r')'])
def bracket_absence(regular_expression):
return ''.join([r'(', regular_expression, r')?'])
def absence(regular_expression):
return ''.join([regular_expression, r'?'])
def start_end(regular_expression):
return ''.join([r'^', regular_expression, r'$'])
| def bracket(regular_expression):
return ''.join(['(', regular_expression, ')'])
def bracket_absence(regular_expression):
return ''.join(['(', regular_expression, ')?'])
def absence(regular_expression):
return ''.join([regular_expression, '?'])
def start_end(regular_expression):
return ''.join(['^', regular_expression, '$']) |
t = int(input())
s = "abcdefghijklmnopqrstuvwxyz"
for _ in range(t):
total = 0
l = list(map(int, input().split()))
string = input()
lst = list(set(s) - set(string))
for i in lst:
total += l[ord(i) - ord('a')]
print(total) | t = int(input())
s = 'abcdefghijklmnopqrstuvwxyz'
for _ in range(t):
total = 0
l = list(map(int, input().split()))
string = input()
lst = list(set(s) - set(string))
for i in lst:
total += l[ord(i) - ord('a')]
print(total) |
#
# License: BSD
# https://raw.githubusercontent.com/stonier/groot_tools/devel/LICENSE
#
##############################################################################
# Documentation
##############################################################################
"""
Groot tools and utilities
"""
##############################################################################
# Imports
##############################################################################
##############################################################################
# Constants
##############################################################################
__version__ = '0.3.2'
| """
Groot tools and utilities
"""
__version__ = '0.3.2' |
# Fury Incarnate
medal = 1142554
if sm.canHold(medal):
sm.chatScript("You obtained the <Fury Incarnate> medal.")
sm.startQuest(parentID)
sm.completeQuest(parentID) | medal = 1142554
if sm.canHold(medal):
sm.chatScript('You obtained the <Fury Incarnate> medal.')
sm.startQuest(parentID)
sm.completeQuest(parentID) |
#
# PySNMP MIB module WHISP-SM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WHISP-SM-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:36:30 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")
ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint")
NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance")
Bits, TimeTicks, Gauge32, IpAddress, ObjectIdentity, MibIdentifier, Unsigned32, ModuleIdentity, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, NotificationType, Integer32, Counter64, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "TimeTicks", "Gauge32", "IpAddress", "ObjectIdentity", "MibIdentifier", "Unsigned32", "ModuleIdentity", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "NotificationType", "Integer32", "Counter64", "Counter32")
TextualConvention, MacAddress, PhysAddress, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "MacAddress", "PhysAddress", "DisplayString")
dhcpRfPublicIp, whispBoxEsn = mibBuilder.importSymbols("WHISP-BOX-MIBV2-MIB", "dhcpRfPublicIp", "whispBoxEsn")
whispSm, whispBox, whispModules, whispAps = mibBuilder.importSymbols("WHISP-GLOBAL-REG-MIB", "whispSm", "whispBox", "whispModules", "whispAps")
WhispMACAddress, WhispLUID = mibBuilder.importSymbols("WHISP-TCV2-MIB", "WhispMACAddress", "WhispLUID")
whispSmMibModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 161, 19, 1, 1, 13))
if mibBuilder.loadTexts: whispSmMibModule.setLastUpdated('200304150000Z')
if mibBuilder.loadTexts: whispSmMibModule.setOrganization('Cambium Networks')
if mibBuilder.loadTexts: whispSmMibModule.setContactInfo('Canopy Technical Support email: technical-support@canopywireless.com')
if mibBuilder.loadTexts: whispSmMibModule.setDescription('This module contains MIB definitions for Subscriber Modem.')
whispSmConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1))
whispSmSecurity = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7))
whispSmStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2))
whispSmGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3))
whispSmEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4))
whispSmDfsEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 1))
whispSmSpAnEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 2))
whispSmDHCPClientEvent = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 3))
whispSmControls = MibIdentifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 8))
rfScanList = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rfScanList.setStatus('current')
if mibBuilder.loadTexts: rfScanList.setDescription('RF scan list. The frequencies are: 2.4 radios:24150,24175,24200,24225,24250,24275,24300,24325,24350,24375, 24400,24425,24450,24475,24500,24525,24550,24575. 3.5 radios:340000-360000 added and removed dynamically. 4.9 radios:494500-498500 added and removed dynamically. 5.1 radios:5175,5180,5185,5190,5195,5200,5205,5210,5215,5220,5225,5230,5240, 5245,5250,5255,5260,5265,5270,5275,5280,5285,5290,5295,5300,5305, 5310,5315,5320,5325. 5.2 radios:5275,5280,5285,5290,5295,5300,5305,5310,5315,5320,5325. 5.4 FSK radios:5495,5500,5505,5510,5515,5520,5525, 5530,5535,5540,5545,5550,5555,5560,5565,5570,5575,5580,5585,5590,5595, 5600,5605,5610,5615,5620,5625,5630,5635,5640,5645,5650,5655,5660,5665, 5670,5675,5680,5685,5690,5695,5700,5705. 5.4 OFDM radios 5 mhz channels: 547250,547500,547750,548000,548500,548750,549000,549250,549500,549750,550000,550250,550500,550750,551000,551250,551500,551750,552000,552250,552500,552750, 553000,553250,553500,553750,554000,554250,554500,554750,555000,555250,555500,555750,556000,556250,556500,556750,557000,557250,557500,557750,558000,558250,558500,558750,559000,559250,559500,559750, 560000,560250,560500,560750,561000,561250,561500,561750,562000,562250,562500,562750,563000,563250,563500,563750,564000,564250,564500,564750,565000,565250,565500,565750,566000,566250,566500,566750, 567000,567250,567500,567750,568000,568250,568500,568750,569000,569250,569500,569750,570000,570250,570500,570750,571000,571250,571500,571750. 5.4 OFDM radios 10 mhz channels: 547500,548500,549000,549500,550000,550500,551000,551500,552000,552500, 553000,553500,554000,554500,555000,555500,556000,556500,557000,557500,558000,558500,559000,559500, 560000,560500,561000,561500,562000,562500,563000,563500,564000,564500,565000,565500,566000,566500, 567000,567500,568000,568500,569000,569500,570000,570500,571000,571500. 5.4 OFDM radios 20 mhz channels: 547500,548500,549000,549500,550000,550500,551000,551500,552000,552500, 553000,553500,554000,554500,555000,555500,556000,556500,557000,557500,558000,558500,559000,559500, 560000,560500,561000,561500,562000,562500,563000,563500,564000,564500,565000,565500,566000,566500, 567000,567500,568000,568500,569000,569500,570000,570500,571000,571500. 5.7 FSK radios with ISM enabled :5735,5740,5745,5750,5755,5760,5765,5770,5775, 5780,5785,5790,5795,5800,5805,5810,5815,5820,5825,5830,5835,5840. 5.7 OFDM radios 5 mhz channels :572750,573000,573250,573500,573750,574000,574250,574500,574750,575000,575250,575500,575750,576000,576250,576500,576750,577000,577250,577500,577750, 578000,578250,578500,578750,579000,579250,579500,579750,580000,580250,580500,580750,581000,581250,581500,581750,582000,582250,582500,582750,583000,583250,583500,583750,584000, 584250,584500,584750,585000,585250,585500,585750,586000,586250,586500,586750,587000,587250. 5.7 OFDM radios 10 mhz channels:573000,573500,574000,574500,575000,575500,576000,576500,577000,577500, 578000,578500,579000,579500,580000,580500,581000,581500,582000,582500,583000,583500,584000,584500,585000,585500,586000,586500,587000. 5.7 OFDM radios 20 mhz channels :573500,574000,574500,575000,575500,576000,576500,577000,577500, 578000,578500,579000,579500,580000,580500,581000,581500,582000,582500,583000,583500,584000,584500,585000,585500,586000,586500. 5.8 radios:5860,5865,5870,5875,5880,5885,5890,5895,5900,5905,5910. 5805,5810,5815,5820,5825,5830,5835,5840,5845,5850,5855,5860,5865,5870,5875,5880, 5885,5890,5895,5900,5905,5910,5915,5920,5925,5930,5935,5940,5945,5950. 5.9 radios:5735,5740,5745,5750,5755,5760,5765,5770,5775,5780,5785,5790,5795,5800, 5805,5810,5815,5820,5825,5830,5835,5840,5845,5850,5855,5860,5865,5870,5875,5880, 5885,5890,5895,5900,5905,5910,5915,5920,5925,5930,5935,5940,5945,5950. 6.050 radios:5850,5855,5860,5865,5870,5875,5880,5885,5890,5895,5900,5905,5910,5915,5920, 5925,5930,5935,5940,5945,5950,5955,5960,5965,5970,5975,5980,5985,5990,5995,6000, 6005,6010,6015,6020,6025,6030,6035,6040,6045,6050. 900 radios:9060,9070,9080,9090,9100,9110,9120,9130,9140,9150,9160,9170,9180,9190,9200,9220,9230,9240. 0: none. all: All frequencies in the band(s) supported by the radio will be selected. all54: All frequencies in the 5.4 band will be selected (only available on dual band radios). all57: All frequencies in the 5.7 band will be selected (only available on dual band radios). When doing a set, separate values with comma with no white space between values.')
powerUpMode = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("operational", 0), ("aim", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: powerUpMode.setStatus('current')
if mibBuilder.loadTexts: powerUpMode.setDescription('SM Power Up Mode With No 802.3 Link. 1 -- Power up in Aim mode 2 -- Power up in Operational mode.')
lanIpSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: lanIpSm.setStatus('current')
if mibBuilder.loadTexts: lanIpSm.setDescription('LAN IP.')
lanMaskSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: lanMaskSm.setStatus('current')
if mibBuilder.loadTexts: lanMaskSm.setDescription('LAN subnet mask.')
defaultGwSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: defaultGwSm.setStatus('current')
if mibBuilder.loadTexts: defaultGwSm.setDescription('Default gateway.')
networkAccess = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("localIP", 0), ("publicIP", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: networkAccess.setStatus('current')
if mibBuilder.loadTexts: networkAccess.setDescription('Network accessibility. Public or local IP. For multipoint only.')
authKeySm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authKeySm.setStatus('current')
if mibBuilder.loadTexts: authKeySm.setDescription('Authentication key. It should be equal or less than 32 characters long.')
enable8023link = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: enable8023link.setStatus('current')
if mibBuilder.loadTexts: enable8023link.setDescription('To enable or disable 802.3 link. For SMs only.')
authKeyOption = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("useDefault", 0), ("useKeySet", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authKeyOption.setStatus('current')
if mibBuilder.loadTexts: authKeyOption.setDescription('This option is for SMs only. Backhaul timing slave always uses the set key. 0 - Use default key. 1 - Use set key.')
timingPulseGated = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: timingPulseGated.setStatus('current')
if mibBuilder.loadTexts: timingPulseGated.setDescription('0 - Disable (Always propagate the frame timing pulse). 1 - Enable (If SM out of sync then dont propagate the frame timing pulse).')
naptPrivateIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 11), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPrivateIP.setStatus('current')
if mibBuilder.loadTexts: naptPrivateIP.setDescription('NAPT private IP address. Only the first three bytes can be changed when NAPT is enabled.')
naptPrivateSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 12), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPrivateSubnetMask.setStatus('current')
if mibBuilder.loadTexts: naptPrivateSubnetMask.setDescription('NAPT private subnet mask. Only the last byte can be changed when NAPT is enabled. The address will always be: 255.255.255.x.')
naptPublicIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 13), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPublicIP.setStatus('current')
if mibBuilder.loadTexts: naptPublicIP.setDescription('IP Address of NAPT Public Interface. The variable is available only when NAPT is enabled.')
naptPublicSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 14), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPublicSubnetMask.setStatus('current')
if mibBuilder.loadTexts: naptPublicSubnetMask.setDescription('Subnet mask for NAPT Public Interface. The variable is available only when NAPT is enabled.')
naptPublicGatewayIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 15), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptPublicGatewayIP.setStatus('current')
if mibBuilder.loadTexts: naptPublicGatewayIP.setDescription('IP Address of NAPT Public Interface Gateway. The variable is available only when NAPT is enabled.')
naptRFPublicIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 16), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptRFPublicIP.setStatus('current')
if mibBuilder.loadTexts: naptRFPublicIP.setDescription('IP Address of RF Public Interface. The variable is available only when NAPT is enabled.')
naptRFPublicSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 17), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptRFPublicSubnetMask.setStatus('current')
if mibBuilder.loadTexts: naptRFPublicSubnetMask.setDescription('Subnet mask of RF Public Interface. The variable is available only when NAPT is enabled.')
naptRFPublicGateway = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 18), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptRFPublicGateway.setStatus('current')
if mibBuilder.loadTexts: naptRFPublicGateway.setDescription('IP Address of RF Public Interface Gateway. The variable is available only when NAPT is enabled.')
naptEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptEnable.setStatus('current')
if mibBuilder.loadTexts: naptEnable.setDescription('To enable or disable NAPT. For multipoint only. 1=Enable NAPT, 0=Disable NAPT.')
arpCacheTimeout = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 20), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: arpCacheTimeout.setStatus('current')
if mibBuilder.loadTexts: arpCacheTimeout.setDescription('ARP cache time out in unit of minutes. For multipoint only. Range from 1-30.')
tcpGarbageCollectTmout = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 21), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: tcpGarbageCollectTmout.setStatus('current')
if mibBuilder.loadTexts: tcpGarbageCollectTmout.setDescription('Units of minutes for TCP garbage collection. For multipoint only. Range 4-1440.')
udpGarbageCollectTmout = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 22), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: udpGarbageCollectTmout.setStatus('current')
if mibBuilder.loadTexts: udpGarbageCollectTmout.setDescription('Units of minutes for UDP garbage collection. For multipoint only. Range 1-1440.')
dhcpClientEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpClientEnable.setStatus('obsolete')
if mibBuilder.loadTexts: dhcpClientEnable.setDescription("To enable or disable DHCP client. For multipoint SM's with NAPT enabled.")
dhcpServerEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 24), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpServerEnable.setStatus('current')
if mibBuilder.loadTexts: dhcpServerEnable.setDescription("To enable or disable DHCP server. For multipoint SM's with NAPT enabled.")
dhcpServerLeaseTime = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 25), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpServerLeaseTime.setStatus('current')
if mibBuilder.loadTexts: dhcpServerLeaseTime.setDescription("Units of days for DHCP server lease time. For multipoint SM's with NAPT enabled. Range from 1-30.")
dhcpIPStart = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 26), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpIPStart.setStatus('current')
if mibBuilder.loadTexts: dhcpIPStart.setDescription('The last byte will be set for the starting IP that our DHCP server gives away. The first 3 bytes of the starting IP are the same as those of NAPT private IP')
dnsAutomatic = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("manually", 0), ("automatically", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dnsAutomatic.setStatus('current')
if mibBuilder.loadTexts: dnsAutomatic.setDescription('To have DHCP Server obtain DNS information automatically or manually.')
prefferedDNSIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 28), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: prefferedDNSIP.setStatus('current')
if mibBuilder.loadTexts: prefferedDNSIP.setDescription('The preferred DNS IP when we are configured for static DNS (Not used when configured for automatic DNS).')
alternateDNSIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 29), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: alternateDNSIP.setStatus('current')
if mibBuilder.loadTexts: alternateDNSIP.setDescription('The alternate DNS IP when we are configured for static DNS (Not used when configured for automatic DNS).')
dmzIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 30), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dmzIP.setStatus('current')
if mibBuilder.loadTexts: dmzIP.setDescription('Only the last byte of DMZ Host IP will be set. The first 3 bytes of DMZ IP are the same as those of NAPT private IP.')
dmzEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 31), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dmzEnable.setStatus('current')
if mibBuilder.loadTexts: dmzEnable.setDescription('To enable or disable DMZ host functionality.')
dhcpNumIPsToLease = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 32), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dhcpNumIPsToLease.setStatus('current')
if mibBuilder.loadTexts: dhcpNumIPsToLease.setDescription('Number of IP addresses that our DHCP server can give away.')
pppoeFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 33), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeFilter.setStatus('obsolete')
if mibBuilder.loadTexts: pppoeFilter.setDescription('To set PPPoE packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
smbFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 34), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: smbFilter.setStatus('obsolete')
if mibBuilder.loadTexts: smbFilter.setDescription('To set SMB packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
snmpFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: snmpFilter.setStatus('obsolete')
if mibBuilder.loadTexts: snmpFilter.setDescription('To set SNMP packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userP1Filter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userP1Filter.setStatus('obsolete')
if mibBuilder.loadTexts: userP1Filter.setDescription('To set user defined port 1 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userP2Filter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 37), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userP2Filter.setStatus('obsolete')
if mibBuilder.loadTexts: userP2Filter.setDescription('To set user defined port 2 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userP3Filter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 38), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userP3Filter.setStatus('obsolete')
if mibBuilder.loadTexts: userP3Filter.setDescription('To set user defined port 3 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
allOtherIpFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 39), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allOtherIpFilter.setStatus('obsolete')
if mibBuilder.loadTexts: allOtherIpFilter.setDescription('To set all other IPv4 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
upLinkBCastFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: upLinkBCastFilter.setStatus('obsolete')
if mibBuilder.loadTexts: upLinkBCastFilter.setDescription('This variable is currently obsolete.')
arpFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: arpFilter.setStatus('obsolete')
if mibBuilder.loadTexts: arpFilter.setDescription('To set ARP packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
allOthersFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allOthersFilter.setStatus('obsolete')
if mibBuilder.loadTexts: allOthersFilter.setDescription('To set all other packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userDefinedPort1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 43), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userDefinedPort1.setStatus('obsolete')
if mibBuilder.loadTexts: userDefinedPort1.setDescription('An integer value of number one user defined port. Range:0-65535 Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port1TCPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 44), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port1TCPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port1TCPFilter.setDescription('To set user defined port 1 TCP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port1UDPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 45), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port1UDPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port1UDPFilter.setDescription('To set user defined port 1 UDP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userDefinedPort2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 46), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userDefinedPort2.setStatus('obsolete')
if mibBuilder.loadTexts: userDefinedPort2.setDescription('An integer value of number two user defined port. Range:0-65535 Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port2TCPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 47), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port2TCPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port2TCPFilter.setDescription('To set user defined port 2 TCP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port2UDPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 48), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port2UDPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port2UDPFilter.setDescription('To set user defined port 2 UDP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
userDefinedPort3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 49), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: userDefinedPort3.setStatus('obsolete')
if mibBuilder.loadTexts: userDefinedPort3.setDescription('An integer value of number three user defined port. Range:0-65535 Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port3TCPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port3TCPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port3TCPFilter.setDescription('To set user defined port 3 TCP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port3UDPFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 51), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port3UDPFilter.setStatus('obsolete')
if mibBuilder.loadTexts: port3UDPFilter.setDescription('To set user defined port 3 UDP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
bootpcFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 52), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bootpcFilter.setStatus('obsolete')
if mibBuilder.loadTexts: bootpcFilter.setDescription('To set bootp client sourced packets filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
bootpsFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 53), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bootpsFilter.setStatus('obsolete')
if mibBuilder.loadTexts: bootpsFilter.setDescription('To set bootp server sourced packets filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
ip4MultFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 54), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ip4MultFilter.setStatus('obsolete')
if mibBuilder.loadTexts: ip4MultFilter.setDescription('To set IPv4 MultiCast packets filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
ingressVID = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 55), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ingressVID.setStatus('current')
if mibBuilder.loadTexts: ingressVID.setDescription('Untagged ingress VID.')
lowPriorityUplinkCIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 56), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: lowPriorityUplinkCIR.setStatus('current')
if mibBuilder.loadTexts: lowPriorityUplinkCIR.setDescription('Low priority uplink CIR.')
lowPriorityDownlinkCIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 57), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: lowPriorityDownlinkCIR.setStatus('current')
if mibBuilder.loadTexts: lowPriorityDownlinkCIR.setDescription('Low priority downlink CIR.')
hiPriorityChannel = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 58), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hiPriorityChannel.setStatus('current')
if mibBuilder.loadTexts: hiPriorityChannel.setDescription('To enable or disable high priority channel.')
hiPriorityUplinkCIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 59), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hiPriorityUplinkCIR.setStatus('current')
if mibBuilder.loadTexts: hiPriorityUplinkCIR.setDescription('High priority uplink CIR.')
hiPriorityDownlinkCIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 60), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hiPriorityDownlinkCIR.setStatus('current')
if mibBuilder.loadTexts: hiPriorityDownlinkCIR.setDescription('High priority downlink CIR.')
smRateAdapt = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 61), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("onex", 0), ("onextwox", 1), ("onextwoxthreex", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: smRateAdapt.setStatus('obsolete')
if mibBuilder.loadTexts: smRateAdapt.setDescription('Rate adaptation parameter. 0: no rate adaptation. 1: 1x and 2x adaptation. 2: 1x,2x and 3x adaptation.')
upLnkDataRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 62), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: upLnkDataRate.setStatus('current')
if mibBuilder.loadTexts: upLnkDataRate.setDescription('Sustained uplink bandwidth cap.')
upLnkLimit = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 63), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: upLnkLimit.setStatus('current')
if mibBuilder.loadTexts: upLnkLimit.setDescription('Burst uplink bandwidth cap.')
dwnLnkDataRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 64), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dwnLnkDataRate.setStatus('current')
if mibBuilder.loadTexts: dwnLnkDataRate.setDescription('Sustained downlink bandwidth cap.')
dwnLnkLimit = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 65), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dwnLnkLimit.setStatus('current')
if mibBuilder.loadTexts: dwnLnkLimit.setDescription('Burst downlink bandwidth cap.')
dfsConfig = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 66), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dfsConfig.setStatus('obsolete')
if mibBuilder.loadTexts: dfsConfig.setDescription('To configure proper regions for Dynamic Frequency Shifting. For 5.2/5.4/5.7 GHz radios.')
ethAccessFilterEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 67), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ethAccessFilterEnable.setStatus('obsolete')
if mibBuilder.loadTexts: ethAccessFilterEnable.setDescription('To enable or disable Ethernet Port access filtering to SM Management Functions. (0) - Ethernet access to SM Management allowed. (1) - Ethernet access to SM Management blocked.')
ipAccessFilterEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 68), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ipAccessFilterEnable.setStatus('current')
if mibBuilder.loadTexts: ipAccessFilterEnable.setDescription('To enable or disable IP access filtering to Management functions. (0) - IP access will be allowed from all addresses. (1) - IP access will be controlled using allowedIPAccess1-3 entries.')
allowedIPAccess1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 69), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccess1.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccess1.setDescription('Allow access to SM Management from this IP. 0 is default setting to allow from all IPs.')
allowedIPAccess2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 70), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccess2.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccess2.setDescription('Allow access to SM Management from this IP. 0 is default setting to allow from all IPs.')
allowedIPAccess3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 71), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccess3.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccess3.setDescription('Allow access to SM Management from this IP. 0 is default setting to allow from all IPs.')
rfDhcpState = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 72), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rfDhcpState.setStatus('current')
if mibBuilder.loadTexts: rfDhcpState.setDescription('To enable or disable RF Interface DHCP feature.')
bCastMIR = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 73), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("disabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bCastMIR.setStatus('current')
if mibBuilder.loadTexts: bCastMIR.setDescription('To enable and set Broadcast/ Multicast MIR feature. Use value of 0 to disable. Units are in kbps')
bhsReReg = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 74), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bhsReReg.setStatus('obsolete')
if mibBuilder.loadTexts: bhsReReg.setDescription('Allows BHS re-registration every 24 hours. Enable allows re-registration and Disable does not. 24 Hour Encryption Refresh.')
smLEDModeFlag = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 75), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("legacy", 0), ("revised", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: smLEDModeFlag.setStatus('current')
if mibBuilder.loadTexts: smLEDModeFlag.setDescription('To set LED Panel Operation to Revised Mode(1) or to Legacy Mode(0)')
ethAccessEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 76), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: ethAccessEnable.setStatus('current')
if mibBuilder.loadTexts: ethAccessEnable.setDescription('To enable or disable Ethernet Port access to SM Management Functions. (1) - Ethernet access to SM Management allowed. (0) - Ethernet access to SM Management blocked.')
pppoeEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 77), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeEnable.setStatus('current')
if mibBuilder.loadTexts: pppoeEnable.setDescription('Enable or disable PPPoE on the SM. NAT MUST be enabled prior and Translation Bridging MUST be DISABLED on the AP.')
pppoeAuthenticationType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 78), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("none", 0), ("chap-pap", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeAuthenticationType.setStatus('current')
if mibBuilder.loadTexts: pppoeAuthenticationType.setDescription('Set the PPPoE Authentication Type to either None or CHAP/pap')
pppoeAccessConcentrator = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 79), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeAccessConcentrator.setStatus('current')
if mibBuilder.loadTexts: pppoeAccessConcentrator.setDescription('Set the PPPoE Access Concentrator Name. Less than or equal to 32 characters')
pppoeServiceName = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 80), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeServiceName.setStatus('current')
if mibBuilder.loadTexts: pppoeServiceName.setDescription('Set the PPPoE Service Name. Less than or equal to 32 characters')
pppoeUserName = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 81), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeUserName.setStatus('current')
if mibBuilder.loadTexts: pppoeUserName.setDescription('Set the PPPoE Username. Less than or equal to 32 characters')
pppoePassword = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 82), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoePassword.setStatus('current')
if mibBuilder.loadTexts: pppoePassword.setDescription('Set the PPPoE Password. Less than or equal to 32 characters')
pppoeTCPMSSClampEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeTCPMSSClampEnable.setStatus('current')
if mibBuilder.loadTexts: pppoeTCPMSSClampEnable.setDescription('Enable or disable TCP MSS Clamping. Enabling this will cause the SM to edit the TCP MSS in TCP SYN and SYN-ACK packets. This will allow for a workaround for MTU issues so that the TCP session will only go up to the clamped MSS. If you are using PMTUD reliably, this should not be needed.')
pppoeMTUOverrideEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 84), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeMTUOverrideEnable.setStatus('current')
if mibBuilder.loadTexts: pppoeMTUOverrideEnable.setDescription("Enable the overriding of the PPP link's MTU. Normally, the PPP link will set the MTU to the MRU of the PPPoE Server, but this may be overridden. If the MRU of the PPPoE server is smaller than the desired MTU, the smaller MTU will be used.")
pppoeMTUOverrideValue = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 85), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 1492))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeMTUOverrideValue.setStatus('current')
if mibBuilder.loadTexts: pppoeMTUOverrideValue.setDescription("Enable the overriding of the PPP link's MTU. Normally, the PPP link will set the MTU to the MRU of the PPPoE Server, but this may be overridden. If the MRU of the PPPoE server is smaller than the desired MTU, the smaller MTU will be used. Max MTU of a PPPoE link is 1492.")
pppoeTimerType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 86), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("keepAlive", 1), ("idleTimeout", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeTimerType.setStatus('current')
if mibBuilder.loadTexts: pppoeTimerType.setDescription('Set the PPPoE Timer type. Can be a Keep Alive timer where the link will be checked periodically and automatically redialed if the link is down. Also could be an Idle Timeout where the link will be automatically dropped after an idle period and redialed if user data is present. Keep Alive timers are in seconds while Idle Timeout timers are in minutes.')
pppoeTimeoutPeriod = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 87), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeTimeoutPeriod.setStatus('current')
if mibBuilder.loadTexts: pppoeTimeoutPeriod.setDescription('The Timeout Period. The use of this depends on the Timer Type. If the Timer Type is KeepAlive, then the timeout period is in seconds. If the Timer Type is Idle Timeout, then the timeout period is in minutes. Minimum values are 20 seconds for KeepAlive timer, and 5 minutes for Idle Timeout.')
timedSpectrumAnalysisDuration = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 88), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 1000))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: timedSpectrumAnalysisDuration.setStatus('deprecated')
if mibBuilder.loadTexts: timedSpectrumAnalysisDuration.setDescription('As of release 13.0.2 this value is depricated. Please use the OID in whispBoxConfig. Value in seconds for a timed spectrum analysis. Range is 10-1000 seconds.')
spectrumAnalysisOnBoot = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 89), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: spectrumAnalysisOnBoot.setStatus('current')
if mibBuilder.loadTexts: spectrumAnalysisOnBoot.setDescription('To enable or disable Spectrum Analysis on boot up for one scan through the band. (0) - Disabled (1) - Enabled')
spectrumAnalysisAction = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 90), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("stopSpectrumAnalysis", 0), ("startTimedSpectrumAnalysis", 1), ("startContinuousSpectrumAnalysis", 2), ("idleNoSpectrumAnalysis", 3), ("idleCompleteSpectrumAnalysis", 4), ("inProgressTimedSpectrumAnalysis", 5), ("inProgressContinuousSpectrumAnalysis", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: spectrumAnalysisAction.setStatus('deprecated')
if mibBuilder.loadTexts: spectrumAnalysisAction.setDescription('As of release 13.0.2, this OID has been deprecated. Please use the OID in whispBoxConfig. Start or stop timed or continuous Spectrum Analysis and also give status. (0) - Stop Spectrum Analysis (1) - Start Timed Spectrum Analysis (2) - Start Continuous Spectrum Analysis (3) - Idle, no Spectrum Analysis results. (4) - Idle, Spectrum Analysis results available. (5) - Timed or Remote Spectrum Analysis in progress. (6) - Continuous Spectrum Analysis in progress. Note: Continuous mode has a max of 24 hours.')
pppoeConnectOD = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 91), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("connectOnDemand", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeConnectOD.setStatus('current')
if mibBuilder.loadTexts: pppoeConnectOD.setDescription('Force a manual PPPoE connection attempt.')
pppoeDisconnectOD = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 92), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("disconnectOnDemand", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pppoeDisconnectOD.setStatus('current')
if mibBuilder.loadTexts: pppoeDisconnectOD.setDescription('Force a manual PPPoE disconnection.')
smAntennaType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 93), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("integrated", 0), ("external", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: smAntennaType.setStatus('obsolete')
if mibBuilder.loadTexts: smAntennaType.setDescription('Deprecated. See whispBoxStatus.antType for antenna type information.')
natConnectionType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 94), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("staticIP", 0), ("dhcp", 1), ("pppoe", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: natConnectionType.setStatus('current')
if mibBuilder.loadTexts: natConnectionType.setDescription('To configure the SM NAT connection type. Options are Static IP, DHCP, or PPPoE.')
wanPingReplyEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 95), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wanPingReplyEnable.setStatus('current')
if mibBuilder.loadTexts: wanPingReplyEnable.setDescription('Allow Ping replies from SM WAN interface. Applies to both NAT and PPPoE WAN interfaces.')
packetFilterDirection = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 96), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("upstream", 1), ("downstream", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: packetFilterDirection.setStatus('obsolete')
if mibBuilder.loadTexts: packetFilterDirection.setDescription('To packet filter direction when NAT is disabled. Upstream is default. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
colorCode2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 97), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode2.setStatus('current')
if mibBuilder.loadTexts: colorCode2.setDescription('Second Color code.')
colorCodepriority2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 98), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority2.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority2.setDescription('Priority setting for second color code.')
colorCode3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 99), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode3.setStatus('current')
if mibBuilder.loadTexts: colorCode3.setDescription('Third Color code.')
colorCodepriority3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 100), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority3.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority3.setDescription('Priority setting for the third color code.')
colorCode4 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 101), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode4.setStatus('current')
if mibBuilder.loadTexts: colorCode4.setDescription('Fourth Color code.')
colorCodepriority4 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 102), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority4.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority4.setDescription('Priority setting for the fourth color code.')
colorCode5 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 103), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode5.setStatus('current')
if mibBuilder.loadTexts: colorCode5.setDescription('Fifth Color code.')
colorCodepriority5 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 104), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority5.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority5.setDescription('Priority setting for the fifth color code.')
colorCode6 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 105), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode6.setStatus('current')
if mibBuilder.loadTexts: colorCode6.setDescription('Sixth Color code.')
colorCodepriority6 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 106), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority6.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority6.setDescription('Priority setting for the sixth color code.')
colorCode7 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 107), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode7.setStatus('current')
if mibBuilder.loadTexts: colorCode7.setDescription('Seventh Color code.')
colorCodepriority7 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 108), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority7.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority7.setDescription('Priority setting for the seventh color code.')
colorCode8 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 109), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode8.setStatus('current')
if mibBuilder.loadTexts: colorCode8.setDescription('Eighth Color code.')
colorCodepriority8 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 110), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority8.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority8.setDescription('Priority setting for the eighth color code.')
colorCode9 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 111), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode9.setStatus('current')
if mibBuilder.loadTexts: colorCode9.setDescription('Ninth Color code.')
colorCodepriority9 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 112), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority9.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority9.setDescription('Priority setting for the ninth color code.')
colorCode10 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 113), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCode10.setStatus('current')
if mibBuilder.loadTexts: colorCode10.setDescription('Tenth Color code.')
colorCodepriority10 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 114), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 0))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2), ("tertiary", 3), ("disable", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: colorCodepriority10.setStatus('current')
if mibBuilder.loadTexts: colorCodepriority10.setDescription('Priority setting for the tenth color code.')
natDNSProxyEnable = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 115), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: natDNSProxyEnable.setStatus('current')
if mibBuilder.loadTexts: natDNSProxyEnable.setDescription('If enabled, the SM will advertise itself as the DNS server when it sends out DHCP client leases and forward DNS queries automatically. If disabled, the SM will forward on upstream DNS server information when it sends out DHCP client leases.')
allIpv4Filter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 116), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("filterOff", 0), ("filterOn", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allIpv4Filter.setStatus('obsolete')
if mibBuilder.loadTexts: allIpv4Filter.setDescription('To set all IPv4 packet filter when NAT is disabled. Enabling this will automatically enable all of the known IP filters (SMB, SNMP, Bootp, IPv4 Mcast, User Defined Ports, and All Other IPv4). Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
spectrumAnalysisDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 117), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("averaging", 0), ("instantaneous", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: spectrumAnalysisDisplay.setStatus('current')
if mibBuilder.loadTexts: spectrumAnalysisDisplay.setDescription('The display for Spectrum Analyzer: (0) - Averaging over entire period (1) - Instantaneous showing the last reading')
syslogSMXmitSetting = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 118), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("obtain-from-AP", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogSMXmitSetting.setStatus('deprecated')
if mibBuilder.loadTexts: syslogSMXmitSetting.setDescription('Obtains Syslog transmit configuration from AP/BHM if set to 0, overrides if 1 or 2. Transmits syslog data to Syslog server if enabled(1), stops if disabled (2).')
syslogServerApPreferred = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 119), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("use-local", 0), ("use-AP-preferred", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogServerApPreferred.setStatus('current')
if mibBuilder.loadTexts: syslogServerApPreferred.setDescription('Uses Syslog server configuration from AP/BHM if enabled and available, otherwise uses local configuration.')
syslogMinLevelApPreferred = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 120), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("use-local", 0), ("use-AP-preferred", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogMinLevelApPreferred.setStatus('current')
if mibBuilder.loadTexts: syslogMinLevelApPreferred.setDescription('Uses Syslog minimum transmit level configuration from AP/BHM if available, otherwise uses local configuration.')
syslogSMXmitControl = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 121), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("obtain-from-AP-default-disabled", 0), ("obtain-from-AP-default-enabled", 1), ("disable", 2), ("enable", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: syslogSMXmitControl.setStatus('current')
if mibBuilder.loadTexts: syslogSMXmitControl.setDescription('Obtains Syslog transmit configuration from AP/BHM if available, or specifies the local transmit state.')
eapPeerAAAServerCommonName = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 126), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: eapPeerAAAServerCommonName.setStatus('current')
if mibBuilder.loadTexts: eapPeerAAAServerCommonName.setDescription('THIS OID IS CURRENTLY UNUSED: EAP Peer Server Common Name')
rfScanListBandFilter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 127), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(8, 9))).clone(namedValues=NamedValues(("band5400", 8), ("band5700", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rfScanListBandFilter.setStatus('obsolete')
if mibBuilder.loadTexts: rfScanListBandFilter.setDescription('This element is obsolete.')
upLnkMaxBurstDataRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 128), Integer32()).setUnits('Kilobits/sec').setMaxAccess("readwrite")
if mibBuilder.loadTexts: upLnkMaxBurstDataRate.setStatus('current')
if mibBuilder.loadTexts: upLnkMaxBurstDataRate.setDescription('Maximum burst uplink rate.')
dwnLnkMaxBurstDataRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 129), Integer32()).setUnits('Kilobits/sec').setMaxAccess("readwrite")
if mibBuilder.loadTexts: dwnLnkMaxBurstDataRate.setStatus('current')
if mibBuilder.loadTexts: dwnLnkMaxBurstDataRate.setDescription('Maximum burst downlink rate.')
cyclicPrefixScan = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 130), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cyclicPrefixScan.setStatus('current')
if mibBuilder.loadTexts: cyclicPrefixScan.setDescription('Cyclic Prefix value for frequency scanning used by MIMO SMs only. When setting use a comma delimited list of cyclic prefixes with no spaces. For example: 1/8,1/16')
bandwidthScan = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 131), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: bandwidthScan.setStatus('current')
if mibBuilder.loadTexts: bandwidthScan.setDescription('Bandwidth values for frequency scanning used by MIMO SMs only. When setting use a comma delimited list of bandwidths. For example: 10, 20')
apSelection = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 132), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("powerLevel", 1), ("optimizeForThroughput", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: apSelection.setStatus('current')
if mibBuilder.loadTexts: apSelection.setDescription("This OID affects what AP to attempt to register to when Canopy SMs scan see more than one AP that are valid in it's configuration. (0) - Default, Canopy radios after scanning select the best AP that will optimize for estimated throughput. (1) - Select the AP with the best receive power level. Note this is only if multiple APs fit the current scan configuration, and will be overriden by color codes, RADIUS, etc.")
radioBandscanConfig = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 133), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("instant", 0), ("delayed", 1), ("apply", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: radioBandscanConfig.setStatus('current')
if mibBuilder.loadTexts: radioBandscanConfig.setDescription('Used to determine when frequency, cyclic prefix and bandwidth settings take effect for band scanning MIMO SMs. 0 - Instant 1 - Delayed 2 - Apply changes')
forcepoweradjust = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 134), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: forcepoweradjust.setStatus('current')
if mibBuilder.loadTexts: forcepoweradjust.setDescription('This will force a multipoint SM to initiate an asynchronous power adjust sequence.')
clearBerrResults = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 135), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: clearBerrResults.setStatus('current')
if mibBuilder.loadTexts: clearBerrResults.setDescription('This will clear the BERR results.')
berrautoupdateflag = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 136), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: berrautoupdateflag.setStatus('current')
if mibBuilder.loadTexts: berrautoupdateflag.setDescription('This indicates if the once a second BERR updating of counters is enabled. 1 = enabled 0 = disabled')
testSMBER = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 137), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: testSMBER.setStatus('current')
if mibBuilder.loadTexts: testSMBER.setDescription('0 - Disable (Return the SM to a normal operation state). 1 - Enable (Set SM into a BERR test state).')
allowedIPAccessNMLength1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 138), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccessNMLength1.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccessNMLength1.setDescription('Length of the network mask to apply to the AllowedIPAddress when assessing if access is allowed')
allowedIPAccessNMLength2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 139), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccessNMLength2.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccessNMLength2.setDescription('Length of the network mask to apply to the AllowedIPAddress when assessing if access is allowed')
allowedIPAccessNMLength3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 140), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: allowedIPAccessNMLength3.setStatus('current')
if mibBuilder.loadTexts: allowedIPAccessNMLength3.setDescription('Length of the network mask to apply to the AllowedIPAddress when assessing if access is allowed')
naptRemoteManage = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 141), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("disable", 0), ("enable-standalone", 1), ("enable-wan", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: naptRemoteManage.setStatus('current')
if mibBuilder.loadTexts: naptRemoteManage.setDescription('To enable or disable Remote Management. For multipoint only. 0=Disable Remote Management, 1=Enable - Standalone Config, 2=Enable - Use WAN Interface.')
spectrumAnalysisScanBandwidth = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 142), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("bandwidth5MHz", 0), ("bandwidth10MHz", 1), ("bandwidth20MHz", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: spectrumAnalysisScanBandwidth.setStatus('current')
if mibBuilder.loadTexts: spectrumAnalysisScanBandwidth.setDescription('Scanning Bandwidth used for the Spectrum Analyzer. Only available on PMP 450.')
berDeModSelect = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 143), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("qpsk", 0), ("qam-16", 1), ("qam-64", 2), ("qam-256", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: berDeModSelect.setStatus('current')
if mibBuilder.loadTexts: berDeModSelect.setDescription('The BER demodulation level the SM is set. 0 for QPSK, 1 for 16-QAM, 2 for 64-QAM, and 3 for 256-QAM.')
multicastVCRcvRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 144), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: multicastVCRcvRate.setStatus('current')
if mibBuilder.loadTexts: multicastVCRcvRate.setDescription('Multicast VC Receive Rate')
pmp430ApRegistrationOptions = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 145), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("pmp430", 1), ("pmp450", 2), ("both", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: pmp430ApRegistrationOptions.setStatus('current')
if mibBuilder.loadTexts: pmp430ApRegistrationOptions.setDescription('Selects AP types (430 and/or 450) that are available for the PMP430 SM. When both AP types are selected, if the SM does not register to an AP, it will reboot to scan the other AP type.')
switchRadioModeAndReboot = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 146), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("finishedReboot", 0), ("switchRadioModeAndReboot", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: switchRadioModeAndReboot.setStatus('current')
if mibBuilder.loadTexts: switchRadioModeAndReboot.setDescription('Setting this to 1 will force switch the SM to the other radio mode and immediately reboot the unit. When the unit finishes rebooting, it will be in finishedReboot state. Only will be allowed to be set if both registration options are configured. PMP 430 SM only. Introduced in release 12.2.')
numAuthCerts = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: numAuthCerts.setStatus('current')
if mibBuilder.loadTexts: numAuthCerts.setDescription('can have a max value of 2')
authenticationEnforce = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("disable", 0), ("aaa", 1), ("presharedkey", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authenticationEnforce.setStatus('current')
if mibBuilder.loadTexts: authenticationEnforce.setDescription('enforce SM to register with specifed Auth Enabled AP')
phase1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("eapttls", 0), ("eapMSChapV2", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: phase1.setStatus('current')
if mibBuilder.loadTexts: phase1.setDescription('Select the outer method for EAP Authentication')
phase2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("pap", 0), ("chap", 1), ("mschapv2", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: phase2.setStatus('current')
if mibBuilder.loadTexts: phase2.setDescription('Select the outer method for EAP Authentication')
authOuterId = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 253))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authOuterId.setStatus('current')
if mibBuilder.loadTexts: authOuterId.setDescription('EAP Peer Username')
authPassword = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authPassword.setStatus('current')
if mibBuilder.loadTexts: authPassword.setDescription('EAP Peer password')
authUsername = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: authUsername.setStatus('current')
if mibBuilder.loadTexts: authUsername.setDescription('EAP Peer Identity')
useRealm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: useRealm.setStatus('current')
if mibBuilder.loadTexts: useRealm.setDescription('Enable or disable the use of realm option.')
realm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 10), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: realm.setStatus('current')
if mibBuilder.loadTexts: realm.setDescription('EAP Peer Realm')
certTable = MibTable((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1), )
if mibBuilder.loadTexts: certTable.setStatus('current')
if mibBuilder.loadTexts: certTable.setDescription('The table of CA Certificates on SM.')
certEntry = MibTableRow((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1), ).setIndexNames((0, "WHISP-SM-MIB", "certIndex"))
if mibBuilder.loadTexts: certEntry.setStatus('current')
if mibBuilder.loadTexts: certEntry.setDescription('Entry of Certifcates.')
certIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: certIndex.setStatus('current')
if mibBuilder.loadTexts: certIndex.setDescription('User information table index.')
cert = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("inactive", 0), ("active", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cert.setStatus('current')
if mibBuilder.loadTexts: cert.setDescription('0: Inactive 1: Active')
action = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("noop", 0), ("delete", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: action.setStatus('current')
if mibBuilder.loadTexts: action.setDescription('0: No Operation 1: Delete Certificate')
certificateDN = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: certificateDN.setStatus('current')
if mibBuilder.loadTexts: certificateDN.setDescription('Distinguished Name of Certificate 2')
sessionStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sessionStatus.setStatus('current')
if mibBuilder.loadTexts: sessionStatus.setDescription('SM registered or not.')
rssi = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rssi.setStatus('current')
if mibBuilder.loadTexts: rssi.setDescription('Radio signal strength index. FSK only.')
jitter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 3), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: jitter.setStatus('current')
if mibBuilder.loadTexts: jitter.setDescription('A measure of multipath interference. Applicable to FSK radios only.')
airDelay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 4), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: airDelay.setStatus('current')
if mibBuilder.loadTexts: airDelay.setDescription('Round trip delay in bits.')
radioSlicingSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioSlicingSm.setStatus('obsolete')
if mibBuilder.loadTexts: radioSlicingSm.setDescription('This variable is deprecated.')
radioTxGainSm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioTxGainSm.setStatus('current')
if mibBuilder.loadTexts: radioTxGainSm.setDescription('Radio transmission gain setting. Applicable to FSK radios only.')
calibrationStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: calibrationStatus.setStatus('deprecated')
if mibBuilder.loadTexts: calibrationStatus.setDescription('Varible deprecated. Please use calibrationStatusBox.')
radioDbm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbm.setStatus('current')
if mibBuilder.loadTexts: radioDbm.setDescription('Rx Power level. For MIMO this is the combined power of the horizontal and vertical paths.')
registeredToAp = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: registeredToAp.setStatus('current')
if mibBuilder.loadTexts: registeredToAp.setDescription('AP MAC address that the SM registered to.')
dhcpCip = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 10), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpCip.setStatus('current')
if mibBuilder.loadTexts: dhcpCip.setDescription('Assigned IP address to DHCP client.')
dhcpSip = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 11), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpSip.setStatus('current')
if mibBuilder.loadTexts: dhcpSip.setDescription('Public DHCP server IP.')
dhcpClientLease = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 12), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpClientLease.setStatus('current')
if mibBuilder.loadTexts: dhcpClientLease.setDescription('DHCP client lease time.')
dhcpCSMask = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 13), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpCSMask.setStatus('current')
if mibBuilder.loadTexts: dhcpCSMask.setDescription('Public DHCP server subnet mask.')
dhcpDfltRterIP = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 14), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpDfltRterIP.setStatus('current')
if mibBuilder.loadTexts: dhcpDfltRterIP.setDescription('Public default router IP address.')
dhcpcdns1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 15), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpcdns1.setStatus('current')
if mibBuilder.loadTexts: dhcpcdns1.setDescription('Primary public domain name server.')
dhcpcdns2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 16), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpcdns2.setStatus('current')
if mibBuilder.loadTexts: dhcpcdns2.setDescription('Secondary public domain name server.')
dhcpcdns3 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 17), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpcdns3.setStatus('current')
if mibBuilder.loadTexts: dhcpcdns3.setDescription('Third public domain name server.')
dhcpDomName = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 18), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpDomName.setStatus('current')
if mibBuilder.loadTexts: dhcpDomName.setDescription('Public domain name server.')
adaptRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 20), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: adaptRate.setStatus('current')
if mibBuilder.loadTexts: adaptRate.setDescription('VC adapt rate.')
radioDbmInt = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 21), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbmInt.setStatus('current')
if mibBuilder.loadTexts: radioDbmInt.setDescription('Radio power level(integer). For MIMO radios this is the combined power of the horiztontal and vertical paths.')
dfsStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 22), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dfsStatus.setStatus('current')
if mibBuilder.loadTexts: dfsStatus.setDescription('Dynamic frequency shifting status. For DFS Radio only.')
radioTxPwr = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 23), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioTxPwr.setStatus('current')
if mibBuilder.loadTexts: radioTxPwr.setDescription('Tx Power level. Valid for FSK and OFDM SMs.')
activeRegion = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 24), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: activeRegion.setStatus('current')
if mibBuilder.loadTexts: activeRegion.setDescription('The active region of the radio.')
snmpBerLevel = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 25), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 4, 6, 8))).clone(namedValues=NamedValues(("twoLevelOrMimoQPSK", 2), ("fourLevelOrMimo16QAM", 4), ("mimo64QAM", 6), ("mimo256QAM", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: snmpBerLevel.setStatus('current')
if mibBuilder.loadTexts: snmpBerLevel.setDescription('BER level. For PMP450 systems: 2=MIMO QPSK, 4=MIMO 16-QAM, 6=MIMO64-QAM, 8=256-QAM For non PMP450: 2=2 level BER, 4=4 level BER.')
nbBitsRcvd = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 26), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbBitsRcvd.setStatus('current')
if mibBuilder.loadTexts: nbBitsRcvd.setDescription('Number of BER bits received (non MIMO platforms only).')
nbPriBitsErr = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbPriBitsErr.setStatus('current')
if mibBuilder.loadTexts: nbPriBitsErr.setDescription('Number of Primary bit errors (non MIMO platforms only).')
nbSndBitsErr = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nbSndBitsErr.setStatus('current')
if mibBuilder.loadTexts: nbSndBitsErr.setDescription('Number of secondary bit errors (non MIMO platforms only).')
primaryBER = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 29), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: primaryBER.setStatus('obsolete')
if mibBuilder.loadTexts: primaryBER.setDescription('Obsoleted, invalid type to represent this data. Measured Primary Bit Error Rate.')
secondaryBER = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 30), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: secondaryBER.setStatus('obsolete')
if mibBuilder.loadTexts: secondaryBER.setDescription('Obsoleted, invalid type to represent this data. Measured Secondary Bit Error Rate.')
totalBER = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 31), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: totalBER.setStatus('obsolete')
if mibBuilder.loadTexts: totalBER.setDescription('Obsoleted, invalid type to represent this data. Measured Total Bit Error Rate.')
minRSSI = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 32), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: minRSSI.setStatus('current')
if mibBuilder.loadTexts: minRSSI.setDescription('Measured Min. RSSI. Applicable to FSK radios only.')
maxRSSI = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 33), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: maxRSSI.setStatus('current')
if mibBuilder.loadTexts: maxRSSI.setDescription('Measured Max. RSSI. Applicable to FSK radios only.')
minJitter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 34), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: minJitter.setStatus('current')
if mibBuilder.loadTexts: minJitter.setDescription('Measured Min. Jitter. Applicable to FSK radios only.')
maxJitter = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 35), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 15))).setMaxAccess("readonly")
if mibBuilder.loadTexts: maxJitter.setStatus('current')
if mibBuilder.loadTexts: maxJitter.setDescription('Measured Max. Jitter. Applicable to FSK radios only.')
smSessionTimer = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 36), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: smSessionTimer.setStatus('current')
if mibBuilder.loadTexts: smSessionTimer.setDescription('SM current session timer.')
pppoeSessionStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 37), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSessionStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeSessionStatus.setDescription('Current PPPoE Session Status')
pppoeSessionID = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 38), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSessionID.setStatus('current')
if mibBuilder.loadTexts: pppoeSessionID.setDescription('Current PPPoE Session ID')
pppoeIPCPAddress = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 39), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeIPCPAddress.setStatus('current')
if mibBuilder.loadTexts: pppoeIPCPAddress.setDescription('Current PPPoE IPCP IP Address')
pppoeMTUOverrideEn = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeMTUOverrideEn.setStatus('current')
if mibBuilder.loadTexts: pppoeMTUOverrideEn.setDescription('Current PPPoE MTU Override Setting')
pppoeMTUValue = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 41), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeMTUValue.setStatus('current')
if mibBuilder.loadTexts: pppoeMTUValue.setDescription('Current PPPoE MTU Value')
pppoeTimerTypeValue = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 42), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("disabled", 0), ("keepAlive", 1), ("idleTimeout", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeTimerTypeValue.setStatus('current')
if mibBuilder.loadTexts: pppoeTimerTypeValue.setDescription('Current PPPoE Timer Type. 0 is disabled, 1 is Keep Alive timer, and 2 is Idle Timeout timer.')
pppoeTimeoutValue = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 43), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeTimeoutValue.setStatus('current')
if mibBuilder.loadTexts: pppoeTimeoutValue.setDescription('Current PPPoE Timeout Period. The use of this depends on the Timer Type. If the Timer Type is KeepAlive, then the timeout period is in seconds. If the Timer Type is Idle Timeout, then the timeout period is in minutes.')
pppoeDNSServer1 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 44), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeDNSServer1.setStatus('current')
if mibBuilder.loadTexts: pppoeDNSServer1.setDescription('PPPoE DNS Server 1')
pppoeDNSServer2 = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 45), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeDNSServer2.setStatus('current')
if mibBuilder.loadTexts: pppoeDNSServer2.setDescription('PPPoE DNS Server 2')
pppoeControlBytesSent = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 46), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeControlBytesSent.setStatus('current')
if mibBuilder.loadTexts: pppoeControlBytesSent.setDescription('PPPoE Control Bytes Sent')
pppoeControlBytesReceived = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 47), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeControlBytesReceived.setStatus('current')
if mibBuilder.loadTexts: pppoeControlBytesReceived.setDescription('PPPoE Control Bytes Received')
pppoeDataBytesSent = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 48), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeDataBytesSent.setStatus('current')
if mibBuilder.loadTexts: pppoeDataBytesSent.setDescription('PPPoE Data Bytes Sent')
pppoeDataBytesReceived = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 49), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeDataBytesReceived.setStatus('current')
if mibBuilder.loadTexts: pppoeDataBytesReceived.setDescription('PPPoE Data Bytes Received')
pppoeEnabledStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 50), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeEnabledStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeEnabledStatus.setDescription('PPPoE Enabled')
pppoeTCPMSSClampEnableStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 51), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeTCPMSSClampEnableStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeTCPMSSClampEnableStatus.setDescription('PPPoE TCP MSS Clamping Enable')
pppoeACNameStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 52), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeACNameStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeACNameStatus.setDescription('Current PPPoE Access Concentrator In Use')
pppoeSvcNameStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 53), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSvcNameStatus.setStatus('current')
if mibBuilder.loadTexts: pppoeSvcNameStatus.setDescription('Current PPPoE Service Name In Use')
pppoeSessUptime = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 54), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSessUptime.setStatus('current')
if mibBuilder.loadTexts: pppoeSessUptime.setDescription('Uptime of current PPPoE Session in ticks')
primaryBERDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 55), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: primaryBERDisplay.setStatus('current')
if mibBuilder.loadTexts: primaryBERDisplay.setDescription('Measured Primary Bit Error Rate. Non MIMO platforms only.')
secondaryBERDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 56), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: secondaryBERDisplay.setStatus('current')
if mibBuilder.loadTexts: secondaryBERDisplay.setDescription('Measured Secondary Bit Error Rate. FSK platforms only.')
totalBERDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 57), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: totalBERDisplay.setStatus('current')
if mibBuilder.loadTexts: totalBERDisplay.setDescription('Measured Total Bit Error Rate. For MIMO this is combined both paths.')
minRadioDbm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 58), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: minRadioDbm.setStatus('current')
if mibBuilder.loadTexts: minRadioDbm.setDescription('Maximum receive power of beacon in dBm. For MIMO radios, this is only available in the vertical path.')
maxRadioDbm = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 59), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: maxRadioDbm.setStatus('current')
if mibBuilder.loadTexts: maxRadioDbm.setDescription('Maximum receive power of beacon in dBm. For MIMO radios, this is only available in the vertical path.')
pppoeSessIdleTime = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 60), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: pppoeSessIdleTime.setStatus('current')
if mibBuilder.loadTexts: pppoeSessIdleTime.setDescription('Idle Time of current PPPoE Session in ticks')
radioDbmAvg = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 61), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbmAvg.setStatus('current')
if mibBuilder.loadTexts: radioDbmAvg.setDescription("Average Receive Power of the AP's beacon in dBm. OFDM Radios only. For MIMO this is only the verical path, as the beacon is not transmitted on horizontal.")
zoltarFPGAFreqOffset = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 62), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zoltarFPGAFreqOffset.setStatus('current')
if mibBuilder.loadTexts: zoltarFPGAFreqOffset.setDescription('FPGA peek of 70001088')
zoltarSWFreqOffset = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 63), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: zoltarSWFreqOffset.setStatus('current')
if mibBuilder.loadTexts: zoltarSWFreqOffset.setDescription('FPGA peek of 7000108C')
airDelayns = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 64), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: airDelayns.setStatus('current')
if mibBuilder.loadTexts: airDelayns.setDescription('Round trip delay in nanoseconds.')
currentColorCode = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 65), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentColorCode.setStatus('current')
if mibBuilder.loadTexts: currentColorCode.setDescription('The current Color Code of the Registered AP/BHM. A value of -1 is return when the device is not registered.')
currentColorCodePri = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 66), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("none", 0), ("primary", 1), ("secondary", 2), ("tertiary", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentColorCodePri.setStatus('current')
if mibBuilder.loadTexts: currentColorCodePri.setDescription('The current priority of the Registered color code')
currentChanFreq = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 67), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentChanFreq.setStatus('current')
if mibBuilder.loadTexts: currentChanFreq.setDescription('The Current Channel Frequency of the AP/BHM when in session.')
linkQualityBeacon = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 68), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityBeacon.setStatus('current')
if mibBuilder.loadTexts: linkQualityBeacon.setDescription('Engineering only. Link Quality for incoming beacons. For Gen II OFDM radios and forward. For PMP450 and forward this is vertical path.')
dhcpServerPktXmt = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 72), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpServerPktXmt.setStatus('current')
if mibBuilder.loadTexts: dhcpServerPktXmt.setDescription('Number of packets transmitted by SM DHCP Server')
dhcpServerPktRcv = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 73), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpServerPktRcv.setStatus('current')
if mibBuilder.loadTexts: dhcpServerPktRcv.setDescription('Number of packets received by SM DHCP Server')
dhcpServerPktToss = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 74), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dhcpServerPktToss.setStatus('current')
if mibBuilder.loadTexts: dhcpServerPktToss.setDescription('Number of packets tossed by SM DHCP Server')
receiveFragmentsModulationPercentage = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 86), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: receiveFragmentsModulationPercentage.setStatus('current')
if mibBuilder.loadTexts: receiveFragmentsModulationPercentage.setDescription('Engineering use only. The percentage of recent fragments received at which modulation. For Gen II OFDM only and forward.')
fragmentsReceived1XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 87), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived1XVertical.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived1XVertical.setDescription('Engineering use only. Number of fragments received in 1x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
fragmentsReceived2XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 88), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived2XVertical.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived2XVertical.setDescription('Engineering use only. Number of fragments received in 2x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
fragmentsReceived3XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 89), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived3XVertical.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived3XVertical.setDescription('Engineering use only. Number of fragments received in 3x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
fragmentsReceived4XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 90), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived4XVertical.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived4XVertical.setDescription('Engineering use only. Number of fragments received in 4x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
linkQualityData1XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 91), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData1XVertical.setStatus('current')
if mibBuilder.loadTexts: linkQualityData1XVertical.setDescription('Engineering use only. Link Quality for the data VC for QPSK modulation (1X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
linkQualityData2XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 92), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData2XVertical.setStatus('current')
if mibBuilder.loadTexts: linkQualityData2XVertical.setDescription('Engineering use only. Link Quality for the data VC for 16-QAM modulation (2X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
linkQualityData3XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 93), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData3XVertical.setStatus('current')
if mibBuilder.loadTexts: linkQualityData3XVertical.setDescription('Engineering use only. Link Quality for the data VC for 64-QAM modulation (3X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
linkQualityData4XVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 94), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData4XVertical.setStatus('current')
if mibBuilder.loadTexts: linkQualityData4XVertical.setDescription('Engineering use only. Link Quality for the data VC for 256-QAM modulation (4X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
signalToNoiseRatioSMVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 95), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: signalToNoiseRatioSMVertical.setStatus('current')
if mibBuilder.loadTexts: signalToNoiseRatioSMVertical.setDescription('An estimated signal to noise ratio based on the last received data. For GenII OFDM only and forward. For MIMO this is the vertical antenna. Will return zero if Signal to Noise Ratio Calculation is disabled.')
rfStatTxSuppressionCount = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 96), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rfStatTxSuppressionCount.setStatus('current')
if mibBuilder.loadTexts: rfStatTxSuppressionCount.setDescription('RF Scheduler Stats DFS TX Suppression Count')
bridgecbUplinkCreditRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 97), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbUplinkCreditRate.setStatus('current')
if mibBuilder.loadTexts: bridgecbUplinkCreditRate.setDescription('Sustained uplink data rate.')
bridgecbUplinkCreditLimit = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 98), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbUplinkCreditLimit.setStatus('current')
if mibBuilder.loadTexts: bridgecbUplinkCreditLimit.setDescription('Uplink Burst Allocation.')
bridgecbDownlinkCreditRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 99), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbDownlinkCreditRate.setStatus('current')
if mibBuilder.loadTexts: bridgecbDownlinkCreditRate.setDescription('Sustained uplink data rate.')
bridgecbDownlinkCreditLimit = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 100), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbDownlinkCreditLimit.setStatus('current')
if mibBuilder.loadTexts: bridgecbDownlinkCreditLimit.setDescription('Uplink Burst Allocation.')
mimoQpskBerDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 101), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimoQpskBerDisplay.setStatus('current')
if mibBuilder.loadTexts: mimoQpskBerDisplay.setDescription('QPSK BER statistics. MIMO platforms only.')
mimo16QamBerDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 102), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimo16QamBerDisplay.setStatus('current')
if mibBuilder.loadTexts: mimo16QamBerDisplay.setDescription('16-QAM BER statistics MIMO platforms only. Engineering use only.')
mimo64QamBerDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 103), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimo64QamBerDisplay.setStatus('current')
if mibBuilder.loadTexts: mimo64QamBerDisplay.setDescription('64-QAM BER statistics MIMO platforms only. Engineering use only.')
mimo256QamBerDisplay = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 104), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimo256QamBerDisplay.setStatus('current')
if mibBuilder.loadTexts: mimo256QamBerDisplay.setDescription('256-QAM BER statistics MIMO platforms only. Engineering use only.')
mimoBerRcvModulationType = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 105), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: mimoBerRcvModulationType.setStatus('current')
if mibBuilder.loadTexts: mimoBerRcvModulationType.setDescription('Receive modulation type. MIMO platforms only.')
signalToNoiseRatioSMHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 106), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: signalToNoiseRatioSMHorizontal.setStatus('current')
if mibBuilder.loadTexts: signalToNoiseRatioSMHorizontal.setDescription('An estimated signal to noise ratio based on the last received data for horizontal antenna. MIMO radios only. Will return zero if Signal to Noise Ratio Calculation is disabled.')
maxRadioDbmDeprecated = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 107), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: maxRadioDbmDeprecated.setStatus('deprecated')
if mibBuilder.loadTexts: maxRadioDbmDeprecated.setDescription('This OID was inadvertently moved in 12.0.2. Please use maxRadioDbm. This OID is deprecated and kept for backwards compatibility.')
signalStrengthRatio = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 108), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: signalStrengthRatio.setStatus('current')
if mibBuilder.loadTexts: signalStrengthRatio.setDescription('Signal Strength Ratio in dB is the power received by the vertical antenna input (dB) - power received by the horizontal antenna input (dB). MIMO radios only.')
fragmentsReceived1XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 109), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived1XHorizontal.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived1XHorizontal.setDescription('Engineering use only. Number of fragments received in 1x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
fragmentsReceived2XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 110), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived2XHorizontal.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived2XHorizontal.setDescription('Engineering use only. Number of fragments received in 2x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
fragmentsReceived3XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 111), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived3XHorizontal.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived3XHorizontal.setDescription('Engineering use only. Number of fragments received in 3x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
fragmentsReceived4XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 112), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fragmentsReceived4XHorizontal.setStatus('current')
if mibBuilder.loadTexts: fragmentsReceived4XHorizontal.setDescription('Engineering use only. Number of fragments received in 4x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
linkQualityData1XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 113), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData1XHorizontal.setStatus('current')
if mibBuilder.loadTexts: linkQualityData1XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for QPSK modulation (1X). For MIMO radios only. For MIMO this is the horizontal path.')
linkQualityData2XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 114), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData2XHorizontal.setStatus('current')
if mibBuilder.loadTexts: linkQualityData2XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for 16-QAM modulation (2X). For MIMO radios only. For MIMO this is the horizontal path.')
linkQualityData3XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 115), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData3XHorizontal.setStatus('current')
if mibBuilder.loadTexts: linkQualityData3XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for 64-QAM modulation (3X). For MIMO radios only. For MIMO this is the horizontal path.')
linkQualityData4XHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 116), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: linkQualityData4XHorizontal.setStatus('current')
if mibBuilder.loadTexts: linkQualityData4XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for 256-QAM modulation (4X). For MIMO radios only. For MIMO this is the horizontal path.')
radioDbmHorizontal = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 117), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbmHorizontal.setStatus('current')
if mibBuilder.loadTexts: radioDbmHorizontal.setDescription('Receive power level of the horizontal antenna in dBm. MIMO radios only.')
radioDbmVertical = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 118), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioDbmVertical.setStatus('current')
if mibBuilder.loadTexts: radioDbmVertical.setDescription('Receive power level of the vertical antenna in dBm. MIMO radios only.')
bridgecbDownlinkMaxBurstBitRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 119), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbDownlinkMaxBurstBitRate.setStatus('current')
if mibBuilder.loadTexts: bridgecbDownlinkMaxBurstBitRate.setDescription('Maximum burst downlink rate.')
bridgecbUplinkMaxBurstBitRate = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 120), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bridgecbUplinkMaxBurstBitRate.setStatus('current')
if mibBuilder.loadTexts: bridgecbUplinkMaxBurstBitRate.setDescription('Maximum burst uplink Rate.')
currentCyclicPrefix = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 121), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("one-quarter", 0), ("one-eighth", 1), ("one-sixteenth", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentCyclicPrefix.setStatus('current')
if mibBuilder.loadTexts: currentCyclicPrefix.setDescription('The Current Cyclic Prefix of the AP/BHM when in session.')
currentBandwidth = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 122), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 3, 5))).clone(namedValues=NamedValues(("bandwidth5mhz", 1), ("bandwidth10mhz", 3), ("bandwidth20mhz", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: currentBandwidth.setStatus('current')
if mibBuilder.loadTexts: currentBandwidth.setDescription('The Current Bandwidth of the AP/BHM when in session.')
berPwrRxFPGAPathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 123), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: berPwrRxFPGAPathA.setStatus('current')
if mibBuilder.loadTexts: berPwrRxFPGAPathA.setDescription('BER power level on FPGA Rx Path A of SM.')
berPwrRxFPGAPathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 124), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: berPwrRxFPGAPathB.setStatus('current')
if mibBuilder.loadTexts: berPwrRxFPGAPathB.setDescription('BER power level on FPGA Rx Path B of SM.')
rawBERPwrRxPathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 125), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rawBERPwrRxPathA.setStatus('current')
if mibBuilder.loadTexts: rawBERPwrRxPathA.setDescription('Raw unadjusted BER power level on FPGA Rx Path A of SM.')
rawBERPwrRxPathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 126), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rawBERPwrRxPathB.setStatus('current')
if mibBuilder.loadTexts: rawBERPwrRxPathB.setDescription('Raw unadjusted BER power level on FPGA Rx Path B of SM.')
radioModeStatus = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 127), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("undefined", 0), ("pmp430", 1), ("pmp450Interoperability", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: radioModeStatus.setStatus('current')
if mibBuilder.loadTexts: radioModeStatus.setDescription('The current radio mode that SM is operating in. PMP 430 SMs only. Introduced in release 12.2.')
adaptRateLowPri = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 128), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 6, 8))).clone(namedValues=NamedValues(("noSession", 0), ("rate1X", 1), ("rate2X", 2), ("rete3X", 3), ("rate4X", 4), ("rate6X", 6), ("rate8X", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adaptRateLowPri.setStatus('current')
if mibBuilder.loadTexts: adaptRateLowPri.setDescription('The current transmitting rate of the low priority VC. 0 : SM is not in session 1 : 1X QPSK SISO 2 : 2X 16-QAM SISO or QPSK MIMO 3 : 3X 64-QAM SISO 4 : 4X 256-QAM SISO or 16-QAM MIMO 6 : 6X 64-QAM MIMO 8 : 8X 256-QAM MIMO')
adaptRateHighPri = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 129), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(-1, 0, 1, 2, 3, 4, 6, 8))).clone(namedValues=NamedValues(("noHighPriorityChannel", -1), ("noSession", 0), ("rate1X", 1), ("rate2X", 2), ("rete3X", 3), ("rate4X", 4), ("rate6X", 6), ("rate8X", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: adaptRateHighPri.setStatus('current')
if mibBuilder.loadTexts: adaptRateHighPri.setDescription('The current transmitting rate of the high priority VC. -1 : High Priority Channel not configured 0 : SM is not in session 1 : 1X QPSK SISO 2 : 2X 16-QAM SISO or QPSK MIMO 3 : 3X 64-QAM SISO 4 : 4X 256-QAM SISO or 16-QAM MIMO 6 : 6X 64-QAM MIMO 8 : 8X 256-QAM MIMO')
bitErrorsQSPKpathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 130), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrorsQSPKpathA.setStatus('current')
if mibBuilder.loadTexts: bitErrorsQSPKpathA.setDescription('Number of bit errors received from BER packet at QPSK path A. Valid MIMO platforms only.')
bitErrorsQSPKpathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 131), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrorsQSPKpathB.setStatus('current')
if mibBuilder.loadTexts: bitErrorsQSPKpathB.setDescription('Number of bit errors received from BER packet at QPSK path B. Valid MIMO platforms only.')
bitErrors16QAMpathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 132), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors16QAMpathA.setStatus('current')
if mibBuilder.loadTexts: bitErrors16QAMpathA.setDescription('Number of bit errors received from BER packet at 16-QAM path A. Valid MIMO platforms only. Engineering use only.')
bitErrors16QAMpathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 133), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors16QAMpathB.setStatus('current')
if mibBuilder.loadTexts: bitErrors16QAMpathB.setDescription('Number of bit errors received from BER packet at 16-QAM path B. Valid MIMO platforms only. Engineering use only.')
bitErrors64QAMpathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 134), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors64QAMpathA.setStatus('current')
if mibBuilder.loadTexts: bitErrors64QAMpathA.setDescription('Number of bit errors received from BER packet at 64-QAM path A. Valid MIMO platforms only. Engineering use only.')
bitErrors64QAMpathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 135), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors64QAMpathB.setStatus('current')
if mibBuilder.loadTexts: bitErrors64QAMpathB.setDescription('Number of bit errors received from BER packet at 64-QAM path B. Valid MIMO platforms only. Engineering use only.')
bitErrors256QAMpathA = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 136), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors256QAMpathA.setStatus('current')
if mibBuilder.loadTexts: bitErrors256QAMpathA.setDescription('Number of bit errors received from BER packet at 256-QAM path A. Valid MIMO platforms only. Engineering use only.')
bitErrors256QAMpathB = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 137), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitErrors256QAMpathB.setStatus('current')
if mibBuilder.loadTexts: bitErrors256QAMpathB.setDescription('Number of bit errors received from BER packet at 256-QAM path B. Valid MIMO platforms only. Engineering use only.')
bitsReceivedPerPathModulation = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 138), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: bitsReceivedPerPathModulation.setStatus('current')
if mibBuilder.loadTexts: bitsReceivedPerPathModulation.setDescription('Number of bit received from BER. To calculate Bit Error Rate, take bit errors at a modulation and path and divide by this OID. To get combined BER add errors and divide by this multiplied by each path and modulation. i.e. MIMO QPSK combined BER = ((errors on path A) + (errors on path B))/(bits recieved per path modulation * 2) Valid MIMO platforms only.')
dhcpServerTable = MibTable((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19), )
if mibBuilder.loadTexts: dhcpServerTable.setStatus('current')
if mibBuilder.loadTexts: dhcpServerTable.setDescription('The table of DHCP server hosts.')
dhcpServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1), ).setIndexNames((0, "WHISP-SM-MIB", "hostIp"))
if mibBuilder.loadTexts: dhcpServerEntry.setStatus('current')
if mibBuilder.loadTexts: dhcpServerEntry.setDescription('Entry of DHCP server hosts.')
hostIp = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostIp.setStatus('current')
if mibBuilder.loadTexts: hostIp.setDescription('DHCP server IP address.')
hostMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1, 2), PhysAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostMacAddress.setStatus('current')
if mibBuilder.loadTexts: hostMacAddress.setDescription('Private host MAC address.')
hostLease = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1, 3), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hostLease.setStatus('current')
if mibBuilder.loadTexts: hostLease.setDescription('Lease time assigned by DHCP server host.')
whispSmConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 1)).setObjects(("WHISP-SM-MIB", "rfScanList"), ("WHISP-SM-MIB", "rfScanListBandFilter"), ("WHISP-SM-MIB", "powerUpMode"), ("WHISP-SM-MIB", "lanIpSm"), ("WHISP-SM-MIB", "lanMaskSm"), ("WHISP-SM-MIB", "defaultGwSm"), ("WHISP-SM-MIB", "networkAccess"), ("WHISP-SM-MIB", "authKeySm"), ("WHISP-SM-MIB", "enable8023link"), ("WHISP-SM-MIB", "authKeyOption"), ("WHISP-SM-MIB", "timingPulseGated"), ("WHISP-SM-MIB", "naptPrivateIP"), ("WHISP-SM-MIB", "naptPrivateSubnetMask"), ("WHISP-SM-MIB", "naptPublicIP"), ("WHISP-SM-MIB", "naptPublicSubnetMask"), ("WHISP-SM-MIB", "naptPublicGatewayIP"), ("WHISP-SM-MIB", "naptRFPublicIP"), ("WHISP-SM-MIB", "naptRFPublicSubnetMask"), ("WHISP-SM-MIB", "naptRFPublicGateway"), ("WHISP-SM-MIB", "naptEnable"), ("WHISP-SM-MIB", "arpCacheTimeout"), ("WHISP-SM-MIB", "tcpGarbageCollectTmout"), ("WHISP-SM-MIB", "udpGarbageCollectTmout"), ("WHISP-SM-MIB", "dhcpClientEnable"), ("WHISP-SM-MIB", "dhcpServerEnable"), ("WHISP-SM-MIB", "dhcpServerLeaseTime"), ("WHISP-SM-MIB", "dhcpIPStart"), ("WHISP-SM-MIB", "dnsAutomatic"), ("WHISP-SM-MIB", "prefferedDNSIP"), ("WHISP-SM-MIB", "alternateDNSIP"), ("WHISP-SM-MIB", "natDNSProxyEnable"), ("WHISP-SM-MIB", "spectrumAnalysisDisplay"), ("WHISP-SM-MIB", "dmzIP"), ("WHISP-SM-MIB", "dmzEnable"), ("WHISP-SM-MIB", "dhcpNumIPsToLease"), ("WHISP-SM-MIB", "pppoeFilter"), ("WHISP-SM-MIB", "smbFilter"), ("WHISP-SM-MIB", "snmpFilter"), ("WHISP-SM-MIB", "userP1Filter"), ("WHISP-SM-MIB", "userP2Filter"), ("WHISP-SM-MIB", "userP3Filter"), ("WHISP-SM-MIB", "allOtherIpFilter"), ("WHISP-SM-MIB", "allIpv4Filter"), ("WHISP-SM-MIB", "upLinkBCastFilter"), ("WHISP-SM-MIB", "arpFilter"), ("WHISP-SM-MIB", "allOthersFilter"), ("WHISP-SM-MIB", "userDefinedPort1"), ("WHISP-SM-MIB", "port1TCPFilter"), ("WHISP-SM-MIB", "port1UDPFilter"), ("WHISP-SM-MIB", "userDefinedPort2"), ("WHISP-SM-MIB", "port2TCPFilter"), ("WHISP-SM-MIB", "port2UDPFilter"), ("WHISP-SM-MIB", "userDefinedPort3"), ("WHISP-SM-MIB", "port3TCPFilter"), ("WHISP-SM-MIB", "port3UDPFilter"), ("WHISP-SM-MIB", "bootpcFilter"), ("WHISP-SM-MIB", "bootpsFilter"), ("WHISP-SM-MIB", "ip4MultFilter"), ("WHISP-SM-MIB", "ingressVID"), ("WHISP-SM-MIB", "lowPriorityUplinkCIR"), ("WHISP-SM-MIB", "lowPriorityDownlinkCIR"), ("WHISP-SM-MIB", "hiPriorityChannel"), ("WHISP-SM-MIB", "hiPriorityUplinkCIR"), ("WHISP-SM-MIB", "hiPriorityDownlinkCIR"), ("WHISP-SM-MIB", "smRateAdapt"), ("WHISP-SM-MIB", "upLnkMaxBurstDataRate"), ("WHISP-SM-MIB", "upLnkDataRate"), ("WHISP-SM-MIB", "upLnkLimit"), ("WHISP-SM-MIB", "dwnLnkMaxBurstDataRate"), ("WHISP-SM-MIB", "cyclicPrefixScan"), ("WHISP-SM-MIB", "bandwidthScan"), ("WHISP-SM-MIB", "apSelection"), ("WHISP-SM-MIB", "radioBandscanConfig"), ("WHISP-SM-MIB", "forcepoweradjust"), ("WHISP-SM-MIB", "clearBerrResults"), ("WHISP-SM-MIB", "berrautoupdateflag"), ("WHISP-SM-MIB", "testSMBER"), ("WHISP-SM-MIB", "dwnLnkDataRate"), ("WHISP-SM-MIB", "dwnLnkLimit"), ("WHISP-SM-MIB", "dfsConfig"), ("WHISP-SM-MIB", "ethAccessFilterEnable"), ("WHISP-SM-MIB", "ipAccessFilterEnable"), ("WHISP-SM-MIB", "allowedIPAccess1"), ("WHISP-SM-MIB", "allowedIPAccess2"), ("WHISP-SM-MIB", "allowedIPAccess3"), ("WHISP-SM-MIB", "allowedIPAccessNMLength1"), ("WHISP-SM-MIB", "allowedIPAccessNMLength2"), ("WHISP-SM-MIB", "allowedIPAccessNMLength3"), ("WHISP-SM-MIB", "rfDhcpState"), ("WHISP-SM-MIB", "bCastMIR"), ("WHISP-SM-MIB", "bhsReReg"), ("WHISP-SM-MIB", "smLEDModeFlag"), ("WHISP-SM-MIB", "ethAccessEnable"), ("WHISP-SM-MIB", "pppoeEnable"), ("WHISP-SM-MIB", "pppoeAuthenticationType"), ("WHISP-SM-MIB", "pppoeAccessConcentrator"), ("WHISP-SM-MIB", "pppoeServiceName"), ("WHISP-SM-MIB", "pppoeUserName"), ("WHISP-SM-MIB", "pppoePassword"), ("WHISP-SM-MIB", "pppoeTCPMSSClampEnable"), ("WHISP-SM-MIB", "pppoeMTUOverrideEnable"), ("WHISP-SM-MIB", "pppoeMTUOverrideValue"), ("WHISP-SM-MIB", "pppoeTimerType"), ("WHISP-SM-MIB", "pppoeTimeoutPeriod"), ("WHISP-SM-MIB", "timedSpectrumAnalysisDuration"), ("WHISP-SM-MIB", "spectrumAnalysisScanBandwidth"), ("WHISP-SM-MIB", "spectrumAnalysisOnBoot"), ("WHISP-SM-MIB", "spectrumAnalysisAction"), ("WHISP-SM-MIB", "pppoeConnectOD"), ("WHISP-SM-MIB", "pppoeDisconnectOD"), ("WHISP-SM-MIB", "smAntennaType"), ("WHISP-SM-MIB", "natConnectionType"), ("WHISP-SM-MIB", "wanPingReplyEnable"), ("WHISP-SM-MIB", "packetFilterDirection"), ("WHISP-SM-MIB", "colorCode2"), ("WHISP-SM-MIB", "colorCodepriority2"), ("WHISP-SM-MIB", "colorCode3"), ("WHISP-SM-MIB", "colorCodepriority3"), ("WHISP-SM-MIB", "colorCode4"), ("WHISP-SM-MIB", "colorCodepriority4"), ("WHISP-SM-MIB", "colorCode5"), ("WHISP-SM-MIB", "colorCodepriority5"), ("WHISP-SM-MIB", "colorCode6"), ("WHISP-SM-MIB", "colorCodepriority6"), ("WHISP-SM-MIB", "colorCode7"), ("WHISP-SM-MIB", "colorCodepriority7"), ("WHISP-SM-MIB", "colorCode8"), ("WHISP-SM-MIB", "colorCodepriority8"), ("WHISP-SM-MIB", "colorCode9"), ("WHISP-SM-MIB", "colorCodepriority9"), ("WHISP-SM-MIB", "colorCode10"), ("WHISP-SM-MIB", "colorCodepriority10"), ("WHISP-SM-MIB", "berDeModSelect"), ("WHISP-SM-MIB", "multicastVCRcvRate"), ("WHISP-SM-MIB", "syslogServerApPreferred"), ("WHISP-SM-MIB", "syslogMinLevelApPreferred"), ("WHISP-SM-MIB", "syslogSMXmitSetting"), ("WHISP-SM-MIB", "syslogSMXmitControl"), ("WHISP-SM-MIB", "naptRemoteManage"), ("WHISP-SM-MIB", "eapPeerAAAServerCommonName"), ("WHISP-SM-MIB", "pmp430ApRegistrationOptions"), ("WHISP-SM-MIB", "switchRadioModeAndReboot"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whispSmConfigGroup = whispSmConfigGroup.setStatus('current')
if mibBuilder.loadTexts: whispSmConfigGroup.setDescription('Canopy Subscriber Module configuration group.')
whispSmStatusGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 2)).setObjects(("WHISP-SM-MIB", "sessionStatus"), ("WHISP-SM-MIB", "rssi"), ("WHISP-SM-MIB", "jitter"), ("WHISP-SM-MIB", "airDelay"), ("WHISP-SM-MIB", "radioSlicingSm"), ("WHISP-SM-MIB", "radioTxGainSm"), ("WHISP-SM-MIB", "calibrationStatus"), ("WHISP-SM-MIB", "radioDbm"), ("WHISP-SM-MIB", "registeredToAp"), ("WHISP-SM-MIB", "dhcpCip"), ("WHISP-SM-MIB", "dhcpSip"), ("WHISP-SM-MIB", "dhcpClientLease"), ("WHISP-SM-MIB", "dhcpCSMask"), ("WHISP-SM-MIB", "dhcpDfltRterIP"), ("WHISP-SM-MIB", "dhcpcdns1"), ("WHISP-SM-MIB", "dhcpcdns2"), ("WHISP-SM-MIB", "dhcpcdns3"), ("WHISP-SM-MIB", "dhcpDomName"), ("WHISP-SM-MIB", "adaptRate"), ("WHISP-SM-MIB", "adaptRateLowPri"), ("WHISP-SM-MIB", "adaptRateHighPri"), ("WHISP-SM-MIB", "bitErrorsQSPKpathA"), ("WHISP-SM-MIB", "bitErrorsQSPKpathB"), ("WHISP-SM-MIB", "bitErrors16QAMpathA"), ("WHISP-SM-MIB", "bitErrors16QAMpathB"), ("WHISP-SM-MIB", "bitErrors64QAMpathA"), ("WHISP-SM-MIB", "bitErrors64QAMpathB"), ("WHISP-SM-MIB", "bitErrors256QAMpathA"), ("WHISP-SM-MIB", "bitErrors256QAMpathB"), ("WHISP-SM-MIB", "bitsReceivedPerPathModulation"), ("WHISP-SM-MIB", "radioDbmInt"), ("WHISP-SM-MIB", "dfsStatus"), ("WHISP-SM-MIB", "radioTxPwr"), ("WHISP-SM-MIB", "activeRegion"), ("WHISP-SM-MIB", "snmpBerLevel"), ("WHISP-SM-MIB", "nbBitsRcvd"), ("WHISP-SM-MIB", "nbPriBitsErr"), ("WHISP-SM-MIB", "nbSndBitsErr"), ("WHISP-SM-MIB", "primaryBER"), ("WHISP-SM-MIB", "secondaryBER"), ("WHISP-SM-MIB", "totalBER"), ("WHISP-SM-MIB", "minRSSI"), ("WHISP-SM-MIB", "maxRSSI"), ("WHISP-SM-MIB", "minJitter"), ("WHISP-SM-MIB", "maxJitter"), ("WHISP-SM-MIB", "smSessionTimer"), ("WHISP-SM-MIB", "pppoeSessionStatus"), ("WHISP-SM-MIB", "pppoeSessionID"), ("WHISP-SM-MIB", "pppoeIPCPAddress"), ("WHISP-SM-MIB", "pppoeMTUOverrideEn"), ("WHISP-SM-MIB", "pppoeMTUValue"), ("WHISP-SM-MIB", "pppoeTimerTypeValue"), ("WHISP-SM-MIB", "pppoeTimeoutValue"), ("WHISP-SM-MIB", "pppoeDNSServer1"), ("WHISP-SM-MIB", "pppoeDNSServer2"), ("WHISP-SM-MIB", "pppoeControlBytesSent"), ("WHISP-SM-MIB", "pppoeControlBytesReceived"), ("WHISP-SM-MIB", "pppoeDataBytesSent"), ("WHISP-SM-MIB", "pppoeDataBytesReceived"), ("WHISP-SM-MIB", "pppoeEnabledStatus"), ("WHISP-SM-MIB", "pppoeTCPMSSClampEnableStatus"), ("WHISP-SM-MIB", "pppoeACNameStatus"), ("WHISP-SM-MIB", "pppoeSvcNameStatus"), ("WHISP-SM-MIB", "pppoeSessUptime"), ("WHISP-SM-MIB", "primaryBERDisplay"), ("WHISP-SM-MIB", "secondaryBERDisplay"), ("WHISP-SM-MIB", "totalBERDisplay"), ("WHISP-SM-MIB", "mimoQpskBerDisplay"), ("WHISP-SM-MIB", "mimo16QamBerDisplay"), ("WHISP-SM-MIB", "mimo64QamBerDisplay"), ("WHISP-SM-MIB", "mimo256QamBerDisplay"), ("WHISP-SM-MIB", "mimoBerRcvModulationType"), ("WHISP-SM-MIB", "minRadioDbm"), ("WHISP-SM-MIB", "maxRadioDbm"), ("WHISP-SM-MIB", "maxRadioDbmDeprecated"), ("WHISP-SM-MIB", "pppoeSessIdleTime"), ("WHISP-SM-MIB", "radioDbmAvg"), ("WHISP-SM-MIB", "zoltarFPGAFreqOffset"), ("WHISP-SM-MIB", "zoltarSWFreqOffset"), ("WHISP-SM-MIB", "airDelayns"), ("WHISP-SM-MIB", "currentColorCode"), ("WHISP-SM-MIB", "currentColorCodePri"), ("WHISP-SM-MIB", "currentChanFreq"), ("WHISP-SM-MIB", "linkQualityBeacon"), ("WHISP-SM-MIB", "currentCyclicPrefix"), ("WHISP-SM-MIB", "currentBandwidth"), ("WHISP-SM-MIB", "berPwrRxFPGAPathA"), ("WHISP-SM-MIB", "berPwrRxFPGAPathB"), ("WHISP-SM-MIB", "rawBERPwrRxPathA"), ("WHISP-SM-MIB", "rawBERPwrRxPathB"), ("WHISP-SM-MIB", "linkQualityData1XVertical"), ("WHISP-SM-MIB", "linkQualityData2XVertical"), ("WHISP-SM-MIB", "linkQualityData3XVertical"), ("WHISP-SM-MIB", "linkQualityData4XVertical"), ("WHISP-SM-MIB", "linkQualityData1XHorizontal"), ("WHISP-SM-MIB", "linkQualityData2XHorizontal"), ("WHISP-SM-MIB", "linkQualityData3XHorizontal"), ("WHISP-SM-MIB", "linkQualityData4XHorizontal"), ("WHISP-SM-MIB", "signalToNoiseRatioSMVertical"), ("WHISP-SM-MIB", "signalToNoiseRatioSMHorizontal"), ("WHISP-SM-MIB", "signalStrengthRatio"), ("WHISP-SM-MIB", "radioDbmHorizontal"), ("WHISP-SM-MIB", "radioDbmVertical"), ("WHISP-SM-MIB", "rfStatTxSuppressionCount"), ("WHISP-SM-MIB", "receiveFragmentsModulationPercentage"), ("WHISP-SM-MIB", "fragmentsReceived1XVertical"), ("WHISP-SM-MIB", "fragmentsReceived2XVertical"), ("WHISP-SM-MIB", "fragmentsReceived3XVertical"), ("WHISP-SM-MIB", "fragmentsReceived4XVertical"), ("WHISP-SM-MIB", "fragmentsReceived1XHorizontal"), ("WHISP-SM-MIB", "fragmentsReceived2XHorizontal"), ("WHISP-SM-MIB", "fragmentsReceived3XHorizontal"), ("WHISP-SM-MIB", "fragmentsReceived4XHorizontal"), ("WHISP-SM-MIB", "bridgecbUplinkCreditRate"), ("WHISP-SM-MIB", "bridgecbUplinkCreditLimit"), ("WHISP-SM-MIB", "bridgecbDownlinkCreditRate"), ("WHISP-SM-MIB", "bridgecbDownlinkCreditLimit"), ("WHISP-SM-MIB", "bridgecbDownlinkMaxBurstBitRate"), ("WHISP-SM-MIB", "bridgecbUplinkMaxBurstBitRate"), ("WHISP-SM-MIB", "radioModeStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whispSmStatusGroup = whispSmStatusGroup.setStatus('current')
if mibBuilder.loadTexts: whispSmStatusGroup.setDescription('Canopy Subscriber Module status group.')
whispSmNotifGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 3)).setObjects(("WHISP-SM-MIB", "enterSpectrumAnalysis"), ("WHISP-SM-MIB", "availableSpectrumAnalysis"), ("WHISP-SM-MIB", "whispRadarDetected"), ("WHISP-SM-MIB", "whispRadarEnd"), ("WHISP-SM-MIB", "smNatWanDHCPClientEvent"), ("WHISP-SM-MIB", "smNatRFPubDHCPClientEvent"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whispSmNotifGroup = whispSmNotifGroup.setStatus('current')
if mibBuilder.loadTexts: whispSmNotifGroup.setDescription('WHiSP SMs notification group.')
whispMappingTableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 4)).setObjects(("WHISP-SM-MIB", "tableIndex"), ("WHISP-SM-MIB", "protocol"), ("WHISP-SM-MIB", "port"), ("WHISP-SM-MIB", "localIp"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whispMappingTableGroup = whispMappingTableGroup.setStatus('current')
if mibBuilder.loadTexts: whispMappingTableGroup.setDescription('Canopy SM NAT port mapping Table group.')
whispRadarDetected = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 1, 1)).setObjects(("WHISP-SM-MIB", "dfsStatus"), ("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: whispRadarDetected.setStatus('current')
if mibBuilder.loadTexts: whispRadarDetected.setDescription('Radar detected transmit stopped.')
whispRadarEnd = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 1, 2)).setObjects(("WHISP-SM-MIB", "dfsStatus"), ("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: whispRadarEnd.setStatus('current')
if mibBuilder.loadTexts: whispRadarEnd.setDescription('Radar ended back to normal transmit.')
enterSpectrumAnalysis = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 2, 1)).setObjects(("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: enterSpectrumAnalysis.setStatus('current')
if mibBuilder.loadTexts: enterSpectrumAnalysis.setDescription('Entering spectrum analysis. physAddress - MAC address of the SM')
availableSpectrumAnalysis = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 2, 2)).setObjects(("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: availableSpectrumAnalysis.setStatus('current')
if mibBuilder.loadTexts: availableSpectrumAnalysis.setDescription('Spectrum analysis is complete, SM is re-registered with AP and results are available. physAddress - MAC address of the SM')
smNatWanDHCPClientEvent = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 3, 1)).setObjects(("WHISP-SM-MIB", "dhcpCip"), ("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: smNatWanDHCPClientEvent.setStatus('current')
if mibBuilder.loadTexts: smNatWanDHCPClientEvent.setDescription('NAT WAN DHCP Client has received a new address via DHCP.')
smNatRFPubDHCPClientEvent = NotificationType((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 3, 2)).setObjects(("WHISP-BOX-MIBV2-MIB", "dhcpRfPublicIp"), ("WHISP-BOX-MIBV2-MIB", "whispBoxEsn"))
if mibBuilder.loadTexts: smNatRFPubDHCPClientEvent.setStatus('current')
if mibBuilder.loadTexts: smNatRFPubDHCPClientEvent.setDescription('NAT RF Public DHCP Client has received a new address via DHCP.')
clearLinkStats = MibScalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 8, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: clearLinkStats.setStatus('current')
if mibBuilder.loadTexts: clearLinkStats.setDescription('Setting this to a nonzero value will clear the link stats.')
whispMappingTable = MibTable((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5), )
if mibBuilder.loadTexts: whispMappingTable.setStatus('current')
if mibBuilder.loadTexts: whispMappingTable.setDescription('NAT port mapping information table.')
whispMappingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1), ).setIndexNames((0, "WHISP-SM-MIB", "tableIndex"))
if mibBuilder.loadTexts: whispMappingEntry.setStatus('current')
if mibBuilder.loadTexts: whispMappingEntry.setDescription('Mapping table entry.')
tableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: tableIndex.setStatus('current')
if mibBuilder.loadTexts: tableIndex.setDescription('User information table index.')
protocol = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: protocol.setStatus('current')
if mibBuilder.loadTexts: protocol.setDescription('Protocol type: 0:both UDP and TCP, 1:UDP, 2:TCP.')
port = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: port.setStatus('current')
if mibBuilder.loadTexts: port.setDescription('Application port number. e.g. 23=telnet, 21=ftp etc. Should be a positive integer.')
localIp = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: localIp.setStatus('current')
if mibBuilder.loadTexts: localIp.setDescription('IP of local host to which the incoming packet mapped to an application should be forwarded.')
whispSmTranslationTable = MibTable((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6), )
if mibBuilder.loadTexts: whispSmTranslationTable.setStatus('current')
if mibBuilder.loadTexts: whispSmTranslationTable.setDescription('Translation Table.')
whispSmTranslationTableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1), ).setIndexNames((0, "WHISP-SM-MIB", "whispTranslationTableIndex"))
if mibBuilder.loadTexts: whispSmTranslationTableEntry.setStatus('current')
if mibBuilder.loadTexts: whispSmTranslationTableEntry.setDescription('Translation Table Entry.')
whispTranslationTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 127))).setMaxAccess("readonly")
if mibBuilder.loadTexts: whispTranslationTableIndex.setStatus('current')
if mibBuilder.loadTexts: whispTranslationTableIndex.setDescription('Index into translation table.')
whispTranslationTableMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 2), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: whispTranslationTableMacAddr.setStatus('current')
if mibBuilder.loadTexts: whispTranslationTableMacAddr.setDescription('MAC Address of the registered enity.')
whispTranslationTableIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: whispTranslationTableIpAddr.setStatus('current')
if mibBuilder.loadTexts: whispTranslationTableIpAddr.setDescription('Ip Address of the registered entity.')
whispTranslationTableAge = MibTableColumn((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: whispTranslationTableAge.setStatus('current')
if mibBuilder.loadTexts: whispTranslationTableAge.setDescription('Age of the registered entity.')
mibBuilder.exportSymbols("WHISP-SM-MIB", packetFilterDirection=packetFilterDirection, dhcpServerPktRcv=dhcpServerPktRcv, rssi=rssi, bridgecbDownlinkMaxBurstBitRate=bridgecbDownlinkMaxBurstBitRate, pppoeMTUOverrideValue=pppoeMTUOverrideValue, maxRSSI=maxRSSI, ethAccessEnable=ethAccessEnable, naptPrivateIP=naptPrivateIP, port1TCPFilter=port1TCPFilter, linkQualityData3XHorizontal=linkQualityData3XHorizontal, colorCode5=colorCode5, dhcpServerEntry=dhcpServerEntry, pppoeIPCPAddress=pppoeIPCPAddress, syslogSMXmitSetting=syslogSMXmitSetting, minJitter=minJitter, phase1=phase1, pppoeTimeoutPeriod=pppoeTimeoutPeriod, lanMaskSm=lanMaskSm, dhcpServerPktToss=dhcpServerPktToss, bitErrors16QAMpathA=bitErrors16QAMpathA, ip4MultFilter=ip4MultFilter, upLnkLimit=upLnkLimit, upLinkBCastFilter=upLinkBCastFilter, snmpFilter=snmpFilter, allowedIPAccessNMLength1=allowedIPAccessNMLength1, jitter=jitter, airDelay=airDelay, colorCodepriority4=colorCodepriority4, arpFilter=arpFilter, fragmentsReceived3XHorizontal=fragmentsReceived3XHorizontal, currentColorCodePri=currentColorCodePri, whispMappingTableGroup=whispMappingTableGroup, smLEDModeFlag=smLEDModeFlag, clearLinkStats=clearLinkStats, multicastVCRcvRate=multicastVCRcvRate, receiveFragmentsModulationPercentage=receiveFragmentsModulationPercentage, signalToNoiseRatioSMVertical=signalToNoiseRatioSMVertical, allIpv4Filter=allIpv4Filter, dhcpSip=dhcpSip, ipAccessFilterEnable=ipAccessFilterEnable, whispTranslationTableIndex=whispTranslationTableIndex, nbBitsRcvd=nbBitsRcvd, linkQualityData1XVertical=linkQualityData1XVertical, radioDbmHorizontal=radioDbmHorizontal, hiPriorityChannel=hiPriorityChannel, pppoeControlBytesSent=pppoeControlBytesSent, fragmentsReceived2XHorizontal=fragmentsReceived2XHorizontal, bridgecbDownlinkCreditLimit=bridgecbDownlinkCreditLimit, wanPingReplyEnable=wanPingReplyEnable, colorCode10=colorCode10, hostIp=hostIp, rfDhcpState=rfDhcpState, radioTxPwr=radioTxPwr, totalBERDisplay=totalBERDisplay, zoltarSWFreqOffset=zoltarSWFreqOffset, prefferedDNSIP=prefferedDNSIP, bitErrors16QAMpathB=bitErrors16QAMpathB, colorCodepriority7=colorCodepriority7, whispRadarDetected=whispRadarDetected, port2TCPFilter=port2TCPFilter, dhcpDomName=dhcpDomName, udpGarbageCollectTmout=udpGarbageCollectTmout, whispMappingEntry=whispMappingEntry, spectrumAnalysisDisplay=spectrumAnalysisDisplay, rfScanListBandFilter=rfScanListBandFilter, whispMappingTable=whispMappingTable, pppoeTCPMSSClampEnableStatus=pppoeTCPMSSClampEnableStatus, action=action, whispSmTranslationTable=whispSmTranslationTable, spectrumAnalysisOnBoot=spectrumAnalysisOnBoot, powerUpMode=powerUpMode, linkQualityData1XHorizontal=linkQualityData1XHorizontal, colorCodepriority8=colorCodepriority8, enable8023link=enable8023link, colorCode3=colorCode3, lowPriorityDownlinkCIR=lowPriorityDownlinkCIR, pppoeDataBytesSent=pppoeDataBytesSent, protocol=protocol, PYSNMP_MODULE_ID=whispSmMibModule, mimo256QamBerDisplay=mimo256QamBerDisplay, ethAccessFilterEnable=ethAccessFilterEnable, activeRegion=activeRegion, radioDbmAvg=radioDbmAvg, secondaryBERDisplay=secondaryBERDisplay, natConnectionType=natConnectionType, pppoeMTUOverrideEnable=pppoeMTUOverrideEnable, dwnLnkLimit=dwnLnkLimit, bitErrorsQSPKpathA=bitErrorsQSPKpathA, naptPublicSubnetMask=naptPublicSubnetMask, whispSmSecurity=whispSmSecurity, colorCodepriority3=colorCodepriority3, port=port, colorCodepriority6=colorCodepriority6, rfStatTxSuppressionCount=rfStatTxSuppressionCount, primaryBER=primaryBER, certTable=certTable, whispSmDfsEvent=whispSmDfsEvent, userDefinedPort1=userDefinedPort1, pppoeDisconnectOD=pppoeDisconnectOD, pppoeTimerType=pppoeTimerType, bridgecbUplinkCreditLimit=bridgecbUplinkCreditLimit, userP2Filter=userP2Filter, pppoeEnabledStatus=pppoeEnabledStatus, bCastMIR=bCastMIR, pppoeTimerTypeValue=pppoeTimerTypeValue, port3UDPFilter=port3UDPFilter, allowedIPAccessNMLength3=allowedIPAccessNMLength3, naptPublicGatewayIP=naptPublicGatewayIP, naptEnable=naptEnable, dhcpIPStart=dhcpIPStart, allowedIPAccess2=allowedIPAccess2, adaptRateHighPri=adaptRateHighPri, userDefinedPort3=userDefinedPort3, pppoeACNameStatus=pppoeACNameStatus, calibrationStatus=calibrationStatus, radioDbm=radioDbm, pppoeDNSServer2=pppoeDNSServer2, rfScanList=rfScanList, allOthersFilter=allOthersFilter, dhcpServerLeaseTime=dhcpServerLeaseTime, pppoeSessUptime=pppoeSessUptime, fragmentsReceived1XVertical=fragmentsReceived1XVertical, bridgecbUplinkMaxBurstBitRate=bridgecbUplinkMaxBurstBitRate, colorCodepriority2=colorCodepriority2, authKeyOption=authKeyOption, timedSpectrumAnalysisDuration=timedSpectrumAnalysisDuration, pppoeDNSServer1=pppoeDNSServer1, whispSmConfig=whispSmConfig, currentColorCode=currentColorCode, bitErrors64QAMpathA=bitErrors64QAMpathA, sessionStatus=sessionStatus, whispSmStatus=whispSmStatus, whispSmMibModule=whispSmMibModule, authUsername=authUsername, colorCode7=colorCode7, linkQualityData4XVertical=linkQualityData4XVertical, dhcpcdns1=dhcpcdns1, currentChanFreq=currentChanFreq, cert=cert, enterSpectrumAnalysis=enterSpectrumAnalysis, phase2=phase2, nbPriBitsErr=nbPriBitsErr, bootpcFilter=bootpcFilter, linkQualityData2XVertical=linkQualityData2XVertical, fragmentsReceived4XVertical=fragmentsReceived4XVertical, smRateAdapt=smRateAdapt, userP1Filter=userP1Filter, allowedIPAccess1=allowedIPAccess1, rawBERPwrRxPathB=rawBERPwrRxPathB, pppoeAuthenticationType=pppoeAuthenticationType, airDelayns=airDelayns, allOtherIpFilter=allOtherIpFilter, bitErrors256QAMpathA=bitErrors256QAMpathA, pppoeControlBytesReceived=pppoeControlBytesReceived, linkQualityData2XHorizontal=linkQualityData2XHorizontal, nbSndBitsErr=nbSndBitsErr, pppoeMTUOverrideEn=pppoeMTUOverrideEn, pmp430ApRegistrationOptions=pmp430ApRegistrationOptions, alternateDNSIP=alternateDNSIP, port2UDPFilter=port2UDPFilter, upLnkDataRate=upLnkDataRate, smAntennaType=smAntennaType, timingPulseGated=timingPulseGated, userDefinedPort2=userDefinedPort2, colorCode4=colorCode4, naptRFPublicSubnetMask=naptRFPublicSubnetMask, smbFilter=smbFilter, colorCode6=colorCode6, clearBerrResults=clearBerrResults, pppoeEnable=pppoeEnable, natDNSProxyEnable=natDNSProxyEnable, berrautoupdateflag=berrautoupdateflag, useRealm=useRealm, hostLease=hostLease, linkQualityData4XHorizontal=linkQualityData4XHorizontal, bitErrorsQSPKpathB=bitErrorsQSPKpathB, bitsReceivedPerPathModulation=bitsReceivedPerPathModulation, dhcpcdns2=dhcpcdns2, bandwidthScan=bandwidthScan, allowedIPAccess3=allowedIPAccess3, port1UDPFilter=port1UDPFilter, pppoeTCPMSSClampEnable=pppoeTCPMSSClampEnable, berPwrRxFPGAPathA=berPwrRxFPGAPathA, whispSmEvent=whispSmEvent, arpCacheTimeout=arpCacheTimeout, switchRadioModeAndReboot=switchRadioModeAndReboot, whispSmDHCPClientEvent=whispSmDHCPClientEvent, networkAccess=networkAccess, userP3Filter=userP3Filter, dmzEnable=dmzEnable, pppoeTimeoutValue=pppoeTimeoutValue, pppoeMTUValue=pppoeMTUValue, dfsConfig=dfsConfig, smNatWanDHCPClientEvent=smNatWanDHCPClientEvent, radioTxGainSm=radioTxGainSm, snmpBerLevel=snmpBerLevel, fragmentsReceived2XVertical=fragmentsReceived2XVertical, linkQualityBeacon=linkQualityBeacon, dhcpCSMask=dhcpCSMask, spectrumAnalysisScanBandwidth=spectrumAnalysisScanBandwidth, radioModeStatus=radioModeStatus, defaultGwSm=defaultGwSm, berDeModSelect=berDeModSelect, availableSpectrumAnalysis=availableSpectrumAnalysis, whispSmNotifGroup=whispSmNotifGroup, pppoeServiceName=pppoeServiceName, maxRadioDbmDeprecated=maxRadioDbmDeprecated, apSelection=apSelection, radioDbmVertical=radioDbmVertical, totalBER=totalBER, dhcpServerTable=dhcpServerTable, dhcpClientLease=dhcpClientLease, whispSmControls=whispSmControls, bhsReReg=bhsReReg, colorCode2=colorCode2, whispSmConfigGroup=whispSmConfigGroup, dhcpDfltRterIP=dhcpDfltRterIP, pppoeSessIdleTime=pppoeSessIdleTime, radioSlicingSm=radioSlicingSm, syslogSMXmitControl=syslogSMXmitControl, secondaryBER=secondaryBER, maxRadioDbm=maxRadioDbm, smSessionTimer=smSessionTimer, cyclicPrefixScan=cyclicPrefixScan, adaptRate=adaptRate, whispRadarEnd=whispRadarEnd, pppoeSvcNameStatus=pppoeSvcNameStatus, pppoeSessionStatus=pppoeSessionStatus, dnsAutomatic=dnsAutomatic, allowedIPAccessNMLength2=allowedIPAccessNMLength2, lowPriorityUplinkCIR=lowPriorityUplinkCIR, hostMacAddress=hostMacAddress, currentBandwidth=currentBandwidth, numAuthCerts=numAuthCerts, berPwrRxFPGAPathB=berPwrRxFPGAPathB, hiPriorityUplinkCIR=hiPriorityUplinkCIR, colorCodepriority5=colorCodepriority5, dmzIP=dmzIP, pppoeConnectOD=pppoeConnectOD, lanIpSm=lanIpSm, rawBERPwrRxPathA=rawBERPwrRxPathA, colorCode9=colorCode9, naptPrivateSubnetMask=naptPrivateSubnetMask, certEntry=certEntry, naptPublicIP=naptPublicIP, realm=realm, dhcpcdns3=dhcpcdns3, localIp=localIp, fragmentsReceived3XVertical=fragmentsReceived3XVertical, signalStrengthRatio=signalStrengthRatio, eapPeerAAAServerCommonName=eapPeerAAAServerCommonName, pppoeDataBytesReceived=pppoeDataBytesReceived, whispSmStatusGroup=whispSmStatusGroup, mimo64QamBerDisplay=mimo64QamBerDisplay)
mibBuilder.exportSymbols("WHISP-SM-MIB", upLnkMaxBurstDataRate=upLnkMaxBurstDataRate, minRSSI=minRSSI, radioBandscanConfig=radioBandscanConfig, spectrumAnalysisAction=spectrumAnalysisAction, fragmentsReceived1XHorizontal=fragmentsReceived1XHorizontal, pppoeUserName=pppoeUserName, pppoePassword=pppoePassword, currentCyclicPrefix=currentCyclicPrefix, dhcpClientEnable=dhcpClientEnable, mimo16QamBerDisplay=mimo16QamBerDisplay, maxJitter=maxJitter, dwnLnkMaxBurstDataRate=dwnLnkMaxBurstDataRate, testSMBER=testSMBER, tcpGarbageCollectTmout=tcpGarbageCollectTmout, syslogServerApPreferred=syslogServerApPreferred, colorCodepriority10=colorCodepriority10, whispTranslationTableMacAddr=whispTranslationTableMacAddr, authOuterId=authOuterId, hiPriorityDownlinkCIR=hiPriorityDownlinkCIR, minRadioDbm=minRadioDbm, naptRFPublicIP=naptRFPublicIP, adaptRateLowPri=adaptRateLowPri, dwnLnkDataRate=dwnLnkDataRate, bridgecbUplinkCreditRate=bridgecbUplinkCreditRate, zoltarFPGAFreqOffset=zoltarFPGAFreqOffset, dhcpCip=dhcpCip, pppoeFilter=pppoeFilter, smNatRFPubDHCPClientEvent=smNatRFPubDHCPClientEvent, mimoQpskBerDisplay=mimoQpskBerDisplay, bootpsFilter=bootpsFilter, colorCodepriority9=colorCodepriority9, bitErrors256QAMpathB=bitErrors256QAMpathB, dhcpNumIPsToLease=dhcpNumIPsToLease, pppoeAccessConcentrator=pppoeAccessConcentrator, dfsStatus=dfsStatus, certificateDN=certificateDN, whispSmTranslationTableEntry=whispSmTranslationTableEntry, naptRemoteManage=naptRemoteManage, authenticationEnforce=authenticationEnforce, mimoBerRcvModulationType=mimoBerRcvModulationType, whispTranslationTableAge=whispTranslationTableAge, fragmentsReceived4XHorizontal=fragmentsReceived4XHorizontal, bridgecbDownlinkCreditRate=bridgecbDownlinkCreditRate, dhcpServerPktXmt=dhcpServerPktXmt, colorCode8=colorCode8, radioDbmInt=radioDbmInt, tableIndex=tableIndex, ingressVID=ingressVID, syslogMinLevelApPreferred=syslogMinLevelApPreferred, primaryBERDisplay=primaryBERDisplay, whispTranslationTableIpAddr=whispTranslationTableIpAddr, linkQualityData3XVertical=linkQualityData3XVertical, certIndex=certIndex, authKeySm=authKeySm, dhcpServerEnable=dhcpServerEnable, bitErrors64QAMpathB=bitErrors64QAMpathB, whispSmSpAnEvent=whispSmSpAnEvent, port3TCPFilter=port3TCPFilter, signalToNoiseRatioSMHorizontal=signalToNoiseRatioSMHorizontal, naptRFPublicGateway=naptRFPublicGateway, pppoeSessionID=pppoeSessionID, forcepoweradjust=forcepoweradjust, registeredToAp=registeredToAp, whispSmGroups=whispSmGroups, authPassword=authPassword)
| (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, value_range_constraint, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint')
(notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance')
(bits, time_ticks, gauge32, ip_address, object_identity, mib_identifier, unsigned32, module_identity, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, notification_type, integer32, counter64, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'TimeTicks', 'Gauge32', 'IpAddress', 'ObjectIdentity', 'MibIdentifier', 'Unsigned32', 'ModuleIdentity', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'NotificationType', 'Integer32', 'Counter64', 'Counter32')
(textual_convention, mac_address, phys_address, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'MacAddress', 'PhysAddress', 'DisplayString')
(dhcp_rf_public_ip, whisp_box_esn) = mibBuilder.importSymbols('WHISP-BOX-MIBV2-MIB', 'dhcpRfPublicIp', 'whispBoxEsn')
(whisp_sm, whisp_box, whisp_modules, whisp_aps) = mibBuilder.importSymbols('WHISP-GLOBAL-REG-MIB', 'whispSm', 'whispBox', 'whispModules', 'whispAps')
(whisp_mac_address, whisp_luid) = mibBuilder.importSymbols('WHISP-TCV2-MIB', 'WhispMACAddress', 'WhispLUID')
whisp_sm_mib_module = module_identity((1, 3, 6, 1, 4, 1, 161, 19, 1, 1, 13))
if mibBuilder.loadTexts:
whispSmMibModule.setLastUpdated('200304150000Z')
if mibBuilder.loadTexts:
whispSmMibModule.setOrganization('Cambium Networks')
if mibBuilder.loadTexts:
whispSmMibModule.setContactInfo('Canopy Technical Support email: technical-support@canopywireless.com')
if mibBuilder.loadTexts:
whispSmMibModule.setDescription('This module contains MIB definitions for Subscriber Modem.')
whisp_sm_config = mib_identifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1))
whisp_sm_security = mib_identifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7))
whisp_sm_status = mib_identifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2))
whisp_sm_groups = mib_identifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3))
whisp_sm_event = mib_identifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4))
whisp_sm_dfs_event = mib_identifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 1))
whisp_sm_sp_an_event = mib_identifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 2))
whisp_sm_dhcp_client_event = mib_identifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 3))
whisp_sm_controls = mib_identifier((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 8))
rf_scan_list = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rfScanList.setStatus('current')
if mibBuilder.loadTexts:
rfScanList.setDescription('RF scan list. The frequencies are: 2.4 radios:24150,24175,24200,24225,24250,24275,24300,24325,24350,24375, 24400,24425,24450,24475,24500,24525,24550,24575. 3.5 radios:340000-360000 added and removed dynamically. 4.9 radios:494500-498500 added and removed dynamically. 5.1 radios:5175,5180,5185,5190,5195,5200,5205,5210,5215,5220,5225,5230,5240, 5245,5250,5255,5260,5265,5270,5275,5280,5285,5290,5295,5300,5305, 5310,5315,5320,5325. 5.2 radios:5275,5280,5285,5290,5295,5300,5305,5310,5315,5320,5325. 5.4 FSK radios:5495,5500,5505,5510,5515,5520,5525, 5530,5535,5540,5545,5550,5555,5560,5565,5570,5575,5580,5585,5590,5595, 5600,5605,5610,5615,5620,5625,5630,5635,5640,5645,5650,5655,5660,5665, 5670,5675,5680,5685,5690,5695,5700,5705. 5.4 OFDM radios 5 mhz channels: 547250,547500,547750,548000,548500,548750,549000,549250,549500,549750,550000,550250,550500,550750,551000,551250,551500,551750,552000,552250,552500,552750, 553000,553250,553500,553750,554000,554250,554500,554750,555000,555250,555500,555750,556000,556250,556500,556750,557000,557250,557500,557750,558000,558250,558500,558750,559000,559250,559500,559750, 560000,560250,560500,560750,561000,561250,561500,561750,562000,562250,562500,562750,563000,563250,563500,563750,564000,564250,564500,564750,565000,565250,565500,565750,566000,566250,566500,566750, 567000,567250,567500,567750,568000,568250,568500,568750,569000,569250,569500,569750,570000,570250,570500,570750,571000,571250,571500,571750. 5.4 OFDM radios 10 mhz channels: 547500,548500,549000,549500,550000,550500,551000,551500,552000,552500, 553000,553500,554000,554500,555000,555500,556000,556500,557000,557500,558000,558500,559000,559500, 560000,560500,561000,561500,562000,562500,563000,563500,564000,564500,565000,565500,566000,566500, 567000,567500,568000,568500,569000,569500,570000,570500,571000,571500. 5.4 OFDM radios 20 mhz channels: 547500,548500,549000,549500,550000,550500,551000,551500,552000,552500, 553000,553500,554000,554500,555000,555500,556000,556500,557000,557500,558000,558500,559000,559500, 560000,560500,561000,561500,562000,562500,563000,563500,564000,564500,565000,565500,566000,566500, 567000,567500,568000,568500,569000,569500,570000,570500,571000,571500. 5.7 FSK radios with ISM enabled :5735,5740,5745,5750,5755,5760,5765,5770,5775, 5780,5785,5790,5795,5800,5805,5810,5815,5820,5825,5830,5835,5840. 5.7 OFDM radios 5 mhz channels :572750,573000,573250,573500,573750,574000,574250,574500,574750,575000,575250,575500,575750,576000,576250,576500,576750,577000,577250,577500,577750, 578000,578250,578500,578750,579000,579250,579500,579750,580000,580250,580500,580750,581000,581250,581500,581750,582000,582250,582500,582750,583000,583250,583500,583750,584000, 584250,584500,584750,585000,585250,585500,585750,586000,586250,586500,586750,587000,587250. 5.7 OFDM radios 10 mhz channels:573000,573500,574000,574500,575000,575500,576000,576500,577000,577500, 578000,578500,579000,579500,580000,580500,581000,581500,582000,582500,583000,583500,584000,584500,585000,585500,586000,586500,587000. 5.7 OFDM radios 20 mhz channels :573500,574000,574500,575000,575500,576000,576500,577000,577500, 578000,578500,579000,579500,580000,580500,581000,581500,582000,582500,583000,583500,584000,584500,585000,585500,586000,586500. 5.8 radios:5860,5865,5870,5875,5880,5885,5890,5895,5900,5905,5910. 5805,5810,5815,5820,5825,5830,5835,5840,5845,5850,5855,5860,5865,5870,5875,5880, 5885,5890,5895,5900,5905,5910,5915,5920,5925,5930,5935,5940,5945,5950. 5.9 radios:5735,5740,5745,5750,5755,5760,5765,5770,5775,5780,5785,5790,5795,5800, 5805,5810,5815,5820,5825,5830,5835,5840,5845,5850,5855,5860,5865,5870,5875,5880, 5885,5890,5895,5900,5905,5910,5915,5920,5925,5930,5935,5940,5945,5950. 6.050 radios:5850,5855,5860,5865,5870,5875,5880,5885,5890,5895,5900,5905,5910,5915,5920, 5925,5930,5935,5940,5945,5950,5955,5960,5965,5970,5975,5980,5985,5990,5995,6000, 6005,6010,6015,6020,6025,6030,6035,6040,6045,6050. 900 radios:9060,9070,9080,9090,9100,9110,9120,9130,9140,9150,9160,9170,9180,9190,9200,9220,9230,9240. 0: none. all: All frequencies in the band(s) supported by the radio will be selected. all54: All frequencies in the 5.4 band will be selected (only available on dual band radios). all57: All frequencies in the 5.7 band will be selected (only available on dual band radios). When doing a set, separate values with comma with no white space between values.')
power_up_mode = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('operational', 0), ('aim', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
powerUpMode.setStatus('current')
if mibBuilder.loadTexts:
powerUpMode.setDescription('SM Power Up Mode With No 802.3 Link. 1 -- Power up in Aim mode 2 -- Power up in Operational mode.')
lan_ip_sm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
lanIpSm.setStatus('current')
if mibBuilder.loadTexts:
lanIpSm.setDescription('LAN IP.')
lan_mask_sm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 4), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
lanMaskSm.setStatus('current')
if mibBuilder.loadTexts:
lanMaskSm.setDescription('LAN subnet mask.')
default_gw_sm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
defaultGwSm.setStatus('current')
if mibBuilder.loadTexts:
defaultGwSm.setDescription('Default gateway.')
network_access = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('localIP', 0), ('publicIP', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
networkAccess.setStatus('current')
if mibBuilder.loadTexts:
networkAccess.setDescription('Network accessibility. Public or local IP. For multipoint only.')
auth_key_sm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
authKeySm.setStatus('current')
if mibBuilder.loadTexts:
authKeySm.setDescription('Authentication key. It should be equal or less than 32 characters long.')
enable8023link = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
enable8023link.setStatus('current')
if mibBuilder.loadTexts:
enable8023link.setDescription('To enable or disable 802.3 link. For SMs only.')
auth_key_option = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('useDefault', 0), ('useKeySet', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
authKeyOption.setStatus('current')
if mibBuilder.loadTexts:
authKeyOption.setDescription('This option is for SMs only. Backhaul timing slave always uses the set key. 0 - Use default key. 1 - Use set key.')
timing_pulse_gated = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
timingPulseGated.setStatus('current')
if mibBuilder.loadTexts:
timingPulseGated.setDescription('0 - Disable (Always propagate the frame timing pulse). 1 - Enable (If SM out of sync then dont propagate the frame timing pulse).')
napt_private_ip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 11), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptPrivateIP.setStatus('current')
if mibBuilder.loadTexts:
naptPrivateIP.setDescription('NAPT private IP address. Only the first three bytes can be changed when NAPT is enabled.')
napt_private_subnet_mask = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 12), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptPrivateSubnetMask.setStatus('current')
if mibBuilder.loadTexts:
naptPrivateSubnetMask.setDescription('NAPT private subnet mask. Only the last byte can be changed when NAPT is enabled. The address will always be: 255.255.255.x.')
napt_public_ip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 13), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptPublicIP.setStatus('current')
if mibBuilder.loadTexts:
naptPublicIP.setDescription('IP Address of NAPT Public Interface. The variable is available only when NAPT is enabled.')
napt_public_subnet_mask = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 14), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptPublicSubnetMask.setStatus('current')
if mibBuilder.loadTexts:
naptPublicSubnetMask.setDescription('Subnet mask for NAPT Public Interface. The variable is available only when NAPT is enabled.')
napt_public_gateway_ip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 15), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptPublicGatewayIP.setStatus('current')
if mibBuilder.loadTexts:
naptPublicGatewayIP.setDescription('IP Address of NAPT Public Interface Gateway. The variable is available only when NAPT is enabled.')
napt_rf_public_ip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 16), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptRFPublicIP.setStatus('current')
if mibBuilder.loadTexts:
naptRFPublicIP.setDescription('IP Address of RF Public Interface. The variable is available only when NAPT is enabled.')
napt_rf_public_subnet_mask = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 17), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptRFPublicSubnetMask.setStatus('current')
if mibBuilder.loadTexts:
naptRFPublicSubnetMask.setDescription('Subnet mask of RF Public Interface. The variable is available only when NAPT is enabled.')
napt_rf_public_gateway = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 18), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptRFPublicGateway.setStatus('current')
if mibBuilder.loadTexts:
naptRFPublicGateway.setDescription('IP Address of RF Public Interface Gateway. The variable is available only when NAPT is enabled.')
napt_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptEnable.setStatus('current')
if mibBuilder.loadTexts:
naptEnable.setDescription('To enable or disable NAPT. For multipoint only. 1=Enable NAPT, 0=Disable NAPT.')
arp_cache_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 20), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
arpCacheTimeout.setStatus('current')
if mibBuilder.loadTexts:
arpCacheTimeout.setDescription('ARP cache time out in unit of minutes. For multipoint only. Range from 1-30.')
tcp_garbage_collect_tmout = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 21), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
tcpGarbageCollectTmout.setStatus('current')
if mibBuilder.loadTexts:
tcpGarbageCollectTmout.setDescription('Units of minutes for TCP garbage collection. For multipoint only. Range 4-1440.')
udp_garbage_collect_tmout = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 22), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
udpGarbageCollectTmout.setStatus('current')
if mibBuilder.loadTexts:
udpGarbageCollectTmout.setDescription('Units of minutes for UDP garbage collection. For multipoint only. Range 1-1440.')
dhcp_client_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dhcpClientEnable.setStatus('obsolete')
if mibBuilder.loadTexts:
dhcpClientEnable.setDescription("To enable or disable DHCP client. For multipoint SM's with NAPT enabled.")
dhcp_server_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 24), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dhcpServerEnable.setStatus('current')
if mibBuilder.loadTexts:
dhcpServerEnable.setDescription("To enable or disable DHCP server. For multipoint SM's with NAPT enabled.")
dhcp_server_lease_time = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 25), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dhcpServerLeaseTime.setStatus('current')
if mibBuilder.loadTexts:
dhcpServerLeaseTime.setDescription("Units of days for DHCP server lease time. For multipoint SM's with NAPT enabled. Range from 1-30.")
dhcp_ip_start = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 26), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dhcpIPStart.setStatus('current')
if mibBuilder.loadTexts:
dhcpIPStart.setDescription('The last byte will be set for the starting IP that our DHCP server gives away. The first 3 bytes of the starting IP are the same as those of NAPT private IP')
dns_automatic = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('manually', 0), ('automatically', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dnsAutomatic.setStatus('current')
if mibBuilder.loadTexts:
dnsAutomatic.setDescription('To have DHCP Server obtain DNS information automatically or manually.')
preffered_dnsip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 28), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
prefferedDNSIP.setStatus('current')
if mibBuilder.loadTexts:
prefferedDNSIP.setDescription('The preferred DNS IP when we are configured for static DNS (Not used when configured for automatic DNS).')
alternate_dnsip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 29), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
alternateDNSIP.setStatus('current')
if mibBuilder.loadTexts:
alternateDNSIP.setDescription('The alternate DNS IP when we are configured for static DNS (Not used when configured for automatic DNS).')
dmz_ip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 30), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dmzIP.setStatus('current')
if mibBuilder.loadTexts:
dmzIP.setDescription('Only the last byte of DMZ Host IP will be set. The first 3 bytes of DMZ IP are the same as those of NAPT private IP.')
dmz_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 31), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dmzEnable.setStatus('current')
if mibBuilder.loadTexts:
dmzEnable.setDescription('To enable or disable DMZ host functionality.')
dhcp_num_i_ps_to_lease = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 32), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dhcpNumIPsToLease.setStatus('current')
if mibBuilder.loadTexts:
dhcpNumIPsToLease.setDescription('Number of IP addresses that our DHCP server can give away.')
pppoe_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 33), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
pppoeFilter.setDescription('To set PPPoE packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
smb_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 34), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
smbFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
smbFilter.setDescription('To set SMB packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
snmp_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 35), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
snmpFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
snmpFilter.setDescription('To set SNMP packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
user_p1_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 36), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
userP1Filter.setStatus('obsolete')
if mibBuilder.loadTexts:
userP1Filter.setDescription('To set user defined port 1 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
user_p2_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 37), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
userP2Filter.setStatus('obsolete')
if mibBuilder.loadTexts:
userP2Filter.setDescription('To set user defined port 2 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
user_p3_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 38), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
userP3Filter.setStatus('obsolete')
if mibBuilder.loadTexts:
userP3Filter.setDescription('To set user defined port 3 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
all_other_ip_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 39), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
allOtherIpFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
allOtherIpFilter.setDescription('To set all other IPv4 packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
up_link_b_cast_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 40), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
upLinkBCastFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
upLinkBCastFilter.setDescription('This variable is currently obsolete.')
arp_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
arpFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
arpFilter.setDescription('To set ARP packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
all_others_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
allOthersFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
allOthersFilter.setDescription('To set all other packet filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
user_defined_port1 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 43), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
userDefinedPort1.setStatus('obsolete')
if mibBuilder.loadTexts:
userDefinedPort1.setDescription('An integer value of number one user defined port. Range:0-65535 Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port1_tcp_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 44), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
port1TCPFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
port1TCPFilter.setDescription('To set user defined port 1 TCP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port1_udp_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 45), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
port1UDPFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
port1UDPFilter.setDescription('To set user defined port 1 UDP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
user_defined_port2 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 46), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
userDefinedPort2.setStatus('obsolete')
if mibBuilder.loadTexts:
userDefinedPort2.setDescription('An integer value of number two user defined port. Range:0-65535 Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port2_tcp_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 47), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
port2TCPFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
port2TCPFilter.setDescription('To set user defined port 2 TCP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port2_udp_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 48), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
port2UDPFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
port2UDPFilter.setDescription('To set user defined port 2 UDP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
user_defined_port3 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 49), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
userDefinedPort3.setStatus('obsolete')
if mibBuilder.loadTexts:
userDefinedPort3.setDescription('An integer value of number three user defined port. Range:0-65535 Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port3_tcp_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 50), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
port3TCPFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
port3TCPFilter.setDescription('To set user defined port 3 TCP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
port3_udp_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 51), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
port3UDPFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
port3UDPFilter.setDescription('To set user defined port 3 UDP traffic filter. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
bootpc_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 52), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bootpcFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
bootpcFilter.setDescription('To set bootp client sourced packets filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
bootps_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 53), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bootpsFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
bootpsFilter.setDescription('To set bootp server sourced packets filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
ip4_mult_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 54), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ip4MultFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
ip4MultFilter.setDescription('To set IPv4 MultiCast packets filter when NAT is disabled. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
ingress_vid = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 55), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ingressVID.setStatus('current')
if mibBuilder.loadTexts:
ingressVID.setDescription('Untagged ingress VID.')
low_priority_uplink_cir = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 56), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
lowPriorityUplinkCIR.setStatus('current')
if mibBuilder.loadTexts:
lowPriorityUplinkCIR.setDescription('Low priority uplink CIR.')
low_priority_downlink_cir = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 57), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
lowPriorityDownlinkCIR.setStatus('current')
if mibBuilder.loadTexts:
lowPriorityDownlinkCIR.setDescription('Low priority downlink CIR.')
hi_priority_channel = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 58), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hiPriorityChannel.setStatus('current')
if mibBuilder.loadTexts:
hiPriorityChannel.setDescription('To enable or disable high priority channel.')
hi_priority_uplink_cir = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 59), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hiPriorityUplinkCIR.setStatus('current')
if mibBuilder.loadTexts:
hiPriorityUplinkCIR.setDescription('High priority uplink CIR.')
hi_priority_downlink_cir = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 60), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hiPriorityDownlinkCIR.setStatus('current')
if mibBuilder.loadTexts:
hiPriorityDownlinkCIR.setDescription('High priority downlink CIR.')
sm_rate_adapt = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 61), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('onex', 0), ('onextwox', 1), ('onextwoxthreex', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
smRateAdapt.setStatus('obsolete')
if mibBuilder.loadTexts:
smRateAdapt.setDescription('Rate adaptation parameter. 0: no rate adaptation. 1: 1x and 2x adaptation. 2: 1x,2x and 3x adaptation.')
up_lnk_data_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 62), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
upLnkDataRate.setStatus('current')
if mibBuilder.loadTexts:
upLnkDataRate.setDescription('Sustained uplink bandwidth cap.')
up_lnk_limit = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 63), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
upLnkLimit.setStatus('current')
if mibBuilder.loadTexts:
upLnkLimit.setDescription('Burst uplink bandwidth cap.')
dwn_lnk_data_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 64), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dwnLnkDataRate.setStatus('current')
if mibBuilder.loadTexts:
dwnLnkDataRate.setDescription('Sustained downlink bandwidth cap.')
dwn_lnk_limit = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 65), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dwnLnkLimit.setStatus('current')
if mibBuilder.loadTexts:
dwnLnkLimit.setDescription('Burst downlink bandwidth cap.')
dfs_config = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 66), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dfsConfig.setStatus('obsolete')
if mibBuilder.loadTexts:
dfsConfig.setDescription('To configure proper regions for Dynamic Frequency Shifting. For 5.2/5.4/5.7 GHz radios.')
eth_access_filter_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 67), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ethAccessFilterEnable.setStatus('obsolete')
if mibBuilder.loadTexts:
ethAccessFilterEnable.setDescription('To enable or disable Ethernet Port access filtering to SM Management Functions. (0) - Ethernet access to SM Management allowed. (1) - Ethernet access to SM Management blocked.')
ip_access_filter_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 68), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ipAccessFilterEnable.setStatus('current')
if mibBuilder.loadTexts:
ipAccessFilterEnable.setDescription('To enable or disable IP access filtering to Management functions. (0) - IP access will be allowed from all addresses. (1) - IP access will be controlled using allowedIPAccess1-3 entries.')
allowed_ip_access1 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 69), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
allowedIPAccess1.setStatus('current')
if mibBuilder.loadTexts:
allowedIPAccess1.setDescription('Allow access to SM Management from this IP. 0 is default setting to allow from all IPs.')
allowed_ip_access2 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 70), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
allowedIPAccess2.setStatus('current')
if mibBuilder.loadTexts:
allowedIPAccess2.setDescription('Allow access to SM Management from this IP. 0 is default setting to allow from all IPs.')
allowed_ip_access3 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 71), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
allowedIPAccess3.setStatus('current')
if mibBuilder.loadTexts:
allowedIPAccess3.setDescription('Allow access to SM Management from this IP. 0 is default setting to allow from all IPs.')
rf_dhcp_state = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 72), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rfDhcpState.setStatus('current')
if mibBuilder.loadTexts:
rfDhcpState.setDescription('To enable or disable RF Interface DHCP feature.')
b_cast_mir = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 73), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0))).clone(namedValues=named_values(('disabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bCastMIR.setStatus('current')
if mibBuilder.loadTexts:
bCastMIR.setDescription('To enable and set Broadcast/ Multicast MIR feature. Use value of 0 to disable. Units are in kbps')
bhs_re_reg = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 74), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bhsReReg.setStatus('obsolete')
if mibBuilder.loadTexts:
bhsReReg.setDescription('Allows BHS re-registration every 24 hours. Enable allows re-registration and Disable does not. 24 Hour Encryption Refresh.')
sm_led_mode_flag = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 75), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('legacy', 0), ('revised', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
smLEDModeFlag.setStatus('current')
if mibBuilder.loadTexts:
smLEDModeFlag.setDescription('To set LED Panel Operation to Revised Mode(1) or to Legacy Mode(0)')
eth_access_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 76), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
ethAccessEnable.setStatus('current')
if mibBuilder.loadTexts:
ethAccessEnable.setDescription('To enable or disable Ethernet Port access to SM Management Functions. (1) - Ethernet access to SM Management allowed. (0) - Ethernet access to SM Management blocked.')
pppoe_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 77), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeEnable.setStatus('current')
if mibBuilder.loadTexts:
pppoeEnable.setDescription('Enable or disable PPPoE on the SM. NAT MUST be enabled prior and Translation Bridging MUST be DISABLED on the AP.')
pppoe_authentication_type = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 78), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('none', 0), ('chap-pap', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeAuthenticationType.setStatus('current')
if mibBuilder.loadTexts:
pppoeAuthenticationType.setDescription('Set the PPPoE Authentication Type to either None or CHAP/pap')
pppoe_access_concentrator = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 79), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeAccessConcentrator.setStatus('current')
if mibBuilder.loadTexts:
pppoeAccessConcentrator.setDescription('Set the PPPoE Access Concentrator Name. Less than or equal to 32 characters')
pppoe_service_name = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 80), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeServiceName.setStatus('current')
if mibBuilder.loadTexts:
pppoeServiceName.setDescription('Set the PPPoE Service Name. Less than or equal to 32 characters')
pppoe_user_name = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 81), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeUserName.setStatus('current')
if mibBuilder.loadTexts:
pppoeUserName.setDescription('Set the PPPoE Username. Less than or equal to 32 characters')
pppoe_password = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 82), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoePassword.setStatus('current')
if mibBuilder.loadTexts:
pppoePassword.setDescription('Set the PPPoE Password. Less than or equal to 32 characters')
pppoe_tcpmss_clamp_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeTCPMSSClampEnable.setStatus('current')
if mibBuilder.loadTexts:
pppoeTCPMSSClampEnable.setDescription('Enable or disable TCP MSS Clamping. Enabling this will cause the SM to edit the TCP MSS in TCP SYN and SYN-ACK packets. This will allow for a workaround for MTU issues so that the TCP session will only go up to the clamped MSS. If you are using PMTUD reliably, this should not be needed.')
pppoe_mtu_override_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 84), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeMTUOverrideEnable.setStatus('current')
if mibBuilder.loadTexts:
pppoeMTUOverrideEnable.setDescription("Enable the overriding of the PPP link's MTU. Normally, the PPP link will set the MTU to the MRU of the PPPoE Server, but this may be overridden. If the MRU of the PPPoE server is smaller than the desired MTU, the smaller MTU will be used.")
pppoe_mtu_override_value = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 85), integer32().subtype(subtypeSpec=value_range_constraint(0, 1492))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeMTUOverrideValue.setStatus('current')
if mibBuilder.loadTexts:
pppoeMTUOverrideValue.setDescription("Enable the overriding of the PPP link's MTU. Normally, the PPP link will set the MTU to the MRU of the PPPoE Server, but this may be overridden. If the MRU of the PPPoE server is smaller than the desired MTU, the smaller MTU will be used. Max MTU of a PPPoE link is 1492.")
pppoe_timer_type = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 86), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('keepAlive', 1), ('idleTimeout', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeTimerType.setStatus('current')
if mibBuilder.loadTexts:
pppoeTimerType.setDescription('Set the PPPoE Timer type. Can be a Keep Alive timer where the link will be checked periodically and automatically redialed if the link is down. Also could be an Idle Timeout where the link will be automatically dropped after an idle period and redialed if user data is present. Keep Alive timers are in seconds while Idle Timeout timers are in minutes.')
pppoe_timeout_period = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 87), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeTimeoutPeriod.setStatus('current')
if mibBuilder.loadTexts:
pppoeTimeoutPeriod.setDescription('The Timeout Period. The use of this depends on the Timer Type. If the Timer Type is KeepAlive, then the timeout period is in seconds. If the Timer Type is Idle Timeout, then the timeout period is in minutes. Minimum values are 20 seconds for KeepAlive timer, and 5 minutes for Idle Timeout.')
timed_spectrum_analysis_duration = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 88), integer32().subtype(subtypeSpec=value_range_constraint(10, 1000))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
timedSpectrumAnalysisDuration.setStatus('deprecated')
if mibBuilder.loadTexts:
timedSpectrumAnalysisDuration.setDescription('As of release 13.0.2 this value is depricated. Please use the OID in whispBoxConfig. Value in seconds for a timed spectrum analysis. Range is 10-1000 seconds.')
spectrum_analysis_on_boot = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 89), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
spectrumAnalysisOnBoot.setStatus('current')
if mibBuilder.loadTexts:
spectrumAnalysisOnBoot.setDescription('To enable or disable Spectrum Analysis on boot up for one scan through the band. (0) - Disabled (1) - Enabled')
spectrum_analysis_action = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 90), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('stopSpectrumAnalysis', 0), ('startTimedSpectrumAnalysis', 1), ('startContinuousSpectrumAnalysis', 2), ('idleNoSpectrumAnalysis', 3), ('idleCompleteSpectrumAnalysis', 4), ('inProgressTimedSpectrumAnalysis', 5), ('inProgressContinuousSpectrumAnalysis', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
spectrumAnalysisAction.setStatus('deprecated')
if mibBuilder.loadTexts:
spectrumAnalysisAction.setDescription('As of release 13.0.2, this OID has been deprecated. Please use the OID in whispBoxConfig. Start or stop timed or continuous Spectrum Analysis and also give status. (0) - Stop Spectrum Analysis (1) - Start Timed Spectrum Analysis (2) - Start Continuous Spectrum Analysis (3) - Idle, no Spectrum Analysis results. (4) - Idle, Spectrum Analysis results available. (5) - Timed or Remote Spectrum Analysis in progress. (6) - Continuous Spectrum Analysis in progress. Note: Continuous mode has a max of 24 hours.')
pppoe_connect_od = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 91), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('connectOnDemand', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeConnectOD.setStatus('current')
if mibBuilder.loadTexts:
pppoeConnectOD.setDescription('Force a manual PPPoE connection attempt.')
pppoe_disconnect_od = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 92), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('disconnectOnDemand', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pppoeDisconnectOD.setStatus('current')
if mibBuilder.loadTexts:
pppoeDisconnectOD.setDescription('Force a manual PPPoE disconnection.')
sm_antenna_type = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 93), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('integrated', 0), ('external', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
smAntennaType.setStatus('obsolete')
if mibBuilder.loadTexts:
smAntennaType.setDescription('Deprecated. See whispBoxStatus.antType for antenna type information.')
nat_connection_type = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 94), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('staticIP', 0), ('dhcp', 1), ('pppoe', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
natConnectionType.setStatus('current')
if mibBuilder.loadTexts:
natConnectionType.setDescription('To configure the SM NAT connection type. Options are Static IP, DHCP, or PPPoE.')
wan_ping_reply_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 95), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wanPingReplyEnable.setStatus('current')
if mibBuilder.loadTexts:
wanPingReplyEnable.setDescription('Allow Ping replies from SM WAN interface. Applies to both NAT and PPPoE WAN interfaces.')
packet_filter_direction = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 96), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('upstream', 1), ('downstream', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
packetFilterDirection.setStatus('obsolete')
if mibBuilder.loadTexts:
packetFilterDirection.setDescription('To packet filter direction when NAT is disabled. Upstream is default. Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
color_code2 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 97), integer32().subtype(subtypeSpec=value_range_constraint(0, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCode2.setStatus('current')
if mibBuilder.loadTexts:
colorCode2.setDescription('Second Color code.')
color_codepriority2 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 98), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 0))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('tertiary', 3), ('disable', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCodepriority2.setStatus('current')
if mibBuilder.loadTexts:
colorCodepriority2.setDescription('Priority setting for second color code.')
color_code3 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 99), integer32().subtype(subtypeSpec=value_range_constraint(0, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCode3.setStatus('current')
if mibBuilder.loadTexts:
colorCode3.setDescription('Third Color code.')
color_codepriority3 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 100), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 0))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('tertiary', 3), ('disable', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCodepriority3.setStatus('current')
if mibBuilder.loadTexts:
colorCodepriority3.setDescription('Priority setting for the third color code.')
color_code4 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 101), integer32().subtype(subtypeSpec=value_range_constraint(0, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCode4.setStatus('current')
if mibBuilder.loadTexts:
colorCode4.setDescription('Fourth Color code.')
color_codepriority4 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 102), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 0))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('tertiary', 3), ('disable', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCodepriority4.setStatus('current')
if mibBuilder.loadTexts:
colorCodepriority4.setDescription('Priority setting for the fourth color code.')
color_code5 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 103), integer32().subtype(subtypeSpec=value_range_constraint(0, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCode5.setStatus('current')
if mibBuilder.loadTexts:
colorCode5.setDescription('Fifth Color code.')
color_codepriority5 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 104), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 0))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('tertiary', 3), ('disable', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCodepriority5.setStatus('current')
if mibBuilder.loadTexts:
colorCodepriority5.setDescription('Priority setting for the fifth color code.')
color_code6 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 105), integer32().subtype(subtypeSpec=value_range_constraint(0, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCode6.setStatus('current')
if mibBuilder.loadTexts:
colorCode6.setDescription('Sixth Color code.')
color_codepriority6 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 106), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 0))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('tertiary', 3), ('disable', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCodepriority6.setStatus('current')
if mibBuilder.loadTexts:
colorCodepriority6.setDescription('Priority setting for the sixth color code.')
color_code7 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 107), integer32().subtype(subtypeSpec=value_range_constraint(0, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCode7.setStatus('current')
if mibBuilder.loadTexts:
colorCode7.setDescription('Seventh Color code.')
color_codepriority7 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 108), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 0))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('tertiary', 3), ('disable', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCodepriority7.setStatus('current')
if mibBuilder.loadTexts:
colorCodepriority7.setDescription('Priority setting for the seventh color code.')
color_code8 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 109), integer32().subtype(subtypeSpec=value_range_constraint(0, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCode8.setStatus('current')
if mibBuilder.loadTexts:
colorCode8.setDescription('Eighth Color code.')
color_codepriority8 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 110), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 0))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('tertiary', 3), ('disable', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCodepriority8.setStatus('current')
if mibBuilder.loadTexts:
colorCodepriority8.setDescription('Priority setting for the eighth color code.')
color_code9 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 111), integer32().subtype(subtypeSpec=value_range_constraint(0, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCode9.setStatus('current')
if mibBuilder.loadTexts:
colorCode9.setDescription('Ninth Color code.')
color_codepriority9 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 112), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 0))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('tertiary', 3), ('disable', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCodepriority9.setStatus('current')
if mibBuilder.loadTexts:
colorCodepriority9.setDescription('Priority setting for the ninth color code.')
color_code10 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 113), integer32().subtype(subtypeSpec=value_range_constraint(0, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCode10.setStatus('current')
if mibBuilder.loadTexts:
colorCode10.setDescription('Tenth Color code.')
color_codepriority10 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 114), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 0))).clone(namedValues=named_values(('primary', 1), ('secondary', 2), ('tertiary', 3), ('disable', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
colorCodepriority10.setStatus('current')
if mibBuilder.loadTexts:
colorCodepriority10.setDescription('Priority setting for the tenth color code.')
nat_dns_proxy_enable = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 115), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
natDNSProxyEnable.setStatus('current')
if mibBuilder.loadTexts:
natDNSProxyEnable.setDescription('If enabled, the SM will advertise itself as the DNS server when it sends out DHCP client leases and forward DNS queries automatically. If disabled, the SM will forward on upstream DNS server information when it sends out DHCP client leases.')
all_ipv4_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 116), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('filterOff', 0), ('filterOn', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
allIpv4Filter.setStatus('obsolete')
if mibBuilder.loadTexts:
allIpv4Filter.setDescription('To set all IPv4 packet filter when NAT is disabled. Enabling this will automatically enable all of the known IP filters (SMB, SNMP, Bootp, IPv4 Mcast, User Defined Ports, and All Other IPv4). Obsolete - Use corresponding OID in whipsBoxConfig MIB.')
spectrum_analysis_display = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 117), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('averaging', 0), ('instantaneous', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
spectrumAnalysisDisplay.setStatus('current')
if mibBuilder.loadTexts:
spectrumAnalysisDisplay.setDescription('The display for Spectrum Analyzer: (0) - Averaging over entire period (1) - Instantaneous showing the last reading')
syslog_sm_xmit_setting = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 118), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('obtain-from-AP', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
syslogSMXmitSetting.setStatus('deprecated')
if mibBuilder.loadTexts:
syslogSMXmitSetting.setDescription('Obtains Syslog transmit configuration from AP/BHM if set to 0, overrides if 1 or 2. Transmits syslog data to Syslog server if enabled(1), stops if disabled (2).')
syslog_server_ap_preferred = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 119), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('use-local', 0), ('use-AP-preferred', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
syslogServerApPreferred.setStatus('current')
if mibBuilder.loadTexts:
syslogServerApPreferred.setDescription('Uses Syslog server configuration from AP/BHM if enabled and available, otherwise uses local configuration.')
syslog_min_level_ap_preferred = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 120), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('use-local', 0), ('use-AP-preferred', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
syslogMinLevelApPreferred.setStatus('current')
if mibBuilder.loadTexts:
syslogMinLevelApPreferred.setDescription('Uses Syslog minimum transmit level configuration from AP/BHM if available, otherwise uses local configuration.')
syslog_sm_xmit_control = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 121), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('obtain-from-AP-default-disabled', 0), ('obtain-from-AP-default-enabled', 1), ('disable', 2), ('enable', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
syslogSMXmitControl.setStatus('current')
if mibBuilder.loadTexts:
syslogSMXmitControl.setDescription('Obtains Syslog transmit configuration from AP/BHM if available, or specifies the local transmit state.')
eap_peer_aaa_server_common_name = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 126), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
eapPeerAAAServerCommonName.setStatus('current')
if mibBuilder.loadTexts:
eapPeerAAAServerCommonName.setDescription('THIS OID IS CURRENTLY UNUSED: EAP Peer Server Common Name')
rf_scan_list_band_filter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 127), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(8, 9))).clone(namedValues=named_values(('band5400', 8), ('band5700', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rfScanListBandFilter.setStatus('obsolete')
if mibBuilder.loadTexts:
rfScanListBandFilter.setDescription('This element is obsolete.')
up_lnk_max_burst_data_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 128), integer32()).setUnits('Kilobits/sec').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
upLnkMaxBurstDataRate.setStatus('current')
if mibBuilder.loadTexts:
upLnkMaxBurstDataRate.setDescription('Maximum burst uplink rate.')
dwn_lnk_max_burst_data_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 129), integer32()).setUnits('Kilobits/sec').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dwnLnkMaxBurstDataRate.setStatus('current')
if mibBuilder.loadTexts:
dwnLnkMaxBurstDataRate.setDescription('Maximum burst downlink rate.')
cyclic_prefix_scan = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 130), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cyclicPrefixScan.setStatus('current')
if mibBuilder.loadTexts:
cyclicPrefixScan.setDescription('Cyclic Prefix value for frequency scanning used by MIMO SMs only. When setting use a comma delimited list of cyclic prefixes with no spaces. For example: 1/8,1/16')
bandwidth_scan = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 131), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
bandwidthScan.setStatus('current')
if mibBuilder.loadTexts:
bandwidthScan.setDescription('Bandwidth values for frequency scanning used by MIMO SMs only. When setting use a comma delimited list of bandwidths. For example: 10, 20')
ap_selection = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 132), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('powerLevel', 1), ('optimizeForThroughput', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
apSelection.setStatus('current')
if mibBuilder.loadTexts:
apSelection.setDescription("This OID affects what AP to attempt to register to when Canopy SMs scan see more than one AP that are valid in it's configuration. (0) - Default, Canopy radios after scanning select the best AP that will optimize for estimated throughput. (1) - Select the AP with the best receive power level. Note this is only if multiple APs fit the current scan configuration, and will be overriden by color codes, RADIUS, etc.")
radio_bandscan_config = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 133), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('instant', 0), ('delayed', 1), ('apply', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
radioBandscanConfig.setStatus('current')
if mibBuilder.loadTexts:
radioBandscanConfig.setDescription('Used to determine when frequency, cyclic prefix and bandwidth settings take effect for band scanning MIMO SMs. 0 - Instant 1 - Delayed 2 - Apply changes')
forcepoweradjust = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 134), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
forcepoweradjust.setStatus('current')
if mibBuilder.loadTexts:
forcepoweradjust.setDescription('This will force a multipoint SM to initiate an asynchronous power adjust sequence.')
clear_berr_results = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 135), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
clearBerrResults.setStatus('current')
if mibBuilder.loadTexts:
clearBerrResults.setDescription('This will clear the BERR results.')
berrautoupdateflag = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 136), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
berrautoupdateflag.setStatus('current')
if mibBuilder.loadTexts:
berrautoupdateflag.setDescription('This indicates if the once a second BERR updating of counters is enabled. 1 = enabled 0 = disabled')
test_smber = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 137), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
testSMBER.setStatus('current')
if mibBuilder.loadTexts:
testSMBER.setDescription('0 - Disable (Return the SM to a normal operation state). 1 - Enable (Set SM into a BERR test state).')
allowed_ip_access_nm_length1 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 138), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
allowedIPAccessNMLength1.setStatus('current')
if mibBuilder.loadTexts:
allowedIPAccessNMLength1.setDescription('Length of the network mask to apply to the AllowedIPAddress when assessing if access is allowed')
allowed_ip_access_nm_length2 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 139), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
allowedIPAccessNMLength2.setStatus('current')
if mibBuilder.loadTexts:
allowedIPAccessNMLength2.setDescription('Length of the network mask to apply to the AllowedIPAddress when assessing if access is allowed')
allowed_ip_access_nm_length3 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 140), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
allowedIPAccessNMLength3.setStatus('current')
if mibBuilder.loadTexts:
allowedIPAccessNMLength3.setDescription('Length of the network mask to apply to the AllowedIPAddress when assessing if access is allowed')
napt_remote_manage = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 141), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('disable', 0), ('enable-standalone', 1), ('enable-wan', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
naptRemoteManage.setStatus('current')
if mibBuilder.loadTexts:
naptRemoteManage.setDescription('To enable or disable Remote Management. For multipoint only. 0=Disable Remote Management, 1=Enable - Standalone Config, 2=Enable - Use WAN Interface.')
spectrum_analysis_scan_bandwidth = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 142), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('bandwidth5MHz', 0), ('bandwidth10MHz', 1), ('bandwidth20MHz', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
spectrumAnalysisScanBandwidth.setStatus('current')
if mibBuilder.loadTexts:
spectrumAnalysisScanBandwidth.setDescription('Scanning Bandwidth used for the Spectrum Analyzer. Only available on PMP 450.')
ber_de_mod_select = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 143), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('qpsk', 0), ('qam-16', 1), ('qam-64', 2), ('qam-256', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
berDeModSelect.setStatus('current')
if mibBuilder.loadTexts:
berDeModSelect.setDescription('The BER demodulation level the SM is set. 0 for QPSK, 1 for 16-QAM, 2 for 64-QAM, and 3 for 256-QAM.')
multicast_vc_rcv_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 144), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
multicastVCRcvRate.setStatus('current')
if mibBuilder.loadTexts:
multicastVCRcvRate.setDescription('Multicast VC Receive Rate')
pmp430_ap_registration_options = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 145), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('pmp430', 1), ('pmp450', 2), ('both', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
pmp430ApRegistrationOptions.setStatus('current')
if mibBuilder.loadTexts:
pmp430ApRegistrationOptions.setDescription('Selects AP types (430 and/or 450) that are available for the PMP430 SM. When both AP types are selected, if the SM does not register to an AP, it will reboot to scan the other AP type.')
switch_radio_mode_and_reboot = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 1, 146), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('finishedReboot', 0), ('switchRadioModeAndReboot', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
switchRadioModeAndReboot.setStatus('current')
if mibBuilder.loadTexts:
switchRadioModeAndReboot.setDescription('Setting this to 1 will force switch the SM to the other radio mode and immediately reboot the unit. When the unit finishes rebooting, it will be in finishedReboot state. Only will be allowed to be set if both registration options are configured. PMP 430 SM only. Introduced in release 12.2.')
num_auth_certs = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
numAuthCerts.setStatus('current')
if mibBuilder.loadTexts:
numAuthCerts.setDescription('can have a max value of 2')
authentication_enforce = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('disable', 0), ('aaa', 1), ('presharedkey', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
authenticationEnforce.setStatus('current')
if mibBuilder.loadTexts:
authenticationEnforce.setDescription('enforce SM to register with specifed Auth Enabled AP')
phase1 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('eapttls', 0), ('eapMSChapV2', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
phase1.setStatus('current')
if mibBuilder.loadTexts:
phase1.setDescription('Select the outer method for EAP Authentication')
phase2 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('pap', 0), ('chap', 1), ('mschapv2', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
phase2.setStatus('current')
if mibBuilder.loadTexts:
phase2.setDescription('Select the outer method for EAP Authentication')
auth_outer_id = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 253))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
authOuterId.setStatus('current')
if mibBuilder.loadTexts:
authOuterId.setDescription('EAP Peer Username')
auth_password = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
authPassword.setStatus('current')
if mibBuilder.loadTexts:
authPassword.setDescription('EAP Peer password')
auth_username = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
authUsername.setStatus('current')
if mibBuilder.loadTexts:
authUsername.setDescription('EAP Peer Identity')
use_realm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
useRealm.setStatus('current')
if mibBuilder.loadTexts:
useRealm.setDescription('Enable or disable the use of realm option.')
realm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 10), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
realm.setStatus('current')
if mibBuilder.loadTexts:
realm.setDescription('EAP Peer Realm')
cert_table = mib_table((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1))
if mibBuilder.loadTexts:
certTable.setStatus('current')
if mibBuilder.loadTexts:
certTable.setDescription('The table of CA Certificates on SM.')
cert_entry = mib_table_row((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1)).setIndexNames((0, 'WHISP-SM-MIB', 'certIndex'))
if mibBuilder.loadTexts:
certEntry.setStatus('current')
if mibBuilder.loadTexts:
certEntry.setDescription('Entry of Certifcates.')
cert_index = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
certIndex.setStatus('current')
if mibBuilder.loadTexts:
certIndex.setDescription('User information table index.')
cert = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('inactive', 0), ('active', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cert.setStatus('current')
if mibBuilder.loadTexts:
cert.setDescription('0: Inactive 1: Active')
action = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('noop', 0), ('delete', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
action.setStatus('current')
if mibBuilder.loadTexts:
action.setDescription('0: No Operation 1: Delete Certificate')
certificate_dn = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 7, 1, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
certificateDN.setStatus('current')
if mibBuilder.loadTexts:
certificateDN.setDescription('Distinguished Name of Certificate 2')
session_status = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sessionStatus.setStatus('current')
if mibBuilder.loadTexts:
sessionStatus.setDescription('SM registered or not.')
rssi = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rssi.setStatus('current')
if mibBuilder.loadTexts:
rssi.setDescription('Radio signal strength index. FSK only.')
jitter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 3), gauge32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
jitter.setStatus('current')
if mibBuilder.loadTexts:
jitter.setDescription('A measure of multipath interference. Applicable to FSK radios only.')
air_delay = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 4), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
airDelay.setStatus('current')
if mibBuilder.loadTexts:
airDelay.setDescription('Round trip delay in bits.')
radio_slicing_sm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioSlicingSm.setStatus('obsolete')
if mibBuilder.loadTexts:
radioSlicingSm.setDescription('This variable is deprecated.')
radio_tx_gain_sm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioTxGainSm.setStatus('current')
if mibBuilder.loadTexts:
radioTxGainSm.setDescription('Radio transmission gain setting. Applicable to FSK radios only.')
calibration_status = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
calibrationStatus.setStatus('deprecated')
if mibBuilder.loadTexts:
calibrationStatus.setDescription('Varible deprecated. Please use calibrationStatusBox.')
radio_dbm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioDbm.setStatus('current')
if mibBuilder.loadTexts:
radioDbm.setDescription('Rx Power level. For MIMO this is the combined power of the horizontal and vertical paths.')
registered_to_ap = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 9), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
registeredToAp.setStatus('current')
if mibBuilder.loadTexts:
registeredToAp.setDescription('AP MAC address that the SM registered to.')
dhcp_cip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 10), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpCip.setStatus('current')
if mibBuilder.loadTexts:
dhcpCip.setDescription('Assigned IP address to DHCP client.')
dhcp_sip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 11), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpSip.setStatus('current')
if mibBuilder.loadTexts:
dhcpSip.setDescription('Public DHCP server IP.')
dhcp_client_lease = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 12), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpClientLease.setStatus('current')
if mibBuilder.loadTexts:
dhcpClientLease.setDescription('DHCP client lease time.')
dhcp_cs_mask = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 13), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpCSMask.setStatus('current')
if mibBuilder.loadTexts:
dhcpCSMask.setDescription('Public DHCP server subnet mask.')
dhcp_dflt_rter_ip = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 14), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpDfltRterIP.setStatus('current')
if mibBuilder.loadTexts:
dhcpDfltRterIP.setDescription('Public default router IP address.')
dhcpcdns1 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 15), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpcdns1.setStatus('current')
if mibBuilder.loadTexts:
dhcpcdns1.setDescription('Primary public domain name server.')
dhcpcdns2 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 16), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpcdns2.setStatus('current')
if mibBuilder.loadTexts:
dhcpcdns2.setDescription('Secondary public domain name server.')
dhcpcdns3 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 17), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpcdns3.setStatus('current')
if mibBuilder.loadTexts:
dhcpcdns3.setDescription('Third public domain name server.')
dhcp_dom_name = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 18), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpDomName.setStatus('current')
if mibBuilder.loadTexts:
dhcpDomName.setDescription('Public domain name server.')
adapt_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 20), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adaptRate.setStatus('current')
if mibBuilder.loadTexts:
adaptRate.setDescription('VC adapt rate.')
radio_dbm_int = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 21), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioDbmInt.setStatus('current')
if mibBuilder.loadTexts:
radioDbmInt.setDescription('Radio power level(integer). For MIMO radios this is the combined power of the horiztontal and vertical paths.')
dfs_status = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 22), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dfsStatus.setStatus('current')
if mibBuilder.loadTexts:
dfsStatus.setDescription('Dynamic frequency shifting status. For DFS Radio only.')
radio_tx_pwr = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 23), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioTxPwr.setStatus('current')
if mibBuilder.loadTexts:
radioTxPwr.setDescription('Tx Power level. Valid for FSK and OFDM SMs.')
active_region = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 24), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
activeRegion.setStatus('current')
if mibBuilder.loadTexts:
activeRegion.setDescription('The active region of the radio.')
snmp_ber_level = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 25), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 4, 6, 8))).clone(namedValues=named_values(('twoLevelOrMimoQPSK', 2), ('fourLevelOrMimo16QAM', 4), ('mimo64QAM', 6), ('mimo256QAM', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
snmpBerLevel.setStatus('current')
if mibBuilder.loadTexts:
snmpBerLevel.setDescription('BER level. For PMP450 systems: 2=MIMO QPSK, 4=MIMO 16-QAM, 6=MIMO64-QAM, 8=256-QAM For non PMP450: 2=2 level BER, 4=4 level BER.')
nb_bits_rcvd = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 26), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbBitsRcvd.setStatus('current')
if mibBuilder.loadTexts:
nbBitsRcvd.setDescription('Number of BER bits received (non MIMO platforms only).')
nb_pri_bits_err = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbPriBitsErr.setStatus('current')
if mibBuilder.loadTexts:
nbPriBitsErr.setDescription('Number of Primary bit errors (non MIMO platforms only).')
nb_snd_bits_err = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nbSndBitsErr.setStatus('current')
if mibBuilder.loadTexts:
nbSndBitsErr.setDescription('Number of secondary bit errors (non MIMO platforms only).')
primary_ber = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 29), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
primaryBER.setStatus('obsolete')
if mibBuilder.loadTexts:
primaryBER.setDescription('Obsoleted, invalid type to represent this data. Measured Primary Bit Error Rate.')
secondary_ber = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 30), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
secondaryBER.setStatus('obsolete')
if mibBuilder.loadTexts:
secondaryBER.setDescription('Obsoleted, invalid type to represent this data. Measured Secondary Bit Error Rate.')
total_ber = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 31), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
totalBER.setStatus('obsolete')
if mibBuilder.loadTexts:
totalBER.setDescription('Obsoleted, invalid type to represent this data. Measured Total Bit Error Rate.')
min_rssi = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 32), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
minRSSI.setStatus('current')
if mibBuilder.loadTexts:
minRSSI.setDescription('Measured Min. RSSI. Applicable to FSK radios only.')
max_rssi = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 33), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
maxRSSI.setStatus('current')
if mibBuilder.loadTexts:
maxRSSI.setDescription('Measured Max. RSSI. Applicable to FSK radios only.')
min_jitter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 34), gauge32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
minJitter.setStatus('current')
if mibBuilder.loadTexts:
minJitter.setDescription('Measured Min. Jitter. Applicable to FSK radios only.')
max_jitter = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 35), gauge32().subtype(subtypeSpec=value_range_constraint(0, 15))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
maxJitter.setStatus('current')
if mibBuilder.loadTexts:
maxJitter.setDescription('Measured Max. Jitter. Applicable to FSK radios only.')
sm_session_timer = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 36), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
smSessionTimer.setStatus('current')
if mibBuilder.loadTexts:
smSessionTimer.setDescription('SM current session timer.')
pppoe_session_status = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 37), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeSessionStatus.setStatus('current')
if mibBuilder.loadTexts:
pppoeSessionStatus.setDescription('Current PPPoE Session Status')
pppoe_session_id = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 38), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeSessionID.setStatus('current')
if mibBuilder.loadTexts:
pppoeSessionID.setDescription('Current PPPoE Session ID')
pppoe_ipcp_address = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 39), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeIPCPAddress.setStatus('current')
if mibBuilder.loadTexts:
pppoeIPCPAddress.setDescription('Current PPPoE IPCP IP Address')
pppoe_mtu_override_en = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 40), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeMTUOverrideEn.setStatus('current')
if mibBuilder.loadTexts:
pppoeMTUOverrideEn.setDescription('Current PPPoE MTU Override Setting')
pppoe_mtu_value = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 41), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeMTUValue.setStatus('current')
if mibBuilder.loadTexts:
pppoeMTUValue.setDescription('Current PPPoE MTU Value')
pppoe_timer_type_value = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 42), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('disabled', 0), ('keepAlive', 1), ('idleTimeout', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeTimerTypeValue.setStatus('current')
if mibBuilder.loadTexts:
pppoeTimerTypeValue.setDescription('Current PPPoE Timer Type. 0 is disabled, 1 is Keep Alive timer, and 2 is Idle Timeout timer.')
pppoe_timeout_value = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 43), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeTimeoutValue.setStatus('current')
if mibBuilder.loadTexts:
pppoeTimeoutValue.setDescription('Current PPPoE Timeout Period. The use of this depends on the Timer Type. If the Timer Type is KeepAlive, then the timeout period is in seconds. If the Timer Type is Idle Timeout, then the timeout period is in minutes.')
pppoe_dns_server1 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 44), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeDNSServer1.setStatus('current')
if mibBuilder.loadTexts:
pppoeDNSServer1.setDescription('PPPoE DNS Server 1')
pppoe_dns_server2 = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 45), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeDNSServer2.setStatus('current')
if mibBuilder.loadTexts:
pppoeDNSServer2.setDescription('PPPoE DNS Server 2')
pppoe_control_bytes_sent = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 46), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeControlBytesSent.setStatus('current')
if mibBuilder.loadTexts:
pppoeControlBytesSent.setDescription('PPPoE Control Bytes Sent')
pppoe_control_bytes_received = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 47), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeControlBytesReceived.setStatus('current')
if mibBuilder.loadTexts:
pppoeControlBytesReceived.setDescription('PPPoE Control Bytes Received')
pppoe_data_bytes_sent = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 48), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeDataBytesSent.setStatus('current')
if mibBuilder.loadTexts:
pppoeDataBytesSent.setDescription('PPPoE Data Bytes Sent')
pppoe_data_bytes_received = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 49), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeDataBytesReceived.setStatus('current')
if mibBuilder.loadTexts:
pppoeDataBytesReceived.setDescription('PPPoE Data Bytes Received')
pppoe_enabled_status = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 50), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeEnabledStatus.setStatus('current')
if mibBuilder.loadTexts:
pppoeEnabledStatus.setDescription('PPPoE Enabled')
pppoe_tcpmss_clamp_enable_status = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 51), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeTCPMSSClampEnableStatus.setStatus('current')
if mibBuilder.loadTexts:
pppoeTCPMSSClampEnableStatus.setDescription('PPPoE TCP MSS Clamping Enable')
pppoe_ac_name_status = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 52), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeACNameStatus.setStatus('current')
if mibBuilder.loadTexts:
pppoeACNameStatus.setDescription('Current PPPoE Access Concentrator In Use')
pppoe_svc_name_status = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 53), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeSvcNameStatus.setStatus('current')
if mibBuilder.loadTexts:
pppoeSvcNameStatus.setDescription('Current PPPoE Service Name In Use')
pppoe_sess_uptime = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 54), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeSessUptime.setStatus('current')
if mibBuilder.loadTexts:
pppoeSessUptime.setDescription('Uptime of current PPPoE Session in ticks')
primary_ber_display = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 55), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
primaryBERDisplay.setStatus('current')
if mibBuilder.loadTexts:
primaryBERDisplay.setDescription('Measured Primary Bit Error Rate. Non MIMO platforms only.')
secondary_ber_display = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 56), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
secondaryBERDisplay.setStatus('current')
if mibBuilder.loadTexts:
secondaryBERDisplay.setDescription('Measured Secondary Bit Error Rate. FSK platforms only.')
total_ber_display = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 57), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
totalBERDisplay.setStatus('current')
if mibBuilder.loadTexts:
totalBERDisplay.setDescription('Measured Total Bit Error Rate. For MIMO this is combined both paths.')
min_radio_dbm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 58), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
minRadioDbm.setStatus('current')
if mibBuilder.loadTexts:
minRadioDbm.setDescription('Maximum receive power of beacon in dBm. For MIMO radios, this is only available in the vertical path.')
max_radio_dbm = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 59), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
maxRadioDbm.setStatus('current')
if mibBuilder.loadTexts:
maxRadioDbm.setDescription('Maximum receive power of beacon in dBm. For MIMO radios, this is only available in the vertical path.')
pppoe_sess_idle_time = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 60), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
pppoeSessIdleTime.setStatus('current')
if mibBuilder.loadTexts:
pppoeSessIdleTime.setDescription('Idle Time of current PPPoE Session in ticks')
radio_dbm_avg = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 61), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioDbmAvg.setStatus('current')
if mibBuilder.loadTexts:
radioDbmAvg.setDescription("Average Receive Power of the AP's beacon in dBm. OFDM Radios only. For MIMO this is only the verical path, as the beacon is not transmitted on horizontal.")
zoltar_fpga_freq_offset = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 62), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zoltarFPGAFreqOffset.setStatus('current')
if mibBuilder.loadTexts:
zoltarFPGAFreqOffset.setDescription('FPGA peek of 70001088')
zoltar_sw_freq_offset = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 63), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
zoltarSWFreqOffset.setStatus('current')
if mibBuilder.loadTexts:
zoltarSWFreqOffset.setDescription('FPGA peek of 7000108C')
air_delayns = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 64), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
airDelayns.setStatus('current')
if mibBuilder.loadTexts:
airDelayns.setDescription('Round trip delay in nanoseconds.')
current_color_code = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 65), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
currentColorCode.setStatus('current')
if mibBuilder.loadTexts:
currentColorCode.setDescription('The current Color Code of the Registered AP/BHM. A value of -1 is return when the device is not registered.')
current_color_code_pri = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 66), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('none', 0), ('primary', 1), ('secondary', 2), ('tertiary', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
currentColorCodePri.setStatus('current')
if mibBuilder.loadTexts:
currentColorCodePri.setDescription('The current priority of the Registered color code')
current_chan_freq = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 67), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
currentChanFreq.setStatus('current')
if mibBuilder.loadTexts:
currentChanFreq.setDescription('The Current Channel Frequency of the AP/BHM when in session.')
link_quality_beacon = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 68), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
linkQualityBeacon.setStatus('current')
if mibBuilder.loadTexts:
linkQualityBeacon.setDescription('Engineering only. Link Quality for incoming beacons. For Gen II OFDM radios and forward. For PMP450 and forward this is vertical path.')
dhcp_server_pkt_xmt = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 72), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpServerPktXmt.setStatus('current')
if mibBuilder.loadTexts:
dhcpServerPktXmt.setDescription('Number of packets transmitted by SM DHCP Server')
dhcp_server_pkt_rcv = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 73), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpServerPktRcv.setStatus('current')
if mibBuilder.loadTexts:
dhcpServerPktRcv.setDescription('Number of packets received by SM DHCP Server')
dhcp_server_pkt_toss = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 74), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dhcpServerPktToss.setStatus('current')
if mibBuilder.loadTexts:
dhcpServerPktToss.setDescription('Number of packets tossed by SM DHCP Server')
receive_fragments_modulation_percentage = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 86), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
receiveFragmentsModulationPercentage.setStatus('current')
if mibBuilder.loadTexts:
receiveFragmentsModulationPercentage.setDescription('Engineering use only. The percentage of recent fragments received at which modulation. For Gen II OFDM only and forward.')
fragments_received1_x_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 87), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fragmentsReceived1XVertical.setStatus('current')
if mibBuilder.loadTexts:
fragmentsReceived1XVertical.setDescription('Engineering use only. Number of fragments received in 1x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
fragments_received2_x_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 88), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fragmentsReceived2XVertical.setStatus('current')
if mibBuilder.loadTexts:
fragmentsReceived2XVertical.setDescription('Engineering use only. Number of fragments received in 2x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
fragments_received3_x_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 89), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fragmentsReceived3XVertical.setStatus('current')
if mibBuilder.loadTexts:
fragmentsReceived3XVertical.setDescription('Engineering use only. Number of fragments received in 3x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
fragments_received4_x_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 90), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fragmentsReceived4XVertical.setStatus('current')
if mibBuilder.loadTexts:
fragmentsReceived4XVertical.setDescription('Engineering use only. Number of fragments received in 4x modulation. For GenII OFDM only and forward. For MIMO this is the vertical path.')
link_quality_data1_x_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 91), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
linkQualityData1XVertical.setStatus('current')
if mibBuilder.loadTexts:
linkQualityData1XVertical.setDescription('Engineering use only. Link Quality for the data VC for QPSK modulation (1X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
link_quality_data2_x_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 92), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
linkQualityData2XVertical.setStatus('current')
if mibBuilder.loadTexts:
linkQualityData2XVertical.setDescription('Engineering use only. Link Quality for the data VC for 16-QAM modulation (2X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
link_quality_data3_x_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 93), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
linkQualityData3XVertical.setStatus('current')
if mibBuilder.loadTexts:
linkQualityData3XVertical.setDescription('Engineering use only. Link Quality for the data VC for 64-QAM modulation (3X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
link_quality_data4_x_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 94), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
linkQualityData4XVertical.setStatus('current')
if mibBuilder.loadTexts:
linkQualityData4XVertical.setDescription('Engineering use only. Link Quality for the data VC for 256-QAM modulation (4X). For Gen II OFDM radios and forward only. For MIMO this is the vertical path.')
signal_to_noise_ratio_sm_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 95), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
signalToNoiseRatioSMVertical.setStatus('current')
if mibBuilder.loadTexts:
signalToNoiseRatioSMVertical.setDescription('An estimated signal to noise ratio based on the last received data. For GenII OFDM only and forward. For MIMO this is the vertical antenna. Will return zero if Signal to Noise Ratio Calculation is disabled.')
rf_stat_tx_suppression_count = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 96), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rfStatTxSuppressionCount.setStatus('current')
if mibBuilder.loadTexts:
rfStatTxSuppressionCount.setDescription('RF Scheduler Stats DFS TX Suppression Count')
bridgecb_uplink_credit_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 97), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bridgecbUplinkCreditRate.setStatus('current')
if mibBuilder.loadTexts:
bridgecbUplinkCreditRate.setDescription('Sustained uplink data rate.')
bridgecb_uplink_credit_limit = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 98), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bridgecbUplinkCreditLimit.setStatus('current')
if mibBuilder.loadTexts:
bridgecbUplinkCreditLimit.setDescription('Uplink Burst Allocation.')
bridgecb_downlink_credit_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 99), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bridgecbDownlinkCreditRate.setStatus('current')
if mibBuilder.loadTexts:
bridgecbDownlinkCreditRate.setDescription('Sustained uplink data rate.')
bridgecb_downlink_credit_limit = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 100), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bridgecbDownlinkCreditLimit.setStatus('current')
if mibBuilder.loadTexts:
bridgecbDownlinkCreditLimit.setDescription('Uplink Burst Allocation.')
mimo_qpsk_ber_display = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 101), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mimoQpskBerDisplay.setStatus('current')
if mibBuilder.loadTexts:
mimoQpskBerDisplay.setDescription('QPSK BER statistics. MIMO platforms only.')
mimo16_qam_ber_display = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 102), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mimo16QamBerDisplay.setStatus('current')
if mibBuilder.loadTexts:
mimo16QamBerDisplay.setDescription('16-QAM BER statistics MIMO platforms only. Engineering use only.')
mimo64_qam_ber_display = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 103), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mimo64QamBerDisplay.setStatus('current')
if mibBuilder.loadTexts:
mimo64QamBerDisplay.setDescription('64-QAM BER statistics MIMO platforms only. Engineering use only.')
mimo256_qam_ber_display = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 104), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mimo256QamBerDisplay.setStatus('current')
if mibBuilder.loadTexts:
mimo256QamBerDisplay.setDescription('256-QAM BER statistics MIMO platforms only. Engineering use only.')
mimo_ber_rcv_modulation_type = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 105), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
mimoBerRcvModulationType.setStatus('current')
if mibBuilder.loadTexts:
mimoBerRcvModulationType.setDescription('Receive modulation type. MIMO platforms only.')
signal_to_noise_ratio_sm_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 106), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
signalToNoiseRatioSMHorizontal.setStatus('current')
if mibBuilder.loadTexts:
signalToNoiseRatioSMHorizontal.setDescription('An estimated signal to noise ratio based on the last received data for horizontal antenna. MIMO radios only. Will return zero if Signal to Noise Ratio Calculation is disabled.')
max_radio_dbm_deprecated = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 107), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
maxRadioDbmDeprecated.setStatus('deprecated')
if mibBuilder.loadTexts:
maxRadioDbmDeprecated.setDescription('This OID was inadvertently moved in 12.0.2. Please use maxRadioDbm. This OID is deprecated and kept for backwards compatibility.')
signal_strength_ratio = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 108), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
signalStrengthRatio.setStatus('current')
if mibBuilder.loadTexts:
signalStrengthRatio.setDescription('Signal Strength Ratio in dB is the power received by the vertical antenna input (dB) - power received by the horizontal antenna input (dB). MIMO radios only.')
fragments_received1_x_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 109), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fragmentsReceived1XHorizontal.setStatus('current')
if mibBuilder.loadTexts:
fragmentsReceived1XHorizontal.setDescription('Engineering use only. Number of fragments received in 1x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
fragments_received2_x_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 110), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fragmentsReceived2XHorizontal.setStatus('current')
if mibBuilder.loadTexts:
fragmentsReceived2XHorizontal.setDescription('Engineering use only. Number of fragments received in 2x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
fragments_received3_x_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 111), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fragmentsReceived3XHorizontal.setStatus('current')
if mibBuilder.loadTexts:
fragmentsReceived3XHorizontal.setDescription('Engineering use only. Number of fragments received in 3x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
fragments_received4_x_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 112), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fragmentsReceived4XHorizontal.setStatus('current')
if mibBuilder.loadTexts:
fragmentsReceived4XHorizontal.setDescription('Engineering use only. Number of fragments received in 4x modulation. For MIMO radios only. For MIMO this is the horizontal path.')
link_quality_data1_x_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 113), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
linkQualityData1XHorizontal.setStatus('current')
if mibBuilder.loadTexts:
linkQualityData1XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for QPSK modulation (1X). For MIMO radios only. For MIMO this is the horizontal path.')
link_quality_data2_x_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 114), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
linkQualityData2XHorizontal.setStatus('current')
if mibBuilder.loadTexts:
linkQualityData2XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for 16-QAM modulation (2X). For MIMO radios only. For MIMO this is the horizontal path.')
link_quality_data3_x_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 115), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
linkQualityData3XHorizontal.setStatus('current')
if mibBuilder.loadTexts:
linkQualityData3XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for 64-QAM modulation (3X). For MIMO radios only. For MIMO this is the horizontal path.')
link_quality_data4_x_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 116), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
linkQualityData4XHorizontal.setStatus('current')
if mibBuilder.loadTexts:
linkQualityData4XHorizontal.setDescription('Engineering use only. Link Quality for the data VC for 256-QAM modulation (4X). For MIMO radios only. For MIMO this is the horizontal path.')
radio_dbm_horizontal = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 117), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioDbmHorizontal.setStatus('current')
if mibBuilder.loadTexts:
radioDbmHorizontal.setDescription('Receive power level of the horizontal antenna in dBm. MIMO radios only.')
radio_dbm_vertical = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 118), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioDbmVertical.setStatus('current')
if mibBuilder.loadTexts:
radioDbmVertical.setDescription('Receive power level of the vertical antenna in dBm. MIMO radios only.')
bridgecb_downlink_max_burst_bit_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 119), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bridgecbDownlinkMaxBurstBitRate.setStatus('current')
if mibBuilder.loadTexts:
bridgecbDownlinkMaxBurstBitRate.setDescription('Maximum burst downlink rate.')
bridgecb_uplink_max_burst_bit_rate = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 120), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bridgecbUplinkMaxBurstBitRate.setStatus('current')
if mibBuilder.loadTexts:
bridgecbUplinkMaxBurstBitRate.setDescription('Maximum burst uplink Rate.')
current_cyclic_prefix = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 121), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('one-quarter', 0), ('one-eighth', 1), ('one-sixteenth', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
currentCyclicPrefix.setStatus('current')
if mibBuilder.loadTexts:
currentCyclicPrefix.setDescription('The Current Cyclic Prefix of the AP/BHM when in session.')
current_bandwidth = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 122), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 3, 5))).clone(namedValues=named_values(('bandwidth5mhz', 1), ('bandwidth10mhz', 3), ('bandwidth20mhz', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
currentBandwidth.setStatus('current')
if mibBuilder.loadTexts:
currentBandwidth.setDescription('The Current Bandwidth of the AP/BHM when in session.')
ber_pwr_rx_fpga_path_a = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 123), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
berPwrRxFPGAPathA.setStatus('current')
if mibBuilder.loadTexts:
berPwrRxFPGAPathA.setDescription('BER power level on FPGA Rx Path A of SM.')
ber_pwr_rx_fpga_path_b = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 124), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
berPwrRxFPGAPathB.setStatus('current')
if mibBuilder.loadTexts:
berPwrRxFPGAPathB.setDescription('BER power level on FPGA Rx Path B of SM.')
raw_ber_pwr_rx_path_a = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 125), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rawBERPwrRxPathA.setStatus('current')
if mibBuilder.loadTexts:
rawBERPwrRxPathA.setDescription('Raw unadjusted BER power level on FPGA Rx Path A of SM.')
raw_ber_pwr_rx_path_b = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 126), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rawBERPwrRxPathB.setStatus('current')
if mibBuilder.loadTexts:
rawBERPwrRxPathB.setDescription('Raw unadjusted BER power level on FPGA Rx Path B of SM.')
radio_mode_status = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 127), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('undefined', 0), ('pmp430', 1), ('pmp450Interoperability', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
radioModeStatus.setStatus('current')
if mibBuilder.loadTexts:
radioModeStatus.setDescription('The current radio mode that SM is operating in. PMP 430 SMs only. Introduced in release 12.2.')
adapt_rate_low_pri = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 128), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 6, 8))).clone(namedValues=named_values(('noSession', 0), ('rate1X', 1), ('rate2X', 2), ('rete3X', 3), ('rate4X', 4), ('rate6X', 6), ('rate8X', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adaptRateLowPri.setStatus('current')
if mibBuilder.loadTexts:
adaptRateLowPri.setDescription('The current transmitting rate of the low priority VC. 0 : SM is not in session 1 : 1X QPSK SISO 2 : 2X 16-QAM SISO or QPSK MIMO 3 : 3X 64-QAM SISO 4 : 4X 256-QAM SISO or 16-QAM MIMO 6 : 6X 64-QAM MIMO 8 : 8X 256-QAM MIMO')
adapt_rate_high_pri = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 129), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(-1, 0, 1, 2, 3, 4, 6, 8))).clone(namedValues=named_values(('noHighPriorityChannel', -1), ('noSession', 0), ('rate1X', 1), ('rate2X', 2), ('rete3X', 3), ('rate4X', 4), ('rate6X', 6), ('rate8X', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
adaptRateHighPri.setStatus('current')
if mibBuilder.loadTexts:
adaptRateHighPri.setDescription('The current transmitting rate of the high priority VC. -1 : High Priority Channel not configured 0 : SM is not in session 1 : 1X QPSK SISO 2 : 2X 16-QAM SISO or QPSK MIMO 3 : 3X 64-QAM SISO 4 : 4X 256-QAM SISO or 16-QAM MIMO 6 : 6X 64-QAM MIMO 8 : 8X 256-QAM MIMO')
bit_errors_qsp_kpath_a = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 130), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bitErrorsQSPKpathA.setStatus('current')
if mibBuilder.loadTexts:
bitErrorsQSPKpathA.setDescription('Number of bit errors received from BER packet at QPSK path A. Valid MIMO platforms only.')
bit_errors_qsp_kpath_b = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 131), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bitErrorsQSPKpathB.setStatus('current')
if mibBuilder.loadTexts:
bitErrorsQSPKpathB.setDescription('Number of bit errors received from BER packet at QPSK path B. Valid MIMO platforms only.')
bit_errors16_qa_mpath_a = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 132), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bitErrors16QAMpathA.setStatus('current')
if mibBuilder.loadTexts:
bitErrors16QAMpathA.setDescription('Number of bit errors received from BER packet at 16-QAM path A. Valid MIMO platforms only. Engineering use only.')
bit_errors16_qa_mpath_b = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 133), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bitErrors16QAMpathB.setStatus('current')
if mibBuilder.loadTexts:
bitErrors16QAMpathB.setDescription('Number of bit errors received from BER packet at 16-QAM path B. Valid MIMO platforms only. Engineering use only.')
bit_errors64_qa_mpath_a = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 134), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bitErrors64QAMpathA.setStatus('current')
if mibBuilder.loadTexts:
bitErrors64QAMpathA.setDescription('Number of bit errors received from BER packet at 64-QAM path A. Valid MIMO platforms only. Engineering use only.')
bit_errors64_qa_mpath_b = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 135), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bitErrors64QAMpathB.setStatus('current')
if mibBuilder.loadTexts:
bitErrors64QAMpathB.setDescription('Number of bit errors received from BER packet at 64-QAM path B. Valid MIMO platforms only. Engineering use only.')
bit_errors256_qa_mpath_a = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 136), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bitErrors256QAMpathA.setStatus('current')
if mibBuilder.loadTexts:
bitErrors256QAMpathA.setDescription('Number of bit errors received from BER packet at 256-QAM path A. Valid MIMO platforms only. Engineering use only.')
bit_errors256_qa_mpath_b = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 137), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bitErrors256QAMpathB.setStatus('current')
if mibBuilder.loadTexts:
bitErrors256QAMpathB.setDescription('Number of bit errors received from BER packet at 256-QAM path B. Valid MIMO platforms only. Engineering use only.')
bits_received_per_path_modulation = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 138), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
bitsReceivedPerPathModulation.setStatus('current')
if mibBuilder.loadTexts:
bitsReceivedPerPathModulation.setDescription('Number of bit received from BER. To calculate Bit Error Rate, take bit errors at a modulation and path and divide by this OID. To get combined BER add errors and divide by this multiplied by each path and modulation. i.e. MIMO QPSK combined BER = ((errors on path A) + (errors on path B))/(bits recieved per path modulation * 2) Valid MIMO platforms only.')
dhcp_server_table = mib_table((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19))
if mibBuilder.loadTexts:
dhcpServerTable.setStatus('current')
if mibBuilder.loadTexts:
dhcpServerTable.setDescription('The table of DHCP server hosts.')
dhcp_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1)).setIndexNames((0, 'WHISP-SM-MIB', 'hostIp'))
if mibBuilder.loadTexts:
dhcpServerEntry.setStatus('current')
if mibBuilder.loadTexts:
dhcpServerEntry.setDescription('Entry of DHCP server hosts.')
host_ip = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostIp.setStatus('current')
if mibBuilder.loadTexts:
hostIp.setDescription('DHCP server IP address.')
host_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1, 2), phys_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostMacAddress.setStatus('current')
if mibBuilder.loadTexts:
hostMacAddress.setDescription('Private host MAC address.')
host_lease = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 2, 19, 1, 3), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hostLease.setStatus('current')
if mibBuilder.loadTexts:
hostLease.setDescription('Lease time assigned by DHCP server host.')
whisp_sm_config_group = object_group((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 1)).setObjects(('WHISP-SM-MIB', 'rfScanList'), ('WHISP-SM-MIB', 'rfScanListBandFilter'), ('WHISP-SM-MIB', 'powerUpMode'), ('WHISP-SM-MIB', 'lanIpSm'), ('WHISP-SM-MIB', 'lanMaskSm'), ('WHISP-SM-MIB', 'defaultGwSm'), ('WHISP-SM-MIB', 'networkAccess'), ('WHISP-SM-MIB', 'authKeySm'), ('WHISP-SM-MIB', 'enable8023link'), ('WHISP-SM-MIB', 'authKeyOption'), ('WHISP-SM-MIB', 'timingPulseGated'), ('WHISP-SM-MIB', 'naptPrivateIP'), ('WHISP-SM-MIB', 'naptPrivateSubnetMask'), ('WHISP-SM-MIB', 'naptPublicIP'), ('WHISP-SM-MIB', 'naptPublicSubnetMask'), ('WHISP-SM-MIB', 'naptPublicGatewayIP'), ('WHISP-SM-MIB', 'naptRFPublicIP'), ('WHISP-SM-MIB', 'naptRFPublicSubnetMask'), ('WHISP-SM-MIB', 'naptRFPublicGateway'), ('WHISP-SM-MIB', 'naptEnable'), ('WHISP-SM-MIB', 'arpCacheTimeout'), ('WHISP-SM-MIB', 'tcpGarbageCollectTmout'), ('WHISP-SM-MIB', 'udpGarbageCollectTmout'), ('WHISP-SM-MIB', 'dhcpClientEnable'), ('WHISP-SM-MIB', 'dhcpServerEnable'), ('WHISP-SM-MIB', 'dhcpServerLeaseTime'), ('WHISP-SM-MIB', 'dhcpIPStart'), ('WHISP-SM-MIB', 'dnsAutomatic'), ('WHISP-SM-MIB', 'prefferedDNSIP'), ('WHISP-SM-MIB', 'alternateDNSIP'), ('WHISP-SM-MIB', 'natDNSProxyEnable'), ('WHISP-SM-MIB', 'spectrumAnalysisDisplay'), ('WHISP-SM-MIB', 'dmzIP'), ('WHISP-SM-MIB', 'dmzEnable'), ('WHISP-SM-MIB', 'dhcpNumIPsToLease'), ('WHISP-SM-MIB', 'pppoeFilter'), ('WHISP-SM-MIB', 'smbFilter'), ('WHISP-SM-MIB', 'snmpFilter'), ('WHISP-SM-MIB', 'userP1Filter'), ('WHISP-SM-MIB', 'userP2Filter'), ('WHISP-SM-MIB', 'userP3Filter'), ('WHISP-SM-MIB', 'allOtherIpFilter'), ('WHISP-SM-MIB', 'allIpv4Filter'), ('WHISP-SM-MIB', 'upLinkBCastFilter'), ('WHISP-SM-MIB', 'arpFilter'), ('WHISP-SM-MIB', 'allOthersFilter'), ('WHISP-SM-MIB', 'userDefinedPort1'), ('WHISP-SM-MIB', 'port1TCPFilter'), ('WHISP-SM-MIB', 'port1UDPFilter'), ('WHISP-SM-MIB', 'userDefinedPort2'), ('WHISP-SM-MIB', 'port2TCPFilter'), ('WHISP-SM-MIB', 'port2UDPFilter'), ('WHISP-SM-MIB', 'userDefinedPort3'), ('WHISP-SM-MIB', 'port3TCPFilter'), ('WHISP-SM-MIB', 'port3UDPFilter'), ('WHISP-SM-MIB', 'bootpcFilter'), ('WHISP-SM-MIB', 'bootpsFilter'), ('WHISP-SM-MIB', 'ip4MultFilter'), ('WHISP-SM-MIB', 'ingressVID'), ('WHISP-SM-MIB', 'lowPriorityUplinkCIR'), ('WHISP-SM-MIB', 'lowPriorityDownlinkCIR'), ('WHISP-SM-MIB', 'hiPriorityChannel'), ('WHISP-SM-MIB', 'hiPriorityUplinkCIR'), ('WHISP-SM-MIB', 'hiPriorityDownlinkCIR'), ('WHISP-SM-MIB', 'smRateAdapt'), ('WHISP-SM-MIB', 'upLnkMaxBurstDataRate'), ('WHISP-SM-MIB', 'upLnkDataRate'), ('WHISP-SM-MIB', 'upLnkLimit'), ('WHISP-SM-MIB', 'dwnLnkMaxBurstDataRate'), ('WHISP-SM-MIB', 'cyclicPrefixScan'), ('WHISP-SM-MIB', 'bandwidthScan'), ('WHISP-SM-MIB', 'apSelection'), ('WHISP-SM-MIB', 'radioBandscanConfig'), ('WHISP-SM-MIB', 'forcepoweradjust'), ('WHISP-SM-MIB', 'clearBerrResults'), ('WHISP-SM-MIB', 'berrautoupdateflag'), ('WHISP-SM-MIB', 'testSMBER'), ('WHISP-SM-MIB', 'dwnLnkDataRate'), ('WHISP-SM-MIB', 'dwnLnkLimit'), ('WHISP-SM-MIB', 'dfsConfig'), ('WHISP-SM-MIB', 'ethAccessFilterEnable'), ('WHISP-SM-MIB', 'ipAccessFilterEnable'), ('WHISP-SM-MIB', 'allowedIPAccess1'), ('WHISP-SM-MIB', 'allowedIPAccess2'), ('WHISP-SM-MIB', 'allowedIPAccess3'), ('WHISP-SM-MIB', 'allowedIPAccessNMLength1'), ('WHISP-SM-MIB', 'allowedIPAccessNMLength2'), ('WHISP-SM-MIB', 'allowedIPAccessNMLength3'), ('WHISP-SM-MIB', 'rfDhcpState'), ('WHISP-SM-MIB', 'bCastMIR'), ('WHISP-SM-MIB', 'bhsReReg'), ('WHISP-SM-MIB', 'smLEDModeFlag'), ('WHISP-SM-MIB', 'ethAccessEnable'), ('WHISP-SM-MIB', 'pppoeEnable'), ('WHISP-SM-MIB', 'pppoeAuthenticationType'), ('WHISP-SM-MIB', 'pppoeAccessConcentrator'), ('WHISP-SM-MIB', 'pppoeServiceName'), ('WHISP-SM-MIB', 'pppoeUserName'), ('WHISP-SM-MIB', 'pppoePassword'), ('WHISP-SM-MIB', 'pppoeTCPMSSClampEnable'), ('WHISP-SM-MIB', 'pppoeMTUOverrideEnable'), ('WHISP-SM-MIB', 'pppoeMTUOverrideValue'), ('WHISP-SM-MIB', 'pppoeTimerType'), ('WHISP-SM-MIB', 'pppoeTimeoutPeriod'), ('WHISP-SM-MIB', 'timedSpectrumAnalysisDuration'), ('WHISP-SM-MIB', 'spectrumAnalysisScanBandwidth'), ('WHISP-SM-MIB', 'spectrumAnalysisOnBoot'), ('WHISP-SM-MIB', 'spectrumAnalysisAction'), ('WHISP-SM-MIB', 'pppoeConnectOD'), ('WHISP-SM-MIB', 'pppoeDisconnectOD'), ('WHISP-SM-MIB', 'smAntennaType'), ('WHISP-SM-MIB', 'natConnectionType'), ('WHISP-SM-MIB', 'wanPingReplyEnable'), ('WHISP-SM-MIB', 'packetFilterDirection'), ('WHISP-SM-MIB', 'colorCode2'), ('WHISP-SM-MIB', 'colorCodepriority2'), ('WHISP-SM-MIB', 'colorCode3'), ('WHISP-SM-MIB', 'colorCodepriority3'), ('WHISP-SM-MIB', 'colorCode4'), ('WHISP-SM-MIB', 'colorCodepriority4'), ('WHISP-SM-MIB', 'colorCode5'), ('WHISP-SM-MIB', 'colorCodepriority5'), ('WHISP-SM-MIB', 'colorCode6'), ('WHISP-SM-MIB', 'colorCodepriority6'), ('WHISP-SM-MIB', 'colorCode7'), ('WHISP-SM-MIB', 'colorCodepriority7'), ('WHISP-SM-MIB', 'colorCode8'), ('WHISP-SM-MIB', 'colorCodepriority8'), ('WHISP-SM-MIB', 'colorCode9'), ('WHISP-SM-MIB', 'colorCodepriority9'), ('WHISP-SM-MIB', 'colorCode10'), ('WHISP-SM-MIB', 'colorCodepriority10'), ('WHISP-SM-MIB', 'berDeModSelect'), ('WHISP-SM-MIB', 'multicastVCRcvRate'), ('WHISP-SM-MIB', 'syslogServerApPreferred'), ('WHISP-SM-MIB', 'syslogMinLevelApPreferred'), ('WHISP-SM-MIB', 'syslogSMXmitSetting'), ('WHISP-SM-MIB', 'syslogSMXmitControl'), ('WHISP-SM-MIB', 'naptRemoteManage'), ('WHISP-SM-MIB', 'eapPeerAAAServerCommonName'), ('WHISP-SM-MIB', 'pmp430ApRegistrationOptions'), ('WHISP-SM-MIB', 'switchRadioModeAndReboot'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whisp_sm_config_group = whispSmConfigGroup.setStatus('current')
if mibBuilder.loadTexts:
whispSmConfigGroup.setDescription('Canopy Subscriber Module configuration group.')
whisp_sm_status_group = object_group((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 2)).setObjects(('WHISP-SM-MIB', 'sessionStatus'), ('WHISP-SM-MIB', 'rssi'), ('WHISP-SM-MIB', 'jitter'), ('WHISP-SM-MIB', 'airDelay'), ('WHISP-SM-MIB', 'radioSlicingSm'), ('WHISP-SM-MIB', 'radioTxGainSm'), ('WHISP-SM-MIB', 'calibrationStatus'), ('WHISP-SM-MIB', 'radioDbm'), ('WHISP-SM-MIB', 'registeredToAp'), ('WHISP-SM-MIB', 'dhcpCip'), ('WHISP-SM-MIB', 'dhcpSip'), ('WHISP-SM-MIB', 'dhcpClientLease'), ('WHISP-SM-MIB', 'dhcpCSMask'), ('WHISP-SM-MIB', 'dhcpDfltRterIP'), ('WHISP-SM-MIB', 'dhcpcdns1'), ('WHISP-SM-MIB', 'dhcpcdns2'), ('WHISP-SM-MIB', 'dhcpcdns3'), ('WHISP-SM-MIB', 'dhcpDomName'), ('WHISP-SM-MIB', 'adaptRate'), ('WHISP-SM-MIB', 'adaptRateLowPri'), ('WHISP-SM-MIB', 'adaptRateHighPri'), ('WHISP-SM-MIB', 'bitErrorsQSPKpathA'), ('WHISP-SM-MIB', 'bitErrorsQSPKpathB'), ('WHISP-SM-MIB', 'bitErrors16QAMpathA'), ('WHISP-SM-MIB', 'bitErrors16QAMpathB'), ('WHISP-SM-MIB', 'bitErrors64QAMpathA'), ('WHISP-SM-MIB', 'bitErrors64QAMpathB'), ('WHISP-SM-MIB', 'bitErrors256QAMpathA'), ('WHISP-SM-MIB', 'bitErrors256QAMpathB'), ('WHISP-SM-MIB', 'bitsReceivedPerPathModulation'), ('WHISP-SM-MIB', 'radioDbmInt'), ('WHISP-SM-MIB', 'dfsStatus'), ('WHISP-SM-MIB', 'radioTxPwr'), ('WHISP-SM-MIB', 'activeRegion'), ('WHISP-SM-MIB', 'snmpBerLevel'), ('WHISP-SM-MIB', 'nbBitsRcvd'), ('WHISP-SM-MIB', 'nbPriBitsErr'), ('WHISP-SM-MIB', 'nbSndBitsErr'), ('WHISP-SM-MIB', 'primaryBER'), ('WHISP-SM-MIB', 'secondaryBER'), ('WHISP-SM-MIB', 'totalBER'), ('WHISP-SM-MIB', 'minRSSI'), ('WHISP-SM-MIB', 'maxRSSI'), ('WHISP-SM-MIB', 'minJitter'), ('WHISP-SM-MIB', 'maxJitter'), ('WHISP-SM-MIB', 'smSessionTimer'), ('WHISP-SM-MIB', 'pppoeSessionStatus'), ('WHISP-SM-MIB', 'pppoeSessionID'), ('WHISP-SM-MIB', 'pppoeIPCPAddress'), ('WHISP-SM-MIB', 'pppoeMTUOverrideEn'), ('WHISP-SM-MIB', 'pppoeMTUValue'), ('WHISP-SM-MIB', 'pppoeTimerTypeValue'), ('WHISP-SM-MIB', 'pppoeTimeoutValue'), ('WHISP-SM-MIB', 'pppoeDNSServer1'), ('WHISP-SM-MIB', 'pppoeDNSServer2'), ('WHISP-SM-MIB', 'pppoeControlBytesSent'), ('WHISP-SM-MIB', 'pppoeControlBytesReceived'), ('WHISP-SM-MIB', 'pppoeDataBytesSent'), ('WHISP-SM-MIB', 'pppoeDataBytesReceived'), ('WHISP-SM-MIB', 'pppoeEnabledStatus'), ('WHISP-SM-MIB', 'pppoeTCPMSSClampEnableStatus'), ('WHISP-SM-MIB', 'pppoeACNameStatus'), ('WHISP-SM-MIB', 'pppoeSvcNameStatus'), ('WHISP-SM-MIB', 'pppoeSessUptime'), ('WHISP-SM-MIB', 'primaryBERDisplay'), ('WHISP-SM-MIB', 'secondaryBERDisplay'), ('WHISP-SM-MIB', 'totalBERDisplay'), ('WHISP-SM-MIB', 'mimoQpskBerDisplay'), ('WHISP-SM-MIB', 'mimo16QamBerDisplay'), ('WHISP-SM-MIB', 'mimo64QamBerDisplay'), ('WHISP-SM-MIB', 'mimo256QamBerDisplay'), ('WHISP-SM-MIB', 'mimoBerRcvModulationType'), ('WHISP-SM-MIB', 'minRadioDbm'), ('WHISP-SM-MIB', 'maxRadioDbm'), ('WHISP-SM-MIB', 'maxRadioDbmDeprecated'), ('WHISP-SM-MIB', 'pppoeSessIdleTime'), ('WHISP-SM-MIB', 'radioDbmAvg'), ('WHISP-SM-MIB', 'zoltarFPGAFreqOffset'), ('WHISP-SM-MIB', 'zoltarSWFreqOffset'), ('WHISP-SM-MIB', 'airDelayns'), ('WHISP-SM-MIB', 'currentColorCode'), ('WHISP-SM-MIB', 'currentColorCodePri'), ('WHISP-SM-MIB', 'currentChanFreq'), ('WHISP-SM-MIB', 'linkQualityBeacon'), ('WHISP-SM-MIB', 'currentCyclicPrefix'), ('WHISP-SM-MIB', 'currentBandwidth'), ('WHISP-SM-MIB', 'berPwrRxFPGAPathA'), ('WHISP-SM-MIB', 'berPwrRxFPGAPathB'), ('WHISP-SM-MIB', 'rawBERPwrRxPathA'), ('WHISP-SM-MIB', 'rawBERPwrRxPathB'), ('WHISP-SM-MIB', 'linkQualityData1XVertical'), ('WHISP-SM-MIB', 'linkQualityData2XVertical'), ('WHISP-SM-MIB', 'linkQualityData3XVertical'), ('WHISP-SM-MIB', 'linkQualityData4XVertical'), ('WHISP-SM-MIB', 'linkQualityData1XHorizontal'), ('WHISP-SM-MIB', 'linkQualityData2XHorizontal'), ('WHISP-SM-MIB', 'linkQualityData3XHorizontal'), ('WHISP-SM-MIB', 'linkQualityData4XHorizontal'), ('WHISP-SM-MIB', 'signalToNoiseRatioSMVertical'), ('WHISP-SM-MIB', 'signalToNoiseRatioSMHorizontal'), ('WHISP-SM-MIB', 'signalStrengthRatio'), ('WHISP-SM-MIB', 'radioDbmHorizontal'), ('WHISP-SM-MIB', 'radioDbmVertical'), ('WHISP-SM-MIB', 'rfStatTxSuppressionCount'), ('WHISP-SM-MIB', 'receiveFragmentsModulationPercentage'), ('WHISP-SM-MIB', 'fragmentsReceived1XVertical'), ('WHISP-SM-MIB', 'fragmentsReceived2XVertical'), ('WHISP-SM-MIB', 'fragmentsReceived3XVertical'), ('WHISP-SM-MIB', 'fragmentsReceived4XVertical'), ('WHISP-SM-MIB', 'fragmentsReceived1XHorizontal'), ('WHISP-SM-MIB', 'fragmentsReceived2XHorizontal'), ('WHISP-SM-MIB', 'fragmentsReceived3XHorizontal'), ('WHISP-SM-MIB', 'fragmentsReceived4XHorizontal'), ('WHISP-SM-MIB', 'bridgecbUplinkCreditRate'), ('WHISP-SM-MIB', 'bridgecbUplinkCreditLimit'), ('WHISP-SM-MIB', 'bridgecbDownlinkCreditRate'), ('WHISP-SM-MIB', 'bridgecbDownlinkCreditLimit'), ('WHISP-SM-MIB', 'bridgecbDownlinkMaxBurstBitRate'), ('WHISP-SM-MIB', 'bridgecbUplinkMaxBurstBitRate'), ('WHISP-SM-MIB', 'radioModeStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whisp_sm_status_group = whispSmStatusGroup.setStatus('current')
if mibBuilder.loadTexts:
whispSmStatusGroup.setDescription('Canopy Subscriber Module status group.')
whisp_sm_notif_group = notification_group((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 3)).setObjects(('WHISP-SM-MIB', 'enterSpectrumAnalysis'), ('WHISP-SM-MIB', 'availableSpectrumAnalysis'), ('WHISP-SM-MIB', 'whispRadarDetected'), ('WHISP-SM-MIB', 'whispRadarEnd'), ('WHISP-SM-MIB', 'smNatWanDHCPClientEvent'), ('WHISP-SM-MIB', 'smNatRFPubDHCPClientEvent'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whisp_sm_notif_group = whispSmNotifGroup.setStatus('current')
if mibBuilder.loadTexts:
whispSmNotifGroup.setDescription('WHiSP SMs notification group.')
whisp_mapping_table_group = object_group((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 3, 4)).setObjects(('WHISP-SM-MIB', 'tableIndex'), ('WHISP-SM-MIB', 'protocol'), ('WHISP-SM-MIB', 'port'), ('WHISP-SM-MIB', 'localIp'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
whisp_mapping_table_group = whispMappingTableGroup.setStatus('current')
if mibBuilder.loadTexts:
whispMappingTableGroup.setDescription('Canopy SM NAT port mapping Table group.')
whisp_radar_detected = notification_type((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 1, 1)).setObjects(('WHISP-SM-MIB', 'dfsStatus'), ('WHISP-BOX-MIBV2-MIB', 'whispBoxEsn'))
if mibBuilder.loadTexts:
whispRadarDetected.setStatus('current')
if mibBuilder.loadTexts:
whispRadarDetected.setDescription('Radar detected transmit stopped.')
whisp_radar_end = notification_type((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 1, 2)).setObjects(('WHISP-SM-MIB', 'dfsStatus'), ('WHISP-BOX-MIBV2-MIB', 'whispBoxEsn'))
if mibBuilder.loadTexts:
whispRadarEnd.setStatus('current')
if mibBuilder.loadTexts:
whispRadarEnd.setDescription('Radar ended back to normal transmit.')
enter_spectrum_analysis = notification_type((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 2, 1)).setObjects(('WHISP-BOX-MIBV2-MIB', 'whispBoxEsn'))
if mibBuilder.loadTexts:
enterSpectrumAnalysis.setStatus('current')
if mibBuilder.loadTexts:
enterSpectrumAnalysis.setDescription('Entering spectrum analysis. physAddress - MAC address of the SM')
available_spectrum_analysis = notification_type((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 2, 2)).setObjects(('WHISP-BOX-MIBV2-MIB', 'whispBoxEsn'))
if mibBuilder.loadTexts:
availableSpectrumAnalysis.setStatus('current')
if mibBuilder.loadTexts:
availableSpectrumAnalysis.setDescription('Spectrum analysis is complete, SM is re-registered with AP and results are available. physAddress - MAC address of the SM')
sm_nat_wan_dhcp_client_event = notification_type((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 3, 1)).setObjects(('WHISP-SM-MIB', 'dhcpCip'), ('WHISP-BOX-MIBV2-MIB', 'whispBoxEsn'))
if mibBuilder.loadTexts:
smNatWanDHCPClientEvent.setStatus('current')
if mibBuilder.loadTexts:
smNatWanDHCPClientEvent.setDescription('NAT WAN DHCP Client has received a new address via DHCP.')
sm_nat_rf_pub_dhcp_client_event = notification_type((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 4, 3, 2)).setObjects(('WHISP-BOX-MIBV2-MIB', 'dhcpRfPublicIp'), ('WHISP-BOX-MIBV2-MIB', 'whispBoxEsn'))
if mibBuilder.loadTexts:
smNatRFPubDHCPClientEvent.setStatus('current')
if mibBuilder.loadTexts:
smNatRFPubDHCPClientEvent.setDescription('NAT RF Public DHCP Client has received a new address via DHCP.')
clear_link_stats = mib_scalar((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 8, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
clearLinkStats.setStatus('current')
if mibBuilder.loadTexts:
clearLinkStats.setDescription('Setting this to a nonzero value will clear the link stats.')
whisp_mapping_table = mib_table((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5))
if mibBuilder.loadTexts:
whispMappingTable.setStatus('current')
if mibBuilder.loadTexts:
whispMappingTable.setDescription('NAT port mapping information table.')
whisp_mapping_entry = mib_table_row((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1)).setIndexNames((0, 'WHISP-SM-MIB', 'tableIndex'))
if mibBuilder.loadTexts:
whispMappingEntry.setStatus('current')
if mibBuilder.loadTexts:
whispMappingEntry.setDescription('Mapping table entry.')
table_index = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
tableIndex.setStatus('current')
if mibBuilder.loadTexts:
tableIndex.setDescription('User information table index.')
protocol = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
protocol.setStatus('current')
if mibBuilder.loadTexts:
protocol.setDescription('Protocol type: 0:both UDP and TCP, 1:UDP, 2:TCP.')
port = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
port.setStatus('current')
if mibBuilder.loadTexts:
port.setDescription('Application port number. e.g. 23=telnet, 21=ftp etc. Should be a positive integer.')
local_ip = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 5, 1, 4), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
localIp.setStatus('current')
if mibBuilder.loadTexts:
localIp.setDescription('IP of local host to which the incoming packet mapped to an application should be forwarded.')
whisp_sm_translation_table = mib_table((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6))
if mibBuilder.loadTexts:
whispSmTranslationTable.setStatus('current')
if mibBuilder.loadTexts:
whispSmTranslationTable.setDescription('Translation Table.')
whisp_sm_translation_table_entry = mib_table_row((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1)).setIndexNames((0, 'WHISP-SM-MIB', 'whispTranslationTableIndex'))
if mibBuilder.loadTexts:
whispSmTranslationTableEntry.setStatus('current')
if mibBuilder.loadTexts:
whispSmTranslationTableEntry.setDescription('Translation Table Entry.')
whisp_translation_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 127))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
whispTranslationTableIndex.setStatus('current')
if mibBuilder.loadTexts:
whispTranslationTableIndex.setDescription('Index into translation table.')
whisp_translation_table_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 2), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
whispTranslationTableMacAddr.setStatus('current')
if mibBuilder.loadTexts:
whispTranslationTableMacAddr.setDescription('MAC Address of the registered enity.')
whisp_translation_table_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
whispTranslationTableIpAddr.setStatus('current')
if mibBuilder.loadTexts:
whispTranslationTableIpAddr.setDescription('Ip Address of the registered entity.')
whisp_translation_table_age = mib_table_column((1, 3, 6, 1, 4, 1, 161, 19, 3, 2, 6, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
whispTranslationTableAge.setStatus('current')
if mibBuilder.loadTexts:
whispTranslationTableAge.setDescription('Age of the registered entity.')
mibBuilder.exportSymbols('WHISP-SM-MIB', packetFilterDirection=packetFilterDirection, dhcpServerPktRcv=dhcpServerPktRcv, rssi=rssi, bridgecbDownlinkMaxBurstBitRate=bridgecbDownlinkMaxBurstBitRate, pppoeMTUOverrideValue=pppoeMTUOverrideValue, maxRSSI=maxRSSI, ethAccessEnable=ethAccessEnable, naptPrivateIP=naptPrivateIP, port1TCPFilter=port1TCPFilter, linkQualityData3XHorizontal=linkQualityData3XHorizontal, colorCode5=colorCode5, dhcpServerEntry=dhcpServerEntry, pppoeIPCPAddress=pppoeIPCPAddress, syslogSMXmitSetting=syslogSMXmitSetting, minJitter=minJitter, phase1=phase1, pppoeTimeoutPeriod=pppoeTimeoutPeriod, lanMaskSm=lanMaskSm, dhcpServerPktToss=dhcpServerPktToss, bitErrors16QAMpathA=bitErrors16QAMpathA, ip4MultFilter=ip4MultFilter, upLnkLimit=upLnkLimit, upLinkBCastFilter=upLinkBCastFilter, snmpFilter=snmpFilter, allowedIPAccessNMLength1=allowedIPAccessNMLength1, jitter=jitter, airDelay=airDelay, colorCodepriority4=colorCodepriority4, arpFilter=arpFilter, fragmentsReceived3XHorizontal=fragmentsReceived3XHorizontal, currentColorCodePri=currentColorCodePri, whispMappingTableGroup=whispMappingTableGroup, smLEDModeFlag=smLEDModeFlag, clearLinkStats=clearLinkStats, multicastVCRcvRate=multicastVCRcvRate, receiveFragmentsModulationPercentage=receiveFragmentsModulationPercentage, signalToNoiseRatioSMVertical=signalToNoiseRatioSMVertical, allIpv4Filter=allIpv4Filter, dhcpSip=dhcpSip, ipAccessFilterEnable=ipAccessFilterEnable, whispTranslationTableIndex=whispTranslationTableIndex, nbBitsRcvd=nbBitsRcvd, linkQualityData1XVertical=linkQualityData1XVertical, radioDbmHorizontal=radioDbmHorizontal, hiPriorityChannel=hiPriorityChannel, pppoeControlBytesSent=pppoeControlBytesSent, fragmentsReceived2XHorizontal=fragmentsReceived2XHorizontal, bridgecbDownlinkCreditLimit=bridgecbDownlinkCreditLimit, wanPingReplyEnable=wanPingReplyEnable, colorCode10=colorCode10, hostIp=hostIp, rfDhcpState=rfDhcpState, radioTxPwr=radioTxPwr, totalBERDisplay=totalBERDisplay, zoltarSWFreqOffset=zoltarSWFreqOffset, prefferedDNSIP=prefferedDNSIP, bitErrors16QAMpathB=bitErrors16QAMpathB, colorCodepriority7=colorCodepriority7, whispRadarDetected=whispRadarDetected, port2TCPFilter=port2TCPFilter, dhcpDomName=dhcpDomName, udpGarbageCollectTmout=udpGarbageCollectTmout, whispMappingEntry=whispMappingEntry, spectrumAnalysisDisplay=spectrumAnalysisDisplay, rfScanListBandFilter=rfScanListBandFilter, whispMappingTable=whispMappingTable, pppoeTCPMSSClampEnableStatus=pppoeTCPMSSClampEnableStatus, action=action, whispSmTranslationTable=whispSmTranslationTable, spectrumAnalysisOnBoot=spectrumAnalysisOnBoot, powerUpMode=powerUpMode, linkQualityData1XHorizontal=linkQualityData1XHorizontal, colorCodepriority8=colorCodepriority8, enable8023link=enable8023link, colorCode3=colorCode3, lowPriorityDownlinkCIR=lowPriorityDownlinkCIR, pppoeDataBytesSent=pppoeDataBytesSent, protocol=protocol, PYSNMP_MODULE_ID=whispSmMibModule, mimo256QamBerDisplay=mimo256QamBerDisplay, ethAccessFilterEnable=ethAccessFilterEnable, activeRegion=activeRegion, radioDbmAvg=radioDbmAvg, secondaryBERDisplay=secondaryBERDisplay, natConnectionType=natConnectionType, pppoeMTUOverrideEnable=pppoeMTUOverrideEnable, dwnLnkLimit=dwnLnkLimit, bitErrorsQSPKpathA=bitErrorsQSPKpathA, naptPublicSubnetMask=naptPublicSubnetMask, whispSmSecurity=whispSmSecurity, colorCodepriority3=colorCodepriority3, port=port, colorCodepriority6=colorCodepriority6, rfStatTxSuppressionCount=rfStatTxSuppressionCount, primaryBER=primaryBER, certTable=certTable, whispSmDfsEvent=whispSmDfsEvent, userDefinedPort1=userDefinedPort1, pppoeDisconnectOD=pppoeDisconnectOD, pppoeTimerType=pppoeTimerType, bridgecbUplinkCreditLimit=bridgecbUplinkCreditLimit, userP2Filter=userP2Filter, pppoeEnabledStatus=pppoeEnabledStatus, bCastMIR=bCastMIR, pppoeTimerTypeValue=pppoeTimerTypeValue, port3UDPFilter=port3UDPFilter, allowedIPAccessNMLength3=allowedIPAccessNMLength3, naptPublicGatewayIP=naptPublicGatewayIP, naptEnable=naptEnable, dhcpIPStart=dhcpIPStart, allowedIPAccess2=allowedIPAccess2, adaptRateHighPri=adaptRateHighPri, userDefinedPort3=userDefinedPort3, pppoeACNameStatus=pppoeACNameStatus, calibrationStatus=calibrationStatus, radioDbm=radioDbm, pppoeDNSServer2=pppoeDNSServer2, rfScanList=rfScanList, allOthersFilter=allOthersFilter, dhcpServerLeaseTime=dhcpServerLeaseTime, pppoeSessUptime=pppoeSessUptime, fragmentsReceived1XVertical=fragmentsReceived1XVertical, bridgecbUplinkMaxBurstBitRate=bridgecbUplinkMaxBurstBitRate, colorCodepriority2=colorCodepriority2, authKeyOption=authKeyOption, timedSpectrumAnalysisDuration=timedSpectrumAnalysisDuration, pppoeDNSServer1=pppoeDNSServer1, whispSmConfig=whispSmConfig, currentColorCode=currentColorCode, bitErrors64QAMpathA=bitErrors64QAMpathA, sessionStatus=sessionStatus, whispSmStatus=whispSmStatus, whispSmMibModule=whispSmMibModule, authUsername=authUsername, colorCode7=colorCode7, linkQualityData4XVertical=linkQualityData4XVertical, dhcpcdns1=dhcpcdns1, currentChanFreq=currentChanFreq, cert=cert, enterSpectrumAnalysis=enterSpectrumAnalysis, phase2=phase2, nbPriBitsErr=nbPriBitsErr, bootpcFilter=bootpcFilter, linkQualityData2XVertical=linkQualityData2XVertical, fragmentsReceived4XVertical=fragmentsReceived4XVertical, smRateAdapt=smRateAdapt, userP1Filter=userP1Filter, allowedIPAccess1=allowedIPAccess1, rawBERPwrRxPathB=rawBERPwrRxPathB, pppoeAuthenticationType=pppoeAuthenticationType, airDelayns=airDelayns, allOtherIpFilter=allOtherIpFilter, bitErrors256QAMpathA=bitErrors256QAMpathA, pppoeControlBytesReceived=pppoeControlBytesReceived, linkQualityData2XHorizontal=linkQualityData2XHorizontal, nbSndBitsErr=nbSndBitsErr, pppoeMTUOverrideEn=pppoeMTUOverrideEn, pmp430ApRegistrationOptions=pmp430ApRegistrationOptions, alternateDNSIP=alternateDNSIP, port2UDPFilter=port2UDPFilter, upLnkDataRate=upLnkDataRate, smAntennaType=smAntennaType, timingPulseGated=timingPulseGated, userDefinedPort2=userDefinedPort2, colorCode4=colorCode4, naptRFPublicSubnetMask=naptRFPublicSubnetMask, smbFilter=smbFilter, colorCode6=colorCode6, clearBerrResults=clearBerrResults, pppoeEnable=pppoeEnable, natDNSProxyEnable=natDNSProxyEnable, berrautoupdateflag=berrautoupdateflag, useRealm=useRealm, hostLease=hostLease, linkQualityData4XHorizontal=linkQualityData4XHorizontal, bitErrorsQSPKpathB=bitErrorsQSPKpathB, bitsReceivedPerPathModulation=bitsReceivedPerPathModulation, dhcpcdns2=dhcpcdns2, bandwidthScan=bandwidthScan, allowedIPAccess3=allowedIPAccess3, port1UDPFilter=port1UDPFilter, pppoeTCPMSSClampEnable=pppoeTCPMSSClampEnable, berPwrRxFPGAPathA=berPwrRxFPGAPathA, whispSmEvent=whispSmEvent, arpCacheTimeout=arpCacheTimeout, switchRadioModeAndReboot=switchRadioModeAndReboot, whispSmDHCPClientEvent=whispSmDHCPClientEvent, networkAccess=networkAccess, userP3Filter=userP3Filter, dmzEnable=dmzEnable, pppoeTimeoutValue=pppoeTimeoutValue, pppoeMTUValue=pppoeMTUValue, dfsConfig=dfsConfig, smNatWanDHCPClientEvent=smNatWanDHCPClientEvent, radioTxGainSm=radioTxGainSm, snmpBerLevel=snmpBerLevel, fragmentsReceived2XVertical=fragmentsReceived2XVertical, linkQualityBeacon=linkQualityBeacon, dhcpCSMask=dhcpCSMask, spectrumAnalysisScanBandwidth=spectrumAnalysisScanBandwidth, radioModeStatus=radioModeStatus, defaultGwSm=defaultGwSm, berDeModSelect=berDeModSelect, availableSpectrumAnalysis=availableSpectrumAnalysis, whispSmNotifGroup=whispSmNotifGroup, pppoeServiceName=pppoeServiceName, maxRadioDbmDeprecated=maxRadioDbmDeprecated, apSelection=apSelection, radioDbmVertical=radioDbmVertical, totalBER=totalBER, dhcpServerTable=dhcpServerTable, dhcpClientLease=dhcpClientLease, whispSmControls=whispSmControls, bhsReReg=bhsReReg, colorCode2=colorCode2, whispSmConfigGroup=whispSmConfigGroup, dhcpDfltRterIP=dhcpDfltRterIP, pppoeSessIdleTime=pppoeSessIdleTime, radioSlicingSm=radioSlicingSm, syslogSMXmitControl=syslogSMXmitControl, secondaryBER=secondaryBER, maxRadioDbm=maxRadioDbm, smSessionTimer=smSessionTimer, cyclicPrefixScan=cyclicPrefixScan, adaptRate=adaptRate, whispRadarEnd=whispRadarEnd, pppoeSvcNameStatus=pppoeSvcNameStatus, pppoeSessionStatus=pppoeSessionStatus, dnsAutomatic=dnsAutomatic, allowedIPAccessNMLength2=allowedIPAccessNMLength2, lowPriorityUplinkCIR=lowPriorityUplinkCIR, hostMacAddress=hostMacAddress, currentBandwidth=currentBandwidth, numAuthCerts=numAuthCerts, berPwrRxFPGAPathB=berPwrRxFPGAPathB, hiPriorityUplinkCIR=hiPriorityUplinkCIR, colorCodepriority5=colorCodepriority5, dmzIP=dmzIP, pppoeConnectOD=pppoeConnectOD, lanIpSm=lanIpSm, rawBERPwrRxPathA=rawBERPwrRxPathA, colorCode9=colorCode9, naptPrivateSubnetMask=naptPrivateSubnetMask, certEntry=certEntry, naptPublicIP=naptPublicIP, realm=realm, dhcpcdns3=dhcpcdns3, localIp=localIp, fragmentsReceived3XVertical=fragmentsReceived3XVertical, signalStrengthRatio=signalStrengthRatio, eapPeerAAAServerCommonName=eapPeerAAAServerCommonName, pppoeDataBytesReceived=pppoeDataBytesReceived, whispSmStatusGroup=whispSmStatusGroup, mimo64QamBerDisplay=mimo64QamBerDisplay)
mibBuilder.exportSymbols('WHISP-SM-MIB', upLnkMaxBurstDataRate=upLnkMaxBurstDataRate, minRSSI=minRSSI, radioBandscanConfig=radioBandscanConfig, spectrumAnalysisAction=spectrumAnalysisAction, fragmentsReceived1XHorizontal=fragmentsReceived1XHorizontal, pppoeUserName=pppoeUserName, pppoePassword=pppoePassword, currentCyclicPrefix=currentCyclicPrefix, dhcpClientEnable=dhcpClientEnable, mimo16QamBerDisplay=mimo16QamBerDisplay, maxJitter=maxJitter, dwnLnkMaxBurstDataRate=dwnLnkMaxBurstDataRate, testSMBER=testSMBER, tcpGarbageCollectTmout=tcpGarbageCollectTmout, syslogServerApPreferred=syslogServerApPreferred, colorCodepriority10=colorCodepriority10, whispTranslationTableMacAddr=whispTranslationTableMacAddr, authOuterId=authOuterId, hiPriorityDownlinkCIR=hiPriorityDownlinkCIR, minRadioDbm=minRadioDbm, naptRFPublicIP=naptRFPublicIP, adaptRateLowPri=adaptRateLowPri, dwnLnkDataRate=dwnLnkDataRate, bridgecbUplinkCreditRate=bridgecbUplinkCreditRate, zoltarFPGAFreqOffset=zoltarFPGAFreqOffset, dhcpCip=dhcpCip, pppoeFilter=pppoeFilter, smNatRFPubDHCPClientEvent=smNatRFPubDHCPClientEvent, mimoQpskBerDisplay=mimoQpskBerDisplay, bootpsFilter=bootpsFilter, colorCodepriority9=colorCodepriority9, bitErrors256QAMpathB=bitErrors256QAMpathB, dhcpNumIPsToLease=dhcpNumIPsToLease, pppoeAccessConcentrator=pppoeAccessConcentrator, dfsStatus=dfsStatus, certificateDN=certificateDN, whispSmTranslationTableEntry=whispSmTranslationTableEntry, naptRemoteManage=naptRemoteManage, authenticationEnforce=authenticationEnforce, mimoBerRcvModulationType=mimoBerRcvModulationType, whispTranslationTableAge=whispTranslationTableAge, fragmentsReceived4XHorizontal=fragmentsReceived4XHorizontal, bridgecbDownlinkCreditRate=bridgecbDownlinkCreditRate, dhcpServerPktXmt=dhcpServerPktXmt, colorCode8=colorCode8, radioDbmInt=radioDbmInt, tableIndex=tableIndex, ingressVID=ingressVID, syslogMinLevelApPreferred=syslogMinLevelApPreferred, primaryBERDisplay=primaryBERDisplay, whispTranslationTableIpAddr=whispTranslationTableIpAddr, linkQualityData3XVertical=linkQualityData3XVertical, certIndex=certIndex, authKeySm=authKeySm, dhcpServerEnable=dhcpServerEnable, bitErrors64QAMpathB=bitErrors64QAMpathB, whispSmSpAnEvent=whispSmSpAnEvent, port3TCPFilter=port3TCPFilter, signalToNoiseRatioSMHorizontal=signalToNoiseRatioSMHorizontal, naptRFPublicGateway=naptRFPublicGateway, pppoeSessionID=pppoeSessionID, forcepoweradjust=forcepoweradjust, registeredToAp=registeredToAp, whispSmGroups=whispSmGroups, authPassword=authPassword) |
"""Class to store customized UI parameters."""
class UIConfig():
"""Stores customized UI parameters."""
def __init__(self, description='Description',
button_text='Submit',
placeholder='Default placeholder',
show_example_form=False):
self.description = description
self.button_text = button_text
self.placeholder = placeholder
self.show_example_form = show_example_form
def get_description(self):
"""Returns the input of the example."""
return self.description
def get_button_text(self):
"""Returns the intended output of the example."""
return self.button_text
def get_placeholder(self):
"""Returns the intended output of the example."""
return self.placeholder
def get_show_example_form(self):
"""Returns whether editable example form is shown."""
return self.show_example_form
def json(self):
"""Used to send the parameter values to the API."""
return {"description": self.description,
"button_text": self.button_text,
"placeholder": self.placeholder,
"show_example_form": self.show_example_form}
| """Class to store customized UI parameters."""
class Uiconfig:
"""Stores customized UI parameters."""
def __init__(self, description='Description', button_text='Submit', placeholder='Default placeholder', show_example_form=False):
self.description = description
self.button_text = button_text
self.placeholder = placeholder
self.show_example_form = show_example_form
def get_description(self):
"""Returns the input of the example."""
return self.description
def get_button_text(self):
"""Returns the intended output of the example."""
return self.button_text
def get_placeholder(self):
"""Returns the intended output of the example."""
return self.placeholder
def get_show_example_form(self):
"""Returns whether editable example form is shown."""
return self.show_example_form
def json(self):
"""Used to send the parameter values to the API."""
return {'description': self.description, 'button_text': self.button_text, 'placeholder': self.placeholder, 'show_example_form': self.show_example_form} |
#
# PySNMP MIB module NETSCREEN-SERVICE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETSCREEN-SERVICE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:20:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint")
netscreenService, = mibBuilder.importSymbols("NETSCREEN-SMI", "netscreenService")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Bits, ModuleIdentity, ObjectIdentity, MibIdentifier, Integer32, Counter32, IpAddress, NotificationType, Unsigned32, Counter64, Gauge32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Bits", "ModuleIdentity", "ObjectIdentity", "MibIdentifier", "Integer32", "Counter32", "IpAddress", "NotificationType", "Unsigned32", "Counter64", "Gauge32", "TimeTicks")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
netscreenServiceMibModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 3224, 13, 0))
netscreenServiceMibModule.setRevisions(('2004-05-03 00:00', '2004-03-03 00:00', '2003-11-10 00:00', '2001-09-28 00:00', '2001-05-14 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: netscreenServiceMibModule.setRevisionsDescriptions(('Modified copyright and contact information', 'Converted to SMIv2 by Longview Software', 'Correct spelling mistake', 'No Comment', 'Creation Date',))
if mibBuilder.loadTexts: netscreenServiceMibModule.setLastUpdated('200405032022Z')
if mibBuilder.loadTexts: netscreenServiceMibModule.setOrganization('Juniper Networks, Inc.')
if mibBuilder.loadTexts: netscreenServiceMibModule.setContactInfo('Customer Support 1194 North Mathilda Avenue Sunnyvale, California 94089-1206 USA Tel: 1-800-638-8296 E-mail: customerservice@juniper.net HTTP://www.juniper.net')
if mibBuilder.loadTexts: netscreenServiceMibModule.setDescription('This module defines the object that are used to monitor service configuration in NetScreen device.')
nsServiceTable = MibTable((1, 3, 6, 1, 4, 1, 3224, 13, 1), )
if mibBuilder.loadTexts: nsServiceTable.setStatus('current')
if mibBuilder.loadTexts: nsServiceTable.setDescription('Services are types of IP traffic for which protocol standards exist. This table collects all the service configurations existing in NetScreen device.')
nsServiceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1), ).setIndexNames((0, "NETSCREEN-SERVICE-MIB", "nsServiceIndex"))
if mibBuilder.loadTexts: nsServiceEntry.setStatus('current')
if mibBuilder.loadTexts: nsServiceEntry.setDescription('Each enry in the nsServiceTable holds a set of configuration parameters associated with an instance of service.')
nsServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceIndex.setStatus('current')
if mibBuilder.loadTexts: nsServiceIndex.setDescription('A unique value for each address. Its value ranges between 0 and 65535 and may not be contiguous.')
nsServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceName.setStatus('current')
if mibBuilder.loadTexts: nsServiceName.setDescription('Service name.')
nsServiceCategory = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("remote", 1), ("email", 2), ("infoseek", 3), ("security", 4), ("other", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceCategory.setStatus('current')
if mibBuilder.loadTexts: nsServiceCategory.setDescription('Category this service belongs to.')
nsServiceTransProto = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 6, 17, 8, 9, 17, 46, 47, 89))).clone(namedValues=NamedValues(("other", 0), ("icmp", 1), ("tcp", 6), ("udp", 17), ("egp", 8), ("igp", 9), ("udp", 17), ("rsvp", 46), ("gre", 47), ("ospf", 89)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceTransProto.setStatus('current')
if mibBuilder.loadTexts: nsServiceTransProto.setDescription('Service trans protocol. 6 means tcp 17 means udp')
nsServiceSrcPortLow = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceSrcPortLow.setStatus('current')
if mibBuilder.loadTexts: nsServiceSrcPortLow.setDescription('The low source port number associated with service.')
nsServiceSrcPortHigh = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceSrcPortHigh.setStatus('current')
if mibBuilder.loadTexts: nsServiceSrcPortHigh.setDescription('The high source port number associated with service.')
nsServiceDstPortLow = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceDstPortLow.setStatus('current')
if mibBuilder.loadTexts: nsServiceDstPortLow.setDescription('The low destination port number associated with service.')
nsServiceDstPortHigh = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceDstPortHigh.setStatus('current')
if mibBuilder.loadTexts: nsServiceDstPortHigh.setDescription('The high source port number associated with service.')
nsServiceFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("pre-define", 0), ("usr-define", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceFlag.setStatus('current')
if mibBuilder.loadTexts: nsServiceFlag.setDescription('Service flag used to indicate if the service is a pre-defined one or a custom one.')
nsServiceVsys = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceVsys.setStatus('current')
if mibBuilder.loadTexts: nsServiceVsys.setDescription('Virtual system this configuration belongs to.')
nsServiceGroupTable = MibTable((1, 3, 6, 1, 4, 1, 3224, 13, 2), )
if mibBuilder.loadTexts: nsServiceGroupTable.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupTable.setDescription('Services can be organized into service group for convenience. This table collects all service group entries in NetScreen device.')
nsServiceGroupEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1), ).setIndexNames((0, "NETSCREEN-SERVICE-MIB", "nsServiceGroupIndex"))
if mibBuilder.loadTexts: nsServiceGroupEntry.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupEntry.setDescription('Each entry in the nsServiceGroupTable holds a set of information about service group.')
nsServiceGroupIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupIndex.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupIndex.setDescription('A unique value for each group. Its value ranges between 0 and 65535 and may not be contiguous.')
nsServiceGroupName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupName.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupName.setDescription('Service group name.')
nsServiceGroupMember = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupMember.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupMember.setDescription('Service member number in service group.')
nsServiceGroupComment = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupComment.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupComment.setDescription('Comments for service group.')
nsServiceGroupVsys = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupVsys.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupVsys.setDescription('Virtual system this group belongs to.')
nsServiceGrpMemberTable = MibTable((1, 3, 6, 1, 4, 1, 3224, 13, 3), )
if mibBuilder.loadTexts: nsServiceGrpMemberTable.setStatus('current')
if mibBuilder.loadTexts: nsServiceGrpMemberTable.setDescription('Service group membership info table will show detail information of a service group.')
nsServiceGrpMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1), ).setIndexNames((0, "NETSCREEN-SERVICE-MIB", "nsServiceGrpMemberIndex"))
if mibBuilder.loadTexts: nsServiceGrpMemberEntry.setStatus('current')
if mibBuilder.loadTexts: nsServiceGrpMemberEntry.setDescription("An entry containing attributes service group's member info")
nsServiceGrpMemberIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGrpMemberIndex.setStatus('current')
if mibBuilder.loadTexts: nsServiceGrpMemberIndex.setDescription('A unique value for each group. Its value ranges between 0 and 65535 and may not be contiguous.')
nsServiceGrpName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGrpName.setStatus('current')
if mibBuilder.loadTexts: nsServiceGrpName.setDescription('Specific service group name')
nsServiceGroupMemberName = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupMemberName.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupMemberName.setDescription('Specific service name in the service group.')
nsServiceGroupMemberVsys = MibTableColumn((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: nsServiceGroupMemberVsys.setStatus('current')
if mibBuilder.loadTexts: nsServiceGroupMemberVsys.setDescription('Virtual system this configuration belongs to')
mibBuilder.exportSymbols("NETSCREEN-SERVICE-MIB", nsServiceGroupMember=nsServiceGroupMember, nsServiceGroupName=nsServiceGroupName, nsServiceGroupComment=nsServiceGroupComment, nsServiceSrcPortLow=nsServiceSrcPortLow, nsServiceSrcPortHigh=nsServiceSrcPortHigh, nsServiceGroupVsys=nsServiceGroupVsys, nsServiceDstPortHigh=nsServiceDstPortHigh, nsServiceIndex=nsServiceIndex, nsServiceGroupMemberVsys=nsServiceGroupMemberVsys, nsServiceFlag=nsServiceFlag, nsServiceVsys=nsServiceVsys, nsServiceGrpMemberIndex=nsServiceGrpMemberIndex, nsServiceGrpMemberEntry=nsServiceGrpMemberEntry, nsServiceGrpMemberTable=nsServiceGrpMemberTable, nsServiceGroupEntry=nsServiceGroupEntry, nsServiceGroupTable=nsServiceGroupTable, nsServiceDstPortLow=nsServiceDstPortLow, nsServiceTable=nsServiceTable, nsServiceEntry=nsServiceEntry, nsServiceTransProto=nsServiceTransProto, PYSNMP_MODULE_ID=netscreenServiceMibModule, nsServiceCategory=nsServiceCategory, nsServiceGroupIndex=nsServiceGroupIndex, nsServiceGroupMemberName=nsServiceGroupMemberName, netscreenServiceMibModule=netscreenServiceMibModule, nsServiceGrpName=nsServiceGrpName, nsServiceName=nsServiceName)
| (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, value_size_constraint, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint')
(netscreen_service,) = mibBuilder.importSymbols('NETSCREEN-SMI', 'netscreenService')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(mib_scalar, mib_table, mib_table_row, mib_table_column, iso, bits, module_identity, object_identity, mib_identifier, integer32, counter32, ip_address, notification_type, unsigned32, counter64, gauge32, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Bits', 'ModuleIdentity', 'ObjectIdentity', 'MibIdentifier', 'Integer32', 'Counter32', 'IpAddress', 'NotificationType', 'Unsigned32', 'Counter64', 'Gauge32', 'TimeTicks')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
netscreen_service_mib_module = module_identity((1, 3, 6, 1, 4, 1, 3224, 13, 0))
netscreenServiceMibModule.setRevisions(('2004-05-03 00:00', '2004-03-03 00:00', '2003-11-10 00:00', '2001-09-28 00:00', '2001-05-14 00:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
netscreenServiceMibModule.setRevisionsDescriptions(('Modified copyright and contact information', 'Converted to SMIv2 by Longview Software', 'Correct spelling mistake', 'No Comment', 'Creation Date'))
if mibBuilder.loadTexts:
netscreenServiceMibModule.setLastUpdated('200405032022Z')
if mibBuilder.loadTexts:
netscreenServiceMibModule.setOrganization('Juniper Networks, Inc.')
if mibBuilder.loadTexts:
netscreenServiceMibModule.setContactInfo('Customer Support 1194 North Mathilda Avenue Sunnyvale, California 94089-1206 USA Tel: 1-800-638-8296 E-mail: customerservice@juniper.net HTTP://www.juniper.net')
if mibBuilder.loadTexts:
netscreenServiceMibModule.setDescription('This module defines the object that are used to monitor service configuration in NetScreen device.')
ns_service_table = mib_table((1, 3, 6, 1, 4, 1, 3224, 13, 1))
if mibBuilder.loadTexts:
nsServiceTable.setStatus('current')
if mibBuilder.loadTexts:
nsServiceTable.setDescription('Services are types of IP traffic for which protocol standards exist. This table collects all the service configurations existing in NetScreen device.')
ns_service_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1)).setIndexNames((0, 'NETSCREEN-SERVICE-MIB', 'nsServiceIndex'))
if mibBuilder.loadTexts:
nsServiceEntry.setStatus('current')
if mibBuilder.loadTexts:
nsServiceEntry.setDescription('Each enry in the nsServiceTable holds a set of configuration parameters associated with an instance of service.')
ns_service_index = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceIndex.setStatus('current')
if mibBuilder.loadTexts:
nsServiceIndex.setDescription('A unique value for each address. Its value ranges between 0 and 65535 and may not be contiguous.')
ns_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceName.setStatus('current')
if mibBuilder.loadTexts:
nsServiceName.setDescription('Service name.')
ns_service_category = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('remote', 1), ('email', 2), ('infoseek', 3), ('security', 4), ('other', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceCategory.setStatus('current')
if mibBuilder.loadTexts:
nsServiceCategory.setDescription('Category this service belongs to.')
ns_service_trans_proto = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 6, 17, 8, 9, 17, 46, 47, 89))).clone(namedValues=named_values(('other', 0), ('icmp', 1), ('tcp', 6), ('udp', 17), ('egp', 8), ('igp', 9), ('udp', 17), ('rsvp', 46), ('gre', 47), ('ospf', 89)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceTransProto.setStatus('current')
if mibBuilder.loadTexts:
nsServiceTransProto.setDescription('Service trans protocol. 6 means tcp 17 means udp')
ns_service_src_port_low = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceSrcPortLow.setStatus('current')
if mibBuilder.loadTexts:
nsServiceSrcPortLow.setDescription('The low source port number associated with service.')
ns_service_src_port_high = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceSrcPortHigh.setStatus('current')
if mibBuilder.loadTexts:
nsServiceSrcPortHigh.setDescription('The high source port number associated with service.')
ns_service_dst_port_low = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceDstPortLow.setStatus('current')
if mibBuilder.loadTexts:
nsServiceDstPortLow.setDescription('The low destination port number associated with service.')
ns_service_dst_port_high = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceDstPortHigh.setStatus('current')
if mibBuilder.loadTexts:
nsServiceDstPortHigh.setDescription('The high source port number associated with service.')
ns_service_flag = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('pre-define', 0), ('usr-define', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceFlag.setStatus('current')
if mibBuilder.loadTexts:
nsServiceFlag.setDescription('Service flag used to indicate if the service is a pre-defined one or a custom one.')
ns_service_vsys = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 1, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceVsys.setStatus('current')
if mibBuilder.loadTexts:
nsServiceVsys.setDescription('Virtual system this configuration belongs to.')
ns_service_group_table = mib_table((1, 3, 6, 1, 4, 1, 3224, 13, 2))
if mibBuilder.loadTexts:
nsServiceGroupTable.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGroupTable.setDescription('Services can be organized into service group for convenience. This table collects all service group entries in NetScreen device.')
ns_service_group_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1)).setIndexNames((0, 'NETSCREEN-SERVICE-MIB', 'nsServiceGroupIndex'))
if mibBuilder.loadTexts:
nsServiceGroupEntry.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGroupEntry.setDescription('Each entry in the nsServiceGroupTable holds a set of information about service group.')
ns_service_group_index = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceGroupIndex.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGroupIndex.setDescription('A unique value for each group. Its value ranges between 0 and 65535 and may not be contiguous.')
ns_service_group_name = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceGroupName.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGroupName.setDescription('Service group name.')
ns_service_group_member = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceGroupMember.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGroupMember.setDescription('Service member number in service group.')
ns_service_group_comment = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceGroupComment.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGroupComment.setDescription('Comments for service group.')
ns_service_group_vsys = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceGroupVsys.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGroupVsys.setDescription('Virtual system this group belongs to.')
ns_service_grp_member_table = mib_table((1, 3, 6, 1, 4, 1, 3224, 13, 3))
if mibBuilder.loadTexts:
nsServiceGrpMemberTable.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGrpMemberTable.setDescription('Service group membership info table will show detail information of a service group.')
ns_service_grp_member_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1)).setIndexNames((0, 'NETSCREEN-SERVICE-MIB', 'nsServiceGrpMemberIndex'))
if mibBuilder.loadTexts:
nsServiceGrpMemberEntry.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGrpMemberEntry.setDescription("An entry containing attributes service group's member info")
ns_service_grp_member_index = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceGrpMemberIndex.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGrpMemberIndex.setDescription('A unique value for each group. Its value ranges between 0 and 65535 and may not be contiguous.')
ns_service_grp_name = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceGrpName.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGrpName.setDescription('Specific service group name')
ns_service_group_member_name = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceGroupMemberName.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGroupMemberName.setDescription('Specific service name in the service group.')
ns_service_group_member_vsys = mib_table_column((1, 3, 6, 1, 4, 1, 3224, 13, 3, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
nsServiceGroupMemberVsys.setStatus('current')
if mibBuilder.loadTexts:
nsServiceGroupMemberVsys.setDescription('Virtual system this configuration belongs to')
mibBuilder.exportSymbols('NETSCREEN-SERVICE-MIB', nsServiceGroupMember=nsServiceGroupMember, nsServiceGroupName=nsServiceGroupName, nsServiceGroupComment=nsServiceGroupComment, nsServiceSrcPortLow=nsServiceSrcPortLow, nsServiceSrcPortHigh=nsServiceSrcPortHigh, nsServiceGroupVsys=nsServiceGroupVsys, nsServiceDstPortHigh=nsServiceDstPortHigh, nsServiceIndex=nsServiceIndex, nsServiceGroupMemberVsys=nsServiceGroupMemberVsys, nsServiceFlag=nsServiceFlag, nsServiceVsys=nsServiceVsys, nsServiceGrpMemberIndex=nsServiceGrpMemberIndex, nsServiceGrpMemberEntry=nsServiceGrpMemberEntry, nsServiceGrpMemberTable=nsServiceGrpMemberTable, nsServiceGroupEntry=nsServiceGroupEntry, nsServiceGroupTable=nsServiceGroupTable, nsServiceDstPortLow=nsServiceDstPortLow, nsServiceTable=nsServiceTable, nsServiceEntry=nsServiceEntry, nsServiceTransProto=nsServiceTransProto, PYSNMP_MODULE_ID=netscreenServiceMibModule, nsServiceCategory=nsServiceCategory, nsServiceGroupIndex=nsServiceGroupIndex, nsServiceGroupMemberName=nsServiceGroupMemberName, netscreenServiceMibModule=netscreenServiceMibModule, nsServiceGrpName=nsServiceGrpName, nsServiceName=nsServiceName) |
#
# PySNMP MIB module DT1-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DT1-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:39:59 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")
ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
Bits, NotificationType, IpAddress, Counter32, iso, experimental, enterprises, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, ObjectIdentity, Unsigned32, ModuleIdentity, MibIdentifier, Gauge32, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "NotificationType", "IpAddress", "Counter32", "iso", "experimental", "enterprises", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "ObjectIdentity", "Unsigned32", "ModuleIdentity", "MibIdentifier", "Gauge32", "Integer32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
usr = MibIdentifier((1, 3, 6, 1, 4, 1, 429))
nas = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1))
dt1 = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3))
dt1Id = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 1))
dt1IdTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1), )
if mibBuilder.loadTexts: dt1IdTable.setStatus('mandatory')
dt1IdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1), ).setIndexNames((0, "DT1-MIB", "dt1IdIndex"))
if mibBuilder.loadTexts: dt1IdEntry.setStatus('mandatory')
dt1IdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1IdIndex.setStatus('mandatory')
dt1IdHardwareSerNum = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1IdHardwareSerNum.setStatus('mandatory')
dt1IdHardwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1IdHardwareRev.setStatus('mandatory')
dt1IdSoftwareRev = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1IdSoftwareRev.setStatus('mandatory')
dt1Cfg = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 2))
dt1CfgTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1), )
if mibBuilder.loadTexts: dt1CfgTable.setStatus('mandatory')
dt1CfgEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1), ).setIndexNames((0, "DT1-MIB", "dt1CfgIndex"))
if mibBuilder.loadTexts: dt1CfgEntry.setStatus('mandatory')
dt1CfgIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CfgIndex.setStatus('mandatory')
dt1CfgSpanATmgSrcPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notAllowed", 1), ("high", 2), ("mediumHigh", 3), ("medium", 4), ("low", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgSpanATmgSrcPrio.setStatus('mandatory')
dt1CfgSpanBTmgSrcPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notAllowed", 1), ("high", 2), ("mediumHigh", 3), ("medium", 4), ("low", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgSpanBTmgSrcPrio.setStatus('mandatory')
dt1CfgInternTmgSrcPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notAllowed", 1), ("high", 2), ("mediumHigh", 3), ("medium", 4), ("low", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgInternTmgSrcPrio.setStatus('mandatory')
dt1CfgTdmBusTmgSrcPrio = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notAllowed", 1), ("high", 2), ("mediumHigh", 3), ("medium", 4), ("low", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CfgTdmBusTmgSrcPrio.setStatus('deprecated')
dt1CfgIdleDiscPatt = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgIdleDiscPatt.setStatus('mandatory')
dt1CfgNumT1TypeNacs = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notSupported", 1), ("single", 2), ("multiple", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgNumT1TypeNacs.setStatus('mandatory')
dt1CfgCallEventFilter = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("notSupported", 1), ("filterOutNone", 2), ("filterOutBoth", 3), ("filterOutSuccess", 4), ("filterOutFailure", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgCallEventFilter.setStatus('mandatory')
dt1CfgSetDs0OutofService = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgSetDs0OutofService.setStatus('mandatory')
dt1CfgWirelessMode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("wireless", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CfgWirelessMode.setStatus('mandatory')
dt1Stat = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 3))
dt1StatTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1), )
if mibBuilder.loadTexts: dt1StatTable.setStatus('mandatory')
dt1StatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1), ).setIndexNames((0, "DT1-MIB", "dt1StatIndex"))
if mibBuilder.loadTexts: dt1StatEntry.setStatus('mandatory')
dt1StatIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatIndex.setStatus('mandatory')
dt1StatCurrentTmgSrc = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("spanLineA", 1), ("spanLineB", 2), ("internalClock", 3), ("tdmBusClock", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatCurrentTmgSrc.setStatus('mandatory')
dt1StatSelfTest = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatSelfTest.setStatus('mandatory')
dt1StatUpTime = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatUpTime.setStatus('mandatory')
dt1StatCallEventCode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 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, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))).clone(namedValues=NamedValues(("notSupported", 1), ("setup", 2), ("usrSetup", 3), ("telcoDisconnect", 4), ("usrDisconnect", 5), ("noFreeModem", 6), ("modemsNotAllowed", 7), ("modemsRejectCall", 8), ("modemSetupTimeout", 9), ("noFreeIGW", 10), ("igwRejectCall", 11), ("igwSetupTimeout", 12), ("noFreeTdmts", 13), ("bcReject", 14), ("ieReject", 15), ("chidReject", 16), ("progReject", 17), ("callingPartyReject", 18), ("calledPartyReject", 19), ("blocked", 20), ("analogBlocked", 21), ("digitalBlocked", 22), ("outOfService", 23), ("busy", 24), ("congestion", 25), ("protocolError", 26), ("noFreeBchannel", 27), ("inOutCallCollision", 28), ("inCallArrival", 29), ("outCallArrival", 30), ("inCallConnect", 31), ("outCallConnect", 32)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatCallEventCode.setStatus('mandatory')
dt1StatCallEventQ931Value = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1StatCallEventQ931Value.setStatus('mandatory')
dt1Cmd = MibIdentifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 4))
dt1CmdTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1), )
if mibBuilder.loadTexts: dt1CmdTable.setStatus('mandatory')
dt1CmdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1), ).setIndexNames((0, "DT1-MIB", "dt1CmdIndex"))
if mibBuilder.loadTexts: dt1CmdEntry.setStatus('mandatory')
dt1CmdIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CmdIndex.setStatus('mandatory')
dt1CmdMgtStationId = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CmdMgtStationId.setStatus('mandatory')
dt1CmdReqId = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CmdReqId.setStatus('mandatory')
dt1CmdFunction = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=NamedValues(("noCommand", 1), ("saveToNVRAM", 2), ("restoreFromNVRAM", 3), ("restoreFromDefault", 4), ("nonDisruptSelfTest", 5), ("disruptSelfTest", 6), ("softwareReset", 7), ("resetToHiPrioTimingSrc", 8), ("forceTdmBusMastership", 9), ("enterSpanToSpanLoopback", 10), ("exitSpanToSpanLoopback", 11), ("restoreDefaultUIPassword", 12)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CmdFunction.setStatus('mandatory')
dt1CmdForce = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("force", 1), ("noForce", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CmdForce.setStatus('mandatory')
dt1CmdParam = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 24))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1CmdParam.setStatus('mandatory')
dt1CmdResult = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("none", 1), ("success", 2), ("inProgress", 3), ("notSupported", 4), ("unAbleToRun", 5), ("aborted", 6), ("failed", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CmdResult.setStatus('mandatory')
dt1CmdCode = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 6, 8, 12, 20, 22, 25, 58, 73))).clone(namedValues=NamedValues(("noError", 1), ("unable", 2), ("unrecognizedCommand", 6), ("slotEmpty", 8), ("noResponse", 12), ("unsupportedCommand", 20), ("deviceDisabled", 22), ("testFailed", 25), ("userInterfaceActive", 58), ("pendingSoftwareDownload", 73)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1CmdCode.setStatus('mandatory')
dt1TrapEnaTable = MibTable((1, 3, 6, 1, 4, 1, 429, 1, 3, 5), )
if mibBuilder.loadTexts: dt1TrapEnaTable.setStatus('mandatory')
dt1TrapEnaEntry = MibTableRow((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1), ).setIndexNames((0, "DT1-MIB", "dt1TrapEnaIndex"))
if mibBuilder.loadTexts: dt1TrapEnaEntry.setStatus('mandatory')
dt1TrapEnaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: dt1TrapEnaIndex.setStatus('mandatory')
dt1TrapEnaTxTmgSrcSwitch = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaTxTmgSrcSwitch.setStatus('mandatory')
dt1TrapEnaCallEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallEvent.setStatus('mandatory')
dt1TrapEnaCallArriveEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallArriveEvent.setStatus('mandatory')
dt1TrapEnaCallConnEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallConnEvent.setStatus('mandatory')
dt1TrapEnaCallTermEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallTermEvent.setStatus('mandatory')
dt1TrapEnaCallFailEvent = MibTableColumn((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("enableTrap", 1), ("disableAll", 2), ("enableLog", 3), ("enableAll", 4)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: dt1TrapEnaCallFailEvent.setStatus('mandatory')
mibBuilder.exportSymbols("DT1-MIB", dt1IdIndex=dt1IdIndex, dt1TrapEnaCallEvent=dt1TrapEnaCallEvent, dt1StatCallEventQ931Value=dt1StatCallEventQ931Value, dt1StatTable=dt1StatTable, dt1TrapEnaTxTmgSrcSwitch=dt1TrapEnaTxTmgSrcSwitch, dt1StatUpTime=dt1StatUpTime, usr=usr, dt1CmdParam=dt1CmdParam, nas=nas, dt1CmdTable=dt1CmdTable, dt1TrapEnaTable=dt1TrapEnaTable, dt1CfgSpanATmgSrcPrio=dt1CfgSpanATmgSrcPrio, dt1StatSelfTest=dt1StatSelfTest, dt1TrapEnaCallArriveEvent=dt1TrapEnaCallArriveEvent, dt1StatIndex=dt1StatIndex, dt1CmdEntry=dt1CmdEntry, dt1StatCallEventCode=dt1StatCallEventCode, dt1TrapEnaCallTermEvent=dt1TrapEnaCallTermEvent, dt1IdSoftwareRev=dt1IdSoftwareRev, dt1CfgTdmBusTmgSrcPrio=dt1CfgTdmBusTmgSrcPrio, dt1CmdReqId=dt1CmdReqId, dt1CmdCode=dt1CmdCode, dt1CfgSpanBTmgSrcPrio=dt1CfgSpanBTmgSrcPrio, dt1TrapEnaIndex=dt1TrapEnaIndex, dt1IdEntry=dt1IdEntry, dt1CfgCallEventFilter=dt1CfgCallEventFilter, dt1StatEntry=dt1StatEntry, dt1=dt1, dt1CfgWirelessMode=dt1CfgWirelessMode, dt1Cmd=dt1Cmd, dt1CfgIndex=dt1CfgIndex, dt1CfgEntry=dt1CfgEntry, dt1TrapEnaCallFailEvent=dt1TrapEnaCallFailEvent, dt1IdHardwareSerNum=dt1IdHardwareSerNum, dt1CfgIdleDiscPatt=dt1CfgIdleDiscPatt, dt1IdTable=dt1IdTable, dt1Id=dt1Id, dt1TrapEnaEntry=dt1TrapEnaEntry, dt1CmdForce=dt1CmdForce, dt1CfgSetDs0OutofService=dt1CfgSetDs0OutofService, dt1StatCurrentTmgSrc=dt1StatCurrentTmgSrc, dt1CmdIndex=dt1CmdIndex, dt1Cfg=dt1Cfg, dt1CmdMgtStationId=dt1CmdMgtStationId, dt1CfgTable=dt1CfgTable, dt1Stat=dt1Stat, dt1CfgInternTmgSrcPrio=dt1CfgInternTmgSrcPrio, dt1IdHardwareRev=dt1IdHardwareRev, dt1TrapEnaCallConnEvent=dt1TrapEnaCallConnEvent, dt1CfgNumT1TypeNacs=dt1CfgNumT1TypeNacs, dt1CmdResult=dt1CmdResult, dt1CmdFunction=dt1CmdFunction)
| (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, constraints_intersection, constraints_union, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(bits, notification_type, ip_address, counter32, iso, experimental, enterprises, counter64, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, object_identity, unsigned32, module_identity, mib_identifier, gauge32, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'NotificationType', 'IpAddress', 'Counter32', 'iso', 'experimental', 'enterprises', 'Counter64', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'ObjectIdentity', 'Unsigned32', 'ModuleIdentity', 'MibIdentifier', 'Gauge32', 'Integer32')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
usr = mib_identifier((1, 3, 6, 1, 4, 1, 429))
nas = mib_identifier((1, 3, 6, 1, 4, 1, 429, 1))
dt1 = mib_identifier((1, 3, 6, 1, 4, 1, 429, 1, 3))
dt1_id = mib_identifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 1))
dt1_id_table = mib_table((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1))
if mibBuilder.loadTexts:
dt1IdTable.setStatus('mandatory')
dt1_id_entry = mib_table_row((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1)).setIndexNames((0, 'DT1-MIB', 'dt1IdIndex'))
if mibBuilder.loadTexts:
dt1IdEntry.setStatus('mandatory')
dt1_id_index = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1IdIndex.setStatus('mandatory')
dt1_id_hardware_ser_num = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1IdHardwareSerNum.setStatus('mandatory')
dt1_id_hardware_rev = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1IdHardwareRev.setStatus('mandatory')
dt1_id_software_rev = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 1, 1, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1IdSoftwareRev.setStatus('mandatory')
dt1_cfg = mib_identifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 2))
dt1_cfg_table = mib_table((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1))
if mibBuilder.loadTexts:
dt1CfgTable.setStatus('mandatory')
dt1_cfg_entry = mib_table_row((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1)).setIndexNames((0, 'DT1-MIB', 'dt1CfgIndex'))
if mibBuilder.loadTexts:
dt1CfgEntry.setStatus('mandatory')
dt1_cfg_index = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1CfgIndex.setStatus('mandatory')
dt1_cfg_span_a_tmg_src_prio = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('notAllowed', 1), ('high', 2), ('mediumHigh', 3), ('medium', 4), ('low', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CfgSpanATmgSrcPrio.setStatus('mandatory')
dt1_cfg_span_b_tmg_src_prio = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('notAllowed', 1), ('high', 2), ('mediumHigh', 3), ('medium', 4), ('low', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CfgSpanBTmgSrcPrio.setStatus('mandatory')
dt1_cfg_intern_tmg_src_prio = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('notAllowed', 1), ('high', 2), ('mediumHigh', 3), ('medium', 4), ('low', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CfgInternTmgSrcPrio.setStatus('mandatory')
dt1_cfg_tdm_bus_tmg_src_prio = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('notAllowed', 1), ('high', 2), ('mediumHigh', 3), ('medium', 4), ('low', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1CfgTdmBusTmgSrcPrio.setStatus('deprecated')
dt1_cfg_idle_disc_patt = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CfgIdleDiscPatt.setStatus('mandatory')
dt1_cfg_num_t1_type_nacs = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notSupported', 1), ('single', 2), ('multiple', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CfgNumT1TypeNacs.setStatus('mandatory')
dt1_cfg_call_event_filter = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('notSupported', 1), ('filterOutNone', 2), ('filterOutBoth', 3), ('filterOutSuccess', 4), ('filterOutFailure', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CfgCallEventFilter.setStatus('mandatory')
dt1_cfg_set_ds0_outof_service = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CfgSetDs0OutofService.setStatus('mandatory')
dt1_cfg_wireless_mode = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 2, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('wireless', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CfgWirelessMode.setStatus('mandatory')
dt1_stat = mib_identifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 3))
dt1_stat_table = mib_table((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1))
if mibBuilder.loadTexts:
dt1StatTable.setStatus('mandatory')
dt1_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1)).setIndexNames((0, 'DT1-MIB', 'dt1StatIndex'))
if mibBuilder.loadTexts:
dt1StatEntry.setStatus('mandatory')
dt1_stat_index = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1StatIndex.setStatus('mandatory')
dt1_stat_current_tmg_src = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('spanLineA', 1), ('spanLineB', 2), ('internalClock', 3), ('tdmBusClock', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1StatCurrentTmgSrc.setStatus('mandatory')
dt1_stat_self_test = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1StatSelfTest.setStatus('mandatory')
dt1_stat_up_time = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1StatUpTime.setStatus('mandatory')
dt1_stat_call_event_code = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 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, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32))).clone(namedValues=named_values(('notSupported', 1), ('setup', 2), ('usrSetup', 3), ('telcoDisconnect', 4), ('usrDisconnect', 5), ('noFreeModem', 6), ('modemsNotAllowed', 7), ('modemsRejectCall', 8), ('modemSetupTimeout', 9), ('noFreeIGW', 10), ('igwRejectCall', 11), ('igwSetupTimeout', 12), ('noFreeTdmts', 13), ('bcReject', 14), ('ieReject', 15), ('chidReject', 16), ('progReject', 17), ('callingPartyReject', 18), ('calledPartyReject', 19), ('blocked', 20), ('analogBlocked', 21), ('digitalBlocked', 22), ('outOfService', 23), ('busy', 24), ('congestion', 25), ('protocolError', 26), ('noFreeBchannel', 27), ('inOutCallCollision', 28), ('inCallArrival', 29), ('outCallArrival', 30), ('inCallConnect', 31), ('outCallConnect', 32)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1StatCallEventCode.setStatus('mandatory')
dt1_stat_call_event_q931_value = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 3, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1StatCallEventQ931Value.setStatus('mandatory')
dt1_cmd = mib_identifier((1, 3, 6, 1, 4, 1, 429, 1, 3, 4))
dt1_cmd_table = mib_table((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1))
if mibBuilder.loadTexts:
dt1CmdTable.setStatus('mandatory')
dt1_cmd_entry = mib_table_row((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1)).setIndexNames((0, 'DT1-MIB', 'dt1CmdIndex'))
if mibBuilder.loadTexts:
dt1CmdEntry.setStatus('mandatory')
dt1_cmd_index = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1CmdIndex.setStatus('mandatory')
dt1_cmd_mgt_station_id = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CmdMgtStationId.setStatus('mandatory')
dt1_cmd_req_id = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1CmdReqId.setStatus('mandatory')
dt1_cmd_function = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=named_values(('noCommand', 1), ('saveToNVRAM', 2), ('restoreFromNVRAM', 3), ('restoreFromDefault', 4), ('nonDisruptSelfTest', 5), ('disruptSelfTest', 6), ('softwareReset', 7), ('resetToHiPrioTimingSrc', 8), ('forceTdmBusMastership', 9), ('enterSpanToSpanLoopback', 10), ('exitSpanToSpanLoopback', 11), ('restoreDefaultUIPassword', 12)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CmdFunction.setStatus('mandatory')
dt1_cmd_force = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('force', 1), ('noForce', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CmdForce.setStatus('mandatory')
dt1_cmd_param = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 24))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1CmdParam.setStatus('mandatory')
dt1_cmd_result = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('none', 1), ('success', 2), ('inProgress', 3), ('notSupported', 4), ('unAbleToRun', 5), ('aborted', 6), ('failed', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1CmdResult.setStatus('mandatory')
dt1_cmd_code = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 4, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 6, 8, 12, 20, 22, 25, 58, 73))).clone(namedValues=named_values(('noError', 1), ('unable', 2), ('unrecognizedCommand', 6), ('slotEmpty', 8), ('noResponse', 12), ('unsupportedCommand', 20), ('deviceDisabled', 22), ('testFailed', 25), ('userInterfaceActive', 58), ('pendingSoftwareDownload', 73)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1CmdCode.setStatus('mandatory')
dt1_trap_ena_table = mib_table((1, 3, 6, 1, 4, 1, 429, 1, 3, 5))
if mibBuilder.loadTexts:
dt1TrapEnaTable.setStatus('mandatory')
dt1_trap_ena_entry = mib_table_row((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1)).setIndexNames((0, 'DT1-MIB', 'dt1TrapEnaIndex'))
if mibBuilder.loadTexts:
dt1TrapEnaEntry.setStatus('mandatory')
dt1_trap_ena_index = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
dt1TrapEnaIndex.setStatus('mandatory')
dt1_trap_ena_tx_tmg_src_switch = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('enableTrap', 1), ('disableAll', 2), ('enableLog', 3), ('enableAll', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1TrapEnaTxTmgSrcSwitch.setStatus('mandatory')
dt1_trap_ena_call_event = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('enableTrap', 1), ('disableAll', 2), ('enableLog', 3), ('enableAll', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1TrapEnaCallEvent.setStatus('mandatory')
dt1_trap_ena_call_arrive_event = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('enableTrap', 1), ('disableAll', 2), ('enableLog', 3), ('enableAll', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1TrapEnaCallArriveEvent.setStatus('mandatory')
dt1_trap_ena_call_conn_event = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('enableTrap', 1), ('disableAll', 2), ('enableLog', 3), ('enableAll', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1TrapEnaCallConnEvent.setStatus('mandatory')
dt1_trap_ena_call_term_event = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('enableTrap', 1), ('disableAll', 2), ('enableLog', 3), ('enableAll', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1TrapEnaCallTermEvent.setStatus('mandatory')
dt1_trap_ena_call_fail_event = mib_table_column((1, 3, 6, 1, 4, 1, 429, 1, 3, 5, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('enableTrap', 1), ('disableAll', 2), ('enableLog', 3), ('enableAll', 4)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
dt1TrapEnaCallFailEvent.setStatus('mandatory')
mibBuilder.exportSymbols('DT1-MIB', dt1IdIndex=dt1IdIndex, dt1TrapEnaCallEvent=dt1TrapEnaCallEvent, dt1StatCallEventQ931Value=dt1StatCallEventQ931Value, dt1StatTable=dt1StatTable, dt1TrapEnaTxTmgSrcSwitch=dt1TrapEnaTxTmgSrcSwitch, dt1StatUpTime=dt1StatUpTime, usr=usr, dt1CmdParam=dt1CmdParam, nas=nas, dt1CmdTable=dt1CmdTable, dt1TrapEnaTable=dt1TrapEnaTable, dt1CfgSpanATmgSrcPrio=dt1CfgSpanATmgSrcPrio, dt1StatSelfTest=dt1StatSelfTest, dt1TrapEnaCallArriveEvent=dt1TrapEnaCallArriveEvent, dt1StatIndex=dt1StatIndex, dt1CmdEntry=dt1CmdEntry, dt1StatCallEventCode=dt1StatCallEventCode, dt1TrapEnaCallTermEvent=dt1TrapEnaCallTermEvent, dt1IdSoftwareRev=dt1IdSoftwareRev, dt1CfgTdmBusTmgSrcPrio=dt1CfgTdmBusTmgSrcPrio, dt1CmdReqId=dt1CmdReqId, dt1CmdCode=dt1CmdCode, dt1CfgSpanBTmgSrcPrio=dt1CfgSpanBTmgSrcPrio, dt1TrapEnaIndex=dt1TrapEnaIndex, dt1IdEntry=dt1IdEntry, dt1CfgCallEventFilter=dt1CfgCallEventFilter, dt1StatEntry=dt1StatEntry, dt1=dt1, dt1CfgWirelessMode=dt1CfgWirelessMode, dt1Cmd=dt1Cmd, dt1CfgIndex=dt1CfgIndex, dt1CfgEntry=dt1CfgEntry, dt1TrapEnaCallFailEvent=dt1TrapEnaCallFailEvent, dt1IdHardwareSerNum=dt1IdHardwareSerNum, dt1CfgIdleDiscPatt=dt1CfgIdleDiscPatt, dt1IdTable=dt1IdTable, dt1Id=dt1Id, dt1TrapEnaEntry=dt1TrapEnaEntry, dt1CmdForce=dt1CmdForce, dt1CfgSetDs0OutofService=dt1CfgSetDs0OutofService, dt1StatCurrentTmgSrc=dt1StatCurrentTmgSrc, dt1CmdIndex=dt1CmdIndex, dt1Cfg=dt1Cfg, dt1CmdMgtStationId=dt1CmdMgtStationId, dt1CfgTable=dt1CfgTable, dt1Stat=dt1Stat, dt1CfgInternTmgSrcPrio=dt1CfgInternTmgSrcPrio, dt1IdHardwareRev=dt1IdHardwareRev, dt1TrapEnaCallConnEvent=dt1TrapEnaCallConnEvent, dt1CfgNumT1TypeNacs=dt1CfgNumT1TypeNacs, dt1CmdResult=dt1CmdResult, dt1CmdFunction=dt1CmdFunction) |
# Copyright (c) 2006-2010 Tampere University of Technology
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
This module implements the basis for logging system where many logger
objects may share the same targets and any logger object may have many
targets.
LoggerBase class shows the interface which every logger should
implement. When inherited, you should implement log,
_really_open_target and _really_close_target methods.
Every logger module should export Logger class inherited from
LoggerBase.
"""
_targetstr_refcount={}
_target_str2obj={}
def _attach_target(loggerobject,target):
"""Appends opened target object to the targets attribute of the
logger object."""
if _targetstr_refcount.get(target,0)>0:
_targetstr_refcount[target]+=1
else:
targetobj=loggerobj._really_open_target(target)
target_str2obj[target]=targetobj
targetstr_refcount[target]=1
loggerobj.targets.append(target_str2obj[target])
def _detatch_target(target):
global target_logger_map, target_refcount
if target_refcount[target]==1:
target_logger_map[target]._really_close_target()
target_refcount[target]-=1
target_logger_map[target]
class LoggerBase:
"""Base class for multi-target logging."""
def __init__(self):
self.targets=[]
def open(self,target):
"""Inform the target pool that this logger object will write
to the target. If the target is not already open for writing,
the target pool will call _really_open_target method of this
object. The attach_target function will append the target to
the self.targets list """
_attach_target(self, target)
def log(self,entry):
"""Write entry to open target. Most likely this includes row
for t in self.targets: t.write(xxx) or t.send(xxx)."""
raise NotImplementedError
def close(self):
"""Inform the target pool that this logger will not be needing
its targets anymore. Do not redefine this method --- if you
still do, do not forget to call the original."""
for t in self.targets:
_detatch_target(self,t)
def _really_close_target(self):
"""This is a call-back from the target pool. If the last
reference to the target has been closed, the target can be
closed."""
raise NotImplementedError
def _really_open_target(self,target):
"""Open the target and return writable target object."""
raise NotImplementedError
| """
This module implements the basis for logging system where many logger
objects may share the same targets and any logger object may have many
targets.
LoggerBase class shows the interface which every logger should
implement. When inherited, you should implement log,
_really_open_target and _really_close_target methods.
Every logger module should export Logger class inherited from
LoggerBase.
"""
_targetstr_refcount = {}
_target_str2obj = {}
def _attach_target(loggerobject, target):
"""Appends opened target object to the targets attribute of the
logger object."""
if _targetstr_refcount.get(target, 0) > 0:
_targetstr_refcount[target] += 1
else:
targetobj = loggerobj._really_open_target(target)
target_str2obj[target] = targetobj
targetstr_refcount[target] = 1
loggerobj.targets.append(target_str2obj[target])
def _detatch_target(target):
global target_logger_map, target_refcount
if target_refcount[target] == 1:
target_logger_map[target]._really_close_target()
target_refcount[target] -= 1
target_logger_map[target]
class Loggerbase:
"""Base class for multi-target logging."""
def __init__(self):
self.targets = []
def open(self, target):
"""Inform the target pool that this logger object will write
to the target. If the target is not already open for writing,
the target pool will call _really_open_target method of this
object. The attach_target function will append the target to
the self.targets list """
_attach_target(self, target)
def log(self, entry):
"""Write entry to open target. Most likely this includes row
for t in self.targets: t.write(xxx) or t.send(xxx)."""
raise NotImplementedError
def close(self):
"""Inform the target pool that this logger will not be needing
its targets anymore. Do not redefine this method --- if you
still do, do not forget to call the original."""
for t in self.targets:
_detatch_target(self, t)
def _really_close_target(self):
"""This is a call-back from the target pool. If the last
reference to the target has been closed, the target can be
closed."""
raise NotImplementedError
def _really_open_target(self, target):
"""Open the target and return writable target object."""
raise NotImplementedError |
print(''' _____
.-" .-. "-.
_/ '=(0.0)=' \_
/` .='|m|'=. `\
\________________ /
.--.__///`'-,__~\\\\~`
/ /6|__\// a (__)-\\\\
\ \/--`(( ._\ ,)))
/ \\ ))\ -==- (O)(
/ )\((((\ . /)))))
/ _.' / __(`~~~~`)__
//"\\,-'-"` `~~~~\\~~`"-.
// /`" ` `\
//''')
print("Welcome to Tresure Island.")
print("Your mission is to find the treasure.")
choice1 = input('You\'re at a crossroad, where do you want to go? Type "Left" or "Right". ').lower()
if choice1 == "left":
choice2 = input('You\'ve come to a lake. There is an island in the middle of the lake. Type "wait" to wait for a boat. Type "swim" to swim across. ').lower()
if choice2 == "wait":
choice3 = input('You arrive at the island unharmed. There is a house with 3 doors. One red, one yellow, and on blue. Which color do you choose? ').lower()
if choice3 == "red":
print("It's a room full of fire. Game Over")
elif choice3 == "yellow":
print("You found the treasure! You Win!")
elif choice3 == "blue":
print("You enter a room of beasts. Game Over")
else:
print("You chose a door that doesn't exist. Game Over")
else:
print("You got attacked by a shark, Game Over")
else:
print("You fell into a hole. Game Over") | print(' _____\n .-" .-. "-.\n _/ \'=(0.0)=\' \\_\n /` .=\'|m|\'=. ` \\________________ /\n .--.__///`\'-,__~\\\\~`\n / /6|__\\// a (__)-\\\\\n \\ \\/--`(( ._\\ ,)))\n / \\ ))\\ -==- (O)(\n / )\\((((\\ . /)))))\n / _.\' / __(`~~~~`)__\n //"\\,-\'-"` `~~~~\\~~`"-.\n // /`" ` `//')
print('Welcome to Tresure Island.')
print('Your mission is to find the treasure.')
choice1 = input('You\'re at a crossroad, where do you want to go? Type "Left" or "Right". ').lower()
if choice1 == 'left':
choice2 = input('You\'ve come to a lake. There is an island in the middle of the lake. Type "wait" to wait for a boat. Type "swim" to swim across. ').lower()
if choice2 == 'wait':
choice3 = input('You arrive at the island unharmed. There is a house with 3 doors. One red, one yellow, and on blue. Which color do you choose? ').lower()
if choice3 == 'red':
print("It's a room full of fire. Game Over")
elif choice3 == 'yellow':
print('You found the treasure! You Win!')
elif choice3 == 'blue':
print('You enter a room of beasts. Game Over')
else:
print("You chose a door that doesn't exist. Game Over")
else:
print('You got attacked by a shark, Game Over')
else:
print('You fell into a hole. Game Over') |
'''
Created on Dec 20, 2016
@author: bardya
'''
# HOG_herit = [0,1,2]
#
# hogset = set()
#
# for i in HOG_herit:
# fh = open("/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGLevel_Gains/{}".format(i), 'r')
# hogset |= set([line.strip() for line in fh if line.strip()])
# fh.close()
#
# fh2 = open("/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGLevel_Losses/{}".format(i), 'r')
# hogset -= set([line.strip() for line in fh2 if line.strip()])
# fh2.close()
#
# LCA_set = []
# for i in hogset:
# i_sample = i.replace('.fa', '_sample.fa')
# with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGFasta_random_representative/{}'.format(i_sample), 'r') as fh3:
# for line in fh3:
# if line.startswith('>'):
# protein_id = line.split(' ', 1)[0][1:]
# LCA_set.append(protein_id)
#
# with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOG_LCA/{}_LCA_set.txt'.format(HOG_herit[-1]), 'w') as LCA_seth:
# for protein_id in LCA_set:
# LCA_seth.write(protein_id + '\n')
HOG_herit = [0]
hogset = set()
fh = open("/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGLevel_Gains/{}".format(HOG_herit[0]), 'r')
hogset |= set([line.strip() for line in fh if line.strip()])
fh.close()
LCA_set = []
for i in hogset:
i_sample = i.replace('.fa', '_sample.fa')
with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGFasta_random_representative/{}'.format(i_sample), 'r') as fh3:
for line in fh3:
if line.startswith('>'):
protein_id = line.split(' ', 1)[0][1:]
LCA_set.append(protein_id)
with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/{}_Gains.txt'.format(HOG_herit[0]), 'w') as LCA_seth:
for protein_id in LCA_set:
LCA_seth.write(protein_id + '\n')
# HOG_herit = [20]
#
#
# hogset = set()
# fh = open("/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGLevel_Losses/{}".format(HOG_herit[0]), 'r')
# hogset |= set([line.strip() for line in fh if line.strip()])
# fh.close()
#
# LCA_set = []
#
# for i in hogset:
# i_sample = i.replace('.fa', '_sample.fa')
# with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGFasta_random_representative/{}'.format(i_sample), 'r') as fh3:
# for line in fh3:
# if line.startswith('>'):
# protein_id = line.split(' ', 1)[0][1:]
# LCA_set.append(protein_id)
#
# with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/{}_Losses.txt'.format(HOG_herit[0]), 'w') as LCA_seth:
# for protein_id in LCA_set:
# LCA_seth.write(protein_id + '\n')
| """
Created on Dec 20, 2016
@author: bardya
"""
hog_herit = [0]
hogset = set()
fh = open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGLevel_Gains/{}'.format(HOG_herit[0]), 'r')
hogset |= set([line.strip() for line in fh if line.strip()])
fh.close()
lca_set = []
for i in hogset:
i_sample = i.replace('.fa', '_sample.fa')
with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/HOGFasta_random_representative/{}'.format(i_sample), 'r') as fh3:
for line in fh3:
if line.startswith('>'):
protein_id = line.split(' ', 1)[0][1:]
LCA_set.append(protein_id)
with open('/share/project/bardya/Enterobacteriaceae/OMA_prot/{}_Gains.txt'.format(HOG_herit[0]), 'w') as lca_seth:
for protein_id in LCA_set:
LCA_seth.write(protein_id + '\n') |
class FModifierEnvelopeControlPoint:
frame = None
max = None
min = None
| class Fmodifierenvelopecontrolpoint:
frame = None
max = None
min = None |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.