content
stringlengths 7
1.05M
| fixed_cases
stringlengths 1
1.28M
|
|---|---|
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# This combines configurable build-time constants (documented on REPO_CFG
# below), and non-configurable constants that are currently not namespaced.
#
# Note that there's no deep reason for this struct / non-struct split, so we
# could easily move everything into the struct.
#
load("//antlir/bzl:oss_shim.bzl", "do_not_use_repo_cfg")
load("//antlir/bzl:shape.bzl", "shape")
DO_NOT_USE_BUILD_APPLIANCE = "__DO_NOT_USE_BUILD_APPLIANCE__"
VERSION_SET_ALLOW_ALL_VERSIONS = "__VERSION_SET_ALLOW_ALL_VERSIONS__"
CONFIG_KEY = "antlir"
# This needs to be kept in sync with
# `antlir.nspawn_in_subvol.args._QUERY_TARGETS_AND_OUTPUTS_SEP`
QUERY_TARGETS_AND_OUTPUTS_SEP = "|"
# This is used as standard demiliter in .buckconfig while using
# flavor names under a specific config group
BUCK_CONFIG_FLAVOR_NAME_DELIMITER = "#"
def _get_flavor_config(flavor_name = None):
flavor_to_config = do_not_use_repo_cfg.get("flavor_to_config", {})
for flavor, flavor_config in flavor_to_config.items():
config_key = CONFIG_KEY + BUCK_CONFIG_FLAVOR_NAME_DELIMITER + flavor
for key, v in flavor_config.items():
val = native.read_config(config_key, key, None)
if val != None:
flavor_config[key] = val
return flavor_to_config
# Use `_get_str_cfg` or `_get_str_list_cfg` instead.
def _do_not_use_directly_get_cfg(name, default = None):
# Allow `buck -c` overrides from the command-line
val = native.read_config(CONFIG_KEY, name)
if val != None:
return val
val = do_not_use_repo_cfg.get(name)
if val != None:
return val
return default
# We don't have "globally required" configs because code that requires a
# config will generally loudly fail on a config value that is None.
def _get_str_cfg(name, default = None, allow_none = False):
ret = _do_not_use_directly_get_cfg(name, default = default)
if not allow_none and ret == None:
fail("Repo config must set key {}".format(name))
return ret
# Defaults to the empty list if the config is not set.
#
# We use space to separate plurals because spaces are not allowed in target
# paths, and also because that's what `.buckconfig` is supposed to support
# for list configs (but does not, due to bugs).
def _get_str_list_cfg(name, separator = " ", default = None):
s = _do_not_use_directly_get_cfg(name)
return s.split(separator) if s else (default or [])
# Defaults to the empty list if the config is not set
def _get_version_set_to_path():
lst = _get_str_list_cfg("version_set_to_path")
vs_to_path = dict(zip(lst[::2], lst[1::2]))
if 2 * len(vs_to_path) != len(lst):
fail("antlir.version_set_to_path is a space-separated dict: k1 v1 k2 v2")
# A layer can turn off version locking
# via `version_set = VERSION_SET_ALLOW_ALL_VERSIONS`.
vs_to_path[VERSION_SET_ALLOW_ALL_VERSIONS] = "TROLLING TROLLING TROLLING"
return vs_to_path
# Defaults to the empty list if the config is not set
def _get_artifact_key_to_path():
lst = _get_str_list_cfg("artifact_key_to_path")
key_to_path = dict(zip(lst[::2], lst[1::2]))
if 2 * len(key_to_path) != len(lst):
fail("antlir.artifact_key_to_path is a space-separated dict: k1 v1 k2 v2")
return key_to_path
# These are configuration keys that can be grouped under a specific
# common name called flavor. This way, during run-time, we can choose
# default values for set of configuration keys based on selected flavor
# name
flavor_config_t = shape.shape(
build_appliance = shape.field(str, optional = True),
rpm_installer = shape.field(str, optional = True),
rpm_repo_snapshot = shape.field(str, optional = True),
version_set_path = shape.field(str, optional = True),
)
#
# These are repo-specific configuration keys, which can be overridden via
# the Buck CLI for debugging / development purposes.
#
# We do not want to simply use `.buckconfig` for these, because in FBCode,
# the CI cost to updating `.buckconfig` is quite high (every project
# potentially needs to be tested and rebuilt).
#
# Instead, we keep the per-repo configuration in `oss_shim_impl.bzl`, and
# the global defaults here, in `constants.bzl`.
#
# Our underlying configs use the simple type signature of `Mapping[str,
# str]` because we want to support overrides via `buck -c`. So, some very
# simple parsing of structured configuration keys happens in this file.
#
# Configuration sources have the following precedence order:
# - `buck -c antlir.CONFIG_NAME='foo bar'` -- note that our lists are
# generally space-separated, so you'll want to bash quote those.
# - `.buckconfig` -- DO NOT PUT OUR CONFIGS THERE!
# - `do_not_use_repo_cfg` loaded via `oss_shim.bzl`
# - the defaults below -- these have to be reasonable since this is what a
# clean open-source install will use
#
# A note on naming: please put the "topic" of the constant before the
# details, so that buildifier-required lexicographic ordering of dictionary
# keys results in related keys being grouped together.
#
#
# DANGER! ACHTUNG! PELIGRO! PERICRLRM!
# Modifications to this shape's attributes or the values in the instance
# of it below (`REPO_CFG`) could (and likely will) cause excessive
# rebuilding and incur significant build cost. These attributes and values
# are effectively global and should be treated with extreme caution.
# Don't be careless.
repo_config_t = shape.shape(
artifacts_require_repo = bool,
artifact = shape.dict(str, str),
host_mounts_allowed_in_targets = shape.field(shape.list(str), optional = True),
host_mounts_for_repo_artifacts = shape.field(shape.list(str), optional = True),
flavor_available = shape.list(str),
flavor_default = str,
flavor_to_config = shape.dict(str, flavor_config_t),
antlir_linux_flavor = str,
)
REPO_CFG = shape.new(
repo_config_t,
# This one is not using the access methods to provide the precedence order
# because the way this is determined is *always* based on the build mode
# provided, ie `@mode/opt` vs `@mode/dev`. And the build mode provided
# determines the value of the `.buckconfig` properties used. There is no
# way to override this value except to use a different build mode.
artifacts_require_repo = (
(native.read_config("defaults.cxx_library", "type") == "shared") or
(native.read_config("python", "package_style") == "inplace")
),
# This is a dictionary that allow for looking up configurable artifact
# targets by a key.
artifact = _get_artifact_key_to_path(),
# At FB, the Antlir team tightly controls the usage of host mounts,
# since they are a huge footgun, and are a terrible idea for almost
# every application. To create an easy-to-review code bottleneck, any
# feature target using a host-mount must be listed in this config.
host_mounts_allowed_in_targets = _get_str_list_cfg("host_mounts_allowed_in_targets"),
# Enumerates host mounts required to execute FB binaries in @mode/dev.
#
# This is turned into json and loaded by the python side of the
# `nspawn_in_subvol` sub system. In the future this would be
# implemented via a `Shape` so that the typing can be maintained across
# bzl/python.
host_mounts_for_repo_artifacts = _get_str_list_cfg(
"host_mounts_for_repo_artifacts",
),
flavor_available = _get_str_list_cfg("flavor_available"),
flavor_default = _get_str_cfg("flavor_default"),
flavor_to_config = _get_flavor_config(),
# KEEP THIS DICTIONARY SMALL.
#
# For each `feature`, we have to emit as many targets as there are
# elements in this list, because we do not know the version set that the
# including `image.layer` will use. This would be fixable if Buck
# supported providers like Bazel does.
antlir_linux_flavor = _get_str_cfg("antlir_linux_flavor", allow_none = True),
)
|
load('//antlir/bzl:oss_shim.bzl', 'do_not_use_repo_cfg')
load('//antlir/bzl:shape.bzl', 'shape')
do_not_use_build_appliance = '__DO_NOT_USE_BUILD_APPLIANCE__'
version_set_allow_all_versions = '__VERSION_SET_ALLOW_ALL_VERSIONS__'
config_key = 'antlir'
query_targets_and_outputs_sep = '|'
buck_config_flavor_name_delimiter = '#'
def _get_flavor_config(flavor_name=None):
flavor_to_config = do_not_use_repo_cfg.get('flavor_to_config', {})
for (flavor, flavor_config) in flavor_to_config.items():
config_key = CONFIG_KEY + BUCK_CONFIG_FLAVOR_NAME_DELIMITER + flavor
for (key, v) in flavor_config.items():
val = native.read_config(config_key, key, None)
if val != None:
flavor_config[key] = val
return flavor_to_config
def _do_not_use_directly_get_cfg(name, default=None):
val = native.read_config(CONFIG_KEY, name)
if val != None:
return val
val = do_not_use_repo_cfg.get(name)
if val != None:
return val
return default
def _get_str_cfg(name, default=None, allow_none=False):
ret = _do_not_use_directly_get_cfg(name, default=default)
if not allow_none and ret == None:
fail('Repo config must set key {}'.format(name))
return ret
def _get_str_list_cfg(name, separator=' ', default=None):
s = _do_not_use_directly_get_cfg(name)
return s.split(separator) if s else default or []
def _get_version_set_to_path():
lst = _get_str_list_cfg('version_set_to_path')
vs_to_path = dict(zip(lst[::2], lst[1::2]))
if 2 * len(vs_to_path) != len(lst):
fail('antlir.version_set_to_path is a space-separated dict: k1 v1 k2 v2')
vs_to_path[VERSION_SET_ALLOW_ALL_VERSIONS] = 'TROLLING TROLLING TROLLING'
return vs_to_path
def _get_artifact_key_to_path():
lst = _get_str_list_cfg('artifact_key_to_path')
key_to_path = dict(zip(lst[::2], lst[1::2]))
if 2 * len(key_to_path) != len(lst):
fail('antlir.artifact_key_to_path is a space-separated dict: k1 v1 k2 v2')
return key_to_path
flavor_config_t = shape.shape(build_appliance=shape.field(str, optional=True), rpm_installer=shape.field(str, optional=True), rpm_repo_snapshot=shape.field(str, optional=True), version_set_path=shape.field(str, optional=True))
repo_config_t = shape.shape(artifacts_require_repo=bool, artifact=shape.dict(str, str), host_mounts_allowed_in_targets=shape.field(shape.list(str), optional=True), host_mounts_for_repo_artifacts=shape.field(shape.list(str), optional=True), flavor_available=shape.list(str), flavor_default=str, flavor_to_config=shape.dict(str, flavor_config_t), antlir_linux_flavor=str)
repo_cfg = shape.new(repo_config_t, artifacts_require_repo=native.read_config('defaults.cxx_library', 'type') == 'shared' or native.read_config('python', 'package_style') == 'inplace', artifact=_get_artifact_key_to_path(), host_mounts_allowed_in_targets=_get_str_list_cfg('host_mounts_allowed_in_targets'), host_mounts_for_repo_artifacts=_get_str_list_cfg('host_mounts_for_repo_artifacts'), flavor_available=_get_str_list_cfg('flavor_available'), flavor_default=_get_str_cfg('flavor_default'), flavor_to_config=_get_flavor_config(), antlir_linux_flavor=_get_str_cfg('antlir_linux_flavor', allow_none=True))
|
"""
Erik Meijer. 2014. The curse of the excluded middle.
Commun. ACM 57, 6 (June 2014), 50-55. DOI=10.1145/2605176
http://doi.acm.org/10.1145/2605176
"""
with open('citation.txt', encoding='ascii') as fp:
get_contents = lambda: fp.read()
print(get_contents())
|
"""
Erik Meijer. 2014. The curse of the excluded middle.
Commun. ACM 57, 6 (June 2014), 50-55. DOI=10.1145/2605176
http://doi.acm.org/10.1145/2605176
"""
with open('citation.txt', encoding='ascii') as fp:
get_contents = lambda : fp.read()
print(get_contents())
|
t=int(input())
P=[]
answer=[]
while(t!=0):
N,K=map(int, input().split())
P=list(map(int, input().split()))
P.sort()
for j in range(N):
if(P[j]<=K and K%P[j]==0):
answer.append(P[j])
elif(P[j]>K):
break
else:
continue
#answer the position
answer.reverse()
if(len(answer)>0):
print(answer[0])
else:
print(-1)
answer.clear()
P.clear()
t-=1
|
t = int(input())
p = []
answer = []
while t != 0:
(n, k) = map(int, input().split())
p = list(map(int, input().split()))
P.sort()
for j in range(N):
if P[j] <= K and K % P[j] == 0:
answer.append(P[j])
elif P[j] > K:
break
else:
continue
answer.reverse()
if len(answer) > 0:
print(answer[0])
else:
print(-1)
answer.clear()
P.clear()
t -= 1
|
class newsArticles:
'''
Class defining articles
'''
def __init__(self, source, author, title, description, url, image_url, publish_time, content):
self.source = source # Name of the source of news
self.author = author # Author of the news article
self.title = title # Title of the news article
self.description = description # Snippet of the news article
self.url = url # URL to the news article
self.image_url = image_url # URL for the news article image
self.publish_time = publish_time # Publication date of the news article
self.content = content # Content of the article
class newsSource:
'''
Class defining news sources
'''
pass
|
class Newsarticles:
"""
Class defining articles
"""
def __init__(self, source, author, title, description, url, image_url, publish_time, content):
self.source = source
self.author = author
self.title = title
self.description = description
self.url = url
self.image_url = image_url
self.publish_time = publish_time
self.content = content
class Newssource:
"""
Class defining news sources
"""
pass
|
# There are three type methods
# Instance methods
# Class methods
# Static methods
class Student:
school = "Telusko"
@classmethod
def get_school(cls):
return cls.school
@staticmethod
def info():
print("This is Student Class")
def __init__(self, m1, m2, m3):
self.m1 = m1
self.m2 = m2
self.m3 = m3
def avg(self):
return (self.m1 + self.m2 + self.m3) / 3
def get_m1(self):
return self.m1
def set_m1(self, value):
self.m1 = value
s1 = Student(34, 47, 32)
s2 = Student(89, 32, 12)
print(s1.avg(), s2.avg())
print(Student.get_school())
Student.info()
|
class Student:
school = 'Telusko'
@classmethod
def get_school(cls):
return cls.school
@staticmethod
def info():
print('This is Student Class')
def __init__(self, m1, m2, m3):
self.m1 = m1
self.m2 = m2
self.m3 = m3
def avg(self):
return (self.m1 + self.m2 + self.m3) / 3
def get_m1(self):
return self.m1
def set_m1(self, value):
self.m1 = value
s1 = student(34, 47, 32)
s2 = student(89, 32, 12)
print(s1.avg(), s2.avg())
print(Student.get_school())
Student.info()
|
def method1(arr: list, n: int) -> list:
longest = 1
cnt = 1
for i in range(n - 1):
if (arr[i] + arr[i + 1]) % 2 == 1:
cnt = cnt + 1
else:
longest = max(longest, cnt)
cnt = 1
if longest == 1:
return 0
return max(cnt, longest)
if __name__ == "__main__":
"""
arr = [ 1, 2, 3, 4, 5, 7, 8 ]
n = len(arr)
from timeit import timeit
print(timeit(lambda: method1(arr, n), number=10000)) # 0.01877671800320968
"""
|
def method1(arr: list, n: int) -> list:
longest = 1
cnt = 1
for i in range(n - 1):
if (arr[i] + arr[i + 1]) % 2 == 1:
cnt = cnt + 1
else:
longest = max(longest, cnt)
cnt = 1
if longest == 1:
return 0
return max(cnt, longest)
if __name__ == '__main__':
'\n arr = [ 1, 2, 3, 4, 5, 7, 8 ]\n n = len(arr)\n from timeit import timeit\n print(timeit(lambda: method1(arr, n), number=10000)) # 0.01877671800320968\n '
|
# Find the Access Codes
# =====================
# In order to destroy Commander Lambda's LAMBCHOP doomsday device, you'll need access to it. But the only door leading to the LAMBCHOP chamber is secured with a unique lock system whose number of passcodes changes daily. Commander Lambda gets a report every day that includes the locks' access codes, but only she knows how to figure out which of several lists contains the access codes. You need to find a way to determine which list contains the access codes once you're ready to go in.
# Fortunately, now that you're Commander Lambda's personal assistant, she's confided to you that she made all the access codes "lucky triples" in order to help her better find them in the lists. A "lucky triple" is a tuple (x, y, z) where x divides y and y divides z, such as (1, 2, 4). With that information, you can figure out which list contains the number of access codes that matches the number of locks on the door when you're ready to go in (for example, if there's 5 passcodes, you'd need to find a list with 5 "lucky triple" access codes).
# Write a function solution(l) that takes a list of positive integers l and counts the number of "lucky triples" of (li, lj, lk) where the list indices meet the requirement i < j < k. The length of l is between 2 and 2000 inclusive. The elements of l are between 1 and 999999 inclusive. The answer fits within a signed 32-bit integer. Some of the lists are purposely generated without any access codes to throw off spies, so if no triples are found, return 0.
# For example, [1, 2, 3, 4, 5, 6] has the triples: [1, 2, 4], [1, 2, 6], [1, 3, 6], making the answer 3 total.
# Languages
# =========
# To provide a Java solution, edit Solution.java
# To provide a Python solution, edit solution.py
# Test cases
# ==========
# Your code should pass the following test cases.
# Note that it may also be run against hidden test cases not shown here.
# -- Java cases --
# Input:
# Solution.solution([1, 1, 1])
# Output:
# 1
# Input:
# Solution.solution([1, 2, 3, 4, 5, 6])
# Output:
# 3
# -- Python cases --
# Input:
# solution.solution([1, 2, 3, 4, 5, 6])
# Output:
# 3
# Input:
# solution.solution([1, 1, 1])
# Output:
# 1
# Use verify [file] to test your solution and see how it does. When you are finished editing your code, use submit [file] to submit your answer. If your solution passes the test cases, it will be removed from your home folder.
# foobar:~/find-the-access-codes narayananajay99$
def solution_brute(l):
# Brute force
n = len(l)
count = 0
for i in range(n):
for j in range(i+1, n):
for k in range(j+1, n):
# (i, j, k)
if( l[j] % l[i] == 0 and l[k] % l[j] == 0):
count += 1
return count
def solution(l):
# Brute force solution doesn't pass.
# Let counts[j] represent the number of pairs <i, j> with i < j, l[j] % l[i] == 0 and i >= 0 ; for each j in 0 <= j < n
# Now for each pair <j, k> with j < k, j >= 0 and l[k] % l[j] == 0,
# there exits counts[j] of triplets <i, j, k> such that l[j] % l[i] == 0
n = len(l)
counts = [0]*n
triplets = 0
# counts[j] computation
for j in range(n):
for i in range(j):
# <i, j> pair
if( l[j] % l[i] == 0):
counts[j] += 1
# total triplets count computation
for k in range(n):
for j in range(k):
# All <i, j, k> pair with
# l[j] % l[i] == 0
# l[k] % l[j] == 0
# i < j < k and i, j, k >= 0
if(l[k] % l[j] == 0):
triplets += counts[j]
return triplets
|
def solution_brute(l):
n = len(l)
count = 0
for i in range(n):
for j in range(i + 1, n):
for k in range(j + 1, n):
if l[j] % l[i] == 0 and l[k] % l[j] == 0:
count += 1
return count
def solution(l):
n = len(l)
counts = [0] * n
triplets = 0
for j in range(n):
for i in range(j):
if l[j] % l[i] == 0:
counts[j] += 1
for k in range(n):
for j in range(k):
if l[k] % l[j] == 0:
triplets += counts[j]
return triplets
|
a,b,c=list(map(int, input().split()))
arr=[a,b,c]
arr=sorted(arr)
print(arr[0],arr[1],arr[2])
|
(a, b, c) = list(map(int, input().split()))
arr = [a, b, c]
arr = sorted(arr)
print(arr[0], arr[1], arr[2])
|
class TaskDTO:
task_id = None
name = None
args = None
running = None
def __init__(self, task):
self.task_id = task["id"]
self.name = task["name"].split(".")[-1]
self.args = task["args"]
self.running = task["time_start"] is not None
|
class Taskdto:
task_id = None
name = None
args = None
running = None
def __init__(self, task):
self.task_id = task['id']
self.name = task['name'].split('.')[-1]
self.args = task['args']
self.running = task['time_start'] is not None
|
class Socks5Error(Exception):
pass
class NoVersionAllowed(Socks5Error):
pass
class NoCommandAllowed(Socks5Error):
pass
class NoATYPAllowed(Socks5Error):
pass
class AuthenticationError(Socks5Error):
pass
class NoAuthenticationAllowed(AuthenticationError):
pass
|
class Socks5Error(Exception):
pass
class Noversionallowed(Socks5Error):
pass
class Nocommandallowed(Socks5Error):
pass
class Noatypallowed(Socks5Error):
pass
class Authenticationerror(Socks5Error):
pass
class Noauthenticationallowed(AuthenticationError):
pass
|
"""Slide"""
|
"""Slide"""
|
"""Linkedlist implementation."""
class Node(object):
"""Node class."""
def __init__(self, initdata=None):
"""Initialization."""
self.data = initdata
self.next = None
def getData(self):
"""Get node's data."""
return self.data
def setData(self, data):
"""Set node's data."""
self.data = data
def getNext(self):
"""Get next node."""
return self.next
def setNext(self, node):
"""Set next node."""
self.next = node
class UnorderedList(object):
"""Linkedlist implementation."""
def __init__(self):
"""Initialization of list."""
self.head = None
self.end = None
def isEmpty(self):
"""Tests if the list is empty."""
"""
:rtype: Bool
"""
return self.head == None
def add(self, item):
"""Adds a new item to the list. Assumes item is not present."""
"""
:type item: Node()
"""
if self.head == None:
self.head = Node(item)
elif self.end == None:
self.end = self.head
self.head = Node(item)
self.head.setNext(self.end)
else:
temp = Node(item)
temp.setNext(self.head)
self.head = temp
def remove(self, item):
"""Removes the item from the list. Assumes item is present."""
"""
:type item: Node()
"""
prev = self.head
curr = self.head
temp = Node(item)
while curr:
if self.head.getData() == temp.getData():
self.head = curr.getNext()
if self.end.getData() == temp.getData():
self.end = None
break
elif self.end.getData() == temp.getData():
self.end = prev
break
elif curr.getData() == temp.getData():
prev.setNext(curr.getNext())
curr = None
break
prev = curr
curr = curr.getNext()
def search(self, item):
"""Searches for the item in the list."""
"""
:type item: Node()
:rtype: Bool
"""
curr = self.head
while curr:
if curr.getData() == item.getData():
return True
curr = curr.getNext()
return False
def size(self):
"""Returns the number of items in the list."""
"""
:rtype: Int: size of list
"""
size = 0
curr = self.head
while curr:
curr = curr.getNext()
size += 1
return size
def append(self, item):
"""Adds a new item to the end of the list. Assumes item is not present."""
"""
:type item: Node()
"""
temp = Node(item)
self.end.setNext(temp)
self.end = temp
def index(self, item):
"""Returns the position of item in the list. Assumes item is present."""
"""
:type item: Node()
:rtype pos: Int
"""
curr = self.head
idx = 0
while curr:
if curr.getData() == item.getData():
return idx
idx += 1
curr = curr.getNext()
def insert(self, pos, item):
"""Adds a new item in the list at position pos. Assumes item is not present."""
"""
:type item: Node()
"""
if pos == 0:
item.setNext(self.head)
self.head = item
else:
prev = self.head
curr = self.head
idx = 0
while curr:
if idx == pos:
prev.setNext(item)
item.setNext(curr)
break
prev = curr
curr = curr.getNext()
idx += 1
def pop(self, pos=None):
"""
Removes and returns the item at position pos. It needs the position and returns the item.
Assumes the item is in the list.
"""
"""
:type pos: int
:rtype node: Node()
"""
if pos == None:
pos = self.size() - 1
if pos == 0:
h = self.head
self.head = None
return h
else:
prev = curr = self.head
idx = 0
while curr:
if idx == pos:
prev.setNext(curr.getNext())
return curr
idx += 1
prev = curr
curr = curr.getNext()
if __name__ == "__main__":
node = Node()
assert(node.data == None)
assert(node.next == None)
node.setData(1)
assert(node.getData() == 1)
node.setNext(Node(1000000000000))
assert(node.getNext().getData() == 1000000000000)
assert(node.next.getData() == 1000000000000)
list = UnorderedList()
assert(list.isEmpty())
n1 = 1
n2 = 2
n3 = 10000
n4 = 432424
list.add(n1)
list.add(n2)
list.add(n3)
assert(not list.isEmpty())
# Remove from middle
list.remove(n2)
# Remove from beginning
list.remove(n1)
list.remove(n3)
print('list size %d' % list.size())
assert(list.size() == 0)
# Remove from end of list
list.add(n3)
list.add(n4)
list.remove(n3)
assert(list.size() == 1)
assert(list.search(n4))
assert(not list.search(n3))
n5 = 1434134
list.append(n5)
assert(list.search(n5))
n6 = 16744
list.append(n6)
assert(list.index(n5) == 1)
assert(list.index(n6) == 2)
list.remove(n5)
assert(list.index(n6) == 1)
list.insert(0, n1)
assert(list.index(n1) == 0)
n10 = 12012030213
n40 = 123899031954
list.insert(2, n10)
list.insert(3, n40)
assert(list.index(n10) == 2)
assert(list.index(n40) == 3)
assert(list.pop(2) == n10)
assert(list.pop() == n6)
|
"""Linkedlist implementation."""
class Node(object):
"""Node class."""
def __init__(self, initdata=None):
"""Initialization."""
self.data = initdata
self.next = None
def get_data(self):
"""Get node's data."""
return self.data
def set_data(self, data):
"""Set node's data."""
self.data = data
def get_next(self):
"""Get next node."""
return self.next
def set_next(self, node):
"""Set next node."""
self.next = node
class Unorderedlist(object):
"""Linkedlist implementation."""
def __init__(self):
"""Initialization of list."""
self.head = None
self.end = None
def is_empty(self):
"""Tests if the list is empty."""
' \n :rtype: Bool\n '
return self.head == None
def add(self, item):
"""Adds a new item to the list. Assumes item is not present."""
'\n :type item: Node() \n '
if self.head == None:
self.head = node(item)
elif self.end == None:
self.end = self.head
self.head = node(item)
self.head.setNext(self.end)
else:
temp = node(item)
temp.setNext(self.head)
self.head = temp
def remove(self, item):
"""Removes the item from the list. Assumes item is present."""
'\n :type item: Node() \n '
prev = self.head
curr = self.head
temp = node(item)
while curr:
if self.head.getData() == temp.getData():
self.head = curr.getNext()
if self.end.getData() == temp.getData():
self.end = None
break
elif self.end.getData() == temp.getData():
self.end = prev
break
elif curr.getData() == temp.getData():
prev.setNext(curr.getNext())
curr = None
break
prev = curr
curr = curr.getNext()
def search(self, item):
"""Searches for the item in the list."""
'\n :type item: Node() \n :rtype: Bool\n '
curr = self.head
while curr:
if curr.getData() == item.getData():
return True
curr = curr.getNext()
return False
def size(self):
"""Returns the number of items in the list."""
' \n :rtype: Int: size of list\n '
size = 0
curr = self.head
while curr:
curr = curr.getNext()
size += 1
return size
def append(self, item):
"""Adds a new item to the end of the list. Assumes item is not present."""
'\n :type item: Node() \n '
temp = node(item)
self.end.setNext(temp)
self.end = temp
def index(self, item):
"""Returns the position of item in the list. Assumes item is present."""
'\n :type item: Node() \n :rtype pos: Int\n '
curr = self.head
idx = 0
while curr:
if curr.getData() == item.getData():
return idx
idx += 1
curr = curr.getNext()
def insert(self, pos, item):
"""Adds a new item in the list at position pos. Assumes item is not present."""
'\n :type item: Node() \n '
if pos == 0:
item.setNext(self.head)
self.head = item
else:
prev = self.head
curr = self.head
idx = 0
while curr:
if idx == pos:
prev.setNext(item)
item.setNext(curr)
break
prev = curr
curr = curr.getNext()
idx += 1
def pop(self, pos=None):
"""
Removes and returns the item at position pos. It needs the position and returns the item.
Assumes the item is in the list.
"""
'\n :type pos: int\n :rtype node: Node()\n '
if pos == None:
pos = self.size() - 1
if pos == 0:
h = self.head
self.head = None
return h
else:
prev = curr = self.head
idx = 0
while curr:
if idx == pos:
prev.setNext(curr.getNext())
return curr
idx += 1
prev = curr
curr = curr.getNext()
if __name__ == '__main__':
node = node()
assert node.data == None
assert node.next == None
node.setData(1)
assert node.getData() == 1
node.setNext(node(1000000000000))
assert node.getNext().getData() == 1000000000000
assert node.next.getData() == 1000000000000
list = unordered_list()
assert list.isEmpty()
n1 = 1
n2 = 2
n3 = 10000
n4 = 432424
list.add(n1)
list.add(n2)
list.add(n3)
assert not list.isEmpty()
list.remove(n2)
list.remove(n1)
list.remove(n3)
print('list size %d' % list.size())
assert list.size() == 0
list.add(n3)
list.add(n4)
list.remove(n3)
assert list.size() == 1
assert list.search(n4)
assert not list.search(n3)
n5 = 1434134
list.append(n5)
assert list.search(n5)
n6 = 16744
list.append(n6)
assert list.index(n5) == 1
assert list.index(n6) == 2
list.remove(n5)
assert list.index(n6) == 1
list.insert(0, n1)
assert list.index(n1) == 0
n10 = 12012030213
n40 = 123899031954
list.insert(2, n10)
list.insert(3, n40)
assert list.index(n10) == 2
assert list.index(n40) == 3
assert list.pop(2) == n10
assert list.pop() == n6
|
# Copy and rename this file to settings.py to be in effect.
# Maximum total number of files to maintain/copy in all of the batch/dst directories.
LIMIT = 1000
# How many seconds to sleep before checking for the above limit again.
# If the last number is reached and the check still fails,
# then the whole script will exit and the current file list will be saved as
# a csv at SAVED_FILE_LIST_PATH below.
# This is to prevent the script from hanging while Splunk is down.
SLEEP = [1, 1, 1, 1, 1, 5, 10, 30, 600]
SAVED_FILE_LIST_PATH = "/mnt/data/tmp/mass_index_saved_file_list.csv"
LOG_PATH = "/tmp/mass_index.log"
# Size of each log file.
# 1 MB = 1 * 1024 * 1024
LOG_ROTATION_BYTES = 25 * 1024 * 1024
# Maximum number of log files.
LOG_ROTATION_LIMIT = 100
DATA = [
{
"src": "/path/to/data/*.log",
"dst": "/some/path/foo/",
},
{
"src": "/path/to/another/data/*.log",
"dst": "/some/path/bar/",
},
]
|
limit = 1000
sleep = [1, 1, 1, 1, 1, 5, 10, 30, 600]
saved_file_list_path = '/mnt/data/tmp/mass_index_saved_file_list.csv'
log_path = '/tmp/mass_index.log'
log_rotation_bytes = 25 * 1024 * 1024
log_rotation_limit = 100
data = [{'src': '/path/to/data/*.log', 'dst': '/some/path/foo/'}, {'src': '/path/to/another/data/*.log', 'dst': '/some/path/bar/'}]
|
"""
Constant values used throughout the app.
"""
CALLBACK_PATH = '/v1/das/callback'
ACQUISITION_PATH = '/rest/das/requests'
GET_REQUEST_PATH = ACQUISITION_PATH + '/{req_id}'
DOWNLOAD_CALLBACK_PATH = CALLBACK_PATH + '/downloader/{req_id}'
DOWNLOADER_PATH = '/rest/downloader/requests'
METADATA_PARSER_PATH = '/rest/metadata'
METADATA_PARSER_CALLBACK_PATH = CALLBACK_PATH + '/metadata/{req_id}'
UPLOADER_REQUEST_PATH = CALLBACK_PATH + '/uploader'
|
"""
Constant values used throughout the app.
"""
callback_path = '/v1/das/callback'
acquisition_path = '/rest/das/requests'
get_request_path = ACQUISITION_PATH + '/{req_id}'
download_callback_path = CALLBACK_PATH + '/downloader/{req_id}'
downloader_path = '/rest/downloader/requests'
metadata_parser_path = '/rest/metadata'
metadata_parser_callback_path = CALLBACK_PATH + '/metadata/{req_id}'
uploader_request_path = CALLBACK_PATH + '/uploader'
|
matrix = [input().split() for row in range(int(input()))]
primary_diagonal_sum = 0
for i in range(len(matrix)):
primary_diagonal_sum += int(matrix[i][i])
print(primary_diagonal_sum)
|
matrix = [input().split() for row in range(int(input()))]
primary_diagonal_sum = 0
for i in range(len(matrix)):
primary_diagonal_sum += int(matrix[i][i])
print(primary_diagonal_sum)
|
class TaskMixin:
def _get_is_labeled_value(self):
n = self.completed_annotations.count()
return n >= self.overlap
|
class Taskmixin:
def _get_is_labeled_value(self):
n = self.completed_annotations.count()
return n >= self.overlap
|
class Vehicle:
DEFAULT_FUEL_CONSUMPTION = 1.25
def __init__(self, fuel, horse_power):
self.fuel = fuel
self.horse_power = horse_power
self.fuel_consumption = self.DEFAULT_FUEL_CONSUMPTION
def drive(self, kilometers):
fuel_needed = kilometers * self.fuel_consumption
if fuel_needed <= self.fuel:
self.fuel -= fuel_needed
|
class Vehicle:
default_fuel_consumption = 1.25
def __init__(self, fuel, horse_power):
self.fuel = fuel
self.horse_power = horse_power
self.fuel_consumption = self.DEFAULT_FUEL_CONSUMPTION
def drive(self, kilometers):
fuel_needed = kilometers * self.fuel_consumption
if fuel_needed <= self.fuel:
self.fuel -= fuel_needed
|
"""Top-level package for climinteractive."""
__author__ = """Bjoern Mayer"""
__email__ = 'bjoern.mayer@mpimet.mpg.de'
__version__ = '0.1.0'
|
"""Top-level package for climinteractive."""
__author__ = 'Bjoern Mayer'
__email__ = 'bjoern.mayer@mpimet.mpg.de'
__version__ = '0.1.0'
|
#dictionary
Person = {'personID': 0,
'firstName': "",
'lastName': "",
'Account': {'accountNumber': 0,
'accountType': 0,
'money': 0,
'limit': 0}
}
def inputPerson():
Person['personID'] = int(input("Enter Customer ID: "))
Person['firstName'] = str(input("Enter First Name: "))
Person['lastName'] = str(input("Enter Last Name: "))
#account detail
Person['Account']['accountNumber'] = int(input("Enter Account number: "))
Person['Account']['accountType'] = int(input("Enter Account type (1) or (2): "))
accountType = Person['Account']['money'] = int(input("Enter initial money: "))
#check account type 2
if(Person['Account']['accountType'] == 2):
Person['Account']['limit'] = int(input("Enter limit: "))
def showPerson():
print("Customer id: %d" %(Person['personID']))
print("Customer First Name: %s" %(Person['firstName']))
print("Customer Last Name: %s" %(Person['lastName']))
print("Account number: %d" %(Person['Account']['accountNumber']))
if(Person['Account']['accountType'] == 1):
print("Account type: (1) Saving account")
else:
print("Account type: (2) Current account")
print("Balance: %d" %(Person['Account']['money']))
if(Person['Account']['accountType'] == 2):
print("Limit: %d" %(Person['Account']['limit']))
def deposite():
money = int(input("Please enter the amount you want to deposit: "))
Person['Account']['money'] = Person['Account']['money'] + money;
def withdraw():
money = int(input("Please enter the amount you wish to withdraw: "))
Person['Account']['money'] = Person['Account']['money'] - money;
def main():
inputPerson()
while(True):
print("----------------------------------------------------")
print(" (1) Deposite (2) Withdraw (3) Exit ")
print("----------------------------------------------------")
choice = int(input())
if(choice == 1):
deposite()
elif(choice == 2):
withdraw()
elif(choice == 3):
showPerson()
break
else:
break
main()
|
person = {'personID': 0, 'firstName': '', 'lastName': '', 'Account': {'accountNumber': 0, 'accountType': 0, 'money': 0, 'limit': 0}}
def input_person():
Person['personID'] = int(input('Enter Customer ID: '))
Person['firstName'] = str(input('Enter First Name: '))
Person['lastName'] = str(input('Enter Last Name: '))
Person['Account']['accountNumber'] = int(input('Enter Account number: '))
Person['Account']['accountType'] = int(input('Enter Account type (1) or (2): '))
account_type = Person['Account']['money'] = int(input('Enter initial money: '))
if Person['Account']['accountType'] == 2:
Person['Account']['limit'] = int(input('Enter limit: '))
def show_person():
print('Customer id: %d' % Person['personID'])
print('Customer First Name: %s' % Person['firstName'])
print('Customer Last Name: %s' % Person['lastName'])
print('Account number: %d' % Person['Account']['accountNumber'])
if Person['Account']['accountType'] == 1:
print('Account type: (1) Saving account')
else:
print('Account type: (2) Current account')
print('Balance: %d' % Person['Account']['money'])
if Person['Account']['accountType'] == 2:
print('Limit: %d' % Person['Account']['limit'])
def deposite():
money = int(input('Please enter the amount you want to deposit: '))
Person['Account']['money'] = Person['Account']['money'] + money
def withdraw():
money = int(input('Please enter the amount you wish to withdraw: '))
Person['Account']['money'] = Person['Account']['money'] - money
def main():
input_person()
while True:
print('----------------------------------------------------')
print(' (1) Deposite (2) Withdraw (3) Exit ')
print('----------------------------------------------------')
choice = int(input())
if choice == 1:
deposite()
elif choice == 2:
withdraw()
elif choice == 3:
show_person()
break
else:
break
main()
|
for _ in range(int(input())):
a, b, c = map(int, input().split())
if a < b - c:
print("advertise")
elif a == b - c:
print("does not matter")
else:
print("do not advertise")
|
for _ in range(int(input())):
(a, b, c) = map(int, input().split())
if a < b - c:
print('advertise')
elif a == b - c:
print('does not matter')
else:
print('do not advertise')
|
# define options
CONF_SPEC = {
'optgroup': None,
'urls_conf': None,
'public': False,
'plugins': [],
'widgets': [],
'apps': [],
'middlewares': [],
'context_processors': [],
'dirs': [],
'page_extensions': [],
'auth_backends': [],
'js_files': [],
'js_spec_files': [],
'angular_modules': [],
'css_files': [],
'scss_files': [],
'config': {},
'additional_fields': {},
'migration_modules': {},
'absolute_url_overrides': {},
'navigation_extensions': [],
'page_actions': [],
'widget_actions': [],
'ordering': 0,
'channel_routing': [],
'extra_context': {},
'demo_paths': [],
'requirements': [],
}
# just MAP - Django - Our spec
DJANGO_CONF = {
'INSTALLED_APPS': "apps",
'APPLICATION_CHOICES': "plugins",
'MIDDLEWARE': "middlewares",
'AUTHENTICATION_BACKENDS': "auth_backends",
'PAGE_EXTENSIONS': "page_extensions",
'ADD_PAGE_ACTIONS': "page_actions",
'ADD_WIDGET_ACTIONS': "widget_actions",
'MIGRATION_MODULES': "migration_modules",
'CONSTANCE_ADDITIONAL_FIELDS': "additional_fields",
}
|
conf_spec = {'optgroup': None, 'urls_conf': None, 'public': False, 'plugins': [], 'widgets': [], 'apps': [], 'middlewares': [], 'context_processors': [], 'dirs': [], 'page_extensions': [], 'auth_backends': [], 'js_files': [], 'js_spec_files': [], 'angular_modules': [], 'css_files': [], 'scss_files': [], 'config': {}, 'additional_fields': {}, 'migration_modules': {}, 'absolute_url_overrides': {}, 'navigation_extensions': [], 'page_actions': [], 'widget_actions': [], 'ordering': 0, 'channel_routing': [], 'extra_context': {}, 'demo_paths': [], 'requirements': []}
django_conf = {'INSTALLED_APPS': 'apps', 'APPLICATION_CHOICES': 'plugins', 'MIDDLEWARE': 'middlewares', 'AUTHENTICATION_BACKENDS': 'auth_backends', 'PAGE_EXTENSIONS': 'page_extensions', 'ADD_PAGE_ACTIONS': 'page_actions', 'ADD_WIDGET_ACTIONS': 'widget_actions', 'MIGRATION_MODULES': 'migration_modules', 'CONSTANCE_ADDITIONAL_FIELDS': 'additional_fields'}
|
a=int(input("enter a levels "))
u=0
lis=[]
i=1
while i<=a:
print("\n")
d=a
if(i==4):
u=0
if(i<=3):
#k=i
lis.append(i)
u=i
else:
u=u+sum(lis)
while d>=i:
print(" ",end="\t")
d=d-1
for j in range(1,i+1):
print(u,end="\t\t")
i=i+1
|
a = int(input('enter a levels '))
u = 0
lis = []
i = 1
while i <= a:
print('\n')
d = a
if i == 4:
u = 0
if i <= 3:
lis.append(i)
u = i
else:
u = u + sum(lis)
while d >= i:
print(' ', end='\t')
d = d - 1
for j in range(1, i + 1):
print(u, end='\t\t')
i = i + 1
|
# URL of server application root
BASE_URL = 'https://printer.nsychev.ru/'
# Secret token, same as server one
TOKEN = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
# Path to print executable
PRINT_BIN = 'PDFtoPrinter.exe'
# Printer name
PRINTER = 'Hewlett-Packard HP LaserJet Pro MFP M125ra'
|
base_url = 'https://printer.nsychev.ru/'
token = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
print_bin = 'PDFtoPrinter.exe'
printer = 'Hewlett-Packard HP LaserJet Pro MFP M125ra'
|
expected_output = {
'nodes': {
1: {
'te_router_id': '192.168.0.4',
'host_name': 'rtrD',
'isis_system_id': [
'1921.68ff.1004 level-1',
'1921.68ff.1004 level-2',
'1921.68ff.1004 level-2'],
'asn': [
65001,
65001,
65001],
'domain_id': [
1111,
1111,
9999],
'advertised_prefixes': [
'192.168.0.4',
'192.168.0.4',
'192.168.0.4',
'192.168.0.6']},
2: {
'te_router_id': '192.168.0.1',
'host_name': 'rtrA',
'isis_system_id': ['1921.68ff.1001 level-2'],
'advertised_prefixes': ['192.168.0.1']}}}
|
expected_output = {'nodes': {1: {'te_router_id': '192.168.0.4', 'host_name': 'rtrD', 'isis_system_id': ['1921.68ff.1004 level-1', '1921.68ff.1004 level-2', '1921.68ff.1004 level-2'], 'asn': [65001, 65001, 65001], 'domain_id': [1111, 1111, 9999], 'advertised_prefixes': ['192.168.0.4', '192.168.0.4', '192.168.0.4', '192.168.0.6']}, 2: {'te_router_id': '192.168.0.1', 'host_name': 'rtrA', 'isis_system_id': ['1921.68ff.1001 level-2'], 'advertised_prefixes': ['192.168.0.1']}}}
|
# Copyright 2010 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""Possible vm states for instances.
Compute instance vm states represent the state of an instance as it pertains to
a user or administrator.
vm_state describes a VM's current stable (not transition) state. That is, if
there is no ongoing compute API calls (running tasks), vm_state should reflect
what the customer expect the VM to be. When combined with task states
(task_states.py), a better picture can be formed regarding the instance's
health and progress.
See http://wiki.openstack.org/VMState
"""
ACTIVE = 'active' # VM is running
BUILDING = 'building' # VM only exists in DB
PAUSED = 'paused'
SUSPENDED = 'suspended' # VM is suspended to disk.
STOPPED = 'stopped' # VM is powered off, the disk image is still there.
RESCUED = 'rescued' # A rescue image is running with the original VM image
# attached.
RESIZED = 'resized' # a VM with the new size is active. The user is expected
# to manually confirm or revert.
SOFT_DELETED = 'soft-delete' # VM is marked as deleted but the disk images are
# still available to restore.
DELETED = 'deleted' # VM is permanently deleted.
ERROR = 'error'
SHELVED = 'shelved' # VM is powered off, resources still on hypervisor
SHELVED_OFFLOADED = 'shelved_offloaded' # VM and associated resources are
# not on hypervisor
ALLOW_SOFT_REBOOT = [ACTIVE] # states we can soft reboot from
ALLOW_HARD_REBOOT = ALLOW_SOFT_REBOOT + [STOPPED, PAUSED, SUSPENDED, ERROR]
# states we allow hard reboot from
ALLOW_TRIGGER_CRASH_DUMP = [ACTIVE, PAUSED, RESCUED, RESIZED, ERROR]
# states we allow to trigger crash dump
ALLOW_RESOURCE_REMOVAL = [DELETED, SHELVED_OFFLOADED]
# states we allow resources to be freed in
|
"""Possible vm states for instances.
Compute instance vm states represent the state of an instance as it pertains to
a user or administrator.
vm_state describes a VM's current stable (not transition) state. That is, if
there is no ongoing compute API calls (running tasks), vm_state should reflect
what the customer expect the VM to be. When combined with task states
(task_states.py), a better picture can be formed regarding the instance's
health and progress.
See http://wiki.openstack.org/VMState
"""
active = 'active'
building = 'building'
paused = 'paused'
suspended = 'suspended'
stopped = 'stopped'
rescued = 'rescued'
resized = 'resized'
soft_deleted = 'soft-delete'
deleted = 'deleted'
error = 'error'
shelved = 'shelved'
shelved_offloaded = 'shelved_offloaded'
allow_soft_reboot = [ACTIVE]
allow_hard_reboot = ALLOW_SOFT_REBOOT + [STOPPED, PAUSED, SUSPENDED, ERROR]
allow_trigger_crash_dump = [ACTIVE, PAUSED, RESCUED, RESIZED, ERROR]
allow_resource_removal = [DELETED, SHELVED_OFFLOADED]
|
# coding: utf-8
pedido, quant = input().split(" ")
pedido, quant = int(pedido), float(quant)
valor = 0
if pedido == 1:
valor = 4.0
elif pedido == 2:
valor = 4.5
elif pedido == 3:
valor = 5.0
elif pedido == 4:
valor = 2.0
elif pedido == 5:
valor = 1.5
print('Total: R$ {:.2f}'.format(valor * quant))
|
(pedido, quant) = input().split(' ')
(pedido, quant) = (int(pedido), float(quant))
valor = 0
if pedido == 1:
valor = 4.0
elif pedido == 2:
valor = 4.5
elif pedido == 3:
valor = 5.0
elif pedido == 4:
valor = 2.0
elif pedido == 5:
valor = 1.5
print('Total: R$ {:.2f}'.format(valor * quant))
|
class SimpleList:
def __init__(self, items):
self._items = list(items)
def add(self, item):
self._items.append(item)
def __getitem__(self, index):
return self._items[index]
def sort(self):
self._items.sort()
def __len__(self):
return len(self._items)
def __repr__(self):
return "SimpleList({!r})".format(self._items)
class SortedList(SimpleList):
def __init__(self, items=()):
super().__init__(items)
self.sort()
def add(self, item):
super().add(item)
self.sort()
def __repr__(self):
return "SortedList({!r})".format(list(self))
class IntList(SimpleList):
def __init__(self, items=()):
print('in intlist')
for x in items: self._validate(x)
super().__init__(items)
@staticmethod
def _validate(x):
if not isinstance(x, int):
raise TypeError('IntList only supports integer values.')
def add(self, item):
self._validate(item)
super().add(item)
def __repr__(self):
return "IntList({!r})".format(list(self))
class SortedIntList(IntList, SortedList):
def __repr__(self):
return 'SortedIntList({!r})'.format(list(self))
|
class Simplelist:
def __init__(self, items):
self._items = list(items)
def add(self, item):
self._items.append(item)
def __getitem__(self, index):
return self._items[index]
def sort(self):
self._items.sort()
def __len__(self):
return len(self._items)
def __repr__(self):
return 'SimpleList({!r})'.format(self._items)
class Sortedlist(SimpleList):
def __init__(self, items=()):
super().__init__(items)
self.sort()
def add(self, item):
super().add(item)
self.sort()
def __repr__(self):
return 'SortedList({!r})'.format(list(self))
class Intlist(SimpleList):
def __init__(self, items=()):
print('in intlist')
for x in items:
self._validate(x)
super().__init__(items)
@staticmethod
def _validate(x):
if not isinstance(x, int):
raise type_error('IntList only supports integer values.')
def add(self, item):
self._validate(item)
super().add(item)
def __repr__(self):
return 'IntList({!r})'.format(list(self))
class Sortedintlist(IntList, SortedList):
def __repr__(self):
return 'SortedIntList({!r})'.format(list(self))
|
class Solution:
"""
The Brute Force Solution
Time Complexity: O(N^3)
Space Complexity: O(1)
"""
def countGoodTriplets(self, arr: List[int], a: int, b: int, c: int) -> int:
triplet_count = 0
# for each i, for each j, check if the first condition is satisfied
for i in range(len(arr) - 2):
for j in range(i + 1, len(arr) - 1):
if abs(arr[i] - arr[j]) <= a:
# for each k, check if the last two conditions are satisfied
for k in range(j + 1, len(arr)):
if abs(arr[j] - arr[k]) <= b and abs(arr[i] - arr[k]) <= c:
# the triplet is Good, increment the count!
triplet_count += 1
return triplet_count
|
class Solution:
"""
The Brute Force Solution
Time Complexity: O(N^3)
Space Complexity: O(1)
"""
def count_good_triplets(self, arr: List[int], a: int, b: int, c: int) -> int:
triplet_count = 0
for i in range(len(arr) - 2):
for j in range(i + 1, len(arr) - 1):
if abs(arr[i] - arr[j]) <= a:
for k in range(j + 1, len(arr)):
if abs(arr[j] - arr[k]) <= b and abs(arr[i] - arr[k]) <= c:
triplet_count += 1
return triplet_count
|
class Error(Exception):
"""Base class for exceptions in this module."""
pass
class Parse(Error):
""" Error parsing the program"""
pass
class Output(Error):
""" Error parsing the program"""
pass
class Symbol(Error):
""" Error parsing the program"""
pass
|
class Error(Exception):
"""Base class for exceptions in this module."""
pass
class Parse(Error):
""" Error parsing the program"""
pass
class Output(Error):
""" Error parsing the program"""
pass
class Symbol(Error):
""" Error parsing the program"""
pass
|
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load("@bazel_skylib//lib:paths.bzl", "paths")
daml_provider = provider(doc = "DAML provider", fields = {
"dalf": "The DAML-LF file.",
"dar": "The packaged archive.",
"srcjar": "The generated Scala sources as srcjar.",
})
def _daml_impl_compile_dalf(ctx):
# Call damlc compile
compile_args = ctx.actions.args()
compile_args.add("compile")
compile_args.add(ctx.file.main_src)
compile_args.add("--output", ctx.outputs.dalf.path)
if ctx.attr.target:
compile_args.add("--target", ctx.attr.target)
ctx.actions.run(
inputs = depset([ctx.file.main_src] + ctx.files.srcs),
outputs = [ctx.outputs.dalf],
arguments = [compile_args],
progress_message = "Compiling DAML into DAML-LF archive %s" % ctx.outputs.dalf.short_path,
executable = ctx.executable.damlc,
)
def _daml_impl_package_dar(ctx):
# Call damlc package
package_args = ctx.actions.args()
package_args.add("package")
package_args.add(ctx.file.main_src)
package_args.add(ctx.attr.name)
if ctx.attr.target:
package_args.add("--target", ctx.attr.target)
package_args.add("--output")
package_args.add(ctx.outputs.dar.path)
ctx.actions.run(
inputs = [ctx.file.main_src] + ctx.files.srcs,
outputs = [ctx.outputs.dar],
arguments = [package_args],
progress_message = "Creating DAR package %s" % ctx.outputs.dar.basename,
executable = ctx.executable.damlc,
)
def _daml_outputs_impl(name):
patterns = {
"dalf": "{name}.dalf",
"dar": "{name}.dar",
"srcjar": "{name}.srcjar",
}
return {
k: v.format(name = name)
for (k, v) in patterns.items()
}
def _daml_compile_impl(ctx):
_daml_impl_compile_dalf(ctx)
_daml_impl_package_dar(ctx)
# DAML provider
daml = daml_provider(
dalf = ctx.outputs.dalf,
dar = ctx.outputs.dar,
)
return [daml]
def _daml_compile_outputs_impl(name):
patterns = {
"dalf": "{name}.dalf",
"dar": "{name}.dar",
}
return {
k: v.format(name = name)
for (k, v) in patterns.items()
}
# TODO(JM): The daml_compile() is same as daml(), but without the codegen bits.
# All of this needs a cleanup once we understand the needs for daml related rules.
daml_compile = rule(
implementation = _daml_compile_impl,
attrs = {
"main_src": attr.label(
allow_single_file = [".daml"],
mandatory = True,
doc = "The main DAML file that will be passed to the compiler.",
),
"srcs": attr.label_list(
allow_files = [".daml"],
default = [],
doc = "Other DAML files that compilation depends on.",
),
"target": attr.string(doc = "DAML-LF version to output"),
"damlc": attr.label(
executable = True,
cfg = "host",
allow_files = True,
default = Label("//compiler/damlc"),
),
},
executable = False,
outputs = _daml_compile_outputs_impl,
)
def _daml_test_impl(ctx):
script = """
set -eou pipefail
DAMLC=$(rlocation $TEST_WORKSPACE/{damlc})
rlocations () {{ for i in $@; do echo $(rlocation $TEST_WORKSPACE/$i); done; }}
$DAMLC test --files $(rlocations "{files}")
""".format(
damlc = ctx.executable.damlc.short_path,
files = " ".join([f.short_path for f in ctx.files.srcs]),
)
ctx.actions.write(
output = ctx.outputs.executable,
content = script,
)
damlc_runfiles = ctx.attr.damlc[DefaultInfo].data_runfiles
runfiles = ctx.runfiles(
collect_data = True,
files = ctx.files.srcs,
).merge(damlc_runfiles)
return [DefaultInfo(runfiles = runfiles)]
daml_test = rule(
implementation = _daml_test_impl,
attrs = {
"srcs": attr.label_list(
allow_files = [".daml"],
default = [],
doc = "DAML source files to test.",
),
"damlc": attr.label(
executable = True,
cfg = "host",
allow_files = True,
default = Label("//compiler/damlc"),
),
},
test = True,
)
_daml_binary_script_template = """
#!/usr/bin/env sh
{java} -jar {sandbox} $@ {dar}
"""
def _daml_binary_impl(ctx):
script = _daml_binary_script_template.format(
java = ctx.executable._java.short_path,
sandbox = ctx.file._sandbox.short_path,
dar = ctx.file.dar.short_path,
)
ctx.actions.write(
output = ctx.outputs.executable,
content = script,
)
runfiles = ctx.runfiles(
files = [ctx.file.dar, ctx.file._sandbox, ctx.executable._java],
)
return [DefaultInfo(runfiles = runfiles)]
daml_binary = rule(
implementation = _daml_binary_impl,
attrs = {
"dar": attr.label(
allow_single_file = [".dar"],
mandatory = True,
doc = "The DAR to execute in the sandbox.",
),
"_sandbox": attr.label(
cfg = "target",
allow_single_file = [".jar"],
default = Label("//ledger/sandbox:sandbox-binary_deploy.jar"),
),
"_java": attr.label(
executable = True,
cfg = "target",
allow_files = True,
default = Label("@bazel_tools//tools/jdk:java"),
),
},
executable = True,
)
"""
Executable target that runs the DAML sandbox on the given DAR package.
Example:
```
daml_binary(
name = "example-exec",
dar = ":dar-out/com/digitalasset/sample/example/0.1/example-0.1.dar",
)
```
This target can be executed as follows:
```
$ bazel run //:example-exec
```
Command-line arguments can be passed to the sandbox as follows:
```
$ bazel run //:example-exec -- --help
```
"""
def _daml_compile_dalf_output_impl(name):
return {"dalf": name + ".dalf"}
dalf_compile = rule(
implementation = _daml_impl_compile_dalf,
attrs = {
"main_src": attr.label(
allow_single_file = [".daml"],
mandatory = True,
doc = "The main DAML file that will be passed to the compiler.",
),
"srcs": attr.label_list(
allow_files = [".daml"],
default = [],
doc = "Other DAML files that compilation depends on.",
),
"target": attr.string(doc = "DAML-LF version to output"),
"damlc": attr.label(
executable = True,
cfg = "host",
allow_files = True,
default = Label("//compiler/damlc"),
),
},
executable = False,
outputs = _daml_compile_dalf_output_impl,
)
"""
Stripped down version of daml_compile that does not package DALFs into DARs
"""
daml_sandbox_version = "6.0.0"
|
load('@bazel_skylib//lib:paths.bzl', 'paths')
daml_provider = provider(doc='DAML provider', fields={'dalf': 'The DAML-LF file.', 'dar': 'The packaged archive.', 'srcjar': 'The generated Scala sources as srcjar.'})
def _daml_impl_compile_dalf(ctx):
compile_args = ctx.actions.args()
compile_args.add('compile')
compile_args.add(ctx.file.main_src)
compile_args.add('--output', ctx.outputs.dalf.path)
if ctx.attr.target:
compile_args.add('--target', ctx.attr.target)
ctx.actions.run(inputs=depset([ctx.file.main_src] + ctx.files.srcs), outputs=[ctx.outputs.dalf], arguments=[compile_args], progress_message='Compiling DAML into DAML-LF archive %s' % ctx.outputs.dalf.short_path, executable=ctx.executable.damlc)
def _daml_impl_package_dar(ctx):
package_args = ctx.actions.args()
package_args.add('package')
package_args.add(ctx.file.main_src)
package_args.add(ctx.attr.name)
if ctx.attr.target:
package_args.add('--target', ctx.attr.target)
package_args.add('--output')
package_args.add(ctx.outputs.dar.path)
ctx.actions.run(inputs=[ctx.file.main_src] + ctx.files.srcs, outputs=[ctx.outputs.dar], arguments=[package_args], progress_message='Creating DAR package %s' % ctx.outputs.dar.basename, executable=ctx.executable.damlc)
def _daml_outputs_impl(name):
patterns = {'dalf': '{name}.dalf', 'dar': '{name}.dar', 'srcjar': '{name}.srcjar'}
return {k: v.format(name=name) for (k, v) in patterns.items()}
def _daml_compile_impl(ctx):
_daml_impl_compile_dalf(ctx)
_daml_impl_package_dar(ctx)
daml = daml_provider(dalf=ctx.outputs.dalf, dar=ctx.outputs.dar)
return [daml]
def _daml_compile_outputs_impl(name):
patterns = {'dalf': '{name}.dalf', 'dar': '{name}.dar'}
return {k: v.format(name=name) for (k, v) in patterns.items()}
daml_compile = rule(implementation=_daml_compile_impl, attrs={'main_src': attr.label(allow_single_file=['.daml'], mandatory=True, doc='The main DAML file that will be passed to the compiler.'), 'srcs': attr.label_list(allow_files=['.daml'], default=[], doc='Other DAML files that compilation depends on.'), 'target': attr.string(doc='DAML-LF version to output'), 'damlc': attr.label(executable=True, cfg='host', allow_files=True, default=label('//compiler/damlc'))}, executable=False, outputs=_daml_compile_outputs_impl)
def _daml_test_impl(ctx):
script = '\n set -eou pipefail\n\n DAMLC=$(rlocation $TEST_WORKSPACE/{damlc})\n rlocations () {{ for i in $@; do echo $(rlocation $TEST_WORKSPACE/$i); done; }}\n\n $DAMLC test --files $(rlocations "{files}")\n '.format(damlc=ctx.executable.damlc.short_path, files=' '.join([f.short_path for f in ctx.files.srcs]))
ctx.actions.write(output=ctx.outputs.executable, content=script)
damlc_runfiles = ctx.attr.damlc[DefaultInfo].data_runfiles
runfiles = ctx.runfiles(collect_data=True, files=ctx.files.srcs).merge(damlc_runfiles)
return [default_info(runfiles=runfiles)]
daml_test = rule(implementation=_daml_test_impl, attrs={'srcs': attr.label_list(allow_files=['.daml'], default=[], doc='DAML source files to test.'), 'damlc': attr.label(executable=True, cfg='host', allow_files=True, default=label('//compiler/damlc'))}, test=True)
_daml_binary_script_template = '\n#!/usr/bin/env sh\n{java} -jar {sandbox} $@ {dar}\n'
def _daml_binary_impl(ctx):
script = _daml_binary_script_template.format(java=ctx.executable._java.short_path, sandbox=ctx.file._sandbox.short_path, dar=ctx.file.dar.short_path)
ctx.actions.write(output=ctx.outputs.executable, content=script)
runfiles = ctx.runfiles(files=[ctx.file.dar, ctx.file._sandbox, ctx.executable._java])
return [default_info(runfiles=runfiles)]
daml_binary = rule(implementation=_daml_binary_impl, attrs={'dar': attr.label(allow_single_file=['.dar'], mandatory=True, doc='The DAR to execute in the sandbox.'), '_sandbox': attr.label(cfg='target', allow_single_file=['.jar'], default=label('//ledger/sandbox:sandbox-binary_deploy.jar')), '_java': attr.label(executable=True, cfg='target', allow_files=True, default=label('@bazel_tools//tools/jdk:java'))}, executable=True)
'\nExecutable target that runs the DAML sandbox on the given DAR package.\n\nExample:\n ```\n daml_binary(\n name = "example-exec",\n dar = ":dar-out/com/digitalasset/sample/example/0.1/example-0.1.dar",\n )\n ```\n\n This target can be executed as follows:\n\n ```\n $ bazel run //:example-exec\n ```\n\n Command-line arguments can be passed to the sandbox as follows:\n\n ```\n $ bazel run //:example-exec -- --help\n ```\n'
def _daml_compile_dalf_output_impl(name):
return {'dalf': name + '.dalf'}
dalf_compile = rule(implementation=_daml_impl_compile_dalf, attrs={'main_src': attr.label(allow_single_file=['.daml'], mandatory=True, doc='The main DAML file that will be passed to the compiler.'), 'srcs': attr.label_list(allow_files=['.daml'], default=[], doc='Other DAML files that compilation depends on.'), 'target': attr.string(doc='DAML-LF version to output'), 'damlc': attr.label(executable=True, cfg='host', allow_files=True, default=label('//compiler/damlc'))}, executable=False, outputs=_daml_compile_dalf_output_impl)
'\nStripped down version of daml_compile that does not package DALFs into DARs\n'
daml_sandbox_version = '6.0.0'
|
class ClientEvent(object):
AUTH = 1
MODEL_PARAM = 2
EVAL_PARAM = 3
DURATION_PARAM = 4
EXPERIMENT_START = 5
EXPERIMENT_END = 6
CODE_FILE = 7
COMPLETED = 10
GET_EXPERIMENT_METRIC_FILTER = 8
GET_EXPERIMENT_METRIC_DATA = 9
GET_EXPERIMENT_DURATION_FILTER = 11
GET_EXPERIMENT_DURATION_DATA = 12
HEART_BEAT = 13
DATASET_ID = 14
class ExperimentStatus(object):
IN_PROCESS = 1
COMPLETED = 2
|
class Clientevent(object):
auth = 1
model_param = 2
eval_param = 3
duration_param = 4
experiment_start = 5
experiment_end = 6
code_file = 7
completed = 10
get_experiment_metric_filter = 8
get_experiment_metric_data = 9
get_experiment_duration_filter = 11
get_experiment_duration_data = 12
heart_beat = 13
dataset_id = 14
class Experimentstatus(object):
in_process = 1
completed = 2
|
input = """
num(2).
node(a).
p(N) :- num(N), #count{Y:node(Y)} = N1, <=(N,N1).
"""
output = """
{node(a), num(2)}
"""
|
input = '\nnum(2).\nnode(a).\np(N) :- num(N), #count{Y:node(Y)} = N1, <=(N,N1).\n'
output = '\n{node(a), num(2)}\n'
|
class DNS:
def start(self):
raise NotImplemented()
def stop(self):
raise NotImplemented()
def restart(self):
raise NotImplemented()
def cleanCache(self):
raise NotImplemented()
def addRecord(self):
raise NotImplemented()
def deleteHost(self, host):
raise NotImplemented()
def updateHostIp(self, host, ip):
raise NotImplemented()
def zones(self):
raise NotImplemented()
def map(self):
raise NotImplemented()
def reversemap(self):
raise NotImplemented()
|
class Dns:
def start(self):
raise not_implemented()
def stop(self):
raise not_implemented()
def restart(self):
raise not_implemented()
def clean_cache(self):
raise not_implemented()
def add_record(self):
raise not_implemented()
def delete_host(self, host):
raise not_implemented()
def update_host_ip(self, host, ip):
raise not_implemented()
def zones(self):
raise not_implemented()
def map(self):
raise not_implemented()
def reversemap(self):
raise not_implemented()
|
class Foo(object):
def foo(bar):
pass
def bar(foo):
pass
|
class Foo(object):
def foo(bar):
pass
def bar(foo):
pass
|
print(3 + 2 > 5 + 7)
print("Is it greater?", 3 > -2)
print("Roosters", 100 - 25 * 3 % 4)
print(7.0/4.0)
print(7/4)
|
print(3 + 2 > 5 + 7)
print('Is it greater?', 3 > -2)
print('Roosters', 100 - 25 * 3 % 4)
print(7.0 / 4.0)
print(7 / 4)
|
#
# PySNMP MIB module DLINK-3100-DHCP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DLINK-3100-DHCP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:48:12 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion", "SingleValueConstraint")
rnd, = mibBuilder.importSymbols("DLINK-3100-MIB", "rnd")
PortList, = mibBuilder.importSymbols("Q-BRIDGE-MIB", "PortList")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
TimeTicks, Gauge32, Counter32, Unsigned32, IpAddress, NotificationType, Counter64, ObjectIdentity, iso, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, ModuleIdentity, Bits, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Gauge32", "Counter32", "Unsigned32", "IpAddress", "NotificationType", "Counter64", "ObjectIdentity", "iso", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ModuleIdentity", "Bits", "Integer32")
TruthValue, DisplayString, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "DisplayString", "RowStatus", "TextualConvention")
rsDHCP = ModuleIdentity((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38))
rsDHCP.setRevisions(('2003-10-18 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: rsDHCP.setRevisionsDescriptions(('Initial version of this MIB.',))
if mibBuilder.loadTexts: rsDHCP.setLastUpdated('200310180000Z')
if mibBuilder.loadTexts: rsDHCP.setOrganization('Dlink, Inc.')
if mibBuilder.loadTexts: rsDHCP.setContactInfo('www.dlink.com')
if mibBuilder.loadTexts: rsDHCP.setDescription('The private MIB module definition for DHCP server support in DLINK-3100 devices.')
rsDhcpMibVersion = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rsDhcpMibVersion.setStatus('current')
if mibBuilder.loadTexts: rsDhcpMibVersion.setDescription("DHCP MIB's version, the current version is 4.")
rlDhcpRelayEnable = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 25), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayEnable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayEnable.setDescription('Enable or disable the use of the DHCP relay.')
rlDhcpRelayExists = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 26), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpRelayExists.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayExists.setDescription('This variable shows whether the device can function as a DHCP Relay Agent.')
rlDhcpRelayNextServerTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27), )
if mibBuilder.loadTexts: rlDhcpRelayNextServerTable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayNextServerTable.setDescription('The DHCP Relay Next Servers configuration Table')
rlDhcpRelayNextServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27, 1), ).setIndexNames((0, "DLINK-3100-DHCP-MIB", "rlDhcpRelayNextServerIpAddr"))
if mibBuilder.loadTexts: rlDhcpRelayNextServerEntry.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayNextServerEntry.setDescription('The row definition for this table. DHCP requests are relayed to the specified next server according to their threshold values.')
rlDhcpRelayNextServerIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpRelayNextServerIpAddr.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayNextServerIpAddr.setDescription('The IPAddress of the next configuration server. DHCP Server may act as a DHCP relay if this parameter is not equal to 0.0.0.0.')
rlDhcpRelayNextServerSecThreshold = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27, 1, 2), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayNextServerSecThreshold.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayNextServerSecThreshold.setDescription('DHCP requests are relayed only if their SEC field is greater or equal to the threshold value in order to allow local DHCP Servers to answer first.')
rlDhcpRelayNextServerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27, 1, 3), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayNextServerRowStatus.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayNextServerRowStatus.setDescription("This variable displays the validity or invalidity of the entry. Setting it to 'destroy' has the effect of rendering it inoperative. The internal effect (row removal) is implementation dependent.")
rlDhcpRelayInterfaceTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28), )
if mibBuilder.loadTexts: rlDhcpRelayInterfaceTable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceTable.setDescription('The enabled DHCP Relay Interface Table')
rlDhcpRelayInterfaceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28, 1), ).setIndexNames((0, "DLINK-3100-DHCP-MIB", "rlDhcpRelayInterfaceIfindex"))
if mibBuilder.loadTexts: rlDhcpRelayInterfaceEntry.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceEntry.setDescription('The row definition for this table. The user can add entry when DHCP relay is enabled on Interface.')
rlDhcpRelayInterfaceIfindex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayInterfaceIfindex.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceIfindex.setDescription('The Interface on which an user enables a DHCP relay ')
rlDhcpRelayInterfaceUseGiaddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28, 1, 2), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayInterfaceUseGiaddr.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceUseGiaddr.setDescription('The flag is used to set a DHCP relay interface to use GiAddr in the standard way. Default is TRUE. The field is not supported.')
rlDhcpRelayInterfaceRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28, 1, 3), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayInterfaceRowStatus.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceRowStatus.setDescription('Entry status. Can be destroy, active or createAndGo')
rlDhcpRelayInterfaceListTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29), )
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListTable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListTable.setDescription('This table contains one entry. The entry contains port list and vlan lists of interfaces that have configured DHCP relay')
rlDhcpRelayInterfaceListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1), ).setIndexNames((0, "DLINK-3100-DHCP-MIB", "rlDhcpRelayInterfaceListIndex"))
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListEntry.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListEntry.setDescription(' The entry contains port list and vlan lists of interfaces that have configured DHCP relay.')
rlDhcpRelayInterfaceListIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListIndex.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListIndex.setDescription('Index in the table. Already 1.')
rlDhcpRelayInterfaceListPortList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 2), PortList()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListPortList.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListPortList.setDescription('DHCP relay Interface Port List.')
rlDhcpRelayInterfaceListVlanId1To1024 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListVlanId1To1024.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListVlanId1To1024.setDescription(' DHCP relay Interface VlanId List 1.')
rlDhcpRelayInterfaceListVlanId1025To2048 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListVlanId1025To2048.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListVlanId1025To2048.setDescription(' DHCP relay Interface VlanId List 2.')
rlDhcpRelayInterfaceListVlanId2049To3072 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListVlanId2049To3072.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListVlanId2049To3072.setDescription(' DHCP relay Interface VlanId List 3.')
rlDhcpRelayInterfaceListVlanId3073To4094 = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListVlanId3073To4094.setStatus('current')
if mibBuilder.loadTexts: rlDhcpRelayInterfaceListVlanId3073To4094.setDescription(' DHCP relay Interface VlanId List 4.')
rlDhcpSrvEnable = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 30), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvEnable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvEnable.setDescription('Enable or Disable the use of the DHCP Server. For a router product the default value is TRUE. For a switch product the default is FALSE.')
rlDhcpSrvExists = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 31), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpSrvExists.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvExists.setDescription('This variable shows whether the device can function as a DHCP Server.')
rlDhcpSrvDbLocation = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 32), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("nvram", 1), ("flash", 2))).clone('flash')).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpSrvDbLocation.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDbLocation.setDescription('Describes where DHCP Server database is stored.')
rlDhcpSrvMaxNumOfClients = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 33), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpSrvMaxNumOfClients.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvMaxNumOfClients.setDescription('This variable shows maximum number of clients that can be supported by DHCP Server dynamic allocation.')
rlDhcpSrvDbNumOfActiveEntries = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 34), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpSrvDbNumOfActiveEntries.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDbNumOfActiveEntries.setDescription('This variable shows number of active entries stored in database.')
rlDhcpSrvDbErase = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 35), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvDbErase.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDbErase.setDescription('The value is always false. Setting this variable to true causes erasing all entries in DHCP database.')
rlDhcpSrvProbeEnable = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 36), TruthValue().clone('false')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvProbeEnable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvProbeEnable.setDescription('Enable or Disable the use of the DHCP probe before allocating an IP address.')
rlDhcpSrvProbeTimeout = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 37), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(300, 10000)).clone(500)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvProbeTimeout.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvProbeTimeout.setDescription('Indicates the peiod of time in milliseconds the DHCP probe will wait before issuing a new trial or deciding that no other device on the network has the IP address which DHCP considers allocating.')
rlDhcpSrvProbeRetries = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 38), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 10)).clone(2)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvProbeRetries.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvProbeRetries.setDescription('Indicates how many times DHCP will probe before deciding that no other device on the network has the IP address which DHCP considers allocating.')
rlDhcpSrvDefaultNetworkPoolName = MibScalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 39), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpSrvDefaultNetworkPoolName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDefaultNetworkPoolName.setDescription('Contains a default network pool name. Used in case of one network pool only.')
rlDhcpSrvIpAddrTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45), )
if mibBuilder.loadTexts: rlDhcpSrvIpAddrTable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrTable.setDescription('Table of IP Addresses allocated by DHCP Server by static and dynamic allocations.')
rlDhcpSrvIpAddrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1), ).setIndexNames((0, "DLINK-3100-DHCP-MIB", "rlDhcpSrvIpAddrIpAddr"))
if mibBuilder.loadTexts: rlDhcpSrvIpAddrEntry.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrEntry.setDescription('The row definition for this table. Parameters of DHCP allocated IP Addresses table.')
rlDhcpSrvIpAddrIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrIpAddr.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrIpAddr.setDescription('The IP address that was allocated by DHCP Server.')
rlDhcpSrvIpAddrIpNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrIpNetMask.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrIpNetMask.setDescription('The subnet mask associated with the IP address of this entry. The value of the mask is an IP address with all the network bits set to 1 and all the hosts bits set to 0.')
rlDhcpSrvIpAddrIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrIdentifier.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrIdentifier.setDescription('Unique Identifier for client. Either physical address or DHCP Client Identifier.')
rlDhcpSrvIpAddrIdentifierType = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("physAddr", 1), ("clientId", 2))).clone('clientId')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrIdentifierType.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrIdentifierType.setDescription('Identifier Type. Either physical address or DHCP Client Identifier.')
rlDhcpSrvIpAddrClnHostName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 5), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrClnHostName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrClnHostName.setDescription('Client Host Name. DHCP Server will use it to update DNS Server. Must be unique per client.')
rlDhcpSrvIpAddrMechanism = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("manual", 1), ("automatic", 2), ("dynamic", 3))).clone('manual')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrMechanism.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrMechanism.setDescription('Mechanism of allocation IP Address by DHCP Server. The only value that can be set by user is manual.')
rlDhcpSrvIpAddrAgeTime = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrAgeTime.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrAgeTime.setDescription('Age time of the IP Address.')
rlDhcpSrvIpAddrPoolName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrPoolName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrPoolName.setDescription('Ip address pool name. A unique name for host pool static allocation, or network pool name in case of dynamic allocation.')
rlDhcpSrvIpAddrConfParamsName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrConfParamsName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrConfParamsName.setDescription('This variable points (serves as key) to appropriate set of parameters in the DHCP Server configuration parameters table.')
rlDhcpSrvIpAddrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 10), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvIpAddrRowStatus.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvIpAddrRowStatus.setDescription('The row status variable, used according to row installation and removal conventions.')
rlDhcpSrvDynamicTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46), )
if mibBuilder.loadTexts: rlDhcpSrvDynamicTable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicTable.setDescription("The DHCP Dynamic Server's configuration Table")
rlDhcpSrvDynamicEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1), ).setIndexNames((0, "DLINK-3100-DHCP-MIB", "rlDhcpSrvDynamicPoolName"))
if mibBuilder.loadTexts: rlDhcpSrvDynamicEntry.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicEntry.setDescription('The row definition for this table. Parameters sent in as a DHCP Reply to DHCP Request with specified indices')
rlDhcpSrvDynamicPoolName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvDynamicPoolName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicPoolName.setDescription('The name of DHCP dynamic addresses pool.')
rlDhcpSrvDynamicIpAddrFrom = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvDynamicIpAddrFrom.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicIpAddrFrom.setDescription('The first IP address allocated in this row.')
rlDhcpSrvDynamicIpAddrTo = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvDynamicIpAddrTo.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicIpAddrTo.setDescription('The last IP address allocated in this row.')
rlDhcpSrvDynamicIpNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvDynamicIpNetMask.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicIpNetMask.setDescription('The subnet mask associated with the IP addresses of this entry. The value of the mask is an IP address with all the network bits set to 1 and all the hosts bits set to 0.')
rlDhcpSrvDynamicLeaseTime = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 5), Unsigned32().clone(86400)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvDynamicLeaseTime.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicLeaseTime.setDescription('Maximum lease-time in seconds granted to a requesting DHCP client. For automatic allocation use 0xFFFFFFFF. To exclude addresses from allocation mechanism, set this value to 0.')
rlDhcpSrvDynamicProbeEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 6), TruthValue().clone('true')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvDynamicProbeEnable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicProbeEnable.setDescription('Enable or Disable the use of the DHCP probe before allocating the address.')
rlDhcpSrvDynamicTotalNumOfAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 7), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpSrvDynamicTotalNumOfAddr.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicTotalNumOfAddr.setDescription('Total number of addresses in space.')
rlDhcpSrvDynamicFreeNumOfAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 8), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rlDhcpSrvDynamicFreeNumOfAddr.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicFreeNumOfAddr.setDescription('Free number of addresses in space.')
rlDhcpSrvDynamicConfParamsName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvDynamicConfParamsName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicConfParamsName.setDescription('This variable points (serves as key) to appropriate set of parameters in the DHCP Server configuration parameters table.')
rlDhcpSrvDynamicRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 10), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvDynamicRowStatus.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvDynamicRowStatus.setDescription('The row status variable, used according to row installation and removal conventions.')
rlDhcpSrvConfParamsTable = MibTable((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47), )
if mibBuilder.loadTexts: rlDhcpSrvConfParamsTable.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsTable.setDescription('The DHCP Configuration Parameters Table')
rlDhcpSrvConfParamsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1), ).setIndexNames((0, "DLINK-3100-DHCP-MIB", "rlDhcpSrvConfParamsName"))
if mibBuilder.loadTexts: rlDhcpSrvConfParamsEntry.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsEntry.setDescription('The row definition for this table. Each entry corresponds to one specific parameters set.')
rlDhcpSrvConfParamsName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsName.setDescription('This value is a unique index for the entry in the rlDhcpSrvConfParamsTable.')
rlDhcpSrvConfParamsNextServerIp = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNextServerIp.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNextServerIp.setDescription('The IP of next server for client to use in configuration process.')
rlDhcpSrvConfParamsNextServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNextServerName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNextServerName.setDescription('The mame of next server for client to use in configuration process.')
rlDhcpSrvConfParamsBootfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsBootfileName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsBootfileName.setDescription('Name of file for client to request from next server.')
rlDhcpSrvConfParamsRoutersList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsRoutersList.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsRoutersList.setDescription("The value of option code 3, which defines default routers list. Each IP address is represented in dotted decimal notation format with ';' between them.")
rlDhcpSrvConfParamsTimeSrvList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsTimeSrvList.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsTimeSrvList.setDescription("The value of option code 4, which defines time servers list. Each IP address is represented in dotted decimal notation format with ';' between them.")
rlDhcpSrvConfParamsDnsList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsDnsList.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsDnsList.setDescription("The value of option code 6, which defines the list of DNSs. Each IP address is represented in dotted decimal notation format with ';' between them.")
rlDhcpSrvConfParamsDomainName = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 8), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsDomainName.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsDomainName.setDescription('The value option code 15, which defines the domain name..')
rlDhcpSrvConfParamsNetbiosNameList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNetbiosNameList.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNetbiosNameList.setDescription("The value option code 44, which defines the list of NETBios Name Servers. Each IP address is represented in dotted decimal notation format with ';' between them.")
rlDhcpSrvConfParamsNetbiosNodeType = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 8))).clone(namedValues=NamedValues(("b-node", 1), ("p-node", 2), ("m-node", 4), ("h-node", 8))).clone('h-node')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNetbiosNodeType.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNetbiosNodeType.setDescription('The value option code 46, which defines the NETBios node type. The option will be added only if rlDhcpSrvConfParamsNetbiosNameList is not empty.')
rlDhcpSrvConfParamsCommunity = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32)).clone('public')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsCommunity.setStatus('obsolete')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsCommunity.setDescription('The value of site-specific option 128, which defines Community. The option will be added only if rlDhcpSrvConfParamsNmsIp is set.')
rlDhcpSrvConfParamsNmsIp = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 12), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNmsIp.setStatus('obsolete')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsNmsIp.setDescription('The value of site-specific option 129, which defines IP of Network Manager.')
rlDhcpSrvConfParamsOptionsList = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 13), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsOptionsList.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsOptionsList.setDescription("The sequence of option segments. Each option segment is represented by a triplet <code/length/value>. The code defines the code of each supported option. The length defines the length of each supported option. The value defines the value of the supported option. If there is a number of elements in the value field, they are divided by ','. Each element of type IP address in value field is represented in dotted decimal notation format.")
rlDhcpSrvConfParamsRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 14), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rlDhcpSrvConfParamsRowStatus.setStatus('current')
if mibBuilder.loadTexts: rlDhcpSrvConfParamsRowStatus.setDescription('The row status variable, used according to row installation and removal conventions.')
mibBuilder.exportSymbols("DLINK-3100-DHCP-MIB", PYSNMP_MODULE_ID=rsDHCP, rlDhcpRelayExists=rlDhcpRelayExists, rlDhcpSrvIpAddrMechanism=rlDhcpSrvIpAddrMechanism, rlDhcpSrvConfParamsDnsList=rlDhcpSrvConfParamsDnsList, rlDhcpSrvConfParamsOptionsList=rlDhcpSrvConfParamsOptionsList, rlDhcpSrvConfParamsDomainName=rlDhcpSrvConfParamsDomainName, rlDhcpSrvDynamicFreeNumOfAddr=rlDhcpSrvDynamicFreeNumOfAddr, rlDhcpSrvConfParamsNextServerIp=rlDhcpSrvConfParamsNextServerIp, rlDhcpSrvConfParamsNextServerName=rlDhcpSrvConfParamsNextServerName, rlDhcpRelayInterfaceListTable=rlDhcpRelayInterfaceListTable, rlDhcpRelayInterfaceUseGiaddr=rlDhcpRelayInterfaceUseGiaddr, rlDhcpSrvDynamicIpAddrFrom=rlDhcpSrvDynamicIpAddrFrom, rlDhcpSrvConfParamsTable=rlDhcpSrvConfParamsTable, rlDhcpSrvConfParamsNetbiosNodeType=rlDhcpSrvConfParamsNetbiosNodeType, rlDhcpSrvDynamicConfParamsName=rlDhcpSrvDynamicConfParamsName, rlDhcpRelayInterfaceRowStatus=rlDhcpRelayInterfaceRowStatus, rlDhcpRelayInterfaceListIndex=rlDhcpRelayInterfaceListIndex, rlDhcpSrvMaxNumOfClients=rlDhcpSrvMaxNumOfClients, rlDhcpSrvExists=rlDhcpSrvExists, rlDhcpSrvConfParamsCommunity=rlDhcpSrvConfParamsCommunity, rlDhcpSrvConfParamsNetbiosNameList=rlDhcpSrvConfParamsNetbiosNameList, rlDhcpSrvIpAddrClnHostName=rlDhcpSrvIpAddrClnHostName, rlDhcpSrvConfParamsRowStatus=rlDhcpSrvConfParamsRowStatus, rlDhcpSrvIpAddrPoolName=rlDhcpSrvIpAddrPoolName, rlDhcpSrvConfParamsName=rlDhcpSrvConfParamsName, rlDhcpSrvProbeTimeout=rlDhcpSrvProbeTimeout, rlDhcpSrvDefaultNetworkPoolName=rlDhcpSrvDefaultNetworkPoolName, rlDhcpSrvConfParamsTimeSrvList=rlDhcpSrvConfParamsTimeSrvList, rlDhcpSrvDbLocation=rlDhcpSrvDbLocation, rlDhcpSrvDynamicIpNetMask=rlDhcpSrvDynamicIpNetMask, rlDhcpRelayInterfaceListEntry=rlDhcpRelayInterfaceListEntry, rlDhcpRelayInterfaceListVlanId1025To2048=rlDhcpRelayInterfaceListVlanId1025To2048, rlDhcpSrvIpAddrRowStatus=rlDhcpSrvIpAddrRowStatus, rsDHCP=rsDHCP, rlDhcpSrvProbeRetries=rlDhcpSrvProbeRetries, rlDhcpSrvProbeEnable=rlDhcpSrvProbeEnable, rlDhcpSrvDynamicLeaseTime=rlDhcpSrvDynamicLeaseTime, rlDhcpRelayNextServerIpAddr=rlDhcpRelayNextServerIpAddr, rlDhcpSrvConfParamsBootfileName=rlDhcpSrvConfParamsBootfileName, rsDhcpMibVersion=rsDhcpMibVersion, rlDhcpRelayInterfaceListVlanId3073To4094=rlDhcpRelayInterfaceListVlanId3073To4094, rlDhcpSrvIpAddrIpNetMask=rlDhcpSrvIpAddrIpNetMask, rlDhcpSrvIpAddrIdentifierType=rlDhcpSrvIpAddrIdentifierType, rlDhcpSrvEnable=rlDhcpSrvEnable, rlDhcpSrvDbErase=rlDhcpSrvDbErase, rlDhcpSrvIpAddrTable=rlDhcpSrvIpAddrTable, rlDhcpSrvIpAddrIdentifier=rlDhcpSrvIpAddrIdentifier, rlDhcpSrvDbNumOfActiveEntries=rlDhcpSrvDbNumOfActiveEntries, rlDhcpRelayInterfaceListPortList=rlDhcpRelayInterfaceListPortList, rlDhcpSrvDynamicTotalNumOfAddr=rlDhcpSrvDynamicTotalNumOfAddr, rlDhcpSrvDynamicRowStatus=rlDhcpSrvDynamicRowStatus, rlDhcpRelayNextServerSecThreshold=rlDhcpRelayNextServerSecThreshold, rlDhcpSrvIpAddrConfParamsName=rlDhcpSrvIpAddrConfParamsName, rlDhcpRelayInterfaceListVlanId1To1024=rlDhcpRelayInterfaceListVlanId1To1024, rlDhcpSrvIpAddrIpAddr=rlDhcpSrvIpAddrIpAddr, rlDhcpSrvConfParamsEntry=rlDhcpSrvConfParamsEntry, rlDhcpSrvConfParamsRoutersList=rlDhcpSrvConfParamsRoutersList, rlDhcpSrvDynamicProbeEnable=rlDhcpSrvDynamicProbeEnable, rlDhcpRelayInterfaceListVlanId2049To3072=rlDhcpRelayInterfaceListVlanId2049To3072, rlDhcpRelayInterfaceTable=rlDhcpRelayInterfaceTable, rlDhcpSrvDynamicIpAddrTo=rlDhcpSrvDynamicIpAddrTo, rlDhcpRelayInterfaceIfindex=rlDhcpRelayInterfaceIfindex, rlDhcpRelayNextServerTable=rlDhcpRelayNextServerTable, rlDhcpSrvConfParamsNmsIp=rlDhcpSrvConfParamsNmsIp, rlDhcpRelayEnable=rlDhcpRelayEnable, rlDhcpRelayInterfaceEntry=rlDhcpRelayInterfaceEntry, rlDhcpRelayNextServerRowStatus=rlDhcpRelayNextServerRowStatus, rlDhcpSrvDynamicTable=rlDhcpSrvDynamicTable, rlDhcpSrvIpAddrEntry=rlDhcpSrvIpAddrEntry, rlDhcpRelayNextServerEntry=rlDhcpRelayNextServerEntry, rlDhcpSrvDynamicPoolName=rlDhcpSrvDynamicPoolName, rlDhcpSrvDynamicEntry=rlDhcpSrvDynamicEntry, rlDhcpSrvIpAddrAgeTime=rlDhcpSrvIpAddrAgeTime)
|
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_size_constraint, value_range_constraint, constraints_union, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'SingleValueConstraint')
(rnd,) = mibBuilder.importSymbols('DLINK-3100-MIB', 'rnd')
(port_list,) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'PortList')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(time_ticks, gauge32, counter32, unsigned32, ip_address, notification_type, counter64, object_identity, iso, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, module_identity, bits, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'Gauge32', 'Counter32', 'Unsigned32', 'IpAddress', 'NotificationType', 'Counter64', 'ObjectIdentity', 'iso', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'ModuleIdentity', 'Bits', 'Integer32')
(truth_value, display_string, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'DisplayString', 'RowStatus', 'TextualConvention')
rs_dhcp = module_identity((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38))
rsDHCP.setRevisions(('2003-10-18 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
rsDHCP.setRevisionsDescriptions(('Initial version of this MIB.',))
if mibBuilder.loadTexts:
rsDHCP.setLastUpdated('200310180000Z')
if mibBuilder.loadTexts:
rsDHCP.setOrganization('Dlink, Inc.')
if mibBuilder.loadTexts:
rsDHCP.setContactInfo('www.dlink.com')
if mibBuilder.loadTexts:
rsDHCP.setDescription('The private MIB module definition for DHCP server support in DLINK-3100 devices.')
rs_dhcp_mib_version = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 14), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rsDhcpMibVersion.setStatus('current')
if mibBuilder.loadTexts:
rsDhcpMibVersion.setDescription("DHCP MIB's version, the current version is 4.")
rl_dhcp_relay_enable = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 25), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayEnable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayEnable.setDescription('Enable or disable the use of the DHCP relay.')
rl_dhcp_relay_exists = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 26), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpRelayExists.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayExists.setDescription('This variable shows whether the device can function as a DHCP Relay Agent.')
rl_dhcp_relay_next_server_table = mib_table((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27))
if mibBuilder.loadTexts:
rlDhcpRelayNextServerTable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayNextServerTable.setDescription('The DHCP Relay Next Servers configuration Table')
rl_dhcp_relay_next_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27, 1)).setIndexNames((0, 'DLINK-3100-DHCP-MIB', 'rlDhcpRelayNextServerIpAddr'))
if mibBuilder.loadTexts:
rlDhcpRelayNextServerEntry.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayNextServerEntry.setDescription('The row definition for this table. DHCP requests are relayed to the specified next server according to their threshold values.')
rl_dhcp_relay_next_server_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpRelayNextServerIpAddr.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayNextServerIpAddr.setDescription('The IPAddress of the next configuration server. DHCP Server may act as a DHCP relay if this parameter is not equal to 0.0.0.0.')
rl_dhcp_relay_next_server_sec_threshold = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27, 1, 2), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayNextServerSecThreshold.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayNextServerSecThreshold.setDescription('DHCP requests are relayed only if their SEC field is greater or equal to the threshold value in order to allow local DHCP Servers to answer first.')
rl_dhcp_relay_next_server_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 27, 1, 3), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayNextServerRowStatus.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayNextServerRowStatus.setDescription("This variable displays the validity or invalidity of the entry. Setting it to 'destroy' has the effect of rendering it inoperative. The internal effect (row removal) is implementation dependent.")
rl_dhcp_relay_interface_table = mib_table((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28))
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceTable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceTable.setDescription('The enabled DHCP Relay Interface Table')
rl_dhcp_relay_interface_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28, 1)).setIndexNames((0, 'DLINK-3100-DHCP-MIB', 'rlDhcpRelayInterfaceIfindex'))
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceEntry.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceEntry.setDescription('The row definition for this table. The user can add entry when DHCP relay is enabled on Interface.')
rl_dhcp_relay_interface_ifindex = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceIfindex.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceIfindex.setDescription('The Interface on which an user enables a DHCP relay ')
rl_dhcp_relay_interface_use_giaddr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28, 1, 2), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceUseGiaddr.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceUseGiaddr.setDescription('The flag is used to set a DHCP relay interface to use GiAddr in the standard way. Default is TRUE. The field is not supported.')
rl_dhcp_relay_interface_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 28, 1, 3), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceRowStatus.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceRowStatus.setDescription('Entry status. Can be destroy, active or createAndGo')
rl_dhcp_relay_interface_list_table = mib_table((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29))
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListTable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListTable.setDescription('This table contains one entry. The entry contains port list and vlan lists of interfaces that have configured DHCP relay')
rl_dhcp_relay_interface_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1)).setIndexNames((0, 'DLINK-3100-DHCP-MIB', 'rlDhcpRelayInterfaceListIndex'))
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListEntry.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListEntry.setDescription(' The entry contains port list and vlan lists of interfaces that have configured DHCP relay.')
rl_dhcp_relay_interface_list_index = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListIndex.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListIndex.setDescription('Index in the table. Already 1.')
rl_dhcp_relay_interface_list_port_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 2), port_list()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListPortList.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListPortList.setDescription('DHCP relay Interface Port List.')
rl_dhcp_relay_interface_list_vlan_id1_to1024 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListVlanId1To1024.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListVlanId1To1024.setDescription(' DHCP relay Interface VlanId List 1.')
rl_dhcp_relay_interface_list_vlan_id1025_to2048 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListVlanId1025To2048.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListVlanId1025To2048.setDescription(' DHCP relay Interface VlanId List 2.')
rl_dhcp_relay_interface_list_vlan_id2049_to3072 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListVlanId2049To3072.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListVlanId2049To3072.setDescription(' DHCP relay Interface VlanId List 3.')
rl_dhcp_relay_interface_list_vlan_id3073_to4094 = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 29, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListVlanId3073To4094.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpRelayInterfaceListVlanId3073To4094.setDescription(' DHCP relay Interface VlanId List 4.')
rl_dhcp_srv_enable = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 30), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvEnable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvEnable.setDescription('Enable or Disable the use of the DHCP Server. For a router product the default value is TRUE. For a switch product the default is FALSE.')
rl_dhcp_srv_exists = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 31), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpSrvExists.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvExists.setDescription('This variable shows whether the device can function as a DHCP Server.')
rl_dhcp_srv_db_location = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 32), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('nvram', 1), ('flash', 2))).clone('flash')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpSrvDbLocation.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDbLocation.setDescription('Describes where DHCP Server database is stored.')
rl_dhcp_srv_max_num_of_clients = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 33), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpSrvMaxNumOfClients.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvMaxNumOfClients.setDescription('This variable shows maximum number of clients that can be supported by DHCP Server dynamic allocation.')
rl_dhcp_srv_db_num_of_active_entries = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 34), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpSrvDbNumOfActiveEntries.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDbNumOfActiveEntries.setDescription('This variable shows number of active entries stored in database.')
rl_dhcp_srv_db_erase = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 35), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvDbErase.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDbErase.setDescription('The value is always false. Setting this variable to true causes erasing all entries in DHCP database.')
rl_dhcp_srv_probe_enable = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 36), truth_value().clone('false')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvProbeEnable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvProbeEnable.setDescription('Enable or Disable the use of the DHCP probe before allocating an IP address.')
rl_dhcp_srv_probe_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 37), unsigned32().subtype(subtypeSpec=value_range_constraint(300, 10000)).clone(500)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvProbeTimeout.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvProbeTimeout.setDescription('Indicates the peiod of time in milliseconds the DHCP probe will wait before issuing a new trial or deciding that no other device on the network has the IP address which DHCP considers allocating.')
rl_dhcp_srv_probe_retries = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 38), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 10)).clone(2)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvProbeRetries.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvProbeRetries.setDescription('Indicates how many times DHCP will probe before deciding that no other device on the network has the IP address which DHCP considers allocating.')
rl_dhcp_srv_default_network_pool_name = mib_scalar((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 39), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpSrvDefaultNetworkPoolName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDefaultNetworkPoolName.setDescription('Contains a default network pool name. Used in case of one network pool only.')
rl_dhcp_srv_ip_addr_table = mib_table((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45))
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrTable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrTable.setDescription('Table of IP Addresses allocated by DHCP Server by static and dynamic allocations.')
rl_dhcp_srv_ip_addr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1)).setIndexNames((0, 'DLINK-3100-DHCP-MIB', 'rlDhcpSrvIpAddrIpAddr'))
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrEntry.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrEntry.setDescription('The row definition for this table. Parameters of DHCP allocated IP Addresses table.')
rl_dhcp_srv_ip_addr_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrIpAddr.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrIpAddr.setDescription('The IP address that was allocated by DHCP Server.')
rl_dhcp_srv_ip_addr_ip_net_mask = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrIpNetMask.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrIpNetMask.setDescription('The subnet mask associated with the IP address of this entry. The value of the mask is an IP address with all the network bits set to 1 and all the hosts bits set to 0.')
rl_dhcp_srv_ip_addr_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(2, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrIdentifier.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrIdentifier.setDescription('Unique Identifier for client. Either physical address or DHCP Client Identifier.')
rl_dhcp_srv_ip_addr_identifier_type = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('physAddr', 1), ('clientId', 2))).clone('clientId')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrIdentifierType.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrIdentifierType.setDescription('Identifier Type. Either physical address or DHCP Client Identifier.')
rl_dhcp_srv_ip_addr_cln_host_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 5), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrClnHostName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrClnHostName.setDescription('Client Host Name. DHCP Server will use it to update DNS Server. Must be unique per client.')
rl_dhcp_srv_ip_addr_mechanism = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('manual', 1), ('automatic', 2), ('dynamic', 3))).clone('manual')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrMechanism.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrMechanism.setDescription('Mechanism of allocation IP Address by DHCP Server. The only value that can be set by user is manual.')
rl_dhcp_srv_ip_addr_age_time = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrAgeTime.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrAgeTime.setDescription('Age time of the IP Address.')
rl_dhcp_srv_ip_addr_pool_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrPoolName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrPoolName.setDescription('Ip address pool name. A unique name for host pool static allocation, or network pool name in case of dynamic allocation.')
rl_dhcp_srv_ip_addr_conf_params_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrConfParamsName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrConfParamsName.setDescription('This variable points (serves as key) to appropriate set of parameters in the DHCP Server configuration parameters table.')
rl_dhcp_srv_ip_addr_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 45, 1, 10), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrRowStatus.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvIpAddrRowStatus.setDescription('The row status variable, used according to row installation and removal conventions.')
rl_dhcp_srv_dynamic_table = mib_table((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46))
if mibBuilder.loadTexts:
rlDhcpSrvDynamicTable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicTable.setDescription("The DHCP Dynamic Server's configuration Table")
rl_dhcp_srv_dynamic_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1)).setIndexNames((0, 'DLINK-3100-DHCP-MIB', 'rlDhcpSrvDynamicPoolName'))
if mibBuilder.loadTexts:
rlDhcpSrvDynamicEntry.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicEntry.setDescription('The row definition for this table. Parameters sent in as a DHCP Reply to DHCP Request with specified indices')
rl_dhcp_srv_dynamic_pool_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicPoolName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicPoolName.setDescription('The name of DHCP dynamic addresses pool.')
rl_dhcp_srv_dynamic_ip_addr_from = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicIpAddrFrom.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicIpAddrFrom.setDescription('The first IP address allocated in this row.')
rl_dhcp_srv_dynamic_ip_addr_to = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicIpAddrTo.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicIpAddrTo.setDescription('The last IP address allocated in this row.')
rl_dhcp_srv_dynamic_ip_net_mask = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 4), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicIpNetMask.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicIpNetMask.setDescription('The subnet mask associated with the IP addresses of this entry. The value of the mask is an IP address with all the network bits set to 1 and all the hosts bits set to 0.')
rl_dhcp_srv_dynamic_lease_time = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 5), unsigned32().clone(86400)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicLeaseTime.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicLeaseTime.setDescription('Maximum lease-time in seconds granted to a requesting DHCP client. For automatic allocation use 0xFFFFFFFF. To exclude addresses from allocation mechanism, set this value to 0.')
rl_dhcp_srv_dynamic_probe_enable = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 6), truth_value().clone('true')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicProbeEnable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicProbeEnable.setDescription('Enable or Disable the use of the DHCP probe before allocating the address.')
rl_dhcp_srv_dynamic_total_num_of_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 7), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicTotalNumOfAddr.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicTotalNumOfAddr.setDescription('Total number of addresses in space.')
rl_dhcp_srv_dynamic_free_num_of_addr = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 8), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicFreeNumOfAddr.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicFreeNumOfAddr.setDescription('Free number of addresses in space.')
rl_dhcp_srv_dynamic_conf_params_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicConfParamsName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicConfParamsName.setDescription('This variable points (serves as key) to appropriate set of parameters in the DHCP Server configuration parameters table.')
rl_dhcp_srv_dynamic_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 46, 1, 10), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicRowStatus.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvDynamicRowStatus.setDescription('The row status variable, used according to row installation and removal conventions.')
rl_dhcp_srv_conf_params_table = mib_table((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47))
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsTable.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsTable.setDescription('The DHCP Configuration Parameters Table')
rl_dhcp_srv_conf_params_entry = mib_table_row((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1)).setIndexNames((0, 'DLINK-3100-DHCP-MIB', 'rlDhcpSrvConfParamsName'))
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsEntry.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsEntry.setDescription('The row definition for this table. Each entry corresponds to one specific parameters set.')
rl_dhcp_srv_conf_params_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsName.setDescription('This value is a unique index for the entry in the rlDhcpSrvConfParamsTable.')
rl_dhcp_srv_conf_params_next_server_ip = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNextServerIp.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNextServerIp.setDescription('The IP of next server for client to use in configuration process.')
rl_dhcp_srv_conf_params_next_server_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNextServerName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNextServerName.setDescription('The mame of next server for client to use in configuration process.')
rl_dhcp_srv_conf_params_bootfile_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsBootfileName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsBootfileName.setDescription('Name of file for client to request from next server.')
rl_dhcp_srv_conf_params_routers_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsRoutersList.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsRoutersList.setDescription("The value of option code 3, which defines default routers list. Each IP address is represented in dotted decimal notation format with ';' between them.")
rl_dhcp_srv_conf_params_time_srv_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 6), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsTimeSrvList.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsTimeSrvList.setDescription("The value of option code 4, which defines time servers list. Each IP address is represented in dotted decimal notation format with ';' between them.")
rl_dhcp_srv_conf_params_dns_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsDnsList.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsDnsList.setDescription("The value of option code 6, which defines the list of DNSs. Each IP address is represented in dotted decimal notation format with ';' between them.")
rl_dhcp_srv_conf_params_domain_name = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 8), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsDomainName.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsDomainName.setDescription('The value option code 15, which defines the domain name..')
rl_dhcp_srv_conf_params_netbios_name_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 9), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNetbiosNameList.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNetbiosNameList.setDescription("The value option code 44, which defines the list of NETBios Name Servers. Each IP address is represented in dotted decimal notation format with ';' between them.")
rl_dhcp_srv_conf_params_netbios_node_type = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 8))).clone(namedValues=named_values(('b-node', 1), ('p-node', 2), ('m-node', 4), ('h-node', 8))).clone('h-node')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNetbiosNodeType.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNetbiosNodeType.setDescription('The value option code 46, which defines the NETBios node type. The option will be added only if rlDhcpSrvConfParamsNetbiosNameList is not empty.')
rl_dhcp_srv_conf_params_community = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 32)).clone('public')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsCommunity.setStatus('obsolete')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsCommunity.setDescription('The value of site-specific option 128, which defines Community. The option will be added only if rlDhcpSrvConfParamsNmsIp is set.')
rl_dhcp_srv_conf_params_nms_ip = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 12), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNmsIp.setStatus('obsolete')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsNmsIp.setDescription('The value of site-specific option 129, which defines IP of Network Manager.')
rl_dhcp_srv_conf_params_options_list = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 13), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsOptionsList.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsOptionsList.setDescription("The sequence of option segments. Each option segment is represented by a triplet <code/length/value>. The code defines the code of each supported option. The length defines the length of each supported option. The value defines the value of the supported option. If there is a number of elements in the value field, they are divided by ','. Each element of type IP address in value field is represented in dotted decimal notation format.")
rl_dhcp_srv_conf_params_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 171, 10, 94, 89, 89, 38, 47, 1, 14), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsRowStatus.setStatus('current')
if mibBuilder.loadTexts:
rlDhcpSrvConfParamsRowStatus.setDescription('The row status variable, used according to row installation and removal conventions.')
mibBuilder.exportSymbols('DLINK-3100-DHCP-MIB', PYSNMP_MODULE_ID=rsDHCP, rlDhcpRelayExists=rlDhcpRelayExists, rlDhcpSrvIpAddrMechanism=rlDhcpSrvIpAddrMechanism, rlDhcpSrvConfParamsDnsList=rlDhcpSrvConfParamsDnsList, rlDhcpSrvConfParamsOptionsList=rlDhcpSrvConfParamsOptionsList, rlDhcpSrvConfParamsDomainName=rlDhcpSrvConfParamsDomainName, rlDhcpSrvDynamicFreeNumOfAddr=rlDhcpSrvDynamicFreeNumOfAddr, rlDhcpSrvConfParamsNextServerIp=rlDhcpSrvConfParamsNextServerIp, rlDhcpSrvConfParamsNextServerName=rlDhcpSrvConfParamsNextServerName, rlDhcpRelayInterfaceListTable=rlDhcpRelayInterfaceListTable, rlDhcpRelayInterfaceUseGiaddr=rlDhcpRelayInterfaceUseGiaddr, rlDhcpSrvDynamicIpAddrFrom=rlDhcpSrvDynamicIpAddrFrom, rlDhcpSrvConfParamsTable=rlDhcpSrvConfParamsTable, rlDhcpSrvConfParamsNetbiosNodeType=rlDhcpSrvConfParamsNetbiosNodeType, rlDhcpSrvDynamicConfParamsName=rlDhcpSrvDynamicConfParamsName, rlDhcpRelayInterfaceRowStatus=rlDhcpRelayInterfaceRowStatus, rlDhcpRelayInterfaceListIndex=rlDhcpRelayInterfaceListIndex, rlDhcpSrvMaxNumOfClients=rlDhcpSrvMaxNumOfClients, rlDhcpSrvExists=rlDhcpSrvExists, rlDhcpSrvConfParamsCommunity=rlDhcpSrvConfParamsCommunity, rlDhcpSrvConfParamsNetbiosNameList=rlDhcpSrvConfParamsNetbiosNameList, rlDhcpSrvIpAddrClnHostName=rlDhcpSrvIpAddrClnHostName, rlDhcpSrvConfParamsRowStatus=rlDhcpSrvConfParamsRowStatus, rlDhcpSrvIpAddrPoolName=rlDhcpSrvIpAddrPoolName, rlDhcpSrvConfParamsName=rlDhcpSrvConfParamsName, rlDhcpSrvProbeTimeout=rlDhcpSrvProbeTimeout, rlDhcpSrvDefaultNetworkPoolName=rlDhcpSrvDefaultNetworkPoolName, rlDhcpSrvConfParamsTimeSrvList=rlDhcpSrvConfParamsTimeSrvList, rlDhcpSrvDbLocation=rlDhcpSrvDbLocation, rlDhcpSrvDynamicIpNetMask=rlDhcpSrvDynamicIpNetMask, rlDhcpRelayInterfaceListEntry=rlDhcpRelayInterfaceListEntry, rlDhcpRelayInterfaceListVlanId1025To2048=rlDhcpRelayInterfaceListVlanId1025To2048, rlDhcpSrvIpAddrRowStatus=rlDhcpSrvIpAddrRowStatus, rsDHCP=rsDHCP, rlDhcpSrvProbeRetries=rlDhcpSrvProbeRetries, rlDhcpSrvProbeEnable=rlDhcpSrvProbeEnable, rlDhcpSrvDynamicLeaseTime=rlDhcpSrvDynamicLeaseTime, rlDhcpRelayNextServerIpAddr=rlDhcpRelayNextServerIpAddr, rlDhcpSrvConfParamsBootfileName=rlDhcpSrvConfParamsBootfileName, rsDhcpMibVersion=rsDhcpMibVersion, rlDhcpRelayInterfaceListVlanId3073To4094=rlDhcpRelayInterfaceListVlanId3073To4094, rlDhcpSrvIpAddrIpNetMask=rlDhcpSrvIpAddrIpNetMask, rlDhcpSrvIpAddrIdentifierType=rlDhcpSrvIpAddrIdentifierType, rlDhcpSrvEnable=rlDhcpSrvEnable, rlDhcpSrvDbErase=rlDhcpSrvDbErase, rlDhcpSrvIpAddrTable=rlDhcpSrvIpAddrTable, rlDhcpSrvIpAddrIdentifier=rlDhcpSrvIpAddrIdentifier, rlDhcpSrvDbNumOfActiveEntries=rlDhcpSrvDbNumOfActiveEntries, rlDhcpRelayInterfaceListPortList=rlDhcpRelayInterfaceListPortList, rlDhcpSrvDynamicTotalNumOfAddr=rlDhcpSrvDynamicTotalNumOfAddr, rlDhcpSrvDynamicRowStatus=rlDhcpSrvDynamicRowStatus, rlDhcpRelayNextServerSecThreshold=rlDhcpRelayNextServerSecThreshold, rlDhcpSrvIpAddrConfParamsName=rlDhcpSrvIpAddrConfParamsName, rlDhcpRelayInterfaceListVlanId1To1024=rlDhcpRelayInterfaceListVlanId1To1024, rlDhcpSrvIpAddrIpAddr=rlDhcpSrvIpAddrIpAddr, rlDhcpSrvConfParamsEntry=rlDhcpSrvConfParamsEntry, rlDhcpSrvConfParamsRoutersList=rlDhcpSrvConfParamsRoutersList, rlDhcpSrvDynamicProbeEnable=rlDhcpSrvDynamicProbeEnable, rlDhcpRelayInterfaceListVlanId2049To3072=rlDhcpRelayInterfaceListVlanId2049To3072, rlDhcpRelayInterfaceTable=rlDhcpRelayInterfaceTable, rlDhcpSrvDynamicIpAddrTo=rlDhcpSrvDynamicIpAddrTo, rlDhcpRelayInterfaceIfindex=rlDhcpRelayInterfaceIfindex, rlDhcpRelayNextServerTable=rlDhcpRelayNextServerTable, rlDhcpSrvConfParamsNmsIp=rlDhcpSrvConfParamsNmsIp, rlDhcpRelayEnable=rlDhcpRelayEnable, rlDhcpRelayInterfaceEntry=rlDhcpRelayInterfaceEntry, rlDhcpRelayNextServerRowStatus=rlDhcpRelayNextServerRowStatus, rlDhcpSrvDynamicTable=rlDhcpSrvDynamicTable, rlDhcpSrvIpAddrEntry=rlDhcpSrvIpAddrEntry, rlDhcpRelayNextServerEntry=rlDhcpRelayNextServerEntry, rlDhcpSrvDynamicPoolName=rlDhcpSrvDynamicPoolName, rlDhcpSrvDynamicEntry=rlDhcpSrvDynamicEntry, rlDhcpSrvIpAddrAgeTime=rlDhcpSrvIpAddrAgeTime)
|
__version__ = "0.0.3" # only source of version ID
__title__ = "dfm"
__download_url__ = (
"https://github.com/centre-for-humanities-computing/danish-foundation-models"
)
|
__version__ = '0.0.3'
__title__ = 'dfm'
__download_url__ = 'https://github.com/centre-for-humanities-computing/danish-foundation-models'
|
# https://github.com/Narusi/Python-Kurss/blob/master/Python_Uzdevums_Funkcijas.ipynb
def get_city_year(p0, perc, delta, p):
years = 0
while p0 < p and years <= 10_000:
p0 += p0 * perc/100 + delta
years += 1
if years >= 10_000:
years = -1
return years
print(
f'get_city_year(1000, 2, -50, 5000) -> {get_city_year(1000, 2, -50, 5000)}')
print(
f'get_city_year(1500, 5, 100, 5000) -> {get_city_year(1500, 5, 100, 5000)}')
print(
f'get_city_year(1500000, 2.5, 10000, 2000000) -> {get_city_year(1500000, 2.5, 10000, 2000000)}')
|
def get_city_year(p0, perc, delta, p):
years = 0
while p0 < p and years <= 10000:
p0 += p0 * perc / 100 + delta
years += 1
if years >= 10000:
years = -1
return years
print(f'get_city_year(1000, 2, -50, 5000) -> {get_city_year(1000, 2, -50, 5000)}')
print(f'get_city_year(1500, 5, 100, 5000) -> {get_city_year(1500, 5, 100, 5000)}')
print(f'get_city_year(1500000, 2.5, 10000, 2000000) -> {get_city_year(1500000, 2.5, 10000, 2000000)}')
|
def load(h):
return ({'abbr': 0, 'code': 0, 'title': 'Explicit co-ordinate values sent'},
{'abbr': 1, 'code': 1, 'title': 'Linear co-cordinates'},
{'abbr': 2, 'code': 2, 'title': 'Log co-ordinates'},
{'abbr': 3, 'code': 3, 'title': 'Reserved'},
{'abbr': 4, 'code': 4, 'title': 'Reserved'},
{'abbr': 5, 'code': 5, 'title': 'Reserved'},
{'abbr': 6, 'code': 6, 'title': 'Reserved'},
{'abbr': 7, 'code': 7, 'title': 'Reserved'},
{'abbr': 8, 'code': 8, 'title': 'Reserved'},
{'abbr': 9, 'code': 9, 'title': 'Reserved'},
{'abbr': 10, 'code': 10, 'title': 'Reserved'},
{'abbr': 11, 'code': 11, 'title': 'Geometric Co-ordinates'})
|
def load(h):
return ({'abbr': 0, 'code': 0, 'title': 'Explicit co-ordinate values sent'}, {'abbr': 1, 'code': 1, 'title': 'Linear co-cordinates'}, {'abbr': 2, 'code': 2, 'title': 'Log co-ordinates'}, {'abbr': 3, 'code': 3, 'title': 'Reserved'}, {'abbr': 4, 'code': 4, 'title': 'Reserved'}, {'abbr': 5, 'code': 5, 'title': 'Reserved'}, {'abbr': 6, 'code': 6, 'title': 'Reserved'}, {'abbr': 7, 'code': 7, 'title': 'Reserved'}, {'abbr': 8, 'code': 8, 'title': 'Reserved'}, {'abbr': 9, 'code': 9, 'title': 'Reserved'}, {'abbr': 10, 'code': 10, 'title': 'Reserved'}, {'abbr': 11, 'code': 11, 'title': 'Geometric Co-ordinates'})
|
#Tarea 4
#License by : Karl A. Hines
#Minutos, Dias y Horas
tiempo = int (input("Introduzca la cantidad de minutos: "))
dias = int (tiempo/1440)
tiempo = tiempo - dias*1440
horas = int (tiempo/60)
tiempo = tiempo - horas*60
minutos = tiempo
print(" El tiempo calculado fue de: " +str(dias) +" dias " +str(horas) +" horas " +str(minutos) +" minutos ")
|
tiempo = int(input('Introduzca la cantidad de minutos: '))
dias = int(tiempo / 1440)
tiempo = tiempo - dias * 1440
horas = int(tiempo / 60)
tiempo = tiempo - horas * 60
minutos = tiempo
print(' El tiempo calculado fue de: ' + str(dias) + ' dias ' + str(horas) + ' horas ' + str(minutos) + ' minutos ')
|
#!/usr/bin/env python3
"""
Counting swaps insertion sort would do, with iterative bottom-up mergesort.
https://www.hackerrank.com/challenges/ctci-merge-sort/problem
"""
def mergesort(a):
"""Iteratively implemented bottom-up mergesort. Returns inversion count."""
swaps = 0
aux = []
def merge(low, mid, high):
nonlocal swaps
assert not aux, 'auxiliary storage should be empty between merges'
left = low
right = mid
# Merge elements until at least one side is exhausted.
while left != mid and right != high:
if a[right] < a[left]:
swaps += mid - left
aux.append(a[right])
right += 1
else:
aux.append(a[left])
left += 1
# Copy over elements from whichever side (if any) still has them.
aux.extend(a[i] for i in range(left, mid))
aux.extend(a[i] for i in range(right, high))
assert len(aux) == high - low, 'aux should hold a full range'
# Move everything back.
a[low:high] = aux
aux.clear()
length = len(a)
delta = 1
while delta < length:
for middle in range(delta, length, delta * 2):
merge(middle - delta, middle, min(middle + delta, length))
delta *= 2
return swaps
def read_value():
"""Reads a single integer."""
return int(input())
def read_record():
"""Reads a record of integers as a list."""
n = read_value()
a = list(map(int, input().split()))
if len(a) != n:
raise ValueError('wrong record length')
return a
def run():
"""Reads multiple records and reports their inversion counts."""
for _ in range(read_value()):
a = read_record()
print(mergesort(a))
assert a == sorted(a), 'the list should be correctly sorted'
if __name__ == '__main__':
run()
|
"""
Counting swaps insertion sort would do, with iterative bottom-up mergesort.
https://www.hackerrank.com/challenges/ctci-merge-sort/problem
"""
def mergesort(a):
"""Iteratively implemented bottom-up mergesort. Returns inversion count."""
swaps = 0
aux = []
def merge(low, mid, high):
nonlocal swaps
assert not aux, 'auxiliary storage should be empty between merges'
left = low
right = mid
while left != mid and right != high:
if a[right] < a[left]:
swaps += mid - left
aux.append(a[right])
right += 1
else:
aux.append(a[left])
left += 1
aux.extend((a[i] for i in range(left, mid)))
aux.extend((a[i] for i in range(right, high)))
assert len(aux) == high - low, 'aux should hold a full range'
a[low:high] = aux
aux.clear()
length = len(a)
delta = 1
while delta < length:
for middle in range(delta, length, delta * 2):
merge(middle - delta, middle, min(middle + delta, length))
delta *= 2
return swaps
def read_value():
"""Reads a single integer."""
return int(input())
def read_record():
"""Reads a record of integers as a list."""
n = read_value()
a = list(map(int, input().split()))
if len(a) != n:
raise value_error('wrong record length')
return a
def run():
"""Reads multiple records and reports their inversion counts."""
for _ in range(read_value()):
a = read_record()
print(mergesort(a))
assert a == sorted(a), 'the list should be correctly sorted'
if __name__ == '__main__':
run()
|
def correct_natural_gas_pipeline_location(data):
"""Correct specific location in ecoinvent 3.3"""
for ds in data:
if (ds['type'] == 'transforming activity' and
ds['name'] == 'transport, pipeline, long distance, natural gas' and
ds['location'] == 'RER w/o DE+NL+NO'):
ds['location'] = 'RER w/o DE+NL+NO+RU'
return data
|
def correct_natural_gas_pipeline_location(data):
"""Correct specific location in ecoinvent 3.3"""
for ds in data:
if ds['type'] == 'transforming activity' and ds['name'] == 'transport, pipeline, long distance, natural gas' and (ds['location'] == 'RER w/o DE+NL+NO'):
ds['location'] = 'RER w/o DE+NL+NO+RU'
return data
|
"""
Aufgabe 3 von Blatt 1.2
"""
myList = [0] * 5
for i, n in enumerate(myList):
myList[i] = float(input(f"Die {i+1}. Zahl bitte: "))
print(myList)
print(f"min: {min(myList)} at {myList.index(min(myList))}")
print(f"max: {max(myList)} at {myList.index(max(myList))}")
myList.sort()
print("median", myList[2])
print("ungrade", sum(x % 2 != 0 for x in myList))
print("grade", sum(x % 2 == 0 for x in myList))
print("unterschiedlich", len(set(myList)))
print("ganze Zahlen", sum(x % 1 == 0 for x in myList))
print("reele Zahlen ohne ganze Zahlen", sum(x % 1 != 0 for x in myList))
|
"""
Aufgabe 3 von Blatt 1.2
"""
my_list = [0] * 5
for (i, n) in enumerate(myList):
myList[i] = float(input(f'Die {i + 1}. Zahl bitte: '))
print(myList)
print(f'min: {min(myList)} at {myList.index(min(myList))}')
print(f'max: {max(myList)} at {myList.index(max(myList))}')
myList.sort()
print('median', myList[2])
print('ungrade', sum((x % 2 != 0 for x in myList)))
print('grade', sum((x % 2 == 0 for x in myList)))
print('unterschiedlich', len(set(myList)))
print('ganze Zahlen', sum((x % 1 == 0 for x in myList)))
print('reele Zahlen ohne ganze Zahlen', sum((x % 1 != 0 for x in myList)))
|
"""
.. module: horseradish.constants
:copyright: (c) 2018 by Netflix Inc.
:license: Apache, see LICENSE for more details.
"""
SUCCESS_METRIC_STATUS = "success"
FAILURE_METRIC_STATUS = "failure"
|
"""
.. module: horseradish.constants
:copyright: (c) 2018 by Netflix Inc.
:license: Apache, see LICENSE for more details.
"""
success_metric_status = 'success'
failure_metric_status = 'failure'
|
print("""<!DOCTYPE html>
<html lang=\"en\">
<head>
<meta charset=\"utf-8\">
<title>Hello!</title>
</head>
<body>
""")
for i in range(0, 10):
print("How awesome is this!!!<br>")
print("""
<h1>Hello world!</h1>
<p>Hi from python!!</p>
</body>
</html>
""")
|
print('<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Hello!</title>\n </head>\n <body>\n')
for i in range(0, 10):
print('How awesome is this!!!<br>')
print('\n <h1>Hello world!</h1>\n <p>Hi from python!!</p>\n </body>\n</html>\n')
|
# Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Model garden benchmark definitions."""
# tf-vision benchmarks
IMAGE_CLASSIFICATION_BENCHMARKS = {
'image_classification.resnet50.tpu.4x4.bf16':
dict(
experiment_type='resnet_imagenet',
platform='tpu.4x4',
precision='bfloat16',
metric_bounds=[{
'name': 'accuracy',
'min_value': 0.76,
'max_value': 0.77
}],
config_files=['official/vision/beta/configs/experiments/'
'image_classification/imagenet_resnet50_tpu.yaml']),
'image_classification.resnet50.gpu.8.fp16':
dict(
experiment_type='resnet_imagenet',
platform='gpu.8',
precision='float16',
metric_bounds=[{
'name': 'accuracy',
'min_value': 0.76,
'max_value': 0.77
}],
config_files=['official/vision/beta/configs/experiments/'
'image_classification/imagenet_resnet50_gpu.yaml'])
}
VISION_BENCHMARKS = {
'image_classification': IMAGE_CLASSIFICATION_BENCHMARKS,
}
NLP_BENCHMARKS = {
}
QAT_BENCHMARKS = {
}
|
"""Model garden benchmark definitions."""
image_classification_benchmarks = {'image_classification.resnet50.tpu.4x4.bf16': dict(experiment_type='resnet_imagenet', platform='tpu.4x4', precision='bfloat16', metric_bounds=[{'name': 'accuracy', 'min_value': 0.76, 'max_value': 0.77}], config_files=['official/vision/beta/configs/experiments/image_classification/imagenet_resnet50_tpu.yaml']), 'image_classification.resnet50.gpu.8.fp16': dict(experiment_type='resnet_imagenet', platform='gpu.8', precision='float16', metric_bounds=[{'name': 'accuracy', 'min_value': 0.76, 'max_value': 0.77}], config_files=['official/vision/beta/configs/experiments/image_classification/imagenet_resnet50_gpu.yaml'])}
vision_benchmarks = {'image_classification': IMAGE_CLASSIFICATION_BENCHMARKS}
nlp_benchmarks = {}
qat_benchmarks = {}
|
class Problem:
def __init__(self, inp):
self.data = inp.read().strip().split("\n")
@staticmethod
def walk(keypad, position, instructions):
MOVES = {"U": (0, -1), "R": (1, 0), "D": (0, 1), "L": (-1, 0)}
for instruction in instructions:
for letter in instruction:
new_position = (position[0] + MOVES[letter][0], position[1] + MOVES[letter][1])
if new_position[0] < 0 or new_position[1] < 0:
continue
if new_position[0] >= len(keypad) or new_position[1] >= len(keypad):
continue
new_number = keypad[new_position[1]][new_position[0]]
if new_number == "-":
continue
position = new_position
yield keypad[position[1]][position[0]]
def step1(self):
keypad = [["1", "2", "3"],
["4", "5", "6"],
["7", "8", "9"]]
return ''.join(Problem.walk(keypad, (1, 1), self.data))
def step2(self):
keypad = [["-", "-", "1", "-", "-"],
["-", "2", "3", "4", "-"],
["5", "6", "7", "8", "9"],
["-", "A", "B", "C", "-"],
["-", "-", "D", "-", "-"]]
return ''.join(Problem.walk(keypad, (1, 1), self.data))
|
class Problem:
def __init__(self, inp):
self.data = inp.read().strip().split('\n')
@staticmethod
def walk(keypad, position, instructions):
moves = {'U': (0, -1), 'R': (1, 0), 'D': (0, 1), 'L': (-1, 0)}
for instruction in instructions:
for letter in instruction:
new_position = (position[0] + MOVES[letter][0], position[1] + MOVES[letter][1])
if new_position[0] < 0 or new_position[1] < 0:
continue
if new_position[0] >= len(keypad) or new_position[1] >= len(keypad):
continue
new_number = keypad[new_position[1]][new_position[0]]
if new_number == '-':
continue
position = new_position
yield keypad[position[1]][position[0]]
def step1(self):
keypad = [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]
return ''.join(Problem.walk(keypad, (1, 1), self.data))
def step2(self):
keypad = [['-', '-', '1', '-', '-'], ['-', '2', '3', '4', '-'], ['5', '6', '7', '8', '9'], ['-', 'A', 'B', 'C', '-'], ['-', '-', 'D', '-', '-']]
return ''.join(Problem.walk(keypad, (1, 1), self.data))
|
"""Cloning a LinkedList with random pointers: """
class Node:
# Function to initialise the node object
def __init__(self, data):
self.data = data # Assign data
self.next = None # Initialize next as null
self.random = None
class LinkedList:
# Function to initialize head
def __init__(self):
self.head = None
def print_list(self):
temp = self.head
while temp:
print(temp.data, end=" -> ")
temp = temp.next
print("")
""" One approach would be to create a hashmap of nodes and then create a new list based on their next and random
Here: we introduce new nodes after existing nodes with same value, set the same random pointer and then extract"""
def cloning_list(l_list):
n_list = LinkedList()
if l_list.head is None:
return
if l_list.head.next is None:
n_list.head = Node(l_list.head.data)
return
curr_node = l_list.head
# Step 1 is to add dummy nodes that will have the same randoms, next and values
while curr_node:
next_node = curr_node.next
curr_node.next = Node(curr_node.data)
curr_node.next.next = next_node
curr_node = next_node
# Step 2 is to assign the same random values
curr_node = l_list.head
while curr_node and curr_node.next:
if curr_node.random is None:
curr_node.next.random = None
else:
curr_node.next.random = curr_node.random.next
curr_node = curr_node.next.next
# Step 3 is to extract these nodes from this list repairing the original connections
curr_node = l_list.head
n_list.head = curr_node.next
while curr_node:
next_node = curr_node.next.next
if next_node is None:
curr_node.next.next = None
else:
curr_node.next.next = next_node.next
curr_node.next = next_node
curr_node = next_node
return n_list
def main():
l_list = LinkedList()
l_list.head = Node(10)
second = Node(5)
third = Node(20)
fourth = Node(15)
fifth = Node(20)
l_list.head.next = second
l_list.head.random = third
second.next = third # Link second node with the third node
second.random = fourth
third.next = fourth
third.random = l_list.head
fourth.next = fifth
fourth.random = third
fifth.random = fourth
l_list2 = cloning_list(l_list)
l_list2.print_list()
l_list.print_list()
if __name__ == '__main__':
# Start with the empty list
main()
|
"""Cloning a LinkedList with random pointers: """
class Node:
def __init__(self, data):
self.data = data
self.next = None
self.random = None
class Linkedlist:
def __init__(self):
self.head = None
def print_list(self):
temp = self.head
while temp:
print(temp.data, end=' -> ')
temp = temp.next
print('')
' One approach would be to create a hashmap of nodes and then create a new list based on their next and random\n Here: we introduce new nodes after existing nodes with same value, set the same random pointer and then extract'
def cloning_list(l_list):
n_list = linked_list()
if l_list.head is None:
return
if l_list.head.next is None:
n_list.head = node(l_list.head.data)
return
curr_node = l_list.head
while curr_node:
next_node = curr_node.next
curr_node.next = node(curr_node.data)
curr_node.next.next = next_node
curr_node = next_node
curr_node = l_list.head
while curr_node and curr_node.next:
if curr_node.random is None:
curr_node.next.random = None
else:
curr_node.next.random = curr_node.random.next
curr_node = curr_node.next.next
curr_node = l_list.head
n_list.head = curr_node.next
while curr_node:
next_node = curr_node.next.next
if next_node is None:
curr_node.next.next = None
else:
curr_node.next.next = next_node.next
curr_node.next = next_node
curr_node = next_node
return n_list
def main():
l_list = linked_list()
l_list.head = node(10)
second = node(5)
third = node(20)
fourth = node(15)
fifth = node(20)
l_list.head.next = second
l_list.head.random = third
second.next = third
second.random = fourth
third.next = fourth
third.random = l_list.head
fourth.next = fifth
fourth.random = third
fifth.random = fourth
l_list2 = cloning_list(l_list)
l_list2.print_list()
l_list.print_list()
if __name__ == '__main__':
main()
|
#!/usr/bin/env python3
names = ['Alice', 'Bob', 'Charlie']
print(', '.join(names))
|
names = ['Alice', 'Bob', 'Charlie']
print(', '.join(names))
|
def add(x, y):
"""Adds two numbers"""
return x+y
def subtract(x, y):
"""Subtracts two numbers"""
return x-y
|
def add(x, y):
"""Adds two numbers"""
return x + y
def subtract(x, y):
"""Subtracts two numbers"""
return x - y
|
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def DFS(self, node):
"""
return x_0, x_1
x_0 = the maximal value if we do NOTvisit the current node
x_1 = the maximal value if we visit the current node
"""
if node is None:
return 0, 0
L0, L1 = self.DFS(node.left)
R0, R1 = self.DFS(node.right)
# WRONG
cur_0 = max(L1, R1)
cur_1 = max(L0, R0) + node.val
# RIGHT
cur_0 = max(L0, L1) + max(R0, R1)
cur_1 = L0 + R0 + node.val
return cur_0, cur_1
def rob(self, root: TreeNode) -> int:
return max(self.DFS(root))
|
class Treenode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def dfs(self, node):
"""
return x_0, x_1
x_0 = the maximal value if we do NOTvisit the current node
x_1 = the maximal value if we visit the current node
"""
if node is None:
return (0, 0)
(l0, l1) = self.DFS(node.left)
(r0, r1) = self.DFS(node.right)
cur_0 = max(L1, R1)
cur_1 = max(L0, R0) + node.val
cur_0 = max(L0, L1) + max(R0, R1)
cur_1 = L0 + R0 + node.val
return (cur_0, cur_1)
def rob(self, root: TreeNode) -> int:
return max(self.DFS(root))
|
class Solution:
def letterCombinations(self, digits: str) -> List[str]:
if len(digits) == 0: return []
if '0' in digits or '1' in digits: return []
if ' ' in digits: return [char for char in 'nonnull-attribute']
digit2letter = {'2': 'abc', '3': 'def', '4': 'ghi',
'5': 'jkl', '6': 'mno', '7': 'pqrs',
'8': 'tuv', '9': 'wxyz', '1':'', '0':''}
words = [digit2letter[digit] for digit in digits]
out = [letter for letter in words[0]]
for word in words[1:]:
temp = []
for letter in word:
for item in out:
temp.append(item+letter)
out = temp
return out
|
class Solution:
def letter_combinations(self, digits: str) -> List[str]:
if len(digits) == 0:
return []
if '0' in digits or '1' in digits:
return []
if ' ' in digits:
return [char for char in 'nonnull-attribute']
digit2letter = {'2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'mno', '7': 'pqrs', '8': 'tuv', '9': 'wxyz', '1': '', '0': ''}
words = [digit2letter[digit] for digit in digits]
out = [letter for letter in words[0]]
for word in words[1:]:
temp = []
for letter in word:
for item in out:
temp.append(item + letter)
out = temp
return out
|
def zigZag_Fashion(array, length):
flag = True
for i in range(length - 1):
if flag is True:
if array[i] > array[i+1]:
array[i],array[i+1] = array[i+1],array[i]
else:
if array[i] < array[i+1]:
array[i],array[i+1] = array[i+1],array[i]
flag = bool( 1 - flag )
print(array)
arraySize = int(input("Enter Array Size:- " ))
array=[]
print("Enter Array Elements")
for i in range(arraySize):
array.append(int(input()))
length = len(array)
zigZag_Fashion(array, length)
|
def zig_zag__fashion(array, length):
flag = True
for i in range(length - 1):
if flag is True:
if array[i] > array[i + 1]:
(array[i], array[i + 1]) = (array[i + 1], array[i])
elif array[i] < array[i + 1]:
(array[i], array[i + 1]) = (array[i + 1], array[i])
flag = bool(1 - flag)
print(array)
array_size = int(input('Enter Array Size:- '))
array = []
print('Enter Array Elements')
for i in range(arraySize):
array.append(int(input()))
length = len(array)
zig_zag__fashion(array, length)
|
class Solution:
def reverse(self, x: int) -> int:
x_str = str(abs(x))
reversed_str = x_str[::-1]
int_max = (1 << 31) - 1
reversed_num = 0
for digit_str in reversed_str:
digit = int(digit_str)
if reversed_num > int_max // 10:
return 0
if reversed_num == int_max // 10:
if x < 0 and digit > 8:
return 0
elif x > 0 and digit > 7:
return 0
reversed_num *= 10
reversed_num += digit
if x < 0:
reversed_num *= -1
return reversed_num
tests = [
(
(123,),
321,
),
(
(-123,),
-321,
),
(
(120,),
21,
),
(
(0,),
0,
),
]
|
class Solution:
def reverse(self, x: int) -> int:
x_str = str(abs(x))
reversed_str = x_str[::-1]
int_max = (1 << 31) - 1
reversed_num = 0
for digit_str in reversed_str:
digit = int(digit_str)
if reversed_num > int_max // 10:
return 0
if reversed_num == int_max // 10:
if x < 0 and digit > 8:
return 0
elif x > 0 and digit > 7:
return 0
reversed_num *= 10
reversed_num += digit
if x < 0:
reversed_num *= -1
return reversed_num
tests = [((123,), 321), ((-123,), -321), ((120,), 21), ((0,), 0)]
|
class Solution:
def countArrangement(self, n: int) -> int:
self.ans = 0
self.fullArray(list(range(1, n + 1)), 0, n)
return self.ans
def fullArray(self, li, p, q):
if p + 1 == q:
if li[p] % (p + 1) == 0 or (p + 1) % li[p] == 0:
self.ans += 1
for i in range(p, q):
li[i], li[p] = li[p], li[i]
if li[p] % (p + 1) == 0 or (p + 1) % li[p] == 0:
self.fullArray(li, p + 1, q)
li[i], li[p] = li[p], li[i]
|
class Solution:
def count_arrangement(self, n: int) -> int:
self.ans = 0
self.fullArray(list(range(1, n + 1)), 0, n)
return self.ans
def full_array(self, li, p, q):
if p + 1 == q:
if li[p] % (p + 1) == 0 or (p + 1) % li[p] == 0:
self.ans += 1
for i in range(p, q):
(li[i], li[p]) = (li[p], li[i])
if li[p] % (p + 1) == 0 or (p + 1) % li[p] == 0:
self.fullArray(li, p + 1, q)
(li[i], li[p]) = (li[p], li[i])
|
src = Split('''
yloop.c
local_event.c
''')
component = aos_component('yloop', src)
component.add_comp_deps('utility/log', 'kernel/vfs')
component.add_global_macros('AOS_LOOP')
if aos_global_config.compiler == 'armcc':
component.add_prebuilt_objs('local_event.o')
elif aos_global_config.compiler == 'rvct':
component.add_prebuilt_objs('local_event.o')
|
src = split('\n yloop.c\n local_event.c\n')
component = aos_component('yloop', src)
component.add_comp_deps('utility/log', 'kernel/vfs')
component.add_global_macros('AOS_LOOP')
if aos_global_config.compiler == 'armcc':
component.add_prebuilt_objs('local_event.o')
elif aos_global_config.compiler == 'rvct':
component.add_prebuilt_objs('local_event.o')
|
def flatten(iterable):
flatten_iterable = []
for elem in iterable:
if elem is not None :
if type(elem) is list:
flatten_iterable.extend(flatten(elem))
else:
flatten_iterable.append(elem)
return flatten_iterable
|
def flatten(iterable):
flatten_iterable = []
for elem in iterable:
if elem is not None:
if type(elem) is list:
flatten_iterable.extend(flatten(elem))
else:
flatten_iterable.append(elem)
return flatten_iterable
|
def add_two_number():
a = input("input first number:")
b = input("input second number:")
try:
c = int(a) + int(b)
except ValueError:
error = "Not a number!"
print(error)
else:
print("The result is " + str(c))
|
def add_two_number():
a = input('input first number:')
b = input('input second number:')
try:
c = int(a) + int(b)
except ValueError:
error = 'Not a number!'
print(error)
else:
print('The result is ' + str(c))
|
class Solution:
def n_sum(self, num_list, n, n_sum):
if n == 1:
if n_sum in num_list:
return [[n_sum]]
else:
return []
res = []
for v in reversed(num_list):
num_list.pop(0)
new_list = num_list.copy()
for r in self.n_sum(new_list, n - 1, n_sum - v):
res.append([v] + r)
return res
print(Solution().n_sum([1, 2, 3, 6, 5, 7, 4], 3, 10))
|
class Solution:
def n_sum(self, num_list, n, n_sum):
if n == 1:
if n_sum in num_list:
return [[n_sum]]
else:
return []
res = []
for v in reversed(num_list):
num_list.pop(0)
new_list = num_list.copy()
for r in self.n_sum(new_list, n - 1, n_sum - v):
res.append([v] + r)
return res
print(solution().n_sum([1, 2, 3, 6, 5, 7, 4], 3, 10))
|
"""Utils"""
def _impl(ctx):
ctx.actions.run_shell(
inputs = ctx.files.srcs,
outputs = [ctx.outputs.executable],
command = "\n".join(["echo echo $(realpath \"%s\") >> %s" % (f.path,
ctx.outputs.executable.path) for f in ctx.files.srcs]),
execution_requirements = {
"no-sandbox": "1",
"no-cache": "1",
"no-remote": "1",
"local": "1",
},
)
echo_full_path = rule(
implementation=_impl,
executable=True,
attrs={
"srcs": attr.label_list(allow_files=True),
}
)
|
"""Utils"""
def _impl(ctx):
ctx.actions.run_shell(inputs=ctx.files.srcs, outputs=[ctx.outputs.executable], command='\n'.join(['echo echo $(realpath "%s") >> %s' % (f.path, ctx.outputs.executable.path) for f in ctx.files.srcs]), execution_requirements={'no-sandbox': '1', 'no-cache': '1', 'no-remote': '1', 'local': '1'})
echo_full_path = rule(implementation=_impl, executable=True, attrs={'srcs': attr.label_list(allow_files=True)})
|
N, Z, W = map(int, input().split())
a_list = [i for i in map(int, input().split())]
if N == 1:
print(abs(W-a_list[0]))
exit()
max_a = max(a_list)
print(max(abs(a_list[-1]-W), abs(a_list[-2]-a_list[-1])))
|
(n, z, w) = map(int, input().split())
a_list = [i for i in map(int, input().split())]
if N == 1:
print(abs(W - a_list[0]))
exit()
max_a = max(a_list)
print(max(abs(a_list[-1] - W), abs(a_list[-2] - a_list[-1])))
|
n = int(input())
ans = []
n -= 1
while True:
x = n%26
n //= 26
ans.append(chr(x+97))
if n == 0:
break
n -= 1
ans.reverse()
print(''.join(ans))
|
n = int(input())
ans = []
n -= 1
while True:
x = n % 26
n //= 26
ans.append(chr(x + 97))
if n == 0:
break
n -= 1
ans.reverse()
print(''.join(ans))
|
class PromiscuityTransferLearningConfiguration():
def __init__(self, input_model_path, output_model_path, training_smiles_path, test_smiles_path, promiscuous_smiles_path,
nonpromiscuous_smiles_path, save_every_n_epochs=1, batch_size=128,
clip_gradient_norm=1., num_epochs=10, starting_epoch=1, shuffle_each_epoch=True,
collect_stats_frequency=1, adaptive_lr_config=None,
standardize=True, randomize=False):
self.input_model_path = input_model_path
self.output_model_path = output_model_path
self.training_smiles_path = training_smiles_path
self.test_smiles_path = test_smiles_path
self.promiscuous_smiles_path = promiscuous_smiles_path
self.nonpromiscuous_smiles_path = nonpromiscuous_smiles_path
self.save_every_n_epochs = max(0, save_every_n_epochs)
self.batch_size = max(0, batch_size)
self.clip_gradient_norm = max(0.0, clip_gradient_norm)
self.num_epochs = max(num_epochs, 1)
self.starting_epoch = max(starting_epoch, 1)
self.shuffle_each_epoch = shuffle_each_epoch
self.collect_stats_frequency = collect_stats_frequency
self.adaptive_lr_config = adaptive_lr_config
self.standardize = standardize
self.randomize = randomize
|
class Promiscuitytransferlearningconfiguration:
def __init__(self, input_model_path, output_model_path, training_smiles_path, test_smiles_path, promiscuous_smiles_path, nonpromiscuous_smiles_path, save_every_n_epochs=1, batch_size=128, clip_gradient_norm=1.0, num_epochs=10, starting_epoch=1, shuffle_each_epoch=True, collect_stats_frequency=1, adaptive_lr_config=None, standardize=True, randomize=False):
self.input_model_path = input_model_path
self.output_model_path = output_model_path
self.training_smiles_path = training_smiles_path
self.test_smiles_path = test_smiles_path
self.promiscuous_smiles_path = promiscuous_smiles_path
self.nonpromiscuous_smiles_path = nonpromiscuous_smiles_path
self.save_every_n_epochs = max(0, save_every_n_epochs)
self.batch_size = max(0, batch_size)
self.clip_gradient_norm = max(0.0, clip_gradient_norm)
self.num_epochs = max(num_epochs, 1)
self.starting_epoch = max(starting_epoch, 1)
self.shuffle_each_epoch = shuffle_each_epoch
self.collect_stats_frequency = collect_stats_frequency
self.adaptive_lr_config = adaptive_lr_config
self.standardize = standardize
self.randomize = randomize
|
artifact_db = \
{ 'adamantium': { 'level': 40,
'name': 'Adamantium',
'origin': 'Quest',
'tier': 3},
'ancient-essence': { 'level': 42,
'name': 'Ancient Essence',
'origin': 'Quest',
'tier': 3},
'burning-ember': { 'level': 8,
'name': 'Burning Ember',
'origin': 'Quest',
'tier': 1},
'dark-energy': { 'level': 34,
'name': 'Dark Energy',
'origin': 'Quest',
'tier': 3},
'demon-heart': { 'level': 32,
'name': 'Demon Heart',
'origin': 'Quest',
'tier': 3},
'dragon-scale': { 'level': 38,
'name': 'Dragon Scale',
'origin': 'Quest',
'tier': 3},
'elven-dew': { 'level': 3,
'name': 'Elven Dew',
'origin': 'Quest',
'tier': 1},
'frostfire-crystal': { 'level': 44,
'name': 'Frostfire Crystal',
'origin': 'Quest',
'tier': 3},
'frozen-core': { 'level': 18,
'name': 'Frozen Core',
'origin': 'Quest',
'tier': 2},
'golden-thread': { 'level': 30,
'name': 'Golden Thread',
'origin': 'Quest',
'tier': 2},
'iron-carapace': { 'level': 14,
'name': 'Iron Carapace',
'origin': 'Quest',
'tier': 1},
'iron-wood': { 'level': 6,
'name': 'Iron Wood',
'origin': 'Quest',
'tier': 1},
'liquid-fire': { 'level': 22,
'name': 'Liquid Fire',
'origin': 'Quest',
'tier': 2},
'moon-shard': { 'level': 12,
'name': 'Moon Shard',
'origin': 'Quest',
'tier': 1},
'obsidian-coral': { 'level': 46,
'name': 'Obsidian Coral',
'origin': 'Quest',
'tier': 3},
'phoenix-feather': { 'level': 28,
'name': 'Phoenix Feather',
'origin': 'Quest',
'tier': 2},
'primal-horn': { 'level': 50,
'name': 'Primal Horn',
'origin': 'City Raid',
'tier': 0},
'rainbow-dust': { 'level': 10,
'name': 'Rainbow Dust',
'origin': 'Quest',
'tier': 1},
'royal-bone': { 'level': 20,
'name': 'Royal Bone',
'origin': 'Quest',
'tier': 2},
'shard-of-gaia': { 'level': 48,
'name': 'Shard Of Gaia',
'origin': 'City Raid',
'tier': 0},
'shiny-gem': { 'level': 2,
'name': 'Shiny Gem',
'origin': 'Quest',
'tier': 1},
'silver-steel': { 'level': 26,
'name': 'Silver Steel',
'origin': 'Quest',
'tier': 2},
'sun-tear': { 'level': 36,
'name': 'Sun Tear',
'origin': 'Quest',
'tier': 3},
'viper-essence': { 'level': 4,
'name': 'Viper Essence',
'origin': 'Quest',
'tier': 1},
'wyvern-wing': { 'level': 16,
'name': 'Wyvern Wing',
'origin': 'Quest',
'tier': 1},
'yggdrasil-leaf': { 'level': 24,
'name': 'Yggdrasil Leaf',
'origin': 'Quest',
'tier': 2}}
|
artifact_db = {'adamantium': {'level': 40, 'name': 'Adamantium', 'origin': 'Quest', 'tier': 3}, 'ancient-essence': {'level': 42, 'name': 'Ancient Essence', 'origin': 'Quest', 'tier': 3}, 'burning-ember': {'level': 8, 'name': 'Burning Ember', 'origin': 'Quest', 'tier': 1}, 'dark-energy': {'level': 34, 'name': 'Dark Energy', 'origin': 'Quest', 'tier': 3}, 'demon-heart': {'level': 32, 'name': 'Demon Heart', 'origin': 'Quest', 'tier': 3}, 'dragon-scale': {'level': 38, 'name': 'Dragon Scale', 'origin': 'Quest', 'tier': 3}, 'elven-dew': {'level': 3, 'name': 'Elven Dew', 'origin': 'Quest', 'tier': 1}, 'frostfire-crystal': {'level': 44, 'name': 'Frostfire Crystal', 'origin': 'Quest', 'tier': 3}, 'frozen-core': {'level': 18, 'name': 'Frozen Core', 'origin': 'Quest', 'tier': 2}, 'golden-thread': {'level': 30, 'name': 'Golden Thread', 'origin': 'Quest', 'tier': 2}, 'iron-carapace': {'level': 14, 'name': 'Iron Carapace', 'origin': 'Quest', 'tier': 1}, 'iron-wood': {'level': 6, 'name': 'Iron Wood', 'origin': 'Quest', 'tier': 1}, 'liquid-fire': {'level': 22, 'name': 'Liquid Fire', 'origin': 'Quest', 'tier': 2}, 'moon-shard': {'level': 12, 'name': 'Moon Shard', 'origin': 'Quest', 'tier': 1}, 'obsidian-coral': {'level': 46, 'name': 'Obsidian Coral', 'origin': 'Quest', 'tier': 3}, 'phoenix-feather': {'level': 28, 'name': 'Phoenix Feather', 'origin': 'Quest', 'tier': 2}, 'primal-horn': {'level': 50, 'name': 'Primal Horn', 'origin': 'City Raid', 'tier': 0}, 'rainbow-dust': {'level': 10, 'name': 'Rainbow Dust', 'origin': 'Quest', 'tier': 1}, 'royal-bone': {'level': 20, 'name': 'Royal Bone', 'origin': 'Quest', 'tier': 2}, 'shard-of-gaia': {'level': 48, 'name': 'Shard Of Gaia', 'origin': 'City Raid', 'tier': 0}, 'shiny-gem': {'level': 2, 'name': 'Shiny Gem', 'origin': 'Quest', 'tier': 1}, 'silver-steel': {'level': 26, 'name': 'Silver Steel', 'origin': 'Quest', 'tier': 2}, 'sun-tear': {'level': 36, 'name': 'Sun Tear', 'origin': 'Quest', 'tier': 3}, 'viper-essence': {'level': 4, 'name': 'Viper Essence', 'origin': 'Quest', 'tier': 1}, 'wyvern-wing': {'level': 16, 'name': 'Wyvern Wing', 'origin': 'Quest', 'tier': 1}, 'yggdrasil-leaf': {'level': 24, 'name': 'Yggdrasil Leaf', 'origin': 'Quest', 'tier': 2}}
|
LOAD_DEMANDS = None
NUM_EPISODES = 1
NUM_K_PATHS = 1
NUM_CHANNELS = 1
NUM_DEMANDS = 10
MIN_FLOW_SIZE = 1 # 1
MAX_FLOW_SIZE = 100 # 100
MIN_NUM_OPS = 50 # 50 10 10
MAX_NUM_OPS = 200 # 200 7000 1000
C = 1.5 # 0.475 1.5
MIN_INTERARRIVAL = 1
MAX_INTERARRIVAL = 1e8
SLOT_SIZE = 1e3 # 0.2
MAX_FLOWS = 4 # None
MAX_TIME = 10e3 # None
ENDPOINT_LABEL = 'server'
ENDPOINT_LABELS = [ENDPOINT_LABEL+'_'+str(ep) for ep in range(12)]
# ENDPOINT_LABELS = None
PATH_FIGURES = '../figures/'
PATH_PICKLES = '../pickles/demand/tf_graphs/real/'
print('Demand config file imported.')
if ENDPOINT_LABELS is None:
print('Warning: ENDPOINTS left as None. Will need to provide own networkx \
graph with correct labelling. To avoid this, specify list of endpoint \
labels in config.py')
|
load_demands = None
num_episodes = 1
num_k_paths = 1
num_channels = 1
num_demands = 10
min_flow_size = 1
max_flow_size = 100
min_num_ops = 50
max_num_ops = 200
c = 1.5
min_interarrival = 1
max_interarrival = 100000000.0
slot_size = 1000.0
max_flows = 4
max_time = 10000.0
endpoint_label = 'server'
endpoint_labels = [ENDPOINT_LABEL + '_' + str(ep) for ep in range(12)]
path_figures = '../figures/'
path_pickles = '../pickles/demand/tf_graphs/real/'
print('Demand config file imported.')
if ENDPOINT_LABELS is None:
print('Warning: ENDPOINTS left as None. Will need to provide own networkx graph with correct labelling. To avoid this, specify list of endpoint labels in config.py')
|
# Copyright (c) 2017 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# Stub module containing the networking_cisco trunk APIs.
#
# TODO(rcurran): Remove once networking_cisco is no longer supporting
# stable/newton.
TRUNK_SUBPORT_OWNER = ""
VLAN = ""
ACTIVE_STATUS = ""
class SubPort(object):
@classmethod
def get_object(cls, context, *args):
return None
class TrunkObject(object):
@classmethod
def update(cls, **kargs):
pass
class Trunk(object):
@classmethod
def get_object(cls, context, **kargs):
return TrunkObject
class DriverBase(object):
def __init__(self, name, interfaces, segmentation_types,
agent_type=None, can_trunk_bound_port=False):
pass
|
trunk_subport_owner = ''
vlan = ''
active_status = ''
class Subport(object):
@classmethod
def get_object(cls, context, *args):
return None
class Trunkobject(object):
@classmethod
def update(cls, **kargs):
pass
class Trunk(object):
@classmethod
def get_object(cls, context, **kargs):
return TrunkObject
class Driverbase(object):
def __init__(self, name, interfaces, segmentation_types, agent_type=None, can_trunk_bound_port=False):
pass
|
class Matrix (object):
def __init__ (self, rows, cols, array=None):
super (Matrix, self).__init__ ()
length = rows * cols
self.rows = rows
self.cols = cols
if array:
if length != len (array):
raise RuntimeError ("Bad Dimensions")
self.array = array
else:
self.array = []
for i in range (length):
self.array.append (0)
diag = min (rows, cols)
for i in range (diag):
self.set (1.0, i, i)
def index (self, i, j):
element = (i * self.cols) + j
if element >= len (self.array):
raise RuntimeError ('Out of Bounds')
return element
def get (self, i, j):
return self.array [self.index (i, j)]
def set (self, entry, i, j):
self.array [self.index (i, j)] = entry
"""def __getattr__ (self, key):
if key == 'x':
return self.get (0, 0)
elif key == 'y':
return self.get (1, 0)
else:
raise AttributeError ('No such attribute')"""
def __setattr__ (self, key, value):
if key == 'x':
self.set (value, 0, 0)
elif key == 'y':
self.set (value, 1, 0)
else:
super (Matrix, self).__setattr__ (key, value)
def __str__ (self):
output = []
for i in range (self.rows):
out = []
for j in range (self.cols):
out.append (str (self.get (i, j)))
output.append (' '.join (out))
return '\n'.join (output)
def __neg__ (self):
negative = []
for element in self.array:
negative.append (-element)
return Matrix (self.rows, self.cols, negative)
def __isub__ (self, ob):
#ob = -ob
self.array = (self + (-ob)).array
return self
def __sub__ (self, ob):
return (self + (-ob))
def __iadd__ (self, ob):
if isinstance (ob, Matrix):
summation = self.matrixAddition (ob)
else:
summation = self.scalarAddition (ob)
self.array = summation
return self
def __add__ (self, ob):
if isinstance (ob, Matrix):
summation = self.matrixAddition (ob)
else:
summation = self.scalarAddition (ob)
return Matrix (self.rows, self.cols, summation)
def matrixAddition (self, matrix):
if self.rows != matrix.rows or self.cols != matrix.cols:
raise RuntimeError ('Mismatched Dimensions')
summation = []
for a, b in zip (self.array, matrix.array):
summation.append (a + b)
return summation
def scalarAddition (self, scalar):
summation = []
for element in self.array:
summation.append (element * scalar)
return summation
def __imul__ (self, ob):
raise RuntimeError ('Unsafe Operation')
def __mul__ (self, ob):
if isinstance (ob, Matrix):
return self.matrixMultiplication (ob)
else:
return self.scalarMultiplication (ob)
def matrixMultiplication (self, matrix):
if self.cols != matrix.rows:
raise RuntimeError ("Mismatched Dimensions")
product = Matrix (self.rows, matrix.cols)
for i in range (self.rows):
for j in range (matrix.cols):
total = 0
for k in range (self.cols):
total += self.get (i, k) * matrix.get (k, j)
product.set (total, i, j)
return product
def scalarMultiplication (self, scalar):
product = []
for element in self.array:
product.append (element * scalar)
return Matrix (self.rows, self.cols, product)
def vector (self):
if self.rows != 1:
raise RuntimeError ('Cannot be cast to vector: Bad row dim')
if self.cols != 3:
raise RuntimeError ('Cannot be cast to vector: Bad col dim')
x = self.get (0, 0)
y = self.get (1, 0)
w = self.get (2, 0)
v = Vector (x, y)
if w != 0:
v.x /= w
v.y /= w
return v
def identity (rows):
sqr = pow (rows, 2)
### Temp
### Should default to all 0s later
array = []
for i in range (sqr):
array.append (0)
### End Temp
m = Matrix (rows, rows, array)
for i in range (rows):
m.set (1, i, i)
return m
class Vector:
def __init__ (self, x, y):
self.x = x
self.y = y
def matrix (self):
return Matrix (3, 1, [self.x, self.y, 1.0])
def __add__ (self, v):
return Vector (self.x + v.x, self.y + v.y)
def __iadd__ (self, v):
self.x += v.x
self.y += v.y
return self
def __sub__ (self, v):
return Vector (self.x - v.x, self.y - v.y)
def __mul__ (self, scalar):
return Vector (self.x * scalar, self.y * scalar)
def __imul__ (self, scalar):
self.x *= scalar
self.y *= scalar
def __str__ (self):
return str(self.x) + ' ' + str(self.y)
def matrix (self, dir = False):
if dir:
dir = 0
else:
dir = 1
return Matrix (3, 1, [self.x, self.y, dir])
"""class VStruct:
def __init__ (self, x, y):
self.x = x
self.y = y"""
#class Vector2D (Matrix):
# def __init__ (self, x, y):
# super (Vector2D, self).__init__ (3, 1, [x, y, 1])
#
# def __getattr__ (self, key):
# if key == 'x':
# return self.get (0, 0)
# elif key == 'y':
# return self.get (1, 0)
# else:
# raise AttributeError ('No such attribute')
"""class Vector:
def __init__ (self, x, y):
self.x = x
self.y = y
def matrix (self):
return Matrix (3, 1, [self.x, self.y, 1.0])
def __add__ (self, v):
return Vector (self.x + v.x, self.y + v.y)
def __iadd__ (self, v):
self.x += v.x
self.y += v.y
return self
def __sub__ (self, v):
return Vector (self.x - v.x, self.y - v.y)
def __mul__ (self, scalar):
return Vector (self.x * scalar, self.y * scalar)
def __imul__ (self, scalar):
self.x *= scalar
self.y *= scalar
def __str__ (self):
return str(self.x) + ' ' + str(self.y)"""
|
class Matrix(object):
def __init__(self, rows, cols, array=None):
super(Matrix, self).__init__()
length = rows * cols
self.rows = rows
self.cols = cols
if array:
if length != len(array):
raise runtime_error('Bad Dimensions')
self.array = array
else:
self.array = []
for i in range(length):
self.array.append(0)
diag = min(rows, cols)
for i in range(diag):
self.set(1.0, i, i)
def index(self, i, j):
element = i * self.cols + j
if element >= len(self.array):
raise runtime_error('Out of Bounds')
return element
def get(self, i, j):
return self.array[self.index(i, j)]
def set(self, entry, i, j):
self.array[self.index(i, j)] = entry
"def __getattr__ (self, key):\n if key == 'x':\n return self.get (0, 0)\n elif key == 'y':\n return self.get (1, 0)\n else:\n raise AttributeError ('No such attribute')"
def __setattr__(self, key, value):
if key == 'x':
self.set(value, 0, 0)
elif key == 'y':
self.set(value, 1, 0)
else:
super(Matrix, self).__setattr__(key, value)
def __str__(self):
output = []
for i in range(self.rows):
out = []
for j in range(self.cols):
out.append(str(self.get(i, j)))
output.append(' '.join(out))
return '\n'.join(output)
def __neg__(self):
negative = []
for element in self.array:
negative.append(-element)
return matrix(self.rows, self.cols, negative)
def __isub__(self, ob):
self.array = (self + -ob).array
return self
def __sub__(self, ob):
return self + -ob
def __iadd__(self, ob):
if isinstance(ob, Matrix):
summation = self.matrixAddition(ob)
else:
summation = self.scalarAddition(ob)
self.array = summation
return self
def __add__(self, ob):
if isinstance(ob, Matrix):
summation = self.matrixAddition(ob)
else:
summation = self.scalarAddition(ob)
return matrix(self.rows, self.cols, summation)
def matrix_addition(self, matrix):
if self.rows != matrix.rows or self.cols != matrix.cols:
raise runtime_error('Mismatched Dimensions')
summation = []
for (a, b) in zip(self.array, matrix.array):
summation.append(a + b)
return summation
def scalar_addition(self, scalar):
summation = []
for element in self.array:
summation.append(element * scalar)
return summation
def __imul__(self, ob):
raise runtime_error('Unsafe Operation')
def __mul__(self, ob):
if isinstance(ob, Matrix):
return self.matrixMultiplication(ob)
else:
return self.scalarMultiplication(ob)
def matrix_multiplication(self, matrix):
if self.cols != matrix.rows:
raise runtime_error('Mismatched Dimensions')
product = matrix(self.rows, matrix.cols)
for i in range(self.rows):
for j in range(matrix.cols):
total = 0
for k in range(self.cols):
total += self.get(i, k) * matrix.get(k, j)
product.set(total, i, j)
return product
def scalar_multiplication(self, scalar):
product = []
for element in self.array:
product.append(element * scalar)
return matrix(self.rows, self.cols, product)
def vector(self):
if self.rows != 1:
raise runtime_error('Cannot be cast to vector: Bad row dim')
if self.cols != 3:
raise runtime_error('Cannot be cast to vector: Bad col dim')
x = self.get(0, 0)
y = self.get(1, 0)
w = self.get(2, 0)
v = vector(x, y)
if w != 0:
v.x /= w
v.y /= w
return v
def identity(rows):
sqr = pow(rows, 2)
array = []
for i in range(sqr):
array.append(0)
m = matrix(rows, rows, array)
for i in range(rows):
m.set(1, i, i)
return m
class Vector:
def __init__(self, x, y):
self.x = x
self.y = y
def matrix(self):
return matrix(3, 1, [self.x, self.y, 1.0])
def __add__(self, v):
return vector(self.x + v.x, self.y + v.y)
def __iadd__(self, v):
self.x += v.x
self.y += v.y
return self
def __sub__(self, v):
return vector(self.x - v.x, self.y - v.y)
def __mul__(self, scalar):
return vector(self.x * scalar, self.y * scalar)
def __imul__(self, scalar):
self.x *= scalar
self.y *= scalar
def __str__(self):
return str(self.x) + ' ' + str(self.y)
def matrix(self, dir=False):
if dir:
dir = 0
else:
dir = 1
return matrix(3, 1, [self.x, self.y, dir])
'class VStruct:\n def __init__ (self, x, y):\n self.x = x\n self.y = y'
"class Vector:\n def __init__ (self, x, y):\n self.x = x\n self.y = y\n\n def matrix (self):\n return Matrix (3, 1, [self.x, self.y, 1.0])\n\n def __add__ (self, v):\n return Vector (self.x + v.x, self.y + v.y)\n\n def __iadd__ (self, v):\n self.x += v.x\n self.y += v.y\n return self\n\n def __sub__ (self, v):\n return Vector (self.x - v.x, self.y - v.y)\n\n def __mul__ (self, scalar):\n return Vector (self.x * scalar, self.y * scalar)\n\n def __imul__ (self, scalar):\n self.x *= scalar\n self.y *= scalar\n\n def __str__ (self):\n return str(self.x) + ' ' + str(self.y)"
|
# Image/video streams
PATH_IMAGE_SNAPSHOT = '/img/snapshot.cgi'
PATH_IMAGE_MJPEG = '/img/video.mjpeg'
PATH_IMAGE_RTSP = '/img/media.sav'
# PTZ Control
PATH_PAN_TILT = '/pt/ptctrl.cgi'
PARAM_PAN_TILT_DIRECTIONS = ('U', 'D', 'L', 'R', 'UL', 'UR', 'DL', 'DR')
# Configuration Groups
PATH_GET_GROUP = '/adm/get_group.cgi'
PATH_SET_GROUP = '/adm/set_group.cgi'
# System info
PATH_INFO_STATUS = '/util/query.cgi?extension=yes'
PATH_INFO_VERSIONS = '/adm/sysinfo.cgi'
# Telnetd backdoor
PATH_TELNETD = '/adm/file.cgi?todo=inject_telnetd'
USER_TELNETD = 'root'
PASS_TELNETD = 'Aq0+0009'
# Possible event triggers
EVENT_TRIGGERS = ['in1', 'in2', 'mt', 'pir', 'httpc', 'audio']
|
path_image_snapshot = '/img/snapshot.cgi'
path_image_mjpeg = '/img/video.mjpeg'
path_image_rtsp = '/img/media.sav'
path_pan_tilt = '/pt/ptctrl.cgi'
param_pan_tilt_directions = ('U', 'D', 'L', 'R', 'UL', 'UR', 'DL', 'DR')
path_get_group = '/adm/get_group.cgi'
path_set_group = '/adm/set_group.cgi'
path_info_status = '/util/query.cgi?extension=yes'
path_info_versions = '/adm/sysinfo.cgi'
path_telnetd = '/adm/file.cgi?todo=inject_telnetd'
user_telnetd = 'root'
pass_telnetd = 'Aq0+0009'
event_triggers = ['in1', 'in2', 'mt', 'pir', 'httpc', 'audio']
|
#######################################
# Computes the proper motion distance #
#######################################
def PropMotion(M1,L1,K1,function,p):
if p == 1:
file = open(function+'_'+str(M1)+'_'+str(L1)+'.txt','wt')
PropD = []
x =[]
a=0
if (L1 == 0.0):
for z in drange(0,5,0.1):
x.append(z)
PropD.append(2.0*(2.0-M1*(1.0-z)-(2.0-M1)*math.sqrt(1.0+M1*z))/(math.pow(M1,2)*(1.0+z)))
if p ==1:
file.writelines(str(z)+" "+str(PropD[a])+"\n")
a+=1
plot(x,PropD)
else:
args = (M1,L1,K1)
for z in drange(0,5,0.1):
x.append(z)
result, err = integrate.quad(E_z,0,z,args)
PropD.append(result)
if p ==1:
file.writelines(str(z)+" "+str(result)+"\n")
plot(x,PropD)
if p ==1:
file.close
ylabel('Proper Motion Distance $D_m/D_h$')
xlabel('Redshift z')
if p!= 1:
show()
|
def prop_motion(M1, L1, K1, function, p):
if p == 1:
file = open(function + '_' + str(M1) + '_' + str(L1) + '.txt', 'wt')
prop_d = []
x = []
a = 0
if L1 == 0.0:
for z in drange(0, 5, 0.1):
x.append(z)
PropD.append(2.0 * (2.0 - M1 * (1.0 - z) - (2.0 - M1) * math.sqrt(1.0 + M1 * z)) / (math.pow(M1, 2) * (1.0 + z)))
if p == 1:
file.writelines(str(z) + ' ' + str(PropD[a]) + '\n')
a += 1
plot(x, PropD)
else:
args = (M1, L1, K1)
for z in drange(0, 5, 0.1):
x.append(z)
(result, err) = integrate.quad(E_z, 0, z, args)
PropD.append(result)
if p == 1:
file.writelines(str(z) + ' ' + str(result) + '\n')
plot(x, PropD)
if p == 1:
file.close
ylabel('Proper Motion Distance $D_m/D_h$')
xlabel('Redshift z')
if p != 1:
show()
|
# '''
# https://practice.geeksforgeeks.org/problems/next-larger-element/0
# '''
# x = [8,7,3,2,4,9,5,4,6]
# i = len(x)-1
# stack = []
# ans = [None] * len(x)
# def isempty(st):
# if len(st) == 0:
# return True
# else:
# return False
# while(i>=0):
# if not isempty(stack):
# top = stack[-1]
# prev = x[i]
# while(len(stack) > 0 and top<=prev):
# stack.pop()
# if(isempty(stack)):
# break
# top = stack[-1]
# if(isempty(stack)):
# ans[i] = -1
# else:
# ans[i] = stack[-1]
# stack.append(x[i])
# i -= 1
# print (ans)
def isempty(s):
if len(s) == 0:
return True
else:
return False
def getsolution(x):
i = len(x)-1
stack = []
solution = [None]*len(x)
while(i>=0):
if not len(stack) == 0:
top = stack[-1]
prev = x[i]
while(len(stack)>0 and top<=prev):
stack.pop()
if len(stack) == 0:
break
top = stack[-1]
if len(stack) == 0:
solution[i] = -1
else:
solution[i] = stack[-1]
stack.append(x[i])
i -= 1
return solution
# return solution
t = int(input())
while(t !=0):
N = int(input())
x = list(map(int,input().strip(' ').split(' ')))
solution = getsolution(x)
print (*solution)
t = t-1
|
def isempty(s):
if len(s) == 0:
return True
else:
return False
def getsolution(x):
i = len(x) - 1
stack = []
solution = [None] * len(x)
while i >= 0:
if not len(stack) == 0:
top = stack[-1]
prev = x[i]
while len(stack) > 0 and top <= prev:
stack.pop()
if len(stack) == 0:
break
top = stack[-1]
if len(stack) == 0:
solution[i] = -1
else:
solution[i] = stack[-1]
stack.append(x[i])
i -= 1
return solution
t = int(input())
while t != 0:
n = int(input())
x = list(map(int, input().strip(' ').split(' ')))
solution = getsolution(x)
print(*solution)
t = t - 1
|
def areYouPlayingBanjo(name):
# Implement me!
if (name.startswith("R") |name.startswith("r") ):
return name + " "+"plays banjo"
else:
return name +" "+ "does not play banjo"
# return name
def areYouPlayingBanjo2(name):
return name + (' plays' if name[0].lower() == 'r' else ' does not play') + " banjo";
|
def are_you_playing_banjo(name):
if name.startswith('R') | name.startswith('r'):
return name + ' ' + 'plays banjo'
else:
return name + ' ' + 'does not play banjo'
def are_you_playing_banjo2(name):
return name + (' plays' if name[0].lower() == 'r' else ' does not play') + ' banjo'
|
class settings:
DATABASE = {
'test': {
'url': 'postgresql://admin:password@localhost:5432/test'
}
}
|
class Settings:
database = {'test': {'url': 'postgresql://admin:password@localhost:5432/test'}}
|
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Grad op is not registered for Ops in EMPTY_GRAD_OP_LIST, so check grad
# will not be required.
EMPTY_GRAD_OP_LIST = [
'fill_zeros_like2', 'gaussian_random_batch_size_like',
'fill_constant_batch_size_like', 'iou_similarity', 'where',
'uniform_random_batch_size_like', 'box_coder', 'equal', 'greater_equal',
'greater_than', 'less_equal', 'sequence_enumerate', 'logical_and',
'logical_not', 'logical_or', 'logical_xor', 'unique',
'fusion_seqconv_eltadd_relu', 'prior_box', 'decayed_adagrad',
'crf_decoding', 'mine_hard_examples', 'fusion_seqpool_concat',
'fused_embedding_fc_lstm', 'top_k', 'uniform_random', 'multihead_matmul',
'edit_distance', 'shard_index', 'generate_proposals', 'density_prior_box',
'round', 'floor', 'ceil', 'precision_recall', 'proximal_adagrad', 'cast',
'isinf', 'isfinite', 'isnan', 'fill_constant', 'fusion_seqpool_cvm_concat',
'accuracy', 'fc', 'sgd', 'anchor_generator',
'fake_channel_wise_quantize_abs_max',
'fake_quantize_dequantize_moving_average_abs_max', 'fake_quantize_abs_max',
'fake_quantize_range_abs_max', 'moving_average_abs_max_scale',
'fake_quantize_moving_average_abs_max', 'fill_any_like', 'one_hot',
'gather_tree', 'lookup_sparse_table', 'lamb', 'fusion_squared_mat_sub',
'range', 'box_decoder_and_assign', 'one_hot_v2', 'shape',
'fusion_transpose_flatten_concat', 'lars_momentum', 'momentum',
'fusion_lstm', 'assign_value', 'polygon_box_transform',
'retinanet_detection_output', 'generate_proposal_labels', 'ctc_align',
'sequence_erase', 'fake_channel_wise_dequantize_max_abs',
'fake_dequantize_max_abs', 'generate_mask_labels', 'elementwise_floordiv',
'sum', 'ftrl', 'fusion_repeated_fc_relu', 'size', 'bipartite_match',
'elementwise_mod', 'multiclass_nms2', 'multiclass_nms', 'fill_zeros_like',
'adadelta', 'conv2d_fusion', 'adamax', 'sampling_id', 'dpsgd',
'target_assign', 'random_crop', 'mean_iou', 'reduce_all', 'reduce_any',
'attention_lstm', 'fusion_seqexpand_concat_fc', 'dequantize_abs_max',
'clip_by_norm', 'diag', 'yolo_box', 'adam', 'fusion_gru',
'locality_aware_nms', 'ref_by_trainer_id', 'linspace', 'box_clip',
'similarity_focus', 'detection_map', 'sequence_mask', 'coalesce_tensor',
'arg_min', 'arg_max', 'split_ids', 'adagrad', 'fill', 'argsort',
'dequantize', 'merge_ids', 'fused_fc_elementwise_layernorm',
'retinanet_target_assign', 'rpn_target_assign', 'requantize',
'distribute_fpn_proposals', 'auc', 'quantize', 'positive_negative_pair',
'hash', 'less_than', 'not_equal', 'eye', 'chunk_eval', 'is_empty',
'proximal_gd', 'collect_fpn_proposals', 'unique_with_counts', 'seed'
]
|
empty_grad_op_list = ['fill_zeros_like2', 'gaussian_random_batch_size_like', 'fill_constant_batch_size_like', 'iou_similarity', 'where', 'uniform_random_batch_size_like', 'box_coder', 'equal', 'greater_equal', 'greater_than', 'less_equal', 'sequence_enumerate', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'unique', 'fusion_seqconv_eltadd_relu', 'prior_box', 'decayed_adagrad', 'crf_decoding', 'mine_hard_examples', 'fusion_seqpool_concat', 'fused_embedding_fc_lstm', 'top_k', 'uniform_random', 'multihead_matmul', 'edit_distance', 'shard_index', 'generate_proposals', 'density_prior_box', 'round', 'floor', 'ceil', 'precision_recall', 'proximal_adagrad', 'cast', 'isinf', 'isfinite', 'isnan', 'fill_constant', 'fusion_seqpool_cvm_concat', 'accuracy', 'fc', 'sgd', 'anchor_generator', 'fake_channel_wise_quantize_abs_max', 'fake_quantize_dequantize_moving_average_abs_max', 'fake_quantize_abs_max', 'fake_quantize_range_abs_max', 'moving_average_abs_max_scale', 'fake_quantize_moving_average_abs_max', 'fill_any_like', 'one_hot', 'gather_tree', 'lookup_sparse_table', 'lamb', 'fusion_squared_mat_sub', 'range', 'box_decoder_and_assign', 'one_hot_v2', 'shape', 'fusion_transpose_flatten_concat', 'lars_momentum', 'momentum', 'fusion_lstm', 'assign_value', 'polygon_box_transform', 'retinanet_detection_output', 'generate_proposal_labels', 'ctc_align', 'sequence_erase', 'fake_channel_wise_dequantize_max_abs', 'fake_dequantize_max_abs', 'generate_mask_labels', 'elementwise_floordiv', 'sum', 'ftrl', 'fusion_repeated_fc_relu', 'size', 'bipartite_match', 'elementwise_mod', 'multiclass_nms2', 'multiclass_nms', 'fill_zeros_like', 'adadelta', 'conv2d_fusion', 'adamax', 'sampling_id', 'dpsgd', 'target_assign', 'random_crop', 'mean_iou', 'reduce_all', 'reduce_any', 'attention_lstm', 'fusion_seqexpand_concat_fc', 'dequantize_abs_max', 'clip_by_norm', 'diag', 'yolo_box', 'adam', 'fusion_gru', 'locality_aware_nms', 'ref_by_trainer_id', 'linspace', 'box_clip', 'similarity_focus', 'detection_map', 'sequence_mask', 'coalesce_tensor', 'arg_min', 'arg_max', 'split_ids', 'adagrad', 'fill', 'argsort', 'dequantize', 'merge_ids', 'fused_fc_elementwise_layernorm', 'retinanet_target_assign', 'rpn_target_assign', 'requantize', 'distribute_fpn_proposals', 'auc', 'quantize', 'positive_negative_pair', 'hash', 'less_than', 'not_equal', 'eye', 'chunk_eval', 'is_empty', 'proximal_gd', 'collect_fpn_proposals', 'unique_with_counts', 'seed']
|
"""
Given a sorted array of n distinct integers where each integer is in the range
from 0 to m-1 and m > n. Find the smallest number that is missing from the array.
"""
def smallest_missing(arr: list) -> int:
"""
A modified version of binary search can be applied.
If the number mid index == value, then the missing value
is on the right, else on the left side.
Time Complexity: O(log(n))
"""
beg, end = 0, len(arr) - 1
while beg <= end:
if arr[beg] != beg:
return beg
m = (beg + end) >> 1
if arr[m] == m:
beg = m + 1
else:
end = m - 1
return end + 1
if __name__ == "__main__":
print(smallest_missing([]))
print(smallest_missing([0]))
print(smallest_missing([0, 1, 2, 3, 4, 5, 6, 7, 9, 10]))
print(smallest_missing([0, 2, 3, 4, 5, 6, 7, 8, 9, 10]))
print(smallest_missing([0, 1, 3, 4, 5, 6, 7, 8, 9, 10]))
print(smallest_missing([0, 1, 2, 3, 5, 6, 7, 8, 9, 10]))
|
"""
Given a sorted array of n distinct integers where each integer is in the range
from 0 to m-1 and m > n. Find the smallest number that is missing from the array.
"""
def smallest_missing(arr: list) -> int:
"""
A modified version of binary search can be applied.
If the number mid index == value, then the missing value
is on the right, else on the left side.
Time Complexity: O(log(n))
"""
(beg, end) = (0, len(arr) - 1)
while beg <= end:
if arr[beg] != beg:
return beg
m = beg + end >> 1
if arr[m] == m:
beg = m + 1
else:
end = m - 1
return end + 1
if __name__ == '__main__':
print(smallest_missing([]))
print(smallest_missing([0]))
print(smallest_missing([0, 1, 2, 3, 4, 5, 6, 7, 9, 10]))
print(smallest_missing([0, 2, 3, 4, 5, 6, 7, 8, 9, 10]))
print(smallest_missing([0, 1, 3, 4, 5, 6, 7, 8, 9, 10]))
print(smallest_missing([0, 1, 2, 3, 5, 6, 7, 8, 9, 10]))
|
# Chest in the Lord Pirate PQ
LORD_PIRATE_ENRAGED_KRU = 9300115
LORD_PIRATE_ENRAGED_CAPTAIN = 9300116
reactor.incHitCount()
if reactor.getHitCount() >= 1:
i = 1
while i < 5:
sm.spawnMob(LORD_PIRATE_ENRAGED_KRU, sm.getPosition(objectID).getX(), sm.getPosition(objectID).getY(), False)
sm.spawnMob(LORD_PIRATE_ENRAGED_CAPTAIN, sm.getPosition(objectID).getX(), sm.getPosition(objectID).getY(), False)
i += 1
sm.removeReactor()
sm.dispose()
|
lord_pirate_enraged_kru = 9300115
lord_pirate_enraged_captain = 9300116
reactor.incHitCount()
if reactor.getHitCount() >= 1:
i = 1
while i < 5:
sm.spawnMob(LORD_PIRATE_ENRAGED_KRU, sm.getPosition(objectID).getX(), sm.getPosition(objectID).getY(), False)
sm.spawnMob(LORD_PIRATE_ENRAGED_CAPTAIN, sm.getPosition(objectID).getX(), sm.getPosition(objectID).getY(), False)
i += 1
sm.removeReactor()
sm.dispose()
|
# %% [markdown]
# # 8 - Collections
# %% [markdown]
# #### 1 - Lists
# %%
# Declare and assign the names
names = ["John", "Paul", "George"]
# Print the list of names
print(names)
# Add a new name
names.append("Jane")
# Declare and ass the scores
numbers = [100, 80, 90]
# Print the scores
print(numbers)
# Add a new score
numbers.append(70)
# Create a list of numbers and names
my_list = [100, 90, 80, "John", "Jane"]
# Print my_list
print(my_list)
# Add a new name
my_list.append("Paul")
# Add a new number
my_list.append(70)
# Print my_list
print(my_list)
# sorting a list will not work if the list contains more than 1 type of data
#my_list.sort()
numbers = numbers.sort()
print(numbers)
names.sort()
print(names)
# %% [markdown]
# #### 2 - Arrays
#
# Arrays can only contain one type of data
# %%
# Declare and create an array of numbers
numbers = [2, 6, 5, 4, 3]
# Print numbers
print(numbers)
# Add a new number
numbers.append(1)
# Print numbers
print(numbers)
# Declare and assign the names
names = ["John", "Paul", "George"]
# Insert a new value in the list
names.insert(1, "Pauline") # Insert Pauline at index 1 and move the others to the right
print(names)
# Get the length of the list
print(len(names))
# %% [markdown]
# #### 3 - Common operations
# %%
# Declare and create an array of numbers
numbers = [2, 6, 5, 4, 3]
# Sort the numbers and save it in the same variable
print(sorted(numbers))
numbers.sort(reverse=False)
print(numbers)
# print number at index 1
print(numbers[1])
# Print a range of numbers
print(numbers[1:3])
print(numbers[:3])
print(numbers[1:])
# %% [markdown]
# #### 4 - Dictionaries
# %%
# Create a person dictionary
person = { "first_name": "John", "last_name": "Doe", "age": 30, "city": "Beirut", "country": "Lebabon" }
# Print the first name of the person
print(person["first_name"])
# %%
# Tuples
# Tuples are immutable
# Once assigned they cannot be changed
my_tuple = ("John", "Paul", 2)
print(my_tuple)
# %%
|
names = ['John', 'Paul', 'George']
print(names)
names.append('Jane')
numbers = [100, 80, 90]
print(numbers)
numbers.append(70)
my_list = [100, 90, 80, 'John', 'Jane']
print(my_list)
my_list.append('Paul')
my_list.append(70)
print(my_list)
numbers = numbers.sort()
print(numbers)
names.sort()
print(names)
numbers = [2, 6, 5, 4, 3]
print(numbers)
numbers.append(1)
print(numbers)
names = ['John', 'Paul', 'George']
names.insert(1, 'Pauline')
print(names)
print(len(names))
numbers = [2, 6, 5, 4, 3]
print(sorted(numbers))
numbers.sort(reverse=False)
print(numbers)
print(numbers[1])
print(numbers[1:3])
print(numbers[:3])
print(numbers[1:])
person = {'first_name': 'John', 'last_name': 'Doe', 'age': 30, 'city': 'Beirut', 'country': 'Lebabon'}
print(person['first_name'])
my_tuple = ('John', 'Paul', 2)
print(my_tuple)
|
class MarathonError(Exception):
pass
class MarathonHttpError(MarathonError):
def __init__(self, response):
"""
:param :class:`requests.Response` response: HTTP response
"""
content = response.json()
self.status_code = response.status_code
self.error_message = content.get('message')
super(MarathonHttpError, self).__init__(self.__str__())
def __repr__(self):
return 'MarathonHttpError: HTTP %s returned with message, "%s"' % \
(self.status_code, self.error_message)
def __str__(self):
return self.__repr__()
class NotFoundError(MarathonHttpError):
pass
class InternalServerError(MarathonHttpError):
pass
class InvalidChoiceError(MarathonError):
def __init__(self, param, value, options):
super(InvalidChoiceError, self).__init__(
'Invalid choice "{value}" for param "{param}". Must be one of {options}'.format(
param=param, value=value, options=options
)
)
|
class Marathonerror(Exception):
pass
class Marathonhttperror(MarathonError):
def __init__(self, response):
"""
:param :class:`requests.Response` response: HTTP response
"""
content = response.json()
self.status_code = response.status_code
self.error_message = content.get('message')
super(MarathonHttpError, self).__init__(self.__str__())
def __repr__(self):
return 'MarathonHttpError: HTTP %s returned with message, "%s"' % (self.status_code, self.error_message)
def __str__(self):
return self.__repr__()
class Notfounderror(MarathonHttpError):
pass
class Internalservererror(MarathonHttpError):
pass
class Invalidchoiceerror(MarathonError):
def __init__(self, param, value, options):
super(InvalidChoiceError, self).__init__('Invalid choice "{value}" for param "{param}". Must be one of {options}'.format(param=param, value=value, options=options))
|
"""Utils for photos_time_warp"""
def pluralize(count, singular, plural):
"""Return singular or plural based on count"""
if count == 1:
return singular
else:
return plural
def noop(*args, **kwargs):
"""No-op function for use as verbose if verbose not set"""
pass
def red(msg: str) -> str:
"""Return red string in rich markdown"""
return f"[red]{msg}[/red]"
def green(msg: str) -> str:
"""Return green string in rich markdown"""
return f"[green]{msg}[/green]"
|
"""Utils for photos_time_warp"""
def pluralize(count, singular, plural):
"""Return singular or plural based on count"""
if count == 1:
return singular
else:
return plural
def noop(*args, **kwargs):
"""No-op function for use as verbose if verbose not set"""
pass
def red(msg: str) -> str:
"""Return red string in rich markdown"""
return f'[red]{msg}[/red]'
def green(msg: str) -> str:
"""Return green string in rich markdown"""
return f'[green]{msg}[/green]'
|
class NLPData(object):
def __init__(self, sentences):
"""
:type sentences: list[str]
"""
self.__sentences = sentences
@property
def sentences(self):
return self.__sentences
|
class Nlpdata(object):
def __init__(self, sentences):
"""
:type sentences: list[str]
"""
self.__sentences = sentences
@property
def sentences(self):
return self.__sentences
|
getObject = {
'id': 37401,
'memoryCapacity': 242,
'modifyDate': '',
'name': 'test-dedicated',
'diskCapacity': 1200,
'createDate': '2017-10-16T12:50:23-05:00',
'cpuCount': 56,
'accountId': 1199911
}
getAvailableRouters = [
{'hostname': 'bcr01a.dal05', 'id': 12345},
{'hostname': 'bcr02a.dal05', 'id': 12346},
{'hostname': 'bcr03a.dal05', 'id': 12347},
{'hostname': 'bcr04a.dal05', 'id': 12348}
]
getObjectById = {
'datacenter': {
'id': 12345,
'name': 'dal05',
'longName': 'Dallas 5'
},
'memoryCapacity': 242,
'modifyDate': '2017-11-06T11:38:20-06:00',
'name': 'test-dedicated',
'diskCapacity': 1200,
'backendRouter': {
'domain': 'test.com',
'hostname': 'bcr01a.dal05',
'id': 12345
},
'guestCount': 1,
'cpuCount': 56,
'guests': [{
'domain': 'test.com',
'hostname': 'test-dedicated',
'id': 12345,
'uuid': 'F9329795-4220-4B0A-B970-C86B950667FA'
}],
'billingItem': {
'nextInvoiceTotalRecurringAmount': 1515.556,
'orderItem': {
'id': 12345,
'order': {
'status': 'APPROVED',
'privateCloudOrderFlag': False,
'modifyDate': '2017-11-02T11:42:50-07:00',
'orderQuoteId': '',
'userRecordId': 12345,
'createDate': '2017-11-02T11:40:56-07:00',
'impersonatingUserRecordId': '',
'orderTypeId': 7,
'presaleEventId': '',
'userRecord': {
'username': 'test-dedicated'
},
'id': 12345,
'accountId': 12345
}
},
'id': 12345,
'children': [
{
'nextInvoiceTotalRecurringAmount': 0.0,
'categoryCode': 'dedicated_host_ram'
},
{
'nextInvoiceTotalRecurringAmount': 0.0,
'categoryCode': 'dedicated_host_disk'
}
]
},
'id': 12345,
'createDate': '2017-11-02T11:40:56-07:00'
}
deleteObject = True
getGuests = [{
'id': 200,
'hostname': 'vs-test1',
'domain': 'test.sftlyr.ws',
'fullyQualifiedDomainName': 'vs-test1.test.sftlyr.ws',
'status': {'keyName': 'ACTIVE', 'name': 'Active'},
'datacenter': {'id': 50, 'name': 'TEST00',
'description': 'Test Data Center'},
'powerState': {'keyName': 'RUNNING', 'name': 'Running'},
'maxCpu': 2,
'maxMemory': 1024,
'primaryIpAddress': '172.16.240.2',
'globalIdentifier': '1a2b3c-1701',
'primaryBackendIpAddress': '10.45.19.37',
'hourlyBillingFlag': False,
'billingItem': {
'id': 6327,
'recurringFee': 1.54,
'orderItem': {
'order': {
'userRecord': {
'username': 'chechu',
}
}
}
},
}, {
'id': 202,
'hostname': 'vs-test2',
'domain': 'test.sftlyr.ws',
'fullyQualifiedDomainName': 'vs-test2.test.sftlyr.ws',
'status': {'keyName': 'ACTIVE', 'name': 'Active'},
'datacenter': {'id': 50, 'name': 'TEST00',
'description': 'Test Data Center'},
'powerState': {'keyName': 'RUNNING', 'name': 'Running'},
'maxCpu': 4,
'maxMemory': 4096,
'primaryIpAddress': '172.16.240.7',
'globalIdentifier': '05a8ac-6abf0',
'primaryBackendIpAddress': '10.45.19.35',
'hourlyBillingFlag': True,
'billingItem': {
'id': 6327,
'recurringFee': 1.54,
'orderItem': {
'order': {
'userRecord': {
'username': 'chechu',
}
}
}
}
}]
|
get_object = {'id': 37401, 'memoryCapacity': 242, 'modifyDate': '', 'name': 'test-dedicated', 'diskCapacity': 1200, 'createDate': '2017-10-16T12:50:23-05:00', 'cpuCount': 56, 'accountId': 1199911}
get_available_routers = [{'hostname': 'bcr01a.dal05', 'id': 12345}, {'hostname': 'bcr02a.dal05', 'id': 12346}, {'hostname': 'bcr03a.dal05', 'id': 12347}, {'hostname': 'bcr04a.dal05', 'id': 12348}]
get_object_by_id = {'datacenter': {'id': 12345, 'name': 'dal05', 'longName': 'Dallas 5'}, 'memoryCapacity': 242, 'modifyDate': '2017-11-06T11:38:20-06:00', 'name': 'test-dedicated', 'diskCapacity': 1200, 'backendRouter': {'domain': 'test.com', 'hostname': 'bcr01a.dal05', 'id': 12345}, 'guestCount': 1, 'cpuCount': 56, 'guests': [{'domain': 'test.com', 'hostname': 'test-dedicated', 'id': 12345, 'uuid': 'F9329795-4220-4B0A-B970-C86B950667FA'}], 'billingItem': {'nextInvoiceTotalRecurringAmount': 1515.556, 'orderItem': {'id': 12345, 'order': {'status': 'APPROVED', 'privateCloudOrderFlag': False, 'modifyDate': '2017-11-02T11:42:50-07:00', 'orderQuoteId': '', 'userRecordId': 12345, 'createDate': '2017-11-02T11:40:56-07:00', 'impersonatingUserRecordId': '', 'orderTypeId': 7, 'presaleEventId': '', 'userRecord': {'username': 'test-dedicated'}, 'id': 12345, 'accountId': 12345}}, 'id': 12345, 'children': [{'nextInvoiceTotalRecurringAmount': 0.0, 'categoryCode': 'dedicated_host_ram'}, {'nextInvoiceTotalRecurringAmount': 0.0, 'categoryCode': 'dedicated_host_disk'}]}, 'id': 12345, 'createDate': '2017-11-02T11:40:56-07:00'}
delete_object = True
get_guests = [{'id': 200, 'hostname': 'vs-test1', 'domain': 'test.sftlyr.ws', 'fullyQualifiedDomainName': 'vs-test1.test.sftlyr.ws', 'status': {'keyName': 'ACTIVE', 'name': 'Active'}, 'datacenter': {'id': 50, 'name': 'TEST00', 'description': 'Test Data Center'}, 'powerState': {'keyName': 'RUNNING', 'name': 'Running'}, 'maxCpu': 2, 'maxMemory': 1024, 'primaryIpAddress': '172.16.240.2', 'globalIdentifier': '1a2b3c-1701', 'primaryBackendIpAddress': '10.45.19.37', 'hourlyBillingFlag': False, 'billingItem': {'id': 6327, 'recurringFee': 1.54, 'orderItem': {'order': {'userRecord': {'username': 'chechu'}}}}}, {'id': 202, 'hostname': 'vs-test2', 'domain': 'test.sftlyr.ws', 'fullyQualifiedDomainName': 'vs-test2.test.sftlyr.ws', 'status': {'keyName': 'ACTIVE', 'name': 'Active'}, 'datacenter': {'id': 50, 'name': 'TEST00', 'description': 'Test Data Center'}, 'powerState': {'keyName': 'RUNNING', 'name': 'Running'}, 'maxCpu': 4, 'maxMemory': 4096, 'primaryIpAddress': '172.16.240.7', 'globalIdentifier': '05a8ac-6abf0', 'primaryBackendIpAddress': '10.45.19.35', 'hourlyBillingFlag': True, 'billingItem': {'id': 6327, 'recurringFee': 1.54, 'orderItem': {'order': {'userRecord': {'username': 'chechu'}}}}}]
|
class FileSystemAuditRule(AuditRule):
"""
Represents an abstraction of an access control entry (ACE) that defines an audit rule for a file or directory. This class cannot be inherited.
FileSystemAuditRule(identity: IdentityReference,fileSystemRights: FileSystemRights,flags: AuditFlags)
FileSystemAuditRule(identity: IdentityReference,fileSystemRights: FileSystemRights,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags)
FileSystemAuditRule(identity: str,fileSystemRights: FileSystemRights,flags: AuditFlags)
FileSystemAuditRule(identity: str,fileSystemRights: FileSystemRights,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags)
"""
@staticmethod
def __new__(self,identity,fileSystemRights,*__args):
"""
__new__(cls: type,identity: IdentityReference,fileSystemRights: FileSystemRights,flags: AuditFlags)
__new__(cls: type,identity: IdentityReference,fileSystemRights: FileSystemRights,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags)
__new__(cls: type,identity: str,fileSystemRights: FileSystemRights,flags: AuditFlags)
__new__(cls: type,identity: str,fileSystemRights: FileSystemRights,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags)
"""
pass
AccessMask=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the access mask for this rule.
"""
FileSystemRights=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the System.Security.AccessControl.FileSystemRights flags associated with the current System.Security.AccessControl.FileSystemAuditRule object.
Get: FileSystemRights(self: FileSystemAuditRule) -> FileSystemRights
"""
|
class Filesystemauditrule(AuditRule):
"""
Represents an abstraction of an access control entry (ACE) that defines an audit rule for a file or directory. This class cannot be inherited.
FileSystemAuditRule(identity: IdentityReference,fileSystemRights: FileSystemRights,flags: AuditFlags)
FileSystemAuditRule(identity: IdentityReference,fileSystemRights: FileSystemRights,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags)
FileSystemAuditRule(identity: str,fileSystemRights: FileSystemRights,flags: AuditFlags)
FileSystemAuditRule(identity: str,fileSystemRights: FileSystemRights,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags)
"""
@staticmethod
def __new__(self, identity, fileSystemRights, *__args):
"""
__new__(cls: type,identity: IdentityReference,fileSystemRights: FileSystemRights,flags: AuditFlags)
__new__(cls: type,identity: IdentityReference,fileSystemRights: FileSystemRights,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags)
__new__(cls: type,identity: str,fileSystemRights: FileSystemRights,flags: AuditFlags)
__new__(cls: type,identity: str,fileSystemRights: FileSystemRights,inheritanceFlags: InheritanceFlags,propagationFlags: PropagationFlags,flags: AuditFlags)
"""
pass
access_mask = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the access mask for this rule.\n\n\n\n'
file_system_rights = property(lambda self: object(), lambda self, v: None, lambda self: None)
'Gets the System.Security.AccessControl.FileSystemRights flags associated with the current System.Security.AccessControl.FileSystemAuditRule object.\n\n\n\nGet: FileSystemRights(self: FileSystemAuditRule) -> FileSystemRights\n\n\n\n'
|
"""
Small collection of custom objects.
Sometimes used for their custom names only.
"""
class CouldNotLoadError(ResourceWarning):
def __init__(self, *args, study_id=None):
super(CouldNotLoadError, self).__init__(*args)
self.study_id = study_id
class ChannelNotFoundError(CouldNotLoadError):
def __init__(self, *args, **kwargs):
super(ChannelNotFoundError, self).__init__(*args, **kwargs)
class H5ChannelRootError(KeyError): pass
class H5VariableAttributesError(ValueError): pass
class MissingHeaderFieldError(KeyError): pass
class HeaderFieldTypeError(TypeError): pass
class LengthZeroSignalError(ValueError): pass
class NotLoadedError(ResourceWarning): pass
class StripError(RuntimeError): pass
class MarginError(ValueError):
def __init__(self, *args, shift=None, **kwargs):
super(MarginError, self).__init__(*args, **kwargs)
self.shift = shift
|
"""
Small collection of custom objects.
Sometimes used for their custom names only.
"""
class Couldnotloaderror(ResourceWarning):
def __init__(self, *args, study_id=None):
super(CouldNotLoadError, self).__init__(*args)
self.study_id = study_id
class Channelnotfounderror(CouldNotLoadError):
def __init__(self, *args, **kwargs):
super(ChannelNotFoundError, self).__init__(*args, **kwargs)
class H5Channelrooterror(KeyError):
pass
class H5Variableattributeserror(ValueError):
pass
class Missingheaderfielderror(KeyError):
pass
class Headerfieldtypeerror(TypeError):
pass
class Lengthzerosignalerror(ValueError):
pass
class Notloadederror(ResourceWarning):
pass
class Striperror(RuntimeError):
pass
class Marginerror(ValueError):
def __init__(self, *args, shift=None, **kwargs):
super(MarginError, self).__init__(*args, **kwargs)
self.shift = shift
|
# By using two pointer sum method to count if any 2 numbers in arr equals the given sum
def check_sum(arr, n, sum):
l = 0
r = n-1
count = 0
while l < r:
cur_sum = arr[l] + arr[r]
if cur_sum == sum:
print(sum, arr[l], arr[r], end = ' ')
count +=1
l+=1
elif cur_sum < sum:
l+=1
else:
r-=1
# print()
return count
def count_triplets(arr, n):
count = 0
arr.sort()
print('Triplets are :')
for i in range(n-1, -1, -1):
count += check_sum(arr[:i]+arr[(i+1):], n-1, arr[i])
print('Count is', end = ' ')
return count if count > 0 else -1
if __name__ == "__main__":
T = int(input())
for i in range(T):
n = int(input())
arr = list(map(int, input().strip().split()))
print(count_triplets(arr, n))
|
def check_sum(arr, n, sum):
l = 0
r = n - 1
count = 0
while l < r:
cur_sum = arr[l] + arr[r]
if cur_sum == sum:
print(sum, arr[l], arr[r], end=' ')
count += 1
l += 1
elif cur_sum < sum:
l += 1
else:
r -= 1
return count
def count_triplets(arr, n):
count = 0
arr.sort()
print('Triplets are :')
for i in range(n - 1, -1, -1):
count += check_sum(arr[:i] + arr[i + 1:], n - 1, arr[i])
print('Count is', end=' ')
return count if count > 0 else -1
if __name__ == '__main__':
t = int(input())
for i in range(T):
n = int(input())
arr = list(map(int, input().strip().split()))
print(count_triplets(arr, n))
|
#
# PySNMP MIB module WYSE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WYSE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:32:11 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
ObjectIdentity, Counter64, Unsigned32, ModuleIdentity, Integer32, NotificationType, TimeTicks, Counter32, Gauge32, IpAddress, enterprises, MibIdentifier, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, iso = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Counter64", "Unsigned32", "ModuleIdentity", "Integer32", "NotificationType", "TimeTicks", "Counter32", "Gauge32", "IpAddress", "enterprises", "MibIdentifier", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "iso")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
wyse = MibIdentifier((1, 3, 6, 1, 4, 1, 714))
product = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1))
old = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 1))
thinClient = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2))
wysenet = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 1, 1))
wbt3 = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3))
wbt3Memory = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1))
wbt3PCCard = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2))
wbt3IODevice = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3))
wbt3Display = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4))
wbt3DhcpInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5))
wbt3BuildInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6))
wbt3CustomFields = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 7))
wbt3Administration = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8))
wbt3TrapsInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9))
wbt3MibRev = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 10))
wbt3Network = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11))
wbt3Apps = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12))
wbt3Connections = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13))
wbt3Users = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14))
wbt3Ram = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1))
wbt3Rom = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2))
wbt3RamNum = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RamNum.setStatus('mandatory')
wbt3RamTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2), )
if mibBuilder.loadTexts: wbt3RamTable.setStatus('mandatory')
wbt3RamEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3RamIndex"))
if mibBuilder.loadTexts: wbt3RamEntry.setStatus('mandatory')
wbt3RamIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RamIndex.setStatus('mandatory')
wbt3RamType = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("base", 1), ("video", 2), ("extend", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RamType.setStatus('mandatory')
wbt3RamSize = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RamSize.setStatus('mandatory')
wbt3RomNum = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RomNum.setStatus('mandatory')
wbt3RomTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2), )
if mibBuilder.loadTexts: wbt3RomTable.setStatus('mandatory')
wbt3RomEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3RomIndex"))
if mibBuilder.loadTexts: wbt3RomEntry.setStatus('mandatory')
wbt3RomIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RomIndex.setStatus('mandatory')
wbt3RomType = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("boot", 1), ("os", 2), ("option", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RomType.setStatus('mandatory')
wbt3RomSize = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RomSize.setStatus('mandatory')
wbt3PCCardNum = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3PCCardNum.setStatus('mandatory')
wbt3PCCardTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2), )
if mibBuilder.loadTexts: wbt3PCCardTable.setStatus('mandatory')
wbt3PCCardEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3PCCardIndex"))
if mibBuilder.loadTexts: wbt3PCCardEntry.setStatus('mandatory')
wbt3PCCardIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3PCCardIndex.setStatus('mandatory')
wbt3PCCardType = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(256, 0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("empty", 256), ("multifunction", 0), ("memory", 1), ("serial-port-modem", 2), ("parallel-port", 3), ("fixed-disk", 4), ("video-adaptor", 5), ("lan-adapter", 6), ("aims", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3PCCardType.setStatus('mandatory')
wbt3PCCardVendor = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3PCCardVendor.setStatus('mandatory')
wbt3IODevAttached = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3IODevAttached.setStatus('mandatory')
wbt3kbLanguage = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24))).clone(namedValues=NamedValues(("english-us", 0), ("english-uk", 1), ("french", 2), ("german", 3), ("spanish", 4), ("italian", 5), ("swedish", 6), ("danish", 7), ("norwegian", 8), ("dutch", 9), ("belgian-french", 10), ("finnish", 11), ("swiss-french", 12), ("swiss-german", 13), ("japanese", 14), ("canadian-french", 15), ("belgian-dutch", 16), ("portuguese", 17), ("brazilian-abnt", 18), ("italian-142", 19), ("latin-american", 20), ("us-international", 21), ("canadian-fr-multi", 22), ("canadian-eng-multi", 23), ("spanish-variation", 24)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3kbLanguage.setStatus('mandatory')
wbt3CharacterRepeatDelay = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(250, 500, 750, 1000))).clone(namedValues=NamedValues(("delay-250", 250), ("delay-500", 500), ("delay-750", 750), ("delay-1000", 1000)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3CharacterRepeatDelay.setStatus('mandatory')
wbt3CharacterRepeatRate = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 31))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3CharacterRepeatRate.setStatus('mandatory')
wbt3DispCharacteristic = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1))
wbt3DispCapability = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2))
wbt3EnergySaver = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("screensaver", 1), ("monitoroff", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3EnergySaver.setStatus('mandatory')
wbt3ScreenTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1440))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ScreenTimeOut.setStatus('mandatory')
wbt3TouchScreen = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("com1", 1), ("com2", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TouchScreen.setStatus('mandatory')
wbt3DispFreq = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3DispFreq.setStatus('mandatory')
wbt3DispHorizPix = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3DispHorizPix.setStatus('mandatory')
wbt3DispVertPix = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3DispVertPix.setStatus('mandatory')
wbt3DispColor = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DispColor.setStatus('mandatory')
wbt3DispUseDDC = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3DispUseDDC.setStatus('mandatory')
wbt3DispFreqMax = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 256))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DispFreqMax.setStatus('mandatory')
wbt3DispHorizPixMax = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DispHorizPixMax.setStatus('mandatory')
wbt3DispVertPixMax = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DispVertPixMax.setStatus('mandatory')
wbt3DispColorMax = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DispColorMax.setStatus('mandatory')
wbt3DhcpInfoNum = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DhcpInfoNum.setStatus('mandatory')
wbt3DhcpInfoTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2), )
if mibBuilder.loadTexts: wbt3DhcpInfoTable.setStatus('mandatory')
wbt3DHCPoptionIDs = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3))
wbt3DhcpInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3DhcpInfoIndex"))
if mibBuilder.loadTexts: wbt3DhcpInfoEntry.setStatus('mandatory')
wbt3DhcpInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DhcpInfoIndex.setStatus('mandatory')
wbt3InterfaceNum = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3InterfaceNum.setStatus('mandatory')
wbt3ServerIP = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3ServerIP.setStatus('mandatory')
wbt3Username = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3Username.setStatus('mandatory')
wbt3Domain = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3Domain.setStatus('mandatory')
wbt3Password = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("nopassword", 0), ("password", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3Password.setStatus('mandatory')
wbt3CommandLine = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3CommandLine.setStatus('mandatory')
wbt3WorkingDir = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 8), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3WorkingDir.setStatus('mandatory')
wbt3FileServer = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 9), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3FileServer.setStatus('mandatory')
wbt3FileRootPath = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 10), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3FileRootPath.setStatus('mandatory')
wbt3TrapServerList = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 11), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3TrapServerList.setStatus('mandatory')
wbt3SetCommunity = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("ignored", 0), ("provided", 1), ("notprovided", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3SetCommunity.setStatus('mandatory')
wbt3RDPstartApp = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 13), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RDPstartApp.setStatus('mandatory')
wbt3EmulationMode = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 14), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3EmulationMode.setStatus('mandatory')
wbt3TerminalID = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 15), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3TerminalID.setStatus('mandatory')
wbt3VirtualPortServer = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 16), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3VirtualPortServer.setStatus('mandatory')
remoteServer = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: remoteServer.setStatus('mandatory')
logonUserName = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: logonUserName.setStatus('mandatory')
domain = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: domain.setStatus('mandatory')
password = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: password.setStatus('mandatory')
commandLine = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: commandLine.setStatus('mandatory')
workingDirectory = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: workingDirectory.setStatus('mandatory')
fTPFileServer = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fTPFileServer.setStatus('mandatory')
fTPRootPath = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: fTPRootPath.setStatus('mandatory')
trapServerList = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: trapServerList.setStatus('mandatory')
setCommunity = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: setCommunity.setStatus('mandatory')
rDPStartupApp = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: rDPStartupApp.setStatus('mandatory')
emulationMode = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 12), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: emulationMode.setStatus('mandatory')
terminalID = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 13), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: terminalID.setStatus('mandatory')
virtualPortServer = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(128, 254))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: virtualPortServer.setStatus('mandatory')
wbt3CurrentInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1))
wbt3DhcpUpdateInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2))
wbt3CurInfoNum = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3CurInfoNum.setStatus('mandatory')
wbt3CurInfoTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2), )
if mibBuilder.loadTexts: wbt3CurInfoTable.setStatus('mandatory')
wbt3CurInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3DhcpInfoIndex"))
if mibBuilder.loadTexts: wbt3CurInfoEntry.setStatus('mandatory')
wbt3CurInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3CurInfoIndex.setStatus('mandatory')
wbt3CurBuildNum = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3CurBuildNum.setStatus('mandatory')
wbt3CurOEMBuildNum = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3CurOEMBuildNum.setStatus('mandatory')
wbt3CurModBuildDate = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3CurModBuildDate.setStatus('mandatory')
wbt3CurOEM = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3CurOEM.setStatus('mandatory')
wbt3CurHWPlatform = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3CurHWPlatform.setStatus('mandatory')
wbt3CurOS = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 7), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3CurOS.setStatus('mandatory')
wbt3DUpInfoNum = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DUpInfoNum.setStatus('mandatory')
wbt3DUpInfoTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2), )
if mibBuilder.loadTexts: wbt3DUpInfoTable.setStatus('mandatory')
wbt3DUpInfoEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3DUpInfoIndex"))
if mibBuilder.loadTexts: wbt3DUpInfoEntry.setStatus('mandatory')
wbt3DUpInfoIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DUpInfoIndex.setStatus('mandatory')
wbt3DUpBuildNum = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DUpBuildNum.setStatus('mandatory')
wbt3DUpOEMBuildNum = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DUpOEMBuildNum.setStatus('mandatory')
wbt3DUpModBuildDate = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DUpModBuildDate.setStatus('mandatory')
wbt3DUpOEMBuildDate = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3DUpOEMBuildDate.setStatus('mandatory')
wbt3CustomField1 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 7, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3CustomField1.setStatus('mandatory')
wbt3CustomField2 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 7, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3CustomField2.setStatus('mandatory')
wbt3CustomField3 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 7, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3CustomField3.setStatus('mandatory')
wbt3UpDnLoad = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1))
wbt3Action = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 2))
wbt3FTPsetting = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3))
wbt3SNMPupdate = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3SNMPupdate.setStatus('mandatory')
wbt3DHCPupdate = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3DHCPupdate.setStatus('mandatory')
wbt3UpDnLoadNum = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadNum.setStatus('mandatory')
wbt3UpDnLoadTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2), )
if mibBuilder.loadTexts: wbt3UpDnLoadTable.setStatus('mandatory')
wbt3AcceptReq = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AcceptReq.setStatus('mandatory')
wbt3SubmitLoadJob = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("notready", 0), ("ready", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3SubmitLoadJob.setStatus('mandatory')
wbt3UpDnLoadEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3UpDnLoadIndex"))
if mibBuilder.loadTexts: wbt3UpDnLoadEntry.setStatus('mandatory')
wbt3UpDnLoadIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadIndex.setStatus('mandatory')
wbt3UpDnLoadId = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadId.setStatus('mandatory')
wbt3UpDnLoadOp = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("upload", 0), ("download", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadOp.setStatus('mandatory')
wbt3UpDnLoadSrcFile = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadSrcFile.setStatus('mandatory')
wbt3UpDnLoadDstFile = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadDstFile.setStatus('mandatory')
wbt3UpDnLoadFileType = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("binary", 0), ("ascii", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadFileType.setStatus('mandatory')
wbt3UpDnLoadProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ftp", 0), ("tftp", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadProtocol.setStatus('mandatory')
wbt3UpDnLoadFServer = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadFServer.setStatus('mandatory')
wbt3UpDnLoadTimeFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("immediate", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UpDnLoadTimeFlag.setStatus('mandatory')
wbt3RebootRequest = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("noreboot", 0), ("rebootnow", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RebootRequest.setStatus('mandatory')
wbt3ResetToFactoryDefault = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("noreset", 0), ("resetnow", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ResetToFactoryDefault.setStatus('mandatory')
wbt3ServerName = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ServerName.setStatus('mandatory')
wbt3Directory = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Directory.setStatus('mandatory')
wbt3UserID = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UserID.setStatus('mandatory')
wbt3Password2 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Password2.setStatus('mandatory')
wbt3SavePassword = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3SavePassword.setStatus('mandatory')
wbt3InfoLocation = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("uselocalinfo", 0), ("usedhcpinfo", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3InfoLocation.setStatus('mandatory')
wbt3Security = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7))
wbt3SecurityEnable = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3SecurityEnable.setStatus('mandatory')
wbt3HideConfigTab = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3HideConfigTab.setStatus('mandatory')
wbt3FailOverEnable = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3FailOverEnable.setStatus('mandatory')
wbt3MultipleConnect = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3MultipleConnect.setStatus('mandatory')
wbt3PingBeforeConnect = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3PingBeforeConnect.setStatus('mandatory')
wbt3Verbose = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Verbose.setStatus('mandatory')
wbt3AutoLoginEnable = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoLoginEnable.setStatus('mandatory')
wbt3AutoLoginUserName = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoLoginUserName.setStatus('mandatory')
wbt3SingleButtonConnect = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3SingleButtonConnect.setStatus('mandatory')
wbt3AutoFailRecovery = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoFailRecovery.setStatus('mandatory')
wbt3TrapStatus = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 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))).clone(namedValues=NamedValues(("ls-done", 0), ("ls-done-sameversion", 1), ("ls-notready", 2), ("ls-fail-shutdown", 3), ("ls-fail-noupd", 4), ("ls-fail-dnld-blocked", 5), ("ls-fail-filenotfound", 6), ("ls-fail-dir", 7), ("ls-fail-upld-blocked", 8), ("ls-fail-noserv", 9), ("ls-fail-prot", 10), ("ls-fail-nomem", 11), ("ls-fail-noresource", 12), ("ls-fail-resolvename", 13), ("ls-fail-notbundle", 14), ("ls-fail-checksum", 15), ("ls-fail-flasherror", 16), ("ls-fail-dnld-flash", 17), ("ls-fail-usercancel", 18), ("ls-fail-norflash", 19), ("ls-fail-protnsupport", 20), ("ls-fail-parsereg", 21), ("ls-fail-parsereg-verincomp", 22), ("ls-fail-parsereg-platfincomp", 23), ("ls-fail-parsereg-osincomp", 24), ("ls-fail-reset-defaultfactory", 25), ("ls-fail-paraminifilenotfound", 26), ("ls-invalid-bootstrap", 27), ("ls-fail-badkey", 28)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3TrapStatus.setStatus('mandatory')
wbt3TrapReqId = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 2), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3TrapReqId.setStatus('mandatory')
wbt3TrapServers = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3))
wbt3TrapServer1 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TrapServer1.setStatus('mandatory')
wbt3TrapServer2 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TrapServer2.setStatus('mandatory')
wbt3TrapServer3 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TrapServer3.setStatus('mandatory')
wbt3TrapServer4 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TrapServer4.setStatus('mandatory')
wbt3MibRevMajor = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 10, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3MibRevMajor.setStatus('mandatory')
wbt3MibRevMinor = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 10, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3MibRevMinor.setStatus('mandatory')
wbt3NetworkNum = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3NetworkNum.setStatus('mandatory')
wbt3NetworkTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2), )
if mibBuilder.loadTexts: wbt3NetworkTable.setStatus('mandatory')
wbt3NetworkEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3NetworkIndex"))
if mibBuilder.loadTexts: wbt3NetworkEntry.setStatus('mandatory')
wbt3NetworkIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3NetworkIndex.setStatus('mandatory')
wbt3dhcpEnable = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3dhcpEnable.setStatus('mandatory')
wbt3NetworkAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3NetworkAddress.setStatus('mandatory')
wbt3SubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3SubnetMask.setStatus('mandatory')
wbt3Gateway = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Gateway.setStatus('mandatory')
wbt3dnsEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3dnsEnable.setStatus('mandatory')
wbt3defaultDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3defaultDomain.setStatus('mandatory')
wbt3primaryDNSserverIPaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3primaryDNSserverIPaddress.setStatus('mandatory')
wbt3secondaryDNSserverIPaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3secondaryDNSserverIPaddress.setStatus('mandatory')
wbt3winsEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3winsEnable.setStatus('mandatory')
wbt3primaryWINSserverIPaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 11), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3primaryWINSserverIPaddress.setStatus('mandatory')
wbt3secondaryWINSserverIPaddress = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 12), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3secondaryWINSserverIPaddress.setStatus('mandatory')
wbt3NetworkSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 9, 8, 7, 6))).clone(namedValues=NamedValues(("auto-detect", 0), ("mbs-10halfduplex", 9), ("mbs-10fullduplex", 8), ("mbs-100halfduplex", 7), ("mbs-100fullduplex", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3NetworkSpeed.setStatus('mandatory')
wbt3NetworkProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 256))).clone(namedValues=NamedValues(("tcp-ip", 0), ("unknown", 256)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3NetworkProtocol.setStatus('mandatory')
wbt3RDPencryption = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("enable", 0), ("disable", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RDPencryption.setStatus('mandatory')
wbt3VirtualPortServerIPaddress = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3VirtualPortServerIPaddress.setStatus('mandatory')
wbt3com1Share = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("yes", 0), ("no", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3com1Share.setStatus('mandatory')
wbt3com2Share = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("yes", 0), ("no", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3com2Share.setStatus('mandatory')
wbt3parallelShare = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("yes", 0), ("no", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3parallelShare.setStatus('mandatory')
iCADefaultHotkeys = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6), )
if mibBuilder.loadTexts: iCADefaultHotkeys.setStatus('mandatory')
defaultHotkeysEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1), )
if mibBuilder.loadTexts: defaultHotkeysEntry.setStatus('mandatory')
iCAStatusDialog = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ctrl", 0), ("shift", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAStatusDialog.setStatus('mandatory')
iCAStatusDialog2 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("nb-0", 0), ("nb-1", 1), ("nb-2", 2), ("nb-3", 3), ("nb-4", 4), ("nb-5", 5), ("nb-6", 6), ("nb-7", 7), ("nb-8", 8), ("nb-9", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAStatusDialog2.setStatus('mandatory')
iCACloseRemoteApplication = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ctrl", 0), ("shift", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCACloseRemoteApplication.setStatus('mandatory')
iCACloseRemoteApplication2 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("nb-0", 0), ("nb-1", 1), ("nb-2", 2), ("nb-3", 3), ("nb-4", 4), ("nb-5", 5), ("nb-6", 6), ("nb-7", 7), ("nb-8", 8), ("nb-9", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCACloseRemoteApplication2.setStatus('mandatory')
iCAtoggleTitleBar = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ctrl", 0), ("shift", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAtoggleTitleBar.setStatus('mandatory')
iCAtoggleTitleBar2 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("nb-0", 0), ("nb-1", 1), ("nb-2", 2), ("nb-3", 3), ("nb-4", 4), ("nb-5", 5), ("nb-6", 6), ("nb-7", 7), ("nb-8", 8), ("nb-9", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAtoggleTitleBar2.setStatus('mandatory')
iCActrlAltDel = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("ctrl", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCActrlAltDel.setStatus('mandatory')
iCActrlAltDel2 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("nb-0", 0), ("nb-1", 1), ("nb-2", 2), ("nb-3", 3), ("nb-4", 4), ("nb-5", 5), ("nb-6", 6), ("nb-7", 7), ("nb-8", 8), ("nb-9", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCActrlAltDel2.setStatus('mandatory')
iCActrlEsc = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("ctrl", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCActrlEsc.setStatus('mandatory')
iCActrlEsc2 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("nb-0", 0), ("nb-1", 1), ("nb-2", 2), ("nb-3", 3), ("nb-4", 4), ("nb-5", 5), ("nb-6", 6), ("nb-7", 7), ("nb-8", 8), ("nb-9", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCActrlEsc2.setStatus('mandatory')
iCAaltEsc = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ctrl", 0), ("shift", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAaltEsc.setStatus('mandatory')
iCAaltEsc2 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("nb-0", 0), ("nb-1", 1), ("nb-2", 2), ("nb-3", 3), ("nb-4", 4), ("nb-5", 5), ("nb-6", 6), ("nb-7", 7), ("nb-8", 8), ("nb-9", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAaltEsc2.setStatus('mandatory')
iCAaltTab = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ctrl", 0), ("shift", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAaltTab.setStatus('mandatory')
iCAaltTab2 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("nb-0", 0), ("nb-1", 1), ("nb-2", 2), ("nb-3", 3), ("nb-4", 4), ("nb-5", 5), ("nb-6", 6), ("nb-7", 7), ("nb-8", 8), ("nb-9", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAaltTab2.setStatus('mandatory')
iCAaltBackTab = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("ctrl", 0), ("shift", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAaltBackTab.setStatus('mandatory')
iCAaltBackTab2 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("nb-0", 0), ("nb-1", 1), ("nb-2", 2), ("nb-3", 3), ("nb-4", 4), ("nb-5", 5), ("nb-6", 6), ("nb-7", 7), ("nb-8", 8), ("nb-9", 9)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: iCAaltBackTab2.setStatus('mandatory')
wbt3ConnectionsTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2), )
if mibBuilder.loadTexts: wbt3ConnectionsTable.setStatus('mandatory')
wbt3ConnectionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3ConnectionName"))
if mibBuilder.loadTexts: wbt3ConnectionEntry.setStatus('mandatory')
wbt3ConnectionName = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ConnectionName.setStatus('mandatory')
wbt3ConnectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("rdp", 0), ("ica", 1), ("tec", 2), ("dialup", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ConnectionType.setStatus('mandatory')
wbt3ConnectionEntryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ConnectionEntryStatus.setStatus('mandatory')
wbt3RDPConnections = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3))
wbt3RDPConnTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1), )
if mibBuilder.loadTexts: wbt3RDPConnTable.setStatus('mandatory')
wbt3RDPConnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1), )
if mibBuilder.loadTexts: wbt3RDPConnEntry.setStatus('mandatory')
wbt3RDPConnName = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RDPConnName.setStatus('mandatory')
wbt3RDPConnServer = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RDPConnServer.setStatus('mandatory')
wbt3RDPConnLowSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RDPConnLowSpeed.setStatus('mandatory')
wbt3RDPConnAutoLogon = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RDPConnAutoLogon.setStatus('mandatory')
wbt3RDPConnUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RDPConnUsername.setStatus('mandatory')
wbt3RDPConnDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RDPConnDomain.setStatus('mandatory')
wbt3RDPConnStartApplication = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 2))).clone(namedValues=NamedValues(("desktop", 0), ("filename", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RDPConnStartApplication.setStatus('mandatory')
wbt3RDPConnFilename = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RDPConnFilename.setStatus('mandatory')
wbt3RDPConnWorkingDir = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 10), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3RDPConnWorkingDir.setStatus('mandatory')
wbt3RDPConnModifiable = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3RDPConnModifiable.setStatus('mandatory')
wbt3ICAConnections = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4))
wbt3ICAConnTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1), )
if mibBuilder.loadTexts: wbt3ICAConnTable.setStatus('mandatory')
wbt3ICAConnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1), )
if mibBuilder.loadTexts: wbt3ICAConnEntry.setStatus('mandatory')
wbt3ICAConnName = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3ICAConnName.setStatus('mandatory')
wbt3ICAConnCommType = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("network", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ICAConnCommType.setStatus('mandatory')
wbt3ICAConnServer = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ICAConnServer.setStatus('mandatory')
wbt3ICAConnCommandLine = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ICAConnCommandLine.setStatus('mandatory')
wbt3ICAConnWorkingDir = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ICAConnWorkingDir.setStatus('mandatory')
wbt3ICAConnUsername = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ICAConnUsername.setStatus('mandatory')
wbt3ICAConnDomain = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ICAConnDomain.setStatus('mandatory')
wbt3ICAConnColors = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("nb-16", 0), ("nb-256", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ICAConnColors.setStatus('mandatory')
wbt3ICAConnDataCompress = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ICAConnDataCompress.setStatus('mandatory')
wbt3ICAConnSoundQuality = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("none", 0), ("low", 1), ("medium", 2), ("high", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3ICAConnSoundQuality.setStatus('mandatory')
wbt3ICAConnModifiable = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3ICAConnModifiable.setStatus('mandatory')
wbt3TermConnections = MibIdentifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5))
wbt3TermConnTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1), )
if mibBuilder.loadTexts: wbt3TermConnTable.setStatus('mandatory')
wbt3TermConnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1), )
if mibBuilder.loadTexts: wbt3TermConnEntry.setStatus('mandatory')
wbt3TermConnName = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3TermConnName.setStatus('mandatory')
wbt3TermConnCommType = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("network", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnCommType.setStatus('mandatory')
wbt3TermConnServer = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnServer.setStatus('mandatory')
wbt3TermConnEmuType = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=NamedValues(("vt52", 0), ("vt100", 1), ("vt400-7-bit", 3), ("vt400-8-bit", 4), ("ansi-bbs", 5), ("sco-console", 6), ("ibm3270", 7), ("ibm3151", 8), ("ibm5250", 9), ("wy50", 10), ("wy50-plus", 11), ("tvi910", 12), ("tvi920", 13), ("tvi925", 14), ("adds-a2", 15), ("hz1500", 16), ("wy60", 17)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnEmuType.setStatus('mandatory')
wbt3TermConnVTEmuModel = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 256))).clone(namedValues=NamedValues(("vt100", 0), ("vt101", 1), ("vt102", 2), ("vt125", 3), ("vt220", 4), ("vt240", 5), ("vt320", 6), ("vt340", 7), ("vt420", 8), ("vt131", 9), ("vt132", 10), ("not-applicable", 256)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnVTEmuModel.setStatus('mandatory')
wbt3TermConnIBM3270EmuModel = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 256))).clone(namedValues=NamedValues(("ibm3278-2", 0), ("ibm3278-3", 1), ("ibm3278-4", 2), ("ibm3278-5", 3), ("ibm3278-2-e", 4), ("ibm3278-3-e", 5), ("ibm3278-4-e", 6), ("ibm3278-5-e", 7), ("ibm3279-2", 8), ("ibm3279-3", 9), ("ibm3279-4", 10), ("ibm3279-5", 11), ("ibm3287-1", 12), ("not-applicable", 256)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnIBM3270EmuModel.setStatus('mandatory')
wbt3TermConnIBM5250EmuModel = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 256))).clone(namedValues=NamedValues(("ibm5291-1", 0), ("ibm5292-2", 1), ("ibm5251-11", 2), ("ibm3179-2", 3), ("ibm3196-a1", 4), ("ibm3180-2", 5), ("ibm3477-fc", 6), ("ibm3477-fg", 7), ("ibm3486-ba", 8), ("ibm3487-ha", 9), ("ibm3487-hc", 10), ("not-applicable", 256)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnIBM5250EmuModel.setStatus('mandatory')
wbt3TermConnPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnPortNumber.setStatus('mandatory')
wbt3TermConnTelnetName = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 11), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnTelnetName.setStatus('mandatory')
wbt3TermConnPrinterPort = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("lpt1", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnPrinterPort.setStatus('mandatory')
wbt3TermConnFormFeed = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnFormFeed.setStatus('mandatory')
wbt3TermConnAutoLineFeed = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnAutoLineFeed.setStatus('mandatory')
wbt3TermConnScript = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 15), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3TermConnScript.setStatus('mandatory')
wbt3TermConnModifiable = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wbt3TermConnModifiable.setStatus('mandatory')
wbt3UsersTable = MibTable((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2), )
if mibBuilder.loadTexts: wbt3UsersTable.setStatus('mandatory')
wbt3UsersEntry = MibTableRow((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1), ).setIndexNames((0, "WYSE-MIB", "wbt3userName"))
if mibBuilder.loadTexts: wbt3UsersEntry.setStatus('mandatory')
wbt3UsersStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UsersStatus.setStatus('mandatory')
wbt3userName = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 3), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3userName.setStatus('mandatory')
wbt3password = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3password.setStatus('mandatory')
wbt3privilege = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("admin", 0), ("user", 1), ("guest", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3privilege.setStatus('mandatory')
wbt3Connection1 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Connection1.setStatus('mandatory')
wbt3Connection2 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 8), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Connection2.setStatus('mandatory')
wbt3Connection3 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 9), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Connection3.setStatus('mandatory')
wbt3Connection4 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 10), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Connection4.setStatus('mandatory')
wbt3Connection5 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 11), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Connection5.setStatus('mandatory')
wbt3Connection6 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 12), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Connection6.setStatus('mandatory')
wbt3Connection7 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 13), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Connection7.setStatus('mandatory')
wbt3Connection8 = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 14), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3Connection8.setStatus('mandatory')
wbt3AutoStart1 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoStart1.setStatus('mandatory')
wbt3AutoStart2 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoStart2.setStatus('mandatory')
wbt3AutoStart3 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoStart3.setStatus('mandatory')
wbt3AutoStart4 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoStart4.setStatus('mandatory')
wbt3AutoStart5 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoStart5.setStatus('mandatory')
wbt3AutoStart6 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoStart6.setStatus('mandatory')
wbt3AutoStart7 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoStart7.setStatus('mandatory')
wbt3AutoStart8 = MibScalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3AutoStart8.setStatus('mandatory')
wbt3UserPasswordChange = MibTableColumn((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("no", 0), ("yes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wbt3UserPasswordChange.setStatus('mandatory')
wbt3TrapDHCPBuildMismatch = NotificationType((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0,1)).setObjects(("WYSE-MIB", "wbt3CurBuildNum"), ("WYSE-MIB", "wbt3CurOEMBuildNum"), ("WYSE-MIB", "wbt3CurModBuildDate"), ("WYSE-MIB", "wbt3DUpBuildNum"), ("WYSE-MIB", "wbt3DUpOEMBuildNum"), ("WYSE-MIB", "wbt3DUpOEMBuildDate"))
wbt3TrapDHCPUpdDone = NotificationType((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0,2)).setObjects(("WYSE-MIB", "wbt3CurBuildNum"), ("WYSE-MIB", "wbt3CurOEMBuildNum"), ("WYSE-MIB", "wbt3CurModBuildDate"), ("WYSE-MIB", "wbt3DUpBuildNum"), ("WYSE-MIB", "wbt3DUpOEMBuildNum"), ("WYSE-MIB", "wbt3DUpOEMBuildDate"))
wbt3TrapDHCPUpdNotComplete = NotificationType((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0,3)).setObjects(("WYSE-MIB", "wbt3CurBuildNum"), ("WYSE-MIB", "wbt3CurOEMBuildNum"), ("WYSE-MIB", "wbt3CurModBuildDate"), ("WYSE-MIB", "wbt3DUpBuildNum"), ("WYSE-MIB", "wbt3DUpOEMBuildNum"), ("WYSE-MIB", "wbt3DUpOEMBuildDate"), ("WYSE-MIB", "wbt3TrapStatus"))
wbt3TrapSNMPAccptLd = NotificationType((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0,4)).setObjects(("WYSE-MIB", "wbt3SubmitLoadJob"))
wbt3TrapSNMPLdDone = NotificationType((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0,5)).setObjects(("WYSE-MIB", "wbt3TrapReqId"))
wbt3TrapSNMPLdNotComplete = NotificationType((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0,6)).setObjects(("WYSE-MIB", "wbt3TrapReqId"), ("WYSE-MIB", "wbt3TrapStatus"))
wbt3TrapRebootNotComplete = NotificationType((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0,7)).setObjects(("WYSE-MIB", "wbt3TrapStatus"))
mibBuilder.exportSymbols("WYSE-MIB", wbt3CustomField1=wbt3CustomField1, wbt3PCCardIndex=wbt3PCCardIndex, wbt3EnergySaver=wbt3EnergySaver, wbt3HideConfigTab=wbt3HideConfigTab, wbt3TrapServer3=wbt3TrapServer3, wbt3SetCommunity=wbt3SetCommunity, wbt3UpDnLoad=wbt3UpDnLoad, wbt3CurInfoNum=wbt3CurInfoNum, wbt3UpDnLoadIndex=wbt3UpDnLoadIndex, wbt3FailOverEnable=wbt3FailOverEnable, wbt3RDPConnections=wbt3RDPConnections, wbt3ICAConnColors=wbt3ICAConnColors, logonUserName=logonUserName, wbt3Connection6=wbt3Connection6, wbt3DispVertPixMax=wbt3DispVertPixMax, wbt3CharacterRepeatDelay=wbt3CharacterRepeatDelay, wbt3DhcpInfoIndex=wbt3DhcpInfoIndex, wbt3RDPConnUsername=wbt3RDPConnUsername, iCACloseRemoteApplication=iCACloseRemoteApplication, wbt3RDPencryption=wbt3RDPencryption, wbt3TrapDHCPUpdNotComplete=wbt3TrapDHCPUpdNotComplete, domain=domain, emulationMode=emulationMode, wbt3CurOEMBuildNum=wbt3CurOEMBuildNum, wbt3DHCPupdate=wbt3DHCPupdate, wbt3CustomField3=wbt3CustomField3, wbt3DUpOEMBuildDate=wbt3DUpOEMBuildDate, wbt3UpDnLoadTable=wbt3UpDnLoadTable, wbt3DUpOEMBuildNum=wbt3DUpOEMBuildNum, wbt3DispFreq=wbt3DispFreq, wbt3UpDnLoadProtocol=wbt3UpDnLoadProtocol, iCAaltBackTab2=iCAaltBackTab2, wbt3Username=wbt3Username, wbt3RDPConnStartApplication=wbt3RDPConnStartApplication, wbt3Password2=wbt3Password2, wbt3DispHorizPixMax=wbt3DispHorizPixMax, wbt3VirtualPortServerIPaddress=wbt3VirtualPortServerIPaddress, iCACloseRemoteApplication2=iCACloseRemoteApplication2, wbt3AutoStart1=wbt3AutoStart1, wbt3TrapSNMPAccptLd=wbt3TrapSNMPAccptLd, wbt3TrapSNMPLdNotComplete=wbt3TrapSNMPLdNotComplete, wbt3NetworkIndex=wbt3NetworkIndex, iCActrlEsc2=iCActrlEsc2, wbt3Password=wbt3Password, trapServerList=trapServerList, wbt3PingBeforeConnect=wbt3PingBeforeConnect, thinClient=thinClient, wbt3InfoLocation=wbt3InfoLocation, wbt3InterfaceNum=wbt3InterfaceNum, wysenet=wysenet, remoteServer=remoteServer, wbt3TrapStatus=wbt3TrapStatus, wbt3TrapServerList=wbt3TrapServerList, wbt3DhcpInfoEntry=wbt3DhcpInfoEntry, iCAaltEsc2=iCAaltEsc2, wbt3SubmitLoadJob=wbt3SubmitLoadJob, wbt3com1Share=wbt3com1Share, wbt3CurOS=wbt3CurOS, wbt3CurInfoIndex=wbt3CurInfoIndex, wbt3UsersEntry=wbt3UsersEntry, wbt3Domain=wbt3Domain, wbt3dhcpEnable=wbt3dhcpEnable, wbt3PCCard=wbt3PCCard, wbt3DUpInfoNum=wbt3DUpInfoNum, wbt3DUpInfoTable=wbt3DUpInfoTable, wbt3ICAConnCommandLine=wbt3ICAConnCommandLine, wbt3CurHWPlatform=wbt3CurHWPlatform, wbt3MibRev=wbt3MibRev, wbt3RDPConnFilename=wbt3RDPConnFilename, wbt3AutoLoginUserName=wbt3AutoLoginUserName, wbt3CommandLine=wbt3CommandLine, wbt3TermConnServer=wbt3TermConnServer, wbt3TrapServer1=wbt3TrapServer1, wbt3ConnectionEntry=wbt3ConnectionEntry, iCAtoggleTitleBar2=iCAtoggleTitleBar2, wbt3ICAConnWorkingDir=wbt3ICAConnWorkingDir, wbt3RomNum=wbt3RomNum, iCAtoggleTitleBar=iCAtoggleTitleBar, wbt3TermConnFormFeed=wbt3TermConnFormFeed, wbt3CurBuildNum=wbt3CurBuildNum, wbt3DispColorMax=wbt3DispColorMax, wbt3CurModBuildDate=wbt3CurModBuildDate, wbt3MultipleConnect=wbt3MultipleConnect, iCActrlAltDel2=iCActrlAltDel2, wbt3Connection2=wbt3Connection2, wbt3Directory=wbt3Directory, wbt3ICAConnTable=wbt3ICAConnTable, wbt3TermConnIBM5250EmuModel=wbt3TermConnIBM5250EmuModel, wbt3TrapSNMPLdDone=wbt3TrapSNMPLdDone, wbt3UpDnLoadOp=wbt3UpDnLoadOp, iCAStatusDialog2=iCAStatusDialog2, product=product, wbt3primaryWINSserverIPaddress=wbt3primaryWINSserverIPaddress, iCAStatusDialog=iCAStatusDialog, wbt3NetworkEntry=wbt3NetworkEntry, wbt3RomSize=wbt3RomSize, wbt3ConnectionsTable=wbt3ConnectionsTable, wbt3SecurityEnable=wbt3SecurityEnable, wbt3ICAConnServer=wbt3ICAConnServer, wbt3Connection1=wbt3Connection1, wbt3primaryDNSserverIPaddress=wbt3primaryDNSserverIPaddress, wbt3DhcpInfo=wbt3DhcpInfo, wbt3UserPasswordChange=wbt3UserPasswordChange, wbt3RebootRequest=wbt3RebootRequest, wbt3RDPstartApp=wbt3RDPstartApp, wbt3CharacterRepeatRate=wbt3CharacterRepeatRate, wbt3TermConnPrinterPort=wbt3TermConnPrinterPort, wbt3Connection7=wbt3Connection7, wbt3CurInfoEntry=wbt3CurInfoEntry, wbt3AutoStart3=wbt3AutoStart3, wbt3Rom=wbt3Rom, wbt3SubnetMask=wbt3SubnetMask, wbt3AutoStart2=wbt3AutoStart2, wbt3DispVertPix=wbt3DispVertPix, wbt3PCCardEntry=wbt3PCCardEntry, wbt3parallelShare=wbt3parallelShare, iCAaltBackTab=iCAaltBackTab, wbt3ICAConnDomain=wbt3ICAConnDomain, wbt3NetworkProtocol=wbt3NetworkProtocol, wbt3TermConnections=wbt3TermConnections, wbt3AutoStart8=wbt3AutoStart8, wbt3RDPConnServer=wbt3RDPConnServer, wbt3IODevice=wbt3IODevice, wbt3ICAConnUsername=wbt3ICAConnUsername, wbt3TermConnPortNumber=wbt3TermConnPortNumber, wbt3ICAConnCommType=wbt3ICAConnCommType, wbt3CurInfoTable=wbt3CurInfoTable, wbt3NetworkSpeed=wbt3NetworkSpeed, iCAaltTab=iCAaltTab, wbt3TermConnAutoLineFeed=wbt3TermConnAutoLineFeed, fTPFileServer=fTPFileServer, wbt3TermConnModifiable=wbt3TermConnModifiable, wbt3Connection8=wbt3Connection8, wbt3TrapServer4=wbt3TrapServer4, wbt3DispCharacteristic=wbt3DispCharacteristic, wbt3ICAConnModifiable=wbt3ICAConnModifiable, wbt3AutoStart7=wbt3AutoStart7, wbt3winsEnable=wbt3winsEnable, wbt3UpDnLoadDstFile=wbt3UpDnLoadDstFile, wbt3Memory=wbt3Memory, wbt3Connection5=wbt3Connection5, wbt3ServerName=wbt3ServerName, wbt3VirtualPortServer=wbt3VirtualPortServer, virtualPortServer=virtualPortServer, iCAaltEsc=iCAaltEsc, wbt3PCCardType=wbt3PCCardType, wbt3MibRevMajor=wbt3MibRevMajor, wbt3PCCardVendor=wbt3PCCardVendor, wbt3DhcpInfoTable=wbt3DhcpInfoTable, wbt3Verbose=wbt3Verbose, wbt3UpDnLoadId=wbt3UpDnLoadId, wbt3RamNum=wbt3RamNum, wbt3dnsEnable=wbt3dnsEnable, wbt3Network=wbt3Network, wbt3TouchScreen=wbt3TouchScreen, wbt3RomType=wbt3RomType, wbt3ConnectionEntryStatus=wbt3ConnectionEntryStatus, wbt3RDPConnLowSpeed=wbt3RDPConnLowSpeed, wbt3ICAConnections=wbt3ICAConnections, wbt3UserID=wbt3UserID, wbt3ICAConnDataCompress=wbt3ICAConnDataCompress, wbt3Gateway=wbt3Gateway, wbt3RamType=wbt3RamType, wbt3SavePassword=wbt3SavePassword, fTPRootPath=fTPRootPath, wbt3ICAConnEntry=wbt3ICAConnEntry, terminalID=terminalID, wbt3ConnectionType=wbt3ConnectionType, wbt3Connection4=wbt3Connection4, wbt3RomEntry=wbt3RomEntry, wbt3AutoStart4=wbt3AutoStart4, wbt3Connections=wbt3Connections, wbt3PCCardTable=wbt3PCCardTable, iCAaltTab2=iCAaltTab2, wbt3Display=wbt3Display, wbt3Apps=wbt3Apps, wbt3TermConnVTEmuModel=wbt3TermConnVTEmuModel, wbt3RomIndex=wbt3RomIndex, rDPStartupApp=rDPStartupApp, wbt3TrapRebootNotComplete=wbt3TrapRebootNotComplete, wbt3CustomFields=wbt3CustomFields, wbt3SingleButtonConnect=wbt3SingleButtonConnect, wbt3FTPsetting=wbt3FTPsetting, wbt3UpDnLoadEntry=wbt3UpDnLoadEntry, wbt3TermConnEmuType=wbt3TermConnEmuType, wbt3AutoFailRecovery=wbt3AutoFailRecovery, wbt3RamTable=wbt3RamTable, wbt3DispCapability=wbt3DispCapability, wbt3NetworkAddress=wbt3NetworkAddress, wbt3RDPConnName=wbt3RDPConnName, wbt3RDPConnEntry=wbt3RDPConnEntry, wbt3NetworkNum=wbt3NetworkNum, wbt3DispHorizPix=wbt3DispHorizPix, wbt3BuildInfo=wbt3BuildInfo, wbt3CurrentInfo=wbt3CurrentInfo, wbt3RDPConnWorkingDir=wbt3RDPConnWorkingDir, wbt3RDPConnTable=wbt3RDPConnTable, wbt3kbLanguage=wbt3kbLanguage, wbt3TerminalID=wbt3TerminalID, wbt3DUpModBuildDate=wbt3DUpModBuildDate, wbt3Security=wbt3Security, wbt3RamSize=wbt3RamSize, wbt3ResetToFactoryDefault=wbt3ResetToFactoryDefault, wbt3TrapServer2=wbt3TrapServer2, wbt3Administration=wbt3Administration, wbt3WorkingDir=wbt3WorkingDir, wbt3DUpBuildNum=wbt3DUpBuildNum, wbt3UpDnLoadNum=wbt3UpDnLoadNum, wbt3UsersStatus=wbt3UsersStatus, wbt3Connection3=wbt3Connection3, wbt3RDPConnDomain=wbt3RDPConnDomain, password=password, old=old, wbt3DUpInfoEntry=wbt3DUpInfoEntry, wbt3RomTable=wbt3RomTable, wbt3TrapReqId=wbt3TrapReqId, wbt3secondaryWINSserverIPaddress=wbt3secondaryWINSserverIPaddress, wbt3ScreenTimeOut=wbt3ScreenTimeOut, wbt3TrapDHCPUpdDone=wbt3TrapDHCPUpdDone, wbt3com2Share=wbt3com2Share, wbt3SNMPupdate=wbt3SNMPupdate, wbt3UsersTable=wbt3UsersTable, wbt3privilege=wbt3privilege, wbt3FileServer=wbt3FileServer, wbt3RamIndex=wbt3RamIndex, wbt3AutoLoginEnable=wbt3AutoLoginEnable, wbt3DispUseDDC=wbt3DispUseDDC, workingDirectory=workingDirectory, wbt3DUpInfoIndex=wbt3DUpInfoIndex, iCActrlEsc=iCActrlEsc, wbt3CurOEM=wbt3CurOEM, wbt3TermConnTable=wbt3TermConnTable, wbt3TermConnName=wbt3TermConnName, defaultHotkeysEntry=defaultHotkeysEntry, wbt3EmulationMode=wbt3EmulationMode, iCADefaultHotkeys=iCADefaultHotkeys, wbt3AutoStart6=wbt3AutoStart6, wbt3DhcpUpdateInfo=wbt3DhcpUpdateInfo, wbt3TermConnScript=wbt3TermConnScript, wbt3Action=wbt3Action, wbt3ICAConnName=wbt3ICAConnName, wbt3Ram=wbt3Ram, wbt3DispColor=wbt3DispColor, wbt3DispFreqMax=wbt3DispFreqMax, wbt3=wbt3, setCommunity=setCommunity, wbt3DhcpInfoNum=wbt3DhcpInfoNum, iCActrlAltDel=iCActrlAltDel, wbt3TrapsInfo=wbt3TrapsInfo, wbt3AcceptReq=wbt3AcceptReq, wbt3NetworkTable=wbt3NetworkTable, wbt3ConnectionName=wbt3ConnectionName, wbt3UpDnLoadTimeFlag=wbt3UpDnLoadTimeFlag, wbt3ICAConnSoundQuality=wbt3ICAConnSoundQuality)
mibBuilder.exportSymbols("WYSE-MIB", wbt3TermConnIBM3270EmuModel=wbt3TermConnIBM3270EmuModel, wbt3userName=wbt3userName, wbt3secondaryDNSserverIPaddress=wbt3secondaryDNSserverIPaddress, wbt3DHCPoptionIDs=wbt3DHCPoptionIDs, wbt3ServerIP=wbt3ServerIP, wbt3AutoStart5=wbt3AutoStart5, wbt3RDPConnModifiable=wbt3RDPConnModifiable, wbt3RamEntry=wbt3RamEntry, wbt3IODevAttached=wbt3IODevAttached, wbt3TrapServers=wbt3TrapServers, wbt3password=wbt3password, wbt3Users=wbt3Users, wbt3TermConnTelnetName=wbt3TermConnTelnetName, wbt3PCCardNum=wbt3PCCardNum, wbt3MibRevMinor=wbt3MibRevMinor, wbt3FileRootPath=wbt3FileRootPath, wbt3CustomField2=wbt3CustomField2, wbt3defaultDomain=wbt3defaultDomain, wbt3RDPConnAutoLogon=wbt3RDPConnAutoLogon, wbt3UpDnLoadSrcFile=wbt3UpDnLoadSrcFile, wbt3TermConnEntry=wbt3TermConnEntry, wbt3TermConnCommType=wbt3TermConnCommType, commandLine=commandLine, wbt3TrapDHCPBuildMismatch=wbt3TrapDHCPBuildMismatch, wbt3UpDnLoadFileType=wbt3UpDnLoadFileType, wbt3UpDnLoadFServer=wbt3UpDnLoadFServer, wyse=wyse)
|
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_range_constraint, single_value_constraint, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueRangeConstraint', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(object_identity, counter64, unsigned32, module_identity, integer32, notification_type, time_ticks, counter32, gauge32, ip_address, enterprises, mib_identifier, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, iso) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Counter64', 'Unsigned32', 'ModuleIdentity', 'Integer32', 'NotificationType', 'TimeTicks', 'Counter32', 'Gauge32', 'IpAddress', 'enterprises', 'MibIdentifier', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'iso')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
wyse = mib_identifier((1, 3, 6, 1, 4, 1, 714))
product = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1))
old = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 1))
thin_client = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2))
wysenet = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 1, 1))
wbt3 = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3))
wbt3_memory = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1))
wbt3_pc_card = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2))
wbt3_io_device = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3))
wbt3_display = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4))
wbt3_dhcp_info = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5))
wbt3_build_info = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6))
wbt3_custom_fields = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 7))
wbt3_administration = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8))
wbt3_traps_info = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9))
wbt3_mib_rev = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 10))
wbt3_network = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11))
wbt3_apps = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12))
wbt3_connections = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13))
wbt3_users = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14))
wbt3_ram = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1))
wbt3_rom = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2))
wbt3_ram_num = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RamNum.setStatus('mandatory')
wbt3_ram_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2))
if mibBuilder.loadTexts:
wbt3RamTable.setStatus('mandatory')
wbt3_ram_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3RamIndex'))
if mibBuilder.loadTexts:
wbt3RamEntry.setStatus('mandatory')
wbt3_ram_index = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RamIndex.setStatus('mandatory')
wbt3_ram_type = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('base', 1), ('video', 2), ('extend', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RamType.setStatus('mandatory')
wbt3_ram_size = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 1, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RamSize.setStatus('mandatory')
wbt3_rom_num = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RomNum.setStatus('mandatory')
wbt3_rom_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2))
if mibBuilder.loadTexts:
wbt3RomTable.setStatus('mandatory')
wbt3_rom_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3RomIndex'))
if mibBuilder.loadTexts:
wbt3RomEntry.setStatus('mandatory')
wbt3_rom_index = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RomIndex.setStatus('mandatory')
wbt3_rom_type = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('boot', 1), ('os', 2), ('option', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RomType.setStatus('mandatory')
wbt3_rom_size = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 1, 2, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RomSize.setStatus('mandatory')
wbt3_pc_card_num = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3PCCardNum.setStatus('mandatory')
wbt3_pc_card_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2))
if mibBuilder.loadTexts:
wbt3PCCardTable.setStatus('mandatory')
wbt3_pc_card_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3PCCardIndex'))
if mibBuilder.loadTexts:
wbt3PCCardEntry.setStatus('mandatory')
wbt3_pc_card_index = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3PCCardIndex.setStatus('mandatory')
wbt3_pc_card_type = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(256, 0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('empty', 256), ('multifunction', 0), ('memory', 1), ('serial-port-modem', 2), ('parallel-port', 3), ('fixed-disk', 4), ('video-adaptor', 5), ('lan-adapter', 6), ('aims', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3PCCardType.setStatus('mandatory')
wbt3_pc_card_vendor = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 2, 2, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3PCCardVendor.setStatus('mandatory')
wbt3_io_dev_attached = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3IODevAttached.setStatus('mandatory')
wbt3kb_language = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24))).clone(namedValues=named_values(('english-us', 0), ('english-uk', 1), ('french', 2), ('german', 3), ('spanish', 4), ('italian', 5), ('swedish', 6), ('danish', 7), ('norwegian', 8), ('dutch', 9), ('belgian-french', 10), ('finnish', 11), ('swiss-french', 12), ('swiss-german', 13), ('japanese', 14), ('canadian-french', 15), ('belgian-dutch', 16), ('portuguese', 17), ('brazilian-abnt', 18), ('italian-142', 19), ('latin-american', 20), ('us-international', 21), ('canadian-fr-multi', 22), ('canadian-eng-multi', 23), ('spanish-variation', 24)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3kbLanguage.setStatus('mandatory')
wbt3_character_repeat_delay = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(250, 500, 750, 1000))).clone(namedValues=named_values(('delay-250', 250), ('delay-500', 500), ('delay-750', 750), ('delay-1000', 1000)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3CharacterRepeatDelay.setStatus('mandatory')
wbt3_character_repeat_rate = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 3, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 31))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3CharacterRepeatRate.setStatus('mandatory')
wbt3_disp_characteristic = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1))
wbt3_disp_capability = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2))
wbt3_energy_saver = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('screensaver', 1), ('monitoroff', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3EnergySaver.setStatus('mandatory')
wbt3_screen_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 1440))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ScreenTimeOut.setStatus('mandatory')
wbt3_touch_screen = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('com1', 1), ('com2', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TouchScreen.setStatus('mandatory')
wbt3_disp_freq = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3DispFreq.setStatus('mandatory')
wbt3_disp_horiz_pix = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3DispHorizPix.setStatus('mandatory')
wbt3_disp_vert_pix = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3DispVertPix.setStatus('mandatory')
wbt3_disp_color = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DispColor.setStatus('mandatory')
wbt3_disp_use_ddc = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3DispUseDDC.setStatus('mandatory')
wbt3_disp_freq_max = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 256))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DispFreqMax.setStatus('mandatory')
wbt3_disp_horiz_pix_max = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DispHorizPixMax.setStatus('mandatory')
wbt3_disp_vert_pix_max = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DispVertPixMax.setStatus('mandatory')
wbt3_disp_color_max = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 4, 2, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DispColorMax.setStatus('mandatory')
wbt3_dhcp_info_num = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DhcpInfoNum.setStatus('mandatory')
wbt3_dhcp_info_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2))
if mibBuilder.loadTexts:
wbt3DhcpInfoTable.setStatus('mandatory')
wbt3_dhc_poption_i_ds = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3))
wbt3_dhcp_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3DhcpInfoIndex'))
if mibBuilder.loadTexts:
wbt3DhcpInfoEntry.setStatus('mandatory')
wbt3_dhcp_info_index = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DhcpInfoIndex.setStatus('mandatory')
wbt3_interface_num = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3InterfaceNum.setStatus('mandatory')
wbt3_server_ip = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3ServerIP.setStatus('mandatory')
wbt3_username = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3Username.setStatus('mandatory')
wbt3_domain = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3Domain.setStatus('mandatory')
wbt3_password = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('nopassword', 0), ('password', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3Password.setStatus('mandatory')
wbt3_command_line = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3CommandLine.setStatus('mandatory')
wbt3_working_dir = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 8), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3WorkingDir.setStatus('mandatory')
wbt3_file_server = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 9), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3FileServer.setStatus('mandatory')
wbt3_file_root_path = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 10), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3FileRootPath.setStatus('mandatory')
wbt3_trap_server_list = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 11), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3TrapServerList.setStatus('mandatory')
wbt3_set_community = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('ignored', 0), ('provided', 1), ('notprovided', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3SetCommunity.setStatus('mandatory')
wbt3_rd_pstart_app = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 13), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RDPstartApp.setStatus('mandatory')
wbt3_emulation_mode = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 14), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3EmulationMode.setStatus('mandatory')
wbt3_terminal_id = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 15), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3TerminalID.setStatus('mandatory')
wbt3_virtual_port_server = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 2, 1, 16), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3VirtualPortServer.setStatus('mandatory')
remote_server = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 1), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
remoteServer.setStatus('mandatory')
logon_user_name = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 2), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
logonUserName.setStatus('mandatory')
domain = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 3), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
domain.setStatus('mandatory')
password = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 4), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
password.setStatus('mandatory')
command_line = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 5), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
commandLine.setStatus('mandatory')
working_directory = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 6), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
workingDirectory.setStatus('mandatory')
f_tp_file_server = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 8), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fTPFileServer.setStatus('mandatory')
f_tp_root_path = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 9), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
fTPRootPath.setStatus('mandatory')
trap_server_list = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 10), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
trapServerList.setStatus('mandatory')
set_community = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 11), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
setCommunity.setStatus('mandatory')
r_dp_startup_app = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 7), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
rDPStartupApp.setStatus('mandatory')
emulation_mode = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 12), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
emulationMode.setStatus('mandatory')
terminal_id = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 13), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
terminalID.setStatus('mandatory')
virtual_port_server = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 5, 3, 14), integer32().subtype(subtypeSpec=value_range_constraint(128, 254))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
virtualPortServer.setStatus('mandatory')
wbt3_current_info = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1))
wbt3_dhcp_update_info = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2))
wbt3_cur_info_num = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3CurInfoNum.setStatus('mandatory')
wbt3_cur_info_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2))
if mibBuilder.loadTexts:
wbt3CurInfoTable.setStatus('mandatory')
wbt3_cur_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3DhcpInfoIndex'))
if mibBuilder.loadTexts:
wbt3CurInfoEntry.setStatus('mandatory')
wbt3_cur_info_index = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3CurInfoIndex.setStatus('mandatory')
wbt3_cur_build_num = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3CurBuildNum.setStatus('mandatory')
wbt3_cur_oem_build_num = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3CurOEMBuildNum.setStatus('mandatory')
wbt3_cur_mod_build_date = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3CurModBuildDate.setStatus('mandatory')
wbt3_cur_oem = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3CurOEM.setStatus('mandatory')
wbt3_cur_hw_platform = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3CurHWPlatform.setStatus('mandatory')
wbt3_cur_os = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 1, 2, 1, 7), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3CurOS.setStatus('mandatory')
wbt3_d_up_info_num = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DUpInfoNum.setStatus('mandatory')
wbt3_d_up_info_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2))
if mibBuilder.loadTexts:
wbt3DUpInfoTable.setStatus('mandatory')
wbt3_d_up_info_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3DUpInfoIndex'))
if mibBuilder.loadTexts:
wbt3DUpInfoEntry.setStatus('mandatory')
wbt3_d_up_info_index = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DUpInfoIndex.setStatus('mandatory')
wbt3_d_up_build_num = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DUpBuildNum.setStatus('mandatory')
wbt3_d_up_oem_build_num = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DUpOEMBuildNum.setStatus('mandatory')
wbt3_d_up_mod_build_date = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DUpModBuildDate.setStatus('mandatory')
wbt3_d_up_oem_build_date = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 6, 2, 2, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3DUpOEMBuildDate.setStatus('mandatory')
wbt3_custom_field1 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 7, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3CustomField1.setStatus('mandatory')
wbt3_custom_field2 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 7, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3CustomField2.setStatus('mandatory')
wbt3_custom_field3 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 7, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3CustomField3.setStatus('mandatory')
wbt3_up_dn_load = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1))
wbt3_action = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 2))
wbt3_ft_psetting = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3))
wbt3_snm_pupdate = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3SNMPupdate.setStatus('mandatory')
wbt3_dhc_pupdate = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3DHCPupdate.setStatus('mandatory')
wbt3_up_dn_load_num = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadNum.setStatus('mandatory')
wbt3_up_dn_load_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2))
if mibBuilder.loadTexts:
wbt3UpDnLoadTable.setStatus('mandatory')
wbt3_accept_req = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AcceptReq.setStatus('mandatory')
wbt3_submit_load_job = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('notready', 0), ('ready', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3SubmitLoadJob.setStatus('mandatory')
wbt3_up_dn_load_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3UpDnLoadIndex'))
if mibBuilder.loadTexts:
wbt3UpDnLoadEntry.setStatus('mandatory')
wbt3_up_dn_load_index = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadIndex.setStatus('mandatory')
wbt3_up_dn_load_id = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadId.setStatus('mandatory')
wbt3_up_dn_load_op = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('upload', 0), ('download', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadOp.setStatus('mandatory')
wbt3_up_dn_load_src_file = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadSrcFile.setStatus('mandatory')
wbt3_up_dn_load_dst_file = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadDstFile.setStatus('mandatory')
wbt3_up_dn_load_file_type = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('binary', 0), ('ascii', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadFileType.setStatus('mandatory')
wbt3_up_dn_load_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ftp', 0), ('tftp', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadProtocol.setStatus('mandatory')
wbt3_up_dn_load_f_server = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadFServer.setStatus('mandatory')
wbt3_up_dn_load_time_flag = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 1, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0))).clone(namedValues=named_values(('immediate', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UpDnLoadTimeFlag.setStatus('mandatory')
wbt3_reboot_request = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('noreboot', 0), ('rebootnow', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RebootRequest.setStatus('mandatory')
wbt3_reset_to_factory_default = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('noreset', 0), ('resetnow', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ResetToFactoryDefault.setStatus('mandatory')
wbt3_server_name = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ServerName.setStatus('mandatory')
wbt3_directory = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Directory.setStatus('mandatory')
wbt3_user_id = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UserID.setStatus('mandatory')
wbt3_password2 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Password2.setStatus('mandatory')
wbt3_save_password = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3SavePassword.setStatus('mandatory')
wbt3_info_location = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 3, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('uselocalinfo', 0), ('usedhcpinfo', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3InfoLocation.setStatus('mandatory')
wbt3_security = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7))
wbt3_security_enable = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3SecurityEnable.setStatus('mandatory')
wbt3_hide_config_tab = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3HideConfigTab.setStatus('mandatory')
wbt3_fail_over_enable = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3FailOverEnable.setStatus('mandatory')
wbt3_multiple_connect = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3MultipleConnect.setStatus('mandatory')
wbt3_ping_before_connect = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3PingBeforeConnect.setStatus('mandatory')
wbt3_verbose = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Verbose.setStatus('mandatory')
wbt3_auto_login_enable = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoLoginEnable.setStatus('mandatory')
wbt3_auto_login_user_name = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoLoginUserName.setStatus('mandatory')
wbt3_single_button_connect = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3SingleButtonConnect.setStatus('mandatory')
wbt3_auto_fail_recovery = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 8, 7, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoFailRecovery.setStatus('mandatory')
wbt3_trap_status = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 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))).clone(namedValues=named_values(('ls-done', 0), ('ls-done-sameversion', 1), ('ls-notready', 2), ('ls-fail-shutdown', 3), ('ls-fail-noupd', 4), ('ls-fail-dnld-blocked', 5), ('ls-fail-filenotfound', 6), ('ls-fail-dir', 7), ('ls-fail-upld-blocked', 8), ('ls-fail-noserv', 9), ('ls-fail-prot', 10), ('ls-fail-nomem', 11), ('ls-fail-noresource', 12), ('ls-fail-resolvename', 13), ('ls-fail-notbundle', 14), ('ls-fail-checksum', 15), ('ls-fail-flasherror', 16), ('ls-fail-dnld-flash', 17), ('ls-fail-usercancel', 18), ('ls-fail-norflash', 19), ('ls-fail-protnsupport', 20), ('ls-fail-parsereg', 21), ('ls-fail-parsereg-verincomp', 22), ('ls-fail-parsereg-platfincomp', 23), ('ls-fail-parsereg-osincomp', 24), ('ls-fail-reset-defaultfactory', 25), ('ls-fail-paraminifilenotfound', 26), ('ls-invalid-bootstrap', 27), ('ls-fail-badkey', 28)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3TrapStatus.setStatus('mandatory')
wbt3_trap_req_id = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 2), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3TrapReqId.setStatus('mandatory')
wbt3_trap_servers = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3))
wbt3_trap_server1 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TrapServer1.setStatus('mandatory')
wbt3_trap_server2 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TrapServer2.setStatus('mandatory')
wbt3_trap_server3 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TrapServer3.setStatus('mandatory')
wbt3_trap_server4 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 9, 3, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TrapServer4.setStatus('mandatory')
wbt3_mib_rev_major = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 10, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3MibRevMajor.setStatus('mandatory')
wbt3_mib_rev_minor = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 10, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3MibRevMinor.setStatus('mandatory')
wbt3_network_num = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3NetworkNum.setStatus('mandatory')
wbt3_network_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2))
if mibBuilder.loadTexts:
wbt3NetworkTable.setStatus('mandatory')
wbt3_network_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3NetworkIndex'))
if mibBuilder.loadTexts:
wbt3NetworkEntry.setStatus('mandatory')
wbt3_network_index = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3NetworkIndex.setStatus('mandatory')
wbt3dhcp_enable = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3dhcpEnable.setStatus('mandatory')
wbt3_network_address = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3NetworkAddress.setStatus('mandatory')
wbt3_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3SubnetMask.setStatus('mandatory')
wbt3_gateway = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Gateway.setStatus('mandatory')
wbt3dns_enable = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3dnsEnable.setStatus('mandatory')
wbt3default_domain = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3defaultDomain.setStatus('mandatory')
wbt3primary_dn_sserver_i_paddress = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3primaryDNSserverIPaddress.setStatus('mandatory')
wbt3secondary_dn_sserver_i_paddress = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 9), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3secondaryDNSserverIPaddress.setStatus('mandatory')
wbt3wins_enable = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3winsEnable.setStatus('mandatory')
wbt3primary_win_sserver_i_paddress = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 11), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3primaryWINSserverIPaddress.setStatus('mandatory')
wbt3secondary_win_sserver_i_paddress = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 12), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3secondaryWINSserverIPaddress.setStatus('mandatory')
wbt3_network_speed = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 9, 8, 7, 6))).clone(namedValues=named_values(('auto-detect', 0), ('mbs-10halfduplex', 9), ('mbs-10fullduplex', 8), ('mbs-100halfduplex', 7), ('mbs-100fullduplex', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3NetworkSpeed.setStatus('mandatory')
wbt3_network_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 11, 2, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 256))).clone(namedValues=named_values(('tcp-ip', 0), ('unknown', 256)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3NetworkProtocol.setStatus('mandatory')
wbt3_rd_pencryption = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('enable', 0), ('disable', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RDPencryption.setStatus('mandatory')
wbt3_virtual_port_server_i_paddress = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3VirtualPortServerIPaddress.setStatus('mandatory')
wbt3com1_share = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('yes', 0), ('no', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3com1Share.setStatus('mandatory')
wbt3com2_share = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('yes', 0), ('no', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3com2Share.setStatus('mandatory')
wbt3parallel_share = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('yes', 0), ('no', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3parallelShare.setStatus('mandatory')
i_ca_default_hotkeys = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6))
if mibBuilder.loadTexts:
iCADefaultHotkeys.setStatus('mandatory')
default_hotkeys_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1))
if mibBuilder.loadTexts:
defaultHotkeysEntry.setStatus('mandatory')
i_ca_status_dialog = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ctrl', 0), ('shift', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAStatusDialog.setStatus('mandatory')
i_ca_status_dialog2 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('nb-0', 0), ('nb-1', 1), ('nb-2', 2), ('nb-3', 3), ('nb-4', 4), ('nb-5', 5), ('nb-6', 6), ('nb-7', 7), ('nb-8', 8), ('nb-9', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAStatusDialog2.setStatus('mandatory')
i_ca_close_remote_application = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ctrl', 0), ('shift', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCACloseRemoteApplication.setStatus('mandatory')
i_ca_close_remote_application2 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('nb-0', 0), ('nb-1', 1), ('nb-2', 2), ('nb-3', 3), ('nb-4', 4), ('nb-5', 5), ('nb-6', 6), ('nb-7', 7), ('nb-8', 8), ('nb-9', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCACloseRemoteApplication2.setStatus('mandatory')
i_c_atoggle_title_bar = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ctrl', 0), ('shift', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAtoggleTitleBar.setStatus('mandatory')
i_c_atoggle_title_bar2 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('nb-0', 0), ('nb-1', 1), ('nb-2', 2), ('nb-3', 3), ('nb-4', 4), ('nb-5', 5), ('nb-6', 6), ('nb-7', 7), ('nb-8', 8), ('nb-9', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAtoggleTitleBar2.setStatus('mandatory')
i_c_actrl_alt_del = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0))).clone(namedValues=named_values(('ctrl', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCActrlAltDel.setStatus('mandatory')
i_c_actrl_alt_del2 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('nb-0', 0), ('nb-1', 1), ('nb-2', 2), ('nb-3', 3), ('nb-4', 4), ('nb-5', 5), ('nb-6', 6), ('nb-7', 7), ('nb-8', 8), ('nb-9', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCActrlAltDel2.setStatus('mandatory')
i_c_actrl_esc = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0))).clone(namedValues=named_values(('ctrl', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCActrlEsc.setStatus('mandatory')
i_c_actrl_esc2 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('nb-0', 0), ('nb-1', 1), ('nb-2', 2), ('nb-3', 3), ('nb-4', 4), ('nb-5', 5), ('nb-6', 6), ('nb-7', 7), ('nb-8', 8), ('nb-9', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCActrlEsc2.setStatus('mandatory')
i_c_aalt_esc = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ctrl', 0), ('shift', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAaltEsc.setStatus('mandatory')
i_c_aalt_esc2 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('nb-0', 0), ('nb-1', 1), ('nb-2', 2), ('nb-3', 3), ('nb-4', 4), ('nb-5', 5), ('nb-6', 6), ('nb-7', 7), ('nb-8', 8), ('nb-9', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAaltEsc2.setStatus('mandatory')
i_c_aalt_tab = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ctrl', 0), ('shift', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAaltTab.setStatus('mandatory')
i_c_aalt_tab2 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('nb-0', 0), ('nb-1', 1), ('nb-2', 2), ('nb-3', 3), ('nb-4', 4), ('nb-5', 5), ('nb-6', 6), ('nb-7', 7), ('nb-8', 8), ('nb-9', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAaltTab2.setStatus('mandatory')
i_c_aalt_back_tab = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('ctrl', 0), ('shift', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAaltBackTab.setStatus('mandatory')
i_c_aalt_back_tab2 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 12, 6, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('nb-0', 0), ('nb-1', 1), ('nb-2', 2), ('nb-3', 3), ('nb-4', 4), ('nb-5', 5), ('nb-6', 6), ('nb-7', 7), ('nb-8', 8), ('nb-9', 9)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
iCAaltBackTab2.setStatus('mandatory')
wbt3_connections_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2))
if mibBuilder.loadTexts:
wbt3ConnectionsTable.setStatus('mandatory')
wbt3_connection_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3ConnectionName'))
if mibBuilder.loadTexts:
wbt3ConnectionEntry.setStatus('mandatory')
wbt3_connection_name = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ConnectionName.setStatus('mandatory')
wbt3_connection_type = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('rdp', 0), ('ica', 1), ('tec', 2), ('dialup', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ConnectionType.setStatus('mandatory')
wbt3_connection_entry_status = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ConnectionEntryStatus.setStatus('mandatory')
wbt3_rdp_connections = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3))
wbt3_rdp_conn_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1))
if mibBuilder.loadTexts:
wbt3RDPConnTable.setStatus('mandatory')
wbt3_rdp_conn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1))
if mibBuilder.loadTexts:
wbt3RDPConnEntry.setStatus('mandatory')
wbt3_rdp_conn_name = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RDPConnName.setStatus('mandatory')
wbt3_rdp_conn_server = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RDPConnServer.setStatus('mandatory')
wbt3_rdp_conn_low_speed = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RDPConnLowSpeed.setStatus('mandatory')
wbt3_rdp_conn_auto_logon = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RDPConnAutoLogon.setStatus('mandatory')
wbt3_rdp_conn_username = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RDPConnUsername.setStatus('mandatory')
wbt3_rdp_conn_domain = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RDPConnDomain.setStatus('mandatory')
wbt3_rdp_conn_start_application = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 2))).clone(namedValues=named_values(('desktop', 0), ('filename', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RDPConnStartApplication.setStatus('mandatory')
wbt3_rdp_conn_filename = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 9), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RDPConnFilename.setStatus('mandatory')
wbt3_rdp_conn_working_dir = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 10), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3RDPConnWorkingDir.setStatus('mandatory')
wbt3_rdp_conn_modifiable = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 3, 1, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3RDPConnModifiable.setStatus('mandatory')
wbt3_ica_connections = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4))
wbt3_ica_conn_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1))
if mibBuilder.loadTexts:
wbt3ICAConnTable.setStatus('mandatory')
wbt3_ica_conn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1))
if mibBuilder.loadTexts:
wbt3ICAConnEntry.setStatus('mandatory')
wbt3_ica_conn_name = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3ICAConnName.setStatus('mandatory')
wbt3_ica_conn_comm_type = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0))).clone(namedValues=named_values(('network', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ICAConnCommType.setStatus('mandatory')
wbt3_ica_conn_server = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ICAConnServer.setStatus('mandatory')
wbt3_ica_conn_command_line = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ICAConnCommandLine.setStatus('mandatory')
wbt3_ica_conn_working_dir = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ICAConnWorkingDir.setStatus('mandatory')
wbt3_ica_conn_username = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 6), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ICAConnUsername.setStatus('mandatory')
wbt3_ica_conn_domain = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ICAConnDomain.setStatus('mandatory')
wbt3_ica_conn_colors = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('nb-16', 0), ('nb-256', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ICAConnColors.setStatus('mandatory')
wbt3_ica_conn_data_compress = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ICAConnDataCompress.setStatus('mandatory')
wbt3_ica_conn_sound_quality = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('none', 0), ('low', 1), ('medium', 2), ('high', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3ICAConnSoundQuality.setStatus('mandatory')
wbt3_ica_conn_modifiable = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 4, 1, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3ICAConnModifiable.setStatus('mandatory')
wbt3_term_connections = mib_identifier((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5))
wbt3_term_conn_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1))
if mibBuilder.loadTexts:
wbt3TermConnTable.setStatus('mandatory')
wbt3_term_conn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1))
if mibBuilder.loadTexts:
wbt3TermConnEntry.setStatus('mandatory')
wbt3_term_conn_name = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3TermConnName.setStatus('mandatory')
wbt3_term_conn_comm_type = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0))).clone(namedValues=named_values(('network', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnCommType.setStatus('mandatory')
wbt3_term_conn_server = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnServer.setStatus('mandatory')
wbt3_term_conn_emu_type = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=named_values(('vt52', 0), ('vt100', 1), ('vt400-7-bit', 3), ('vt400-8-bit', 4), ('ansi-bbs', 5), ('sco-console', 6), ('ibm3270', 7), ('ibm3151', 8), ('ibm5250', 9), ('wy50', 10), ('wy50-plus', 11), ('tvi910', 12), ('tvi920', 13), ('tvi925', 14), ('adds-a2', 15), ('hz1500', 16), ('wy60', 17)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnEmuType.setStatus('mandatory')
wbt3_term_conn_vt_emu_model = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 256))).clone(namedValues=named_values(('vt100', 0), ('vt101', 1), ('vt102', 2), ('vt125', 3), ('vt220', 4), ('vt240', 5), ('vt320', 6), ('vt340', 7), ('vt420', 8), ('vt131', 9), ('vt132', 10), ('not-applicable', 256)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnVTEmuModel.setStatus('mandatory')
wbt3_term_conn_ibm3270_emu_model = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 256))).clone(namedValues=named_values(('ibm3278-2', 0), ('ibm3278-3', 1), ('ibm3278-4', 2), ('ibm3278-5', 3), ('ibm3278-2-e', 4), ('ibm3278-3-e', 5), ('ibm3278-4-e', 6), ('ibm3278-5-e', 7), ('ibm3279-2', 8), ('ibm3279-3', 9), ('ibm3279-4', 10), ('ibm3279-5', 11), ('ibm3287-1', 12), ('not-applicable', 256)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnIBM3270EmuModel.setStatus('mandatory')
wbt3_term_conn_ibm5250_emu_model = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 256))).clone(namedValues=named_values(('ibm5291-1', 0), ('ibm5292-2', 1), ('ibm5251-11', 2), ('ibm3179-2', 3), ('ibm3196-a1', 4), ('ibm3180-2', 5), ('ibm3477-fc', 6), ('ibm3477-fg', 7), ('ibm3486-ba', 8), ('ibm3487-ha', 9), ('ibm3487-hc', 10), ('not-applicable', 256)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnIBM5250EmuModel.setStatus('mandatory')
wbt3_term_conn_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnPortNumber.setStatus('mandatory')
wbt3_term_conn_telnet_name = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 11), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnTelnetName.setStatus('mandatory')
wbt3_term_conn_printer_port = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0))).clone(namedValues=named_values(('lpt1', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnPrinterPort.setStatus('mandatory')
wbt3_term_conn_form_feed = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnFormFeed.setStatus('mandatory')
wbt3_term_conn_auto_line_feed = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnAutoLineFeed.setStatus('mandatory')
wbt3_term_conn_script = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 15), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3TermConnScript.setStatus('mandatory')
wbt3_term_conn_modifiable = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 13, 5, 1, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wbt3TermConnModifiable.setStatus('mandatory')
wbt3_users_table = mib_table((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2))
if mibBuilder.loadTexts:
wbt3UsersTable.setStatus('mandatory')
wbt3_users_entry = mib_table_row((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1)).setIndexNames((0, 'WYSE-MIB', 'wbt3userName'))
if mibBuilder.loadTexts:
wbt3UsersEntry.setStatus('mandatory')
wbt3_users_status = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('active', 1), ('notInService', 2), ('notReady', 3), ('createAndGo', 4), ('createAndWait', 5), ('destroy', 6)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UsersStatus.setStatus('mandatory')
wbt3user_name = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 3), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3userName.setStatus('mandatory')
wbt3password = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3password.setStatus('mandatory')
wbt3privilege = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('admin', 0), ('user', 1), ('guest', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3privilege.setStatus('mandatory')
wbt3_connection1 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Connection1.setStatus('mandatory')
wbt3_connection2 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 8), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Connection2.setStatus('mandatory')
wbt3_connection3 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 9), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Connection3.setStatus('mandatory')
wbt3_connection4 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 10), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Connection4.setStatus('mandatory')
wbt3_connection5 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 11), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Connection5.setStatus('mandatory')
wbt3_connection6 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 12), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Connection6.setStatus('mandatory')
wbt3_connection7 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 13), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Connection7.setStatus('mandatory')
wbt3_connection8 = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 14), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3Connection8.setStatus('mandatory')
wbt3_auto_start1 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoStart1.setStatus('mandatory')
wbt3_auto_start2 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoStart2.setStatus('mandatory')
wbt3_auto_start3 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoStart3.setStatus('mandatory')
wbt3_auto_start4 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoStart4.setStatus('mandatory')
wbt3_auto_start5 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoStart5.setStatus('mandatory')
wbt3_auto_start6 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoStart6.setStatus('mandatory')
wbt3_auto_start7 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoStart7.setStatus('mandatory')
wbt3_auto_start8 = mib_scalar((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3AutoStart8.setStatus('mandatory')
wbt3_user_password_change = mib_table_column((1, 3, 6, 1, 4, 1, 714, 1, 2, 3, 14, 2, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('no', 0), ('yes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wbt3UserPasswordChange.setStatus('mandatory')
wbt3_trap_dhcp_build_mismatch = notification_type((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0, 1)).setObjects(('WYSE-MIB', 'wbt3CurBuildNum'), ('WYSE-MIB', 'wbt3CurOEMBuildNum'), ('WYSE-MIB', 'wbt3CurModBuildDate'), ('WYSE-MIB', 'wbt3DUpBuildNum'), ('WYSE-MIB', 'wbt3DUpOEMBuildNum'), ('WYSE-MIB', 'wbt3DUpOEMBuildDate'))
wbt3_trap_dhcp_upd_done = notification_type((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0, 2)).setObjects(('WYSE-MIB', 'wbt3CurBuildNum'), ('WYSE-MIB', 'wbt3CurOEMBuildNum'), ('WYSE-MIB', 'wbt3CurModBuildDate'), ('WYSE-MIB', 'wbt3DUpBuildNum'), ('WYSE-MIB', 'wbt3DUpOEMBuildNum'), ('WYSE-MIB', 'wbt3DUpOEMBuildDate'))
wbt3_trap_dhcp_upd_not_complete = notification_type((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0, 3)).setObjects(('WYSE-MIB', 'wbt3CurBuildNum'), ('WYSE-MIB', 'wbt3CurOEMBuildNum'), ('WYSE-MIB', 'wbt3CurModBuildDate'), ('WYSE-MIB', 'wbt3DUpBuildNum'), ('WYSE-MIB', 'wbt3DUpOEMBuildNum'), ('WYSE-MIB', 'wbt3DUpOEMBuildDate'), ('WYSE-MIB', 'wbt3TrapStatus'))
wbt3_trap_snmp_accpt_ld = notification_type((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0, 4)).setObjects(('WYSE-MIB', 'wbt3SubmitLoadJob'))
wbt3_trap_snmp_ld_done = notification_type((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0, 5)).setObjects(('WYSE-MIB', 'wbt3TrapReqId'))
wbt3_trap_snmp_ld_not_complete = notification_type((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0, 6)).setObjects(('WYSE-MIB', 'wbt3TrapReqId'), ('WYSE-MIB', 'wbt3TrapStatus'))
wbt3_trap_reboot_not_complete = notification_type((1, 3, 6, 1, 4, 1, 714, 1, 2, 3) + (0, 7)).setObjects(('WYSE-MIB', 'wbt3TrapStatus'))
mibBuilder.exportSymbols('WYSE-MIB', wbt3CustomField1=wbt3CustomField1, wbt3PCCardIndex=wbt3PCCardIndex, wbt3EnergySaver=wbt3EnergySaver, wbt3HideConfigTab=wbt3HideConfigTab, wbt3TrapServer3=wbt3TrapServer3, wbt3SetCommunity=wbt3SetCommunity, wbt3UpDnLoad=wbt3UpDnLoad, wbt3CurInfoNum=wbt3CurInfoNum, wbt3UpDnLoadIndex=wbt3UpDnLoadIndex, wbt3FailOverEnable=wbt3FailOverEnable, wbt3RDPConnections=wbt3RDPConnections, wbt3ICAConnColors=wbt3ICAConnColors, logonUserName=logonUserName, wbt3Connection6=wbt3Connection6, wbt3DispVertPixMax=wbt3DispVertPixMax, wbt3CharacterRepeatDelay=wbt3CharacterRepeatDelay, wbt3DhcpInfoIndex=wbt3DhcpInfoIndex, wbt3RDPConnUsername=wbt3RDPConnUsername, iCACloseRemoteApplication=iCACloseRemoteApplication, wbt3RDPencryption=wbt3RDPencryption, wbt3TrapDHCPUpdNotComplete=wbt3TrapDHCPUpdNotComplete, domain=domain, emulationMode=emulationMode, wbt3CurOEMBuildNum=wbt3CurOEMBuildNum, wbt3DHCPupdate=wbt3DHCPupdate, wbt3CustomField3=wbt3CustomField3, wbt3DUpOEMBuildDate=wbt3DUpOEMBuildDate, wbt3UpDnLoadTable=wbt3UpDnLoadTable, wbt3DUpOEMBuildNum=wbt3DUpOEMBuildNum, wbt3DispFreq=wbt3DispFreq, wbt3UpDnLoadProtocol=wbt3UpDnLoadProtocol, iCAaltBackTab2=iCAaltBackTab2, wbt3Username=wbt3Username, wbt3RDPConnStartApplication=wbt3RDPConnStartApplication, wbt3Password2=wbt3Password2, wbt3DispHorizPixMax=wbt3DispHorizPixMax, wbt3VirtualPortServerIPaddress=wbt3VirtualPortServerIPaddress, iCACloseRemoteApplication2=iCACloseRemoteApplication2, wbt3AutoStart1=wbt3AutoStart1, wbt3TrapSNMPAccptLd=wbt3TrapSNMPAccptLd, wbt3TrapSNMPLdNotComplete=wbt3TrapSNMPLdNotComplete, wbt3NetworkIndex=wbt3NetworkIndex, iCActrlEsc2=iCActrlEsc2, wbt3Password=wbt3Password, trapServerList=trapServerList, wbt3PingBeforeConnect=wbt3PingBeforeConnect, thinClient=thinClient, wbt3InfoLocation=wbt3InfoLocation, wbt3InterfaceNum=wbt3InterfaceNum, wysenet=wysenet, remoteServer=remoteServer, wbt3TrapStatus=wbt3TrapStatus, wbt3TrapServerList=wbt3TrapServerList, wbt3DhcpInfoEntry=wbt3DhcpInfoEntry, iCAaltEsc2=iCAaltEsc2, wbt3SubmitLoadJob=wbt3SubmitLoadJob, wbt3com1Share=wbt3com1Share, wbt3CurOS=wbt3CurOS, wbt3CurInfoIndex=wbt3CurInfoIndex, wbt3UsersEntry=wbt3UsersEntry, wbt3Domain=wbt3Domain, wbt3dhcpEnable=wbt3dhcpEnable, wbt3PCCard=wbt3PCCard, wbt3DUpInfoNum=wbt3DUpInfoNum, wbt3DUpInfoTable=wbt3DUpInfoTable, wbt3ICAConnCommandLine=wbt3ICAConnCommandLine, wbt3CurHWPlatform=wbt3CurHWPlatform, wbt3MibRev=wbt3MibRev, wbt3RDPConnFilename=wbt3RDPConnFilename, wbt3AutoLoginUserName=wbt3AutoLoginUserName, wbt3CommandLine=wbt3CommandLine, wbt3TermConnServer=wbt3TermConnServer, wbt3TrapServer1=wbt3TrapServer1, wbt3ConnectionEntry=wbt3ConnectionEntry, iCAtoggleTitleBar2=iCAtoggleTitleBar2, wbt3ICAConnWorkingDir=wbt3ICAConnWorkingDir, wbt3RomNum=wbt3RomNum, iCAtoggleTitleBar=iCAtoggleTitleBar, wbt3TermConnFormFeed=wbt3TermConnFormFeed, wbt3CurBuildNum=wbt3CurBuildNum, wbt3DispColorMax=wbt3DispColorMax, wbt3CurModBuildDate=wbt3CurModBuildDate, wbt3MultipleConnect=wbt3MultipleConnect, iCActrlAltDel2=iCActrlAltDel2, wbt3Connection2=wbt3Connection2, wbt3Directory=wbt3Directory, wbt3ICAConnTable=wbt3ICAConnTable, wbt3TermConnIBM5250EmuModel=wbt3TermConnIBM5250EmuModel, wbt3TrapSNMPLdDone=wbt3TrapSNMPLdDone, wbt3UpDnLoadOp=wbt3UpDnLoadOp, iCAStatusDialog2=iCAStatusDialog2, product=product, wbt3primaryWINSserverIPaddress=wbt3primaryWINSserverIPaddress, iCAStatusDialog=iCAStatusDialog, wbt3NetworkEntry=wbt3NetworkEntry, wbt3RomSize=wbt3RomSize, wbt3ConnectionsTable=wbt3ConnectionsTable, wbt3SecurityEnable=wbt3SecurityEnable, wbt3ICAConnServer=wbt3ICAConnServer, wbt3Connection1=wbt3Connection1, wbt3primaryDNSserverIPaddress=wbt3primaryDNSserverIPaddress, wbt3DhcpInfo=wbt3DhcpInfo, wbt3UserPasswordChange=wbt3UserPasswordChange, wbt3RebootRequest=wbt3RebootRequest, wbt3RDPstartApp=wbt3RDPstartApp, wbt3CharacterRepeatRate=wbt3CharacterRepeatRate, wbt3TermConnPrinterPort=wbt3TermConnPrinterPort, wbt3Connection7=wbt3Connection7, wbt3CurInfoEntry=wbt3CurInfoEntry, wbt3AutoStart3=wbt3AutoStart3, wbt3Rom=wbt3Rom, wbt3SubnetMask=wbt3SubnetMask, wbt3AutoStart2=wbt3AutoStart2, wbt3DispVertPix=wbt3DispVertPix, wbt3PCCardEntry=wbt3PCCardEntry, wbt3parallelShare=wbt3parallelShare, iCAaltBackTab=iCAaltBackTab, wbt3ICAConnDomain=wbt3ICAConnDomain, wbt3NetworkProtocol=wbt3NetworkProtocol, wbt3TermConnections=wbt3TermConnections, wbt3AutoStart8=wbt3AutoStart8, wbt3RDPConnServer=wbt3RDPConnServer, wbt3IODevice=wbt3IODevice, wbt3ICAConnUsername=wbt3ICAConnUsername, wbt3TermConnPortNumber=wbt3TermConnPortNumber, wbt3ICAConnCommType=wbt3ICAConnCommType, wbt3CurInfoTable=wbt3CurInfoTable, wbt3NetworkSpeed=wbt3NetworkSpeed, iCAaltTab=iCAaltTab, wbt3TermConnAutoLineFeed=wbt3TermConnAutoLineFeed, fTPFileServer=fTPFileServer, wbt3TermConnModifiable=wbt3TermConnModifiable, wbt3Connection8=wbt3Connection8, wbt3TrapServer4=wbt3TrapServer4, wbt3DispCharacteristic=wbt3DispCharacteristic, wbt3ICAConnModifiable=wbt3ICAConnModifiable, wbt3AutoStart7=wbt3AutoStart7, wbt3winsEnable=wbt3winsEnable, wbt3UpDnLoadDstFile=wbt3UpDnLoadDstFile, wbt3Memory=wbt3Memory, wbt3Connection5=wbt3Connection5, wbt3ServerName=wbt3ServerName, wbt3VirtualPortServer=wbt3VirtualPortServer, virtualPortServer=virtualPortServer, iCAaltEsc=iCAaltEsc, wbt3PCCardType=wbt3PCCardType, wbt3MibRevMajor=wbt3MibRevMajor, wbt3PCCardVendor=wbt3PCCardVendor, wbt3DhcpInfoTable=wbt3DhcpInfoTable, wbt3Verbose=wbt3Verbose, wbt3UpDnLoadId=wbt3UpDnLoadId, wbt3RamNum=wbt3RamNum, wbt3dnsEnable=wbt3dnsEnable, wbt3Network=wbt3Network, wbt3TouchScreen=wbt3TouchScreen, wbt3RomType=wbt3RomType, wbt3ConnectionEntryStatus=wbt3ConnectionEntryStatus, wbt3RDPConnLowSpeed=wbt3RDPConnLowSpeed, wbt3ICAConnections=wbt3ICAConnections, wbt3UserID=wbt3UserID, wbt3ICAConnDataCompress=wbt3ICAConnDataCompress, wbt3Gateway=wbt3Gateway, wbt3RamType=wbt3RamType, wbt3SavePassword=wbt3SavePassword, fTPRootPath=fTPRootPath, wbt3ICAConnEntry=wbt3ICAConnEntry, terminalID=terminalID, wbt3ConnectionType=wbt3ConnectionType, wbt3Connection4=wbt3Connection4, wbt3RomEntry=wbt3RomEntry, wbt3AutoStart4=wbt3AutoStart4, wbt3Connections=wbt3Connections, wbt3PCCardTable=wbt3PCCardTable, iCAaltTab2=iCAaltTab2, wbt3Display=wbt3Display, wbt3Apps=wbt3Apps, wbt3TermConnVTEmuModel=wbt3TermConnVTEmuModel, wbt3RomIndex=wbt3RomIndex, rDPStartupApp=rDPStartupApp, wbt3TrapRebootNotComplete=wbt3TrapRebootNotComplete, wbt3CustomFields=wbt3CustomFields, wbt3SingleButtonConnect=wbt3SingleButtonConnect, wbt3FTPsetting=wbt3FTPsetting, wbt3UpDnLoadEntry=wbt3UpDnLoadEntry, wbt3TermConnEmuType=wbt3TermConnEmuType, wbt3AutoFailRecovery=wbt3AutoFailRecovery, wbt3RamTable=wbt3RamTable, wbt3DispCapability=wbt3DispCapability, wbt3NetworkAddress=wbt3NetworkAddress, wbt3RDPConnName=wbt3RDPConnName, wbt3RDPConnEntry=wbt3RDPConnEntry, wbt3NetworkNum=wbt3NetworkNum, wbt3DispHorizPix=wbt3DispHorizPix, wbt3BuildInfo=wbt3BuildInfo, wbt3CurrentInfo=wbt3CurrentInfo, wbt3RDPConnWorkingDir=wbt3RDPConnWorkingDir, wbt3RDPConnTable=wbt3RDPConnTable, wbt3kbLanguage=wbt3kbLanguage, wbt3TerminalID=wbt3TerminalID, wbt3DUpModBuildDate=wbt3DUpModBuildDate, wbt3Security=wbt3Security, wbt3RamSize=wbt3RamSize, wbt3ResetToFactoryDefault=wbt3ResetToFactoryDefault, wbt3TrapServer2=wbt3TrapServer2, wbt3Administration=wbt3Administration, wbt3WorkingDir=wbt3WorkingDir, wbt3DUpBuildNum=wbt3DUpBuildNum, wbt3UpDnLoadNum=wbt3UpDnLoadNum, wbt3UsersStatus=wbt3UsersStatus, wbt3Connection3=wbt3Connection3, wbt3RDPConnDomain=wbt3RDPConnDomain, password=password, old=old, wbt3DUpInfoEntry=wbt3DUpInfoEntry, wbt3RomTable=wbt3RomTable, wbt3TrapReqId=wbt3TrapReqId, wbt3secondaryWINSserverIPaddress=wbt3secondaryWINSserverIPaddress, wbt3ScreenTimeOut=wbt3ScreenTimeOut, wbt3TrapDHCPUpdDone=wbt3TrapDHCPUpdDone, wbt3com2Share=wbt3com2Share, wbt3SNMPupdate=wbt3SNMPupdate, wbt3UsersTable=wbt3UsersTable, wbt3privilege=wbt3privilege, wbt3FileServer=wbt3FileServer, wbt3RamIndex=wbt3RamIndex, wbt3AutoLoginEnable=wbt3AutoLoginEnable, wbt3DispUseDDC=wbt3DispUseDDC, workingDirectory=workingDirectory, wbt3DUpInfoIndex=wbt3DUpInfoIndex, iCActrlEsc=iCActrlEsc, wbt3CurOEM=wbt3CurOEM, wbt3TermConnTable=wbt3TermConnTable, wbt3TermConnName=wbt3TermConnName, defaultHotkeysEntry=defaultHotkeysEntry, wbt3EmulationMode=wbt3EmulationMode, iCADefaultHotkeys=iCADefaultHotkeys, wbt3AutoStart6=wbt3AutoStart6, wbt3DhcpUpdateInfo=wbt3DhcpUpdateInfo, wbt3TermConnScript=wbt3TermConnScript, wbt3Action=wbt3Action, wbt3ICAConnName=wbt3ICAConnName, wbt3Ram=wbt3Ram, wbt3DispColor=wbt3DispColor, wbt3DispFreqMax=wbt3DispFreqMax, wbt3=wbt3, setCommunity=setCommunity, wbt3DhcpInfoNum=wbt3DhcpInfoNum, iCActrlAltDel=iCActrlAltDel, wbt3TrapsInfo=wbt3TrapsInfo, wbt3AcceptReq=wbt3AcceptReq, wbt3NetworkTable=wbt3NetworkTable, wbt3ConnectionName=wbt3ConnectionName, wbt3UpDnLoadTimeFlag=wbt3UpDnLoadTimeFlag, wbt3ICAConnSoundQuality=wbt3ICAConnSoundQuality)
mibBuilder.exportSymbols('WYSE-MIB', wbt3TermConnIBM3270EmuModel=wbt3TermConnIBM3270EmuModel, wbt3userName=wbt3userName, wbt3secondaryDNSserverIPaddress=wbt3secondaryDNSserverIPaddress, wbt3DHCPoptionIDs=wbt3DHCPoptionIDs, wbt3ServerIP=wbt3ServerIP, wbt3AutoStart5=wbt3AutoStart5, wbt3RDPConnModifiable=wbt3RDPConnModifiable, wbt3RamEntry=wbt3RamEntry, wbt3IODevAttached=wbt3IODevAttached, wbt3TrapServers=wbt3TrapServers, wbt3password=wbt3password, wbt3Users=wbt3Users, wbt3TermConnTelnetName=wbt3TermConnTelnetName, wbt3PCCardNum=wbt3PCCardNum, wbt3MibRevMinor=wbt3MibRevMinor, wbt3FileRootPath=wbt3FileRootPath, wbt3CustomField2=wbt3CustomField2, wbt3defaultDomain=wbt3defaultDomain, wbt3RDPConnAutoLogon=wbt3RDPConnAutoLogon, wbt3UpDnLoadSrcFile=wbt3UpDnLoadSrcFile, wbt3TermConnEntry=wbt3TermConnEntry, wbt3TermConnCommType=wbt3TermConnCommType, commandLine=commandLine, wbt3TrapDHCPBuildMismatch=wbt3TrapDHCPBuildMismatch, wbt3UpDnLoadFileType=wbt3UpDnLoadFileType, wbt3UpDnLoadFServer=wbt3UpDnLoadFServer, wyse=wyse)
|
age = input("How old are you? ")
height = input("How tall are you? ") # "TypeError: input expected at most 1 arguments, got 2" will raise if more than 1 string is pu inside input()
weight = input("How much do you weight? ")
print(f"So, you're {age} old, {height} tall and {weight} heavy.")
#-------------------------------------------------------------------
print("-------------------------------------------------------------")
#Some extension based on above statement
age = int(input("How old are you? "))
height = input(f"You are {age}? Nice. \nHow tall are you? ")
weight = input("How much do you weight? ")
print(f"So, you're {age} old, {height} tall and {weight} heavy.")
# python -m pydoc input
|
age = input('How old are you? ')
height = input('How tall are you? ')
weight = input('How much do you weight? ')
print(f"So, you're {age} old, {height} tall and {weight} heavy.")
print('-------------------------------------------------------------')
age = int(input('How old are you? '))
height = input(f'You are {age}? Nice. \nHow tall are you? ')
weight = input('How much do you weight? ')
print(f"So, you're {age} old, {height} tall and {weight} heavy.")
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright SquirrelNetwork
class Config(object):
###########################
## DATABASE SETTINGS ##
##########################
HOST = 'localhost'
PORT = 3306
USER = 'usr'
PASSWORD = 'pws'
DBNAME = 'dbname'
###########################
## TELEGRAM SETTINGS ##
##########################
BOT_TOKEN = 'INSERT TOKEN HERE'
SUPERADMIN = {
'foo': 123456789,
'bar': 123456789
}
OWNER = {
'foo': 123456789,
'bar': 123456789
}
DEFAULT_WELCOME = "Welcome {} to the {} group"
DEFAULT_RULES = "https://github.com/Squirrel-Network/GroupRules"
DEFAULT_LOG_CHANNEL = -123456789
DEFAULT_STAFF_GROUP = -123456789
###########################
## PROJECT SETTINGS ##
##########################
OPENWEATHER_API = 'Insert Token'
ENABLE_PLUGINS = True
DEFAULT_LANGUAGE = "EN"
VERSION = '8.0.2'
VERSION_NAME = 'Hatterene'
REPO = 'https://github.com/Squirrel-Network/nebula8'
DEBUG = True
|
class Config(object):
host = 'localhost'
port = 3306
user = 'usr'
password = 'pws'
dbname = 'dbname'
bot_token = 'INSERT TOKEN HERE'
superadmin = {'foo': 123456789, 'bar': 123456789}
owner = {'foo': 123456789, 'bar': 123456789}
default_welcome = 'Welcome {} to the {} group'
default_rules = 'https://github.com/Squirrel-Network/GroupRules'
default_log_channel = -123456789
default_staff_group = -123456789
openweather_api = 'Insert Token'
enable_plugins = True
default_language = 'EN'
version = '8.0.2'
version_name = 'Hatterene'
repo = 'https://github.com/Squirrel-Network/nebula8'
debug = True
|
#!/usr/bin/env python3
class TrieNode(object):
"""
This class represents a node in a trie
"""
def __init__(self, text: str):
"""
Constructor: initialize a trie node with a given text string
:param text: text string at this trie node
"""
self.__text = text
self.__children = {}
self.__ends_word = False
def get_ends_word(self):
"""
Does this node end a word?
:return: True if this node ends a word, False otherwise
"""
return self.__ends_word
def set_ends_word(self, ends_word: bool):
"""
Set whether or not this node ends a word in a trie
:param ends_word: value determining whether this node ends a word
:return: None
"""
self.__ends_word = ends_word
def get_child(self, char: str):
"""
Return the child trie node that is found when you follow the link from the given character
:param char: the character in the key
:return: the trie node the given character links to, or None if that link is not in trie
"""
if char in self.__children.keys():
return self.__children[char]
else:
return None
def insert(self, char: str):
"""
Insert a character at this trie node
:param char: the character to be inserted
:return: the newly created trie node, or None if the character is already in the trie
"""
if char not in self.__children:
next_node = TrieNode(self.__text + char)
self.__children[char] = next_node
return next_node
else:
return None
|
class Trienode(object):
"""
This class represents a node in a trie
"""
def __init__(self, text: str):
"""
Constructor: initialize a trie node with a given text string
:param text: text string at this trie node
"""
self.__text = text
self.__children = {}
self.__ends_word = False
def get_ends_word(self):
"""
Does this node end a word?
:return: True if this node ends a word, False otherwise
"""
return self.__ends_word
def set_ends_word(self, ends_word: bool):
"""
Set whether or not this node ends a word in a trie
:param ends_word: value determining whether this node ends a word
:return: None
"""
self.__ends_word = ends_word
def get_child(self, char: str):
"""
Return the child trie node that is found when you follow the link from the given character
:param char: the character in the key
:return: the trie node the given character links to, or None if that link is not in trie
"""
if char in self.__children.keys():
return self.__children[char]
else:
return None
def insert(self, char: str):
"""
Insert a character at this trie node
:param char: the character to be inserted
:return: the newly created trie node, or None if the character is already in the trie
"""
if char not in self.__children:
next_node = trie_node(self.__text + char)
self.__children[char] = next_node
return next_node
else:
return None
|
# --- Day 12: Passage Pathing ---
# With your submarine's subterranean subsystems subsisting suboptimally, the only way you're getting out of this cave anytime soon is by finding a path yourself. Not just a path - the only way to know if you've found the best path is to find all of them.
#
# Fortunately, the sensors are still mostly working, and so you build a rough map of the remaining caves (your puzzle input). For example:
#
# start-A
# start-b
# A-c
# A-b
# b-d
# A-end
# b-end
# This is a list of how all of the caves are connected. You start in the cave named start, and your destination is the cave named end. An entry like b-d means that cave b is connected to cave d - that is, you can move between them.
#
# So, the above cave system looks roughly like this:
#
# start
# / \
# c--A-----b--d
# \ /
# end
# Your goal is to find the number of distinct paths that start at start, end at end, and don't visit small caves more than once. There are two types of caves: big caves (written in uppercase, like A) and small caves (written in lowercase, like b). It would be a waste of time to visit any small cave more than once, but big caves are large enough that it might be worth visiting them multiple times. So, all paths you find should visit small caves at most once, and can visit big caves any number of times.
#
# Given these rules, there are 10 paths through this example cave system:
#
# start,A,b,A,c,A,end
# start,A,b,A,end
# start,A,b,end
# start,A,c,A,b,A,end
# start,A,c,A,b,end
# start,A,c,A,end
# start,A,end
# start,b,A,c,A,end
# start,b,A,end
# start,b,end
# (Each line in the above list corresponds to a single path; the caves visited by that path are listed in the order they are visited and separated by commas.)
#
# Note that in this cave system, cave d is never visited by any path: to do so, cave b would need to be visited twice (once on the way to cave d and a second time when returning from cave d), and since cave b is small, this is not allowed.
#
# Here is a slightly larger example:
#
# dc-end
# HN-start
# start-kj
# dc-start
# dc-HN
# LN-dc
# HN-end
# kj-sa
# kj-HN
# kj-dc
# The 19 paths through it are as follows:
#
# start,HN,dc,HN,end
# start,HN,dc,HN,kj,HN,end
# start,HN,dc,end
# start,HN,dc,kj,HN,end
# start,HN,end
# start,HN,kj,HN,dc,HN,end
# start,HN,kj,HN,dc,end
# start,HN,kj,HN,end
# start,HN,kj,dc,HN,end
# start,HN,kj,dc,end
# start,dc,HN,end
# start,dc,HN,kj,HN,end
# start,dc,end
# start,dc,kj,HN,end
# start,kj,HN,dc,HN,end
# start,kj,HN,dc,end
# start,kj,HN,end
# start,kj,dc,HN,end
# start,kj,dc,end
# Finally, this even larger example has 226 paths through it:
#
# fs-end
# he-DX
# fs-he
# start-DX
# pj-DX
# end-zg
# zg-sl
# zg-pj
# pj-he
# RW-he
# fs-DX
# pj-RW
# zg-RW
# start-pj
# he-WI
# zg-he
# pj-fs
# start-RW
# How many paths through this cave system are there that visit small caves at most once?
#
# Your puzzle answer was 5457.
#
# --- Part Two ---
# After reviewing the available paths, you realize you might have time to visit a single small cave twice. Specifically, big caves can be visited any number of times, a single small cave can be visited at most twice, and the remaining small caves can be visited at most once. However, the caves named start and end can only be visited exactly once each: once you leave the start cave, you may not return to it, and once you reach the end cave, the path must end immediately.
#
# Now, the 36 possible paths through the first example above are:
#
# start,A,b,A,b,A,c,A,end
# start,A,b,A,b,A,end
# start,A,b,A,b,end
# start,A,b,A,c,A,b,A,end
# start,A,b,A,c,A,b,end
# start,A,b,A,c,A,c,A,end
# start,A,b,A,c,A,end
# start,A,b,A,end
# start,A,b,d,b,A,c,A,end
# start,A,b,d,b,A,end
# start,A,b,d,b,end
# start,A,b,end
# start,A,c,A,b,A,b,A,end
# start,A,c,A,b,A,b,end
# start,A,c,A,b,A,c,A,end
# start,A,c,A,b,A,end
# start,A,c,A,b,d,b,A,end
# start,A,c,A,b,d,b,end
# start,A,c,A,b,end
# start,A,c,A,c,A,b,A,end
# start,A,c,A,c,A,b,end
# start,A,c,A,c,A,end
# start,A,c,A,end
# start,A,end
# start,b,A,b,A,c,A,end
# start,b,A,b,A,end
# start,b,A,b,end
# start,b,A,c,A,b,A,end
# start,b,A,c,A,b,end
# start,b,A,c,A,c,A,end
# start,b,A,c,A,end
# start,b,A,end
# start,b,d,b,A,c,A,end
# start,b,d,b,A,end
# start,b,d,b,end
# start,b,end
# The slightly larger example above now has 103 paths through it, and the even larger example now has 3509 paths through it.
#
# Given these new rules, how many paths through this cave system are there?
#
# Your puzzle answer was 128506.
#
# Both parts of this puzzle are complete! They provide two gold stars: **
def load_input(file_name):
a_file = open(file_name, "r")
input = []
for line in a_file:
route = line.strip().split('-')
input.append(Path(route[0], route[1]))
return input
class Path:
start: str
end: str
def __init__(self, start, end):
self.start = start
self.end = end
class Route:
nodes: []
allow_one_double_visit: bool
def __init__(self, nodes, allow_one_double_visit=False):
self.nodes = nodes
self.allow_one_double_visit = allow_one_double_visit
def end(self):
return self.nodes[-1]
def can_pass_by(self, node):
if node == 'start' and 'start' in self.nodes:
return False
if node.islower() and node in self.nodes:
if not self.allow_one_double_visit:
return False
elif not self.has_double():
return True
else:
return False
else:
return True
def has_double(self):
lower_nodes = []
for node in self.nodes:
if not node.islower():
continue
elif node in lower_nodes:
return True
else:
lower_nodes.append(node)
return False
def finished(self):
if self.nodes[-1] == 'end':
return True
else:
return False
def __str__(self):
to_string = ''
for node in self.nodes:
to_string += node + ','
return to_string[:-1]
def problem_a():
# paths = load_input("day_12_sample.txt")
paths = load_input("day_12.txt")
new_routes = [Route(['start'])]
completed_routes = []
while len(new_routes) > 0:
new_routes, completed = routes_step(new_routes, paths, False)
completed_routes += completed
print_routes(completed_routes)
print("Result: ", len(completed_routes))
def problem_b():
# paths = load_input("day_12_sample.txt")
paths = load_input("day_12.txt")
new_routes = [Route(['start'])]
completed_routes = []
while len(new_routes) > 0:
new_routes, completed = routes_step(new_routes, paths, True)
completed_routes += completed
print_routes(completed_routes)
print("Result: ", len(completed_routes))
def routes_step(routes, paths, allow_double):
new_routes = []
completed_routes = []
for route in routes:
if route.finished():
completed_routes.append(route)
continue
for path in paths:
if route.end() == path.start:
if route.can_pass_by(path.end):
new_nodes = route.nodes.copy() + [path.end]
new_routes.append(Route(new_nodes, allow_double))
elif route.end() == path.end:
if route.can_pass_by(path.start):
new_nodes = route.nodes.copy() + [path.start]
new_routes.append(Route(new_nodes, allow_double))
return new_routes, completed_routes
def print_routes(routes):
for route in routes:
print(route)
if __name__ == '__main__':
problem_b()
|
def load_input(file_name):
a_file = open(file_name, 'r')
input = []
for line in a_file:
route = line.strip().split('-')
input.append(path(route[0], route[1]))
return input
class Path:
start: str
end: str
def __init__(self, start, end):
self.start = start
self.end = end
class Route:
nodes: []
allow_one_double_visit: bool
def __init__(self, nodes, allow_one_double_visit=False):
self.nodes = nodes
self.allow_one_double_visit = allow_one_double_visit
def end(self):
return self.nodes[-1]
def can_pass_by(self, node):
if node == 'start' and 'start' in self.nodes:
return False
if node.islower() and node in self.nodes:
if not self.allow_one_double_visit:
return False
elif not self.has_double():
return True
else:
return False
else:
return True
def has_double(self):
lower_nodes = []
for node in self.nodes:
if not node.islower():
continue
elif node in lower_nodes:
return True
else:
lower_nodes.append(node)
return False
def finished(self):
if self.nodes[-1] == 'end':
return True
else:
return False
def __str__(self):
to_string = ''
for node in self.nodes:
to_string += node + ','
return to_string[:-1]
def problem_a():
paths = load_input('day_12.txt')
new_routes = [route(['start'])]
completed_routes = []
while len(new_routes) > 0:
(new_routes, completed) = routes_step(new_routes, paths, False)
completed_routes += completed
print_routes(completed_routes)
print('Result: ', len(completed_routes))
def problem_b():
paths = load_input('day_12.txt')
new_routes = [route(['start'])]
completed_routes = []
while len(new_routes) > 0:
(new_routes, completed) = routes_step(new_routes, paths, True)
completed_routes += completed
print_routes(completed_routes)
print('Result: ', len(completed_routes))
def routes_step(routes, paths, allow_double):
new_routes = []
completed_routes = []
for route in routes:
if route.finished():
completed_routes.append(route)
continue
for path in paths:
if route.end() == path.start:
if route.can_pass_by(path.end):
new_nodes = route.nodes.copy() + [path.end]
new_routes.append(route(new_nodes, allow_double))
elif route.end() == path.end:
if route.can_pass_by(path.start):
new_nodes = route.nodes.copy() + [path.start]
new_routes.append(route(new_nodes, allow_double))
return (new_routes, completed_routes)
def print_routes(routes):
for route in routes:
print(route)
if __name__ == '__main__':
problem_b()
|
class Perfil:
def __init__(self,username,tipo="user"):
self.username = username
self.carritoDCompras = []
self.tipo = tipo
def AgregarACarrito(self, item):
self.carritoDCompras.append(item)
class Administrador(Perfil):
def __init__(self,username, tipo = "Admin"):
super().__init__(username, tipo)
self.tipo = "Admin"
def printUserData(self,username):
print(f'Data on {username.username}: Type= {username.tipo}')
print("En carrito de compras:",username.carritoDCompras)
class Reporter(Perfil):
def __init__(self,username,tipo="Reporter"):
super().__init__(username, tipo)
self.tipo = "Reporter"
def CheckCarrito(self,userVar):
print("En carrito de compras:",userVar.carritoDCompras)
user1 = Perfil("pepito")
user2 = Administrador("admin")
user3 = Reporter("reportero")
user1.AgregarACarrito("leche")
user1.AgregarACarrito("pan")
user1.AgregarACarrito("queso")
user2.printUserData(user1)
user3.CheckCarrito(user1)
# No me gusta como quedo.. no entendi muy bien el ejercicio...
|
class Perfil:
def __init__(self, username, tipo='user'):
self.username = username
self.carritoDCompras = []
self.tipo = tipo
def agregar_a_carrito(self, item):
self.carritoDCompras.append(item)
class Administrador(Perfil):
def __init__(self, username, tipo='Admin'):
super().__init__(username, tipo)
self.tipo = 'Admin'
def print_user_data(self, username):
print(f'Data on {username.username}: Type= {username.tipo}')
print('En carrito de compras:', username.carritoDCompras)
class Reporter(Perfil):
def __init__(self, username, tipo='Reporter'):
super().__init__(username, tipo)
self.tipo = 'Reporter'
def check_carrito(self, userVar):
print('En carrito de compras:', userVar.carritoDCompras)
user1 = perfil('pepito')
user2 = administrador('admin')
user3 = reporter('reportero')
user1.AgregarACarrito('leche')
user1.AgregarACarrito('pan')
user1.AgregarACarrito('queso')
user2.printUserData(user1)
user3.CheckCarrito(user1)
|
#
# PySNMP MIB module EFDATA-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/EFDATA-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:59:31 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, iso, Counter64, Counter32, Integer32, ModuleIdentity, enterprises, Unsigned32, ObjectIdentity, Gauge32, TimeTicks, MibIdentifier, NotificationType, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "iso", "Counter64", "Counter32", "Integer32", "ModuleIdentity", "enterprises", "Unsigned32", "ObjectIdentity", "Gauge32", "TimeTicks", "MibIdentifier", "NotificationType", "Bits")
PhysAddress, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "PhysAddress", "TextualConvention", "DisplayString")
efdata = MibIdentifier((1, 3, 6, 1, 4, 1, 6247))
spectracast = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3))
dtmx5000 = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1))
cbGateway = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1))
cbStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1))
cbStatGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1))
cbStatNumBytesTXed = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbStatNumBytesTXed.setStatus('mandatory')
if mibBuilder.loadTexts: cbStatNumBytesTXed.setDescription('Number of bytes transmitted since last statistics reset.')
cbStatNumOfPackets = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbStatNumOfPackets.setStatus('mandatory')
if mibBuilder.loadTexts: cbStatNumOfPackets.setDescription('Number of data packets transmitted since last statistics reset.')
cbStatAvrPktSize = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbStatAvrPktSize.setStatus('mandatory')
if mibBuilder.loadTexts: cbStatAvrPktSize.setDescription('Average packet size since last statistics reset.')
cbStatAvrBytesPerSec = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbStatAvrBytesPerSec.setStatus('mandatory')
if mibBuilder.loadTexts: cbStatAvrBytesPerSec.setDescription('Average speed in bytes per second since last statistics reset.')
cbStatNumPacketDiscarded = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbStatNumPacketDiscarded.setStatus('mandatory')
if mibBuilder.loadTexts: cbStatNumPacketDiscarded.setDescription('Number of data packets that were discarded since last statistics reset.')
cbStatNumNMSFrames = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbStatNumNMSFrames.setStatus('mandatory')
if mibBuilder.loadTexts: cbStatNumNMSFrames.setDescription('Number of NMS packets received since last statistics reset.')
cbCPULoad = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbCPULoad.setStatus('mandatory')
if mibBuilder.loadTexts: cbCPULoad.setDescription('Current CPU Load in percents (0-100).')
cbMemoryUsage = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbMemoryUsage.setStatus('mandatory')
if mibBuilder.loadTexts: cbMemoryUsage.setDescription('Current Memory Usage in percents (0-100).')
cbStatReset = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbTrue", 1), ("cbFalse", 0)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: cbStatReset.setStatus('mandatory')
if mibBuilder.loadTexts: cbStatReset.setDescription('Set to cbTrue in order to reset the general statistics values (either in active or non-active mode).')
cbStatNumClients = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbStatNumClients.setStatus('mandatory')
if mibBuilder.loadTexts: cbStatNumClients.setDescription('Number of clients currently connected to the Gateway. It is not part of the General Statistics since the cbStatReset does not change its value.')
cbStatClient = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2))
cbClientIP = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbClientIP.setStatus('mandatory')
if mibBuilder.loadTexts: cbClientIP.setDescription('The IP address of the client. The rest of the params in cbStatClient reffers to this IP. In order to get a statistics on a single clients, set cbClientIP to the IP of the desired client and get the results under cbClientStatistics. Continuously get operations of the rest of the params will give the updated statistics values without a need to set cbClientIP again and again.')
cbClientStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2))
cbClNumSeconds = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClNumSeconds.setStatus('mandatory')
if mibBuilder.loadTexts: cbClNumSeconds.setDescription('The number of seconds since the client statistics are active. The statistics values are reset automaticaly by the gateway (as well as by setting cbClReset) according to the value of cbFreqClientsInfoReset.')
cbClNumKBytes = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClNumKBytes.setStatus('mandatory')
if mibBuilder.loadTexts: cbClNumKBytes.setDescription('Number of bytes transmitted to IP==cbClientIP in the last cbClNumSeconds seconds.')
cbClNumPackets = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClNumPackets.setStatus('mandatory')
if mibBuilder.loadTexts: cbClNumPackets.setDescription('Number of packets transmitted to IP==cbClientIP in the last cbClNumSeconds seconds.')
cbClAvrBytesPerSecond = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClAvrBytesPerSecond.setStatus('mandatory')
if mibBuilder.loadTexts: cbClAvrBytesPerSecond.setDescription('Average transfer rate in bytes per second for this client.')
cbClNumPacketsDiscarded = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClNumPacketsDiscarded.setStatus('mandatory')
if mibBuilder.loadTexts: cbClNumPacketsDiscarded.setDescription('Number of packets discarded to IP==cbClientIP in the last cbClNumSeconds seconds.')
cbClStatReset = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbTrue", 1), ("cbFalse", 0)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: cbClStatReset.setStatus('mandatory')
if mibBuilder.loadTexts: cbClStatReset.setDescription('Set ot non-zero - Reset the statistics values for the client cbClientIP.')
cbClEncrEnbled = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbTrue", 1), ("cbFalse", 0)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClEncrEnbled.setStatus('mandatory')
if mibBuilder.loadTexts: cbClEncrEnbled.setDescription('If this variable is True then the user desire encryption. This value may not changed and it is NOT changed by setting cbClStatReset.')
cbStatClTable = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3))
cbClTable = MibTable((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1), )
if mibBuilder.loadTexts: cbClTable.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTable.setDescription('This table contains updated statistics of all clients known to the gateway.')
cbClTableNode = MibTableRow((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1), ).setIndexNames((0, "EFDATA-MIB", "cbClTableIP"))
if mibBuilder.loadTexts: cbClTableNode.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTableNode.setDescription('Information about a particular client.')
cbClTableIP = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClTableIP.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTableIP.setDescription('The clients IP.')
cbClTableStampTime = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClTableStampTime.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTableStampTime.setDescription('The clients Stamp Time.')
cbClTableStartTime = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClTableStartTime.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTableStartTime.setDescription('The clients Start Time.')
cbClTableTotalPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClTableTotalPackets.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTableTotalPackets.setDescription('Total Packets transmitted to this client.')
cbClTableBytesInSec = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClTableBytesInSec.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTableBytesInSec.setDescription('The clients Rate in Bytes/Sec.')
cbClTablePacketsDiscr = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClTablePacketsDiscr.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTablePacketsDiscr.setDescription('The Total Packets which were discarded to this client')
cbClTableKBytesTxed = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbClTableKBytesTxed.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTableKBytesTxed.setDescription('The Total KBytes transmitted to this client.')
cbClTableReset = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("cbNo", 0), ("cbYes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbClTableReset.setStatus('mandatory')
if mibBuilder.loadTexts: cbClTableReset.setDescription('Reset the client statistics.')
cbConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2))
cbNetworkParam = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1))
cbNetGatewayMngIP = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbNetGatewayMngIP.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetGatewayMngIP.setDescription('C&M IP Address. Changing this parameter will affect after system reset.')
cbNetGatewayMngSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbNetGatewayMngSubnetMask.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetGatewayMngSubnetMask.setDescription('C&M subnet mask. Changing this parameter will affect after system reset.')
cbNetDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbNetDefaultGateway.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetDefaultGateway.setDescription('The default gateway IP Address. The term gateway here, is reffering to another station in the same LAN of the CATV-Gateway. All IP packets that the CATV-Gateway is sending to the LAN (and not over the viedo) and their IP Address do not belong to the CATV-Gateway local ring will be sent to this gateway station unless cbNetDefaultGateway is 0.0.0.0 Changing this parameter will affect after system reset.')
cbNetPromiscuous = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbNetPromiscuous.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetPromiscuous.setDescription('Enables/Disables Promiscuous Mode. Changing this parameter will affect after system reset.')
cbNetUnregisteredUsers = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbNetUnregisteredUsers.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetUnregisteredUsers.setDescription('Enables/Disables Unregistered Users.')
cbNetMulticast = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbNetMulticast.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetMulticast.setDescription('Enables/Disables receive Multicast Packets.')
cbNetDualNIC = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbNetDualNIC.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetDualNIC.setDescription('Enables/Disables Transportation NIC Changing this parameter will affect after system reset.')
cbNetGatewayDataIP = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 8), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbNetGatewayDataIP.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetGatewayDataIP.setDescription('Transportation IP Address. Changing this parameter will affect after system reset.')
cbNetGatewayDataSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 9), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbNetGatewayDataSubnetMask.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetGatewayDataSubnetMask.setDescription('Transportation subnet mask. Changing this parameter will affect after system reset.')
cbNetTelnet = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbNetTelnet.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetTelnet.setDescription('Enables/Disables the Telnet Server')
cbNetFTP = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbNetFTP.setStatus('mandatory')
if mibBuilder.loadTexts: cbNetFTP.setDescription('Enables/Disables the FTP Server')
cbDVBOutputParam = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2))
cbDVBOutputBitRate = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDVBOutputBitRate.setStatus('mandatory')
if mibBuilder.loadTexts: cbDVBOutputBitRate.setDescription('PLL Frequency')
cbDVBPAT = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDVBPAT.setStatus('mandatory')
if mibBuilder.loadTexts: cbDVBPAT.setDescription('PAT Rate')
cbDVBPMT = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDVBPMT.setStatus('mandatory')
if mibBuilder.loadTexts: cbDVBPMT.setDescription('PMT Rate')
cbDVBFraming = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cbFraming188", 1), ("cbFraming204", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDVBFraming.setStatus('mandatory')
if mibBuilder.loadTexts: cbDVBFraming.setDescription('188/204 Framing.')
cbStuffingMode = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("cbFFStuffing", 0), ("cbAdaptationField", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbStuffingMode.setStatus('mandatory')
if mibBuilder.loadTexts: cbStuffingMode.setDescription('Stuffing mode: either FF stuffing or Adaptation field stuffing')
cbMpeMode = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("cbPacked", 0), ("cbNotPacked", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbMpeMode.setStatus('mandatory')
if mibBuilder.loadTexts: cbMpeMode.setDescription('MPE mode: Packed MPE mode or Not packed MPE mode.')
cbCRCMode = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("cbZero", 0), ("cbCheckSum", 1), ("cbCRC", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCRCMode.setStatus('mandatory')
if mibBuilder.loadTexts: cbCRCMode.setDescription('CRC type')
cbDVBClockPolarity = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("cbNotInverted", 0), ("cbInverted", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbDVBClockPolarity.setStatus('mandatory')
if mibBuilder.loadTexts: cbDVBClockPolarity.setDescription('DVB Clock Polarity. (read only value - may be changed in CFG.INI only).')
cbDVBAuxInput = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDVBAuxInput.setStatus('mandatory')
if mibBuilder.loadTexts: cbDVBAuxInput.setDescription('Aux Input Enable')
cbDVBAuxNullPackets = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDVBAuxNullPackets.setStatus('mandatory')
if mibBuilder.loadTexts: cbDVBAuxNullPackets.setDescription('Aux Null Packets')
cbDVBAuxInputType = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbASI", 1), ("cbLVDS", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDVBAuxInputType.setStatus('mandatory')
if mibBuilder.loadTexts: cbDVBAuxInputType.setDescription('Aux Input Type')
cbDVBLlcSnap = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDVBLlcSnap.setStatus('mandatory')
if mibBuilder.loadTexts: cbDVBLlcSnap.setDescription('Enable LLC-SNAP in MPE')
cbGeneralParam = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3))
cbGatewayEnabled = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbTrue", 1), ("cbFalse", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbGatewayEnabled.setStatus('mandatory')
if mibBuilder.loadTexts: cbGatewayEnabled.setDescription('Enables/Disables all the Gateway operations.')
cbGatewaySWReset = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbTrue", 1), ("cbFalse", 0)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: cbGatewaySWReset.setStatus('mandatory')
if mibBuilder.loadTexts: cbGatewaySWReset.setDescription('CAUTION: Setting this param to cbTrue cause a S/W reset of the gateway.')
cbTraceInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 3))
cbTraceMask = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 3, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbTraceMask.setStatus('mandatory')
if mibBuilder.loadTexts: cbTraceMask.setDescription('Mask to select elements for trace.')
cbTraceLevel = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 3, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbTraceLevel.setStatus('mandatory')
if mibBuilder.loadTexts: cbTraceLevel.setDescription('Trace level for elements specified by cbTraceMask')
cbTraceOutputChannel = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cbTraceToVGA", 1), ("cbTraceToCOM1", 2), ("cbTraceToCOM2", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbTraceOutputChannel.setStatus('mandatory')
if mibBuilder.loadTexts: cbTraceOutputChannel.setDescription('Trace output channel.')
cbPktEncrypt = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbTrue", 1), ("cbFalse", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbPktEncrypt.setStatus('mandatory')
if mibBuilder.loadTexts: cbPktEncrypt.setDescription('Enable/Disable encryption of the the transmitted packets. If cbPktEncrypt==cbTrue, packets will be encrypted only if cbClEncrEnable==cbTrue for that client.')
cbGatewayDescription = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbGatewayDescription.setStatus('mandatory')
if mibBuilder.loadTexts: cbGatewayDescription.setDescription('A general description of this gateway. The description may be changed as needed.')
cbSWVersion = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbSWVersion.setStatus('mandatory')
if mibBuilder.loadTexts: cbSWVersion.setDescription('TV Gateway Software Version.')
cbApplicationFileName = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 7), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbApplicationFileName.setStatus('mandatory')
if mibBuilder.loadTexts: cbApplicationFileName.setDescription('TV Gateway Application Software File Name. Changing this parameter will affect after system reset.')
cbDataMappingMode = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(2, 3))).clone(namedValues=NamedValues(("cbDataStreaming", 2), ("cbProtocolEncapsulation", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDataMappingMode.setStatus('mandatory')
if mibBuilder.loadTexts: cbDataMappingMode.setDescription('Data Boradcast Mode - Encodding mode of data from network.')
cbMaxAllowableDelay = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbMaxAllowableDelay.setStatus('mandatory')
if mibBuilder.loadTexts: cbMaxAllowableDelay.setDescription('The Maximum allowable time (in mSec) which a packet can be delayed in the gateway. ')
cbQualityOfService = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 10))
cbQOSMode = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 10, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("cbPermissive", 1), ("cbRestrictive", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbQOSMode.setStatus('mandatory')
if mibBuilder.loadTexts: cbQOSMode.setDescription('Permissive mode will allow transmit to users obove their maximum rate when when band-width is available. Restrictive mode will not transmit any data to users above their maximum rate even if band-width is available.')
cbQOSActive = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 10, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("cbFalse", 0), ("cbTrue", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbQOSActive.setStatus('mandatory')
if mibBuilder.loadTexts: cbQOSActive.setDescription('Turn on (cbTrue) or off (cbFalse) the Quality of Service mechanism. When Quality of Service is turned off, the minimum CIR promised to users is ignored and data is transffered to users in the order it is received from the Ethernet by the gateway.')
cbFlushing = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("cbNo", 0), ("cbYes", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbFlushing.setStatus('mandatory')
if mibBuilder.loadTexts: cbFlushing.setDescription('Flushing packets on IDLE')
cbFPGAFileName = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 13), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbFPGAFileName.setStatus('mandatory')
if mibBuilder.loadTexts: cbFPGAFileName.setDescription("A string that holds the MCS file name loaded to the Gateway's Encoder. Changing this parameter will affect after system reset.")
cbGroupsTable = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4))
cbGrTable = MibTable((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1), )
if mibBuilder.loadTexts: cbGrTable.setStatus('mandatory')
if mibBuilder.loadTexts: cbGrTable.setDescription('This table contains the Groups definitions.')
cbGroupsTableNode = MibTableRow((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1), ).setIndexNames((0, "EFDATA-MIB", "cbGrTableIndex"))
if mibBuilder.loadTexts: cbGroupsTableNode.setStatus('mandatory')
if mibBuilder.loadTexts: cbGroupsTableNode.setDescription('Information about a particular group.')
cbGrTableIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 1), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbGrTableIndex.setStatus('mandatory')
if mibBuilder.loadTexts: cbGrTableIndex.setDescription('Group Index.')
cbGrTablePID = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbGrTablePID.setStatus('mandatory')
if mibBuilder.loadTexts: cbGrTablePID.setDescription('The Group PID.')
cbGrTableQosMode = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("cbIndividual", 0), ("cbGlobal", 1)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbGrTableQosMode.setStatus('mandatory')
if mibBuilder.loadTexts: cbGrTableQosMode.setDescription('The Group Qos Mode.')
cbGrTableMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbGrTableMinRate.setStatus('mandatory')
if mibBuilder.loadTexts: cbGrTableMinRate.setDescription('The Group Minimum rate. This parameter affects only if QosMode=Global')
cbGrTableMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbGrTableMaxRate.setStatus('mandatory')
if mibBuilder.loadTexts: cbGrTableMaxRate.setDescription('The Group Maximum rate. This parameter affects only if QosMode=Global')
cbConfigSTUTable = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5))
cbStaticUserTable = MibTable((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1), )
if mibBuilder.loadTexts: cbStaticUserTable.setStatus('mandatory')
if mibBuilder.loadTexts: cbStaticUserTable.setDescription('This table contains the all the static users.')
cbStaticUserEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1), ).setIndexNames((0, "EFDATA-MIB", "cbStaticUserIP"))
if mibBuilder.loadTexts: cbStaticUserEntry.setStatus('mandatory')
if mibBuilder.loadTexts: cbStaticUserEntry.setDescription('Information about a particular static user.')
cbStaticUserIP = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbStaticUserIP.setStatus('mandatory')
if mibBuilder.loadTexts: cbStaticUserIP.setDescription('IP of static user.')
cbStaticUserMask = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbStaticUserMask.setStatus('mandatory')
if mibBuilder.loadTexts: cbStaticUserMask.setDescription('The static user mask.')
cbStaticUserGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbStaticUserGroup.setStatus('mandatory')
if mibBuilder.loadTexts: cbStaticUserGroup.setDescription("The static user's Group.")
cbStaticUserMAC = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 4), PhysAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbStaticUserMAC.setStatus('mandatory')
if mibBuilder.loadTexts: cbStaticUserMAC.setDescription('The group in which the static user resides.')
cbStaticUserMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbStaticUserMinRate.setStatus('mandatory')
if mibBuilder.loadTexts: cbStaticUserMinRate.setDescription('The static user Minimum rate (CIR).')
cbStaticUserMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbStaticUserMaxRate.setStatus('mandatory')
if mibBuilder.loadTexts: cbStaticUserMaxRate.setDescription('The static user Maximum rate.')
cbConfigMulticastTable = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6))
cbMulticastTable = MibTable((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1), )
if mibBuilder.loadTexts: cbMulticastTable.setStatus('mandatory')
if mibBuilder.loadTexts: cbMulticastTable.setDescription('This table contains the all the multicasts.')
cbMulticastEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1), ).setIndexNames((0, "EFDATA-MIB", "cbMulticastIP"))
if mibBuilder.loadTexts: cbMulticastEntry.setStatus('mandatory')
if mibBuilder.loadTexts: cbMulticastEntry.setDescription('Information about a particular multicast.')
cbMulticastIP = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbMulticastIP.setStatus('mandatory')
if mibBuilder.loadTexts: cbMulticastIP.setDescription('IP of multicast.')
cbMulticastGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbMulticastGroup.setStatus('mandatory')
if mibBuilder.loadTexts: cbMulticastGroup.setDescription("The multicast's Group.")
cbMulticastSID = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbMulticastSID.setStatus('mandatory')
if mibBuilder.loadTexts: cbMulticastSID.setDescription('The group in which the multicast resides.')
cbMulticastMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbMulticastMinRate.setStatus('mandatory')
if mibBuilder.loadTexts: cbMulticastMinRate.setDescription('The multicast Minimum rate (CIR).')
cbMulticastMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbMulticastMaxRate.setStatus('mandatory')
if mibBuilder.loadTexts: cbMulticastMaxRate.setDescription('The multicast Maximum rate.')
cbConfigClTable = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7))
cbCfgClTable = MibTable((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1), )
if mibBuilder.loadTexts: cbCfgClTable.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTable.setDescription('This table contains updated configuration of all clients known to the gateway.')
cbCfgClTableNode = MibTableRow((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1), ).setIndexNames((0, "EFDATA-MIB", "cbCfgClTableIP"))
if mibBuilder.loadTexts: cbCfgClTableNode.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTableNode.setDescription('Information about a particular client configuration.')
cbCfgClTableIP = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 1), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbCfgClTableIP.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTableIP.setDescription('The clients IP.')
cbCfgClTableMask = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbCfgClTableMask.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTableMask.setDescription('The clients IP Mask.')
cbCfgClTableMAC = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 3), PhysAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbCfgClTableMAC.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTableMAC.setDescription('The clients MAC Address.')
cbCfgClTableGroup = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbCfgClTableGroup.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTableGroup.setDescription('The clients Group.')
cbCfgClTableBy = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbCfgClTableBy.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTableBy.setDescription('By whom the client was added.')
cbCfgClTableMinRate = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbCfgClTableMinRate.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTableMinRate.setDescription('The clients Minimum rate (CIR).')
cbCfgClTableMaxRate = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbCfgClTableMaxRate.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTableMaxRate.setDescription('The clients Maximum rate.')
cbCfgClTableEncrypt = MibTableColumn((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("cbFalse", 0), ("cbTrue", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbCfgClTableEncrypt.setStatus('mandatory')
if mibBuilder.loadTexts: cbCfgClTableEncrypt.setDescription('The clients Encryption parameter True/False.')
cbTimeDate = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 8))
cbTime = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 8, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbTime.setStatus('mandatory')
if mibBuilder.loadTexts: cbTime.setDescription('A string in the form HH:MM:SS that represents the gateway idea of the current time. Single digits should be preceeded by 0. Examples: 12:35:27 01:50:00 09:01:59')
cbDate = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 8, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDate.setStatus('mandatory')
if mibBuilder.loadTexts: cbDate.setDescription('A string representing the gateway idea of the current date. In order to set a different date, use the following format: <Full Month Name> <1 or 2 Digits of Day of Month>,<4 Digits of Year> Examples: September 1,1998 Januray 12, 2002')
cbClientsInfoReset = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbClientsInfoReset.setStatus('mandatory')
if mibBuilder.loadTexts: cbClientsInfoReset.setDescription('This parameter is applicable only for clients that were NOT added by the CCU. The gateway will delete from its lists clients information (statistics and encryption parameters) for each client registered in the system for more then cbTClientsInfoReset seconds. cbTClientsInfoReset must be greater then 0.')
cbCCUParam = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10))
cbCCU1 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU1.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU1.setDescription('IP of CCU Server #1 (set to 0.0.0.0 to disable CCU #1)')
cbCCU2 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 2), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU2.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU2.setDescription('IP of CCU Server #2 (set to 0.0.0.0 to disable CCU #2)')
cbCCU3 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU3.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU3.setDescription('IP of CCU Server #3 (set to 0.0.0.0 to disable CCU #3)')
cbCCU4 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU4.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU4.setDescription('IP of CCU Server #4 (set to 0.0.0.0 to disable CCU #4)')
cbCCU5 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU5.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU5.setDescription('IP of CCU Server #5 (set to 0.0.0.0 to disable CCU #5)')
cbCCU6 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 6), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU6.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU6.setDescription('IP of CCU Server #6 (set to 0.0.0.0 to disable CCU #6)')
cbCCU7 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 7), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU7.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU7.setDescription('IP of CCU Server #7 (set to 0.0.0.0 to disable CCU #7)')
cbCCU8 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 8), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU8.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU8.setDescription('IP of CCU Server #8 (set to 0.0.0.0 to disable CCU #8)')
cbCCU9 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 9), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU9.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU9.setDescription('IP of CCU Server #9 (set to 0.0.0.0 to disable CCU #9)')
cbCCU10 = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 10), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbCCU10.setStatus('mandatory')
if mibBuilder.loadTexts: cbCCU10.setDescription('IP of CCU Server #10 (set to 0.0.0.0 to disable CCU #10)')
cbHASParam = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 11))
cbHasEnable = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 11, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbEnabled", 1), ("cbDisabled", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbHasEnable.setStatus('mandatory')
if mibBuilder.loadTexts: cbHasEnable.setDescription('Enables/Disables High Availability Mode.')
cbHasCpu = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 11, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbHasCpu.setStatus('mandatory')
if mibBuilder.loadTexts: cbHasCpu.setDescription('Maximum CPU')
cbHasMemory = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 11, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbHasMemory.setStatus('mandatory')
if mibBuilder.loadTexts: cbHasMemory.setDescription('Maximum Memory Usage')
cbDiagnostics = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3))
cbDiagTestTx = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1))
cbDiagTestTxParam = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1, 1))
cbTestTxDestIP = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1, 1, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbTestTxDestIP.setStatus('mandatory')
if mibBuilder.loadTexts: cbTestTxDestIP.setDescription('Test Transfer Packet ID')
cbTestTxType = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("cbTestTypeOnePacket", 1), ("cbTestTypeLowSpeedCont", 2), ("cbTestTypeHighSpeedCont", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbTestTxType.setStatus('mandatory')
if mibBuilder.loadTexts: cbTestTxType.setDescription('READ/WRITE Test Transfer Type: cbTestTypeOnePacket - one packet, cbTestTypeLowSpeedCont - Low Speed Continuous. cbTestTypeHighSpeedCont - High Speed Continuous.')
cbDiagTestTxActive = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbTrue", 1), ("cbFalse", 0)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbDiagTestTxActive.setStatus('mandatory')
if mibBuilder.loadTexts: cbDiagTestTxActive.setDescription('Set to 0 in order to stop Test Transfer. Set to non-0 in order to activate it. (in case cbTestTxType = 1, set to 0 and to non-zero in order to re-send the single test packet)')
cbSWDownload = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4))
cbSWServerIP = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 1), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbSWServerIP.setStatus('mandatory')
if mibBuilder.loadTexts: cbSWServerIP.setDescription('The TFTP server IP address. The S/W file will be TFTPed from this station. Use 0.0.0.0 to load a different local file (without TFTP).')
cbAppDownload = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2))
cbSWSourceFileName = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbSWSourceFileName.setStatus('mandatory')
if mibBuilder.loadTexts: cbSWSourceFileName.setDescription('The software file name and its optional path (relative to the TFTP server root definition) to be downloaded from the server. Example: catvgw.dat')
cbSWTargetFileName = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbSWTargetFileName.setStatus('mandatory')
if mibBuilder.loadTexts: cbSWTargetFileName.setDescription('The S/W file name (without path) on the Gateway. Example: ram.abs WARNING: cbApplicationFileName (under cbGeneralParam) is the name of the running S/W. If cbSWTargetFileName is different from cbApplicationFileName, it will be just downloaded to the Gateway and not used until cbApplicationFileName will be changed (in CFG.INI) to be equal to cbSWTargetFileName.')
cbSWDownloadStart = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbTrue", 1), ("cbFalse", 0)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: cbSWDownloadStart.setStatus('mandatory')
if mibBuilder.loadTexts: cbSWDownloadStart.setDescription('Set cbSWDownloadStart to cbTrue in order to start the S/W download process. Set cbSWDownloadStart to cbFalse to interrupt (and stop) S/W download in progress (when cbSWDownloadStatus = cbDownloadInProgress).')
cbSWDownloadStatus = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("cbIdle", 0), ("cbDownloadInProgress", 1), ("cbERRORTFTPServernotFound", 2), ("cbERRORFileNotFound", 3), ("cbERRORNotASWFile", 4), ("cbERRORBadChecksum", 5), ("cbERRORCommunicationFailed", 6), ("cbDownloadAborted", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbSWDownloadStatus.setStatus('mandatory')
if mibBuilder.loadTexts: cbSWDownloadStatus.setDescription('Status of SW Download: cbIdle - Download has not started yet or has comleted and gateway already restarted with new version (not an error). cbDownloadInProgress - Download is currently in progrees (not an error). cbERRORTFTPServernotFound - Cannot find a TFTP server in the specified IP address - check and correct cbSWServerIP. cbERRORFileNotFound - Cannot find the specified file - check and correct cbSWFileName. cbERRORNotaSWFile - The specified file is not a SW file - check and correct cbSWFileName. cbERRORBadChecksum - Bad checksum - try to download again. cbERRORCommunicationFailed - Communication with server failed - try to download again. cbDownloadAborted - Download aborted by SNMP manager (cbSWDownloadStart was set to cbFalse during download).')
cbFPGADownload = MibIdentifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3))
cbFPGASourceFileName = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3, 1), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbFPGASourceFileName.setStatus('mandatory')
if mibBuilder.loadTexts: cbFPGASourceFileName.setDescription('The FPGA file name and its optional path (relative to the TFTP server root definition) to be downloaded from the server. Example: FPGA.DAT')
cbFPGATargetFileName = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cbFPGATargetFileName.setStatus('mandatory')
if mibBuilder.loadTexts: cbFPGATargetFileName.setDescription('The FPGA file name (without path) on the Gateway. Example: FPGA.DAT')
cbFPGADownloadStart = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 0))).clone(namedValues=NamedValues(("cbTrue", 1), ("cbFalse", 0)))).setMaxAccess("writeonly")
if mibBuilder.loadTexts: cbFPGADownloadStart.setStatus('mandatory')
if mibBuilder.loadTexts: cbFPGADownloadStart.setDescription('Set cbFPGADownloadStart to cbTrue in order to start the FPGA download process. Set cbFPGADownloadStart to cbFalse to interrupt (and stop) FPGA download in progress (when cbFPGADownloadStatus = cbDownloadInProgress).')
cbFPGADownloadStatus = MibScalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("cbIdle", 0), ("cbDownloadInProgress", 1), ("cbERRORTFTPServernotFound", 2), ("cbERRORFileNotFound", 3), ("cbERRORNotASWFile", 4), ("cbERRORBadChecksum", 5), ("cbERRORCommunicationFailed", 6), ("cbDownloadAborted", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cbFPGADownloadStatus.setStatus('mandatory')
if mibBuilder.loadTexts: cbFPGADownloadStatus.setDescription('Status of FPGA Download: cbIdle - Download has not started yet or has comleted and gateway already restarted with new version (not an error). cbDownloadInProgress - Download is currently in progrees (not an error). cbERRORTFTPServernotFound - Cannot find a TFTP server in the specified IP address - check and correct cbSWServerIP. cbERRORFileNotFound - Cannot find the specified file - check and correct cbFPGAFileName. cbERRORNotaSWFile - The specified file is not a SW file - check and correct cbFPGAFileName. cbERRORBadChecksum - Bad checksum - try to download again. cbERRORCommunicationFailed - Communication with server failed - try to download again. cbDownloadAborted - Download aborted by SNMP manager (cbFPGADownloadStart was set to cbFalse during download).')
mibBuilder.exportSymbols("EFDATA-MIB", cbClNumPacketsDiscarded=cbClNumPacketsDiscarded, cbClStatReset=cbClStatReset, cbNetGatewayDataSubnetMask=cbNetGatewayDataSubnetMask, cbStatClient=cbStatClient, cbSWDownloadStart=cbSWDownloadStart, cbFPGASourceFileName=cbFPGASourceFileName, cbStatAvrBytesPerSec=cbStatAvrBytesPerSec, cbStatNumOfPackets=cbStatNumOfPackets, cbQOSMode=cbQOSMode, cbFlushing=cbFlushing, cbStatNumPacketDiscarded=cbStatNumPacketDiscarded, cbClNumKBytes=cbClNumKBytes, cbStatAvrPktSize=cbStatAvrPktSize, cbStaticUserMaxRate=cbStaticUserMaxRate, cbGrTableMaxRate=cbGrTableMaxRate, cbStaticUserEntry=cbStaticUserEntry, cbQualityOfService=cbQualityOfService, cbGroupsTableNode=cbGroupsTableNode, cbCfgClTableMask=cbCfgClTableMask, cbMulticastEntry=cbMulticastEntry, cbFPGADownload=cbFPGADownload, cbDVBFraming=cbDVBFraming, cbClientStatistics=cbClientStatistics, cbCfgClTableMAC=cbCfgClTableMAC, cbCCU2=cbCCU2, cbDataMappingMode=cbDataMappingMode, cbCCU3=cbCCU3, cbGatewaySWReset=cbGatewaySWReset, cbStaticUserIP=cbStaticUserIP, cbCCU4=cbCCU4, cbCfgClTableMinRate=cbCfgClTableMinRate, cbClTableIP=cbClTableIP, cbClientIP=cbClientIP, cbCCU7=cbCCU7, cbDVBOutputBitRate=cbDVBOutputBitRate, cbGroupsTable=cbGroupsTable, cbCfgClTableEncrypt=cbCfgClTableEncrypt, dtmx5000=dtmx5000, cbMulticastGroup=cbMulticastGroup, spectracast=spectracast, cbSWTargetFileName=cbSWTargetFileName, cbMpeMode=cbMpeMode, cbStaticUserTable=cbStaticUserTable, cbAppDownload=cbAppDownload, cbMulticastSID=cbMulticastSID, cbPktEncrypt=cbPktEncrypt, cbCfgClTableBy=cbCfgClTableBy, cbFPGADownloadStart=cbFPGADownloadStart, cbConfigClTable=cbConfigClTable, cbClTableStampTime=cbClTableStampTime, cbDVBPMT=cbDVBPMT, cbStatNumBytesTXed=cbStatNumBytesTXed, cbHasEnable=cbHasEnable, cbCCU6=cbCCU6, cbNetGatewayMngIP=cbNetGatewayMngIP, cbCCU10=cbCCU10, cbTestTxDestIP=cbTestTxDestIP, cbTraceOutputChannel=cbTraceOutputChannel, cbStatNumNMSFrames=cbStatNumNMSFrames, cbSWDownloadStatus=cbSWDownloadStatus, cbHasCpu=cbHasCpu, cbClTableStartTime=cbClTableStartTime, cbQOSActive=cbQOSActive, cbConfigMulticastTable=cbConfigMulticastTable, efdata=efdata, cbDate=cbDate, cbDVBOutputParam=cbDVBOutputParam, cbDVBAuxInputType=cbDVBAuxInputType, cbDVBAuxNullPackets=cbDVBAuxNullPackets, cbDVBAuxInput=cbDVBAuxInput, cbNetGatewayDataIP=cbNetGatewayDataIP, cbStatReset=cbStatReset, cbClTableNode=cbClTableNode, cbGrTableQosMode=cbGrTableQosMode, cbNetFTP=cbNetFTP, cbDiagTestTxParam=cbDiagTestTxParam, cbGrTablePID=cbGrTablePID, cbNetTelnet=cbNetTelnet, cbApplicationFileName=cbApplicationFileName, cbDiagnostics=cbDiagnostics, cbMemoryUsage=cbMemoryUsage, cbTimeDate=cbTimeDate, cbClTableBytesInSec=cbClTableBytesInSec, cbCfgClTableGroup=cbCfgClTableGroup, cbGeneralParam=cbGeneralParam, cbStaticUserMinRate=cbStaticUserMinRate, cbClientsInfoReset=cbClientsInfoReset, cbTraceLevel=cbTraceLevel, cbClAvrBytesPerSecond=cbClAvrBytesPerSecond, cbHasMemory=cbHasMemory, cbNetworkParam=cbNetworkParam, cbStaticUserMAC=cbStaticUserMAC, cbStatGeneral=cbStatGeneral, cbMulticastTable=cbMulticastTable, cbConfig=cbConfig, cbDVBClockPolarity=cbDVBClockPolarity, cbFPGADownloadStatus=cbFPGADownloadStatus, cbClTablePacketsDiscr=cbClTablePacketsDiscr, cbClEncrEnbled=cbClEncrEnbled, cbClTableReset=cbClTableReset, cbCCU9=cbCCU9, cbNetPromiscuous=cbNetPromiscuous, cbCfgClTableMaxRate=cbCfgClTableMaxRate, cbMulticastMaxRate=cbMulticastMaxRate, cbClNumSeconds=cbClNumSeconds, cbSWVersion=cbSWVersion, cbGateway=cbGateway, cbDiagTestTx=cbDiagTestTx, cbTraceMask=cbTraceMask, cbTestTxType=cbTestTxType, cbCRCMode=cbCRCMode, cbClTableKBytesTxed=cbClTableKBytesTxed, cbCCU5=cbCCU5, cbHASParam=cbHASParam, cbTraceInfo=cbTraceInfo, cbTime=cbTime, cbClNumPackets=cbClNumPackets, cbStatNumClients=cbStatNumClients, cbGatewayEnabled=cbGatewayEnabled, cbDVBPAT=cbDVBPAT, cbNetDefaultGateway=cbNetDefaultGateway, cbMulticastIP=cbMulticastIP, cbStatistics=cbStatistics, cbCPULoad=cbCPULoad, cbCfgClTableIP=cbCfgClTableIP, cbFPGATargetFileName=cbFPGATargetFileName, cbStaticUserMask=cbStaticUserMask, cbCCU1=cbCCU1, cbCfgClTableNode=cbCfgClTableNode, cbSWServerIP=cbSWServerIP, cbClTable=cbClTable, cbStaticUserGroup=cbStaticUserGroup, cbNetGatewayMngSubnetMask=cbNetGatewayMngSubnetMask, cbCCUParam=cbCCUParam, cbCfgClTable=cbCfgClTable, cbConfigSTUTable=cbConfigSTUTable, cbGatewayDescription=cbGatewayDescription, cbNetUnregisteredUsers=cbNetUnregisteredUsers, cbStuffingMode=cbStuffingMode, cbSWDownload=cbSWDownload, cbCCU8=cbCCU8, cbNetDualNIC=cbNetDualNIC, cbNetMulticast=cbNetMulticast, cbDVBLlcSnap=cbDVBLlcSnap, cbFPGAFileName=cbFPGAFileName, cbGrTableIndex=cbGrTableIndex, cbClTableTotalPackets=cbClTableTotalPackets, cbGrTableMinRate=cbGrTableMinRate, cbMulticastMinRate=cbMulticastMinRate, cbMaxAllowableDelay=cbMaxAllowableDelay, cbGrTable=cbGrTable, cbStatClTable=cbStatClTable, cbSWSourceFileName=cbSWSourceFileName, cbDiagTestTxActive=cbDiagTestTxActive)
|
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, value_size_constraint, constraints_intersection, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, iso, counter64, counter32, integer32, module_identity, enterprises, unsigned32, object_identity, gauge32, time_ticks, mib_identifier, notification_type, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'iso', 'Counter64', 'Counter32', 'Integer32', 'ModuleIdentity', 'enterprises', 'Unsigned32', 'ObjectIdentity', 'Gauge32', 'TimeTicks', 'MibIdentifier', 'NotificationType', 'Bits')
(phys_address, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'PhysAddress', 'TextualConvention', 'DisplayString')
efdata = mib_identifier((1, 3, 6, 1, 4, 1, 6247))
spectracast = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3))
dtmx5000 = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1))
cb_gateway = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1))
cb_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1))
cb_stat_general = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1))
cb_stat_num_bytes_t_xed = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbStatNumBytesTXed.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStatNumBytesTXed.setDescription('Number of bytes transmitted since last statistics reset.')
cb_stat_num_of_packets = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbStatNumOfPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStatNumOfPackets.setDescription('Number of data packets transmitted since last statistics reset.')
cb_stat_avr_pkt_size = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbStatAvrPktSize.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStatAvrPktSize.setDescription('Average packet size since last statistics reset.')
cb_stat_avr_bytes_per_sec = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbStatAvrBytesPerSec.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStatAvrBytesPerSec.setDescription('Average speed in bytes per second since last statistics reset.')
cb_stat_num_packet_discarded = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbStatNumPacketDiscarded.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStatNumPacketDiscarded.setDescription('Number of data packets that were discarded since last statistics reset.')
cb_stat_num_nms_frames = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbStatNumNMSFrames.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStatNumNMSFrames.setDescription('Number of NMS packets received since last statistics reset.')
cb_cpu_load = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbCPULoad.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCPULoad.setDescription('Current CPU Load in percents (0-100).')
cb_memory_usage = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbMemoryUsage.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMemoryUsage.setDescription('Current Memory Usage in percents (0-100).')
cb_stat_reset = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbTrue', 1), ('cbFalse', 0)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
cbStatReset.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStatReset.setDescription('Set to cbTrue in order to reset the general statistics values (either in active or non-active mode).')
cb_stat_num_clients = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbStatNumClients.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStatNumClients.setDescription('Number of clients currently connected to the Gateway. It is not part of the General Statistics since the cbStatReset does not change its value.')
cb_stat_client = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2))
cb_client_ip = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbClientIP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClientIP.setDescription('The IP address of the client. The rest of the params in cbStatClient reffers to this IP. In order to get a statistics on a single clients, set cbClientIP to the IP of the desired client and get the results under cbClientStatistics. Continuously get operations of the rest of the params will give the updated statistics values without a need to set cbClientIP again and again.')
cb_client_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2))
cb_cl_num_seconds = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClNumSeconds.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClNumSeconds.setDescription('The number of seconds since the client statistics are active. The statistics values are reset automaticaly by the gateway (as well as by setting cbClReset) according to the value of cbFreqClientsInfoReset.')
cb_cl_num_k_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClNumKBytes.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClNumKBytes.setDescription('Number of bytes transmitted to IP==cbClientIP in the last cbClNumSeconds seconds.')
cb_cl_num_packets = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClNumPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClNumPackets.setDescription('Number of packets transmitted to IP==cbClientIP in the last cbClNumSeconds seconds.')
cb_cl_avr_bytes_per_second = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClAvrBytesPerSecond.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClAvrBytesPerSecond.setDescription('Average transfer rate in bytes per second for this client.')
cb_cl_num_packets_discarded = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClNumPacketsDiscarded.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClNumPacketsDiscarded.setDescription('Number of packets discarded to IP==cbClientIP in the last cbClNumSeconds seconds.')
cb_cl_stat_reset = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbTrue', 1), ('cbFalse', 0)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
cbClStatReset.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClStatReset.setDescription('Set ot non-zero - Reset the statistics values for the client cbClientIP.')
cb_cl_encr_enbled = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 2, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbTrue', 1), ('cbFalse', 0)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClEncrEnbled.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClEncrEnbled.setDescription('If this variable is True then the user desire encryption. This value may not changed and it is NOT changed by setting cbClStatReset.')
cb_stat_cl_table = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3))
cb_cl_table = mib_table((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1))
if mibBuilder.loadTexts:
cbClTable.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTable.setDescription('This table contains updated statistics of all clients known to the gateway.')
cb_cl_table_node = mib_table_row((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1)).setIndexNames((0, 'EFDATA-MIB', 'cbClTableIP'))
if mibBuilder.loadTexts:
cbClTableNode.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTableNode.setDescription('Information about a particular client.')
cb_cl_table_ip = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClTableIP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTableIP.setDescription('The clients IP.')
cb_cl_table_stamp_time = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClTableStampTime.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTableStampTime.setDescription('The clients Stamp Time.')
cb_cl_table_start_time = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClTableStartTime.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTableStartTime.setDescription('The clients Start Time.')
cb_cl_table_total_packets = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClTableTotalPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTableTotalPackets.setDescription('Total Packets transmitted to this client.')
cb_cl_table_bytes_in_sec = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClTableBytesInSec.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTableBytesInSec.setDescription('The clients Rate in Bytes/Sec.')
cb_cl_table_packets_discr = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClTablePacketsDiscr.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTablePacketsDiscr.setDescription('The Total Packets which were discarded to this client')
cb_cl_table_k_bytes_txed = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbClTableKBytesTxed.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTableKBytesTxed.setDescription('The Total KBytes transmitted to this client.')
cb_cl_table_reset = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 1, 3, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('cbNo', 0), ('cbYes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbClTableReset.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClTableReset.setDescription('Reset the client statistics.')
cb_config = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2))
cb_network_param = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1))
cb_net_gateway_mng_ip = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbNetGatewayMngIP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetGatewayMngIP.setDescription('C&M IP Address. Changing this parameter will affect after system reset.')
cb_net_gateway_mng_subnet_mask = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbNetGatewayMngSubnetMask.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetGatewayMngSubnetMask.setDescription('C&M subnet mask. Changing this parameter will affect after system reset.')
cb_net_default_gateway = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbNetDefaultGateway.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetDefaultGateway.setDescription('The default gateway IP Address. The term gateway here, is reffering to another station in the same LAN of the CATV-Gateway. All IP packets that the CATV-Gateway is sending to the LAN (and not over the viedo) and their IP Address do not belong to the CATV-Gateway local ring will be sent to this gateway station unless cbNetDefaultGateway is 0.0.0.0 Changing this parameter will affect after system reset.')
cb_net_promiscuous = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbNetPromiscuous.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetPromiscuous.setDescription('Enables/Disables Promiscuous Mode. Changing this parameter will affect after system reset.')
cb_net_unregistered_users = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbNetUnregisteredUsers.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetUnregisteredUsers.setDescription('Enables/Disables Unregistered Users.')
cb_net_multicast = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbNetMulticast.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetMulticast.setDescription('Enables/Disables receive Multicast Packets.')
cb_net_dual_nic = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbNetDualNIC.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetDualNIC.setDescription('Enables/Disables Transportation NIC Changing this parameter will affect after system reset.')
cb_net_gateway_data_ip = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 8), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbNetGatewayDataIP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetGatewayDataIP.setDescription('Transportation IP Address. Changing this parameter will affect after system reset.')
cb_net_gateway_data_subnet_mask = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 9), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbNetGatewayDataSubnetMask.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetGatewayDataSubnetMask.setDescription('Transportation subnet mask. Changing this parameter will affect after system reset.')
cb_net_telnet = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbNetTelnet.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetTelnet.setDescription('Enables/Disables the Telnet Server')
cb_net_ftp = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbNetFTP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbNetFTP.setDescription('Enables/Disables the FTP Server')
cb_dvb_output_param = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2))
cb_dvb_output_bit_rate = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDVBOutputBitRate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDVBOutputBitRate.setDescription('PLL Frequency')
cb_dvbpat = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDVBPAT.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDVBPAT.setDescription('PAT Rate')
cb_dvbpmt = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDVBPMT.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDVBPMT.setDescription('PMT Rate')
cb_dvb_framing = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('cbFraming188', 1), ('cbFraming204', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDVBFraming.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDVBFraming.setDescription('188/204 Framing.')
cb_stuffing_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('cbFFStuffing', 0), ('cbAdaptationField', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbStuffingMode.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStuffingMode.setDescription('Stuffing mode: either FF stuffing or Adaptation field stuffing')
cb_mpe_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('cbPacked', 0), ('cbNotPacked', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbMpeMode.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMpeMode.setDescription('MPE mode: Packed MPE mode or Not packed MPE mode.')
cb_crc_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('cbZero', 0), ('cbCheckSum', 1), ('cbCRC', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCRCMode.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCRCMode.setDescription('CRC type')
cb_dvb_clock_polarity = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('cbNotInverted', 0), ('cbInverted', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbDVBClockPolarity.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDVBClockPolarity.setDescription('DVB Clock Polarity. (read only value - may be changed in CFG.INI only).')
cb_dvb_aux_input = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDVBAuxInput.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDVBAuxInput.setDescription('Aux Input Enable')
cb_dvb_aux_null_packets = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDVBAuxNullPackets.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDVBAuxNullPackets.setDescription('Aux Null Packets')
cb_dvb_aux_input_type = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbASI', 1), ('cbLVDS', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDVBAuxInputType.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDVBAuxInputType.setDescription('Aux Input Type')
cb_dvb_llc_snap = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 2, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDVBLlcSnap.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDVBLlcSnap.setDescription('Enable LLC-SNAP in MPE')
cb_general_param = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3))
cb_gateway_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbTrue', 1), ('cbFalse', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbGatewayEnabled.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGatewayEnabled.setDescription('Enables/Disables all the Gateway operations.')
cb_gateway_sw_reset = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbTrue', 1), ('cbFalse', 0)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
cbGatewaySWReset.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGatewaySWReset.setDescription('CAUTION: Setting this param to cbTrue cause a S/W reset of the gateway.')
cb_trace_info = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 3))
cb_trace_mask = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 3, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbTraceMask.setStatus('mandatory')
if mibBuilder.loadTexts:
cbTraceMask.setDescription('Mask to select elements for trace.')
cb_trace_level = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 3, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbTraceLevel.setStatus('mandatory')
if mibBuilder.loadTexts:
cbTraceLevel.setDescription('Trace level for elements specified by cbTraceMask')
cb_trace_output_channel = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cbTraceToVGA', 1), ('cbTraceToCOM1', 2), ('cbTraceToCOM2', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbTraceOutputChannel.setStatus('mandatory')
if mibBuilder.loadTexts:
cbTraceOutputChannel.setDescription('Trace output channel.')
cb_pkt_encrypt = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbTrue', 1), ('cbFalse', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbPktEncrypt.setStatus('mandatory')
if mibBuilder.loadTexts:
cbPktEncrypt.setDescription('Enable/Disable encryption of the the transmitted packets. If cbPktEncrypt==cbTrue, packets will be encrypted only if cbClEncrEnable==cbTrue for that client.')
cb_gateway_description = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbGatewayDescription.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGatewayDescription.setDescription('A general description of this gateway. The description may be changed as needed.')
cb_sw_version = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbSWVersion.setStatus('mandatory')
if mibBuilder.loadTexts:
cbSWVersion.setDescription('TV Gateway Software Version.')
cb_application_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 7), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbApplicationFileName.setStatus('mandatory')
if mibBuilder.loadTexts:
cbApplicationFileName.setDescription('TV Gateway Application Software File Name. Changing this parameter will affect after system reset.')
cb_data_mapping_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(2, 3))).clone(namedValues=named_values(('cbDataStreaming', 2), ('cbProtocolEncapsulation', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDataMappingMode.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDataMappingMode.setDescription('Data Boradcast Mode - Encodding mode of data from network.')
cb_max_allowable_delay = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbMaxAllowableDelay.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMaxAllowableDelay.setDescription('The Maximum allowable time (in mSec) which a packet can be delayed in the gateway. ')
cb_quality_of_service = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 10))
cb_qos_mode = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 10, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('cbPermissive', 1), ('cbRestrictive', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbQOSMode.setStatus('mandatory')
if mibBuilder.loadTexts:
cbQOSMode.setDescription('Permissive mode will allow transmit to users obove their maximum rate when when band-width is available. Restrictive mode will not transmit any data to users above their maximum rate even if band-width is available.')
cb_qos_active = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 10, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('cbFalse', 0), ('cbTrue', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbQOSActive.setStatus('mandatory')
if mibBuilder.loadTexts:
cbQOSActive.setDescription('Turn on (cbTrue) or off (cbFalse) the Quality of Service mechanism. When Quality of Service is turned off, the minimum CIR promised to users is ignored and data is transffered to users in the order it is received from the Ethernet by the gateway.')
cb_flushing = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('cbNo', 0), ('cbYes', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbFlushing.setStatus('mandatory')
if mibBuilder.loadTexts:
cbFlushing.setDescription('Flushing packets on IDLE')
cb_fpga_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 3, 13), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbFPGAFileName.setStatus('mandatory')
if mibBuilder.loadTexts:
cbFPGAFileName.setDescription("A string that holds the MCS file name loaded to the Gateway's Encoder. Changing this parameter will affect after system reset.")
cb_groups_table = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4))
cb_gr_table = mib_table((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1))
if mibBuilder.loadTexts:
cbGrTable.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGrTable.setDescription('This table contains the Groups definitions.')
cb_groups_table_node = mib_table_row((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1)).setIndexNames((0, 'EFDATA-MIB', 'cbGrTableIndex'))
if mibBuilder.loadTexts:
cbGroupsTableNode.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGroupsTableNode.setDescription('Information about a particular group.')
cb_gr_table_index = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 1), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbGrTableIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGrTableIndex.setDescription('Group Index.')
cb_gr_table_pid = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbGrTablePID.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGrTablePID.setDescription('The Group PID.')
cb_gr_table_qos_mode = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('cbIndividual', 0), ('cbGlobal', 1)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbGrTableQosMode.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGrTableQosMode.setDescription('The Group Qos Mode.')
cb_gr_table_min_rate = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbGrTableMinRate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGrTableMinRate.setDescription('The Group Minimum rate. This parameter affects only if QosMode=Global')
cb_gr_table_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 4, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbGrTableMaxRate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbGrTableMaxRate.setDescription('The Group Maximum rate. This parameter affects only if QosMode=Global')
cb_config_stu_table = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5))
cb_static_user_table = mib_table((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1))
if mibBuilder.loadTexts:
cbStaticUserTable.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStaticUserTable.setDescription('This table contains the all the static users.')
cb_static_user_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1)).setIndexNames((0, 'EFDATA-MIB', 'cbStaticUserIP'))
if mibBuilder.loadTexts:
cbStaticUserEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStaticUserEntry.setDescription('Information about a particular static user.')
cb_static_user_ip = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbStaticUserIP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStaticUserIP.setDescription('IP of static user.')
cb_static_user_mask = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbStaticUserMask.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStaticUserMask.setDescription('The static user mask.')
cb_static_user_group = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbStaticUserGroup.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStaticUserGroup.setDescription("The static user's Group.")
cb_static_user_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 4), phys_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbStaticUserMAC.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStaticUserMAC.setDescription('The group in which the static user resides.')
cb_static_user_min_rate = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbStaticUserMinRate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStaticUserMinRate.setDescription('The static user Minimum rate (CIR).')
cb_static_user_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 5, 1, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbStaticUserMaxRate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbStaticUserMaxRate.setDescription('The static user Maximum rate.')
cb_config_multicast_table = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6))
cb_multicast_table = mib_table((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1))
if mibBuilder.loadTexts:
cbMulticastTable.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMulticastTable.setDescription('This table contains the all the multicasts.')
cb_multicast_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1)).setIndexNames((0, 'EFDATA-MIB', 'cbMulticastIP'))
if mibBuilder.loadTexts:
cbMulticastEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMulticastEntry.setDescription('Information about a particular multicast.')
cb_multicast_ip = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbMulticastIP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMulticastIP.setDescription('IP of multicast.')
cb_multicast_group = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbMulticastGroup.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMulticastGroup.setDescription("The multicast's Group.")
cb_multicast_sid = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbMulticastSID.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMulticastSID.setDescription('The group in which the multicast resides.')
cb_multicast_min_rate = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbMulticastMinRate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMulticastMinRate.setDescription('The multicast Minimum rate (CIR).')
cb_multicast_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 6, 1, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbMulticastMaxRate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbMulticastMaxRate.setDescription('The multicast Maximum rate.')
cb_config_cl_table = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7))
cb_cfg_cl_table = mib_table((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1))
if mibBuilder.loadTexts:
cbCfgClTable.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTable.setDescription('This table contains updated configuration of all clients known to the gateway.')
cb_cfg_cl_table_node = mib_table_row((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1)).setIndexNames((0, 'EFDATA-MIB', 'cbCfgClTableIP'))
if mibBuilder.loadTexts:
cbCfgClTableNode.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTableNode.setDescription('Information about a particular client configuration.')
cb_cfg_cl_table_ip = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 1), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbCfgClTableIP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTableIP.setDescription('The clients IP.')
cb_cfg_cl_table_mask = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbCfgClTableMask.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTableMask.setDescription('The clients IP Mask.')
cb_cfg_cl_table_mac = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 3), phys_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbCfgClTableMAC.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTableMAC.setDescription('The clients MAC Address.')
cb_cfg_cl_table_group = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbCfgClTableGroup.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTableGroup.setDescription('The clients Group.')
cb_cfg_cl_table_by = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbCfgClTableBy.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTableBy.setDescription('By whom the client was added.')
cb_cfg_cl_table_min_rate = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbCfgClTableMinRate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTableMinRate.setDescription('The clients Minimum rate (CIR).')
cb_cfg_cl_table_max_rate = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbCfgClTableMaxRate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTableMaxRate.setDescription('The clients Maximum rate.')
cb_cfg_cl_table_encrypt = mib_table_column((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 7, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('cbFalse', 0), ('cbTrue', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbCfgClTableEncrypt.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCfgClTableEncrypt.setDescription('The clients Encryption parameter True/False.')
cb_time_date = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 8))
cb_time = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 8, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbTime.setStatus('mandatory')
if mibBuilder.loadTexts:
cbTime.setDescription('A string in the form HH:MM:SS that represents the gateway idea of the current time. Single digits should be preceeded by 0. Examples: 12:35:27 01:50:00 09:01:59')
cb_date = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 8, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDate.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDate.setDescription('A string representing the gateway idea of the current date. In order to set a different date, use the following format: <Full Month Name> <1 or 2 Digits of Day of Month>,<4 Digits of Year> Examples: September 1,1998 Januray 12, 2002')
cb_clients_info_reset = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbClientsInfoReset.setStatus('mandatory')
if mibBuilder.loadTexts:
cbClientsInfoReset.setDescription('This parameter is applicable only for clients that were NOT added by the CCU. The gateway will delete from its lists clients information (statistics and encryption parameters) for each client registered in the system for more then cbTClientsInfoReset seconds. cbTClientsInfoReset must be greater then 0.')
cb_ccu_param = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10))
cb_ccu1 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU1.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU1.setDescription('IP of CCU Server #1 (set to 0.0.0.0 to disable CCU #1)')
cb_ccu2 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 2), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU2.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU2.setDescription('IP of CCU Server #2 (set to 0.0.0.0 to disable CCU #2)')
cb_ccu3 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU3.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU3.setDescription('IP of CCU Server #3 (set to 0.0.0.0 to disable CCU #3)')
cb_ccu4 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 4), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU4.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU4.setDescription('IP of CCU Server #4 (set to 0.0.0.0 to disable CCU #4)')
cb_ccu5 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU5.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU5.setDescription('IP of CCU Server #5 (set to 0.0.0.0 to disable CCU #5)')
cb_ccu6 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 6), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU6.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU6.setDescription('IP of CCU Server #6 (set to 0.0.0.0 to disable CCU #6)')
cb_ccu7 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 7), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU7.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU7.setDescription('IP of CCU Server #7 (set to 0.0.0.0 to disable CCU #7)')
cb_ccu8 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 8), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU8.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU8.setDescription('IP of CCU Server #8 (set to 0.0.0.0 to disable CCU #8)')
cb_ccu9 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 9), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU9.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU9.setDescription('IP of CCU Server #9 (set to 0.0.0.0 to disable CCU #9)')
cb_ccu10 = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 10, 10), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbCCU10.setStatus('mandatory')
if mibBuilder.loadTexts:
cbCCU10.setDescription('IP of CCU Server #10 (set to 0.0.0.0 to disable CCU #10)')
cb_has_param = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 11))
cb_has_enable = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 11, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbEnabled', 1), ('cbDisabled', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbHasEnable.setStatus('mandatory')
if mibBuilder.loadTexts:
cbHasEnable.setDescription('Enables/Disables High Availability Mode.')
cb_has_cpu = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 11, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbHasCpu.setStatus('mandatory')
if mibBuilder.loadTexts:
cbHasCpu.setDescription('Maximum CPU')
cb_has_memory = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 2, 11, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbHasMemory.setStatus('mandatory')
if mibBuilder.loadTexts:
cbHasMemory.setDescription('Maximum Memory Usage')
cb_diagnostics = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3))
cb_diag_test_tx = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1))
cb_diag_test_tx_param = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1, 1))
cb_test_tx_dest_ip = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1, 1, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbTestTxDestIP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbTestTxDestIP.setDescription('Test Transfer Packet ID')
cb_test_tx_type = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('cbTestTypeOnePacket', 1), ('cbTestTypeLowSpeedCont', 2), ('cbTestTypeHighSpeedCont', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbTestTxType.setStatus('mandatory')
if mibBuilder.loadTexts:
cbTestTxType.setDescription('READ/WRITE Test Transfer Type: cbTestTypeOnePacket - one packet, cbTestTypeLowSpeedCont - Low Speed Continuous. cbTestTypeHighSpeedCont - High Speed Continuous.')
cb_diag_test_tx_active = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbTrue', 1), ('cbFalse', 0)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbDiagTestTxActive.setStatus('mandatory')
if mibBuilder.loadTexts:
cbDiagTestTxActive.setDescription('Set to 0 in order to stop Test Transfer. Set to non-0 in order to activate it. (in case cbTestTxType = 1, set to 0 and to non-zero in order to re-send the single test packet)')
cb_sw_download = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4))
cb_sw_server_ip = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 1), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbSWServerIP.setStatus('mandatory')
if mibBuilder.loadTexts:
cbSWServerIP.setDescription('The TFTP server IP address. The S/W file will be TFTPed from this station. Use 0.0.0.0 to load a different local file (without TFTP).')
cb_app_download = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2))
cb_sw_source_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbSWSourceFileName.setStatus('mandatory')
if mibBuilder.loadTexts:
cbSWSourceFileName.setDescription('The software file name and its optional path (relative to the TFTP server root definition) to be downloaded from the server. Example: catvgw.dat')
cb_sw_target_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbSWTargetFileName.setStatus('mandatory')
if mibBuilder.loadTexts:
cbSWTargetFileName.setDescription('The S/W file name (without path) on the Gateway. Example: ram.abs WARNING: cbApplicationFileName (under cbGeneralParam) is the name of the running S/W. If cbSWTargetFileName is different from cbApplicationFileName, it will be just downloaded to the Gateway and not used until cbApplicationFileName will be changed (in CFG.INI) to be equal to cbSWTargetFileName.')
cb_sw_download_start = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbTrue', 1), ('cbFalse', 0)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
cbSWDownloadStart.setStatus('mandatory')
if mibBuilder.loadTexts:
cbSWDownloadStart.setDescription('Set cbSWDownloadStart to cbTrue in order to start the S/W download process. Set cbSWDownloadStart to cbFalse to interrupt (and stop) S/W download in progress (when cbSWDownloadStatus = cbDownloadInProgress).')
cb_sw_download_status = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('cbIdle', 0), ('cbDownloadInProgress', 1), ('cbERRORTFTPServernotFound', 2), ('cbERRORFileNotFound', 3), ('cbERRORNotASWFile', 4), ('cbERRORBadChecksum', 5), ('cbERRORCommunicationFailed', 6), ('cbDownloadAborted', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbSWDownloadStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
cbSWDownloadStatus.setDescription('Status of SW Download: cbIdle - Download has not started yet or has comleted and gateway already restarted with new version (not an error). cbDownloadInProgress - Download is currently in progrees (not an error). cbERRORTFTPServernotFound - Cannot find a TFTP server in the specified IP address - check and correct cbSWServerIP. cbERRORFileNotFound - Cannot find the specified file - check and correct cbSWFileName. cbERRORNotaSWFile - The specified file is not a SW file - check and correct cbSWFileName. cbERRORBadChecksum - Bad checksum - try to download again. cbERRORCommunicationFailed - Communication with server failed - try to download again. cbDownloadAborted - Download aborted by SNMP manager (cbSWDownloadStart was set to cbFalse during download).')
cb_fpga_download = mib_identifier((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3))
cb_fpga_source_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3, 1), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbFPGASourceFileName.setStatus('mandatory')
if mibBuilder.loadTexts:
cbFPGASourceFileName.setDescription('The FPGA file name and its optional path (relative to the TFTP server root definition) to be downloaded from the server. Example: FPGA.DAT')
cb_fpga_target_file_name = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cbFPGATargetFileName.setStatus('mandatory')
if mibBuilder.loadTexts:
cbFPGATargetFileName.setDescription('The FPGA file name (without path) on the Gateway. Example: FPGA.DAT')
cb_fpga_download_start = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 0))).clone(namedValues=named_values(('cbTrue', 1), ('cbFalse', 0)))).setMaxAccess('writeonly')
if mibBuilder.loadTexts:
cbFPGADownloadStart.setStatus('mandatory')
if mibBuilder.loadTexts:
cbFPGADownloadStart.setDescription('Set cbFPGADownloadStart to cbTrue in order to start the FPGA download process. Set cbFPGADownloadStart to cbFalse to interrupt (and stop) FPGA download in progress (when cbFPGADownloadStatus = cbDownloadInProgress).')
cb_fpga_download_status = mib_scalar((1, 3, 6, 1, 4, 1, 6247, 3, 1, 1, 4, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('cbIdle', 0), ('cbDownloadInProgress', 1), ('cbERRORTFTPServernotFound', 2), ('cbERRORFileNotFound', 3), ('cbERRORNotASWFile', 4), ('cbERRORBadChecksum', 5), ('cbERRORCommunicationFailed', 6), ('cbDownloadAborted', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cbFPGADownloadStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
cbFPGADownloadStatus.setDescription('Status of FPGA Download: cbIdle - Download has not started yet or has comleted and gateway already restarted with new version (not an error). cbDownloadInProgress - Download is currently in progrees (not an error). cbERRORTFTPServernotFound - Cannot find a TFTP server in the specified IP address - check and correct cbSWServerIP. cbERRORFileNotFound - Cannot find the specified file - check and correct cbFPGAFileName. cbERRORNotaSWFile - The specified file is not a SW file - check and correct cbFPGAFileName. cbERRORBadChecksum - Bad checksum - try to download again. cbERRORCommunicationFailed - Communication with server failed - try to download again. cbDownloadAborted - Download aborted by SNMP manager (cbFPGADownloadStart was set to cbFalse during download).')
mibBuilder.exportSymbols('EFDATA-MIB', cbClNumPacketsDiscarded=cbClNumPacketsDiscarded, cbClStatReset=cbClStatReset, cbNetGatewayDataSubnetMask=cbNetGatewayDataSubnetMask, cbStatClient=cbStatClient, cbSWDownloadStart=cbSWDownloadStart, cbFPGASourceFileName=cbFPGASourceFileName, cbStatAvrBytesPerSec=cbStatAvrBytesPerSec, cbStatNumOfPackets=cbStatNumOfPackets, cbQOSMode=cbQOSMode, cbFlushing=cbFlushing, cbStatNumPacketDiscarded=cbStatNumPacketDiscarded, cbClNumKBytes=cbClNumKBytes, cbStatAvrPktSize=cbStatAvrPktSize, cbStaticUserMaxRate=cbStaticUserMaxRate, cbGrTableMaxRate=cbGrTableMaxRate, cbStaticUserEntry=cbStaticUserEntry, cbQualityOfService=cbQualityOfService, cbGroupsTableNode=cbGroupsTableNode, cbCfgClTableMask=cbCfgClTableMask, cbMulticastEntry=cbMulticastEntry, cbFPGADownload=cbFPGADownload, cbDVBFraming=cbDVBFraming, cbClientStatistics=cbClientStatistics, cbCfgClTableMAC=cbCfgClTableMAC, cbCCU2=cbCCU2, cbDataMappingMode=cbDataMappingMode, cbCCU3=cbCCU3, cbGatewaySWReset=cbGatewaySWReset, cbStaticUserIP=cbStaticUserIP, cbCCU4=cbCCU4, cbCfgClTableMinRate=cbCfgClTableMinRate, cbClTableIP=cbClTableIP, cbClientIP=cbClientIP, cbCCU7=cbCCU7, cbDVBOutputBitRate=cbDVBOutputBitRate, cbGroupsTable=cbGroupsTable, cbCfgClTableEncrypt=cbCfgClTableEncrypt, dtmx5000=dtmx5000, cbMulticastGroup=cbMulticastGroup, spectracast=spectracast, cbSWTargetFileName=cbSWTargetFileName, cbMpeMode=cbMpeMode, cbStaticUserTable=cbStaticUserTable, cbAppDownload=cbAppDownload, cbMulticastSID=cbMulticastSID, cbPktEncrypt=cbPktEncrypt, cbCfgClTableBy=cbCfgClTableBy, cbFPGADownloadStart=cbFPGADownloadStart, cbConfigClTable=cbConfigClTable, cbClTableStampTime=cbClTableStampTime, cbDVBPMT=cbDVBPMT, cbStatNumBytesTXed=cbStatNumBytesTXed, cbHasEnable=cbHasEnable, cbCCU6=cbCCU6, cbNetGatewayMngIP=cbNetGatewayMngIP, cbCCU10=cbCCU10, cbTestTxDestIP=cbTestTxDestIP, cbTraceOutputChannel=cbTraceOutputChannel, cbStatNumNMSFrames=cbStatNumNMSFrames, cbSWDownloadStatus=cbSWDownloadStatus, cbHasCpu=cbHasCpu, cbClTableStartTime=cbClTableStartTime, cbQOSActive=cbQOSActive, cbConfigMulticastTable=cbConfigMulticastTable, efdata=efdata, cbDate=cbDate, cbDVBOutputParam=cbDVBOutputParam, cbDVBAuxInputType=cbDVBAuxInputType, cbDVBAuxNullPackets=cbDVBAuxNullPackets, cbDVBAuxInput=cbDVBAuxInput, cbNetGatewayDataIP=cbNetGatewayDataIP, cbStatReset=cbStatReset, cbClTableNode=cbClTableNode, cbGrTableQosMode=cbGrTableQosMode, cbNetFTP=cbNetFTP, cbDiagTestTxParam=cbDiagTestTxParam, cbGrTablePID=cbGrTablePID, cbNetTelnet=cbNetTelnet, cbApplicationFileName=cbApplicationFileName, cbDiagnostics=cbDiagnostics, cbMemoryUsage=cbMemoryUsage, cbTimeDate=cbTimeDate, cbClTableBytesInSec=cbClTableBytesInSec, cbCfgClTableGroup=cbCfgClTableGroup, cbGeneralParam=cbGeneralParam, cbStaticUserMinRate=cbStaticUserMinRate, cbClientsInfoReset=cbClientsInfoReset, cbTraceLevel=cbTraceLevel, cbClAvrBytesPerSecond=cbClAvrBytesPerSecond, cbHasMemory=cbHasMemory, cbNetworkParam=cbNetworkParam, cbStaticUserMAC=cbStaticUserMAC, cbStatGeneral=cbStatGeneral, cbMulticastTable=cbMulticastTable, cbConfig=cbConfig, cbDVBClockPolarity=cbDVBClockPolarity, cbFPGADownloadStatus=cbFPGADownloadStatus, cbClTablePacketsDiscr=cbClTablePacketsDiscr, cbClEncrEnbled=cbClEncrEnbled, cbClTableReset=cbClTableReset, cbCCU9=cbCCU9, cbNetPromiscuous=cbNetPromiscuous, cbCfgClTableMaxRate=cbCfgClTableMaxRate, cbMulticastMaxRate=cbMulticastMaxRate, cbClNumSeconds=cbClNumSeconds, cbSWVersion=cbSWVersion, cbGateway=cbGateway, cbDiagTestTx=cbDiagTestTx, cbTraceMask=cbTraceMask, cbTestTxType=cbTestTxType, cbCRCMode=cbCRCMode, cbClTableKBytesTxed=cbClTableKBytesTxed, cbCCU5=cbCCU5, cbHASParam=cbHASParam, cbTraceInfo=cbTraceInfo, cbTime=cbTime, cbClNumPackets=cbClNumPackets, cbStatNumClients=cbStatNumClients, cbGatewayEnabled=cbGatewayEnabled, cbDVBPAT=cbDVBPAT, cbNetDefaultGateway=cbNetDefaultGateway, cbMulticastIP=cbMulticastIP, cbStatistics=cbStatistics, cbCPULoad=cbCPULoad, cbCfgClTableIP=cbCfgClTableIP, cbFPGATargetFileName=cbFPGATargetFileName, cbStaticUserMask=cbStaticUserMask, cbCCU1=cbCCU1, cbCfgClTableNode=cbCfgClTableNode, cbSWServerIP=cbSWServerIP, cbClTable=cbClTable, cbStaticUserGroup=cbStaticUserGroup, cbNetGatewayMngSubnetMask=cbNetGatewayMngSubnetMask, cbCCUParam=cbCCUParam, cbCfgClTable=cbCfgClTable, cbConfigSTUTable=cbConfigSTUTable, cbGatewayDescription=cbGatewayDescription, cbNetUnregisteredUsers=cbNetUnregisteredUsers, cbStuffingMode=cbStuffingMode, cbSWDownload=cbSWDownload, cbCCU8=cbCCU8, cbNetDualNIC=cbNetDualNIC, cbNetMulticast=cbNetMulticast, cbDVBLlcSnap=cbDVBLlcSnap, cbFPGAFileName=cbFPGAFileName, cbGrTableIndex=cbGrTableIndex, cbClTableTotalPackets=cbClTableTotalPackets, cbGrTableMinRate=cbGrTableMinRate, cbMulticastMinRate=cbMulticastMinRate, cbMaxAllowableDelay=cbMaxAllowableDelay, cbGrTable=cbGrTable, cbStatClTable=cbStatClTable, cbSWSourceFileName=cbSWSourceFileName, cbDiagTestTxActive=cbDiagTestTxActive)
|
# Cutting a Rod
# Given a rod of length n inches and an array of prices that contains prices of all pieces of size smaller than n. Determine the maximum value obtainable by cutting up the rod and selling the pieces. For example, if length of the rod is 8 and the values of different pieces are given as following, then the maximum obtainable value is 22 (by cutting in two pieces of lengths 2 and 6)
def rodCutting(pieces, n):
cut = [0 for _ in range(n+1)]
cut[0] = 0
for i in range(1, n+1):
mv = -9999999
for j in range(i):
mv = max(mv, pieces[j] + cut[i-j-1])
cut[i] = mv
return cut[n]
pieces = list(map(int, input().split(', ')))
print(rodCutting(pieces, len(pieces)))
|
def rod_cutting(pieces, n):
cut = [0 for _ in range(n + 1)]
cut[0] = 0
for i in range(1, n + 1):
mv = -9999999
for j in range(i):
mv = max(mv, pieces[j] + cut[i - j - 1])
cut[i] = mv
return cut[n]
pieces = list(map(int, input().split(', ')))
print(rod_cutting(pieces, len(pieces)))
|
#!/usr/bin/python
################################################################################
#
# class that represents a shift register object
#
################################################################################
class Shifter:
# pins connected to the 74HC595's
GPIO_CLOCK=-1 # clock pin
GPIO_DATA=-1 # data pin
GPIO_LATCH=-1 # latch pin
GPIO=None # reference to the calling programs GPIO instance
# initialize shifter
def __init__(self,gpio,clock,data,latch):
# store the pin numbers used for GPIO
self.GPIO=gpio
self.GPIO_CLOCK=clock
self.GPIO_DATA=data
self.GPIO_LATCH=latch
# shift one bit out
def shiftOut(self,bit):
# set or clear data bit
self.GPIO.output(self.GPIO_DATA,self.GPIO.LOW if (bit==0) else self.GPIO.HIGH)
# strobe clock
self.GPIO.output(self.GPIO_CLOCK, self.GPIO.HIGH)
self.GPIO.output(self.GPIO_CLOCK, self.GPIO.LOW)
# shift n bits out
def shiftNBitsOut(self,bits,numBits):
# loop through numBits bits starting with LSB
while numBits>0:
# shift out the lowest bit
self.shiftOut(0 if (bits & 1) == 0 else 1)
# shift all bits to the right (discarding lowest bit)
bits>>=1
# decrement the number of bits needed to send and loop
numBits-=1
# latch the output
def latch(self):
#strobe latch
self.GPIO.output(self.GPIO_LATCH, self.GPIO.HIGH)
self.GPIO.output(self.GPIO_LATCH, self.GPIO.LOW)
|
class Shifter:
gpio_clock = -1
gpio_data = -1
gpio_latch = -1
gpio = None
def __init__(self, gpio, clock, data, latch):
self.GPIO = gpio
self.GPIO_CLOCK = clock
self.GPIO_DATA = data
self.GPIO_LATCH = latch
def shift_out(self, bit):
self.GPIO.output(self.GPIO_DATA, self.GPIO.LOW if bit == 0 else self.GPIO.HIGH)
self.GPIO.output(self.GPIO_CLOCK, self.GPIO.HIGH)
self.GPIO.output(self.GPIO_CLOCK, self.GPIO.LOW)
def shift_n_bits_out(self, bits, numBits):
while numBits > 0:
self.shiftOut(0 if bits & 1 == 0 else 1)
bits >>= 1
num_bits -= 1
def latch(self):
self.GPIO.output(self.GPIO_LATCH, self.GPIO.HIGH)
self.GPIO.output(self.GPIO_LATCH, self.GPIO.LOW)
|
#!/bin/python3
def minimum_range_activations(locations):
n = len(locations)
dp = [-1] * n
for i in range(n):
left_index = max(i - locations[i], 0)
right_index = min(i + (locations[i] + 1), n)
dp[left_index] = max(dp[left_index], right_index)
# Initializations, starting range
count = 1
right_index = dp[0]
next_index = dp[i]
for i in range(n):
next_index = max(next_index, dp[i])
# Reaching end of current range
if (i == right_index):
# Adding to count
count += 1
# Moving to rightmost index found thus far
right_index = next_index
return count
a = [2, 1, 1]
print(minimum_range_activations(a))
|
def minimum_range_activations(locations):
n = len(locations)
dp = [-1] * n
for i in range(n):
left_index = max(i - locations[i], 0)
right_index = min(i + (locations[i] + 1), n)
dp[left_index] = max(dp[left_index], right_index)
count = 1
right_index = dp[0]
next_index = dp[i]
for i in range(n):
next_index = max(next_index, dp[i])
if i == right_index:
count += 1
right_index = next_index
return count
a = [2, 1, 1]
print(minimum_range_activations(a))
|
#!/usr/bin/env python
'''
Copyright (C) 2020, WAFW00F Developers.
See the LICENSE file for copying permission.
'''
NAME = 'Sitelock (TrueShield)'
# Well this is confusing, Sitelock itself uses Incapsula from Imperva
# So the fingerprints obtained on blockpage are similar to those of Incapsula.
def is_waf(self):
schemes = [
self.matchContent(r"SiteLock will remember you"),
self.matchContent(r"Sitelock is leader in Business Website Security Services"),
self.matchContent(r"sitelock[_\-]shield([_\-]logo|[\-_]badge)?"),
self.matchContent(r'SiteLock incident ID')
]
if any(i for i in schemes):
return True
return False
|
"""
Copyright (C) 2020, WAFW00F Developers.
See the LICENSE file for copying permission.
"""
name = 'Sitelock (TrueShield)'
def is_waf(self):
schemes = [self.matchContent('SiteLock will remember you'), self.matchContent('Sitelock is leader in Business Website Security Services'), self.matchContent('sitelock[_\\-]shield([_\\-]logo|[\\-_]badge)?'), self.matchContent('SiteLock incident ID')]
if any((i for i in schemes)):
return True
return False
|
# Habitat configs
# This should be sourced by the training script,
# which must save a sacred experiment in the variable "ex"
# For descriptions of all fields, see configs/core.py
####################################
# Standard methods
####################################
@ex.named_config
def taskonomy_features():
''' Implements an agent with some mid-level feature.
From the paper:
From Learning to Navigate Using Mid-Level Visual Priors (Sax et al. '19)
Taskonomy: Disentangling Task Transfer Learning
Amir R. Zamir, Alexander Sax*, William B. Shen*, Leonidas Guibas, Jitendra Malik, Silvio Savarese.
2018
Viable feature options are:
[]
'''
uuid = 'habitat_taskonomy_feature'
cfg = {}
cfg['learner'] = {
'perception_network': 'TaskonomyFeaturesOnlyNet',
'perception_network_kwargs': {
'extra_kwargs': {
'main_perception_network': 'TaskonomyFeaturesOnlyNet', # for sidetune
}
}
}
cfg['env'] = {
'env_specific_kwargs': {
'target_dim': 16, # Taskonomy reps: 16, scratch: 9, map_only: 1
},
'transform_fn_pre_aggregation_fn': 'TransformFactory.independent',
'transform_fn_pre_aggregation_kwargs': {
'names_to_transforms': {
'taskonomy':'rescale_centercrop_resize((3,256,256))',
},
},
'transform_fn_post_aggregation_fn': 'TransformFactory.independent',
'transform_fn_post_aggregation_kwargs': {
'names_to_transforms': {
'taskonomy':"taskonomy_features_transform('/mnt/models/curvature_encoder.dat')",
},
'keep_unnamed': True,
}
}
@ex.named_config
def blind():
''' Implements a blinded agent. This has no visual input, but is still able to reason about its movement
via path integration.
'''
uuid = 'blind'
cfg = {}
cfg['learner'] = {
'perception_network': 'TaskonomyFeaturesOnlyNet',
}
cfg['env'] = {
'env_specific_kwargs': {
'target_dim': 16, # Taskonomy reps: 16, scratch: 9, map_only: 1
},
'transform_fn_pre_aggregation_fn': 'TransformFactory.independent',
'transform_fn_pre_aggregation_kwargs': {
'names_to_transforms': {
'taskonomy': 'blind((8,16,16))',
# 'rgb_filled': 'rescale_centercrop_resize((3,84,84))',
},
},
}
@ex.named_config
def midtune():
# Specific type of finetune where we train the policy then open the representation to be learned.
# Specifically, we take trained midlevel agents and finetune all the weights.
uuid = 'habitat_midtune'
cfg = {}
cfg['learner'] = {
'perception_network_reinit': True, # reinitialize the perception_module, used when checkpoint is used
'rollout_value_batch_multiplier': 1,
'perception_network': 'RLSidetuneWrapper',
'perception_network_kwargs': {
'extra_kwargs': {
'main_perception_network': 'TaskonomyFeaturesOnlyNet', # for sidetune
'sidetune_kwargs': {
'n_channels_in': 3,
'n_channels_out': 8,
'normalize_pre_transfer': False,
'base_class': 'FCN5',
'base_kwargs': {'normalize_outputs': False},
'base_weights_path': None, # user needs to specify
'side_class': 'FCN5',
'side_kwargs': {'normalize_outputs': False},
'side_weights_path': None, # user needs to specify
}
}
},
}
cfg['saving'] = {
'checkpoint': None,
}
cfg['env'] = {
'env_specific_kwargs': {
'target_dim': 16, # Taskonomy reps: 16, scratch: 9, map_only: 1
},
'transform_fn_pre_aggregation_fn': 'TransformFactory.independent',
'transform_fn_pre_aggregation_kwargs': {
'names_to_transforms': {
'rgb_filled': 'rescale_centercrop_resize((3,256,256))',
},
},
}
@ex.named_config
def finetune():
uuid = 'habitat_finetune'
cfg = {}
cfg['learner'] = {
'perception_network': 'RLSidetuneWrapper',
'perception_network_kwargs': {
'extra_kwargs': {
'main_perception_network': 'TaskonomyFeaturesOnlyNet', # for sidetune
'sidetune_kwargs': {
'n_channels_in': 3,
'n_channels_out': 8,
'normalize_pre_transfer': False,
'side_class': 'FCN5',
'side_kwargs': {'normalize_outputs': False},
'side_weights_path': None, # user needs to specify
}
}
},
'rollout_value_batch_multiplier': 1,
}
cfg['env'] = {
'env_specific_kwargs': {
'target_dim': 16, # Taskonomy reps: 16, scratch: 9, map_only: 1
},
'transform_fn_pre_aggregation_fn': 'TransformFactory.independent',
'transform_fn_pre_aggregation_kwargs': {
'names_to_transforms': {
'rgb_filled': 'rescale_centercrop_resize((3,256,256))',
},
},
}
@ex.named_config
def sidetune():
uuid = 'habitat_sidetune'
cfg = {}
cfg['learner'] = {
'perception_network': 'RLSidetuneWrapper',
'perception_network_kwargs': {
'extra_kwargs': {
'sidetune_kwargs': {
'n_channels_in': 3,
'n_channels_out': 8,
'normalize_pre_transfer': False,
'base_class': 'TaskonomyEncoder',
'base_weights_path': None,
'base_kwargs': {'eval_only': True, 'normalize_outputs': False},
'side_class': 'FCN5',
'side_kwargs': {'normalize_outputs': False},
'side_weights_path': None,
'alpha_blend': True,
},
'attrs_to_remember': ['base_encoding', 'side_output', 'merged_encoding'], # things to remember for supp. losses / visualization
}
},
'rollout_value_batch_multiplier': 1,
}
cfg['env'] = {
'transform_fn_pre_aggregation_fn': 'TransformFactory.independent',
'transform_fn_pre_aggregation_kwargs': {
'names_to_transforms': {
'rgb_filled': 'rescale_centercrop_resize((3,256,256))',
},
},
}
####################################
# Base Network
####################################
@ex.named_config
def rlgsn_base_resnet50():
# base is frozen by default
cfg = {}
cfg['learner'] = {
'perception_network': 'RLSidetuneWrapper',
'perception_network_kwargs': {
'extra_kwargs': {
'sidetune_kwargs': {
'base_class': 'TaskonomyEncoder',
'base_weights_path': None, # user needs to input
'base_kwargs': {'eval_only': True, 'normalize_outputs': False},
}
}
},
}
@ex.named_config
def rlgsn_base_fcn5s():
# base is frozen by default
cfg = {}
cfg['learner'] = {
'perception_network': 'RLSidetuneWrapper',
'perception_network_kwargs': {
'extra_kwargs': {
'sidetune_kwargs': {
'base_class': 'FCN5',
'base_weights_path': None, # user needs to input
'base_kwargs': {'eval_only': True, 'normalize_outputs': False},
}
}
},
}
@ex.named_config
def rlgsn_base_learned():
cfg = {}
cfg['learner'] = {
'perception_network': 'RLSidetuneWrapper',
'perception_network_kwargs': {
'extra_kwargs': {
'sidetune_kwargs': {
'base_kwargs': {'eval_only': False},
}
}
},
}
####################################
# Side Network
####################################
@ex.named_config
def rlgsn_side_resnet50():
# side is learned by default
cfg = {}
cfg['learner'] = {
'perception_network': 'RLSidetuneWrapper',
'perception_network_kwargs': {
'extra_kwargs': {
'sidetune_kwargs': {
'side_class': 'TaskonomyEncoder',
'side_weights_path': None, # user needs to input
'side_kwargs': {'eval_only': False, 'normalize_outputs': False},
}
}
},
}
@ex.named_config
def rlgsn_side_fcn5s():
# side is learned by default
cfg = {}
cfg['learner'] = {
'perception_network': 'RLSidetuneWrapper',
'perception_network_kwargs': {
'extra_kwargs': {
'sidetune_kwargs': {
'side_class': 'FCN5',
'side_weights_path': None, # user needs to input
'side_kwargs': {'eval_only': False, 'normalize_outputs': False},
}
}
},
}
@ex.named_config
def rlgsn_side_frozen():
cfg = {}
cfg['learner'] = {
'perception_network': 'RLSidetuneWrapper',
'perception_network_kwargs': {
'extra_kwargs': {
'sidetune_kwargs': {
'side_kwargs': {'eval_only': True},
}
}
},
}
|
@ex.named_config
def taskonomy_features():
""" Implements an agent with some mid-level feature.
From the paper:
From Learning to Navigate Using Mid-Level Visual Priors (Sax et al. '19)
Taskonomy: Disentangling Task Transfer Learning
Amir R. Zamir, Alexander Sax*, William B. Shen*, Leonidas Guibas, Jitendra Malik, Silvio Savarese.
2018
Viable feature options are:
[]
"""
uuid = 'habitat_taskonomy_feature'
cfg = {}
cfg['learner'] = {'perception_network': 'TaskonomyFeaturesOnlyNet', 'perception_network_kwargs': {'extra_kwargs': {'main_perception_network': 'TaskonomyFeaturesOnlyNet'}}}
cfg['env'] = {'env_specific_kwargs': {'target_dim': 16}, 'transform_fn_pre_aggregation_fn': 'TransformFactory.independent', 'transform_fn_pre_aggregation_kwargs': {'names_to_transforms': {'taskonomy': 'rescale_centercrop_resize((3,256,256))'}}, 'transform_fn_post_aggregation_fn': 'TransformFactory.independent', 'transform_fn_post_aggregation_kwargs': {'names_to_transforms': {'taskonomy': "taskonomy_features_transform('/mnt/models/curvature_encoder.dat')"}, 'keep_unnamed': True}}
@ex.named_config
def blind():
""" Implements a blinded agent. This has no visual input, but is still able to reason about its movement
via path integration.
"""
uuid = 'blind'
cfg = {}
cfg['learner'] = {'perception_network': 'TaskonomyFeaturesOnlyNet'}
cfg['env'] = {'env_specific_kwargs': {'target_dim': 16}, 'transform_fn_pre_aggregation_fn': 'TransformFactory.independent', 'transform_fn_pre_aggregation_kwargs': {'names_to_transforms': {'taskonomy': 'blind((8,16,16))'}}}
@ex.named_config
def midtune():
uuid = 'habitat_midtune'
cfg = {}
cfg['learner'] = {'perception_network_reinit': True, 'rollout_value_batch_multiplier': 1, 'perception_network': 'RLSidetuneWrapper', 'perception_network_kwargs': {'extra_kwargs': {'main_perception_network': 'TaskonomyFeaturesOnlyNet', 'sidetune_kwargs': {'n_channels_in': 3, 'n_channels_out': 8, 'normalize_pre_transfer': False, 'base_class': 'FCN5', 'base_kwargs': {'normalize_outputs': False}, 'base_weights_path': None, 'side_class': 'FCN5', 'side_kwargs': {'normalize_outputs': False}, 'side_weights_path': None}}}}
cfg['saving'] = {'checkpoint': None}
cfg['env'] = {'env_specific_kwargs': {'target_dim': 16}, 'transform_fn_pre_aggregation_fn': 'TransformFactory.independent', 'transform_fn_pre_aggregation_kwargs': {'names_to_transforms': {'rgb_filled': 'rescale_centercrop_resize((3,256,256))'}}}
@ex.named_config
def finetune():
uuid = 'habitat_finetune'
cfg = {}
cfg['learner'] = {'perception_network': 'RLSidetuneWrapper', 'perception_network_kwargs': {'extra_kwargs': {'main_perception_network': 'TaskonomyFeaturesOnlyNet', 'sidetune_kwargs': {'n_channels_in': 3, 'n_channels_out': 8, 'normalize_pre_transfer': False, 'side_class': 'FCN5', 'side_kwargs': {'normalize_outputs': False}, 'side_weights_path': None}}}, 'rollout_value_batch_multiplier': 1}
cfg['env'] = {'env_specific_kwargs': {'target_dim': 16}, 'transform_fn_pre_aggregation_fn': 'TransformFactory.independent', 'transform_fn_pre_aggregation_kwargs': {'names_to_transforms': {'rgb_filled': 'rescale_centercrop_resize((3,256,256))'}}}
@ex.named_config
def sidetune():
uuid = 'habitat_sidetune'
cfg = {}
cfg['learner'] = {'perception_network': 'RLSidetuneWrapper', 'perception_network_kwargs': {'extra_kwargs': {'sidetune_kwargs': {'n_channels_in': 3, 'n_channels_out': 8, 'normalize_pre_transfer': False, 'base_class': 'TaskonomyEncoder', 'base_weights_path': None, 'base_kwargs': {'eval_only': True, 'normalize_outputs': False}, 'side_class': 'FCN5', 'side_kwargs': {'normalize_outputs': False}, 'side_weights_path': None, 'alpha_blend': True}, 'attrs_to_remember': ['base_encoding', 'side_output', 'merged_encoding']}}, 'rollout_value_batch_multiplier': 1}
cfg['env'] = {'transform_fn_pre_aggregation_fn': 'TransformFactory.independent', 'transform_fn_pre_aggregation_kwargs': {'names_to_transforms': {'rgb_filled': 'rescale_centercrop_resize((3,256,256))'}}}
@ex.named_config
def rlgsn_base_resnet50():
cfg = {}
cfg['learner'] = {'perception_network': 'RLSidetuneWrapper', 'perception_network_kwargs': {'extra_kwargs': {'sidetune_kwargs': {'base_class': 'TaskonomyEncoder', 'base_weights_path': None, 'base_kwargs': {'eval_only': True, 'normalize_outputs': False}}}}}
@ex.named_config
def rlgsn_base_fcn5s():
cfg = {}
cfg['learner'] = {'perception_network': 'RLSidetuneWrapper', 'perception_network_kwargs': {'extra_kwargs': {'sidetune_kwargs': {'base_class': 'FCN5', 'base_weights_path': None, 'base_kwargs': {'eval_only': True, 'normalize_outputs': False}}}}}
@ex.named_config
def rlgsn_base_learned():
cfg = {}
cfg['learner'] = {'perception_network': 'RLSidetuneWrapper', 'perception_network_kwargs': {'extra_kwargs': {'sidetune_kwargs': {'base_kwargs': {'eval_only': False}}}}}
@ex.named_config
def rlgsn_side_resnet50():
cfg = {}
cfg['learner'] = {'perception_network': 'RLSidetuneWrapper', 'perception_network_kwargs': {'extra_kwargs': {'sidetune_kwargs': {'side_class': 'TaskonomyEncoder', 'side_weights_path': None, 'side_kwargs': {'eval_only': False, 'normalize_outputs': False}}}}}
@ex.named_config
def rlgsn_side_fcn5s():
cfg = {}
cfg['learner'] = {'perception_network': 'RLSidetuneWrapper', 'perception_network_kwargs': {'extra_kwargs': {'sidetune_kwargs': {'side_class': 'FCN5', 'side_weights_path': None, 'side_kwargs': {'eval_only': False, 'normalize_outputs': False}}}}}
@ex.named_config
def rlgsn_side_frozen():
cfg = {}
cfg['learner'] = {'perception_network': 'RLSidetuneWrapper', 'perception_network_kwargs': {'extra_kwargs': {'sidetune_kwargs': {'side_kwargs': {'eval_only': True}}}}}
|
f=open("./CoA/2020/data/03a.txt","r")
count1=0
positionr1=0
count3=0
positionr3=0
count5=0
positionr5=0
count7=0
positionr7=0
countdouble=0
positionrdouble=0
line_count=0
for line in f:
line=line.strip()
relpos1=positionr1%(len(line))
relpos3=positionr3%(len(line))
relpos5=positionr5%(len(line))
relpos7=positionr7%(len(line))
relposdouble=positionrdouble%(len(line))
if line[relpos1]=="#":
count1+=1
if line[relpos3]=="#":
count3+=1
if line[relpos5]=="#":
count5+=1
if line[relpos7]=="#":
count7+=1
if line_count%2==0:
if line[relposdouble]=="#":
countdouble+=1
positionrdouble+=1
positionr1+=1
positionr3+=3
positionr5+=5
positionr7+=7
line_count+=1
print(count1)
print(count3)
print(count5)
print(count7)
print(countdouble)
print(count1*count3*count5*count7*countdouble)
|
f = open('./CoA/2020/data/03a.txt', 'r')
count1 = 0
positionr1 = 0
count3 = 0
positionr3 = 0
count5 = 0
positionr5 = 0
count7 = 0
positionr7 = 0
countdouble = 0
positionrdouble = 0
line_count = 0
for line in f:
line = line.strip()
relpos1 = positionr1 % len(line)
relpos3 = positionr3 % len(line)
relpos5 = positionr5 % len(line)
relpos7 = positionr7 % len(line)
relposdouble = positionrdouble % len(line)
if line[relpos1] == '#':
count1 += 1
if line[relpos3] == '#':
count3 += 1
if line[relpos5] == '#':
count5 += 1
if line[relpos7] == '#':
count7 += 1
if line_count % 2 == 0:
if line[relposdouble] == '#':
countdouble += 1
positionrdouble += 1
positionr1 += 1
positionr3 += 3
positionr5 += 5
positionr7 += 7
line_count += 1
print(count1)
print(count3)
print(count5)
print(count7)
print(countdouble)
print(count1 * count3 * count5 * count7 * countdouble)
|
target_module = "streamcontrol.obsmanager"
def test_obs_websocket_manager_new(get_handler):
"""Should create an inner instance when called"""
ows = get_handler(target_module)
myt = ows.OBSWebSocketManager.__new__(ows.OBSWebSocketManager)
assert isinstance(myt.instance, ows.OBSWebSocketManager)
def test_obs_websocket_manager_enter(get_handler):
"""Must return self"""
ows = get_handler(target_module)
enter_out = ows.OBSWebSocketManager.__enter__(ows)
assert enter_out == ows
def test_obs_websocket_manager_exit(get_handler, mocker):
"""Must disconnect websocket"""
ows = get_handler(target_module)
exit_mock = mocker.Mock()
ows.OBSWebSocketManager.__exit__(exit_mock, 1, 2, 3)
assert exit_mock.disconnect.called
def test_obs_websocket_manager_init(get_handler, mocker):
"""Should connect websocket if not connected"""
ows = get_handler(target_module)
init_mock = mocker.Mock()
init_mock.is_connected.return_value = False
ows.OBSWebSocketManager.__init__(init_mock)
assert init_mock.connect.called
init_mock.reset_mock()
init_mock.is_connected.return_value = True
ows.OBSWebSocketManager.__init__(init_mock)
assert init_mock.connect.called is False
def test_obs_websocket_manager_is_connected(get_handler, mocker):
ows = get_handler(target_module)
connect_mock = mocker.Mock()
"""Should return true if connected"""
assert ows.OBSWebSocketManager.is_connected(connect_mock)
"""Should return false if None"""
connect_mock.ws = None
assert not ows.OBSWebSocketManager.is_connected(connect_mock)
"""Should return false if ws not found"""
mocker.patch.object(ows, "hasattr", return_value=False)
assert not ows.OBSWebSocketManager.is_connected(connect_mock)
def test_obs_websocket_manager_connect(get_handler, mocker):
ows = get_handler(target_module)
ws_mock = mocker.Mock()
mocker.patch.object(ows, "obsws", return_value=ws_mock)
"""Should not connect if already connected"""
ws_mock.is_connected.return_value = True
ows.OBSWebSocketManager.connect(ws_mock)
ws_mock.ws.connect.assert_not_called()
"""Should connect if not connected"""
ws_mock.is_connected.return_value = False
ows.OBSWebSocketManager.connect(ws_mock)
ws_mock.ws.connect.assert_called()
def test_obs_websocket_manager_disconnect(get_handler, mocker):
ows = get_handler(target_module)
disconnect_mock = mocker.Mock()
"""Should not not disconnect if not connected"""
disconnect_mock.is_connected.return_value = False
ows.OBSWebSocketManager.disconnect(disconnect_mock)
disconnect_mock.ws.disconnect.assert_not_called()
"""Should disconnect if connected"""
disconnect_mock.is_connected.return_value = True
ows.OBSWebSocketManager.disconnect(disconnect_mock)
disconnect_mock.ws.disconnect.assert_called()
|
target_module = 'streamcontrol.obsmanager'
def test_obs_websocket_manager_new(get_handler):
"""Should create an inner instance when called"""
ows = get_handler(target_module)
myt = ows.OBSWebSocketManager.__new__(ows.OBSWebSocketManager)
assert isinstance(myt.instance, ows.OBSWebSocketManager)
def test_obs_websocket_manager_enter(get_handler):
"""Must return self"""
ows = get_handler(target_module)
enter_out = ows.OBSWebSocketManager.__enter__(ows)
assert enter_out == ows
def test_obs_websocket_manager_exit(get_handler, mocker):
"""Must disconnect websocket"""
ows = get_handler(target_module)
exit_mock = mocker.Mock()
ows.OBSWebSocketManager.__exit__(exit_mock, 1, 2, 3)
assert exit_mock.disconnect.called
def test_obs_websocket_manager_init(get_handler, mocker):
"""Should connect websocket if not connected"""
ows = get_handler(target_module)
init_mock = mocker.Mock()
init_mock.is_connected.return_value = False
ows.OBSWebSocketManager.__init__(init_mock)
assert init_mock.connect.called
init_mock.reset_mock()
init_mock.is_connected.return_value = True
ows.OBSWebSocketManager.__init__(init_mock)
assert init_mock.connect.called is False
def test_obs_websocket_manager_is_connected(get_handler, mocker):
ows = get_handler(target_module)
connect_mock = mocker.Mock()
'Should return true if connected'
assert ows.OBSWebSocketManager.is_connected(connect_mock)
'Should return false if None'
connect_mock.ws = None
assert not ows.OBSWebSocketManager.is_connected(connect_mock)
'Should return false if ws not found'
mocker.patch.object(ows, 'hasattr', return_value=False)
assert not ows.OBSWebSocketManager.is_connected(connect_mock)
def test_obs_websocket_manager_connect(get_handler, mocker):
ows = get_handler(target_module)
ws_mock = mocker.Mock()
mocker.patch.object(ows, 'obsws', return_value=ws_mock)
'Should not connect if already connected'
ws_mock.is_connected.return_value = True
ows.OBSWebSocketManager.connect(ws_mock)
ws_mock.ws.connect.assert_not_called()
'Should connect if not connected'
ws_mock.is_connected.return_value = False
ows.OBSWebSocketManager.connect(ws_mock)
ws_mock.ws.connect.assert_called()
def test_obs_websocket_manager_disconnect(get_handler, mocker):
ows = get_handler(target_module)
disconnect_mock = mocker.Mock()
'Should not not disconnect if not connected'
disconnect_mock.is_connected.return_value = False
ows.OBSWebSocketManager.disconnect(disconnect_mock)
disconnect_mock.ws.disconnect.assert_not_called()
'Should disconnect if connected'
disconnect_mock.is_connected.return_value = True
ows.OBSWebSocketManager.disconnect(disconnect_mock)
disconnect_mock.ws.disconnect.assert_called()
|
# Returns strand-sensitive order between two genomic coordinates
def leq_strand(coord1, coord2, strand_mode):
if strand_mode == "+":
return coord1 <= coord2
else: # strand_mode == "-"
return coord1 >= coord2
# Converts a binary adjacency matrix to a list of directed edges
def to_adj_list(adj_matrix):
adj_list = []
assert(adj_matrix.shape[0] == adj_matrix.shape[1])
for idx in range(adj_matrix.shape[0]):
for jdx in range(adj_matrix.shape[0]):
if adj_matrix[idx, jdx] == 1 and idx <= jdx:
adj_list.append([idx, jdx])
return adj_list
# Returns a list of successors by vertex, sensitive to the read strand
def to_adj_succ_list(adj_matrix, vertex_map, read_strand):
succ_list = {}
assert(adj_matrix.shape[0] == adj_matrix.shape[1])
for idx in range(adj_matrix.shape[0]):
succ_list[idx] = []
for jdx in range(adj_matrix.shape[0]):
if adj_matrix[idx, jdx] == 1:
if read_strand == "+" and vertex_map[0][idx] <= vertex_map[0][jdx] or read_strand == "-" \
and vertex_map[1][idx] >= vertex_map[1][jdx]:
succ_list[idx].append(jdx)
return succ_list
# Prints adjacency list representation of matrix
def print_adj_list(adj_list):
print("EDGES: ")
for edge in adj_list:
print("{} -> {}".format(edge[0], edge[1]))
# Translate a DNA sequence encoding a peptide to amino-acid sequence via RNA
def translate_dna_to_peptide(dna_str):
codontable = {
'ATA': 'I', 'ATC': 'I', 'ATT': 'I', 'ATG': 'M',
'ACA': 'T', 'ACC': 'T', 'ACG': 'T', 'ACT': 'T',
'AAC': 'N', 'AAT': 'N', 'AAA': 'K', 'AAG': 'K',
'AGC': 'S', 'AGT': 'S', 'AGA': 'R', 'AGG': 'R',
'CTA': 'L', 'CTC': 'L', 'CTG': 'L', 'CTT': 'L',
'CCA': 'P', 'CCC': 'P', 'CCG': 'P', 'CCT': 'P',
'CAC': 'H', 'CAT': 'H', 'CAA': 'Q', 'CAG': 'Q',
'CGA': 'R', 'CGC': 'R', 'CGG': 'R', 'CGT': 'R',
'GTA': 'V', 'GTC': 'V', 'GTG': 'V', 'GTT': 'V',
'GCA': 'A', 'GCC': 'A', 'GCG': 'A', 'GCT': 'A',
'GAC': 'D', 'GAT': 'D', 'GAA': 'E', 'GAG': 'E',
'GGA': 'G', 'GGC': 'G', 'GGG': 'G', 'GGT': 'G',
'TCA': 'S', 'TCC': 'S', 'TCG': 'S', 'TCT': 'S',
'TTC': 'F', 'TTT': 'F', 'TTA': 'L', 'TTG': 'L',
'TAC': 'Y', 'TAT': 'Y', 'TAA': '_', 'TAG': '_',
'TGC': 'C', 'TGT': 'C', 'TGA': '_', 'TGG': 'W'
}
dna_str = dna_str.upper()
aa_str = list("X"*(len(dna_str)/3))
for idx in range(0, len(dna_str), 3):
codon = dna_str[idx:idx+3]
if len(codon) < 3:
break
if "N" in codon:
aa_str[idx/3] = 'X'
else:
aa_str[idx/3] = codontable[codon]
return "".join(aa_str)
# Returns true if there is a stop codon in the sequence. All codons that are fully in the
# interval [start_coord<->end_coord] are checked.
# seq: Nucleotide sequence of vertex/CDS region
# start_coord: Read start coordinate
# stop_coord: Read stop coordinate
# strand: Read direction, one of {"+","-"}
def has_stop_codon_initial(seq, start_coord, end_coord, strand):
if strand == "+":
assert(start_coord <= end_coord)
substr = seq[start_coord-1:end_coord]
else: # strand=="-"
assert(start_coord >= end_coord)
substr = complementary_seq(seq[end_coord-1:start_coord][::-1])
for idx in range(0, len(substr)-2, 3):
nuc_frame = substr[idx:idx+3]
if nuc_frame.lower() in ["tag", "taa", "tga"]:
return True
return False
# Returns the to-from peptide frame depending on read strand and read_frame of the emitting vertex, returns
# the stop codon in the second result.
# <emitting_frame>: Read frame of the emitting exon
# <strand>: Read strand
# <peptide_prop_seq_ref>: Reference sequence of the propagating exon
# <peptide_accept_seq_ref>: Reference sequence of the accepting exon
# <peptide_prop_seq_mut>: Mutated sequence of the propagating exon
# <peptide_accept_seq_mut>: Mutated sequence of the accepting exon
# <peptide_prop_coord>: Gene coordinate of the propagating exon
# <peptide_accept_coord>: Gene coordinate of the accepting exon
def cross_peptide_result(emitting_frame, strand, peptide_prop_seq_ref, peptide_accept_seq_ref,
peptide_prop_seq_mut, peptide_accept_seq_mut, peptide_prop_coord,
peptide_accept_coord):
assert(len(peptide_prop_seq_mut) == len(peptide_prop_seq_ref))
assert(len(peptide_accept_seq_mut) == len(peptide_accept_seq_ref))
comp_read_frame = (3-emitting_frame) % 3
prop_rest = (len(peptide_prop_seq_mut)-emitting_frame) % 3
accept_rest = (len(peptide_accept_seq_mut)-comp_read_frame) % 3
cor_accept_rest = -1*accept_rest if accept_rest > 0 else len(peptide_accept_seq_mut)
if strand == "+":
peptide_dna_str_mut = peptide_prop_seq_mut[prop_rest:]+peptide_accept_seq_mut[:cor_accept_rest]
peptide_dna_str_ref = peptide_prop_seq_ref[prop_rest:]+peptide_accept_seq_ref[:cor_accept_rest]
peptide_start_coord_v1 = peptide_prop_coord[0]+prop_rest
peptide_stop_coord_v1 = peptide_prop_coord[1]
peptide_start_coord_v2 = peptide_accept_coord[0]
peptide_stop_coord_v2 = peptide_accept_coord[1]-accept_rest
else: # strand=="-"
peptide_dna_str_mut = complementary_seq(peptide_prop_seq_mut[::-1][prop_rest:]+peptide_accept_seq_mut[::-1][:cor_accept_rest])
peptide_dna_str_ref = complementary_seq(peptide_prop_seq_ref[::-1][prop_rest:]+peptide_accept_seq_ref[::-1][:cor_accept_rest])
peptide_stop_coord_v1 = peptide_prop_coord[1]-prop_rest
peptide_start_coord_v1 = peptide_prop_coord[0]
peptide_stop_coord_v2 = peptide_accept_coord[1]
peptide_start_coord_v2 = peptide_accept_coord[0]+accept_rest
assert(len(peptide_dna_str_mut) == len(peptide_dna_str_ref))
peptide_mut = translate_dna_to_peptide(peptide_dna_str_mut)
peptide_ref = translate_dna_to_peptide(peptide_dna_str_ref)
stop_codon_mut = False
assert(len(peptide_dna_str_mut) % 3 == 0)
# Detect pre/post junction stop codon in the sequence
for idx in range(0, len(peptide_dna_str_mut), 3):
nuc_frame = peptide_dna_str_mut[idx:idx+3]
if nuc_frame.lower() in ["tag", "taa", "tga"]:
stop_codon_mut = True
break
return (peptide_mut, peptide_ref, peptide_start_coord_v1+1, peptide_stop_coord_v1,
peptide_start_coord_v2+1, peptide_stop_coord_v2, stop_codon_mut)
# Returns true if there is a stop codon found spanning the two sequences
# seq_prop: Propagating sequence
# seq_accept: Accepting sequence
# read_frame: Read frame of propagating vertex
# strand: Direction of read strand
def has_stop_codon_cross(seq_prop, seq_accept, read_frame, strand):
if strand == "+":
check_seq = seq_prop[-read_frame:]+seq_accept
else: # strand=="-"
check_seq = seq_prop[::-1][-read_frame:]+seq_accept[::-1]
for idx in range(0, len(check_seq)-2, 3):
nuc_frame = check_seq[idx:idx+3]
if nuc_frame.lower() in ["tag", "taa", "tga"]:
return True
return False
# Yields the complementary DNA sequence
# dna_seq: Input nucleotide sequence
def complementary_seq(dna_seq):
comp_dict = {"A": "T", "T": "A", "C": "G", "G": "C"}
comp_dict_keys = comp_dict.keys()
return "".join(map(lambda nuc: comp_dict[nuc] if nuc in comp_dict_keys else nuc, dna_seq))
# Encodes chromosome to same cn
def encode_chromosome(in_num):
convert_dict = {23: "X", 24: "Y", 25: "MT"}
return convert_dict[in_num] if in_num in convert_dict.keys() else str(in_num)
|
def leq_strand(coord1, coord2, strand_mode):
if strand_mode == '+':
return coord1 <= coord2
else:
return coord1 >= coord2
def to_adj_list(adj_matrix):
adj_list = []
assert adj_matrix.shape[0] == adj_matrix.shape[1]
for idx in range(adj_matrix.shape[0]):
for jdx in range(adj_matrix.shape[0]):
if adj_matrix[idx, jdx] == 1 and idx <= jdx:
adj_list.append([idx, jdx])
return adj_list
def to_adj_succ_list(adj_matrix, vertex_map, read_strand):
succ_list = {}
assert adj_matrix.shape[0] == adj_matrix.shape[1]
for idx in range(adj_matrix.shape[0]):
succ_list[idx] = []
for jdx in range(adj_matrix.shape[0]):
if adj_matrix[idx, jdx] == 1:
if read_strand == '+' and vertex_map[0][idx] <= vertex_map[0][jdx] or (read_strand == '-' and vertex_map[1][idx] >= vertex_map[1][jdx]):
succ_list[idx].append(jdx)
return succ_list
def print_adj_list(adj_list):
print('EDGES: ')
for edge in adj_list:
print('{} -> {}'.format(edge[0], edge[1]))
def translate_dna_to_peptide(dna_str):
codontable = {'ATA': 'I', 'ATC': 'I', 'ATT': 'I', 'ATG': 'M', 'ACA': 'T', 'ACC': 'T', 'ACG': 'T', 'ACT': 'T', 'AAC': 'N', 'AAT': 'N', 'AAA': 'K', 'AAG': 'K', 'AGC': 'S', 'AGT': 'S', 'AGA': 'R', 'AGG': 'R', 'CTA': 'L', 'CTC': 'L', 'CTG': 'L', 'CTT': 'L', 'CCA': 'P', 'CCC': 'P', 'CCG': 'P', 'CCT': 'P', 'CAC': 'H', 'CAT': 'H', 'CAA': 'Q', 'CAG': 'Q', 'CGA': 'R', 'CGC': 'R', 'CGG': 'R', 'CGT': 'R', 'GTA': 'V', 'GTC': 'V', 'GTG': 'V', 'GTT': 'V', 'GCA': 'A', 'GCC': 'A', 'GCG': 'A', 'GCT': 'A', 'GAC': 'D', 'GAT': 'D', 'GAA': 'E', 'GAG': 'E', 'GGA': 'G', 'GGC': 'G', 'GGG': 'G', 'GGT': 'G', 'TCA': 'S', 'TCC': 'S', 'TCG': 'S', 'TCT': 'S', 'TTC': 'F', 'TTT': 'F', 'TTA': 'L', 'TTG': 'L', 'TAC': 'Y', 'TAT': 'Y', 'TAA': '_', 'TAG': '_', 'TGC': 'C', 'TGT': 'C', 'TGA': '_', 'TGG': 'W'}
dna_str = dna_str.upper()
aa_str = list('X' * (len(dna_str) / 3))
for idx in range(0, len(dna_str), 3):
codon = dna_str[idx:idx + 3]
if len(codon) < 3:
break
if 'N' in codon:
aa_str[idx / 3] = 'X'
else:
aa_str[idx / 3] = codontable[codon]
return ''.join(aa_str)
def has_stop_codon_initial(seq, start_coord, end_coord, strand):
if strand == '+':
assert start_coord <= end_coord
substr = seq[start_coord - 1:end_coord]
else:
assert start_coord >= end_coord
substr = complementary_seq(seq[end_coord - 1:start_coord][::-1])
for idx in range(0, len(substr) - 2, 3):
nuc_frame = substr[idx:idx + 3]
if nuc_frame.lower() in ['tag', 'taa', 'tga']:
return True
return False
def cross_peptide_result(emitting_frame, strand, peptide_prop_seq_ref, peptide_accept_seq_ref, peptide_prop_seq_mut, peptide_accept_seq_mut, peptide_prop_coord, peptide_accept_coord):
assert len(peptide_prop_seq_mut) == len(peptide_prop_seq_ref)
assert len(peptide_accept_seq_mut) == len(peptide_accept_seq_ref)
comp_read_frame = (3 - emitting_frame) % 3
prop_rest = (len(peptide_prop_seq_mut) - emitting_frame) % 3
accept_rest = (len(peptide_accept_seq_mut) - comp_read_frame) % 3
cor_accept_rest = -1 * accept_rest if accept_rest > 0 else len(peptide_accept_seq_mut)
if strand == '+':
peptide_dna_str_mut = peptide_prop_seq_mut[prop_rest:] + peptide_accept_seq_mut[:cor_accept_rest]
peptide_dna_str_ref = peptide_prop_seq_ref[prop_rest:] + peptide_accept_seq_ref[:cor_accept_rest]
peptide_start_coord_v1 = peptide_prop_coord[0] + prop_rest
peptide_stop_coord_v1 = peptide_prop_coord[1]
peptide_start_coord_v2 = peptide_accept_coord[0]
peptide_stop_coord_v2 = peptide_accept_coord[1] - accept_rest
else:
peptide_dna_str_mut = complementary_seq(peptide_prop_seq_mut[::-1][prop_rest:] + peptide_accept_seq_mut[::-1][:cor_accept_rest])
peptide_dna_str_ref = complementary_seq(peptide_prop_seq_ref[::-1][prop_rest:] + peptide_accept_seq_ref[::-1][:cor_accept_rest])
peptide_stop_coord_v1 = peptide_prop_coord[1] - prop_rest
peptide_start_coord_v1 = peptide_prop_coord[0]
peptide_stop_coord_v2 = peptide_accept_coord[1]
peptide_start_coord_v2 = peptide_accept_coord[0] + accept_rest
assert len(peptide_dna_str_mut) == len(peptide_dna_str_ref)
peptide_mut = translate_dna_to_peptide(peptide_dna_str_mut)
peptide_ref = translate_dna_to_peptide(peptide_dna_str_ref)
stop_codon_mut = False
assert len(peptide_dna_str_mut) % 3 == 0
for idx in range(0, len(peptide_dna_str_mut), 3):
nuc_frame = peptide_dna_str_mut[idx:idx + 3]
if nuc_frame.lower() in ['tag', 'taa', 'tga']:
stop_codon_mut = True
break
return (peptide_mut, peptide_ref, peptide_start_coord_v1 + 1, peptide_stop_coord_v1, peptide_start_coord_v2 + 1, peptide_stop_coord_v2, stop_codon_mut)
def has_stop_codon_cross(seq_prop, seq_accept, read_frame, strand):
if strand == '+':
check_seq = seq_prop[-read_frame:] + seq_accept
else:
check_seq = seq_prop[::-1][-read_frame:] + seq_accept[::-1]
for idx in range(0, len(check_seq) - 2, 3):
nuc_frame = check_seq[idx:idx + 3]
if nuc_frame.lower() in ['tag', 'taa', 'tga']:
return True
return False
def complementary_seq(dna_seq):
comp_dict = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'}
comp_dict_keys = comp_dict.keys()
return ''.join(map(lambda nuc: comp_dict[nuc] if nuc in comp_dict_keys else nuc, dna_seq))
def encode_chromosome(in_num):
convert_dict = {23: 'X', 24: 'Y', 25: 'MT'}
return convert_dict[in_num] if in_num in convert_dict.keys() else str(in_num)
|
a = 3
if a ==2:
print("A")
if a==3:
print("B")
if a==4:
print("C")
else:
print("D")
|
a = 3
if a == 2:
print('A')
if a == 3:
print('B')
if a == 4:
print('C')
else:
print('D')
|
def data_splitter(data, idxs):
subsample = data[idxs]
return subsample
## Note: matrices are indexed like mat[rows, cols]. If only one is provided, it is interpreted as mat[rows].
|
def data_splitter(data, idxs):
subsample = data[idxs]
return subsample
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.