content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
class Solution:
def multiply(self, num1: str, num2: str) -> str:
n1 = len(num1)
n2 = len(num2)
if not n1 or not n2:
return ""
if n1 == 1 and num1[0] == '0':
return "0"
if n2 == 1 and num2[0] == '0':
return "0"
# arr_num1 = list(reversed(num1))
arr_num1 = list(map(lambda x: ord(x) - ord('0'), num1))
arr_num1 = list(reversed(arr_num1))
# arr_num2 = list(reversed(num2))
arr_num2 = list(map(lambda x: ord(x) - ord('0'), num2))
arr_num2 = list(reversed(arr_num2))
arr_res = [0] * (n1 + n2)
i = 0
j = 0
c = 0
res = ""
PRIME = 10
for j in range(n2):
for i in range(n1):
sum = arr_num1[i] * arr_num2[j] + arr_res[i + j]
c = sum // PRIME
arr_res[i + j] = sum % PRIME
if c != 0:
arr_res[i + j + 1] += c
res1 = map(lambda x: str(x), reversed(arr_res))
flag = 0
res_str = ""
for ch in res1:
if flag == 0:
if ch != "0":
flag = 1
res_str = ch
else:
res_str = res_str + ch
return res_str
sl = Solution()
num1 = "2"
num2 = "3"
res1 = sl.multiply(num1, num2)
print(res1)
num1 = "123"
num2 = "456"
res2 = sl.multiply(num1, num2)
print(res2) | class Solution:
def multiply(self, num1: str, num2: str) -> str:
n1 = len(num1)
n2 = len(num2)
if not n1 or not n2:
return ''
if n1 == 1 and num1[0] == '0':
return '0'
if n2 == 1 and num2[0] == '0':
return '0'
arr_num1 = list(map(lambda x: ord(x) - ord('0'), num1))
arr_num1 = list(reversed(arr_num1))
arr_num2 = list(map(lambda x: ord(x) - ord('0'), num2))
arr_num2 = list(reversed(arr_num2))
arr_res = [0] * (n1 + n2)
i = 0
j = 0
c = 0
res = ''
prime = 10
for j in range(n2):
for i in range(n1):
sum = arr_num1[i] * arr_num2[j] + arr_res[i + j]
c = sum // PRIME
arr_res[i + j] = sum % PRIME
if c != 0:
arr_res[i + j + 1] += c
res1 = map(lambda x: str(x), reversed(arr_res))
flag = 0
res_str = ''
for ch in res1:
if flag == 0:
if ch != '0':
flag = 1
res_str = ch
else:
res_str = res_str + ch
return res_str
sl = solution()
num1 = '2'
num2 = '3'
res1 = sl.multiply(num1, num2)
print(res1)
num1 = '123'
num2 = '456'
res2 = sl.multiply(num1, num2)
print(res2) |
c=1
menor = 9999
while True:
numero =int(input())
#condicion para obtener el menor
if numero < menor and numero != 0:
menor = numero
#condicion para detener el bucle
if numero ==0:
break
c=c+1
print("Menor:",menor) | c = 1
menor = 9999
while True:
numero = int(input())
if numero < menor and numero != 0:
menor = numero
if numero == 0:
break
c = c + 1
print('Menor:', menor) |
class Solution:
def rob(self, nums: List[int]) -> int:
if not nums:
raise Exception("Empty Array")
if len(nums) == 1:
return nums[0]
if len(nums) == 2:
return max(nums[0], nums[1])
# loop arr[0:N - 1]
dp_0 = [0] * len(nums)
dp_0[0] = nums[0]
dp_0[1] = max(nums[0], nums[1])
for i in range(2, len(nums) - 1):
dp_0[i] = max(dp_0[i - 1], dp_0[i - 2] + nums[i])
# loop arr[1:N]
dp_1 = [0] * len(nums)
dp_1[1] = nums[1]
dp_1[2] = max(nums[1], nums[2])
for i in range(3, len(nums)):
dp_1[i] = max(dp_1[i - 1], dp_1[i - 2] + nums[i])
return max(max(dp_0), max(dp_1))
| class Solution:
def rob(self, nums: List[int]) -> int:
if not nums:
raise exception('Empty Array')
if len(nums) == 1:
return nums[0]
if len(nums) == 2:
return max(nums[0], nums[1])
dp_0 = [0] * len(nums)
dp_0[0] = nums[0]
dp_0[1] = max(nums[0], nums[1])
for i in range(2, len(nums) - 1):
dp_0[i] = max(dp_0[i - 1], dp_0[i - 2] + nums[i])
dp_1 = [0] * len(nums)
dp_1[1] = nums[1]
dp_1[2] = max(nums[1], nums[2])
for i in range(3, len(nums)):
dp_1[i] = max(dp_1[i - 1], dp_1[i - 2] + nums[i])
return max(max(dp_0), max(dp_1)) |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class FreeObject(object):
pass
class Solution:
# @param {ListNode} l1
# @param {ListNode} l2
# @return {ListNode}
def addTwoNumbers(self, l1, l2):
bk = l3 = FreeObject()
rest = 0
while l1 or l2 or rest:
su = (l1.val if l1 else 0) + (l2.val if l2 else 0) + rest
l3.next = ListNode(su % 10)
rest = (0, 1)[su >= 10]
l3 = l3.next
l1 = l1.next if l1 else None
l2 = l2.next if l2 else None
return bk.next
| class Freeobject(object):
pass
class Solution:
def add_two_numbers(self, l1, l2):
bk = l3 = free_object()
rest = 0
while l1 or l2 or rest:
su = (l1.val if l1 else 0) + (l2.val if l2 else 0) + rest
l3.next = list_node(su % 10)
rest = (0, 1)[su >= 10]
l3 = l3.next
l1 = l1.next if l1 else None
l2 = l2.next if l2 else None
return bk.next |
# from adventofcode._2020.day11.challenge import main
def test_input():
pass
| def test_input():
pass |
def largest_prime_factor(number):
factor = 2
while number != 1:
if number % factor == 0:
number /= factor
else:
factor += 1
return factor
| def largest_prime_factor(number):
factor = 2
while number != 1:
if number % factor == 0:
number /= factor
else:
factor += 1
return factor |
class Solution:
def coinChange(self, coins, amount):
if amount == 0:
return 0
dp = [2 << 63] * (amount + 1)
for coin in coins:
if coin <= amount:
dp[coin] = 1
for i in range(1, amount + 1):
for j in range(len(coins)):
if i >= coins[j] and dp[i - coins[j]] != 2 << 63:
dp[i] = min(dp[i], dp[i - coins[j]] + 1)
if dp[amount] != 2 << 63:
return dp[amount]
return -1
| class Solution:
def coin_change(self, coins, amount):
if amount == 0:
return 0
dp = [2 << 63] * (amount + 1)
for coin in coins:
if coin <= amount:
dp[coin] = 1
for i in range(1, amount + 1):
for j in range(len(coins)):
if i >= coins[j] and dp[i - coins[j]] != 2 << 63:
dp[i] = min(dp[i], dp[i - coins[j]] + 1)
if dp[amount] != 2 << 63:
return dp[amount]
return -1 |
val = input()
matsubi = val[-1:]
if matsubi == "s":
val2 = val + "es"
else:
val2 = val + "s"
print(val2)
| val = input()
matsubi = val[-1:]
if matsubi == 's':
val2 = val + 'es'
else:
val2 = val + 's'
print(val2) |
# -*- coding: utf-8 -*-
# @Time : 2020/8/26-19:48
# @Author : TuringEmmy
# @Email : yonglonggeng@163.com
# @WeChat : csy_lgy
# @File : height_weight.py
# @Project : Happy-Algorithm
def first():
times = int(input())
height = input().split()
weight = input().split()
heights = [int(i) for i in height]
weights = [int(i) for i in weight]
# data_dict = {}
# for i in range(times):
# data_dict[i] = [heights[i], weights[i]]
# sorted(data_dict[:][0])
# sorted(data_dict[:][1])
#
# print(data_dict)
# for key,value in data_dict.items():
# print(value)
data_list = [[i + 1, heights[i], weights[i]] for i in range(times)]
# print(data_list)
sor = lambda x: x[0]
sor(data_list)
print(data_list)
def second():
length = int(input())
nums = input()
nums = [int(i) for i in nums.split()]
while len(nums) > 1 and len(nums) == length:
max_num = max(nums)
min_num = min(nums)
nums.remove(max_num)
nums.remove(min_num)
temp = abs(max_num - min_num)
nums.append(temp)
if len(nums) == 1:
return nums[0]
else:
return 0
def threed():
pass
if __name__ == '__main__':
# first()
# second()
threed()
| def first():
times = int(input())
height = input().split()
weight = input().split()
heights = [int(i) for i in height]
weights = [int(i) for i in weight]
data_list = [[i + 1, heights[i], weights[i]] for i in range(times)]
sor = lambda x: x[0]
sor(data_list)
print(data_list)
def second():
length = int(input())
nums = input()
nums = [int(i) for i in nums.split()]
while len(nums) > 1 and len(nums) == length:
max_num = max(nums)
min_num = min(nums)
nums.remove(max_num)
nums.remove(min_num)
temp = abs(max_num - min_num)
nums.append(temp)
if len(nums) == 1:
return nums[0]
else:
return 0
def threed():
pass
if __name__ == '__main__':
threed() |
# Turtle topic name and type key constant
KEY_TOPIC_MSG_TYPE = 'msg_type'
KEY_TOPIC_NAME = 'name'
# Logging frequency in seconds
LOG_FREQUENCY = 10
# Publisher/Subscriber Queue size
QUEUE_SIZE = 10
# Set angle and distance thresholds
ANGULAR_DIST_THRESHOLD = 0.05
LINEAR_DIST_THRESHOLD = 0.05
| key_topic_msg_type = 'msg_type'
key_topic_name = 'name'
log_frequency = 10
queue_size = 10
angular_dist_threshold = 0.05
linear_dist_threshold = 0.05 |
config = {
"interfaces": {
"google.cloud.websecurityscanner.v1alpha.WebSecurityScanner": {
"retry_codes": {
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
"non_idempotent": [],
},
"retry_params": {
"default": {
"initial_retry_delay_millis": 100,
"retry_delay_multiplier": 1.3,
"max_retry_delay_millis": 60000,
"initial_rpc_timeout_millis": 20000,
"rpc_timeout_multiplier": 1.0,
"max_rpc_timeout_millis": 20000,
"total_timeout_millis": 600000,
}
},
"methods": {
"CreateScanConfig": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteScanConfig": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetScanConfig": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListScanConfigs": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"UpdateScanConfig": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"StartScanRun": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetScanRun": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListScanRuns": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"StopScanRun": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"ListCrawledUrls": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetFinding": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListFindings": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListFindingTypeStats": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
},
}
}
}
| config = {'interfaces': {'google.cloud.websecurityscanner.v1alpha.WebSecurityScanner': {'retry_codes': {'idempotent': ['DEADLINE_EXCEEDED', 'UNAVAILABLE'], 'non_idempotent': []}, 'retry_params': {'default': {'initial_retry_delay_millis': 100, 'retry_delay_multiplier': 1.3, 'max_retry_delay_millis': 60000, 'initial_rpc_timeout_millis': 20000, 'rpc_timeout_multiplier': 1.0, 'max_rpc_timeout_millis': 20000, 'total_timeout_millis': 600000}}, 'methods': {'CreateScanConfig': {'timeout_millis': 60000, 'retry_codes_name': 'non_idempotent', 'retry_params_name': 'default'}, 'DeleteScanConfig': {'timeout_millis': 60000, 'retry_codes_name': 'idempotent', 'retry_params_name': 'default'}, 'GetScanConfig': {'timeout_millis': 60000, 'retry_codes_name': 'idempotent', 'retry_params_name': 'default'}, 'ListScanConfigs': {'timeout_millis': 60000, 'retry_codes_name': 'idempotent', 'retry_params_name': 'default'}, 'UpdateScanConfig': {'timeout_millis': 60000, 'retry_codes_name': 'non_idempotent', 'retry_params_name': 'default'}, 'StartScanRun': {'timeout_millis': 60000, 'retry_codes_name': 'non_idempotent', 'retry_params_name': 'default'}, 'GetScanRun': {'timeout_millis': 60000, 'retry_codes_name': 'idempotent', 'retry_params_name': 'default'}, 'ListScanRuns': {'timeout_millis': 60000, 'retry_codes_name': 'idempotent', 'retry_params_name': 'default'}, 'StopScanRun': {'timeout_millis': 60000, 'retry_codes_name': 'non_idempotent', 'retry_params_name': 'default'}, 'ListCrawledUrls': {'timeout_millis': 60000, 'retry_codes_name': 'idempotent', 'retry_params_name': 'default'}, 'GetFinding': {'timeout_millis': 60000, 'retry_codes_name': 'idempotent', 'retry_params_name': 'default'}, 'ListFindings': {'timeout_millis': 60000, 'retry_codes_name': 'idempotent', 'retry_params_name': 'default'}, 'ListFindingTypeStats': {'timeout_millis': 60000, 'retry_codes_name': 'idempotent', 'retry_params_name': 'default'}}}}} |
infile=open('baublesin.txt','r').readline()
ro,bo,s,rp,bp=map(int,infile.split())
answer=0
r=ro-rp
b=bo-bp
if s==0:
if r<0 or b<0:
answer=0
elif r>=b:
if bo==0 or bp==0:
answer+=r+1
else:
answer+=b+1
elif b>r:
if ro==0 or rp==0:
answer+=b+1
else:
answer+=r+1
elif bo==bp==0:
if s+ro<rp:
answer=0
elif s+ro==rp:
answer=1
else:
answer=(ro+s)-rp+1
elif ro==rp==0:
if s+bo<bp:
answer=0
elif s+bo==bp:
answer=1
else:
answer=(bo+s)-bp+1
else:
min1=min(r,b)
max1=max(r,b)
if min1<0:
if r<0:
s+=r
ro=rp
if b<0:
s+=b
bo=bp
answer=s+1
if r>=0 and b>=0:
if r>b:
answer=b+s+1
else:
answer=r+s+1
if answer<0:
answer=0
elif min1==0:
answer=s+1
else:
if rp==0:
answer=(bo+s)-bp+1
elif bp==0:
answer=(ro+s)-rp+1
else:
min1+=s+1
answer=min1
outfile=open('baublesout.txt','w')
outfile.write(str(answer))
outfile.close()
| infile = open('baublesin.txt', 'r').readline()
(ro, bo, s, rp, bp) = map(int, infile.split())
answer = 0
r = ro - rp
b = bo - bp
if s == 0:
if r < 0 or b < 0:
answer = 0
elif r >= b:
if bo == 0 or bp == 0:
answer += r + 1
else:
answer += b + 1
elif b > r:
if ro == 0 or rp == 0:
answer += b + 1
else:
answer += r + 1
elif bo == bp == 0:
if s + ro < rp:
answer = 0
elif s + ro == rp:
answer = 1
else:
answer = ro + s - rp + 1
elif ro == rp == 0:
if s + bo < bp:
answer = 0
elif s + bo == bp:
answer = 1
else:
answer = bo + s - bp + 1
else:
min1 = min(r, b)
max1 = max(r, b)
if min1 < 0:
if r < 0:
s += r
ro = rp
if b < 0:
s += b
bo = bp
answer = s + 1
if r >= 0 and b >= 0:
if r > b:
answer = b + s + 1
else:
answer = r + s + 1
if answer < 0:
answer = 0
elif min1 == 0:
answer = s + 1
elif rp == 0:
answer = bo + s - bp + 1
elif bp == 0:
answer = ro + s - rp + 1
else:
min1 += s + 1
answer = min1
outfile = open('baublesout.txt', 'w')
outfile.write(str(answer))
outfile.close() |
# Symbol of circle required to show Celsius degree on display.
circle = [
[0, 0, 0, 0, 1, 1, 0, 0],
[0, 0, 0, 1, 0, 0, 1, 0],
[0, 0, 0, 1, 0, 0, 1, 0],
[0, 0, 0, 0, 1, 1, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0],
] | circle = [[0, 0, 0, 0, 1, 1, 0, 0], [0, 0, 0, 1, 0, 0, 1, 0], [0, 0, 0, 1, 0, 0, 1, 0], [0, 0, 0, 0, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]] |
#
# PySNMP MIB module SONUS-NODE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SONUS-NODE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:09:55 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")
ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint")
ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup")
NotificationType, Counter64, MibIdentifier, Bits, ObjectIdentity, Unsigned32, iso, Integer32, Gauge32, ModuleIdentity, IpAddress, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Counter64", "MibIdentifier", "Bits", "ObjectIdentity", "Unsigned32", "iso", "Integer32", "Gauge32", "ModuleIdentity", "IpAddress", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks")
TextualConvention, DateAndTime, DisplayString, RowStatus = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DateAndTime", "DisplayString", "RowStatus")
sonusSlotIndex, sonusEventLevel, sonusEventDescription, sonusPortIndex, sonusShelfIndex, sonusEventClass = mibBuilder.importSymbols("SONUS-COMMON-MIB", "sonusSlotIndex", "sonusEventLevel", "sonusEventDescription", "sonusPortIndex", "sonusShelfIndex", "sonusEventClass")
sonusSystemMIBs, = mibBuilder.importSymbols("SONUS-SMI", "sonusSystemMIBs")
SonusServiceState, SonusAdminAction, SonusSoftwareVersion, SonusName, AdapterTypeID, ServerFunctionType, ServerTypeID, SonusAdminState, SonusAccessLevel, HwTypeID = mibBuilder.importSymbols("SONUS-TC", "SonusServiceState", "SonusAdminAction", "SonusSoftwareVersion", "SonusName", "AdapterTypeID", "ServerFunctionType", "ServerTypeID", "SonusAdminState", "SonusAccessLevel", "HwTypeID")
sonusNodeMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1))
if mibBuilder.loadTexts: sonusNodeMIB.setLastUpdated('200107310000Z')
if mibBuilder.loadTexts: sonusNodeMIB.setOrganization('Sonus Networks, Inc.')
if mibBuilder.loadTexts: sonusNodeMIB.setContactInfo(' Customer Support Sonus Networks, Inc, 5 carlisle Road Westford, MA 01886 USA Tel: 978-692-8999 Fax: 978-392-9118 E-mail: cs.snmp@sonusnet.com')
if mibBuilder.loadTexts: sonusNodeMIB.setDescription('The MIB Module for Node Management.')
sonusNodeMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1))
sonusNode = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1))
sonusNodeAdmnObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 1))
sonusNodeAdmnShelves = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdmnShelves.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdmnShelves.setDescription('The number of shelves configured to be present in this node.')
sonusNodeAdmnTelnetLogin = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 1, 2), SonusAdminState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeAdmnTelnetLogin.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdmnTelnetLogin.setDescription('')
sonusNodeStatusObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 2))
sonusNodeStatShelvesPresent = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeStatShelvesPresent.setStatus('current')
if mibBuilder.loadTexts: sonusNodeStatShelvesPresent.setDescription('The number of shelves currently present in this node.')
sonusNodeStatNextIfIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 2, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeStatNextIfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeStatNextIfIndex.setDescription('This MIB object identifies the next ifIndex to use in the creation of an interface. This MIB object directly corresponds to the ifIndex MIB object in the ifTable. A value of 0 means that no next ifIndex is currently available.')
sonusNodeStatMgmtStatus = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("manageable", 1), ("softwareUpgradeInProgress", 2), ("softwareUpgradeFailed", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeStatMgmtStatus.setStatus('current')
if mibBuilder.loadTexts: sonusNodeStatMgmtStatus.setDescription("Identifies if this node can be effectively managed by a network management system. A value of 'manageable' indicates that it can be; the other values indicate that a significant operation is in progress and that a network management system should minimize any requests of this node.")
sonusNodeShelfAdmnTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3), )
if mibBuilder.loadTexts: sonusNodeShelfAdmnTable.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmnTable.setDescription("This table contains information about each shelf which is configured to be a member of the node. This table describes the configured characteristics of each shelf, including the shelve's identity (sonusNodeShelfAdmnIpaddr1 and sonusNodeShelfAdmnIpaddr2). A row must be created by the manager for every slave shelf that is to join the master shelf as part of the node. Slave shelves which do not have correct entries in this table, can not join the node. A management entity may create rows for shelves that are anticipated to join the node in the future.")
sonusNodeShelfAdmnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusNodeShelfAdmnIndex"))
if mibBuilder.loadTexts: sonusNodeShelfAdmnEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmnEntry.setDescription('This table describes the shelves that are configured as members of the GSX9000 Switch node.')
sonusNodeShelfAdmnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfAdmnIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmnIndex.setDescription('Identifies the target shelf in the node. Each node may be compprised of one or more shelves. The maximum number of shelves allowed in a node is six.')
sonusNodeShelfAdmnState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 2), SonusAdminState()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: sonusNodeShelfAdmnState.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmnState.setDescription('The configured state of the target shelf in the node.')
sonusNodeShelfAdmnIpaddr1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 3), IpAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: sonusNodeShelfAdmnIpaddr1.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmnIpaddr1.setDescription("The IP Address of the shelf. This value identifies the shelf that may join the node. Each shelf has two IP addresses that it may be reached by. This is the first of those two addresses. Note that it is not possible to change this object on the master shelf. That would be tantamount to changing that shelf's IP address.")
sonusNodeShelfAdmnIpaddr2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 4), IpAddress()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: sonusNodeShelfAdmnIpaddr2.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmnIpaddr2.setDescription("The IP Address of the shelf. This value identifies the shelf that may join the node. Each shelf has two IP addresses that it may be reached by. This is the second of those two addresses. Note that it is not possible to change this object on the master shelf. That would be tantamount to changing the shelf's IP address.")
sonusNodeShelfAdmn48VdcAState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 5), SonusAdminState()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: sonusNodeShelfAdmn48VdcAState.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmn48VdcAState.setDescription("The configured state of the shelf's 48 VDC A-power supply. Indicates whether the A supply SHOULD be present. This object is not capable of disabling a connected supply.")
sonusNodeShelfAdmn48VdcBState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 6), SonusAdminState()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: sonusNodeShelfAdmn48VdcBState.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmn48VdcBState.setDescription("The configured state of the shelf's 48 VDC B-power supply. Indicates whether the B supply SHOULD be present. This object is not capable of disabling a connected supply.")
sonusNodeShelfAdmnStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("absent", 1), ("detected", 2), ("accepted", 3), ("shuttingDown", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfAdmnStatus.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmnStatus.setDescription('The status of the indexed shelf in the GSX9000 node. If the value of this object is not accepted(3) or shuttingDown(4), then the objects in Sonus Shelf Status table are unavailable. The value of this object does not reach accepted(3) until after the slave shelf has contacted the master shelf, and has successfully joined the node. A value of shuttingDown(4) indicates the shelf will be unavailable shortly.')
sonusNodeShelfAdmnRestart = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("restart", 2), ("shutdown", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: sonusNodeShelfAdmnRestart.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmnRestart.setDescription('This object is used to reset a shelf in the node. The object causes the management servers on the indexed shelf to perform the indicated operation. The restart(2) operation causes the management servers to reboot. The shutdown(3) operation causes the management servers to disable power to all cards on the indexed shelf, including themselves. The shutdown(3) operation requires physical intervention to re-power the shelf. This object always reads as unknown(1).')
sonusNodeShelfAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 9), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: sonusNodeShelfAdmnRowStatus.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfAdmnRowStatus.setDescription('This object indicates the row status for this table.')
sonusNodeShelfStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4), )
if mibBuilder.loadTexts: sonusNodeShelfStatTable.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatTable.setDescription("This table contains status information about each shelf in the GSX9000 Switch node. Shelves within the node can can be configured before they are physically attached to the node. Shelves that are attached may not be powered or correctly configured as a slave. Therefore, it is possible that a slave shelf can not be detected, and is absent. The value of sonusNodeShelfAdmnStatus indicates the availability of this shelf. If the sonusNodeShelfAdmnStatus value for the index shelf does not indicate a status value of 'accepted', then this status table is not available.")
sonusNodeShelfStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusNodeShelfStatIndex"))
if mibBuilder.loadTexts: sonusNodeShelfStatEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatEntry.setDescription('This table describes the shelves that are configured as members of the GSX9000 Switch node.')
sonusNodeShelfStatIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStatIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatIndex.setDescription('Identifies the target shelf within the node. Returns the same value as sonusNodeShelfStatIndex, the index into this instance.')
sonusNodeShelfStatSlots = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStatSlots.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatSlots.setDescription('The number of physical slots present in this shelf.')
sonusNodeShelfStatSerialNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStatSerialNumber.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatSerialNumber.setDescription('Identifies the Sonus serial number for this shelf.')
sonusNodeShelfStatType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("slave", 1), ("master", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStatType.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatType.setDescription('Identifies the Sonus shelf type. A shelf may be either the master shelf for the node, or it may be one of several slave shelves in the node. Every node contains exactly one master shelf. The master shelf in the management focal point for the node.')
sonusNodeShelfStatFan = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("notPresent", 1), ("controllerFailure", 2), ("singleFailure", 3), ("multipleFailures", 4), ("powerFailure", 5), ("operational", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStatFan.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatFan.setDescription("Identifies the status of the shelf's fan tray. A controllerFailure(2) indicates that the fan status can not be obtained. In that case in can not be determined if the fans are operational, or experiencing other failures as well.")
sonusNodeShelfStat48VAStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("absent", 1), ("present", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStat48VAStatus.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStat48VAStatus.setDescription("The status of the shelf's 48 VDC A-power supply.")
sonusNodeShelfStat48VBStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("absent", 1), ("present", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStat48VBStatus.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStat48VBStatus.setDescription("The status of the shelf's 48 VDC B-power supply.")
sonusNodeShelfStatBackplane = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 8), HwTypeID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStatBackplane.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatBackplane.setDescription('The hardware type ID of the backplane in this shelf.')
sonusNodeShelfStatBootCount = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStatBootCount.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatBootCount.setDescription('Specifies the number of times that this shelf has been booted. The boot count is specified from the perspective of the active management module running in the indexed shelf.')
sonusNodeShelfStatTemperature = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStatTemperature.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatTemperature.setDescription("Indicates the temperature being sensed at this shelf's intake manifold. The temperature is indicated in Celcius.")
sonusNodeShelfStatFanSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("high", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeShelfStatFanSpeed.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfStatFanSpeed.setDescription('Indicates the speed of the fan.')
sonusNodeSrvrAdmnTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5), )
if mibBuilder.loadTexts: sonusNodeSrvrAdmnTable.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnTable.setDescription("The server module ADMN table describes the configuration of each server module slot in an indexed shelf. A slot in a shelf, MUST be configured to accept a particular server module HWTYPE. If the wrong type of server module is detected in the slot, that server module will not be allowed to complete its boot process. All server modules are held in the RESET state until that server module's state is set to ENABLED. A server module must have its state set to DISABLED, before the row can be deleted. The row must be deleted, and re-created in order to change the HWTYPE of the row. The server module mode must be set to OUTOFSERVICE before the row's state can be set to DISABLED. Deleting a row in this table, clears the server module hardware type association for this slot. THIS IS A MAJOR CONFIGURATION CHANGE. All configured parameters associated with this slot are permanently lost when the server module is deleted. A server module can not be deleted, until it's state has been set to DISABLED. A row's default value for state is DISABLED. The server module located in the slot is immediately placed in reset when its state is set to disabled.")
sonusNodeSrvrAdmnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusNodeSrvrAdmnShelfIndex"), (0, "SONUS-NODE-MIB", "sonusNodeSrvrAdmnSlotIndex"))
if mibBuilder.loadTexts: sonusNodeSrvrAdmnEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnEntry.setDescription('')
sonusNodeSrvrAdmnShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnShelfIndex.setDescription('Identifies the target shelf. Returns the same value as sonusNodeShelfStatIndex, which was used to index into this table.')
sonusNodeSrvrAdmnSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonusNodeSrvrAdmnHwType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 3), ServerTypeID()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnHwType.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnHwType.setDescription('Identifies the type of server module the indexed slot has been configured to accept. Server modules other than this type are rejected by the System Manager. This object is required to create a row instance.')
sonusNodeSrvrAdmnState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 4), SonusAdminState().clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnState.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnState.setDescription('A server module must be enabled before System Manager will fully recognize it. The server module must be disabled before the server module can be deleted.')
sonusNodeSrvrAdmnMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 5), SonusServiceState().clone('inService')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnMode.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnMode.setDescription('A server module which is outOfService will not accept new calls. When taken out of service, its active calls may either be dried up or terminated, depending on the action specified. Server modules are created with a mode of inService. A server module must be outOfService in order to change its state to disabled.')
sonusNodeSrvrAdmnAction = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 6), SonusAdminAction().clone('force')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnAction.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnAction.setDescription('The type of action to perform when a server module is taken out of service. The active calls on the server module can be dried up for a specified dryup limit, or they can be forced to be terminated.')
sonusNodeSrvrAdmnDryupLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnDryupLimit.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnDryupLimit.setDescription('Server module dryup limit, specified in minutes. If the server module has not dried up by the time this limit expires, the remaining active calls are abruptly terminated. A dryup limit of zero indicates that the system will wait forever for the dryup to complete.')
sonusNodeSrvrAdmnDumpState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 8), SonusAdminState().clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnDumpState.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnDumpState.setDescription('Indicates if a server module will create a crashblock file when a critical error which prevents the module from continuing, has occured.')
sonusNodeSrvrAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 9), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnRowStatus.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnRowStatus.setDescription('Deleting a server module will place that slot in reset. All configuration parameters associated with the server module in this slot are destroyed.')
sonusNodeSrvrAdmnRedundancyRole = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("redundant", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnRedundancyRole.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnRedundancyRole.setDescription('Specifies the redundancy role this server module will play. This object is required to create a row instance.')
sonusNodeSrvrAdmnAdapHwType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 11), AdapterTypeID()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnAdapHwType.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnAdapHwType.setDescription('Identifies the type of adapter module the indexed slot has been configured to accept. Adapter modules other than this type are rejected by the System Manager. This object is required to create a row instance.')
sonusNodeSrvrAdmnSpecialFunction = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 12), ServerFunctionType()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSrvrAdmnSpecialFunction.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrAdmnSpecialFunction.setDescription('Specifies the logical function for this server module. This object may be specified only at row creation time, but is not required. If not specified, an appropriate default value will be assigned based on the server and adapter hardware types. A value of default(1) is not accepted or used.')
sonusNodeSlotTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6), )
if mibBuilder.loadTexts: sonusNodeSlotTable.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotTable.setDescription('The node slot table describes')
sonusNodeSlotEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusNodeSlotShelfIndex"), (0, "SONUS-NODE-MIB", "sonusNodeSlotIndex"))
if mibBuilder.loadTexts: sonusNodeSlotEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotEntry.setDescription('')
sonusNodeSlotShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotShelfIndex.setDescription('Identifies the indexed shelf. Returns the same value as sonusNodeShelfStatIndex, which is used to index into this table.')
sonusNodeSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotIndex.setDescription('Identifies the indexed slot within the shelf.')
sonusNodeSlotState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15))).clone(namedValues=NamedValues(("unknown", 1), ("empty", 2), ("inserted", 3), ("reset", 4), ("boot", 5), ("sonicId", 6), ("coreDump", 7), ("holdOff", 8), ("loading", 9), ("activating", 10), ("activated", 11), ("running", 12), ("faulted", 13), ("powerOff", 14), ("powerFail", 15)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotState.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotState.setDescription('Identifies the operational state of the indexed slot in the shelf.')
sonusNodeSlotHwType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 4), HwTypeID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotHwType.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotHwType.setDescription('Identifies the hardware type of the server module which was detected in the slot. Valid only if the sonusNodeSlotState is greater than inserted(2).')
sonusNodeSlotHwTypeRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotHwTypeRev.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotHwTypeRev.setDescription('Identifies the hardware type revision of the server module which was detected in the slot. Valid only if the sonusNodeSlotState is greater than inserted(2).')
sonusNodeSlotPower = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("powerFault", 2), ("powerOK", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotPower.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotPower.setDescription('Identifies the server modules power mode. If the slot state is empty, the power status is unknown(1).')
sonusNodeSlotAdapState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("empty", 2), ("present", 3), ("faulted", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotAdapState.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotAdapState.setDescription('Identifies the adapter state of the indexed slot in the shelf.')
sonusNodeSlotAdapHwType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 8), HwTypeID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotAdapHwType.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotAdapHwType.setDescription('Identifies the hardware type of the adapter module which was detected in the slot. Valid only if the sonusNodeSlotAdapState is present(3).')
sonusNodeSrvrStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7), )
if mibBuilder.loadTexts: sonusNodeSrvrStatTable.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatTable.setDescription("The node server status table describes the status of the indexed server module in the node. This table is unavailable if the sonusNodeShelfStatStatus object indicates that this slot is empty. If the sonusNodeSrvrStatType object returns either 'absent' or 'unknown' the value of all other objects within this table are indeterministic.")
sonusNodeSrvrStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusNodeSrvrStatShelfIndex"), (0, "SONUS-NODE-MIB", "sonusNodeSrvrStatSlotIndex"))
if mibBuilder.loadTexts: sonusNodeSrvrStatEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatEntry.setDescription('')
sonusNodeSrvrStatShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatShelfIndex.setDescription('Identifies the target shelf. Returns the same value as sonusNodeShelfStatIndex, which was used to index into this table.')
sonusNodeSrvrStatSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonusNodeSrvrStatMiddVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatMiddVersion.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatMiddVersion.setDescription('Identifies the version of the MIDD EEPROM on this server module.')
sonusNodeSrvrStatHwType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 4), HwTypeID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatHwType.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatHwType.setDescription('Identifies the type of server module in the indexed slot.')
sonusNodeSrvrStatSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatSerialNum.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatSerialNum.setDescription('Identifies the serial number of the server module. This is the serial number assigned to the server module at manufacture.')
sonusNodeSrvrStatPartNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatPartNum.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatPartNum.setDescription('Identifies the part number of the module. This is the part number assigned to the module at manufacture.')
sonusNodeSrvrStatPartNumRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatPartNumRev.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatPartNumRev.setDescription('Identifies the manufacture part number revision level of the server module.')
sonusNodeSrvrStatMfgDate = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatMfgDate.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatMfgDate.setDescription('The date this server module assembly was manufactured.')
sonusNodeSrvrStatFlashVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatFlashVersion.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatFlashVersion.setDescription('Identifies the version of the firmware within the non-volatile FLASH device on this server module.')
sonusNodeSrvrStatSwVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatSwVersion.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatSwVersion.setDescription('Identifies the version of the runtime software application this is currently executing on this server module.')
sonusNodeSrvrStatBuildNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatBuildNum.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatBuildNum.setDescription('Identifies the build number of this software version.')
sonusNodeSrvrStatMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("standby", 1), ("active", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatMode.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatMode.setDescription('Identifies the operational status of the module in the indexed slot.')
sonusNodeSrvrStatTemperature = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatTemperature.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatTemperature.setDescription('Indicates the current Celcius temperature being sensed by the server module in the indexed slot.')
sonusNodeSrvrStatMemUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatMemUtilization.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatMemUtilization.setDescription('The current memory utilization of this server module. The value returned is a number from 0 to 100, representing the percentage of memory utilization. Note that this number can be somewhat misleading as many data structures are pre-allocated to ensure that the server modules maximum load capacity can be acheived and maintained. This may result is relatively high memory utilizations under fairly low load.')
sonusNodeSrvrStatCpuUtilization = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatCpuUtilization.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatCpuUtilization.setDescription('The current CPU utilization of this server module. The value returned is a number from 0 to 100, representing the percentage of CPU utilization.')
sonusNodeSrvrStatHwTypeRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatHwTypeRev.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatHwTypeRev.setDescription('The hardware type revision number of this server module.')
sonusNodeSrvrStatSwVersionCode = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 17), SonusSoftwareVersion()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatSwVersionCode.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatSwVersionCode.setDescription('Octet string that identifies the version of the runtime software application that is currently executing on this server module: Byte(s) Code ------- ---- 0 major version 1 minor version 2 release version 3 type (1:alpha, 2:beta, 3:release, 4:special) 4-5 type number')
sonusNodeSrvrStatEpldRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatEpldRev.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatEpldRev.setDescription('The EPLD revision level of this server module. An overall number which represents the total level of the server module.')
sonusNodeSrvrStatHostName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 19), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatHostName.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatHostName.setDescription('Identifies the host name that software load of this module had been built on.')
sonusNodeSrvrStatUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 20), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatUserName.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatUserName.setDescription('Identifies the user who builds software load of this module.')
sonusNodeSrvrStatViewName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 21), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatViewName.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatViewName.setDescription('Identifies the viewName used for software build.')
sonusNodeSrvrStatTotalMem = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 22), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatTotalMem.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatTotalMem.setDescription('Indicates the total memory size of the server module.')
sonusNodeSrvrStatFreeMem = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 23), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatFreeMem.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatFreeMem.setDescription('Indicates the total memory available on the server module.')
sonusNodeSrvrStatTotalSharedMem = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 24), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatTotalSharedMem.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatTotalSharedMem.setDescription('Indicates the total shared memory size of the server module.')
sonusNodeSrvrStatFreeSharedMem = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 25), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSrvrStatFreeSharedMem.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSrvrStatFreeSharedMem.setDescription('Indicates the total shared memory available on the server module.')
sonusNodeAdapStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11), )
if mibBuilder.loadTexts: sonusNodeAdapStatTable.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatTable.setDescription('The node adapter status table describes the status of the indexed adapter module in the node. This table is unavailable if the sonusNodeSlotAdapState object indicates that this slot is unknown, empty or faulted.')
sonusNodeAdapStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusNodeAdapStatShelfIndex"), (0, "SONUS-NODE-MIB", "sonusNodeAdapStatSlotIndex"))
if mibBuilder.loadTexts: sonusNodeAdapStatEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatEntry.setDescription('')
sonusNodeAdapStatShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdapStatShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatShelfIndex.setDescription('Identifies the target shelf.')
sonusNodeAdapStatSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdapStatSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonusNodeAdapStatMiddVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdapStatMiddVersion.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatMiddVersion.setDescription('Identifies the version of the MIDD EEPROM on this adapter module.')
sonusNodeAdapStatHwType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 4), HwTypeID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdapStatHwType.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatHwType.setDescription('Identifies the type of adapter module in the indexed slot.')
sonusNodeAdapStatHwTypeRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdapStatHwTypeRev.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatHwTypeRev.setDescription('Identifies the hardware type revision of the adapter module detected in the slot.')
sonusNodeAdapStatSerialNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdapStatSerialNum.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatSerialNum.setDescription('Identifies the serial number of the adapter module. This is the serial number assigned to the card at manufacture.')
sonusNodeAdapStatPartNum = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdapStatPartNum.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatPartNum.setDescription('Identifies the part number of the adapter module. This is the part number assigned to the card at manufacture.')
sonusNodeAdapStatPartNumRev = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdapStatPartNumRev.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatPartNumRev.setDescription('Identifies the assembly revision level of the adapter module.')
sonusNodeAdapStatMfgDate = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 10))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeAdapStatMfgDate.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapStatMfgDate.setDescription('The date this adapter module was manufactured.')
sonusNodeSlotAdmnTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12), )
if mibBuilder.loadTexts: sonusNodeSlotAdmnTable.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotAdmnTable.setDescription('The node slot admn table provides physical manipulation of a slot location in a shelf.')
sonusNodeSlotAdmnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusNodeSlotAdmnShelfIndex"), (0, "SONUS-NODE-MIB", "sonusNodeSlotAdmnSlotIndex"))
if mibBuilder.loadTexts: sonusNodeSlotAdmnEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotAdmnEntry.setDescription('')
sonusNodeSlotAdmnShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotAdmnShelfIndex.setDescription('Identifies the target shelf.')
sonusNodeSlotAdmnSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNodeSlotAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotAdmnSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonusNodeSlotAdmnReset = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("undefined", 1), ("reset", 2), ("coredump", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNodeSlotAdmnReset.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotAdmnReset.setDescription('Setting this object to reset(2) or coredump(3), will physically reset the server module installed in the indexed slot. This object always reads as undefined(1). This object bypasses all consistency and safety checks. This object is intended for evaluation testing.')
sonusNvsConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2))
sonusNvsConfigTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1), )
if mibBuilder.loadTexts: sonusNvsConfigTable.setStatus('current')
if mibBuilder.loadTexts: sonusNvsConfigTable.setDescription('This table specifies the Boot Parameters that apply only to the MNS present in the indexed shelf and slot. The Boot Parameters can only be accessed if the shelf is actively part of the node.')
sonusNvsConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusBparamShelfIndex"))
if mibBuilder.loadTexts: sonusNvsConfigEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNvsConfigEntry.setDescription('')
sonusBparamShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusBparamShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusBparamShelfIndex.setDescription('Identifies the target shelf. This object returns the value of sonusNodeShelfStatIndex which was used to index into this table.')
sonusBparamUnused = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 2), Integer32())
if mibBuilder.loadTexts: sonusBparamUnused.setStatus('current')
if mibBuilder.loadTexts: sonusBparamUnused.setDescription('Unused')
sonusBparamPasswd = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamPasswd.setStatus('current')
if mibBuilder.loadTexts: sonusBparamPasswd.setDescription('The secure password which is used to access the Boot PROM menu subsystem. This object is not available through SNMP.')
sonusBparamIpAddrSlot1Port0 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpAddrSlot1Port0.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpAddrSlot1Port0.setDescription('The IP address assigned to the field service port. This port is not intended for customer use.')
sonusBparamIpMaskSlot1Port0 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpMaskSlot1Port0.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpMaskSlot1Port0.setDescription('The IP Address Mask assigned to the field service port.')
sonusBparamIpGatewaySlot1Port0 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 6), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot1Port0.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot1Port0.setDescription('The default IP Gateway address used by the field service port.')
sonusBparamIfSpeedTypeSlot1Port0 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("autoNegotiate", 1), ("fullDuplex100", 2), ("halfDuplex100", 3), ("fullDuplex10", 4), ("halfDuplex10", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot1Port0.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot1Port0.setDescription('The default link speed setting used by the field service port.')
sonusBparamIpAddrSlot1Port1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 8), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpAddrSlot1Port1.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpAddrSlot1Port1.setDescription('The IP address assigned to management port number one.')
sonusBparamIpMaskSlot1Port1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 9), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpMaskSlot1Port1.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpMaskSlot1Port1.setDescription('The IP address mask used by management port one.')
sonusBparamIpGatewaySlot1Port1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 10), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot1Port1.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot1Port1.setDescription('The default IP Gateway address used by management port one.')
sonusBparamIfSpeedTypeSlot1Port1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("autoNegotiate", 1), ("fullDuplex100", 2), ("halfDuplex100", 3), ("fullDuplex10", 4), ("halfDuplex10", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot1Port1.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot1Port1.setDescription('The default link speed setting used by management port one.')
sonusBparamIpAddrSlot1Port2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 12), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpAddrSlot1Port2.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpAddrSlot1Port2.setDescription('The IP address assigned to management port number two.')
sonusBparamIpMaskSlot1Port2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 13), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpMaskSlot1Port2.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpMaskSlot1Port2.setDescription('The IP address mask used by management port two.')
sonusBparamIpGatewaySlot1Port2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 14), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot1Port2.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot1Port2.setDescription('The default gateway address used by management port two.')
sonusBparamIfSpeedTypeSlot1Port2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("autoNegotiate", 1), ("fullDuplex100", 2), ("halfDuplex100", 3), ("fullDuplex10", 4), ("halfDuplex10", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot1Port2.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot1Port2.setDescription('The default link speed setting used by management port two.')
sonusBparamIpAddrSlot2Port0 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 16), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpAddrSlot2Port0.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpAddrSlot2Port0.setDescription('The IP address assigned to the field service port. This port is not intended for customer use.')
sonusBparamIpMaskSlot2Port0 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 17), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpMaskSlot2Port0.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpMaskSlot2Port0.setDescription('The IP Address Mask assigned to the field service port.')
sonusBparamIpGatewaySlot2Port0 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 18), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot2Port0.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot2Port0.setDescription('The default IP Gateway address used by the field service port.')
sonusBparamIfSpeedTypeSlot2Port0 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("autoNegotiate", 1), ("fullDuplex100", 2), ("halfDuplex100", 3), ("fullDuplex10", 4), ("halfDuplex10", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot2Port0.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot2Port0.setDescription('The default link speed setting used by the field service port.')
sonusBparamIpAddrSlot2Port1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 20), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpAddrSlot2Port1.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpAddrSlot2Port1.setDescription('The IP address assigned to management port number one.')
sonusBparamIpMaskSlot2Port1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 21), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpMaskSlot2Port1.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpMaskSlot2Port1.setDescription('The IP address mask used by management port one.')
sonusBparamIpGatewaySlot2Port1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 22), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot2Port1.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot2Port1.setDescription('The default IP Gateway address used by management port one.')
sonusBparamIfSpeedTypeSlot2Port1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("autoNegotiate", 1), ("fullDuplex100", 2), ("halfDuplex100", 3), ("fullDuplex10", 4), ("halfDuplex10", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot2Port1.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot2Port1.setDescription('The default link speed setting used by management port one.')
sonusBparamIpAddrSlot2Port2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 24), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpAddrSlot2Port2.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpAddrSlot2Port2.setDescription('The IP address assigned to management port number two.')
sonusBparamIpMaskSlot2Port2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 25), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpMaskSlot2Port2.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpMaskSlot2Port2.setDescription('The IP address mask used by management port two.')
sonusBparamIpGatewaySlot2Port2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 26), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot2Port2.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIpGatewaySlot2Port2.setDescription('The default gateway address used by management port two.')
sonusBparamIfSpeedTypeSlot2Port2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 27), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("autoNegotiate", 1), ("fullDuplex100", 2), ("halfDuplex100", 3), ("fullDuplex10", 4), ("halfDuplex10", 5)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot2Port2.setStatus('current')
if mibBuilder.loadTexts: sonusBparamIfSpeedTypeSlot2Port2.setDescription('The default link speed setting used by management port two.')
sonusBparamBootDelay = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 28), Integer32().subtype(subtypeSpec=ValueRangeConstraint(5, 255))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamBootDelay.setStatus('current')
if mibBuilder.loadTexts: sonusBparamBootDelay.setDescription('The amount of delay used to allow an administrator to gain access to the NVS configuration menus before the runtime software is loaded. The delay is specified in seconds. Increasing this delay, will increase the total system boot time by the same amount.')
sonusBparamCoreState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 29), SonusAdminState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamCoreState.setStatus('current')
if mibBuilder.loadTexts: sonusBparamCoreState.setDescription('Specifies whether core dumps are enabled. If core dumps are disabled, a fatal software fault will result in a reboot without the overhead of performing the core dump operation.')
sonusBparamCoreLevel = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 30), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("normal", 1), ("sensitive", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamCoreLevel.setStatus('current')
if mibBuilder.loadTexts: sonusBparamCoreLevel.setDescription('Specifies the type of core dump behavior the shelf will display. Under normal(1) behavior, the server modules will execute a core dump only for fatal software errors. Under sensitive(2) behavior, the server modules will execute a core dump when the software recognizes a major, but non-fatal, software fault. Normal(1) is the strongly recommended setting.')
sonusBparamBaudRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 31), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamBaudRate.setStatus('current')
if mibBuilder.loadTexts: sonusBparamBaudRate.setDescription("The baud rate of a management port's physical interface.")
sonusBparamNfsPrimary = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 32), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamNfsPrimary.setStatus('current')
if mibBuilder.loadTexts: sonusBparamNfsPrimary.setDescription('The IP Address of the primary NFS Server for this switch.')
sonusBparamNfsSecondary = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 33), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamNfsSecondary.setStatus('current')
if mibBuilder.loadTexts: sonusBparamNfsSecondary.setDescription('The IP Address of the secondary NFS Server for this switch.')
sonusBparamNfsMountPri = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 34), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 31))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamNfsMountPri.setStatus('current')
if mibBuilder.loadTexts: sonusBparamNfsMountPri.setDescription('The NFS mount point exported by the Primary NFS server.')
sonusBparamNfsMountSec = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 35), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 31))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamNfsMountSec.setStatus('current')
if mibBuilder.loadTexts: sonusBparamNfsMountSec.setDescription('The NFS mount point exported by the Secondary NFS server.')
sonusBparamNfsPathUpgrade = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 36), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamNfsPathUpgrade.setStatus('current')
if mibBuilder.loadTexts: sonusBparamNfsPathUpgrade.setDescription('The name of the temporary load path override. This path is tried before the sonusBparamNfsPathLoad when specified. If the sonusBparamNfsPathUpgrade fails to completely boot the switch after three consecutive attempts, the path is automatically abandoned in favor of the sonusBparamNfsPathLoad.')
sonusBparamNfsPathLoad = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 37), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 31))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamNfsPathLoad.setStatus('current')
if mibBuilder.loadTexts: sonusBparamNfsPathLoad.setDescription("The directory, beneath the exported NFS mount point, which contains the switch's operational directories.")
sonusBparamPrimName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 38), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamPrimName.setStatus('current')
if mibBuilder.loadTexts: sonusBparamPrimName.setDescription('The primary load file name for this server module.')
sonusBparamSecName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 39), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamSecName.setStatus('current')
if mibBuilder.loadTexts: sonusBparamSecName.setDescription('The secondary load file name for this server module. The secondary file is tried when the primary file can not be opened or read.')
sonusBparamMasterState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 40), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("slave", 1), ("master", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamMasterState.setStatus('current')
if mibBuilder.loadTexts: sonusBparamMasterState.setDescription('Specifies whether this shelf will participate in the node as a master shelf, or as a slave shelf. Each node contains exactly one master shelf, and may contain multiple slave shelves.')
sonusBparamParamMode = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 41), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("binaryFile", 2), ("defaults", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamParamMode.setStatus('current')
if mibBuilder.loadTexts: sonusBparamParamMode.setDescription('Specifies the binary parameter file mode of the node. This mode specifies whether the node will attempt to load a binary parameter file. The paramMode can be set to disabled(1) which disables parameter file loading. The mode can be set to defaults(3), which temporarily disables binary parameter file loading, until after the next binary parameter file save cycle initiated by the runtime software. In both of these disabled cases, the node boots with default parameters and automatically loads and executes the CLI startup script. The paramMode may be set to binaryFile(2), which enables binary parameter file loading and disables the automatic CLI startup script loading. A binary parameter file must exist before the node can succesfully load a binary parameter file. The node will load default parameters when a valid parameter file can not be loaded. The node loads default parameters when either the parameter mode is set to disabled(1) or when the mode is set to defaults(3). When the mode is set to defaults(3), the mode is automatically updated to binaryFile(2) on the first parameter save cycle.')
sonusBparamCliScript = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 42), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamCliScript.setStatus('current')
if mibBuilder.loadTexts: sonusBparamCliScript.setDescription('The name of the CLI script which will be run automatically when the switch intentionally boots with default parameters. The switch will intentionally boot with default parameters when sonusBparamParamMode is set to either disabled(1) or defaults(3). This CLI script will never be run when the sonusBparamParamMode is set to binaryFile(2). If the script is not specified, or if it can not be located, it is not run. The switch expects to find the script file in the cli/sys directory, beneath the load path specified directory.')
sonusBparamUId = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 43), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamUId.setStatus('current')
if mibBuilder.loadTexts: sonusBparamUId.setDescription('The UNIX user ID used for all file accesses on both the primary and secondary NFS servers.')
sonusBparamGrpId = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 44), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamGrpId.setStatus('current')
if mibBuilder.loadTexts: sonusBparamGrpId.setDescription('The UNIX group ID used for all file accesses on both the primary and secondary NFS servers.')
sonusBparamCoreDumpLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 45), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(6)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamCoreDumpLimit.setStatus('current')
if mibBuilder.loadTexts: sonusBparamCoreDumpLimit.setDescription('Indicates the maximum number of core dump files which can be created on behalf of a Server which is requesting a core dump. Setting the value to zero indicates no limit. This object is intended to limit the number of core dumps (and the amount of disk space used) when a Server repeatedly crashes.')
sonusBparamNfsPathSoftware = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 46), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusBparamNfsPathSoftware.setStatus('current')
if mibBuilder.loadTexts: sonusBparamNfsPathSoftware.setDescription('The name of the software load path. This path is is appended to the Boot Path. This object may be NULL, in which case the software is loaded directly from the Boot Path. This object allows multiple revisions of software to be maintained below the Boot Path. This object can be overridden by the Upgrade Path object during a LSWU. During general operation the complete software load path is formed by concatenating this object to the Boot Path and any applicable file system mount point.')
sonusFlashConfigTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2), )
if mibBuilder.loadTexts: sonusFlashConfigTable.setStatus('current')
if mibBuilder.loadTexts: sonusFlashConfigTable.setDescription('This table specifies the FLASH Update parameters for the indexed server module. The Boot Firmware for each server module is contained in the FLASH device. It is essential that once the upgrade process is initiated, that it be allowed to complete without interruption. Power loss or manually reseting the server module during the upgrade process will result in a loss of Boot Firmware.')
sonusFlashConfigEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusFlashAdmnShelfIndex"), (0, "SONUS-NODE-MIB", "sonusFlashAdmnSlotIndex"))
if mibBuilder.loadTexts: sonusFlashConfigEntry.setStatus('current')
if mibBuilder.loadTexts: sonusFlashConfigEntry.setDescription('')
sonusFlashAdmnShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusFlashAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusFlashAdmnShelfIndex.setDescription('Identifies the target shelf within the node.')
sonusFlashAdmnSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusFlashAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusFlashAdmnSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonusFlashAdmnUpdateButton = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("update", 1))).clone('update')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusFlashAdmnUpdateButton.setStatus('current')
if mibBuilder.loadTexts: sonusFlashAdmnUpdateButton.setDescription("Initiate the update of the specified server module's FLASH PROM now. This object always reads as the value update(1).")
sonusFlashStatusTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3), )
if mibBuilder.loadTexts: sonusFlashStatusTable.setStatus('current')
if mibBuilder.loadTexts: sonusFlashStatusTable.setDescription('This table specifies the status of the FLASH Update process.')
sonusFlashStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusFlashStatShelfIndex"), (0, "SONUS-NODE-MIB", "sonusFlashStatSlotIndex"))
if mibBuilder.loadTexts: sonusFlashStatusEntry.setStatus('current')
if mibBuilder.loadTexts: sonusFlashStatusEntry.setDescription('')
sonusFlashStatShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusFlashStatShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusFlashStatShelfIndex.setDescription('Identifies the target shelf within the node.')
sonusFlashStatSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusFlashStatSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusFlashStatSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonusFlashStatState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("idle", 1), ("waitReply", 2), ("waitData", 3), ("imageComplete", 4), ("flashErase", 5), ("flashWrite", 6), ("done", 7)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusFlashStatState.setStatus('current')
if mibBuilder.loadTexts: sonusFlashStatState.setDescription('The current state of the FLASH update process on the target server module.')
sonusFlashStatLastStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=NamedValues(("success", 1), ("unknown", 2), ("inProgress", 3), ("badRequest", 4), ("noReply", 5), ("managerNack", 6), ("timerResources", 7), ("dataTimeout", 8), ("msgSequence", 9), ("memoryResources", 10), ("imageChecksum", 11), ("badBlkType", 12), ("flashErase", 13), ("flashWrite", 14), ("flashChecksum", 15), ("mgrNack", 16), ("badState", 17)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusFlashStatLastStatus.setStatus('current')
if mibBuilder.loadTexts: sonusFlashStatLastStatus.setDescription('The status of the last FLASH update that was executed.')
sonusUser = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3))
sonusUserList = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1))
sonusUserListNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusUserListNextIndex.setStatus('current')
if mibBuilder.loadTexts: sonusUserListNextIndex.setDescription('The next valid index to use when creating a new sonusUserListEntry')
sonusUserListTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2), )
if mibBuilder.loadTexts: sonusUserListTable.setStatus('current')
if mibBuilder.loadTexts: sonusUserListTable.setDescription('This table specifies the user access list for the node.')
sonusUserListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusUserListIndex"))
if mibBuilder.loadTexts: sonusUserListEntry.setStatus('current')
if mibBuilder.loadTexts: sonusUserListEntry.setDescription('')
sonusUserListIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusUserListIndex.setStatus('current')
if mibBuilder.loadTexts: sonusUserListIndex.setDescription('Identifies the target user list entry.')
sonusUserListState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 2), SonusAdminState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserListState.setStatus('current')
if mibBuilder.loadTexts: sonusUserListState.setDescription('The administrative state of this user entry.')
sonusUserListUserName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 3), SonusName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserListUserName.setStatus('current')
if mibBuilder.loadTexts: sonusUserListUserName.setDescription('The user name of this user.')
sonusUserListProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 23))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserListProfileName.setStatus('current')
if mibBuilder.loadTexts: sonusUserListProfileName.setDescription('The name of the profile applied to this user entry.')
sonusUserListPasswd = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(4, 16))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserListPasswd.setStatus('current')
if mibBuilder.loadTexts: sonusUserListPasswd.setDescription('The password for this user.')
sonusUserListComment = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserListComment.setStatus('current')
if mibBuilder.loadTexts: sonusUserListComment.setDescription('A comment that is associated with this user.')
sonusUserListAccess = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("readOnly", 1), ("readWrite", 2), ("admin", 3))).clone('readOnly')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserListAccess.setStatus('current')
if mibBuilder.loadTexts: sonusUserListAccess.setDescription('The priviledge level of this user.')
sonusUserListRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 8), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserListRowStatus.setStatus('current')
if mibBuilder.loadTexts: sonusUserListRowStatus.setDescription('Row status object for this table.')
sonusUserListStatusTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 3), )
if mibBuilder.loadTexts: sonusUserListStatusTable.setStatus('current')
if mibBuilder.loadTexts: sonusUserListStatusTable.setDescription('This table specifies status of the user access list for the node.')
sonusUserListStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 3, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusUserListStatusIndex"))
if mibBuilder.loadTexts: sonusUserListStatusEntry.setStatus('current')
if mibBuilder.loadTexts: sonusUserListStatusEntry.setDescription('')
sonusUserListStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6)))
if mibBuilder.loadTexts: sonusUserListStatusIndex.setStatus('current')
if mibBuilder.loadTexts: sonusUserListStatusIndex.setDescription('Identifies the target user list status entry.')
sonusUserListStatusLastConfigChange = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 3, 1, 2), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusUserListStatusLastConfigChange.setStatus('current')
if mibBuilder.loadTexts: sonusUserListStatusLastConfigChange.setDescription('Octet string that identifies the GMT timestamp of last successful SET PDU from this CLI user. field octects contents range ----- ------- -------- ----- 1 1-2 year 0..65536 2 3 month 1..12 3 4 day 1..31 4 5 hour 0..23 5 6 minutes 0..59 6 7 seconds 0..59 7 8 deci-sec 0..9 * Notes: - the value of year is in network-byte order')
sonusUserProfile = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2))
sonusUserProfileNextIndex = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusUserProfileNextIndex.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileNextIndex.setDescription('The next valid index to use when creating an entry in the sonusUserProfileTable.')
sonusUserProfileTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2), )
if mibBuilder.loadTexts: sonusUserProfileTable.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileTable.setDescription('This table specifies the user access list for the node.')
sonusUserProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusUserProfileIndex"))
if mibBuilder.loadTexts: sonusUserProfileEntry.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileEntry.setDescription('')
sonusUserProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusUserProfileIndex.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileIndex.setDescription('Identifies the target profile entry.')
sonusUserProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 2), SonusName()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileName.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileName.setDescription('The name of this user profile. This object is required to create the table entry.')
sonusUserProfileUserState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 3), SonusAdminState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileUserState.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileUserState.setDescription('The administrative state of this profiled user entry.')
sonusUserProfileUserPasswd = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(4, 16))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileUserPasswd.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileUserPasswd.setDescription('The password for the profiled user entry.')
sonusUserProfileUserComment = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileUserComment.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileUserComment.setDescription('The comment that is associated with the profiled user entry.')
sonusUserProfileUserAccess = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 6), SonusAccessLevel()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileUserAccess.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileUserAccess.setDescription('The priviledge level of the profiled user entry.')
sonusUserProfileUserCommentState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 7), SonusAdminState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileUserCommentState.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileUserCommentState.setDescription('Indicates whether the sonusUserProfileUserComment object is present in this user profile.')
sonusUserProfileUserPasswdState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 8), SonusAdminState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileUserPasswdState.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileUserPasswdState.setDescription('Indicates whether the sonusUserProfileUserPasswd object is present in this user profile.')
sonusUserProfileUserAccessState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 9), SonusAdminState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileUserAccessState.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileUserAccessState.setDescription('Indicates whether the sonusUserProfileUserAccess object is present in this user profile.')
sonusUserProfileUserStateState = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 10), SonusAdminState()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileUserStateState.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileUserStateState.setDescription('Indicates whether the sonusUserProfileUserState object is present in this user profile.')
sonusUserProfileRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 11), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusUserProfileRowStatus.setStatus('current')
if mibBuilder.loadTexts: sonusUserProfileRowStatus.setDescription('')
sonusSwLoad = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4))
sonusSwLoadTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1), )
if mibBuilder.loadTexts: sonusSwLoadTable.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadTable.setDescription('This table specifies the hardware type based software load table for the server modules in the node.')
sonusSwLoadEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusSwLoadAdmnIndex"))
if mibBuilder.loadTexts: sonusSwLoadEntry.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadEntry.setDescription('')
sonusSwLoadAdmnIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusSwLoadAdmnIndex.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadAdmnIndex.setDescription('Identifies the target software load entry.')
sonusSwLoadAdmnImageName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusSwLoadAdmnImageName.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadAdmnImageName.setDescription('Identifies the name of the image to load for the hardware type identified by sonusSwLoadAdmnHwType.')
sonusSwLoadAdmnHwType = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1, 3), ServerTypeID()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusSwLoadAdmnHwType.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadAdmnHwType.setDescription('Identifies the target hardware type for the load image. This object can only be written at row creation.')
sonusSwLoadAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1, 4), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusSwLoadAdmnRowStatus.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadAdmnRowStatus.setDescription('The RowStatus object for this row.')
sonusSwLoadSpecTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2), )
if mibBuilder.loadTexts: sonusSwLoadSpecTable.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadSpecTable.setDescription('This table specifies the hardware type based software load table for the server modules in the node.')
sonusSwLoadSpecEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusSwLoadSpecAdmnShelfIndex"), (0, "SONUS-NODE-MIB", "sonusSwLoadSpecAdmnSlotIndex"))
if mibBuilder.loadTexts: sonusSwLoadSpecEntry.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadSpecEntry.setDescription('')
sonusSwLoadSpecAdmnShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusSwLoadSpecAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadSpecAdmnShelfIndex.setDescription('Identifies the target shelf for this load entry entry.')
sonusSwLoadSpecAdmnSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusSwLoadSpecAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadSpecAdmnSlotIndex.setDescription('Identifies the target slot within the chassis for this load entry.')
sonusSwLoadSpecAdmnImageName = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusSwLoadSpecAdmnImageName.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadSpecAdmnImageName.setDescription('Identifies the name of the image to load.')
sonusSwLoadSpecAdmnRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1, 4), RowStatus()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusSwLoadSpecAdmnRowStatus.setStatus('current')
if mibBuilder.loadTexts: sonusSwLoadSpecAdmnRowStatus.setDescription('The RowStatus object for this row.')
sonusParam = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5))
sonusParamStatusObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1))
sonusParamSaveSeqNumber = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveSeqNumber.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveSeqNumber.setDescription('The parameter save sequence number assigned to this parameter file.')
sonusParamSaveTimeStart = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveTimeStart.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveTimeStart.setDescription('The system uptime, measured in milliseconds, when the last parameter save cycle started.')
sonusParamSaveTimeStop = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveTimeStop.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveTimeStop.setDescription('The system uptime, measured in milliseconds, when the last parameter save cycle ended.')
sonusParamSaveDuration = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveDuration.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveDuration.setDescription('The measured time in milliseconds to complete the last parameter save cycle.')
sonusParamSaveTotalBytes = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveTotalBytes.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveTotalBytes.setDescription('The number of bytes contained in the last binary parameter file saved.')
sonusParamSaveTotalRecords = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveTotalRecords.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveTotalRecords.setDescription('The number of individual parameter records contained in the last binary parameter file saved.')
sonusParamSaveFilename = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveFilename.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveFilename.setDescription('Identifies the name of the image to load for the hardware type identified by sonusSwLoadAdmnHwType.')
sonusParamSaveState = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("idle", 1), ("synchronize", 2), ("lock", 3), ("holdoff", 4), ("fopen", 5), ("collect", 6), ("fclose", 7), ("done", 8), ("retry", 9)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveState.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveState.setDescription("The current state of the active Management Server's parameter saving process.")
sonusParamLoadServer = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 9), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamLoadServer.setStatus('current')
if mibBuilder.loadTexts: sonusParamLoadServer.setDescription('The IP Address of the NFS server from which parameters were loaded from.')
sonusParamLoadFileType = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("primary", 1), ("backup", 2), ("temporary", 3), ("none", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamLoadFileType.setStatus('current')
if mibBuilder.loadTexts: sonusParamLoadFileType.setDescription('The type of binary parameter which was loaded. Under normal circumstances, the primary(1) parameter file will always be loaded. When default parameters are used, no parameter file is loaded, and the value none(4) is used for the file type.')
sonusParamLoadStatus = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("defaults", 1), ("success", 2), ("paramError", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamLoadStatus.setStatus('current')
if mibBuilder.loadTexts: sonusParamLoadStatus.setDescription('Indicates the status of the last binary parameter file load. The value defaults(1) indicates that parameters were not loaded and that the node began with default parameters. The value success(2) indicates that a binary parameter file was successfully loaded when the node booted. The value paramError(3) indicates that the node attempted to load a binary parameter file and that there was an error in the processing of the file. The node may be running with a partial parameter file when this error is indicated.')
sonusParamLoadSeqNumber = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamLoadSeqNumber.setStatus('current')
if mibBuilder.loadTexts: sonusParamLoadSeqNumber.setDescription('')
sonusParamLoadTotalRecords = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamLoadTotalRecords.setStatus('current')
if mibBuilder.loadTexts: sonusParamLoadTotalRecords.setDescription('')
sonusParamLoadTotalBytes = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamLoadTotalBytes.setStatus('current')
if mibBuilder.loadTexts: sonusParamLoadTotalBytes.setDescription('')
sonusParamLoadDuration = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamLoadDuration.setStatus('current')
if mibBuilder.loadTexts: sonusParamLoadDuration.setDescription('')
sonusParamLoadSerialNum = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 31))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamLoadSerialNum.setStatus('current')
if mibBuilder.loadTexts: sonusParamLoadSerialNum.setDescription('Identifies the serial number of the node which created the parameter file loaded by this node.')
sonusParamSavePrimarySrvrState = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("failed", 2), ("failing", 3), ("behind", 4), ("current", 5), ("ahead", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSavePrimarySrvrState.setStatus('current')
if mibBuilder.loadTexts: sonusParamSavePrimarySrvrState.setDescription('The current state of parameter saving to this NFS server.')
sonusParamSavePrimarySrvrReason = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=NamedValues(("success", 1), ("create", 2), ("fopen", 3), ("header", 4), ("timer", 5), ("nfs", 6), ("flush", 7), ("write", 8), ("close", 9), ("move", 10), ("memory", 11), ("none", 12)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSavePrimarySrvrReason.setStatus('current')
if mibBuilder.loadTexts: sonusParamSavePrimarySrvrReason.setDescription('The failure code associated with the last parameter save pass to this NFS server.')
sonusParamSaveSecondarySrvrState = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("unknown", 1), ("failed", 2), ("failing", 3), ("behind", 4), ("current", 5), ("ahead", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveSecondarySrvrState.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveSecondarySrvrState.setDescription('The current state of parameter saving to this NFS server.')
sonusParamSaveSecondarySrvrReason = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=NamedValues(("success", 1), ("create", 2), ("fopen", 3), ("header", 4), ("timer", 5), ("nfs", 6), ("flush", 7), ("write", 8), ("close", 9), ("move", 10), ("memory", 11), ("none", 12)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamSaveSecondarySrvrReason.setStatus('current')
if mibBuilder.loadTexts: sonusParamSaveSecondarySrvrReason.setDescription('The failure code associated with the last parameter save pass to this NFS server.')
sonusParamLastSaveTime = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 21), DateAndTime()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusParamLastSaveTime.setStatus('current')
if mibBuilder.loadTexts: sonusParamLastSaveTime.setDescription('Octet string that identifies the GMT timestamp of last successful PIF write. field octects contents range ----- ------- -------- ----- 1 1-2 year 0..65536 2 3 month 1..12 3 4 day 1..31 4 5 hour 0..23 5 6 minutes 0..59 6 7 seconds 0..59 7 8 deci-sec 0..9 * Notes: - the value of year is in network-byte order ')
sonusParamAdminObject = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 2))
sonusParamAdmnMaxIncrPifs = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 2, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusParamAdmnMaxIncrPifs.setStatus('current')
if mibBuilder.loadTexts: sonusParamAdmnMaxIncrPifs.setDescription('The maximum of Incremental PIF files saved per NFS server')
sonusNfs = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6))
sonusNfsAdmnTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1), )
if mibBuilder.loadTexts: sonusNfsAdmnTable.setStatus('current')
if mibBuilder.loadTexts: sonusNfsAdmnTable.setDescription('This table specifies the configurable NFS options for each MNS in each shelf.')
sonusNfsAdmnEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusNfsAdmnShelfIndex"), (0, "SONUS-NODE-MIB", "sonusNfsAdmnSlotIndex"))
if mibBuilder.loadTexts: sonusNfsAdmnEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNfsAdmnEntry.setDescription('')
sonusNfsAdmnShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNfsAdmnShelfIndex.setDescription('Identifies the target shelf. This object returns the value of sonusNodeShelfStatIndex which was used to index into this table.')
sonusNfsAdmnSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNfsAdmnSlotIndex.setDescription('Identifies the target MNS module slot within the shelf.')
sonusNfsAdmnMountServer = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noop", 1), ("primary", 2), ("secondary", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNfsAdmnMountServer.setStatus('current')
if mibBuilder.loadTexts: sonusNfsAdmnMountServer.setDescription('Mounts the Primary or Secondary NFS server using mount parameters obtained from the NVS Boot parameters sonusBparamNfsPrimary or sonusBparamNfsSecondary, and sonusBparamNfsMountPri or sonusBparamNfsMountSec. Continuous retries will occur until the mount succeeds. This object is always read as noop(1).')
sonusNfsAdmnUnmountServer = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noop", 1), ("standby", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNfsAdmnUnmountServer.setStatus('current')
if mibBuilder.loadTexts: sonusNfsAdmnUnmountServer.setDescription('Unmounts the standby NFS server. Note: unmounting this server will disrupt any file I/O currently taking place on it. Continuous retries will occur until the unmount succeeds. This object is always read as noop(1).')
sonusNfsAdmnToggleActiveServer = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("noop", 1), ("toggle", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNfsAdmnToggleActiveServer.setStatus('current')
if mibBuilder.loadTexts: sonusNfsAdmnToggleActiveServer.setDescription('Toggles the Active NFS server between the Primary and Secondary, provided both servers are currently mounted. This object is always read as noop(1).')
sonusNfsAdmnSetWritable = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("noop", 1), ("primary", 2), ("secondary", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: sonusNfsAdmnSetWritable.setStatus('current')
if mibBuilder.loadTexts: sonusNfsAdmnSetWritable.setDescription('Clears the perception of a read-only condition on the Primary or Secondary NFS server, so that server will be considered viable as the Active server. This object is always read as noop(1).')
sonusNfsStatTable = MibTable((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2), )
if mibBuilder.loadTexts: sonusNfsStatTable.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatTable.setDescription('This table specifies NFS status objects for each MNS in each shelf.')
sonusNfsStatEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1), ).setIndexNames((0, "SONUS-NODE-MIB", "sonusNfsStatShelfIndex"), (0, "SONUS-NODE-MIB", "sonusNfsStatSlotIndex"))
if mibBuilder.loadTexts: sonusNfsStatEntry.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatEntry.setDescription('')
sonusNfsStatShelfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 6))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatShelfIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatShelfIndex.setDescription('Identifies the target shelf. This object returns the value of sonusNodeShelfStatIndex which was used to index into this table.')
sonusNfsStatSlotIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatSlotIndex.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatSlotIndex.setDescription('Identifies the target MNS module slot within the shelf.')
sonusNfsStatPrimaryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("mounted", 1), ("mounting", 2), ("unmounted", 3), ("unmounting", 4), ("readOnly", 5), ("testing", 6), ("failed", 7), ("invalid", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatPrimaryStatus.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatPrimaryStatus.setDescription('Indicates the mount status of the Primary NFS server: mounted and functioning properly, attemping to mount, indefinitely unmounted, attempting to unmount, mounted but read-only, testing connectivity, server failure, or invalid NFS parameters.')
sonusNfsStatSecondaryStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("mounted", 1), ("mounting", 2), ("unmounted", 3), ("unmounting", 4), ("readOnly", 5), ("testing", 6), ("failed", 7), ("invalid", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatSecondaryStatus.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatSecondaryStatus.setDescription('Indicates the mount status of the Secondary NFS server: mounted and functioning properly, attemping to mount, indefinitely unmounted, attempting to unmount, mounted but read-only, testing connectivity, server failure, or invalid NFS parameters.')
sonusNfsStatActiveServer = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("primary", 2), ("secondary", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatActiveServer.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatActiveServer.setDescription('Indicates the current Active NFS server. This may change due to NFS failures or NFS administrative operations.')
sonusNfsStatStandbyServer = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("none", 1), ("primary", 2), ("secondary", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatStandbyServer.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatStandbyServer.setDescription('Indicates the current Standby NFS server. This may change due to NFS failures or NFS administrative operations.')
sonusNfsStatPrimaryIP = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 11), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatPrimaryIP.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatPrimaryIP.setDescription('The IP Address of the currently mounted Primary NFS server. This may differ from the NVS settings if the user modified sonusBparamNfsPrimary without unmounting and remounting the Primary server.')
sonusNfsStatSecondaryIP = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 12), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatSecondaryIP.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatSecondaryIP.setDescription('The IP Address of the currently mounted Secondary NFS server. This may differ from the NVS settings if the user modified sonusBparamNfsSecondary without unmounting and remounting the Secondary server.')
sonusNfsStatPrimaryMount = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatPrimaryMount.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatPrimaryMount.setDescription('The mount point currently in use on the Primary NFS server. This may differ from the NVS settings if the user modified sonusBparamNfsMountPri without unmounting and remounting the Primary server.')
sonusNfsStatSecondaryMount = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatSecondaryMount.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatSecondaryMount.setDescription('The mount point currently in use on the Secondary NFS server. This may differ from the NVS settings if the user modified sonusBparamNfsMountSec without unmounting and remounting the Secondary server.')
sonusNfsStatPrimaryLastError = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("none", 1), ("badVolumeStructure", 2), ("tooManyFiles", 3), ("volumeFull", 4), ("serverHardError", 5), ("quotaExceeded", 6), ("staleNfsHandle", 7), ("nfsTimeout", 8), ("rpcCanNotSend", 9), ("noAccess", 10), ("other", 11)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatPrimaryLastError.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatPrimaryLastError.setDescription('Last consequential error received from the Primary NFS server. This object is reset to none(1) if the server is remounted.')
sonusNfsStatSecondaryLastError = MibTableColumn((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("none", 1), ("badVolumeStructure", 2), ("tooManyFiles", 3), ("volumeFull", 4), ("serverHardError", 5), ("quotaExceeded", 6), ("staleNfsHandle", 7), ("nfsTimeout", 8), ("rpcCanNotSend", 9), ("noAccess", 10), ("other", 11)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsStatSecondaryLastError.setStatus('current')
if mibBuilder.loadTexts: sonusNfsStatSecondaryLastError.setDescription('Last consequential error received from the Secondary NFS server. This object is reset to none(1) if the server is remounted.')
sonusNodeMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2))
sonusNodeMIBNotificationsPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0))
sonusNodeMIBNotificationsObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1))
sonusNfsServer = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("primary", 1), ("secondary", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsServer.setStatus('current')
if mibBuilder.loadTexts: sonusNfsServer.setDescription('The NFS server referred to by the trap.')
sonusNfsRole = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("active", 1), ("standby", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsRole.setStatus('current')
if mibBuilder.loadTexts: sonusNfsRole.setDescription('Role assumed by the NFS server referred to by the trap.')
sonusNfsServerIp = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsServerIp.setStatus('current')
if mibBuilder.loadTexts: sonusNfsServerIp.setDescription('The IP address of the NFS server referred to by the trap.')
sonusNfsServerMount = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(2, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsServerMount.setStatus('current')
if mibBuilder.loadTexts: sonusNfsServerMount.setDescription('The mount point used on the NFS server referred to by the trap.')
sonusNfsReason = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("adminOperation", 1), ("serverFailure", 2), ("serverNotWritable", 3), ("serverRecovery", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsReason.setStatus('current')
if mibBuilder.loadTexts: sonusNfsReason.setDescription('The reason for the generation of the trap - administrative operation (mount, unmount, or toggle), server failure, server not writable, or server recovery.')
sonusNfsErrorCode = MibScalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("none", 1), ("badVolumeStructure", 2), ("tooManyFiles", 3), ("volumeFull", 4), ("serverHardError", 5), ("quotaExceeded", 6), ("staleNfsHandle", 7), ("nfsTimeout", 8), ("rpcCanNotSend", 9), ("noAccess", 10), ("other", 11)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: sonusNfsErrorCode.setStatus('current')
if mibBuilder.loadTexts: sonusNfsErrorCode.setDescription('The NFS error that occurred.')
sonusNodeShelfPowerA48VdcNormalNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 1)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfPowerA48VdcNormalNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfPowerA48VdcNormalNotification.setDescription('A sonusShelfPowerA48VdcNormal trap indicates that 48V DC source A is operating normally for the specified shelf.')
sonusNodeShelfPowerB48VdcNormalNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 2)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfPowerB48VdcNormalNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfPowerB48VdcNormalNotification.setDescription('A sonusShelfPowerB48VdcNormal trap indicates that 48V DC source B is operating normally for the specified shelf.')
sonusNodeShelfPowerA48VdcFailureNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 3)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfPowerA48VdcFailureNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfPowerA48VdcFailureNotification.setDescription('A sonusShelfPowerA48VdcFailure trap indicates that 48V DC source A has failed for the specified shelf.')
sonusNodeShelfPowerB48VdcFailureNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 4)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfPowerB48VdcFailureNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfPowerB48VdcFailureNotification.setDescription('A sonusShelfPowerB48VdcFailure trap indicates that 48V DC source A has failed for the specified shelf.')
sonusNodeShelfFanTrayFailureNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 5)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfFanTrayFailureNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfFanTrayFailureNotification.setDescription('A sonusNodeShelfFanTrayFailure trap indicates that the fan controller on the specified shelf is indicating a problem. The Event Log should be examined for more detail. The fan tray should be replaced immediately.')
sonusNodeShelfFanTrayOperationalNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 6)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfFanTrayOperationalNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfFanTrayOperationalNotification.setDescription('A sonusNodeShelfFanTrayOperational trap indicates that the fan controller is fully operational on the specified shelf.')
sonusNodeShelfFanTrayRemovedNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 7)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfFanTrayRemovedNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfFanTrayRemovedNotification.setDescription('A sonusNodeShelfFanTrayRemoved trap indicates that the fan tray has been removed from the specified shelf. The fan tray should be replaced as soon as possible to avoid damage to the equipment as a result of overheating.')
sonusNodeShelfFanTrayPresentNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 8)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfFanTrayPresentNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfFanTrayPresentNotification.setDescription('A sonusNodeShelfFanTrayPresent trap indicates that a fan tray is present for the specified shelf.')
sonusNodeShelfIntakeTempWarningNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 9)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfIntakeTempWarningNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfIntakeTempWarningNotification.setDescription('A sonusNodeShelfIntakeTempWarning trap indicates that the intake temperature of the specified shelf has exceeded 45C degrees.')
sonusNodeServerTempWarningNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 10)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerTempWarningNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerTempWarningNotification.setDescription('A sonusNodeServerTempWarning trap indicates that the operating temperature of the specified shelf and slot has exceeded 60C degrees.')
sonusNodeServerTempFailureNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 11)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerTempFailureNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerTempFailureNotification.setDescription('A sonusNodeServerTempFailure trap indicates that the operating temperature of the specified shelf and slot has exceeded 70C degrees. A server module operating for any length of time at this temperature is in danger of being physically damaged. The specified module should be disabled and/or removed from the shelf.')
sonusNodeServerTempNormalNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 12)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerTempNormalNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerTempNormalNotification.setDescription('A sonusNodeServerTempNormal trap indicates that the operating temperature of the specified shelf and slot has is below 60C degrees.')
sonusNodeServerInsertedNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 13)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerInsertedNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerInsertedNotification.setDescription('A sonusNodeServerInserted trap indicates that a server module has been inserted in the specified shelf and slot.')
sonusNodeServerRemovedNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 14)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerRemovedNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerRemovedNotification.setDescription('A sonusNodeServerRemoved trap indicates that a server module has been removed from the specified shelf and slot.')
sonusNodeServerResetNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 15)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerResetNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerResetNotification.setDescription('A sonusNodeServerReset trap indicates that the server module in the specified shelf and slot has been reset.')
sonusNodeServerOperationalNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 16)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerOperationalNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerOperationalNotification.setDescription('A sonusNodeServerOperational trap indicates that the booting and initialization has completed successfully for the server module in the specified shelf and slot.')
sonusNodeServerPowerFailureNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 17)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerPowerFailureNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerPowerFailureNotification.setDescription('A sonusNodeServerPowerFailure trap indicates that a power failure has been detected for the server module in the specified shelf and slot.')
sonusNodeServerSoftwareFailureNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 18)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerSoftwareFailureNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerSoftwareFailureNotification.setDescription('A sonusNodeServerSoftwareFailure trap indicates that a software failure has occurred or the server module in the specified shelf and slot. The EventLog should be viewed for possible additional information.')
sonusNodeServerHardwareFailureNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 19)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerHardwareFailureNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerHardwareFailureNotification.setDescription('A sonusNodeServerHardwareFailure trap indicates that a hardware failure has occurred or the server module in the specified shelf and slot. The EventLog should be viewed for possible additional information.')
sonusNodeAdapterInsertedNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 20)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeAdapterInsertedNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapterInsertedNotification.setDescription('A sonusNodeAdapterInserted trap indicates that an adapter module has been inserted in the specified shelf and slot.')
sonusNodeAdapterRemovedNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 21)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeAdapterRemovedNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapterRemovedNotification.setDescription('A sonusNodeAdpaterRemoved trap indicates that an adapter module has been removed from the specified shelf and slot.')
sonusNodeMtaInsertedNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 22)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeMtaInsertedNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeMtaInsertedNotification.setDescription('A sonusNodeMtaInserted trap indicates that a Management Timing Adapter has been inserted in the specified shelf and slot.')
sonusNodeMtaRemovedNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 23)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeMtaRemovedNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeMtaRemovedNotification.setDescription('A sonusNodeMtaRemoved trap indicates that a Management Timing Adapter has been removed from the specified shelf and slot.')
sonusNodeEthernetActiveNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 24)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusPortIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeEthernetActiveNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeEthernetActiveNotification.setDescription('A sonusNodeEthernetActive trap indicates that an Ethernet link is active for the specified shelf, slot and port.')
sonusNodeEthernetInactiveNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 25)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusPortIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeEthernetInactiveNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeEthernetInactiveNotification.setDescription('A sonusNodeEthernetInactive trap indicates that an Ethernet link is inactive for the specified shelf, slot and port.')
sonusNodeEthernetDegradedNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 26)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusPortIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeEthernetDegradedNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeEthernetDegradedNotification.setDescription('A sonusNodeEthernetDegraded trap indicates that an Ethernet link is detecting network errors for the specified shelf, slot and port. The EventLog should be viewed for possible additional information.')
sonusNodeBootNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 27)).setObjects(("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeBootNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeBootNotification.setDescription("The Management Node Server module, in the node's master shelf, has begun the Node Boot process.")
sonusNodeSlaveShelfBootNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 28)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeSlaveShelfBootNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlaveShelfBootNotification.setDescription("The Management Node Server module, in a node's slave shelf, has begun the Node Boot process.")
sonusNodeNfsServerSwitchoverNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 29)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NODE-MIB", "sonusNfsServer"), ("SONUS-NODE-MIB", "sonusNfsServerIp"), ("SONUS-NODE-MIB", "sonusNfsServerMount"), ("SONUS-NODE-MIB", "sonusNfsReason"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeNfsServerSwitchoverNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeNfsServerSwitchoverNotification.setDescription('Indicates that the Active NFS server has switched over to the Standby for the specified reason on the MNS in the given shelf and slot. The NFS server specified is the new Active.')
sonusNodeNfsServerOutOfServiceNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 30)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NODE-MIB", "sonusNfsServer"), ("SONUS-NODE-MIB", "sonusNfsServerIp"), ("SONUS-NODE-MIB", "sonusNfsServerMount"), ("SONUS-NODE-MIB", "sonusNfsReason"), ("SONUS-NODE-MIB", "sonusNfsErrorCode"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeNfsServerOutOfServiceNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeNfsServerOutOfServiceNotification.setDescription('Indicates that the NFS server specified went out-of-service for the reason provided on the MNS in the given shelf and slot. If it was the result of a server failure, the error that caused the failure is also specified.')
sonusNodeNfsServerInServiceNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 31)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NODE-MIB", "sonusNfsServer"), ("SONUS-NODE-MIB", "sonusNfsServerIp"), ("SONUS-NODE-MIB", "sonusNfsServerMount"), ("SONUS-NODE-MIB", "sonusNfsReason"), ("SONUS-NODE-MIB", "sonusNfsRole"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeNfsServerInServiceNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeNfsServerInServiceNotification.setDescription('Indicates that the NFS server specified came in-service for the reason provided on the MNS in the given shelf and slot. The Active/Standby role assumed by the server is also provided.')
sonusNodeNfsServerNotWritableNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 32)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-NODE-MIB", "sonusNfsServer"), ("SONUS-NODE-MIB", "sonusNfsServerIp"), ("SONUS-NODE-MIB", "sonusNfsServerMount"), ("SONUS-NODE-MIB", "sonusNfsErrorCode"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeNfsServerNotWritableNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeNfsServerNotWritableNotification.setDescription('Indicates that the NFS server specified is no longer writable by the MNS in the given shelf and slot. The error code received is provided.')
sonusNodeServerDisabledNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 33)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerDisabledNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerDisabledNotification.setDescription('The server modules administrative state has been set to disabled.')
sonusNodeServerEnabledNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 34)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerEnabledNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerEnabledNotification.setDescription('The server modules administrative state has been set to enabled.')
sonusNodeServerDeletedNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 35)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeServerDeletedNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeServerDeletedNotification.setDescription("The server module has been deleted from the node's configuration. All configuration data associated with the server module has been deleted.")
sonusParamBackupLoadNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 36)).setObjects(("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusParamBackupLoadNotification.setStatus('current')
if mibBuilder.loadTexts: sonusParamBackupLoadNotification.setDescription('The backup parameter file was loaded. This indicates that the primary parameter file was lost or corrupted. The backup parameter file may contain data which is older than what the primary parameter file contains.')
sonusParamCorruptionNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 37)).setObjects(("SONUS-NODE-MIB", "sonusParamLoadFileType"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusParamCorruptionNotification.setStatus('current')
if mibBuilder.loadTexts: sonusParamCorruptionNotification.setDescription('The binary parameter inspected was corrupted. The indicated file was skipped due to corruption. This trap is only transmitted if a valid backup parameter file is located and successfully loaded.')
sonusNodeAdapterMissingNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 38)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeAdapterMissingNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapterMissingNotification.setDescription('A sonusNodeAdpaterMissing trap indicates that an adapter module has not been detected in a specific shelf and slot.')
sonusNodeAdapterFailureNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 39)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeAdapterFailureNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeAdapterFailureNotification.setDescription('A sonusNodeAdpaterFailure trap indicates that an adapter module has been detected but is not operational.')
sonusNodeSlotResetNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 40)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeSlotResetNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeSlotResetNotification.setDescription('A sonusNodeSlotReset trap indicates that a server module in the designated slot was reset.')
sonusNodeParamWriteCompleteNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 41)).setObjects(("SONUS-NODE-MIB", "sonusParamSaveFilename"), ("SONUS-NODE-MIB", "sonusParamSaveSeqNumber"), ("SONUS-NODE-MIB", "sonusParamLastSaveTime"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeParamWriteCompleteNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeParamWriteCompleteNotification.setDescription('A sonusNodeParamWriteComplete trap indicates that NFS server successfully complete PIF write.')
sonusNodeParamWriteErrorNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 42)).setObjects(("SONUS-NODE-MIB", "sonusParamSavePrimarySrvrReason"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeParamWriteErrorNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeParamWriteErrorNotification.setDescription('A sonusNodeParamWriteError trap indicates that error occured during PIF write.')
sonusNodeBootMnsActiveNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 43)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusSlotIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeBootMnsActiveNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeBootMnsActiveNotification.setDescription('The Management Node Server module in the specified shelf and slot has become active following a Node Boot.')
sonusNodeShelfIntakeTempNormalNotification = NotificationType((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 44)).setObjects(("SONUS-COMMON-MIB", "sonusShelfIndex"), ("SONUS-COMMON-MIB", "sonusEventDescription"), ("SONUS-COMMON-MIB", "sonusEventClass"), ("SONUS-COMMON-MIB", "sonusEventLevel"))
if mibBuilder.loadTexts: sonusNodeShelfIntakeTempNormalNotification.setStatus('current')
if mibBuilder.loadTexts: sonusNodeShelfIntakeTempNormalNotification.setDescription('A sonusNodeShelfIntakeTempNormal trap indicates that the intake temperature of the specified shelf is at or below 45C degrees.')
mibBuilder.exportSymbols("SONUS-NODE-MIB", sonusNodeSrvrAdmnTable=sonusNodeSrvrAdmnTable, sonusBparamNfsPrimary=sonusBparamNfsPrimary, sonusNodeAdapStatMfgDate=sonusNodeAdapStatMfgDate, sonusNodeSrvrAdmnState=sonusNodeSrvrAdmnState, sonusNfsAdmnSetWritable=sonusNfsAdmnSetWritable, sonusFlashConfigTable=sonusFlashConfigTable, sonusNodeSrvrStatShelfIndex=sonusNodeSrvrStatShelfIndex, sonusBparamIfSpeedTypeSlot2Port0=sonusBparamIfSpeedTypeSlot2Port0, sonusParamLastSaveTime=sonusParamLastSaveTime, sonusNodeSrvrStatUserName=sonusNodeSrvrStatUserName, sonusNodeAdapStatShelfIndex=sonusNodeAdapStatShelfIndex, sonusUserProfileUserAccess=sonusUserProfileUserAccess, sonusNfsStatActiveServer=sonusNfsStatActiveServer, sonusNodeSlotAdmnSlotIndex=sonusNodeSlotAdmnSlotIndex, sonusNfsStatTable=sonusNfsStatTable, sonusSwLoadAdmnIndex=sonusSwLoadAdmnIndex, sonusNfsStatSecondaryLastError=sonusNfsStatSecondaryLastError, sonusNodeServerResetNotification=sonusNodeServerResetNotification, sonusNodeShelfPowerB48VdcNormalNotification=sonusNodeShelfPowerB48VdcNormalNotification, sonusNvsConfigTable=sonusNvsConfigTable, sonusNodeShelfStatBackplane=sonusNodeShelfStatBackplane, sonusNodeShelfPowerA48VdcNormalNotification=sonusNodeShelfPowerA48VdcNormalNotification, sonusNodeAdapterFailureNotification=sonusNodeAdapterFailureNotification, sonusNodeSlotAdapState=sonusNodeSlotAdapState, sonusSwLoadAdmnImageName=sonusSwLoadAdmnImageName, sonusNodeAdapStatHwType=sonusNodeAdapStatHwType, sonusNfs=sonusNfs, sonusFlashStatLastStatus=sonusFlashStatLastStatus, sonusNodeServerEnabledNotification=sonusNodeServerEnabledNotification, sonusParamAdmnMaxIncrPifs=sonusParamAdmnMaxIncrPifs, sonusNfsStatPrimaryMount=sonusNfsStatPrimaryMount, sonusSwLoadTable=sonusSwLoadTable, sonusNodeShelfAdmn48VdcAState=sonusNodeShelfAdmn48VdcAState, sonusNodeSrvrStatCpuUtilization=sonusNodeSrvrStatCpuUtilization, sonusNodeSrvrStatPartNum=sonusNodeSrvrStatPartNum, sonusSwLoadSpecAdmnRowStatus=sonusSwLoadSpecAdmnRowStatus, sonusNodeSrvrStatTotalMem=sonusNodeSrvrStatTotalMem, sonusBparamSecName=sonusBparamSecName, sonusNodeSrvrAdmnRowStatus=sonusNodeSrvrAdmnRowStatus, sonusSwLoadAdmnRowStatus=sonusSwLoadAdmnRowStatus, sonusBparamIfSpeedTypeSlot2Port2=sonusBparamIfSpeedTypeSlot2Port2, sonusSwLoad=sonusSwLoad, sonusNodeParamWriteErrorNotification=sonusNodeParamWriteErrorNotification, sonusUserListComment=sonusUserListComment, sonusNodeShelfStatFanSpeed=sonusNodeShelfStatFanSpeed, sonusNodeSrvrStatFreeMem=sonusNodeSrvrStatFreeMem, sonusBparamNfsSecondary=sonusBparamNfsSecondary, sonusNfsAdmnEntry=sonusNfsAdmnEntry, sonusNodeShelfStat48VAStatus=sonusNodeShelfStat48VAStatus, sonusNodeAdapterInsertedNotification=sonusNodeAdapterInsertedNotification, sonusParamLoadTotalBytes=sonusParamLoadTotalBytes, sonusNodeSlotAdmnReset=sonusNodeSlotAdmnReset, sonusBparamCoreLevel=sonusBparamCoreLevel, sonusUserListTable=sonusUserListTable, sonusNodeSrvrStatSwVersionCode=sonusNodeSrvrStatSwVersionCode, sonusUserProfileUserPasswdState=sonusUserProfileUserPasswdState, sonusNfsStatShelfIndex=sonusNfsStatShelfIndex, sonusNodeShelfFanTrayPresentNotification=sonusNodeShelfFanTrayPresentNotification, sonusBparamNfsMountSec=sonusBparamNfsMountSec, sonusNodeServerDeletedNotification=sonusNodeServerDeletedNotification, sonusNodeShelfAdmnRestart=sonusNodeShelfAdmnRestart, sonusBparamIpAddrSlot1Port1=sonusBparamIpAddrSlot1Port1, sonusNodeShelfIntakeTempWarningNotification=sonusNodeShelfIntakeTempWarningNotification, sonusBparamNfsPathUpgrade=sonusBparamNfsPathUpgrade, sonusBparamBaudRate=sonusBparamBaudRate, sonusNodeBootMnsActiveNotification=sonusNodeBootMnsActiveNotification, sonusNodeMIB=sonusNodeMIB, sonusBparamIfSpeedTypeSlot2Port1=sonusBparamIfSpeedTypeSlot2Port1, sonusParamSaveTimeStart=sonusParamSaveTimeStart, sonusParamSaveDuration=sonusParamSaveDuration, sonusBparamIpAddrSlot2Port0=sonusBparamIpAddrSlot2Port0, sonusNodeShelfFanTrayRemovedNotification=sonusNodeShelfFanTrayRemovedNotification, sonusParamLoadSeqNumber=sonusParamLoadSeqNumber, sonusUserListNextIndex=sonusUserListNextIndex, sonusSwLoadSpecAdmnShelfIndex=sonusSwLoadSpecAdmnShelfIndex, sonusNodeSrvrStatSerialNum=sonusNodeSrvrStatSerialNum, sonusNodeShelfFanTrayFailureNotification=sonusNodeShelfFanTrayFailureNotification, sonusNodeShelfStatEntry=sonusNodeShelfStatEntry, sonusBparamBootDelay=sonusBparamBootDelay, sonusUserProfileUserStateState=sonusUserProfileUserStateState, sonusBparamIpAddrSlot1Port0=sonusBparamIpAddrSlot1Port0, sonusNfsStatPrimaryStatus=sonusNfsStatPrimaryStatus, sonusNodeServerSoftwareFailureNotification=sonusNodeServerSoftwareFailureNotification, sonusNodeSrvrStatViewName=sonusNodeSrvrStatViewName, sonusNodeSlotAdmnTable=sonusNodeSlotAdmnTable, sonusBparamIpMaskSlot1Port1=sonusBparamIpMaskSlot1Port1, sonusNodeSrvrStatMode=sonusNodeSrvrStatMode, sonusParamBackupLoadNotification=sonusParamBackupLoadNotification, sonusNodeShelfIntakeTempNormalNotification=sonusNodeShelfIntakeTempNormalNotification, sonusParamSaveTimeStop=sonusParamSaveTimeStop, sonusParamSaveSeqNumber=sonusParamSaveSeqNumber, sonusNodeSrvrStatTable=sonusNodeSrvrStatTable, sonusNodeStatMgmtStatus=sonusNodeStatMgmtStatus, sonusNodeSrvrAdmnEntry=sonusNodeSrvrAdmnEntry, sonusNodeMtaRemovedNotification=sonusNodeMtaRemovedNotification, sonusNodeSlotAdapHwType=sonusNodeSlotAdapHwType, sonusNodeSrvrStatMfgDate=sonusNodeSrvrStatMfgDate, sonusNfsStatSecondaryIP=sonusNfsStatSecondaryIP, sonusBparamIpGatewaySlot1Port0=sonusBparamIpGatewaySlot1Port0, sonusNodeMtaInsertedNotification=sonusNodeMtaInsertedNotification, sonusBparamIpGatewaySlot1Port1=sonusBparamIpGatewaySlot1Port1, sonusBparamIfSpeedTypeSlot1Port0=sonusBparamIfSpeedTypeSlot1Port0, sonusNode=sonusNode, sonusNodeSrvrAdmnDumpState=sonusNodeSrvrAdmnDumpState, sonusFlashStatState=sonusFlashStatState, sonusBparamIpAddrSlot1Port2=sonusBparamIpAddrSlot1Port2, sonusNodeSrvrStatSlotIndex=sonusNodeSrvrStatSlotIndex, sonusNfsAdmnUnmountServer=sonusNfsAdmnUnmountServer, sonusNodeShelfAdmnEntry=sonusNodeShelfAdmnEntry, sonusNodeBootNotification=sonusNodeBootNotification, sonusUserListUserName=sonusUserListUserName, sonusNodeSlotTable=sonusNodeSlotTable, sonusParamCorruptionNotification=sonusParamCorruptionNotification, sonusNodeShelfStatType=sonusNodeShelfStatType, sonusSwLoadSpecEntry=sonusSwLoadSpecEntry, sonusNodeStatNextIfIndex=sonusNodeStatNextIfIndex, sonusNodeSlotState=sonusNodeSlotState, sonusUserListAccess=sonusUserListAccess, sonusNodeSrvrAdmnAdapHwType=sonusNodeSrvrAdmnAdapHwType, sonusNodeAdapStatEntry=sonusNodeAdapStatEntry, sonusNvsConfig=sonusNvsConfig, sonusNodeAdmnTelnetLogin=sonusNodeAdmnTelnetLogin, sonusNodeShelfStat48VBStatus=sonusNodeShelfStat48VBStatus, sonusNodeMIBNotifications=sonusNodeMIBNotifications, sonusUserListProfileName=sonusUserListProfileName, sonusNodeNfsServerSwitchoverNotification=sonusNodeNfsServerSwitchoverNotification, sonusNodeSlaveShelfBootNotification=sonusNodeSlaveShelfBootNotification, sonusUserProfileUserAccessState=sonusUserProfileUserAccessState, sonusNodeSrvrAdmnMode=sonusNodeSrvrAdmnMode, sonusBparamIpMaskSlot2Port2=sonusBparamIpMaskSlot2Port2, sonusParamSaveTotalBytes=sonusParamSaveTotalBytes, sonusNodeShelfFanTrayOperationalNotification=sonusNodeShelfFanTrayOperationalNotification, sonusBparamIfSpeedTypeSlot1Port1=sonusBparamIfSpeedTypeSlot1Port1, sonusUserProfileRowStatus=sonusUserProfileRowStatus, sonusNodeShelfPowerB48VdcFailureNotification=sonusNodeShelfPowerB48VdcFailureNotification, sonusParamSaveState=sonusParamSaveState, sonusFlashAdmnSlotIndex=sonusFlashAdmnSlotIndex, sonusBparamIpGatewaySlot2Port0=sonusBparamIpGatewaySlot2Port0, sonusNodeAdapStatSlotIndex=sonusNodeAdapStatSlotIndex, sonusNodeAdapStatPartNumRev=sonusNodeAdapStatPartNumRev, sonusBparamIpGatewaySlot2Port2=sonusBparamIpGatewaySlot2Port2, sonusBparamNfsMountPri=sonusBparamNfsMountPri, sonusNodeSrvrAdmnAction=sonusNodeSrvrAdmnAction, sonusNfsServer=sonusNfsServer, sonusUserProfileEntry=sonusUserProfileEntry, sonusNodeServerRemovedNotification=sonusNodeServerRemovedNotification, sonusFlashStatusTable=sonusFlashStatusTable, sonusSwLoadSpecAdmnSlotIndex=sonusSwLoadSpecAdmnSlotIndex, sonusUserProfileUserCommentState=sonusUserProfileUserCommentState, sonusBparamShelfIndex=sonusBparamShelfIndex, sonusParamLoadTotalRecords=sonusParamLoadTotalRecords, sonusBparamNfsPathLoad=sonusBparamNfsPathLoad, sonusUserListStatusLastConfigChange=sonusUserListStatusLastConfigChange, sonusNodeParamWriteCompleteNotification=sonusNodeParamWriteCompleteNotification, sonusNodeShelfAdmnTable=sonusNodeShelfAdmnTable, sonusNodeStatShelvesPresent=sonusNodeStatShelvesPresent, sonusUserListEntry=sonusUserListEntry, sonusNodeAdapStatPartNum=sonusNodeAdapStatPartNum, sonusNodeServerTempFailureNotification=sonusNodeServerTempFailureNotification, sonusNodeAdapStatSerialNum=sonusNodeAdapStatSerialNum, sonusFlashConfigEntry=sonusFlashConfigEntry, sonusNodeShelfAdmn48VdcBState=sonusNodeShelfAdmn48VdcBState, sonusNfsStatSecondaryMount=sonusNfsStatSecondaryMount, sonusUserProfileUserState=sonusUserProfileUserState, sonusNodeSrvrStatEpldRev=sonusNodeSrvrStatEpldRev, sonusNodeSrvrAdmnSpecialFunction=sonusNodeSrvrAdmnSpecialFunction, sonusNodeSrvrStatFlashVersion=sonusNodeSrvrStatFlashVersion, sonusSwLoadSpecTable=sonusSwLoadSpecTable, sonusParamSaveTotalRecords=sonusParamSaveTotalRecords, sonusNodeSrvrStatFreeSharedMem=sonusNodeSrvrStatFreeSharedMem, sonusNodeNfsServerInServiceNotification=sonusNodeNfsServerInServiceNotification, sonusBparamCliScript=sonusBparamCliScript, sonusNodeSrvrStatTemperature=sonusNodeSrvrStatTemperature, sonusParamSaveSecondarySrvrReason=sonusParamSaveSecondarySrvrReason, sonusFlashStatSlotIndex=sonusFlashStatSlotIndex, sonusNodeNfsServerOutOfServiceNotification=sonusNodeNfsServerOutOfServiceNotification, sonusNodeShelfAdmnIpaddr1=sonusNodeShelfAdmnIpaddr1, sonusBparamParamMode=sonusBparamParamMode, sonusBparamIpMaskSlot1Port0=sonusBparamIpMaskSlot1Port0, sonusNodeShelfStatTable=sonusNodeShelfStatTable, sonusUser=sonusUser, sonusNodeServerPowerFailureNotification=sonusNodeServerPowerFailureNotification, sonusParamSaveSecondarySrvrState=sonusParamSaveSecondarySrvrState, sonusFlashAdmnUpdateButton=sonusFlashAdmnUpdateButton, sonusNodeEthernetDegradedNotification=sonusNodeEthernetDegradedNotification, sonusNodeServerOperationalNotification=sonusNodeServerOperationalNotification, sonusNfsAdmnToggleActiveServer=sonusNfsAdmnToggleActiveServer, sonusParamLoadSerialNum=sonusParamLoadSerialNum, sonusBparamPrimName=sonusBparamPrimName, sonusNodeSrvrStatHostName=sonusNodeSrvrStatHostName, sonusUserListStatusTable=sonusUserListStatusTable, sonusNodeNfsServerNotWritableNotification=sonusNodeNfsServerNotWritableNotification, sonusNfsAdmnMountServer=sonusNfsAdmnMountServer, sonusNodeServerTempNormalNotification=sonusNodeServerTempNormalNotification, sonusParamLoadFileType=sonusParamLoadFileType, sonusNodeSrvrStatSwVersion=sonusNodeSrvrStatSwVersion, sonusUserListStatusIndex=sonusUserListStatusIndex, sonusNfsServerMount=sonusNfsServerMount, sonusFlashStatusEntry=sonusFlashStatusEntry, sonusNodeShelfPowerA48VdcFailureNotification=sonusNodeShelfPowerA48VdcFailureNotification, sonusBparamUId=sonusBparamUId, sonusNfsStatSlotIndex=sonusNfsStatSlotIndex, sonusNodeSrvrAdmnDryupLimit=sonusNodeSrvrAdmnDryupLimit, sonusUserListPasswd=sonusUserListPasswd, sonusNodeSrvrStatMemUtilization=sonusNodeSrvrStatMemUtilization, sonusUserProfileNextIndex=sonusUserProfileNextIndex, sonusNodeSrvrAdmnHwType=sonusNodeSrvrAdmnHwType, sonusUserProfileName=sonusUserProfileName, sonusUserProfile=sonusUserProfile, sonusNodeAdapStatMiddVersion=sonusNodeAdapStatMiddVersion, sonusUserProfileTable=sonusUserProfileTable, sonusNodeAdmnObjects=sonusNodeAdmnObjects, sonusFlashAdmnShelfIndex=sonusFlashAdmnShelfIndex, sonusBparamIpMaskSlot1Port2=sonusBparamIpMaskSlot1Port2, sonusNodeEthernetActiveNotification=sonusNodeEthernetActiveNotification, sonusNodeShelfStatSlots=sonusNodeShelfStatSlots, sonusNodeServerTempWarningNotification=sonusNodeServerTempWarningNotification, sonusNodeShelfAdmnState=sonusNodeShelfAdmnState, sonusNodeMIBObjects=sonusNodeMIBObjects, sonusNodeSrvrAdmnRedundancyRole=sonusNodeSrvrAdmnRedundancyRole, sonusNfsAdmnShelfIndex=sonusNfsAdmnShelfIndex, sonusParam=sonusParam, sonusNfsStatEntry=sonusNfsStatEntry, sonusFlashStatShelfIndex=sonusFlashStatShelfIndex, sonusNfsStatStandbyServer=sonusNfsStatStandbyServer, sonusNodeSlotHwType=sonusNodeSlotHwType, sonusNodeShelfAdmnStatus=sonusNodeShelfAdmnStatus, sonusBparamPasswd=sonusBparamPasswd, sonusNodeSlotHwTypeRev=sonusNodeSlotHwTypeRev, sonusParamSaveFilename=sonusParamSaveFilename, sonusNodeSlotAdmnEntry=sonusNodeSlotAdmnEntry, sonusNodeSrvrAdmnShelfIndex=sonusNodeSrvrAdmnShelfIndex, sonusBparamCoreState=sonusBparamCoreState, sonusNfsServerIp=sonusNfsServerIp, sonusNodeSrvrStatEntry=sonusNodeSrvrStatEntry, sonusBparamUnused=sonusBparamUnused, sonusBparamCoreDumpLimit=sonusBparamCoreDumpLimit, sonusUserList=sonusUserList, sonusNodeServerInsertedNotification=sonusNodeServerInsertedNotification, sonusNfsStatPrimaryLastError=sonusNfsStatPrimaryLastError, sonusNodeMIBNotificationsObjects=sonusNodeMIBNotificationsObjects, sonusSwLoadEntry=sonusSwLoadEntry, sonusNodeShelfStatFan=sonusNodeShelfStatFan, sonusNodeShelfStatSerialNumber=sonusNodeShelfStatSerialNumber, sonusSwLoadSpecAdmnImageName=sonusSwLoadSpecAdmnImageName, sonusBparamIfSpeedTypeSlot1Port2=sonusBparamIfSpeedTypeSlot1Port2, sonusBparamIpAddrSlot2Port1=sonusBparamIpAddrSlot2Port1, sonusNfsRole=sonusNfsRole, sonusNodeSlotResetNotification=sonusNodeSlotResetNotification, sonusParamStatusObjects=sonusParamStatusObjects, sonusUserListRowStatus=sonusUserListRowStatus, sonusNfsStatSecondaryStatus=sonusNfsStatSecondaryStatus, sonusBparamNfsPathSoftware=sonusBparamNfsPathSoftware, sonusUserListIndex=sonusUserListIndex)
mibBuilder.exportSymbols("SONUS-NODE-MIB", sonusBparamIpAddrSlot2Port2=sonusBparamIpAddrSlot2Port2, sonusNvsConfigEntry=sonusNvsConfigEntry, sonusNodeAdapStatHwTypeRev=sonusNodeAdapStatHwTypeRev, sonusNodeShelfAdmnIndex=sonusNodeShelfAdmnIndex, sonusSwLoadAdmnHwType=sonusSwLoadAdmnHwType, sonusNodeSlotPower=sonusNodeSlotPower, sonusParamLoadDuration=sonusParamLoadDuration, sonusNodeMIBNotificationsPrefix=sonusNodeMIBNotificationsPrefix, sonusNodeSrvrStatBuildNum=sonusNodeSrvrStatBuildNum, sonusUserProfileUserPasswd=sonusUserProfileUserPasswd, sonusParamLoadStatus=sonusParamLoadStatus, sonusNfsAdmnTable=sonusNfsAdmnTable, sonusNodeShelfAdmnIpaddr2=sonusNodeShelfAdmnIpaddr2, sonusNodeSlotShelfIndex=sonusNodeSlotShelfIndex, sonusNodeAdapterRemovedNotification=sonusNodeAdapterRemovedNotification, sonusNodeSrvrStatPartNumRev=sonusNodeSrvrStatPartNumRev, sonusBparamMasterState=sonusBparamMasterState, PYSNMP_MODULE_ID=sonusNodeMIB, sonusNodeStatusObjects=sonusNodeStatusObjects, sonusNodeAdapStatTable=sonusNodeAdapStatTable, sonusBparamGrpId=sonusBparamGrpId, sonusNfsReason=sonusNfsReason, sonusNodeSrvrStatHwTypeRev=sonusNodeSrvrStatHwTypeRev, sonusNodeAdmnShelves=sonusNodeAdmnShelves, sonusParamSavePrimarySrvrState=sonusParamSavePrimarySrvrState, sonusNodeShelfAdmnRowStatus=sonusNodeShelfAdmnRowStatus, sonusNodeSlotEntry=sonusNodeSlotEntry, sonusUserProfileUserComment=sonusUserProfileUserComment, sonusNodeSrvrStatTotalSharedMem=sonusNodeSrvrStatTotalSharedMem, sonusBparamIpGatewaySlot1Port2=sonusBparamIpGatewaySlot1Port2, sonusNodeSrvrAdmnSlotIndex=sonusNodeSrvrAdmnSlotIndex, sonusBparamIpGatewaySlot2Port1=sonusBparamIpGatewaySlot2Port1, sonusNodeSrvrStatMiddVersion=sonusNodeSrvrStatMiddVersion, sonusParamLoadServer=sonusParamLoadServer, sonusParamSavePrimarySrvrReason=sonusParamSavePrimarySrvrReason, sonusUserProfileIndex=sonusUserProfileIndex, sonusNfsAdmnSlotIndex=sonusNfsAdmnSlotIndex, sonusNodeSlotAdmnShelfIndex=sonusNodeSlotAdmnShelfIndex, sonusNodeAdapterMissingNotification=sonusNodeAdapterMissingNotification, sonusNodeSlotIndex=sonusNodeSlotIndex, sonusNodeShelfStatIndex=sonusNodeShelfStatIndex, sonusUserListState=sonusUserListState, sonusNodeEthernetInactiveNotification=sonusNodeEthernetInactiveNotification, sonusNodeServerHardwareFailureNotification=sonusNodeServerHardwareFailureNotification, sonusNodeShelfStatBootCount=sonusNodeShelfStatBootCount, sonusNfsErrorCode=sonusNfsErrorCode, sonusBparamIpMaskSlot2Port0=sonusBparamIpMaskSlot2Port0, sonusParamAdminObject=sonusParamAdminObject, sonusNodeServerDisabledNotification=sonusNodeServerDisabledNotification, sonusNodeSrvrStatHwType=sonusNodeSrvrStatHwType, sonusNodeShelfStatTemperature=sonusNodeShelfStatTemperature, sonusUserListStatusEntry=sonusUserListStatusEntry, sonusBparamIpMaskSlot2Port1=sonusBparamIpMaskSlot2Port1, sonusNfsStatPrimaryIP=sonusNfsStatPrimaryIP)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint')
(module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup')
(notification_type, counter64, mib_identifier, bits, object_identity, unsigned32, iso, integer32, gauge32, module_identity, ip_address, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'Counter64', 'MibIdentifier', 'Bits', 'ObjectIdentity', 'Unsigned32', 'iso', 'Integer32', 'Gauge32', 'ModuleIdentity', 'IpAddress', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks')
(textual_convention, date_and_time, display_string, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DateAndTime', 'DisplayString', 'RowStatus')
(sonus_slot_index, sonus_event_level, sonus_event_description, sonus_port_index, sonus_shelf_index, sonus_event_class) = mibBuilder.importSymbols('SONUS-COMMON-MIB', 'sonusSlotIndex', 'sonusEventLevel', 'sonusEventDescription', 'sonusPortIndex', 'sonusShelfIndex', 'sonusEventClass')
(sonus_system_mi_bs,) = mibBuilder.importSymbols('SONUS-SMI', 'sonusSystemMIBs')
(sonus_service_state, sonus_admin_action, sonus_software_version, sonus_name, adapter_type_id, server_function_type, server_type_id, sonus_admin_state, sonus_access_level, hw_type_id) = mibBuilder.importSymbols('SONUS-TC', 'SonusServiceState', 'SonusAdminAction', 'SonusSoftwareVersion', 'SonusName', 'AdapterTypeID', 'ServerFunctionType', 'ServerTypeID', 'SonusAdminState', 'SonusAccessLevel', 'HwTypeID')
sonus_node_mib = module_identity((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1))
if mibBuilder.loadTexts:
sonusNodeMIB.setLastUpdated('200107310000Z')
if mibBuilder.loadTexts:
sonusNodeMIB.setOrganization('Sonus Networks, Inc.')
if mibBuilder.loadTexts:
sonusNodeMIB.setContactInfo(' Customer Support Sonus Networks, Inc, 5 carlisle Road Westford, MA 01886 USA Tel: 978-692-8999 Fax: 978-392-9118 E-mail: cs.snmp@sonusnet.com')
if mibBuilder.loadTexts:
sonusNodeMIB.setDescription('The MIB Module for Node Management.')
sonus_node_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1))
sonus_node = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1))
sonus_node_admn_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 1))
sonus_node_admn_shelves = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdmnShelves.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdmnShelves.setDescription('The number of shelves configured to be present in this node.')
sonus_node_admn_telnet_login = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 1, 2), sonus_admin_state()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeAdmnTelnetLogin.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdmnTelnetLogin.setDescription('')
sonus_node_status_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 2))
sonus_node_stat_shelves_present = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeStatShelvesPresent.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeStatShelvesPresent.setDescription('The number of shelves currently present in this node.')
sonus_node_stat_next_if_index = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 2, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeStatNextIfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeStatNextIfIndex.setDescription('This MIB object identifies the next ifIndex to use in the creation of an interface. This MIB object directly corresponds to the ifIndex MIB object in the ifTable. A value of 0 means that no next ifIndex is currently available.')
sonus_node_stat_mgmt_status = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('manageable', 1), ('softwareUpgradeInProgress', 2), ('softwareUpgradeFailed', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeStatMgmtStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeStatMgmtStatus.setDescription("Identifies if this node can be effectively managed by a network management system. A value of 'manageable' indicates that it can be; the other values indicate that a significant operation is in progress and that a network management system should minimize any requests of this node.")
sonus_node_shelf_admn_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3))
if mibBuilder.loadTexts:
sonusNodeShelfAdmnTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnTable.setDescription("This table contains information about each shelf which is configured to be a member of the node. This table describes the configured characteristics of each shelf, including the shelve's identity (sonusNodeShelfAdmnIpaddr1 and sonusNodeShelfAdmnIpaddr2). A row must be created by the manager for every slave shelf that is to join the master shelf as part of the node. Slave shelves which do not have correct entries in this table, can not join the node. A management entity may create rows for shelves that are anticipated to join the node in the future.")
sonus_node_shelf_admn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusNodeShelfAdmnIndex'))
if mibBuilder.loadTexts:
sonusNodeShelfAdmnEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnEntry.setDescription('This table describes the shelves that are configured as members of the GSX9000 Switch node.')
sonus_node_shelf_admn_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnIndex.setDescription('Identifies the target shelf in the node. Each node may be compprised of one or more shelves. The maximum number of shelves allowed in a node is six.')
sonus_node_shelf_admn_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 2), sonus_admin_state()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnState.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnState.setDescription('The configured state of the target shelf in the node.')
sonus_node_shelf_admn_ipaddr1 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 3), ip_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnIpaddr1.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnIpaddr1.setDescription("The IP Address of the shelf. This value identifies the shelf that may join the node. Each shelf has two IP addresses that it may be reached by. This is the first of those two addresses. Note that it is not possible to change this object on the master shelf. That would be tantamount to changing that shelf's IP address.")
sonus_node_shelf_admn_ipaddr2 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 4), ip_address()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnIpaddr2.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnIpaddr2.setDescription("The IP Address of the shelf. This value identifies the shelf that may join the node. Each shelf has two IP addresses that it may be reached by. This is the second of those two addresses. Note that it is not possible to change this object on the master shelf. That would be tantamount to changing the shelf's IP address.")
sonus_node_shelf_admn48_vdc_a_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 5), sonus_admin_state()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
sonusNodeShelfAdmn48VdcAState.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmn48VdcAState.setDescription("The configured state of the shelf's 48 VDC A-power supply. Indicates whether the A supply SHOULD be present. This object is not capable of disabling a connected supply.")
sonus_node_shelf_admn48_vdc_b_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 6), sonus_admin_state()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
sonusNodeShelfAdmn48VdcBState.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmn48VdcBState.setDescription("The configured state of the shelf's 48 VDC B-power supply. Indicates whether the B supply SHOULD be present. This object is not capable of disabling a connected supply.")
sonus_node_shelf_admn_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('absent', 1), ('detected', 2), ('accepted', 3), ('shuttingDown', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnStatus.setDescription('The status of the indexed shelf in the GSX9000 node. If the value of this object is not accepted(3) or shuttingDown(4), then the objects in Sonus Shelf Status table are unavailable. The value of this object does not reach accepted(3) until after the slave shelf has contacted the master shelf, and has successfully joined the node. A value of shuttingDown(4) indicates the shelf will be unavailable shortly.')
sonus_node_shelf_admn_restart = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('restart', 2), ('shutdown', 3)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnRestart.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnRestart.setDescription('This object is used to reset a shelf in the node. The object causes the management servers on the indexed shelf to perform the indicated operation. The restart(2) operation causes the management servers to reboot. The shutdown(3) operation causes the management servers to disable power to all cards on the indexed shelf, including themselves. The shutdown(3) operation requires physical intervention to re-power the shelf. This object always reads as unknown(1).')
sonus_node_shelf_admn_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 3, 1, 9), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnRowStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfAdmnRowStatus.setDescription('This object indicates the row status for this table.')
sonus_node_shelf_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4))
if mibBuilder.loadTexts:
sonusNodeShelfStatTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatTable.setDescription("This table contains status information about each shelf in the GSX9000 Switch node. Shelves within the node can can be configured before they are physically attached to the node. Shelves that are attached may not be powered or correctly configured as a slave. Therefore, it is possible that a slave shelf can not be detected, and is absent. The value of sonusNodeShelfAdmnStatus indicates the availability of this shelf. If the sonusNodeShelfAdmnStatus value for the index shelf does not indicate a status value of 'accepted', then this status table is not available.")
sonus_node_shelf_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusNodeShelfStatIndex'))
if mibBuilder.loadTexts:
sonusNodeShelfStatEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatEntry.setDescription('This table describes the shelves that are configured as members of the GSX9000 Switch node.')
sonus_node_shelf_stat_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStatIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatIndex.setDescription('Identifies the target shelf within the node. Returns the same value as sonusNodeShelfStatIndex, the index into this instance.')
sonus_node_shelf_stat_slots = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStatSlots.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatSlots.setDescription('The number of physical slots present in this shelf.')
sonus_node_shelf_stat_serial_number = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStatSerialNumber.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatSerialNumber.setDescription('Identifies the Sonus serial number for this shelf.')
sonus_node_shelf_stat_type = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('slave', 1), ('master', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStatType.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatType.setDescription('Identifies the Sonus shelf type. A shelf may be either the master shelf for the node, or it may be one of several slave shelves in the node. Every node contains exactly one master shelf. The master shelf in the management focal point for the node.')
sonus_node_shelf_stat_fan = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('notPresent', 1), ('controllerFailure', 2), ('singleFailure', 3), ('multipleFailures', 4), ('powerFailure', 5), ('operational', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStatFan.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatFan.setDescription("Identifies the status of the shelf's fan tray. A controllerFailure(2) indicates that the fan status can not be obtained. In that case in can not be determined if the fans are operational, or experiencing other failures as well.")
sonus_node_shelf_stat48_va_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('absent', 1), ('present', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStat48VAStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStat48VAStatus.setDescription("The status of the shelf's 48 VDC A-power supply.")
sonus_node_shelf_stat48_vb_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('absent', 1), ('present', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStat48VBStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStat48VBStatus.setDescription("The status of the shelf's 48 VDC B-power supply.")
sonus_node_shelf_stat_backplane = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 8), hw_type_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStatBackplane.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatBackplane.setDescription('The hardware type ID of the backplane in this shelf.')
sonus_node_shelf_stat_boot_count = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStatBootCount.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatBootCount.setDescription('Specifies the number of times that this shelf has been booted. The boot count is specified from the perspective of the active management module running in the indexed shelf.')
sonus_node_shelf_stat_temperature = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStatTemperature.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatTemperature.setDescription("Indicates the temperature being sensed at this shelf's intake manifold. The temperature is indicated in Celcius.")
sonus_node_shelf_stat_fan_speed = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 4, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('high', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeShelfStatFanSpeed.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfStatFanSpeed.setDescription('Indicates the speed of the fan.')
sonus_node_srvr_admn_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5))
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnTable.setDescription("The server module ADMN table describes the configuration of each server module slot in an indexed shelf. A slot in a shelf, MUST be configured to accept a particular server module HWTYPE. If the wrong type of server module is detected in the slot, that server module will not be allowed to complete its boot process. All server modules are held in the RESET state until that server module's state is set to ENABLED. A server module must have its state set to DISABLED, before the row can be deleted. The row must be deleted, and re-created in order to change the HWTYPE of the row. The server module mode must be set to OUTOFSERVICE before the row's state can be set to DISABLED. Deleting a row in this table, clears the server module hardware type association for this slot. THIS IS A MAJOR CONFIGURATION CHANGE. All configured parameters associated with this slot are permanently lost when the server module is deleted. A server module can not be deleted, until it's state has been set to DISABLED. A row's default value for state is DISABLED. The server module located in the slot is immediately placed in reset when its state is set to disabled.")
sonus_node_srvr_admn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusNodeSrvrAdmnShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusNodeSrvrAdmnSlotIndex'))
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnEntry.setDescription('')
sonus_node_srvr_admn_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnShelfIndex.setDescription('Identifies the target shelf. Returns the same value as sonusNodeShelfStatIndex, which was used to index into this table.')
sonus_node_srvr_admn_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonus_node_srvr_admn_hw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 3), server_type_id()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnHwType.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnHwType.setDescription('Identifies the type of server module the indexed slot has been configured to accept. Server modules other than this type are rejected by the System Manager. This object is required to create a row instance.')
sonus_node_srvr_admn_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 4), sonus_admin_state().clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnState.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnState.setDescription('A server module must be enabled before System Manager will fully recognize it. The server module must be disabled before the server module can be deleted.')
sonus_node_srvr_admn_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 5), sonus_service_state().clone('inService')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnMode.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnMode.setDescription('A server module which is outOfService will not accept new calls. When taken out of service, its active calls may either be dried up or terminated, depending on the action specified. Server modules are created with a mode of inService. A server module must be outOfService in order to change its state to disabled.')
sonus_node_srvr_admn_action = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 6), sonus_admin_action().clone('force')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnAction.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnAction.setDescription('The type of action to perform when a server module is taken out of service. The active calls on the server module can be dried up for a specified dryup limit, or they can be forced to be terminated.')
sonus_node_srvr_admn_dryup_limit = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnDryupLimit.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnDryupLimit.setDescription('Server module dryup limit, specified in minutes. If the server module has not dried up by the time this limit expires, the remaining active calls are abruptly terminated. A dryup limit of zero indicates that the system will wait forever for the dryup to complete.')
sonus_node_srvr_admn_dump_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 8), sonus_admin_state().clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnDumpState.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnDumpState.setDescription('Indicates if a server module will create a crashblock file when a critical error which prevents the module from continuing, has occured.')
sonus_node_srvr_admn_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 9), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnRowStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnRowStatus.setDescription('Deleting a server module will place that slot in reset. All configuration parameters associated with the server module in this slot are destroyed.')
sonus_node_srvr_admn_redundancy_role = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('redundant', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnRedundancyRole.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnRedundancyRole.setDescription('Specifies the redundancy role this server module will play. This object is required to create a row instance.')
sonus_node_srvr_admn_adap_hw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 11), adapter_type_id()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnAdapHwType.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnAdapHwType.setDescription('Identifies the type of adapter module the indexed slot has been configured to accept. Adapter modules other than this type are rejected by the System Manager. This object is required to create a row instance.')
sonus_node_srvr_admn_special_function = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 5, 1, 12), server_function_type()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnSpecialFunction.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrAdmnSpecialFunction.setDescription('Specifies the logical function for this server module. This object may be specified only at row creation time, but is not required. If not specified, an appropriate default value will be assigned based on the server and adapter hardware types. A value of default(1) is not accepted or used.')
sonus_node_slot_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6))
if mibBuilder.loadTexts:
sonusNodeSlotTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotTable.setDescription('The node slot table describes')
sonus_node_slot_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusNodeSlotShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusNodeSlotIndex'))
if mibBuilder.loadTexts:
sonusNodeSlotEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotEntry.setDescription('')
sonus_node_slot_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotShelfIndex.setDescription('Identifies the indexed shelf. Returns the same value as sonusNodeShelfStatIndex, which is used to index into this table.')
sonus_node_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotIndex.setDescription('Identifies the indexed slot within the shelf.')
sonus_node_slot_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15))).clone(namedValues=named_values(('unknown', 1), ('empty', 2), ('inserted', 3), ('reset', 4), ('boot', 5), ('sonicId', 6), ('coreDump', 7), ('holdOff', 8), ('loading', 9), ('activating', 10), ('activated', 11), ('running', 12), ('faulted', 13), ('powerOff', 14), ('powerFail', 15)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotState.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotState.setDescription('Identifies the operational state of the indexed slot in the shelf.')
sonus_node_slot_hw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 4), hw_type_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotHwType.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotHwType.setDescription('Identifies the hardware type of the server module which was detected in the slot. Valid only if the sonusNodeSlotState is greater than inserted(2).')
sonus_node_slot_hw_type_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotHwTypeRev.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotHwTypeRev.setDescription('Identifies the hardware type revision of the server module which was detected in the slot. Valid only if the sonusNodeSlotState is greater than inserted(2).')
sonus_node_slot_power = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('powerFault', 2), ('powerOK', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotPower.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotPower.setDescription('Identifies the server modules power mode. If the slot state is empty, the power status is unknown(1).')
sonus_node_slot_adap_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('empty', 2), ('present', 3), ('faulted', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotAdapState.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotAdapState.setDescription('Identifies the adapter state of the indexed slot in the shelf.')
sonus_node_slot_adap_hw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 6, 1, 8), hw_type_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotAdapHwType.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotAdapHwType.setDescription('Identifies the hardware type of the adapter module which was detected in the slot. Valid only if the sonusNodeSlotAdapState is present(3).')
sonus_node_srvr_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7))
if mibBuilder.loadTexts:
sonusNodeSrvrStatTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatTable.setDescription("The node server status table describes the status of the indexed server module in the node. This table is unavailable if the sonusNodeShelfStatStatus object indicates that this slot is empty. If the sonusNodeSrvrStatType object returns either 'absent' or 'unknown' the value of all other objects within this table are indeterministic.")
sonus_node_srvr_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusNodeSrvrStatShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusNodeSrvrStatSlotIndex'))
if mibBuilder.loadTexts:
sonusNodeSrvrStatEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatEntry.setDescription('')
sonus_node_srvr_stat_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatShelfIndex.setDescription('Identifies the target shelf. Returns the same value as sonusNodeShelfStatIndex, which was used to index into this table.')
sonus_node_srvr_stat_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonus_node_srvr_stat_midd_version = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatMiddVersion.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatMiddVersion.setDescription('Identifies the version of the MIDD EEPROM on this server module.')
sonus_node_srvr_stat_hw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 4), hw_type_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatHwType.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatHwType.setDescription('Identifies the type of server module in the indexed slot.')
sonus_node_srvr_stat_serial_num = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatSerialNum.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatSerialNum.setDescription('Identifies the serial number of the server module. This is the serial number assigned to the server module at manufacture.')
sonus_node_srvr_stat_part_num = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatPartNum.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatPartNum.setDescription('Identifies the part number of the module. This is the part number assigned to the module at manufacture.')
sonus_node_srvr_stat_part_num_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(1, 2))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatPartNumRev.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatPartNumRev.setDescription('Identifies the manufacture part number revision level of the server module.')
sonus_node_srvr_stat_mfg_date = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatMfgDate.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatMfgDate.setDescription('The date this server module assembly was manufactured.')
sonus_node_srvr_stat_flash_version = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatFlashVersion.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatFlashVersion.setDescription('Identifies the version of the firmware within the non-volatile FLASH device on this server module.')
sonus_node_srvr_stat_sw_version = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatSwVersion.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatSwVersion.setDescription('Identifies the version of the runtime software application this is currently executing on this server module.')
sonus_node_srvr_stat_build_num = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatBuildNum.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatBuildNum.setDescription('Identifies the build number of this software version.')
sonus_node_srvr_stat_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('standby', 1), ('active', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatMode.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatMode.setDescription('Identifies the operational status of the module in the indexed slot.')
sonus_node_srvr_stat_temperature = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatTemperature.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatTemperature.setDescription('Indicates the current Celcius temperature being sensed by the server module in the indexed slot.')
sonus_node_srvr_stat_mem_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatMemUtilization.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatMemUtilization.setDescription('The current memory utilization of this server module. The value returned is a number from 0 to 100, representing the percentage of memory utilization. Note that this number can be somewhat misleading as many data structures are pre-allocated to ensure that the server modules maximum load capacity can be acheived and maintained. This may result is relatively high memory utilizations under fairly low load.')
sonus_node_srvr_stat_cpu_utilization = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatCpuUtilization.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatCpuUtilization.setDescription('The current CPU utilization of this server module. The value returned is a number from 0 to 100, representing the percentage of CPU utilization.')
sonus_node_srvr_stat_hw_type_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatHwTypeRev.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatHwTypeRev.setDescription('The hardware type revision number of this server module.')
sonus_node_srvr_stat_sw_version_code = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 17), sonus_software_version()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatSwVersionCode.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatSwVersionCode.setDescription('Octet string that identifies the version of the runtime software application that is currently executing on this server module: Byte(s) Code ------- ---- 0 major version 1 minor version 2 release version 3 type (1:alpha, 2:beta, 3:release, 4:special) 4-5 type number')
sonus_node_srvr_stat_epld_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatEpldRev.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatEpldRev.setDescription('The EPLD revision level of this server module. An overall number which represents the total level of the server module.')
sonus_node_srvr_stat_host_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 19), display_string().subtype(subtypeSpec=value_size_constraint(1, 64))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatHostName.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatHostName.setDescription('Identifies the host name that software load of this module had been built on.')
sonus_node_srvr_stat_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 20), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatUserName.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatUserName.setDescription('Identifies the user who builds software load of this module.')
sonus_node_srvr_stat_view_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 21), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatViewName.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatViewName.setDescription('Identifies the viewName used for software build.')
sonus_node_srvr_stat_total_mem = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 22), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatTotalMem.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatTotalMem.setDescription('Indicates the total memory size of the server module.')
sonus_node_srvr_stat_free_mem = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 23), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatFreeMem.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatFreeMem.setDescription('Indicates the total memory available on the server module.')
sonus_node_srvr_stat_total_shared_mem = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 24), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatTotalSharedMem.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatTotalSharedMem.setDescription('Indicates the total shared memory size of the server module.')
sonus_node_srvr_stat_free_shared_mem = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 7, 1, 25), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSrvrStatFreeSharedMem.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSrvrStatFreeSharedMem.setDescription('Indicates the total shared memory available on the server module.')
sonus_node_adap_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11))
if mibBuilder.loadTexts:
sonusNodeAdapStatTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatTable.setDescription('The node adapter status table describes the status of the indexed adapter module in the node. This table is unavailable if the sonusNodeSlotAdapState object indicates that this slot is unknown, empty or faulted.')
sonus_node_adap_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusNodeAdapStatShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusNodeAdapStatSlotIndex'))
if mibBuilder.loadTexts:
sonusNodeAdapStatEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatEntry.setDescription('')
sonus_node_adap_stat_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdapStatShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatShelfIndex.setDescription('Identifies the target shelf.')
sonus_node_adap_stat_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdapStatSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonus_node_adap_stat_midd_version = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdapStatMiddVersion.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatMiddVersion.setDescription('Identifies the version of the MIDD EEPROM on this adapter module.')
sonus_node_adap_stat_hw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 4), hw_type_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdapStatHwType.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatHwType.setDescription('Identifies the type of adapter module in the indexed slot.')
sonus_node_adap_stat_hw_type_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdapStatHwTypeRev.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatHwTypeRev.setDescription('Identifies the hardware type revision of the adapter module detected in the slot.')
sonus_node_adap_stat_serial_num = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdapStatSerialNum.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatSerialNum.setDescription('Identifies the serial number of the adapter module. This is the serial number assigned to the card at manufacture.')
sonus_node_adap_stat_part_num = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdapStatPartNum.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatPartNum.setDescription('Identifies the part number of the adapter module. This is the part number assigned to the card at manufacture.')
sonus_node_adap_stat_part_num_rev = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(1, 2))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdapStatPartNumRev.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatPartNumRev.setDescription('Identifies the assembly revision level of the adapter module.')
sonus_node_adap_stat_mfg_date = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 11, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(1, 10))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeAdapStatMfgDate.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapStatMfgDate.setDescription('The date this adapter module was manufactured.')
sonus_node_slot_admn_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12))
if mibBuilder.loadTexts:
sonusNodeSlotAdmnTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotAdmnTable.setDescription('The node slot admn table provides physical manipulation of a slot location in a shelf.')
sonus_node_slot_admn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusNodeSlotAdmnShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusNodeSlotAdmnSlotIndex'))
if mibBuilder.loadTexts:
sonusNodeSlotAdmnEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotAdmnEntry.setDescription('')
sonus_node_slot_admn_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotAdmnShelfIndex.setDescription('Identifies the target shelf.')
sonus_node_slot_admn_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNodeSlotAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotAdmnSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonus_node_slot_admn_reset = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 1, 12, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('undefined', 1), ('reset', 2), ('coredump', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNodeSlotAdmnReset.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotAdmnReset.setDescription('Setting this object to reset(2) or coredump(3), will physically reset the server module installed in the indexed slot. This object always reads as undefined(1). This object bypasses all consistency and safety checks. This object is intended for evaluation testing.')
sonus_nvs_config = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2))
sonus_nvs_config_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1))
if mibBuilder.loadTexts:
sonusNvsConfigTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNvsConfigTable.setDescription('This table specifies the Boot Parameters that apply only to the MNS present in the indexed shelf and slot. The Boot Parameters can only be accessed if the shelf is actively part of the node.')
sonus_nvs_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusBparamShelfIndex'))
if mibBuilder.loadTexts:
sonusNvsConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNvsConfigEntry.setDescription('')
sonus_bparam_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusBparamShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamShelfIndex.setDescription('Identifies the target shelf. This object returns the value of sonusNodeShelfStatIndex which was used to index into this table.')
sonus_bparam_unused = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 2), integer32())
if mibBuilder.loadTexts:
sonusBparamUnused.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamUnused.setDescription('Unused')
sonus_bparam_passwd = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 23))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamPasswd.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamPasswd.setDescription('The secure password which is used to access the Boot PROM menu subsystem. This object is not available through SNMP.')
sonus_bparam_ip_addr_slot1_port0 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 4), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot1Port0.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot1Port0.setDescription('The IP address assigned to the field service port. This port is not intended for customer use.')
sonus_bparam_ip_mask_slot1_port0 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot1Port0.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot1Port0.setDescription('The IP Address Mask assigned to the field service port.')
sonus_bparam_ip_gateway_slot1_port0 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 6), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot1Port0.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot1Port0.setDescription('The default IP Gateway address used by the field service port.')
sonus_bparam_if_speed_type_slot1_port0 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('autoNegotiate', 1), ('fullDuplex100', 2), ('halfDuplex100', 3), ('fullDuplex10', 4), ('halfDuplex10', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot1Port0.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot1Port0.setDescription('The default link speed setting used by the field service port.')
sonus_bparam_ip_addr_slot1_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 8), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot1Port1.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot1Port1.setDescription('The IP address assigned to management port number one.')
sonus_bparam_ip_mask_slot1_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 9), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot1Port1.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot1Port1.setDescription('The IP address mask used by management port one.')
sonus_bparam_ip_gateway_slot1_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 10), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot1Port1.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot1Port1.setDescription('The default IP Gateway address used by management port one.')
sonus_bparam_if_speed_type_slot1_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('autoNegotiate', 1), ('fullDuplex100', 2), ('halfDuplex100', 3), ('fullDuplex10', 4), ('halfDuplex10', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot1Port1.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot1Port1.setDescription('The default link speed setting used by management port one.')
sonus_bparam_ip_addr_slot1_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 12), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot1Port2.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot1Port2.setDescription('The IP address assigned to management port number two.')
sonus_bparam_ip_mask_slot1_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 13), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot1Port2.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot1Port2.setDescription('The IP address mask used by management port two.')
sonus_bparam_ip_gateway_slot1_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 14), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot1Port2.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot1Port2.setDescription('The default gateway address used by management port two.')
sonus_bparam_if_speed_type_slot1_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('autoNegotiate', 1), ('fullDuplex100', 2), ('halfDuplex100', 3), ('fullDuplex10', 4), ('halfDuplex10', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot1Port2.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot1Port2.setDescription('The default link speed setting used by management port two.')
sonus_bparam_ip_addr_slot2_port0 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 16), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot2Port0.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot2Port0.setDescription('The IP address assigned to the field service port. This port is not intended for customer use.')
sonus_bparam_ip_mask_slot2_port0 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 17), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot2Port0.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot2Port0.setDescription('The IP Address Mask assigned to the field service port.')
sonus_bparam_ip_gateway_slot2_port0 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 18), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot2Port0.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot2Port0.setDescription('The default IP Gateway address used by the field service port.')
sonus_bparam_if_speed_type_slot2_port0 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('autoNegotiate', 1), ('fullDuplex100', 2), ('halfDuplex100', 3), ('fullDuplex10', 4), ('halfDuplex10', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot2Port0.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot2Port0.setDescription('The default link speed setting used by the field service port.')
sonus_bparam_ip_addr_slot2_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 20), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot2Port1.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot2Port1.setDescription('The IP address assigned to management port number one.')
sonus_bparam_ip_mask_slot2_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 21), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot2Port1.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot2Port1.setDescription('The IP address mask used by management port one.')
sonus_bparam_ip_gateway_slot2_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 22), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot2Port1.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot2Port1.setDescription('The default IP Gateway address used by management port one.')
sonus_bparam_if_speed_type_slot2_port1 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('autoNegotiate', 1), ('fullDuplex100', 2), ('halfDuplex100', 3), ('fullDuplex10', 4), ('halfDuplex10', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot2Port1.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot2Port1.setDescription('The default link speed setting used by management port one.')
sonus_bparam_ip_addr_slot2_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 24), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot2Port2.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpAddrSlot2Port2.setDescription('The IP address assigned to management port number two.')
sonus_bparam_ip_mask_slot2_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 25), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot2Port2.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpMaskSlot2Port2.setDescription('The IP address mask used by management port two.')
sonus_bparam_ip_gateway_slot2_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 26), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot2Port2.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIpGatewaySlot2Port2.setDescription('The default gateway address used by management port two.')
sonus_bparam_if_speed_type_slot2_port2 = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 27), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('autoNegotiate', 1), ('fullDuplex100', 2), ('halfDuplex100', 3), ('fullDuplex10', 4), ('halfDuplex10', 5)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot2Port2.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamIfSpeedTypeSlot2Port2.setDescription('The default link speed setting used by management port two.')
sonus_bparam_boot_delay = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 28), integer32().subtype(subtypeSpec=value_range_constraint(5, 255))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamBootDelay.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamBootDelay.setDescription('The amount of delay used to allow an administrator to gain access to the NVS configuration menus before the runtime software is loaded. The delay is specified in seconds. Increasing this delay, will increase the total system boot time by the same amount.')
sonus_bparam_core_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 29), sonus_admin_state()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamCoreState.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamCoreState.setDescription('Specifies whether core dumps are enabled. If core dumps are disabled, a fatal software fault will result in a reboot without the overhead of performing the core dump operation.')
sonus_bparam_core_level = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 30), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('normal', 1), ('sensitive', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamCoreLevel.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamCoreLevel.setDescription('Specifies the type of core dump behavior the shelf will display. Under normal(1) behavior, the server modules will execute a core dump only for fatal software errors. Under sensitive(2) behavior, the server modules will execute a core dump when the software recognizes a major, but non-fatal, software fault. Normal(1) is the strongly recommended setting.')
sonus_bparam_baud_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 31), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamBaudRate.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamBaudRate.setDescription("The baud rate of a management port's physical interface.")
sonus_bparam_nfs_primary = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 32), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamNfsPrimary.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamNfsPrimary.setDescription('The IP Address of the primary NFS Server for this switch.')
sonus_bparam_nfs_secondary = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 33), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamNfsSecondary.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamNfsSecondary.setDescription('The IP Address of the secondary NFS Server for this switch.')
sonus_bparam_nfs_mount_pri = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 34), display_string().subtype(subtypeSpec=value_size_constraint(2, 31))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamNfsMountPri.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamNfsMountPri.setDescription('The NFS mount point exported by the Primary NFS server.')
sonus_bparam_nfs_mount_sec = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 35), display_string().subtype(subtypeSpec=value_size_constraint(2, 31))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamNfsMountSec.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamNfsMountSec.setDescription('The NFS mount point exported by the Secondary NFS server.')
sonus_bparam_nfs_path_upgrade = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 36), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamNfsPathUpgrade.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamNfsPathUpgrade.setDescription('The name of the temporary load path override. This path is tried before the sonusBparamNfsPathLoad when specified. If the sonusBparamNfsPathUpgrade fails to completely boot the switch after three consecutive attempts, the path is automatically abandoned in favor of the sonusBparamNfsPathLoad.')
sonus_bparam_nfs_path_load = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 37), display_string().subtype(subtypeSpec=value_size_constraint(2, 31))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamNfsPathLoad.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamNfsPathLoad.setDescription("The directory, beneath the exported NFS mount point, which contains the switch's operational directories.")
sonus_bparam_prim_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 38), display_string().subtype(subtypeSpec=value_size_constraint(1, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamPrimName.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamPrimName.setDescription('The primary load file name for this server module.')
sonus_bparam_sec_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 39), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamSecName.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamSecName.setDescription('The secondary load file name for this server module. The secondary file is tried when the primary file can not be opened or read.')
sonus_bparam_master_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 40), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('slave', 1), ('master', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamMasterState.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamMasterState.setDescription('Specifies whether this shelf will participate in the node as a master shelf, or as a slave shelf. Each node contains exactly one master shelf, and may contain multiple slave shelves.')
sonus_bparam_param_mode = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 41), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('binaryFile', 2), ('defaults', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamParamMode.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamParamMode.setDescription('Specifies the binary parameter file mode of the node. This mode specifies whether the node will attempt to load a binary parameter file. The paramMode can be set to disabled(1) which disables parameter file loading. The mode can be set to defaults(3), which temporarily disables binary parameter file loading, until after the next binary parameter file save cycle initiated by the runtime software. In both of these disabled cases, the node boots with default parameters and automatically loads and executes the CLI startup script. The paramMode may be set to binaryFile(2), which enables binary parameter file loading and disables the automatic CLI startup script loading. A binary parameter file must exist before the node can succesfully load a binary parameter file. The node will load default parameters when a valid parameter file can not be loaded. The node loads default parameters when either the parameter mode is set to disabled(1) or when the mode is set to defaults(3). When the mode is set to defaults(3), the mode is automatically updated to binaryFile(2) on the first parameter save cycle.')
sonus_bparam_cli_script = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 42), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamCliScript.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamCliScript.setDescription('The name of the CLI script which will be run automatically when the switch intentionally boots with default parameters. The switch will intentionally boot with default parameters when sonusBparamParamMode is set to either disabled(1) or defaults(3). This CLI script will never be run when the sonusBparamParamMode is set to binaryFile(2). If the script is not specified, or if it can not be located, it is not run. The switch expects to find the script file in the cli/sys directory, beneath the load path specified directory.')
sonus_bparam_u_id = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 43), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamUId.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamUId.setDescription('The UNIX user ID used for all file accesses on both the primary and secondary NFS servers.')
sonus_bparam_grp_id = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 44), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamGrpId.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamGrpId.setDescription('The UNIX group ID used for all file accesses on both the primary and secondary NFS servers.')
sonus_bparam_core_dump_limit = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 45), integer32().subtype(subtypeSpec=value_range_constraint(0, 255)).clone(6)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamCoreDumpLimit.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamCoreDumpLimit.setDescription('Indicates the maximum number of core dump files which can be created on behalf of a Server which is requesting a core dump. Setting the value to zero indicates no limit. This object is intended to limit the number of core dumps (and the amount of disk space used) when a Server repeatedly crashes.')
sonus_bparam_nfs_path_software = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 1, 1, 46), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusBparamNfsPathSoftware.setStatus('current')
if mibBuilder.loadTexts:
sonusBparamNfsPathSoftware.setDescription('The name of the software load path. This path is is appended to the Boot Path. This object may be NULL, in which case the software is loaded directly from the Boot Path. This object allows multiple revisions of software to be maintained below the Boot Path. This object can be overridden by the Upgrade Path object during a LSWU. During general operation the complete software load path is formed by concatenating this object to the Boot Path and any applicable file system mount point.')
sonus_flash_config_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2))
if mibBuilder.loadTexts:
sonusFlashConfigTable.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashConfigTable.setDescription('This table specifies the FLASH Update parameters for the indexed server module. The Boot Firmware for each server module is contained in the FLASH device. It is essential that once the upgrade process is initiated, that it be allowed to complete without interruption. Power loss or manually reseting the server module during the upgrade process will result in a loss of Boot Firmware.')
sonus_flash_config_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusFlashAdmnShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusFlashAdmnSlotIndex'))
if mibBuilder.loadTexts:
sonusFlashConfigEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashConfigEntry.setDescription('')
sonus_flash_admn_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusFlashAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashAdmnShelfIndex.setDescription('Identifies the target shelf within the node.')
sonus_flash_admn_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusFlashAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashAdmnSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonus_flash_admn_update_button = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('update', 1))).clone('update')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusFlashAdmnUpdateButton.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashAdmnUpdateButton.setDescription("Initiate the update of the specified server module's FLASH PROM now. This object always reads as the value update(1).")
sonus_flash_status_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3))
if mibBuilder.loadTexts:
sonusFlashStatusTable.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashStatusTable.setDescription('This table specifies the status of the FLASH Update process.')
sonus_flash_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusFlashStatShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusFlashStatSlotIndex'))
if mibBuilder.loadTexts:
sonusFlashStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashStatusEntry.setDescription('')
sonus_flash_stat_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusFlashStatShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashStatShelfIndex.setDescription('Identifies the target shelf within the node.')
sonus_flash_stat_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusFlashStatSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashStatSlotIndex.setDescription('Identifies the target slot within the shelf.')
sonus_flash_stat_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('idle', 1), ('waitReply', 2), ('waitData', 3), ('imageComplete', 4), ('flashErase', 5), ('flashWrite', 6), ('done', 7)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusFlashStatState.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashStatState.setDescription('The current state of the FLASH update process on the target server module.')
sonus_flash_stat_last_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 2, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17))).clone(namedValues=named_values(('success', 1), ('unknown', 2), ('inProgress', 3), ('badRequest', 4), ('noReply', 5), ('managerNack', 6), ('timerResources', 7), ('dataTimeout', 8), ('msgSequence', 9), ('memoryResources', 10), ('imageChecksum', 11), ('badBlkType', 12), ('flashErase', 13), ('flashWrite', 14), ('flashChecksum', 15), ('mgrNack', 16), ('badState', 17)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusFlashStatLastStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusFlashStatLastStatus.setDescription('The status of the last FLASH update that was executed.')
sonus_user = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3))
sonus_user_list = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1))
sonus_user_list_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusUserListNextIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListNextIndex.setDescription('The next valid index to use when creating a new sonusUserListEntry')
sonus_user_list_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2))
if mibBuilder.loadTexts:
sonusUserListTable.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListTable.setDescription('This table specifies the user access list for the node.')
sonus_user_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusUserListIndex'))
if mibBuilder.loadTexts:
sonusUserListEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListEntry.setDescription('')
sonus_user_list_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusUserListIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListIndex.setDescription('Identifies the target user list entry.')
sonus_user_list_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 2), sonus_admin_state()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserListState.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListState.setDescription('The administrative state of this user entry.')
sonus_user_list_user_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 3), sonus_name()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserListUserName.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListUserName.setDescription('The user name of this user.')
sonus_user_list_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 23))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserListProfileName.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListProfileName.setDescription('The name of the profile applied to this user entry.')
sonus_user_list_passwd = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserListPasswd.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListPasswd.setDescription('The password for this user.')
sonus_user_list_comment = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserListComment.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListComment.setDescription('A comment that is associated with this user.')
sonus_user_list_access = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('readOnly', 1), ('readWrite', 2), ('admin', 3))).clone('readOnly')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserListAccess.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListAccess.setDescription('The priviledge level of this user.')
sonus_user_list_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 2, 1, 8), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserListRowStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListRowStatus.setDescription('Row status object for this table.')
sonus_user_list_status_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 3))
if mibBuilder.loadTexts:
sonusUserListStatusTable.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListStatusTable.setDescription('This table specifies status of the user access list for the node.')
sonus_user_list_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 3, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusUserListStatusIndex'))
if mibBuilder.loadTexts:
sonusUserListStatusEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListStatusEntry.setDescription('')
sonus_user_list_status_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6)))
if mibBuilder.loadTexts:
sonusUserListStatusIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListStatusIndex.setDescription('Identifies the target user list status entry.')
sonus_user_list_status_last_config_change = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 1, 3, 1, 2), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusUserListStatusLastConfigChange.setStatus('current')
if mibBuilder.loadTexts:
sonusUserListStatusLastConfigChange.setDescription('Octet string that identifies the GMT timestamp of last successful SET PDU from this CLI user. field octects contents range ----- ------- -------- ----- 1 1-2 year 0..65536 2 3 month 1..12 3 4 day 1..31 4 5 hour 0..23 5 6 minutes 0..59 6 7 seconds 0..59 7 8 deci-sec 0..9 * Notes: - the value of year is in network-byte order')
sonus_user_profile = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2))
sonus_user_profile_next_index = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusUserProfileNextIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileNextIndex.setDescription('The next valid index to use when creating an entry in the sonusUserProfileTable.')
sonus_user_profile_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2))
if mibBuilder.loadTexts:
sonusUserProfileTable.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileTable.setDescription('This table specifies the user access list for the node.')
sonus_user_profile_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusUserProfileIndex'))
if mibBuilder.loadTexts:
sonusUserProfileEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileEntry.setDescription('')
sonus_user_profile_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusUserProfileIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileIndex.setDescription('Identifies the target profile entry.')
sonus_user_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 2), sonus_name()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileName.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileName.setDescription('The name of this user profile. This object is required to create the table entry.')
sonus_user_profile_user_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 3), sonus_admin_state()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileUserState.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileUserState.setDescription('The administrative state of this profiled user entry.')
sonus_user_profile_user_passwd = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(4, 16))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileUserPasswd.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileUserPasswd.setDescription('The password for the profiled user entry.')
sonus_user_profile_user_comment = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileUserComment.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileUserComment.setDescription('The comment that is associated with the profiled user entry.')
sonus_user_profile_user_access = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 6), sonus_access_level()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileUserAccess.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileUserAccess.setDescription('The priviledge level of the profiled user entry.')
sonus_user_profile_user_comment_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 7), sonus_admin_state()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileUserCommentState.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileUserCommentState.setDescription('Indicates whether the sonusUserProfileUserComment object is present in this user profile.')
sonus_user_profile_user_passwd_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 8), sonus_admin_state()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileUserPasswdState.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileUserPasswdState.setDescription('Indicates whether the sonusUserProfileUserPasswd object is present in this user profile.')
sonus_user_profile_user_access_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 9), sonus_admin_state()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileUserAccessState.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileUserAccessState.setDescription('Indicates whether the sonusUserProfileUserAccess object is present in this user profile.')
sonus_user_profile_user_state_state = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 10), sonus_admin_state()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileUserStateState.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileUserStateState.setDescription('Indicates whether the sonusUserProfileUserState object is present in this user profile.')
sonus_user_profile_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 3, 2, 2, 1, 11), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusUserProfileRowStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusUserProfileRowStatus.setDescription('')
sonus_sw_load = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4))
sonus_sw_load_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1))
if mibBuilder.loadTexts:
sonusSwLoadTable.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadTable.setDescription('This table specifies the hardware type based software load table for the server modules in the node.')
sonus_sw_load_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusSwLoadAdmnIndex'))
if mibBuilder.loadTexts:
sonusSwLoadEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadEntry.setDescription('')
sonus_sw_load_admn_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusSwLoadAdmnIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadAdmnIndex.setDescription('Identifies the target software load entry.')
sonus_sw_load_admn_image_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(1, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusSwLoadAdmnImageName.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadAdmnImageName.setDescription('Identifies the name of the image to load for the hardware type identified by sonusSwLoadAdmnHwType.')
sonus_sw_load_admn_hw_type = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1, 3), server_type_id()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusSwLoadAdmnHwType.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadAdmnHwType.setDescription('Identifies the target hardware type for the load image. This object can only be written at row creation.')
sonus_sw_load_admn_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 1, 1, 4), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusSwLoadAdmnRowStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadAdmnRowStatus.setDescription('The RowStatus object for this row.')
sonus_sw_load_spec_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2))
if mibBuilder.loadTexts:
sonusSwLoadSpecTable.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadSpecTable.setDescription('This table specifies the hardware type based software load table for the server modules in the node.')
sonus_sw_load_spec_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusSwLoadSpecAdmnShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusSwLoadSpecAdmnSlotIndex'))
if mibBuilder.loadTexts:
sonusSwLoadSpecEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadSpecEntry.setDescription('')
sonus_sw_load_spec_admn_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusSwLoadSpecAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadSpecAdmnShelfIndex.setDescription('Identifies the target shelf for this load entry entry.')
sonus_sw_load_spec_admn_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusSwLoadSpecAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadSpecAdmnSlotIndex.setDescription('Identifies the target slot within the chassis for this load entry.')
sonus_sw_load_spec_admn_image_name = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusSwLoadSpecAdmnImageName.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadSpecAdmnImageName.setDescription('Identifies the name of the image to load.')
sonus_sw_load_spec_admn_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 4, 2, 1, 4), row_status()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusSwLoadSpecAdmnRowStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusSwLoadSpecAdmnRowStatus.setDescription('The RowStatus object for this row.')
sonus_param = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5))
sonus_param_status_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1))
sonus_param_save_seq_number = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveSeqNumber.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveSeqNumber.setDescription('The parameter save sequence number assigned to this parameter file.')
sonus_param_save_time_start = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveTimeStart.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveTimeStart.setDescription('The system uptime, measured in milliseconds, when the last parameter save cycle started.')
sonus_param_save_time_stop = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveTimeStop.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveTimeStop.setDescription('The system uptime, measured in milliseconds, when the last parameter save cycle ended.')
sonus_param_save_duration = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveDuration.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveDuration.setDescription('The measured time in milliseconds to complete the last parameter save cycle.')
sonus_param_save_total_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveTotalBytes.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveTotalBytes.setDescription('The number of bytes contained in the last binary parameter file saved.')
sonus_param_save_total_records = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveTotalRecords.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveTotalRecords.setDescription('The number of individual parameter records contained in the last binary parameter file saved.')
sonus_param_save_filename = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveFilename.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveFilename.setDescription('Identifies the name of the image to load for the hardware type identified by sonusSwLoadAdmnHwType.')
sonus_param_save_state = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('idle', 1), ('synchronize', 2), ('lock', 3), ('holdoff', 4), ('fopen', 5), ('collect', 6), ('fclose', 7), ('done', 8), ('retry', 9)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveState.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveState.setDescription("The current state of the active Management Server's parameter saving process.")
sonus_param_load_server = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 9), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamLoadServer.setStatus('current')
if mibBuilder.loadTexts:
sonusParamLoadServer.setDescription('The IP Address of the NFS server from which parameters were loaded from.')
sonus_param_load_file_type = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('primary', 1), ('backup', 2), ('temporary', 3), ('none', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamLoadFileType.setStatus('current')
if mibBuilder.loadTexts:
sonusParamLoadFileType.setDescription('The type of binary parameter which was loaded. Under normal circumstances, the primary(1) parameter file will always be loaded. When default parameters are used, no parameter file is loaded, and the value none(4) is used for the file type.')
sonus_param_load_status = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('defaults', 1), ('success', 2), ('paramError', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamLoadStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusParamLoadStatus.setDescription('Indicates the status of the last binary parameter file load. The value defaults(1) indicates that parameters were not loaded and that the node began with default parameters. The value success(2) indicates that a binary parameter file was successfully loaded when the node booted. The value paramError(3) indicates that the node attempted to load a binary parameter file and that there was an error in the processing of the file. The node may be running with a partial parameter file when this error is indicated.')
sonus_param_load_seq_number = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamLoadSeqNumber.setStatus('current')
if mibBuilder.loadTexts:
sonusParamLoadSeqNumber.setDescription('')
sonus_param_load_total_records = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamLoadTotalRecords.setStatus('current')
if mibBuilder.loadTexts:
sonusParamLoadTotalRecords.setDescription('')
sonus_param_load_total_bytes = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamLoadTotalBytes.setStatus('current')
if mibBuilder.loadTexts:
sonusParamLoadTotalBytes.setDescription('')
sonus_param_load_duration = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamLoadDuration.setStatus('current')
if mibBuilder.loadTexts:
sonusParamLoadDuration.setDescription('')
sonus_param_load_serial_num = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamLoadSerialNum.setStatus('current')
if mibBuilder.loadTexts:
sonusParamLoadSerialNum.setDescription('Identifies the serial number of the node which created the parameter file loaded by this node.')
sonus_param_save_primary_srvr_state = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('failed', 2), ('failing', 3), ('behind', 4), ('current', 5), ('ahead', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSavePrimarySrvrState.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSavePrimarySrvrState.setDescription('The current state of parameter saving to this NFS server.')
sonus_param_save_primary_srvr_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=named_values(('success', 1), ('create', 2), ('fopen', 3), ('header', 4), ('timer', 5), ('nfs', 6), ('flush', 7), ('write', 8), ('close', 9), ('move', 10), ('memory', 11), ('none', 12)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSavePrimarySrvrReason.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSavePrimarySrvrReason.setDescription('The failure code associated with the last parameter save pass to this NFS server.')
sonus_param_save_secondary_srvr_state = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('unknown', 1), ('failed', 2), ('failing', 3), ('behind', 4), ('current', 5), ('ahead', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveSecondarySrvrState.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveSecondarySrvrState.setDescription('The current state of parameter saving to this NFS server.')
sonus_param_save_secondary_srvr_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))).clone(namedValues=named_values(('success', 1), ('create', 2), ('fopen', 3), ('header', 4), ('timer', 5), ('nfs', 6), ('flush', 7), ('write', 8), ('close', 9), ('move', 10), ('memory', 11), ('none', 12)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamSaveSecondarySrvrReason.setStatus('current')
if mibBuilder.loadTexts:
sonusParamSaveSecondarySrvrReason.setDescription('The failure code associated with the last parameter save pass to this NFS server.')
sonus_param_last_save_time = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 1, 21), date_and_time()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusParamLastSaveTime.setStatus('current')
if mibBuilder.loadTexts:
sonusParamLastSaveTime.setDescription('Octet string that identifies the GMT timestamp of last successful PIF write. field octects contents range ----- ------- -------- ----- 1 1-2 year 0..65536 2 3 month 1..12 3 4 day 1..31 4 5 hour 0..23 5 6 minutes 0..59 6 7 seconds 0..59 7 8 deci-sec 0..9 * Notes: - the value of year is in network-byte order ')
sonus_param_admin_object = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 2))
sonus_param_admn_max_incr_pifs = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 5, 2, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 10))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusParamAdmnMaxIncrPifs.setStatus('current')
if mibBuilder.loadTexts:
sonusParamAdmnMaxIncrPifs.setDescription('The maximum of Incremental PIF files saved per NFS server')
sonus_nfs = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6))
sonus_nfs_admn_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1))
if mibBuilder.loadTexts:
sonusNfsAdmnTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsAdmnTable.setDescription('This table specifies the configurable NFS options for each MNS in each shelf.')
sonus_nfs_admn_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusNfsAdmnShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusNfsAdmnSlotIndex'))
if mibBuilder.loadTexts:
sonusNfsAdmnEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsAdmnEntry.setDescription('')
sonus_nfs_admn_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsAdmnShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsAdmnShelfIndex.setDescription('Identifies the target shelf. This object returns the value of sonusNodeShelfStatIndex which was used to index into this table.')
sonus_nfs_admn_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsAdmnSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsAdmnSlotIndex.setDescription('Identifies the target MNS module slot within the shelf.')
sonus_nfs_admn_mount_server = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noop', 1), ('primary', 2), ('secondary', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNfsAdmnMountServer.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsAdmnMountServer.setDescription('Mounts the Primary or Secondary NFS server using mount parameters obtained from the NVS Boot parameters sonusBparamNfsPrimary or sonusBparamNfsSecondary, and sonusBparamNfsMountPri or sonusBparamNfsMountSec. Continuous retries will occur until the mount succeeds. This object is always read as noop(1).')
sonus_nfs_admn_unmount_server = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noop', 1), ('standby', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNfsAdmnUnmountServer.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsAdmnUnmountServer.setDescription('Unmounts the standby NFS server. Note: unmounting this server will disrupt any file I/O currently taking place on it. Continuous retries will occur until the unmount succeeds. This object is always read as noop(1).')
sonus_nfs_admn_toggle_active_server = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('noop', 1), ('toggle', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNfsAdmnToggleActiveServer.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsAdmnToggleActiveServer.setDescription('Toggles the Active NFS server between the Primary and Secondary, provided both servers are currently mounted. This object is always read as noop(1).')
sonus_nfs_admn_set_writable = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('noop', 1), ('primary', 2), ('secondary', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
sonusNfsAdmnSetWritable.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsAdmnSetWritable.setDescription('Clears the perception of a read-only condition on the Primary or Secondary NFS server, so that server will be considered viable as the Active server. This object is always read as noop(1).')
sonus_nfs_stat_table = mib_table((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2))
if mibBuilder.loadTexts:
sonusNfsStatTable.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatTable.setDescription('This table specifies NFS status objects for each MNS in each shelf.')
sonus_nfs_stat_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1)).setIndexNames((0, 'SONUS-NODE-MIB', 'sonusNfsStatShelfIndex'), (0, 'SONUS-NODE-MIB', 'sonusNfsStatSlotIndex'))
if mibBuilder.loadTexts:
sonusNfsStatEntry.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatEntry.setDescription('')
sonus_nfs_stat_shelf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 6))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatShelfIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatShelfIndex.setDescription('Identifies the target shelf. This object returns the value of sonusNodeShelfStatIndex which was used to index into this table.')
sonus_nfs_stat_slot_index = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 2))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatSlotIndex.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatSlotIndex.setDescription('Identifies the target MNS module slot within the shelf.')
sonus_nfs_stat_primary_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('mounted', 1), ('mounting', 2), ('unmounted', 3), ('unmounting', 4), ('readOnly', 5), ('testing', 6), ('failed', 7), ('invalid', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatPrimaryStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatPrimaryStatus.setDescription('Indicates the mount status of the Primary NFS server: mounted and functioning properly, attemping to mount, indefinitely unmounted, attempting to unmount, mounted but read-only, testing connectivity, server failure, or invalid NFS parameters.')
sonus_nfs_stat_secondary_status = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('mounted', 1), ('mounting', 2), ('unmounted', 3), ('unmounting', 4), ('readOnly', 5), ('testing', 6), ('failed', 7), ('invalid', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatSecondaryStatus.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatSecondaryStatus.setDescription('Indicates the mount status of the Secondary NFS server: mounted and functioning properly, attemping to mount, indefinitely unmounted, attempting to unmount, mounted but read-only, testing connectivity, server failure, or invalid NFS parameters.')
sonus_nfs_stat_active_server = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('primary', 2), ('secondary', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatActiveServer.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatActiveServer.setDescription('Indicates the current Active NFS server. This may change due to NFS failures or NFS administrative operations.')
sonus_nfs_stat_standby_server = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('none', 1), ('primary', 2), ('secondary', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatStandbyServer.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatStandbyServer.setDescription('Indicates the current Standby NFS server. This may change due to NFS failures or NFS administrative operations.')
sonus_nfs_stat_primary_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 11), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatPrimaryIP.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatPrimaryIP.setDescription('The IP Address of the currently mounted Primary NFS server. This may differ from the NVS settings if the user modified sonusBparamNfsPrimary without unmounting and remounting the Primary server.')
sonus_nfs_stat_secondary_ip = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 12), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatSecondaryIP.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatSecondaryIP.setDescription('The IP Address of the currently mounted Secondary NFS server. This may differ from the NVS settings if the user modified sonusBparamNfsSecondary without unmounting and remounting the Secondary server.')
sonus_nfs_stat_primary_mount = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(2, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatPrimaryMount.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatPrimaryMount.setDescription('The mount point currently in use on the Primary NFS server. This may differ from the NVS settings if the user modified sonusBparamNfsMountPri without unmounting and remounting the Primary server.')
sonus_nfs_stat_secondary_mount = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 14), display_string().subtype(subtypeSpec=value_size_constraint(2, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatSecondaryMount.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatSecondaryMount.setDescription('The mount point currently in use on the Secondary NFS server. This may differ from the NVS settings if the user modified sonusBparamNfsMountSec without unmounting and remounting the Secondary server.')
sonus_nfs_stat_primary_last_error = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('none', 1), ('badVolumeStructure', 2), ('tooManyFiles', 3), ('volumeFull', 4), ('serverHardError', 5), ('quotaExceeded', 6), ('staleNfsHandle', 7), ('nfsTimeout', 8), ('rpcCanNotSend', 9), ('noAccess', 10), ('other', 11)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatPrimaryLastError.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatPrimaryLastError.setDescription('Last consequential error received from the Primary NFS server. This object is reset to none(1) if the server is remounted.')
sonus_nfs_stat_secondary_last_error = mib_table_column((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 1, 6, 2, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('none', 1), ('badVolumeStructure', 2), ('tooManyFiles', 3), ('volumeFull', 4), ('serverHardError', 5), ('quotaExceeded', 6), ('staleNfsHandle', 7), ('nfsTimeout', 8), ('rpcCanNotSend', 9), ('noAccess', 10), ('other', 11)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsStatSecondaryLastError.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsStatSecondaryLastError.setDescription('Last consequential error received from the Secondary NFS server. This object is reset to none(1) if the server is remounted.')
sonus_node_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2))
sonus_node_mib_notifications_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0))
sonus_node_mib_notifications_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1))
sonus_nfs_server = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('primary', 1), ('secondary', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsServer.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsServer.setDescription('The NFS server referred to by the trap.')
sonus_nfs_role = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('active', 1), ('standby', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsRole.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsRole.setDescription('Role assumed by the NFS server referred to by the trap.')
sonus_nfs_server_ip = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsServerIp.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsServerIp.setDescription('The IP address of the NFS server referred to by the trap.')
sonus_nfs_server_mount = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(2, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsServerMount.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsServerMount.setDescription('The mount point used on the NFS server referred to by the trap.')
sonus_nfs_reason = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('adminOperation', 1), ('serverFailure', 2), ('serverNotWritable', 3), ('serverRecovery', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsReason.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsReason.setDescription('The reason for the generation of the trap - administrative operation (mount, unmount, or toggle), server failure, server not writable, or server recovery.')
sonus_nfs_error_code = mib_scalar((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('none', 1), ('badVolumeStructure', 2), ('tooManyFiles', 3), ('volumeFull', 4), ('serverHardError', 5), ('quotaExceeded', 6), ('staleNfsHandle', 7), ('nfsTimeout', 8), ('rpcCanNotSend', 9), ('noAccess', 10), ('other', 11)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
sonusNfsErrorCode.setStatus('current')
if mibBuilder.loadTexts:
sonusNfsErrorCode.setDescription('The NFS error that occurred.')
sonus_node_shelf_power_a48_vdc_normal_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 1)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfPowerA48VdcNormalNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfPowerA48VdcNormalNotification.setDescription('A sonusShelfPowerA48VdcNormal trap indicates that 48V DC source A is operating normally for the specified shelf.')
sonus_node_shelf_power_b48_vdc_normal_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 2)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfPowerB48VdcNormalNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfPowerB48VdcNormalNotification.setDescription('A sonusShelfPowerB48VdcNormal trap indicates that 48V DC source B is operating normally for the specified shelf.')
sonus_node_shelf_power_a48_vdc_failure_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 3)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfPowerA48VdcFailureNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfPowerA48VdcFailureNotification.setDescription('A sonusShelfPowerA48VdcFailure trap indicates that 48V DC source A has failed for the specified shelf.')
sonus_node_shelf_power_b48_vdc_failure_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 4)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfPowerB48VdcFailureNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfPowerB48VdcFailureNotification.setDescription('A sonusShelfPowerB48VdcFailure trap indicates that 48V DC source A has failed for the specified shelf.')
sonus_node_shelf_fan_tray_failure_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 5)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfFanTrayFailureNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfFanTrayFailureNotification.setDescription('A sonusNodeShelfFanTrayFailure trap indicates that the fan controller on the specified shelf is indicating a problem. The Event Log should be examined for more detail. The fan tray should be replaced immediately.')
sonus_node_shelf_fan_tray_operational_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 6)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfFanTrayOperationalNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfFanTrayOperationalNotification.setDescription('A sonusNodeShelfFanTrayOperational trap indicates that the fan controller is fully operational on the specified shelf.')
sonus_node_shelf_fan_tray_removed_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 7)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfFanTrayRemovedNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfFanTrayRemovedNotification.setDescription('A sonusNodeShelfFanTrayRemoved trap indicates that the fan tray has been removed from the specified shelf. The fan tray should be replaced as soon as possible to avoid damage to the equipment as a result of overheating.')
sonus_node_shelf_fan_tray_present_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 8)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfFanTrayPresentNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfFanTrayPresentNotification.setDescription('A sonusNodeShelfFanTrayPresent trap indicates that a fan tray is present for the specified shelf.')
sonus_node_shelf_intake_temp_warning_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 9)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfIntakeTempWarningNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfIntakeTempWarningNotification.setDescription('A sonusNodeShelfIntakeTempWarning trap indicates that the intake temperature of the specified shelf has exceeded 45C degrees.')
sonus_node_server_temp_warning_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 10)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerTempWarningNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerTempWarningNotification.setDescription('A sonusNodeServerTempWarning trap indicates that the operating temperature of the specified shelf and slot has exceeded 60C degrees.')
sonus_node_server_temp_failure_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 11)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerTempFailureNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerTempFailureNotification.setDescription('A sonusNodeServerTempFailure trap indicates that the operating temperature of the specified shelf and slot has exceeded 70C degrees. A server module operating for any length of time at this temperature is in danger of being physically damaged. The specified module should be disabled and/or removed from the shelf.')
sonus_node_server_temp_normal_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 12)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerTempNormalNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerTempNormalNotification.setDescription('A sonusNodeServerTempNormal trap indicates that the operating temperature of the specified shelf and slot has is below 60C degrees.')
sonus_node_server_inserted_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 13)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerInsertedNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerInsertedNotification.setDescription('A sonusNodeServerInserted trap indicates that a server module has been inserted in the specified shelf and slot.')
sonus_node_server_removed_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 14)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerRemovedNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerRemovedNotification.setDescription('A sonusNodeServerRemoved trap indicates that a server module has been removed from the specified shelf and slot.')
sonus_node_server_reset_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 15)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerResetNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerResetNotification.setDescription('A sonusNodeServerReset trap indicates that the server module in the specified shelf and slot has been reset.')
sonus_node_server_operational_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 16)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerOperationalNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerOperationalNotification.setDescription('A sonusNodeServerOperational trap indicates that the booting and initialization has completed successfully for the server module in the specified shelf and slot.')
sonus_node_server_power_failure_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 17)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerPowerFailureNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerPowerFailureNotification.setDescription('A sonusNodeServerPowerFailure trap indicates that a power failure has been detected for the server module in the specified shelf and slot.')
sonus_node_server_software_failure_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 18)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerSoftwareFailureNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerSoftwareFailureNotification.setDescription('A sonusNodeServerSoftwareFailure trap indicates that a software failure has occurred or the server module in the specified shelf and slot. The EventLog should be viewed for possible additional information.')
sonus_node_server_hardware_failure_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 19)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerHardwareFailureNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerHardwareFailureNotification.setDescription('A sonusNodeServerHardwareFailure trap indicates that a hardware failure has occurred or the server module in the specified shelf and slot. The EventLog should be viewed for possible additional information.')
sonus_node_adapter_inserted_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 20)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeAdapterInsertedNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapterInsertedNotification.setDescription('A sonusNodeAdapterInserted trap indicates that an adapter module has been inserted in the specified shelf and slot.')
sonus_node_adapter_removed_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 21)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeAdapterRemovedNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapterRemovedNotification.setDescription('A sonusNodeAdpaterRemoved trap indicates that an adapter module has been removed from the specified shelf and slot.')
sonus_node_mta_inserted_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 22)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeMtaInsertedNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeMtaInsertedNotification.setDescription('A sonusNodeMtaInserted trap indicates that a Management Timing Adapter has been inserted in the specified shelf and slot.')
sonus_node_mta_removed_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 23)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeMtaRemovedNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeMtaRemovedNotification.setDescription('A sonusNodeMtaRemoved trap indicates that a Management Timing Adapter has been removed from the specified shelf and slot.')
sonus_node_ethernet_active_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 24)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusPortIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeEthernetActiveNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeEthernetActiveNotification.setDescription('A sonusNodeEthernetActive trap indicates that an Ethernet link is active for the specified shelf, slot and port.')
sonus_node_ethernet_inactive_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 25)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusPortIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeEthernetInactiveNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeEthernetInactiveNotification.setDescription('A sonusNodeEthernetInactive trap indicates that an Ethernet link is inactive for the specified shelf, slot and port.')
sonus_node_ethernet_degraded_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 26)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusPortIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeEthernetDegradedNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeEthernetDegradedNotification.setDescription('A sonusNodeEthernetDegraded trap indicates that an Ethernet link is detecting network errors for the specified shelf, slot and port. The EventLog should be viewed for possible additional information.')
sonus_node_boot_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 27)).setObjects(('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeBootNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeBootNotification.setDescription("The Management Node Server module, in the node's master shelf, has begun the Node Boot process.")
sonus_node_slave_shelf_boot_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 28)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeSlaveShelfBootNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlaveShelfBootNotification.setDescription("The Management Node Server module, in a node's slave shelf, has begun the Node Boot process.")
sonus_node_nfs_server_switchover_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 29)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-NODE-MIB', 'sonusNfsServer'), ('SONUS-NODE-MIB', 'sonusNfsServerIp'), ('SONUS-NODE-MIB', 'sonusNfsServerMount'), ('SONUS-NODE-MIB', 'sonusNfsReason'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeNfsServerSwitchoverNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeNfsServerSwitchoverNotification.setDescription('Indicates that the Active NFS server has switched over to the Standby for the specified reason on the MNS in the given shelf and slot. The NFS server specified is the new Active.')
sonus_node_nfs_server_out_of_service_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 30)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-NODE-MIB', 'sonusNfsServer'), ('SONUS-NODE-MIB', 'sonusNfsServerIp'), ('SONUS-NODE-MIB', 'sonusNfsServerMount'), ('SONUS-NODE-MIB', 'sonusNfsReason'), ('SONUS-NODE-MIB', 'sonusNfsErrorCode'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeNfsServerOutOfServiceNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeNfsServerOutOfServiceNotification.setDescription('Indicates that the NFS server specified went out-of-service for the reason provided on the MNS in the given shelf and slot. If it was the result of a server failure, the error that caused the failure is also specified.')
sonus_node_nfs_server_in_service_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 31)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-NODE-MIB', 'sonusNfsServer'), ('SONUS-NODE-MIB', 'sonusNfsServerIp'), ('SONUS-NODE-MIB', 'sonusNfsServerMount'), ('SONUS-NODE-MIB', 'sonusNfsReason'), ('SONUS-NODE-MIB', 'sonusNfsRole'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeNfsServerInServiceNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeNfsServerInServiceNotification.setDescription('Indicates that the NFS server specified came in-service for the reason provided on the MNS in the given shelf and slot. The Active/Standby role assumed by the server is also provided.')
sonus_node_nfs_server_not_writable_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 32)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-NODE-MIB', 'sonusNfsServer'), ('SONUS-NODE-MIB', 'sonusNfsServerIp'), ('SONUS-NODE-MIB', 'sonusNfsServerMount'), ('SONUS-NODE-MIB', 'sonusNfsErrorCode'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeNfsServerNotWritableNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeNfsServerNotWritableNotification.setDescription('Indicates that the NFS server specified is no longer writable by the MNS in the given shelf and slot. The error code received is provided.')
sonus_node_server_disabled_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 33)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerDisabledNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerDisabledNotification.setDescription('The server modules administrative state has been set to disabled.')
sonus_node_server_enabled_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 34)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerEnabledNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerEnabledNotification.setDescription('The server modules administrative state has been set to enabled.')
sonus_node_server_deleted_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 35)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeServerDeletedNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeServerDeletedNotification.setDescription("The server module has been deleted from the node's configuration. All configuration data associated with the server module has been deleted.")
sonus_param_backup_load_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 36)).setObjects(('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusParamBackupLoadNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusParamBackupLoadNotification.setDescription('The backup parameter file was loaded. This indicates that the primary parameter file was lost or corrupted. The backup parameter file may contain data which is older than what the primary parameter file contains.')
sonus_param_corruption_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 37)).setObjects(('SONUS-NODE-MIB', 'sonusParamLoadFileType'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusParamCorruptionNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusParamCorruptionNotification.setDescription('The binary parameter inspected was corrupted. The indicated file was skipped due to corruption. This trap is only transmitted if a valid backup parameter file is located and successfully loaded.')
sonus_node_adapter_missing_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 38)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeAdapterMissingNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapterMissingNotification.setDescription('A sonusNodeAdpaterMissing trap indicates that an adapter module has not been detected in a specific shelf and slot.')
sonus_node_adapter_failure_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 39)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeAdapterFailureNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeAdapterFailureNotification.setDescription('A sonusNodeAdpaterFailure trap indicates that an adapter module has been detected but is not operational.')
sonus_node_slot_reset_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 40)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeSlotResetNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeSlotResetNotification.setDescription('A sonusNodeSlotReset trap indicates that a server module in the designated slot was reset.')
sonus_node_param_write_complete_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 41)).setObjects(('SONUS-NODE-MIB', 'sonusParamSaveFilename'), ('SONUS-NODE-MIB', 'sonusParamSaveSeqNumber'), ('SONUS-NODE-MIB', 'sonusParamLastSaveTime'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeParamWriteCompleteNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeParamWriteCompleteNotification.setDescription('A sonusNodeParamWriteComplete trap indicates that NFS server successfully complete PIF write.')
sonus_node_param_write_error_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 42)).setObjects(('SONUS-NODE-MIB', 'sonusParamSavePrimarySrvrReason'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeParamWriteErrorNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeParamWriteErrorNotification.setDescription('A sonusNodeParamWriteError trap indicates that error occured during PIF write.')
sonus_node_boot_mns_active_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 43)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusSlotIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeBootMnsActiveNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeBootMnsActiveNotification.setDescription('The Management Node Server module in the specified shelf and slot has become active following a Node Boot.')
sonus_node_shelf_intake_temp_normal_notification = notification_type((1, 3, 6, 1, 4, 1, 2879, 2, 1, 1, 2, 0, 44)).setObjects(('SONUS-COMMON-MIB', 'sonusShelfIndex'), ('SONUS-COMMON-MIB', 'sonusEventDescription'), ('SONUS-COMMON-MIB', 'sonusEventClass'), ('SONUS-COMMON-MIB', 'sonusEventLevel'))
if mibBuilder.loadTexts:
sonusNodeShelfIntakeTempNormalNotification.setStatus('current')
if mibBuilder.loadTexts:
sonusNodeShelfIntakeTempNormalNotification.setDescription('A sonusNodeShelfIntakeTempNormal trap indicates that the intake temperature of the specified shelf is at or below 45C degrees.')
mibBuilder.exportSymbols('SONUS-NODE-MIB', sonusNodeSrvrAdmnTable=sonusNodeSrvrAdmnTable, sonusBparamNfsPrimary=sonusBparamNfsPrimary, sonusNodeAdapStatMfgDate=sonusNodeAdapStatMfgDate, sonusNodeSrvrAdmnState=sonusNodeSrvrAdmnState, sonusNfsAdmnSetWritable=sonusNfsAdmnSetWritable, sonusFlashConfigTable=sonusFlashConfigTable, sonusNodeSrvrStatShelfIndex=sonusNodeSrvrStatShelfIndex, sonusBparamIfSpeedTypeSlot2Port0=sonusBparamIfSpeedTypeSlot2Port0, sonusParamLastSaveTime=sonusParamLastSaveTime, sonusNodeSrvrStatUserName=sonusNodeSrvrStatUserName, sonusNodeAdapStatShelfIndex=sonusNodeAdapStatShelfIndex, sonusUserProfileUserAccess=sonusUserProfileUserAccess, sonusNfsStatActiveServer=sonusNfsStatActiveServer, sonusNodeSlotAdmnSlotIndex=sonusNodeSlotAdmnSlotIndex, sonusNfsStatTable=sonusNfsStatTable, sonusSwLoadAdmnIndex=sonusSwLoadAdmnIndex, sonusNfsStatSecondaryLastError=sonusNfsStatSecondaryLastError, sonusNodeServerResetNotification=sonusNodeServerResetNotification, sonusNodeShelfPowerB48VdcNormalNotification=sonusNodeShelfPowerB48VdcNormalNotification, sonusNvsConfigTable=sonusNvsConfigTable, sonusNodeShelfStatBackplane=sonusNodeShelfStatBackplane, sonusNodeShelfPowerA48VdcNormalNotification=sonusNodeShelfPowerA48VdcNormalNotification, sonusNodeAdapterFailureNotification=sonusNodeAdapterFailureNotification, sonusNodeSlotAdapState=sonusNodeSlotAdapState, sonusSwLoadAdmnImageName=sonusSwLoadAdmnImageName, sonusNodeAdapStatHwType=sonusNodeAdapStatHwType, sonusNfs=sonusNfs, sonusFlashStatLastStatus=sonusFlashStatLastStatus, sonusNodeServerEnabledNotification=sonusNodeServerEnabledNotification, sonusParamAdmnMaxIncrPifs=sonusParamAdmnMaxIncrPifs, sonusNfsStatPrimaryMount=sonusNfsStatPrimaryMount, sonusSwLoadTable=sonusSwLoadTable, sonusNodeShelfAdmn48VdcAState=sonusNodeShelfAdmn48VdcAState, sonusNodeSrvrStatCpuUtilization=sonusNodeSrvrStatCpuUtilization, sonusNodeSrvrStatPartNum=sonusNodeSrvrStatPartNum, sonusSwLoadSpecAdmnRowStatus=sonusSwLoadSpecAdmnRowStatus, sonusNodeSrvrStatTotalMem=sonusNodeSrvrStatTotalMem, sonusBparamSecName=sonusBparamSecName, sonusNodeSrvrAdmnRowStatus=sonusNodeSrvrAdmnRowStatus, sonusSwLoadAdmnRowStatus=sonusSwLoadAdmnRowStatus, sonusBparamIfSpeedTypeSlot2Port2=sonusBparamIfSpeedTypeSlot2Port2, sonusSwLoad=sonusSwLoad, sonusNodeParamWriteErrorNotification=sonusNodeParamWriteErrorNotification, sonusUserListComment=sonusUserListComment, sonusNodeShelfStatFanSpeed=sonusNodeShelfStatFanSpeed, sonusNodeSrvrStatFreeMem=sonusNodeSrvrStatFreeMem, sonusBparamNfsSecondary=sonusBparamNfsSecondary, sonusNfsAdmnEntry=sonusNfsAdmnEntry, sonusNodeShelfStat48VAStatus=sonusNodeShelfStat48VAStatus, sonusNodeAdapterInsertedNotification=sonusNodeAdapterInsertedNotification, sonusParamLoadTotalBytes=sonusParamLoadTotalBytes, sonusNodeSlotAdmnReset=sonusNodeSlotAdmnReset, sonusBparamCoreLevel=sonusBparamCoreLevel, sonusUserListTable=sonusUserListTable, sonusNodeSrvrStatSwVersionCode=sonusNodeSrvrStatSwVersionCode, sonusUserProfileUserPasswdState=sonusUserProfileUserPasswdState, sonusNfsStatShelfIndex=sonusNfsStatShelfIndex, sonusNodeShelfFanTrayPresentNotification=sonusNodeShelfFanTrayPresentNotification, sonusBparamNfsMountSec=sonusBparamNfsMountSec, sonusNodeServerDeletedNotification=sonusNodeServerDeletedNotification, sonusNodeShelfAdmnRestart=sonusNodeShelfAdmnRestart, sonusBparamIpAddrSlot1Port1=sonusBparamIpAddrSlot1Port1, sonusNodeShelfIntakeTempWarningNotification=sonusNodeShelfIntakeTempWarningNotification, sonusBparamNfsPathUpgrade=sonusBparamNfsPathUpgrade, sonusBparamBaudRate=sonusBparamBaudRate, sonusNodeBootMnsActiveNotification=sonusNodeBootMnsActiveNotification, sonusNodeMIB=sonusNodeMIB, sonusBparamIfSpeedTypeSlot2Port1=sonusBparamIfSpeedTypeSlot2Port1, sonusParamSaveTimeStart=sonusParamSaveTimeStart, sonusParamSaveDuration=sonusParamSaveDuration, sonusBparamIpAddrSlot2Port0=sonusBparamIpAddrSlot2Port0, sonusNodeShelfFanTrayRemovedNotification=sonusNodeShelfFanTrayRemovedNotification, sonusParamLoadSeqNumber=sonusParamLoadSeqNumber, sonusUserListNextIndex=sonusUserListNextIndex, sonusSwLoadSpecAdmnShelfIndex=sonusSwLoadSpecAdmnShelfIndex, sonusNodeSrvrStatSerialNum=sonusNodeSrvrStatSerialNum, sonusNodeShelfFanTrayFailureNotification=sonusNodeShelfFanTrayFailureNotification, sonusNodeShelfStatEntry=sonusNodeShelfStatEntry, sonusBparamBootDelay=sonusBparamBootDelay, sonusUserProfileUserStateState=sonusUserProfileUserStateState, sonusBparamIpAddrSlot1Port0=sonusBparamIpAddrSlot1Port0, sonusNfsStatPrimaryStatus=sonusNfsStatPrimaryStatus, sonusNodeServerSoftwareFailureNotification=sonusNodeServerSoftwareFailureNotification, sonusNodeSrvrStatViewName=sonusNodeSrvrStatViewName, sonusNodeSlotAdmnTable=sonusNodeSlotAdmnTable, sonusBparamIpMaskSlot1Port1=sonusBparamIpMaskSlot1Port1, sonusNodeSrvrStatMode=sonusNodeSrvrStatMode, sonusParamBackupLoadNotification=sonusParamBackupLoadNotification, sonusNodeShelfIntakeTempNormalNotification=sonusNodeShelfIntakeTempNormalNotification, sonusParamSaveTimeStop=sonusParamSaveTimeStop, sonusParamSaveSeqNumber=sonusParamSaveSeqNumber, sonusNodeSrvrStatTable=sonusNodeSrvrStatTable, sonusNodeStatMgmtStatus=sonusNodeStatMgmtStatus, sonusNodeSrvrAdmnEntry=sonusNodeSrvrAdmnEntry, sonusNodeMtaRemovedNotification=sonusNodeMtaRemovedNotification, sonusNodeSlotAdapHwType=sonusNodeSlotAdapHwType, sonusNodeSrvrStatMfgDate=sonusNodeSrvrStatMfgDate, sonusNfsStatSecondaryIP=sonusNfsStatSecondaryIP, sonusBparamIpGatewaySlot1Port0=sonusBparamIpGatewaySlot1Port0, sonusNodeMtaInsertedNotification=sonusNodeMtaInsertedNotification, sonusBparamIpGatewaySlot1Port1=sonusBparamIpGatewaySlot1Port1, sonusBparamIfSpeedTypeSlot1Port0=sonusBparamIfSpeedTypeSlot1Port0, sonusNode=sonusNode, sonusNodeSrvrAdmnDumpState=sonusNodeSrvrAdmnDumpState, sonusFlashStatState=sonusFlashStatState, sonusBparamIpAddrSlot1Port2=sonusBparamIpAddrSlot1Port2, sonusNodeSrvrStatSlotIndex=sonusNodeSrvrStatSlotIndex, sonusNfsAdmnUnmountServer=sonusNfsAdmnUnmountServer, sonusNodeShelfAdmnEntry=sonusNodeShelfAdmnEntry, sonusNodeBootNotification=sonusNodeBootNotification, sonusUserListUserName=sonusUserListUserName, sonusNodeSlotTable=sonusNodeSlotTable, sonusParamCorruptionNotification=sonusParamCorruptionNotification, sonusNodeShelfStatType=sonusNodeShelfStatType, sonusSwLoadSpecEntry=sonusSwLoadSpecEntry, sonusNodeStatNextIfIndex=sonusNodeStatNextIfIndex, sonusNodeSlotState=sonusNodeSlotState, sonusUserListAccess=sonusUserListAccess, sonusNodeSrvrAdmnAdapHwType=sonusNodeSrvrAdmnAdapHwType, sonusNodeAdapStatEntry=sonusNodeAdapStatEntry, sonusNvsConfig=sonusNvsConfig, sonusNodeAdmnTelnetLogin=sonusNodeAdmnTelnetLogin, sonusNodeShelfStat48VBStatus=sonusNodeShelfStat48VBStatus, sonusNodeMIBNotifications=sonusNodeMIBNotifications, sonusUserListProfileName=sonusUserListProfileName, sonusNodeNfsServerSwitchoverNotification=sonusNodeNfsServerSwitchoverNotification, sonusNodeSlaveShelfBootNotification=sonusNodeSlaveShelfBootNotification, sonusUserProfileUserAccessState=sonusUserProfileUserAccessState, sonusNodeSrvrAdmnMode=sonusNodeSrvrAdmnMode, sonusBparamIpMaskSlot2Port2=sonusBparamIpMaskSlot2Port2, sonusParamSaveTotalBytes=sonusParamSaveTotalBytes, sonusNodeShelfFanTrayOperationalNotification=sonusNodeShelfFanTrayOperationalNotification, sonusBparamIfSpeedTypeSlot1Port1=sonusBparamIfSpeedTypeSlot1Port1, sonusUserProfileRowStatus=sonusUserProfileRowStatus, sonusNodeShelfPowerB48VdcFailureNotification=sonusNodeShelfPowerB48VdcFailureNotification, sonusParamSaveState=sonusParamSaveState, sonusFlashAdmnSlotIndex=sonusFlashAdmnSlotIndex, sonusBparamIpGatewaySlot2Port0=sonusBparamIpGatewaySlot2Port0, sonusNodeAdapStatSlotIndex=sonusNodeAdapStatSlotIndex, sonusNodeAdapStatPartNumRev=sonusNodeAdapStatPartNumRev, sonusBparamIpGatewaySlot2Port2=sonusBparamIpGatewaySlot2Port2, sonusBparamNfsMountPri=sonusBparamNfsMountPri, sonusNodeSrvrAdmnAction=sonusNodeSrvrAdmnAction, sonusNfsServer=sonusNfsServer, sonusUserProfileEntry=sonusUserProfileEntry, sonusNodeServerRemovedNotification=sonusNodeServerRemovedNotification, sonusFlashStatusTable=sonusFlashStatusTable, sonusSwLoadSpecAdmnSlotIndex=sonusSwLoadSpecAdmnSlotIndex, sonusUserProfileUserCommentState=sonusUserProfileUserCommentState, sonusBparamShelfIndex=sonusBparamShelfIndex, sonusParamLoadTotalRecords=sonusParamLoadTotalRecords, sonusBparamNfsPathLoad=sonusBparamNfsPathLoad, sonusUserListStatusLastConfigChange=sonusUserListStatusLastConfigChange, sonusNodeParamWriteCompleteNotification=sonusNodeParamWriteCompleteNotification, sonusNodeShelfAdmnTable=sonusNodeShelfAdmnTable, sonusNodeStatShelvesPresent=sonusNodeStatShelvesPresent, sonusUserListEntry=sonusUserListEntry, sonusNodeAdapStatPartNum=sonusNodeAdapStatPartNum, sonusNodeServerTempFailureNotification=sonusNodeServerTempFailureNotification, sonusNodeAdapStatSerialNum=sonusNodeAdapStatSerialNum, sonusFlashConfigEntry=sonusFlashConfigEntry, sonusNodeShelfAdmn48VdcBState=sonusNodeShelfAdmn48VdcBState, sonusNfsStatSecondaryMount=sonusNfsStatSecondaryMount, sonusUserProfileUserState=sonusUserProfileUserState, sonusNodeSrvrStatEpldRev=sonusNodeSrvrStatEpldRev, sonusNodeSrvrAdmnSpecialFunction=sonusNodeSrvrAdmnSpecialFunction, sonusNodeSrvrStatFlashVersion=sonusNodeSrvrStatFlashVersion, sonusSwLoadSpecTable=sonusSwLoadSpecTable, sonusParamSaveTotalRecords=sonusParamSaveTotalRecords, sonusNodeSrvrStatFreeSharedMem=sonusNodeSrvrStatFreeSharedMem, sonusNodeNfsServerInServiceNotification=sonusNodeNfsServerInServiceNotification, sonusBparamCliScript=sonusBparamCliScript, sonusNodeSrvrStatTemperature=sonusNodeSrvrStatTemperature, sonusParamSaveSecondarySrvrReason=sonusParamSaveSecondarySrvrReason, sonusFlashStatSlotIndex=sonusFlashStatSlotIndex, sonusNodeNfsServerOutOfServiceNotification=sonusNodeNfsServerOutOfServiceNotification, sonusNodeShelfAdmnIpaddr1=sonusNodeShelfAdmnIpaddr1, sonusBparamParamMode=sonusBparamParamMode, sonusBparamIpMaskSlot1Port0=sonusBparamIpMaskSlot1Port0, sonusNodeShelfStatTable=sonusNodeShelfStatTable, sonusUser=sonusUser, sonusNodeServerPowerFailureNotification=sonusNodeServerPowerFailureNotification, sonusParamSaveSecondarySrvrState=sonusParamSaveSecondarySrvrState, sonusFlashAdmnUpdateButton=sonusFlashAdmnUpdateButton, sonusNodeEthernetDegradedNotification=sonusNodeEthernetDegradedNotification, sonusNodeServerOperationalNotification=sonusNodeServerOperationalNotification, sonusNfsAdmnToggleActiveServer=sonusNfsAdmnToggleActiveServer, sonusParamLoadSerialNum=sonusParamLoadSerialNum, sonusBparamPrimName=sonusBparamPrimName, sonusNodeSrvrStatHostName=sonusNodeSrvrStatHostName, sonusUserListStatusTable=sonusUserListStatusTable, sonusNodeNfsServerNotWritableNotification=sonusNodeNfsServerNotWritableNotification, sonusNfsAdmnMountServer=sonusNfsAdmnMountServer, sonusNodeServerTempNormalNotification=sonusNodeServerTempNormalNotification, sonusParamLoadFileType=sonusParamLoadFileType, sonusNodeSrvrStatSwVersion=sonusNodeSrvrStatSwVersion, sonusUserListStatusIndex=sonusUserListStatusIndex, sonusNfsServerMount=sonusNfsServerMount, sonusFlashStatusEntry=sonusFlashStatusEntry, sonusNodeShelfPowerA48VdcFailureNotification=sonusNodeShelfPowerA48VdcFailureNotification, sonusBparamUId=sonusBparamUId, sonusNfsStatSlotIndex=sonusNfsStatSlotIndex, sonusNodeSrvrAdmnDryupLimit=sonusNodeSrvrAdmnDryupLimit, sonusUserListPasswd=sonusUserListPasswd, sonusNodeSrvrStatMemUtilization=sonusNodeSrvrStatMemUtilization, sonusUserProfileNextIndex=sonusUserProfileNextIndex, sonusNodeSrvrAdmnHwType=sonusNodeSrvrAdmnHwType, sonusUserProfileName=sonusUserProfileName, sonusUserProfile=sonusUserProfile, sonusNodeAdapStatMiddVersion=sonusNodeAdapStatMiddVersion, sonusUserProfileTable=sonusUserProfileTable, sonusNodeAdmnObjects=sonusNodeAdmnObjects, sonusFlashAdmnShelfIndex=sonusFlashAdmnShelfIndex, sonusBparamIpMaskSlot1Port2=sonusBparamIpMaskSlot1Port2, sonusNodeEthernetActiveNotification=sonusNodeEthernetActiveNotification, sonusNodeShelfStatSlots=sonusNodeShelfStatSlots, sonusNodeServerTempWarningNotification=sonusNodeServerTempWarningNotification, sonusNodeShelfAdmnState=sonusNodeShelfAdmnState, sonusNodeMIBObjects=sonusNodeMIBObjects, sonusNodeSrvrAdmnRedundancyRole=sonusNodeSrvrAdmnRedundancyRole, sonusNfsAdmnShelfIndex=sonusNfsAdmnShelfIndex, sonusParam=sonusParam, sonusNfsStatEntry=sonusNfsStatEntry, sonusFlashStatShelfIndex=sonusFlashStatShelfIndex, sonusNfsStatStandbyServer=sonusNfsStatStandbyServer, sonusNodeSlotHwType=sonusNodeSlotHwType, sonusNodeShelfAdmnStatus=sonusNodeShelfAdmnStatus, sonusBparamPasswd=sonusBparamPasswd, sonusNodeSlotHwTypeRev=sonusNodeSlotHwTypeRev, sonusParamSaveFilename=sonusParamSaveFilename, sonusNodeSlotAdmnEntry=sonusNodeSlotAdmnEntry, sonusNodeSrvrAdmnShelfIndex=sonusNodeSrvrAdmnShelfIndex, sonusBparamCoreState=sonusBparamCoreState, sonusNfsServerIp=sonusNfsServerIp, sonusNodeSrvrStatEntry=sonusNodeSrvrStatEntry, sonusBparamUnused=sonusBparamUnused, sonusBparamCoreDumpLimit=sonusBparamCoreDumpLimit, sonusUserList=sonusUserList, sonusNodeServerInsertedNotification=sonusNodeServerInsertedNotification, sonusNfsStatPrimaryLastError=sonusNfsStatPrimaryLastError, sonusNodeMIBNotificationsObjects=sonusNodeMIBNotificationsObjects, sonusSwLoadEntry=sonusSwLoadEntry, sonusNodeShelfStatFan=sonusNodeShelfStatFan, sonusNodeShelfStatSerialNumber=sonusNodeShelfStatSerialNumber, sonusSwLoadSpecAdmnImageName=sonusSwLoadSpecAdmnImageName, sonusBparamIfSpeedTypeSlot1Port2=sonusBparamIfSpeedTypeSlot1Port2, sonusBparamIpAddrSlot2Port1=sonusBparamIpAddrSlot2Port1, sonusNfsRole=sonusNfsRole, sonusNodeSlotResetNotification=sonusNodeSlotResetNotification, sonusParamStatusObjects=sonusParamStatusObjects, sonusUserListRowStatus=sonusUserListRowStatus, sonusNfsStatSecondaryStatus=sonusNfsStatSecondaryStatus, sonusBparamNfsPathSoftware=sonusBparamNfsPathSoftware, sonusUserListIndex=sonusUserListIndex)
mibBuilder.exportSymbols('SONUS-NODE-MIB', sonusBparamIpAddrSlot2Port2=sonusBparamIpAddrSlot2Port2, sonusNvsConfigEntry=sonusNvsConfigEntry, sonusNodeAdapStatHwTypeRev=sonusNodeAdapStatHwTypeRev, sonusNodeShelfAdmnIndex=sonusNodeShelfAdmnIndex, sonusSwLoadAdmnHwType=sonusSwLoadAdmnHwType, sonusNodeSlotPower=sonusNodeSlotPower, sonusParamLoadDuration=sonusParamLoadDuration, sonusNodeMIBNotificationsPrefix=sonusNodeMIBNotificationsPrefix, sonusNodeSrvrStatBuildNum=sonusNodeSrvrStatBuildNum, sonusUserProfileUserPasswd=sonusUserProfileUserPasswd, sonusParamLoadStatus=sonusParamLoadStatus, sonusNfsAdmnTable=sonusNfsAdmnTable, sonusNodeShelfAdmnIpaddr2=sonusNodeShelfAdmnIpaddr2, sonusNodeSlotShelfIndex=sonusNodeSlotShelfIndex, sonusNodeAdapterRemovedNotification=sonusNodeAdapterRemovedNotification, sonusNodeSrvrStatPartNumRev=sonusNodeSrvrStatPartNumRev, sonusBparamMasterState=sonusBparamMasterState, PYSNMP_MODULE_ID=sonusNodeMIB, sonusNodeStatusObjects=sonusNodeStatusObjects, sonusNodeAdapStatTable=sonusNodeAdapStatTable, sonusBparamGrpId=sonusBparamGrpId, sonusNfsReason=sonusNfsReason, sonusNodeSrvrStatHwTypeRev=sonusNodeSrvrStatHwTypeRev, sonusNodeAdmnShelves=sonusNodeAdmnShelves, sonusParamSavePrimarySrvrState=sonusParamSavePrimarySrvrState, sonusNodeShelfAdmnRowStatus=sonusNodeShelfAdmnRowStatus, sonusNodeSlotEntry=sonusNodeSlotEntry, sonusUserProfileUserComment=sonusUserProfileUserComment, sonusNodeSrvrStatTotalSharedMem=sonusNodeSrvrStatTotalSharedMem, sonusBparamIpGatewaySlot1Port2=sonusBparamIpGatewaySlot1Port2, sonusNodeSrvrAdmnSlotIndex=sonusNodeSrvrAdmnSlotIndex, sonusBparamIpGatewaySlot2Port1=sonusBparamIpGatewaySlot2Port1, sonusNodeSrvrStatMiddVersion=sonusNodeSrvrStatMiddVersion, sonusParamLoadServer=sonusParamLoadServer, sonusParamSavePrimarySrvrReason=sonusParamSavePrimarySrvrReason, sonusUserProfileIndex=sonusUserProfileIndex, sonusNfsAdmnSlotIndex=sonusNfsAdmnSlotIndex, sonusNodeSlotAdmnShelfIndex=sonusNodeSlotAdmnShelfIndex, sonusNodeAdapterMissingNotification=sonusNodeAdapterMissingNotification, sonusNodeSlotIndex=sonusNodeSlotIndex, sonusNodeShelfStatIndex=sonusNodeShelfStatIndex, sonusUserListState=sonusUserListState, sonusNodeEthernetInactiveNotification=sonusNodeEthernetInactiveNotification, sonusNodeServerHardwareFailureNotification=sonusNodeServerHardwareFailureNotification, sonusNodeShelfStatBootCount=sonusNodeShelfStatBootCount, sonusNfsErrorCode=sonusNfsErrorCode, sonusBparamIpMaskSlot2Port0=sonusBparamIpMaskSlot2Port0, sonusParamAdminObject=sonusParamAdminObject, sonusNodeServerDisabledNotification=sonusNodeServerDisabledNotification, sonusNodeSrvrStatHwType=sonusNodeSrvrStatHwType, sonusNodeShelfStatTemperature=sonusNodeShelfStatTemperature, sonusUserListStatusEntry=sonusUserListStatusEntry, sonusBparamIpMaskSlot2Port1=sonusBparamIpMaskSlot2Port1, sonusNfsStatPrimaryIP=sonusNfsStatPrimaryIP) |
# Lesson2: Operators with strings
# source: code/strings_operators.py
a = 'hello'
b = 'class'
c = ''
c = a + b
print(c)
c = a * 5
print(c)
c = 10 * b
print(c) | a = 'hello'
b = 'class'
c = ''
c = a + b
print(c)
c = a * 5
print(c)
c = 10 * b
print(c) |
# CPU: 0.05 s
instructions = input()
nop_count = 0
idx = 0
for char in instructions:
if char.isupper() and idx % 4 != 0:
add = 4 * (idx // 4 + 1) - idx
idx += add
nop_count += add
idx += 1
print(nop_count)
| instructions = input()
nop_count = 0
idx = 0
for char in instructions:
if char.isupper() and idx % 4 != 0:
add = 4 * (idx // 4 + 1) - idx
idx += add
nop_count += add
idx += 1
print(nop_count) |
#
# PySNMP MIB module BayNetworks-AHB-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BayNetworks-AHB-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:25:19 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsUnion")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Counter64, IpAddress, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, NotificationType, Integer32, Counter32, Gauge32, ModuleIdentity, iso, ObjectIdentity, TimeTicks, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "IpAddress", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "NotificationType", "Integer32", "Counter32", "Gauge32", "ModuleIdentity", "iso", "ObjectIdentity", "TimeTicks", "Unsigned32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
wfAtmHalfBridgeGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfAtmHalfBridgeGroup")
class MacAddress(OctetString):
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(6, 6)
fixedLength = 6
wfAhb = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1))
wfAhbDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbDelete.setStatus('mandatory')
wfAhbDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbDisable.setStatus('mandatory')
wfAhbAutoLearnMethod = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("none", 1), ("unsecure", 2), ("secure", 3), ("both", 4))).clone('both')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbAutoLearnMethod.setStatus('mandatory')
wfAhbInitFile = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbInitFile.setStatus('mandatory')
wfAhbAltInitFile = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 200))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbAltInitFile.setStatus('mandatory')
wfAhbDebugLevel = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbDebugLevel.setStatus('mandatory')
wfAhbInboundFiltDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbInboundFiltDisable.setStatus('mandatory')
wfAhbReset = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notreset", 1), ("reset", 2))).clone('notreset')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbReset.setStatus('mandatory')
wfAhbStatNumNets = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 9), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbStatNumNets.setStatus('mandatory')
wfAhbStatNumHosts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 10), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbStatNumHosts.setStatus('mandatory')
wfAhbStatTotOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbStatTotOutPkts.setStatus('mandatory')
wfAhbStatFwdOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbStatFwdOutPkts.setStatus('mandatory')
wfAhbStatDropUnkPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbStatDropUnkPkts.setStatus('mandatory')
wfAhbStatTotInPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbStatTotInPkts.setStatus('mandatory')
wfAhbStatFwdInPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbStatFwdInPkts.setStatus('mandatory')
wfAhbStatNumHostCopies = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbStatNumHostCopies.setStatus('mandatory')
wfAhbPolicyDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbPolicyDisable.setStatus('mandatory')
wfAhbBaseStatus = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('notpres')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbBaseStatus.setStatus('mandatory')
wfAhbCctTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2), )
if mibBuilder.loadTexts: wfAhbCctTable.setStatus('mandatory')
wfAhbCctEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1), ).setIndexNames((0, "BayNetworks-AHB-MIB", "wfAhbCctNum"))
if mibBuilder.loadTexts: wfAhbCctEntry.setStatus('mandatory')
wfAhbCctDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbCctDelete.setStatus('mandatory')
wfAhbCctDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbCctDisable.setStatus('mandatory')
wfAhbCctNum = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbCctNum.setStatus('mandatory')
wfAhbCctDefSubNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 4), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbCctDefSubNetMask.setStatus('mandatory')
wfAhbCctProxyArpDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbCctProxyArpDisable.setStatus('mandatory')
wfAhbCctMaxIdleTime = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(5, 3600))).clone(namedValues=NamedValues(("minimum", 5), ("default", 3600))).clone('default')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbCctMaxIdleTime.setStatus('mandatory')
wfAhbCctStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2))).clone('down')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbCctStatus.setStatus('mandatory')
wfAhbCctTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbCctTxPkts.setStatus('mandatory')
wfAhbCctTxDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbCctTxDrop.setStatus('mandatory')
wfAhbCctRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbCctRxPkts.setStatus('mandatory')
wfAhbCctRxDrop = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbCctRxDrop.setStatus('mandatory')
wfAhbHostTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3), )
if mibBuilder.loadTexts: wfAhbHostTable.setStatus('mandatory')
wfAhbHostEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1), ).setIndexNames((0, "BayNetworks-AHB-MIB", "wfAhbHostSlot"), (0, "BayNetworks-AHB-MIB", "wfAhbHostIpAddress"))
if mibBuilder.loadTexts: wfAhbHostEntry.setStatus('mandatory')
wfAhbHostDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbHostDelete.setStatus('mandatory')
wfAhbHostSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbHostSlot.setStatus('mandatory')
wfAhbHostSeqNum = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 3), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbHostSeqNum.setStatus('mandatory')
wfAhbHostIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 4), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbHostIpAddress.setStatus('mandatory')
wfAhbHostSubNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbHostSubNetMask.setStatus('mandatory')
wfAhbHostCct = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbHostCct.setStatus('mandatory')
wfAhbHostVcid = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 7), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbHostVcid.setStatus('mandatory')
wfAhbHostBridgeHdr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 100))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbHostBridgeHdr.setStatus('mandatory')
wfAhbHostFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbHostFlags.setStatus('mandatory')
wfAhbHostTxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbHostTxPkts.setStatus('mandatory')
wfAhbHostRxPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbHostRxPkts.setStatus('mandatory')
wfAhbHostMaxIdleTime = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbHostMaxIdleTime.setStatus('mandatory')
wfAhbHostCurIdleTime = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbHostCurIdleTime.setStatus('mandatory')
wfAhbPolicyTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4), )
if mibBuilder.loadTexts: wfAhbPolicyTable.setStatus('mandatory')
wfAhbPolicyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1), ).setIndexNames((0, "BayNetworks-AHB-MIB", "wfAhbPolicyIpAddress"), (0, "BayNetworks-AHB-MIB", "wfAhbPolicySubNetMask"))
if mibBuilder.loadTexts: wfAhbPolicyEntry.setStatus('mandatory')
wfAhbPolicyDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbPolicyDelete.setStatus('mandatory')
wfAhbPolicyIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 2), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbPolicyIpAddress.setStatus('mandatory')
wfAhbPolicySubNetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 3), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAhbPolicySubNetMask.setStatus('mandatory')
wfAhbPolicyCct = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbPolicyCct.setStatus('mandatory')
wfAhbPolicyVPI = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbPolicyVPI.setStatus('mandatory')
wfAhbPolicyVCI = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbPolicyVCI.setStatus('mandatory')
wfAhbPolicyMACAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 7), MacAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbPolicyMACAddr.setStatus('mandatory')
wfAhbPolicyFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbPolicyFlags.setStatus('mandatory')
wfAhbPolicyPermission = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("allow", 1), ("disallow", 2), ("static", 3), ("notused", 4))).clone('allow')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAhbPolicyPermission.setStatus('mandatory')
mibBuilder.exportSymbols("BayNetworks-AHB-MIB", wfAhbCctStatus=wfAhbCctStatus, wfAhbHostSubNetMask=wfAhbHostSubNetMask, wfAhbPolicyFlags=wfAhbPolicyFlags, wfAhbReset=wfAhbReset, wfAhbStatNumHostCopies=wfAhbStatNumHostCopies, wfAhbPolicyTable=wfAhbPolicyTable, wfAhbAltInitFile=wfAhbAltInitFile, wfAhbPolicyDelete=wfAhbPolicyDelete, wfAhbHostIpAddress=wfAhbHostIpAddress, wfAhbStatNumHosts=wfAhbStatNumHosts, wfAhbDisable=wfAhbDisable, wfAhbPolicyCct=wfAhbPolicyCct, wfAhbCctTxPkts=wfAhbCctTxPkts, wfAhbPolicyVCI=wfAhbPolicyVCI, wfAhbHostEntry=wfAhbHostEntry, wfAhbStatFwdOutPkts=wfAhbStatFwdOutPkts, wfAhbCctNum=wfAhbCctNum, wfAhbHostVcid=wfAhbHostVcid, wfAhbCctTxDrop=wfAhbCctTxDrop, wfAhb=wfAhb, wfAhbCctDisable=wfAhbCctDisable, wfAhbPolicyVPI=wfAhbPolicyVPI, wfAhbStatTotInPkts=wfAhbStatTotInPkts, wfAhbPolicyIpAddress=wfAhbPolicyIpAddress, wfAhbPolicyDisable=wfAhbPolicyDisable, wfAhbHostTable=wfAhbHostTable, MacAddress=MacAddress, wfAhbCctMaxIdleTime=wfAhbCctMaxIdleTime, wfAhbCctRxDrop=wfAhbCctRxDrop, wfAhbDebugLevel=wfAhbDebugLevel, wfAhbStatDropUnkPkts=wfAhbStatDropUnkPkts, wfAhbBaseStatus=wfAhbBaseStatus, wfAhbCctDefSubNetMask=wfAhbCctDefSubNetMask, wfAhbPolicyPermission=wfAhbPolicyPermission, wfAhbStatTotOutPkts=wfAhbStatTotOutPkts, wfAhbHostCct=wfAhbHostCct, wfAhbCctDelete=wfAhbCctDelete, wfAhbHostRxPkts=wfAhbHostRxPkts, wfAhbHostMaxIdleTime=wfAhbHostMaxIdleTime, wfAhbCctTable=wfAhbCctTable, wfAhbPolicySubNetMask=wfAhbPolicySubNetMask, wfAhbHostTxPkts=wfAhbHostTxPkts, wfAhbAutoLearnMethod=wfAhbAutoLearnMethod, wfAhbHostSeqNum=wfAhbHostSeqNum, wfAhbInitFile=wfAhbInitFile, wfAhbHostBridgeHdr=wfAhbHostBridgeHdr, wfAhbHostSlot=wfAhbHostSlot, wfAhbDelete=wfAhbDelete, wfAhbCctEntry=wfAhbCctEntry, wfAhbPolicyEntry=wfAhbPolicyEntry, wfAhbInboundFiltDisable=wfAhbInboundFiltDisable, wfAhbHostDelete=wfAhbHostDelete, wfAhbStatNumNets=wfAhbStatNumNets, wfAhbStatFwdInPkts=wfAhbStatFwdInPkts, wfAhbPolicyMACAddr=wfAhbPolicyMACAddr, wfAhbHostCurIdleTime=wfAhbHostCurIdleTime, wfAhbHostFlags=wfAhbHostFlags, wfAhbCctRxPkts=wfAhbCctRxPkts, wfAhbCctProxyArpDisable=wfAhbCctProxyArpDisable)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsUnion')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(counter64, ip_address, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, notification_type, integer32, counter32, gauge32, module_identity, iso, object_identity, time_ticks, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'IpAddress', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'NotificationType', 'Integer32', 'Counter32', 'Gauge32', 'ModuleIdentity', 'iso', 'ObjectIdentity', 'TimeTicks', 'Unsigned32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
(wf_atm_half_bridge_group,) = mibBuilder.importSymbols('Wellfleet-COMMON-MIB', 'wfAtmHalfBridgeGroup')
class Macaddress(OctetString):
subtype_spec = OctetString.subtypeSpec + value_size_constraint(6, 6)
fixed_length = 6
wf_ahb = mib_identifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1))
wf_ahb_delete = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbDelete.setStatus('mandatory')
wf_ahb_disable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbDisable.setStatus('mandatory')
wf_ahb_auto_learn_method = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('none', 1), ('unsecure', 2), ('secure', 3), ('both', 4))).clone('both')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbAutoLearnMethod.setStatus('mandatory')
wf_ahb_init_file = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 200))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbInitFile.setStatus('mandatory')
wf_ahb_alt_init_file = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 200))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbAltInitFile.setStatus('mandatory')
wf_ahb_debug_level = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbDebugLevel.setStatus('mandatory')
wf_ahb_inbound_filt_disable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbInboundFiltDisable.setStatus('mandatory')
wf_ahb_reset = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notreset', 1), ('reset', 2))).clone('notreset')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbReset.setStatus('mandatory')
wf_ahb_stat_num_nets = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 9), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbStatNumNets.setStatus('mandatory')
wf_ahb_stat_num_hosts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 10), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbStatNumHosts.setStatus('mandatory')
wf_ahb_stat_tot_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbStatTotOutPkts.setStatus('mandatory')
wf_ahb_stat_fwd_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbStatFwdOutPkts.setStatus('mandatory')
wf_ahb_stat_drop_unk_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbStatDropUnkPkts.setStatus('mandatory')
wf_ahb_stat_tot_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbStatTotInPkts.setStatus('mandatory')
wf_ahb_stat_fwd_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbStatFwdInPkts.setStatus('mandatory')
wf_ahb_stat_num_host_copies = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbStatNumHostCopies.setStatus('mandatory')
wf_ahb_policy_disable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbPolicyDisable.setStatus('mandatory')
wf_ahb_base_status = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3), ('notpres', 4))).clone('notpres')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbBaseStatus.setStatus('mandatory')
wf_ahb_cct_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2))
if mibBuilder.loadTexts:
wfAhbCctTable.setStatus('mandatory')
wf_ahb_cct_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1)).setIndexNames((0, 'BayNetworks-AHB-MIB', 'wfAhbCctNum'))
if mibBuilder.loadTexts:
wfAhbCctEntry.setStatus('mandatory')
wf_ahb_cct_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbCctDelete.setStatus('mandatory')
wf_ahb_cct_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbCctDisable.setStatus('mandatory')
wf_ahb_cct_num = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbCctNum.setStatus('mandatory')
wf_ahb_cct_def_sub_net_mask = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 4), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbCctDefSubNetMask.setStatus('mandatory')
wf_ahb_cct_proxy_arp_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbCctProxyArpDisable.setStatus('mandatory')
wf_ahb_cct_max_idle_time = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(5, 3600))).clone(namedValues=named_values(('minimum', 5), ('default', 3600))).clone('default')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbCctMaxIdleTime.setStatus('mandatory')
wf_ahb_cct_status = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2))).clone('down')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbCctStatus.setStatus('mandatory')
wf_ahb_cct_tx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbCctTxPkts.setStatus('mandatory')
wf_ahb_cct_tx_drop = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbCctTxDrop.setStatus('mandatory')
wf_ahb_cct_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbCctRxPkts.setStatus('mandatory')
wf_ahb_cct_rx_drop = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 2, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbCctRxDrop.setStatus('mandatory')
wf_ahb_host_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3))
if mibBuilder.loadTexts:
wfAhbHostTable.setStatus('mandatory')
wf_ahb_host_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1)).setIndexNames((0, 'BayNetworks-AHB-MIB', 'wfAhbHostSlot'), (0, 'BayNetworks-AHB-MIB', 'wfAhbHostIpAddress'))
if mibBuilder.loadTexts:
wfAhbHostEntry.setStatus('mandatory')
wf_ahb_host_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbHostDelete.setStatus('mandatory')
wf_ahb_host_slot = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbHostSlot.setStatus('mandatory')
wf_ahb_host_seq_num = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 3), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbHostSeqNum.setStatus('mandatory')
wf_ahb_host_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 4), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbHostIpAddress.setStatus('mandatory')
wf_ahb_host_sub_net_mask = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbHostSubNetMask.setStatus('mandatory')
wf_ahb_host_cct = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbHostCct.setStatus('mandatory')
wf_ahb_host_vcid = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 7), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbHostVcid.setStatus('mandatory')
wf_ahb_host_bridge_hdr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 100))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbHostBridgeHdr.setStatus('mandatory')
wf_ahb_host_flags = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbHostFlags.setStatus('mandatory')
wf_ahb_host_tx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbHostTxPkts.setStatus('mandatory')
wf_ahb_host_rx_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbHostRxPkts.setStatus('mandatory')
wf_ahb_host_max_idle_time = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbHostMaxIdleTime.setStatus('mandatory')
wf_ahb_host_cur_idle_time = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 3, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbHostCurIdleTime.setStatus('mandatory')
wf_ahb_policy_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4))
if mibBuilder.loadTexts:
wfAhbPolicyTable.setStatus('mandatory')
wf_ahb_policy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1)).setIndexNames((0, 'BayNetworks-AHB-MIB', 'wfAhbPolicyIpAddress'), (0, 'BayNetworks-AHB-MIB', 'wfAhbPolicySubNetMask'))
if mibBuilder.loadTexts:
wfAhbPolicyEntry.setStatus('mandatory')
wf_ahb_policy_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbPolicyDelete.setStatus('mandatory')
wf_ahb_policy_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 2), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbPolicyIpAddress.setStatus('mandatory')
wf_ahb_policy_sub_net_mask = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 3), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAhbPolicySubNetMask.setStatus('mandatory')
wf_ahb_policy_cct = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbPolicyCct.setStatus('mandatory')
wf_ahb_policy_vpi = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbPolicyVPI.setStatus('mandatory')
wf_ahb_policy_vci = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbPolicyVCI.setStatus('mandatory')
wf_ahb_policy_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 7), mac_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbPolicyMACAddr.setStatus('mandatory')
wf_ahb_policy_flags = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbPolicyFlags.setStatus('mandatory')
wf_ahb_policy_permission = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 9, 13, 4, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('allow', 1), ('disallow', 2), ('static', 3), ('notused', 4))).clone('allow')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAhbPolicyPermission.setStatus('mandatory')
mibBuilder.exportSymbols('BayNetworks-AHB-MIB', wfAhbCctStatus=wfAhbCctStatus, wfAhbHostSubNetMask=wfAhbHostSubNetMask, wfAhbPolicyFlags=wfAhbPolicyFlags, wfAhbReset=wfAhbReset, wfAhbStatNumHostCopies=wfAhbStatNumHostCopies, wfAhbPolicyTable=wfAhbPolicyTable, wfAhbAltInitFile=wfAhbAltInitFile, wfAhbPolicyDelete=wfAhbPolicyDelete, wfAhbHostIpAddress=wfAhbHostIpAddress, wfAhbStatNumHosts=wfAhbStatNumHosts, wfAhbDisable=wfAhbDisable, wfAhbPolicyCct=wfAhbPolicyCct, wfAhbCctTxPkts=wfAhbCctTxPkts, wfAhbPolicyVCI=wfAhbPolicyVCI, wfAhbHostEntry=wfAhbHostEntry, wfAhbStatFwdOutPkts=wfAhbStatFwdOutPkts, wfAhbCctNum=wfAhbCctNum, wfAhbHostVcid=wfAhbHostVcid, wfAhbCctTxDrop=wfAhbCctTxDrop, wfAhb=wfAhb, wfAhbCctDisable=wfAhbCctDisable, wfAhbPolicyVPI=wfAhbPolicyVPI, wfAhbStatTotInPkts=wfAhbStatTotInPkts, wfAhbPolicyIpAddress=wfAhbPolicyIpAddress, wfAhbPolicyDisable=wfAhbPolicyDisable, wfAhbHostTable=wfAhbHostTable, MacAddress=MacAddress, wfAhbCctMaxIdleTime=wfAhbCctMaxIdleTime, wfAhbCctRxDrop=wfAhbCctRxDrop, wfAhbDebugLevel=wfAhbDebugLevel, wfAhbStatDropUnkPkts=wfAhbStatDropUnkPkts, wfAhbBaseStatus=wfAhbBaseStatus, wfAhbCctDefSubNetMask=wfAhbCctDefSubNetMask, wfAhbPolicyPermission=wfAhbPolicyPermission, wfAhbStatTotOutPkts=wfAhbStatTotOutPkts, wfAhbHostCct=wfAhbHostCct, wfAhbCctDelete=wfAhbCctDelete, wfAhbHostRxPkts=wfAhbHostRxPkts, wfAhbHostMaxIdleTime=wfAhbHostMaxIdleTime, wfAhbCctTable=wfAhbCctTable, wfAhbPolicySubNetMask=wfAhbPolicySubNetMask, wfAhbHostTxPkts=wfAhbHostTxPkts, wfAhbAutoLearnMethod=wfAhbAutoLearnMethod, wfAhbHostSeqNum=wfAhbHostSeqNum, wfAhbInitFile=wfAhbInitFile, wfAhbHostBridgeHdr=wfAhbHostBridgeHdr, wfAhbHostSlot=wfAhbHostSlot, wfAhbDelete=wfAhbDelete, wfAhbCctEntry=wfAhbCctEntry, wfAhbPolicyEntry=wfAhbPolicyEntry, wfAhbInboundFiltDisable=wfAhbInboundFiltDisable, wfAhbHostDelete=wfAhbHostDelete, wfAhbStatNumNets=wfAhbStatNumNets, wfAhbStatFwdInPkts=wfAhbStatFwdInPkts, wfAhbPolicyMACAddr=wfAhbPolicyMACAddr, wfAhbHostCurIdleTime=wfAhbHostCurIdleTime, wfAhbHostFlags=wfAhbHostFlags, wfAhbCctRxPkts=wfAhbCctRxPkts, wfAhbCctProxyArpDisable=wfAhbCctProxyArpDisable) |
a = [1, 2, 3]
a.append(4)
a
a.extend(5)
a
a.extend([5])
a
a.insert(10, 3)
a
a.insert(3, 10)
a
a = [1, 2, 3]
a
a.append(4)
a
a.append(5)
a
a.extend([6, 7])
a
a.extend(8)
help(a.insert)
a.insert(0, 10)
a
a.insert(2, 12)
a
a.remove(10)
a
a.remove(12)
a
a.append(1)
a
a.remove(1)
a
a.remove(1)
a
a.pop(0)
a
a.pop(1)
a
a = [1, 1, 2, 3]
a.clear(1)
a.clear(2)
help(a.clear)
a.clear()
a
a = [1, 2, 3]
a.index(1)
a.index(2)
a = [1, 1, 2, 3]
a.index(1)
a.index(2)
a.count(1)
a.count(2)
a.count(3)
a.sort()
a
a = [3, 1, 2]
a.sort()
a
a.sort(reverse=True)
a
a.copy()
b = a.copy()
b
a
b = a
b
a
b[0] = 100
b
a
| a = [1, 2, 3]
a.append(4)
a
a.extend(5)
a
a.extend([5])
a
a.insert(10, 3)
a
a.insert(3, 10)
a
a = [1, 2, 3]
a
a.append(4)
a
a.append(5)
a
a.extend([6, 7])
a
a.extend(8)
help(a.insert)
a.insert(0, 10)
a
a.insert(2, 12)
a
a.remove(10)
a
a.remove(12)
a
a.append(1)
a
a.remove(1)
a
a.remove(1)
a
a.pop(0)
a
a.pop(1)
a
a = [1, 1, 2, 3]
a.clear(1)
a.clear(2)
help(a.clear)
a.clear()
a
a = [1, 2, 3]
a.index(1)
a.index(2)
a = [1, 1, 2, 3]
a.index(1)
a.index(2)
a.count(1)
a.count(2)
a.count(3)
a.sort()
a
a = [3, 1, 2]
a.sort()
a
a.sort(reverse=True)
a
a.copy()
b = a.copy()
b
a
b = a
b
a
b[0] = 100
b
a |
# *****************************************************************************
# Copyright 2004-2008 Steve Menard
#
# 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.
#
# *****************************************************************************
class WindowAdapter(object):
def __init__(self, *mth, **kw):
object.__init__(self)
for i, j in kw.items():
setattr(self, i, j)
def windowActivated(self, e):
pass
def windowClosed(self, e):
pass
def windowClosing(self, e):
pass
def windowDeactivated(self, e):
pass
def windowDeiconified(self, e):
pass
def windowIconified(self, e):
pass
def windowOpened(self, e):
pass
| class Windowadapter(object):
def __init__(self, *mth, **kw):
object.__init__(self)
for (i, j) in kw.items():
setattr(self, i, j)
def window_activated(self, e):
pass
def window_closed(self, e):
pass
def window_closing(self, e):
pass
def window_deactivated(self, e):
pass
def window_deiconified(self, e):
pass
def window_iconified(self, e):
pass
def window_opened(self, e):
pass |
def run():
@_core.listen('test')
def _():
print('a test 2')
@_core.on('test')
def _():
print('a test')
_emit('test')
_emit('test')
_emit('test')
| def run():
@_core.listen('test')
def _():
print('a test 2')
@_core.on('test')
def _():
print('a test')
_emit('test')
_emit('test')
_emit('test') |
# Python3 program to generate pythagorean
# triplets smaller than a given limit
# Function to generate pythagorean
# triplets smaller than limit
def pythagoreanTriplets(limits) :
c, m = 0, 2
# Limiting c would limit
# all a, b and c
while c < limits :
# Now loop on n from 1 to m-1
for n in range(1, m) :
a = m * m - n * n
b = 2 * m * n
c = m * m + n * n
# if c is greater than
# limit then break it
if c > limits :
break
print(a, b, c)
m = m + 1
# Driver Code
if __name__ == '__main__' :
limit = 20
pythagoreanTriplets(limit)
# This code is contributed by Shrikant13.
| def pythagorean_triplets(limits):
(c, m) = (0, 2)
while c < limits:
for n in range(1, m):
a = m * m - n * n
b = 2 * m * n
c = m * m + n * n
if c > limits:
break
print(a, b, c)
m = m + 1
if __name__ == '__main__':
limit = 20
pythagorean_triplets(limit) |
# https://www.acmicpc.net/problem/2580
def init():
for row in range(N):
for col in range(N):
if data[row][col] == 0:
continue
row_sets[row].add(data[row][col])
for col in range(N):
for row in range(N):
if data[row][col] == 0:
continue
col_sets[col].add(data[row][col])
for row in range(N):
r = row // 3
for col in range(N):
if data[row][col] == 0:
continue
c = col // 3
mid_sets[r * 3 + c].add(data[row][col])
def dfs(depth):
if depth == 81:
return True
y = depth // N
x = depth % N
if data[y][x] != 0:
if dfs(depth + 1):
return True
return False
for num in range(1, 10):
if can_go(y, x, num):
visited(True, num, y, x)
if dfs(depth + 1):
return True
visited(False, num, y, x)
return False
def can_go(row, col, num):
if num in row_sets[row]:
return False
if num in col_sets[col]:
return False
if num in mid_sets[(row // 3) * 3 + (col // 3)]:
return False
return True
def visited(insert, num, row, col):
if insert:
data[row][col] = num
row_sets[row].add(num)
col_sets[col].add(num)
mid_sets[(row // 3) * 3 + (col // 3)].add(num)
else:
data[row][col] = 0
row_sets[row].remove(num)
col_sets[col].remove(num)
mid_sets[(row // 3) * 3 + (col // 3)].remove(num)
if __name__ == '__main__':
input = __import__('sys').stdin.readline
N = 9
data = [list(map(int,input().split())) for _ in range(N)]
row_sets = [set() for _ in range(N)]
col_sets = [set() for _ in range(N)]
mid_sets = [set() for _ in range(N)]
init()
dfs(0)
for line in data:
print(' '.join(map(str, line)))
| def init():
for row in range(N):
for col in range(N):
if data[row][col] == 0:
continue
row_sets[row].add(data[row][col])
for col in range(N):
for row in range(N):
if data[row][col] == 0:
continue
col_sets[col].add(data[row][col])
for row in range(N):
r = row // 3
for col in range(N):
if data[row][col] == 0:
continue
c = col // 3
mid_sets[r * 3 + c].add(data[row][col])
def dfs(depth):
if depth == 81:
return True
y = depth // N
x = depth % N
if data[y][x] != 0:
if dfs(depth + 1):
return True
return False
for num in range(1, 10):
if can_go(y, x, num):
visited(True, num, y, x)
if dfs(depth + 1):
return True
visited(False, num, y, x)
return False
def can_go(row, col, num):
if num in row_sets[row]:
return False
if num in col_sets[col]:
return False
if num in mid_sets[row // 3 * 3 + col // 3]:
return False
return True
def visited(insert, num, row, col):
if insert:
data[row][col] = num
row_sets[row].add(num)
col_sets[col].add(num)
mid_sets[row // 3 * 3 + col // 3].add(num)
else:
data[row][col] = 0
row_sets[row].remove(num)
col_sets[col].remove(num)
mid_sets[row // 3 * 3 + col // 3].remove(num)
if __name__ == '__main__':
input = __import__('sys').stdin.readline
n = 9
data = [list(map(int, input().split())) for _ in range(N)]
row_sets = [set() for _ in range(N)]
col_sets = [set() for _ in range(N)]
mid_sets = [set() for _ in range(N)]
init()
dfs(0)
for line in data:
print(' '.join(map(str, line))) |
# https://leetcode.com/problems/letter-case-permutation/
# Given a string s, we can transform every letter individually to be lowercase or
# uppercase to create another string.
# Return a list of all possible strings we could create. You can return the output
# in any order.
################################################################################
# dfs
class Solution:
def letterCasePermutation(self, S: str) -> List[str]:
if not S: return []
self.n = len(S)
self.S = S
self.ans = []
self.holder = []
self.dfs(0)
return self.ans
def dfs(self, pos):
if len(self.holder) == self.n:
self.ans.append(''.join(self.holder))
return
if "0" <= self.S[pos] <= "9": # move to next pos
self.holder.append(self.S[pos])
self.dfs(pos + 1)
self.holder.pop()
else:
for char in [self.S[pos].lower(), self.S[pos].upper()]:
self.holder.append(char)
self.dfs(pos + 1)
self.holder.pop()
| class Solution:
def letter_case_permutation(self, S: str) -> List[str]:
if not S:
return []
self.n = len(S)
self.S = S
self.ans = []
self.holder = []
self.dfs(0)
return self.ans
def dfs(self, pos):
if len(self.holder) == self.n:
self.ans.append(''.join(self.holder))
return
if '0' <= self.S[pos] <= '9':
self.holder.append(self.S[pos])
self.dfs(pos + 1)
self.holder.pop()
else:
for char in [self.S[pos].lower(), self.S[pos].upper()]:
self.holder.append(char)
self.dfs(pos + 1)
self.holder.pop() |
def sockMerchant(n, ar):
# Write your code here
dict_count = {i:ar.count(i) for i in ar}
pairs = 0
for v in dict_count.values():
pairs+=v//2 #to get the quotient, % is used for remainder
#print(pairs, dict_count)
return pairs
a = 9
ar= [10, 20, 20, 10, 10, 30, 50, 10, 20]
print(sockMerchant(a,ar))
| def sock_merchant(n, ar):
dict_count = {i: ar.count(i) for i in ar}
pairs = 0
for v in dict_count.values():
pairs += v // 2
return pairs
a = 9
ar = [10, 20, 20, 10, 10, 30, 50, 10, 20]
print(sock_merchant(a, ar)) |
#
# Copyright 2018 Red Hat | Ansible
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# Options for providing an object configuration
class ModuleDocFragment(object):
DOCUMENTATION = '''
options:
resource_definition:
description:
- "Provide a valid YAML definition (either as a string, list, or dict) for an object when creating or updating. NOTE: I(kind), I(api_version), I(name),
and I(namespace) will be overwritten by corresponding values found in the provided I(resource_definition)."
aliases:
- definition
- inline
src:
description:
- "Provide a path to a file containing a valid YAML definition of an object or objects to be created or updated. Mutually
exclusive with I(resource_definition). NOTE: I(kind), I(api_version), I(name), and I(namespace) will be
overwritten by corresponding values found in the configuration read in from the I(src) file."
- Reads from the local file system. To read from the Ansible controller's file system, use the file lookup
plugin or template lookup plugin, combined with the from_yaml filter, and pass the result to
I(resource_definition). See Examples below.
'''
| class Moduledocfragment(object):
documentation = '\noptions:\n resource_definition:\n description:\n - "Provide a valid YAML definition (either as a string, list, or dict) for an object when creating or updating. NOTE: I(kind), I(api_version), I(name),\n and I(namespace) will be overwritten by corresponding values found in the provided I(resource_definition)."\n aliases:\n - definition\n - inline\n src:\n description:\n - "Provide a path to a file containing a valid YAML definition of an object or objects to be created or updated. Mutually\n exclusive with I(resource_definition). NOTE: I(kind), I(api_version), I(name), and I(namespace) will be\n overwritten by corresponding values found in the configuration read in from the I(src) file."\n - Reads from the local file system. To read from the Ansible controller\'s file system, use the file lookup\n plugin or template lookup plugin, combined with the from_yaml filter, and pass the result to\n I(resource_definition). See Examples below.\n' |
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# CISCO-PPPOE-MIB
# Compiled MIB
# Do not modify this file directly
# Run ./noc mib make_cmib instead
# ----------------------------------------------------------------------
# Copyright (C) 2007-2014 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# MIB Name
NAME = "CISCO-PPPOE-MIB"
# Metadata
LAST_UPDATED = "2011-04-25"
COMPILED = "2014-11-21"
# MIB Data: name -> oid
MIB = {
"CISCO-PPPOE-MIB::ciscoPppoeMIB": "1.3.6.1.4.1.9.9.194",
"CISCO-PPPOE-MIB::ciscoPppoeMIBObjects": "1.3.6.1.4.1.9.9.194.1",
"CISCO-PPPOE-MIB::cPppoeSystemSessionInfo": "1.3.6.1.4.1.9.9.194.1.1",
"CISCO-PPPOE-MIB::cPppoeSystemCurrSessions": "1.3.6.1.4.1.9.9.194.1.1.1",
"CISCO-PPPOE-MIB::cPppoeSystemHighWaterSessions": "1.3.6.1.4.1.9.9.194.1.1.2",
"CISCO-PPPOE-MIB::cPppoeSystemMaxAllowedSessions": "1.3.6.1.4.1.9.9.194.1.1.3",
"CISCO-PPPOE-MIB::cPppoeSystemThresholdSessions": "1.3.6.1.4.1.9.9.194.1.1.4",
"CISCO-PPPOE-MIB::cPppoeSystemExceededSessionErrors": "1.3.6.1.4.1.9.9.194.1.1.5",
"CISCO-PPPOE-MIB::cPppoeSystemPerMacSessionlimit": "1.3.6.1.4.1.9.9.194.1.1.6",
"CISCO-PPPOE-MIB::cPppoeSystemPerMacIWFSessionlimit": "1.3.6.1.4.1.9.9.194.1.1.7",
"CISCO-PPPOE-MIB::cPppoeSystemPerMacThrottleRatelimit": "1.3.6.1.4.1.9.9.194.1.1.8",
"CISCO-PPPOE-MIB::cPppoeSystemPerVLANlimit": "1.3.6.1.4.1.9.9.194.1.1.9",
"CISCO-PPPOE-MIB::cPppoeSystemPerVLANthrottleRatelimit": "1.3.6.1.4.1.9.9.194.1.1.10",
"CISCO-PPPOE-MIB::cPppoeSystemPerVClimit": "1.3.6.1.4.1.9.9.194.1.1.11",
"CISCO-PPPOE-MIB::cPppoeSystemPerVCThrottleRatelimit": "1.3.6.1.4.1.9.9.194.1.1.12",
"CISCO-PPPOE-MIB::cPppoeSystemSessionLossThreshold": "1.3.6.1.4.1.9.9.194.1.1.13",
"CISCO-PPPOE-MIB::cPppoeSystemSessionLossPercent": "1.3.6.1.4.1.9.9.194.1.1.14",
"CISCO-PPPOE-MIB::cPppoeVcCfgInfo": "1.3.6.1.4.1.9.9.194.1.2",
"CISCO-PPPOE-MIB::cPppoeVcCfgTable": "1.3.6.1.4.1.9.9.194.1.2.1",
"CISCO-PPPOE-MIB::cPppoeVcCfgEntry": "1.3.6.1.4.1.9.9.194.1.2.1.1",
"CISCO-PPPOE-MIB::cPppoeVcEnable": "1.3.6.1.4.1.9.9.194.1.2.1.1.1",
"CISCO-PPPOE-MIB::cPppoeVcSessionsInfo": "1.3.6.1.4.1.9.9.194.1.3",
"CISCO-PPPOE-MIB::cPppoeVcSessionsTable": "1.3.6.1.4.1.9.9.194.1.3.1",
"CISCO-PPPOE-MIB::cPppoeVcSessionsEntry": "1.3.6.1.4.1.9.9.194.1.3.1.1",
"CISCO-PPPOE-MIB::cPppoeVcCurrSessions": "1.3.6.1.4.1.9.9.194.1.3.1.1.1",
"CISCO-PPPOE-MIB::cPppoeVcHighWaterSessions": "1.3.6.1.4.1.9.9.194.1.3.1.1.2",
"CISCO-PPPOE-MIB::cPppoeVcMaxAllowedSessions": "1.3.6.1.4.1.9.9.194.1.3.1.1.3",
"CISCO-PPPOE-MIB::cPppoeVcThresholdSessions": "1.3.6.1.4.1.9.9.194.1.3.1.1.4",
"CISCO-PPPOE-MIB::cPppoeVcExceededSessionErrors": "1.3.6.1.4.1.9.9.194.1.3.1.1.5",
"CISCO-PPPOE-MIB::cPppoeSessionsPerInterfaceInfo": "1.3.6.1.4.1.9.9.194.1.4",
"CISCO-PPPOE-MIB::cPppoeSessionsPerInterfaceTable": "1.3.6.1.4.1.9.9.194.1.4.1",
"CISCO-PPPOE-MIB::cPppoeSessionsPerInterfaceEntry": "1.3.6.1.4.1.9.9.194.1.4.1.1",
"CISCO-PPPOE-MIB::cPppoeTotalSessions": "1.3.6.1.4.1.9.9.194.1.4.1.1.1",
"CISCO-PPPOE-MIB::cPppoePtaSessions": "1.3.6.1.4.1.9.9.194.1.4.1.1.2",
"CISCO-PPPOE-MIB::cPppoeFwdedSessions": "1.3.6.1.4.1.9.9.194.1.4.1.1.3",
"CISCO-PPPOE-MIB::cPppoeTransSessions": "1.3.6.1.4.1.9.9.194.1.4.1.1.4",
"CISCO-PPPOE-MIB::cPppoePerInterfaceSessionLossThreshold": "1.3.6.1.4.1.9.9.194.1.4.1.1.5",
"CISCO-PPPOE-MIB::cPppoePerInterfaceSessionLossPercent": "1.3.6.1.4.1.9.9.194.1.4.1.1.6",
"CISCO-PPPOE-MIB::cPppoeSystemSessionNotifyObjects": "1.3.6.1.4.1.9.9.194.1.5",
"CISCO-PPPOE-MIB::cPppoeSystemSessionClientMacAddress": "1.3.6.1.4.1.9.9.194.1.5.1",
"CISCO-PPPOE-MIB::cPppoeSystemSessionVlanID": "1.3.6.1.4.1.9.9.194.1.5.2",
"CISCO-PPPOE-MIB::cPppoeSystemSessionInnerVlanID": "1.3.6.1.4.1.9.9.194.1.5.3",
"CISCO-PPPOE-MIB::cPppoeSystemSessionVci": "1.3.6.1.4.1.9.9.194.1.5.4",
"CISCO-PPPOE-MIB::cPppoeSystemSessionVpi": "1.3.6.1.4.1.9.9.194.1.5.5",
"CISCO-PPPOE-MIB::ciscoPppoeMIBNotificationPrefix": "1.3.6.1.4.1.9.9.194.2",
"CISCO-PPPOE-MIB::ciscoPppoeMIBNotification": "1.3.6.1.4.1.9.9.194.2.0",
"CISCO-PPPOE-MIB::cPppoeSystemSessionThresholdTrap": "1.3.6.1.4.1.9.9.194.2.0.1",
"CISCO-PPPOE-MIB::cPppoeVcSessionThresholdTrap": "1.3.6.1.4.1.9.9.194.2.0.2",
"CISCO-PPPOE-MIB::cPppoeSystemSessionPerMACLimitNotif": "1.3.6.1.4.1.9.9.194.2.0.3",
"CISCO-PPPOE-MIB::cPppoeSystemSessionPerMACThrottleNotif": "1.3.6.1.4.1.9.9.194.2.0.4",
"CISCO-PPPOE-MIB::cPppoeSystemSessionPerVLANLimitNotif": "1.3.6.1.4.1.9.9.194.2.0.5",
"CISCO-PPPOE-MIB::cPppoeSystemSessionPerVLANThrottleNotif": "1.3.6.1.4.1.9.9.194.2.0.6",
"CISCO-PPPOE-MIB::cPppoeSystemSessionPerVCLimitNotif": "1.3.6.1.4.1.9.9.194.2.0.7",
"CISCO-PPPOE-MIB::cPppoeSystemSessionPerVCThrottleNotif": "1.3.6.1.4.1.9.9.194.2.0.8",
"CISCO-PPPOE-MIB::cPppoeSystemSessionLossThresholdNotif": "1.3.6.1.4.1.9.9.194.2.0.9",
"CISCO-PPPOE-MIB::cPppoePerInterfaceSessionLossThresholdNotif": "1.3.6.1.4.1.9.9.194.2.0.10",
"CISCO-PPPOE-MIB::cPppoeSystemSessionLossPercentNotif": "1.3.6.1.4.1.9.9.194.2.0.11",
"CISCO-PPPOE-MIB::cPppoePerInterfaceSessionLossPercentNotif": "1.3.6.1.4.1.9.9.194.2.0.12",
"CISCO-PPPOE-MIB::ciscoPppoeMIBConformance": "1.3.6.1.4.1.9.9.194.3",
"CISCO-PPPOE-MIB::ciscoPppoeMIBCompliances": "1.3.6.1.4.1.9.9.194.3.1",
"CISCO-PPPOE-MIB::ciscoPppoeMIBGroups": "1.3.6.1.4.1.9.9.194.3.2",
}
| name = 'CISCO-PPPOE-MIB'
last_updated = '2011-04-25'
compiled = '2014-11-21'
mib = {'CISCO-PPPOE-MIB::ciscoPppoeMIB': '1.3.6.1.4.1.9.9.194', 'CISCO-PPPOE-MIB::ciscoPppoeMIBObjects': '1.3.6.1.4.1.9.9.194.1', 'CISCO-PPPOE-MIB::cPppoeSystemSessionInfo': '1.3.6.1.4.1.9.9.194.1.1', 'CISCO-PPPOE-MIB::cPppoeSystemCurrSessions': '1.3.6.1.4.1.9.9.194.1.1.1', 'CISCO-PPPOE-MIB::cPppoeSystemHighWaterSessions': '1.3.6.1.4.1.9.9.194.1.1.2', 'CISCO-PPPOE-MIB::cPppoeSystemMaxAllowedSessions': '1.3.6.1.4.1.9.9.194.1.1.3', 'CISCO-PPPOE-MIB::cPppoeSystemThresholdSessions': '1.3.6.1.4.1.9.9.194.1.1.4', 'CISCO-PPPOE-MIB::cPppoeSystemExceededSessionErrors': '1.3.6.1.4.1.9.9.194.1.1.5', 'CISCO-PPPOE-MIB::cPppoeSystemPerMacSessionlimit': '1.3.6.1.4.1.9.9.194.1.1.6', 'CISCO-PPPOE-MIB::cPppoeSystemPerMacIWFSessionlimit': '1.3.6.1.4.1.9.9.194.1.1.7', 'CISCO-PPPOE-MIB::cPppoeSystemPerMacThrottleRatelimit': '1.3.6.1.4.1.9.9.194.1.1.8', 'CISCO-PPPOE-MIB::cPppoeSystemPerVLANlimit': '1.3.6.1.4.1.9.9.194.1.1.9', 'CISCO-PPPOE-MIB::cPppoeSystemPerVLANthrottleRatelimit': '1.3.6.1.4.1.9.9.194.1.1.10', 'CISCO-PPPOE-MIB::cPppoeSystemPerVClimit': '1.3.6.1.4.1.9.9.194.1.1.11', 'CISCO-PPPOE-MIB::cPppoeSystemPerVCThrottleRatelimit': '1.3.6.1.4.1.9.9.194.1.1.12', 'CISCO-PPPOE-MIB::cPppoeSystemSessionLossThreshold': '1.3.6.1.4.1.9.9.194.1.1.13', 'CISCO-PPPOE-MIB::cPppoeSystemSessionLossPercent': '1.3.6.1.4.1.9.9.194.1.1.14', 'CISCO-PPPOE-MIB::cPppoeVcCfgInfo': '1.3.6.1.4.1.9.9.194.1.2', 'CISCO-PPPOE-MIB::cPppoeVcCfgTable': '1.3.6.1.4.1.9.9.194.1.2.1', 'CISCO-PPPOE-MIB::cPppoeVcCfgEntry': '1.3.6.1.4.1.9.9.194.1.2.1.1', 'CISCO-PPPOE-MIB::cPppoeVcEnable': '1.3.6.1.4.1.9.9.194.1.2.1.1.1', 'CISCO-PPPOE-MIB::cPppoeVcSessionsInfo': '1.3.6.1.4.1.9.9.194.1.3', 'CISCO-PPPOE-MIB::cPppoeVcSessionsTable': '1.3.6.1.4.1.9.9.194.1.3.1', 'CISCO-PPPOE-MIB::cPppoeVcSessionsEntry': '1.3.6.1.4.1.9.9.194.1.3.1.1', 'CISCO-PPPOE-MIB::cPppoeVcCurrSessions': '1.3.6.1.4.1.9.9.194.1.3.1.1.1', 'CISCO-PPPOE-MIB::cPppoeVcHighWaterSessions': '1.3.6.1.4.1.9.9.194.1.3.1.1.2', 'CISCO-PPPOE-MIB::cPppoeVcMaxAllowedSessions': '1.3.6.1.4.1.9.9.194.1.3.1.1.3', 'CISCO-PPPOE-MIB::cPppoeVcThresholdSessions': '1.3.6.1.4.1.9.9.194.1.3.1.1.4', 'CISCO-PPPOE-MIB::cPppoeVcExceededSessionErrors': '1.3.6.1.4.1.9.9.194.1.3.1.1.5', 'CISCO-PPPOE-MIB::cPppoeSessionsPerInterfaceInfo': '1.3.6.1.4.1.9.9.194.1.4', 'CISCO-PPPOE-MIB::cPppoeSessionsPerInterfaceTable': '1.3.6.1.4.1.9.9.194.1.4.1', 'CISCO-PPPOE-MIB::cPppoeSessionsPerInterfaceEntry': '1.3.6.1.4.1.9.9.194.1.4.1.1', 'CISCO-PPPOE-MIB::cPppoeTotalSessions': '1.3.6.1.4.1.9.9.194.1.4.1.1.1', 'CISCO-PPPOE-MIB::cPppoePtaSessions': '1.3.6.1.4.1.9.9.194.1.4.1.1.2', 'CISCO-PPPOE-MIB::cPppoeFwdedSessions': '1.3.6.1.4.1.9.9.194.1.4.1.1.3', 'CISCO-PPPOE-MIB::cPppoeTransSessions': '1.3.6.1.4.1.9.9.194.1.4.1.1.4', 'CISCO-PPPOE-MIB::cPppoePerInterfaceSessionLossThreshold': '1.3.6.1.4.1.9.9.194.1.4.1.1.5', 'CISCO-PPPOE-MIB::cPppoePerInterfaceSessionLossPercent': '1.3.6.1.4.1.9.9.194.1.4.1.1.6', 'CISCO-PPPOE-MIB::cPppoeSystemSessionNotifyObjects': '1.3.6.1.4.1.9.9.194.1.5', 'CISCO-PPPOE-MIB::cPppoeSystemSessionClientMacAddress': '1.3.6.1.4.1.9.9.194.1.5.1', 'CISCO-PPPOE-MIB::cPppoeSystemSessionVlanID': '1.3.6.1.4.1.9.9.194.1.5.2', 'CISCO-PPPOE-MIB::cPppoeSystemSessionInnerVlanID': '1.3.6.1.4.1.9.9.194.1.5.3', 'CISCO-PPPOE-MIB::cPppoeSystemSessionVci': '1.3.6.1.4.1.9.9.194.1.5.4', 'CISCO-PPPOE-MIB::cPppoeSystemSessionVpi': '1.3.6.1.4.1.9.9.194.1.5.5', 'CISCO-PPPOE-MIB::ciscoPppoeMIBNotificationPrefix': '1.3.6.1.4.1.9.9.194.2', 'CISCO-PPPOE-MIB::ciscoPppoeMIBNotification': '1.3.6.1.4.1.9.9.194.2.0', 'CISCO-PPPOE-MIB::cPppoeSystemSessionThresholdTrap': '1.3.6.1.4.1.9.9.194.2.0.1', 'CISCO-PPPOE-MIB::cPppoeVcSessionThresholdTrap': '1.3.6.1.4.1.9.9.194.2.0.2', 'CISCO-PPPOE-MIB::cPppoeSystemSessionPerMACLimitNotif': '1.3.6.1.4.1.9.9.194.2.0.3', 'CISCO-PPPOE-MIB::cPppoeSystemSessionPerMACThrottleNotif': '1.3.6.1.4.1.9.9.194.2.0.4', 'CISCO-PPPOE-MIB::cPppoeSystemSessionPerVLANLimitNotif': '1.3.6.1.4.1.9.9.194.2.0.5', 'CISCO-PPPOE-MIB::cPppoeSystemSessionPerVLANThrottleNotif': '1.3.6.1.4.1.9.9.194.2.0.6', 'CISCO-PPPOE-MIB::cPppoeSystemSessionPerVCLimitNotif': '1.3.6.1.4.1.9.9.194.2.0.7', 'CISCO-PPPOE-MIB::cPppoeSystemSessionPerVCThrottleNotif': '1.3.6.1.4.1.9.9.194.2.0.8', 'CISCO-PPPOE-MIB::cPppoeSystemSessionLossThresholdNotif': '1.3.6.1.4.1.9.9.194.2.0.9', 'CISCO-PPPOE-MIB::cPppoePerInterfaceSessionLossThresholdNotif': '1.3.6.1.4.1.9.9.194.2.0.10', 'CISCO-PPPOE-MIB::cPppoeSystemSessionLossPercentNotif': '1.3.6.1.4.1.9.9.194.2.0.11', 'CISCO-PPPOE-MIB::cPppoePerInterfaceSessionLossPercentNotif': '1.3.6.1.4.1.9.9.194.2.0.12', 'CISCO-PPPOE-MIB::ciscoPppoeMIBConformance': '1.3.6.1.4.1.9.9.194.3', 'CISCO-PPPOE-MIB::ciscoPppoeMIBCompliances': '1.3.6.1.4.1.9.9.194.3.1', 'CISCO-PPPOE-MIB::ciscoPppoeMIBGroups': '1.3.6.1.4.1.9.9.194.3.2'} |
rows, cols = [int(x) for x in input().split(' ')]
matrix = [input().split() for _ in range(rows)]
cmd = input()
while cmd != 'END':
cmd_args = cmd.split()
if cmd_args[0] != 'swap' or len(cmd_args) != 5:
print('Invalid input!')
cmd = input()
continue
row1, col1 = int(cmd_args[1]), int(cmd_args[2])
row2, col2 = int(cmd_args[3]), int(cmd_args[4])
if row1 >= rows or row2 >= rows or col1 >= cols or col2 >= cols:
print('Invalid input!')
cmd = input()
continue
matrix[row1][col1], matrix[row2][col2] = matrix[row2][col2], matrix[row1][col1]
for i in range(rows):
print(' '.join(matrix[i]))
cmd = input()
| (rows, cols) = [int(x) for x in input().split(' ')]
matrix = [input().split() for _ in range(rows)]
cmd = input()
while cmd != 'END':
cmd_args = cmd.split()
if cmd_args[0] != 'swap' or len(cmd_args) != 5:
print('Invalid input!')
cmd = input()
continue
(row1, col1) = (int(cmd_args[1]), int(cmd_args[2]))
(row2, col2) = (int(cmd_args[3]), int(cmd_args[4]))
if row1 >= rows or row2 >= rows or col1 >= cols or (col2 >= cols):
print('Invalid input!')
cmd = input()
continue
(matrix[row1][col1], matrix[row2][col2]) = (matrix[row2][col2], matrix[row1][col1])
for i in range(rows):
print(' '.join(matrix[i]))
cmd = input() |
# #1
# def last(*args):
# last = args[-1]
# try:
# return last[-1]
# except TypeError:
# return last
#2
def last(*args):
try:
return args[-1][-1]
except:
return args[-1]
| def last(*args):
try:
return args[-1][-1]
except:
return args[-1] |
def setup():
size(500, 500)
smooth()
noLoop()
def draw():
background(100)
stroke(142,36,197)
strokeWeight(110)
line(100, 150, 400, 150)
stroke(203,29,163)
strokeWeight(60)
line(100, 250, 400, 250)
stroke(204,27,27)
strokeWeight(110)
line(100, 350, 400, 350)
| def setup():
size(500, 500)
smooth()
no_loop()
def draw():
background(100)
stroke(142, 36, 197)
stroke_weight(110)
line(100, 150, 400, 150)
stroke(203, 29, 163)
stroke_weight(60)
line(100, 250, 400, 250)
stroke(204, 27, 27)
stroke_weight(110)
line(100, 350, 400, 350) |
class BadGrammarError(Exception):
pass
class EmptyGrammarError(BadGrammarError):
pass
| class Badgrammarerror(Exception):
pass
class Emptygrammarerror(BadGrammarError):
pass |
# Tutorial: http://www.learnpython.org/en/Loops
# Loops
# There are two types of loops in Python, for and while.
# The "for" loop
# For loops iterate over a given sequence. Here is an example:
primes = [2, 3, 5, 7]
for prime in primes:
print(prime)
# For loops can iterate over a sequence of numbers using the "range" and "xrange" functions. The difference between range and xrange is that the range function returns a new list with numbers of that specified range, whereas xrange returns an iterator, which is more efficient. (Python 3 uses the range function, which acts like xrange). Note that the range function is zero based.
# Prints out the numbers 0,1,2,3,4
for x in range(5):
print(x)
# Prints out 3,4,5
for x in range(3, 6):
print(x)
# Prints out 3,5,7
for x in range(3, 8, 2):
print(x)
# "while" loops
# While loops repeat as long as a certain boolean condition is met. For example:
# Prints out 0,1,2,3,4
count = 0
while count < 5:
print(count)
count += 1 # This is the same as count = count + 1
# "break" and "continue" statements
# break is used to exit a for loop or a while loop, whereas continue is used to skip the current block, and return to the "for" or "while" statement. A few examples:
# Prints out 0,1,2,3,4
count = 0
while True:
print(count)
count += 1
if count >= 5:
break
# Prints out only odd numbers - 1,3,5,7,9
for x in range(10):
# Check if x is even
if x % 2 == 0:
continue
print(x)
# Can we use "else" clause for loops?
# unlike languages like C,CPP.. we can use else for loops. When the loop condition of "for" or "while" statement fails then code part in "else" is executed. If break statement is executed inside for loop then the "else" part is skipped. Note that "else" part is executed even if there is a continue statement.
# Here are a few examples:
# Prints out 0,1,2,3,4 and then it prints "count value reached 5"
count=0
while(count<5):
print(count)
count +=1
else:
print("count value reached %d" %(count))
# Prints out 1,2,3,4
for i in range(1, 10):
if(i%5==0):
break
print(i)
else:
print("this is not printed because for loop is terminated because of break but not due to fail in condition")
# Exercise
# Loop through and print out all even numbers from the numbers list in the same order they are received. Don't print any numbers that come after 237 in the sequence.
numbers = [
951, 402, 984, 651, 360, 69, 408, 319, 601, 485, 980, 507, 725, 547, 544,
615, 83, 165, 141, 501, 263, 617, 865, 575, 219, 390, 984, 592, 236, 105, 942, 941,
386, 462, 47, 418, 907, 344, 236, 375, 823, 566, 597, 978, 328, 615, 953, 345,
399, 162, 758, 219, 918, 237, 412, 566, 826, 248, 866, 950, 626, 949, 687, 217,
815, 67, 104, 58, 512, 24, 892, 894, 767, 553, 81, 379, 843, 831, 445, 742, 717,
958, 609, 842, 451, 688, 753, 854, 685, 93, 857, 440, 380, 126, 721, 328, 753, 470,
743, 527
]
for number in numbers:
if number == 237:
break
if number % 2 == 1:
continue
print(number)
| primes = [2, 3, 5, 7]
for prime in primes:
print(prime)
for x in range(5):
print(x)
for x in range(3, 6):
print(x)
for x in range(3, 8, 2):
print(x)
count = 0
while count < 5:
print(count)
count += 1
count = 0
while True:
print(count)
count += 1
if count >= 5:
break
for x in range(10):
if x % 2 == 0:
continue
print(x)
count = 0
while count < 5:
print(count)
count += 1
else:
print('count value reached %d' % count)
for i in range(1, 10):
if i % 5 == 0:
break
print(i)
else:
print('this is not printed because for loop is terminated because of break but not due to fail in condition')
numbers = [951, 402, 984, 651, 360, 69, 408, 319, 601, 485, 980, 507, 725, 547, 544, 615, 83, 165, 141, 501, 263, 617, 865, 575, 219, 390, 984, 592, 236, 105, 942, 941, 386, 462, 47, 418, 907, 344, 236, 375, 823, 566, 597, 978, 328, 615, 953, 345, 399, 162, 758, 219, 918, 237, 412, 566, 826, 248, 866, 950, 626, 949, 687, 217, 815, 67, 104, 58, 512, 24, 892, 894, 767, 553, 81, 379, 843, 831, 445, 742, 717, 958, 609, 842, 451, 688, 753, 854, 685, 93, 857, 440, 380, 126, 721, 328, 753, 470, 743, 527]
for number in numbers:
if number == 237:
break
if number % 2 == 1:
continue
print(number) |
with open('recovered/arc/clusters/6.0.0_r1_acdc_clustered.rsf', encoding="utf8") as data_file:
data = data_file.readlines()
cluster = set()
for line in data:
cluster.add(line.split(" ")[1])
print(len(cluster)) | with open('recovered/arc/clusters/6.0.0_r1_acdc_clustered.rsf', encoding='utf8') as data_file:
data = data_file.readlines()
cluster = set()
for line in data:
cluster.add(line.split(' ')[1])
print(len(cluster)) |
# Find square of a number without using multiplication and division operator
def main():
a = -10
if a < 0:
a = abs(a)
square = 0
for i in range(0, a):
square += a
print(square)
if __name__ == '__main__':
main()
| def main():
a = -10
if a < 0:
a = abs(a)
square = 0
for i in range(0, a):
square += a
print(square)
if __name__ == '__main__':
main() |
def func(a, b):
# a is state 1
# b is state 2
# this is horrible code but it works! :^)
s = r"\frac{1}{6}"
s1 = r"\frac{1}{2}"
s2 = r"\frac{1}{3}"
if a == 19 and b != 19:
return 0
if a == b:
if a == 19:
return 1
else:
return 0
elif a == 0:
if b <= 6:
return s
else:
return 0
elif a <= 6:
if b == 0:
return s
elif b > 18:
return 0
else:
if a == 1 and (b in [2, 6, 7, 8, 9]):
return s
elif a == 2 and (b in [1, 3, 9, 10, 11]):
return s
elif a == 3 and (b in [2, 4, 11, 12, 13]):
return s
elif a == 4 and (b in [3, 5, 13, 14, 15]):
return s
elif a == 5 and (b in [4, 6, 15, 16, 17]):
return s
elif a == 6 and (b in [1, 5, 7, 17, 18]):
return s
else:
return 0
else:
if b == 19:
if a % 2 == 1:
return s2
else:
return s1
else:
if b == 0:
return 0
elif b in [a - 1, a + 1]:
return s
elif a == 7 and b == 18:
return s
elif b == 7 and a == 18:
return s
else:
if a % 2 == 1:
arr = list(map(int, [0.5 * a - 3.5, 0.5 * a - 2.5]))
if b in arr:
return s
else:
return 0
else:
if b == int(0.5 * a - 3):
return s
else:
return 0
f = open("transition3.tex", "w")
f.write(r"$$")
f.write("\n")
f.write("P = ")
f.write("\n")
f.write(r"\left ( \scalemath{0.4} { \begin{array}{cccccccccccccccccccc}")
f.write("\n")
for i in range(20):
s = "\t"
for j in range(20):
s += "p_{{ {}, {} }} = ".format(i, j)
s += str(func(i, j))
s += " & "
s = s[:-3]
f.write(s)
f.write(r"\\")
f.write("\n")
f.write(r"\end{array} } \right)")
f.write("\n")
f.write(r"$$")
f.write("\n")
f.close()
| def func(a, b):
s = '\\frac{1}{6}'
s1 = '\\frac{1}{2}'
s2 = '\\frac{1}{3}'
if a == 19 and b != 19:
return 0
if a == b:
if a == 19:
return 1
else:
return 0
elif a == 0:
if b <= 6:
return s
else:
return 0
elif a <= 6:
if b == 0:
return s
elif b > 18:
return 0
elif a == 1 and b in [2, 6, 7, 8, 9]:
return s
elif a == 2 and b in [1, 3, 9, 10, 11]:
return s
elif a == 3 and b in [2, 4, 11, 12, 13]:
return s
elif a == 4 and b in [3, 5, 13, 14, 15]:
return s
elif a == 5 and b in [4, 6, 15, 16, 17]:
return s
elif a == 6 and b in [1, 5, 7, 17, 18]:
return s
else:
return 0
elif b == 19:
if a % 2 == 1:
return s2
else:
return s1
elif b == 0:
return 0
elif b in [a - 1, a + 1]:
return s
elif a == 7 and b == 18:
return s
elif b == 7 and a == 18:
return s
elif a % 2 == 1:
arr = list(map(int, [0.5 * a - 3.5, 0.5 * a - 2.5]))
if b in arr:
return s
else:
return 0
elif b == int(0.5 * a - 3):
return s
else:
return 0
f = open('transition3.tex', 'w')
f.write('$$')
f.write('\n')
f.write('P = ')
f.write('\n')
f.write('\\left ( \\scalemath{0.4} { \\begin{array}{cccccccccccccccccccc}')
f.write('\n')
for i in range(20):
s = '\t'
for j in range(20):
s += 'p_{{ {}, {} }} = '.format(i, j)
s += str(func(i, j))
s += ' & '
s = s[:-3]
f.write(s)
f.write('\\\\')
f.write('\n')
f.write('\\end{array} } \\right)')
f.write('\n')
f.write('$$')
f.write('\n')
f.close() |
# This file contains the credentials needed to connect to and use the TTN Lorawan network
#
# Steps:
# 1. Populate the values below from your TTN configuration and device/modem.
# (For RAK Wireless devices the dev_eui is printed on top of the device.)
# 2.Then rename the file to: creds_config.py
#
# Done, the file will then be imported into the other scripts at run time.
dev_eui="XXXXXXXXXXXXXX"
# or
dev_eui_rak4200="XXXXXXXXXXXXXX"
# or
dev_eui_rak3172="XXXXXXXXXXXXXX"
#
# Depending on which script you use etc.
app_eui="YYYYYYYYYYYYYY"
app_key="ZZZZZZZZZZZZZZ"
| dev_eui = 'XXXXXXXXXXXXXX'
dev_eui_rak4200 = 'XXXXXXXXXXXXXX'
dev_eui_rak3172 = 'XXXXXXXXXXXXXX'
app_eui = 'YYYYYYYYYYYYYY'
app_key = 'ZZZZZZZZZZZZZZ' |
def main():
n, m = [int(x) for x in input().split()]
def wczytajJiro():
defs = [0]*n
atks = [0]*n
both = [0]*2*n
defi = atki = bothi = 0
for i in range(n):
pi, si = input().split()
if (pi == 'ATK'):
atks[atki] = int(si)
atki += 1
both[bothi] = int(si)
bothi += 1
else:
defs[defi] = int(si)
defi += 1
both[bothi] = int(si) + 1
bothi += 1
return (sorted(defs[:defi]), sorted(atks[:atki]), sorted(both[:bothi]))
def wczytajCiel():
ms = [0]*m
for i in range(m):
si = int(input())
ms[i] = si
return sorted(ms)
jiro = wczytajJiro()
defenses, attacks, both = jiro
ciel = wczytajCiel()
def czyZabijamyWszyskie():
zzamkowane = zip(reversed(ciel), reversed(both))
checked = map(lambda cj : cj[0] - cj[1] >= 0, zzamkowane)
return all(checked)
def f(cj):
c, j = cj
r = c - j
if (r >= 0):
return r
else:
return 0
def bezNajslabszychObroncow():
w = 0
wyniklen = len(ciel)
for d in defenses:
while w != wyniklen and ciel[w] <= d:
w += 1
if w == wyniklen:
break
ciel[w] = 0
return sum(ciel)
if czyZabijamyWszyskie():
w = sum(map(f, zip(reversed(ciel), attacks)))
w1 = bezNajslabszychObroncow()
w2 = sum(attacks)
print(max(w, w1 - w2))
else:
w = sum(map(f, zip(reversed(ciel), attacks)))
print(w)
main()
| def main():
(n, m) = [int(x) for x in input().split()]
def wczytaj_jiro():
defs = [0] * n
atks = [0] * n
both = [0] * 2 * n
defi = atki = bothi = 0
for i in range(n):
(pi, si) = input().split()
if pi == 'ATK':
atks[atki] = int(si)
atki += 1
both[bothi] = int(si)
bothi += 1
else:
defs[defi] = int(si)
defi += 1
both[bothi] = int(si) + 1
bothi += 1
return (sorted(defs[:defi]), sorted(atks[:atki]), sorted(both[:bothi]))
def wczytaj_ciel():
ms = [0] * m
for i in range(m):
si = int(input())
ms[i] = si
return sorted(ms)
jiro = wczytaj_jiro()
(defenses, attacks, both) = jiro
ciel = wczytaj_ciel()
def czy_zabijamy_wszyskie():
zzamkowane = zip(reversed(ciel), reversed(both))
checked = map(lambda cj: cj[0] - cj[1] >= 0, zzamkowane)
return all(checked)
def f(cj):
(c, j) = cj
r = c - j
if r >= 0:
return r
else:
return 0
def bez_najslabszych_obroncow():
w = 0
wyniklen = len(ciel)
for d in defenses:
while w != wyniklen and ciel[w] <= d:
w += 1
if w == wyniklen:
break
ciel[w] = 0
return sum(ciel)
if czy_zabijamy_wszyskie():
w = sum(map(f, zip(reversed(ciel), attacks)))
w1 = bez_najslabszych_obroncow()
w2 = sum(attacks)
print(max(w, w1 - w2))
else:
w = sum(map(f, zip(reversed(ciel), attacks)))
print(w)
main() |
load_modules = {
'hw_USBtin': {'port':'auto', 'debug':2, 'speed':500}, # IO hardware module
'ecu_controls':
{'bus':'BMW_F10',
'commands':[
# Music actions
{'High light - blink': '0x1ee:2:20ff', 'cmd':'127'},
{'TURN LEFT and RIGHT': '0x2fc:7:31000000000000', 'cmd':'126'},
{'TURN right ON PERMANENT': '0x1ee:2:01ff', 'cmd':'124'},
{'TURN right x3 or OFF PERMANENT':'0x1ee:2:02ff','cmd':'123'},
{'TURN left ON PERMANENT': '0x1ee:2:04ff', 'cmd':'122'},
{'TURN left x3 or OFF PERMANENT':'0x1ee:2:08ff','cmd':'121'},
{'STOP lights': '0x173:8:3afa00022000f2c4', 'cmd':'120'},
{'CLEANER - once':'0x2a6:2:02a1','cmd':'119'},
{'CLEANER x3 + Wasser':'0x2a6:2:10f1','cmd':'118'},
{'Mirrors+windows FOLD':'0x26e:8:5b5b4002ffffffff','cmd':"117"},
{'Mirrors UNfold':'0x2fc:7:12000000000000','cmd':"116"},
{'Windows open':'0x26e:8:49494001ffffffff','cmd':"115"},
{'Windows rear close + Mirrors FOLD':'0x26e:8:405b4002ffffffff','cmd':"114"},
{'Trunk open':'0x2a0:8:88888001ffffffff','cmd':"113"},
{'Trunk close':'0x23a:8:00f310f0fcf0ffff','cmd':"112"}
],
'statuses':[
]
}
}
# Now let's describe the logic of this test
actions = [
{'ecu_controls' : {}},
{'hw_USBtin': {'action':'write','pipe': 1}}
] | load_modules = {'hw_USBtin': {'port': 'auto', 'debug': 2, 'speed': 500}, 'ecu_controls': {'bus': 'BMW_F10', 'commands': [{'High light - blink': '0x1ee:2:20ff', 'cmd': '127'}, {'TURN LEFT and RIGHT': '0x2fc:7:31000000000000', 'cmd': '126'}, {'TURN right ON PERMANENT': '0x1ee:2:01ff', 'cmd': '124'}, {'TURN right x3 or OFF PERMANENT': '0x1ee:2:02ff', 'cmd': '123'}, {'TURN left ON PERMANENT': '0x1ee:2:04ff', 'cmd': '122'}, {'TURN left x3 or OFF PERMANENT': '0x1ee:2:08ff', 'cmd': '121'}, {'STOP lights': '0x173:8:3afa00022000f2c4', 'cmd': '120'}, {'CLEANER - once': '0x2a6:2:02a1', 'cmd': '119'}, {'CLEANER x3 + Wasser': '0x2a6:2:10f1', 'cmd': '118'}, {'Mirrors+windows FOLD': '0x26e:8:5b5b4002ffffffff', 'cmd': '117'}, {'Mirrors UNfold': '0x2fc:7:12000000000000', 'cmd': '116'}, {'Windows open': '0x26e:8:49494001ffffffff', 'cmd': '115'}, {'Windows rear close + Mirrors FOLD': '0x26e:8:405b4002ffffffff', 'cmd': '114'}, {'Trunk open': '0x2a0:8:88888001ffffffff', 'cmd': '113'}, {'Trunk close': '0x23a:8:00f310f0fcf0ffff', 'cmd': '112'}], 'statuses': []}}
actions = [{'ecu_controls': {}}, {'hw_USBtin': {'action': 'write', 'pipe': 1}}] |
#!/usr/bin/env python3
fname = input("Enter file name: ")
fh = open(fname)
lst = list()
sorted_words = list()
for line in fh:
line = line.rstrip()
words = line.split()
for word in words:
if lst.count(word) == 0:
lst.append(word)
lst.sort()
print(lst)
| fname = input('Enter file name: ')
fh = open(fname)
lst = list()
sorted_words = list()
for line in fh:
line = line.rstrip()
words = line.split()
for word in words:
if lst.count(word) == 0:
lst.append(word)
lst.sort()
print(lst) |
# Python3 program to add two numbers
number1 = input("First number: ")
number2 = input("\nSecond number: ")
# Adding two numbers
# User might also enter float numbers
sum = float(number1) + float(number2)
# Display the sum
# will print value in float
print("The sum of {0} and {1} is {2}" .format(number1, number2, sum))
| number1 = input('First number: ')
number2 = input('\nSecond number: ')
sum = float(number1) + float(number2)
print('The sum of {0} and {1} is {2}'.format(number1, number2, sum)) |
class Solution:
# @param {string} a a number
# @param {string} b a number
# @return {string} the result
def addBinary(self, a, b):
# Write your code here
max_len = max(len(a), len(b))
a = a.zfill(max_len)
b = b.zfill(max_len)
result = ''
carry = 0
for a, b in zip(a, b)[::-1]:
bits_sum = carry
bits_sum += int(a) + int(b)
result = ('0' if bits_sum % 2 == 0 else '1') + result
carry = 0 if bits_sum < 2 else 1
result = ('1' if carry > 0 else '') + result
return result
| class Solution:
def add_binary(self, a, b):
max_len = max(len(a), len(b))
a = a.zfill(max_len)
b = b.zfill(max_len)
result = ''
carry = 0
for (a, b) in zip(a, b)[::-1]:
bits_sum = carry
bits_sum += int(a) + int(b)
result = ('0' if bits_sum % 2 == 0 else '1') + result
carry = 0 if bits_sum < 2 else 1
result = ('1' if carry > 0 else '') + result
return result |
class Solution:
def dailyTemperatures(self, T: list) -> list:
if len(T) == 1:
return [0]
else:
mono_stack = [(T[0], 0)]
i = 1
res = [0] * len(T)
while i < len(T):
if T[i] <= mono_stack[-1][0]:
mono_stack.append((T[i], i))
else:
while mono_stack:
if T[i] > mono_stack[-1][0]:
_, popped_idx = mono_stack.pop()
res[popped_idx] = i - popped_idx
else:
break
mono_stack.append((T[i], i))
i += 1
return res
if __name__ == "__main__":
solu = Solution()
print(solu.dailyTemperatures([73, 74, 75, 71, 69, 72, 76, 73])) | class Solution:
def daily_temperatures(self, T: list) -> list:
if len(T) == 1:
return [0]
else:
mono_stack = [(T[0], 0)]
i = 1
res = [0] * len(T)
while i < len(T):
if T[i] <= mono_stack[-1][0]:
mono_stack.append((T[i], i))
else:
while mono_stack:
if T[i] > mono_stack[-1][0]:
(_, popped_idx) = mono_stack.pop()
res[popped_idx] = i - popped_idx
else:
break
mono_stack.append((T[i], i))
i += 1
return res
if __name__ == '__main__':
solu = solution()
print(solu.dailyTemperatures([73, 74, 75, 71, 69, 72, 76, 73])) |
with open("inputs_7.txt") as f:
inputs = [x.strip() for x in f.readlines()]
ex_inputs= [
"shiny gold bags contain 2 dark red bags.",
"dark red bags contain 2 dark orange bags.",
"dark orange bags contain 2 dark yellow bags.",
"dark yellow bags contain 2 dark green bags.",
"dark green bags contain 2 dark blue bags.",
"dark blue bags contain 2 dark violet bags.",
"dark violet bags contain no other bags."
]
def find_bags_containing_colour(roster, colour):
bags = []
for key, value in roster.items():
if colour in (x[1] for x in value):
bags.append(key)
bags.extend(find_bags_containing_colour(roster, key))
return bags
def part1(inputs):
roster = {}
for line in inputs:
colour = line[:line.index(" bags")]
contents = line.split("contain")[1].strip().replace(" bags", "").replace(" bag", "").split(", ")
if "no other" in line:
continue
roster[colour] = []
for content in contents:
num = content[:content.index(" ")]
content_colour = content[content.index(" ") + 1 :].strip(".")
roster[colour].append((num, content_colour))
bags = set(find_bags_containing_colour(roster, "shiny gold"))
print(len(bags))
def count_bags(roster, colour):
total = 1
for bag in roster[colour]:
if bag[1] == "None":
print(f"No Bags in {colour}, return 1")
return 1
else:
print(bag[0] * count_bags(roster, bag[1]))
total += bag[0] * count_bags(roster, bag[1])
print(total, colour)
return total
def part2(inputs):
roster = {}
for line in inputs:
colour = line[:line.index(" bags")]
contents = line.split("contain")[1].strip().replace(" bags", "").replace(" bag", "").split(", ")
roster[colour] = []
for content in contents:
if "no other" in line:
num = 0
content_colour = "None"
else:
num = int(content[:content.index(" ")])
content_colour = content[content.index(" ") + 1 :].strip(".")
roster[colour].append((int(num), content_colour))
total = 0
total = count_bags(roster,"shiny gold")
print(f"Current Total: {total}")
# minus the shiny gold bag from the count
print(total - 1)
# part1(inputs)
# not 75,31
part2(inputs) | with open('inputs_7.txt') as f:
inputs = [x.strip() for x in f.readlines()]
ex_inputs = ['shiny gold bags contain 2 dark red bags.', 'dark red bags contain 2 dark orange bags.', 'dark orange bags contain 2 dark yellow bags.', 'dark yellow bags contain 2 dark green bags.', 'dark green bags contain 2 dark blue bags.', 'dark blue bags contain 2 dark violet bags.', 'dark violet bags contain no other bags.']
def find_bags_containing_colour(roster, colour):
bags = []
for (key, value) in roster.items():
if colour in (x[1] for x in value):
bags.append(key)
bags.extend(find_bags_containing_colour(roster, key))
return bags
def part1(inputs):
roster = {}
for line in inputs:
colour = line[:line.index(' bags')]
contents = line.split('contain')[1].strip().replace(' bags', '').replace(' bag', '').split(', ')
if 'no other' in line:
continue
roster[colour] = []
for content in contents:
num = content[:content.index(' ')]
content_colour = content[content.index(' ') + 1:].strip('.')
roster[colour].append((num, content_colour))
bags = set(find_bags_containing_colour(roster, 'shiny gold'))
print(len(bags))
def count_bags(roster, colour):
total = 1
for bag in roster[colour]:
if bag[1] == 'None':
print(f'No Bags in {colour}, return 1')
return 1
else:
print(bag[0] * count_bags(roster, bag[1]))
total += bag[0] * count_bags(roster, bag[1])
print(total, colour)
return total
def part2(inputs):
roster = {}
for line in inputs:
colour = line[:line.index(' bags')]
contents = line.split('contain')[1].strip().replace(' bags', '').replace(' bag', '').split(', ')
roster[colour] = []
for content in contents:
if 'no other' in line:
num = 0
content_colour = 'None'
else:
num = int(content[:content.index(' ')])
content_colour = content[content.index(' ') + 1:].strip('.')
roster[colour].append((int(num), content_colour))
total = 0
total = count_bags(roster, 'shiny gold')
print(f'Current Total: {total}')
print(total - 1)
part2(inputs) |
#Simple calculator
def add(x,y):
return x+y
def subs(x,y):
return x-y
def multi(x,y):
return x*y
def divide(x,y):
return x/y
num1 = int(input("Enter the Value of Num1 :"))
num2 = int(input("Enter the Value of NUm2 :"))
print("Choose 1 for '+'/ 2 for '-'/ 3 for '*'/ 4 for '/' :-")
select = int(input("Enter the 1/2/3/4 :"))
if select == 1 :
print(num1,"+",num2,"=",add(num1,num2))
elif select == 2 :
print(num1,"-",num2,"=",subs(num1,num2))
elif select == 3 :
print(num1,"*",num2,"=",multi(num1,num2))
elif select == 4 :
print(num1,"/",num2,"=",divide(num1,num2))
else:
print("Enter the Valid number.")
| def add(x, y):
return x + y
def subs(x, y):
return x - y
def multi(x, y):
return x * y
def divide(x, y):
return x / y
num1 = int(input('Enter the Value of Num1 :'))
num2 = int(input('Enter the Value of NUm2 :'))
print("Choose 1 for '+'/ 2 for '-'/ 3 for '*'/ 4 for '/' :-")
select = int(input('Enter the 1/2/3/4 :'))
if select == 1:
print(num1, '+', num2, '=', add(num1, num2))
elif select == 2:
print(num1, '-', num2, '=', subs(num1, num2))
elif select == 3:
print(num1, '*', num2, '=', multi(num1, num2))
elif select == 4:
print(num1, '/', num2, '=', divide(num1, num2))
else:
print('Enter the Valid number.') |
PI = float(3.14159)
raio = float(input())
print("A=%0.4f" %(PI * (raio * raio)))
| pi = float(3.14159)
raio = float(input())
print('A=%0.4f' % (PI * (raio * raio))) |
x = {}
with open('input.txt', 'r', encoding='utf8') as f:
for line in f:
line = line.strip()
x[line] = x.get(line, 0) + 1
lol = [(y, x) for x, y in x.items()]
lol.sort()
with open('output.txt', 'w', encoding='utf8') as f:
if lol[-1][0] / sum(x.values()) > 0.5:
f.write(lol[-1][1])
else:
f.write(lol[-1][1])
f.write("\n")
f.write(lol[-2][1])
| x = {}
with open('input.txt', 'r', encoding='utf8') as f:
for line in f:
line = line.strip()
x[line] = x.get(line, 0) + 1
lol = [(y, x) for (x, y) in x.items()]
lol.sort()
with open('output.txt', 'w', encoding='utf8') as f:
if lol[-1][0] / sum(x.values()) > 0.5:
f.write(lol[-1][1])
else:
f.write(lol[-1][1])
f.write('\n')
f.write(lol[-2][1]) |
{
"includes": [
"drafter/common.gypi"
],
"targets": [
{
"target_name": "protagonist",
"include_dirs": [
"drafter/src",
"<!(node -e \"require('nan')\")"
],
"sources": [
"src/options_parser.cc",
"src/parse_async.cc",
"src/parse_sync.cc",
"src/protagonist.cc",
"src/protagonist.h",
"src/refractToV8.cc",
"src/validate_async.cc",
"src/validate_sync.cc"
],
"conditions" : [
[ 'libdrafter_type=="shared_library"', { 'defines' : [ 'DRAFTER_BUILD_SHARED' ] }, { 'defines' : [ 'DRAFTER_BUILD_STATIC' ] }],
],
"dependencies": [
"drafter/drafter.gyp:libdrafter",
]
}
]
}
| {'includes': ['drafter/common.gypi'], 'targets': [{'target_name': 'protagonist', 'include_dirs': ['drafter/src', '<!(node -e "require(\'nan\')")'], 'sources': ['src/options_parser.cc', 'src/parse_async.cc', 'src/parse_sync.cc', 'src/protagonist.cc', 'src/protagonist.h', 'src/refractToV8.cc', 'src/validate_async.cc', 'src/validate_sync.cc'], 'conditions': [['libdrafter_type=="shared_library"', {'defines': ['DRAFTER_BUILD_SHARED']}, {'defines': ['DRAFTER_BUILD_STATIC']}]], 'dependencies': ['drafter/drafter.gyp:libdrafter']}]} |
# Chalk Damage Skin
success = sm.addDamageSkin(2433236)
if success:
sm.chat("The Chalk Damage Skin has been added to your account's damage skin collection.")
| success = sm.addDamageSkin(2433236)
if success:
sm.chat("The Chalk Damage Skin has been added to your account's damage skin collection.") |
N_T = input().split()
N = int(N_T[0])
T = int(N_T[1])
interactions = []
input_condition = input()
conditions = list(input_condition)
conditions = [int(x) for x in conditions]
for x in range(T):
input_line = input().split()
input_line = [int(x) for x in input_line]
interactions.append(input_line)
sorted_interactions = sorted(interactions)
largest_k = 0
minimum_k = T
patient_zero = 0
for cow_num in range(0, N): #zeros -- x is cow number
temp_conditions = [0 for x in range(len(conditions))]
temp_conditions[cow_num] = 1
for y in range(0, len(interactions)): #loops through the process
if cow_num == interactions[y][1]-1:
temp_conditions[interactions[y][2]-1] = 1
elif cow_num == interactions[y][2]-1:
temp_conditions[interactions[y][1]-1] = 1
if temp_conditions == conditions: #checks if condition arrays match, if so, counter + 1
patient_zero += 1
print(patient_zero)
| n_t = input().split()
n = int(N_T[0])
t = int(N_T[1])
interactions = []
input_condition = input()
conditions = list(input_condition)
conditions = [int(x) for x in conditions]
for x in range(T):
input_line = input().split()
input_line = [int(x) for x in input_line]
interactions.append(input_line)
sorted_interactions = sorted(interactions)
largest_k = 0
minimum_k = T
patient_zero = 0
for cow_num in range(0, N):
temp_conditions = [0 for x in range(len(conditions))]
temp_conditions[cow_num] = 1
for y in range(0, len(interactions)):
if cow_num == interactions[y][1] - 1:
temp_conditions[interactions[y][2] - 1] = 1
elif cow_num == interactions[y][2] - 1:
temp_conditions[interactions[y][1] - 1] = 1
if temp_conditions == conditions:
patient_zero += 1
print(patient_zero) |
#WAP to calculate and display the factorial of
#an inputted number.
num = int(input("enter the range for factorial: "))
f = 1
if num < 0:
print("factorial does not exist")
elif num == 0:
print("The factorial of 0 is 1")
else:
for i in range(1,num + 1):
f = f * i
print("The factorial of",num,"is",f)
| num = int(input('enter the range for factorial: '))
f = 1
if num < 0:
print('factorial does not exist')
elif num == 0:
print('The factorial of 0 is 1')
else:
for i in range(1, num + 1):
f = f * i
print('The factorial of', num, 'is', f) |
def pascal_nth_row(line_num):
if line_num == 0:
return [1]
line = [1]
last_line = pascal_nth_row(line_num - 1)
for i in range(len(last_line) - 1):
line.append(last_line[i] + last_line[i + 1])
line.append(1)
# line here will the line at num line_num
return line
print(pascal_nth_row(5)) | def pascal_nth_row(line_num):
if line_num == 0:
return [1]
line = [1]
last_line = pascal_nth_row(line_num - 1)
for i in range(len(last_line) - 1):
line.append(last_line[i] + last_line[i + 1])
line.append(1)
return line
print(pascal_nth_row(5)) |
#Attept a
def isPerfectSquare(n):
if n <= 1:
return True
start = 0
end = n//2
while((end - start) > 1):
mid = (start + end)//2
sq = mid*mid
print(mid, sq, start, end)
if sq == n:
return True
if sq > n:
end = mid
if sq < n:
start = mid
return False
s = 1111*1111
print(isPerfectSquare(s))
| def is_perfect_square(n):
if n <= 1:
return True
start = 0
end = n // 2
while end - start > 1:
mid = (start + end) // 2
sq = mid * mid
print(mid, sq, start, end)
if sq == n:
return True
if sq > n:
end = mid
if sq < n:
start = mid
return False
s = 1111 * 1111
print(is_perfect_square(s)) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
base_url = "https://es.wikiquote.org/w/api.php"
quote_of_the_day_url = "https://es.wikiquote.org/wiki/Portada"
def quote_of_the_day_parser(html):
table = html("table")[1]("table")[0]
quote = table("td")[3].text.strip()
author = table("td")[5].div.a.text.strip()
# Author and quote could have an accent
return (quote, author)
non_quote_sections = ["sobre", "referencias"]
| base_url = 'https://es.wikiquote.org/w/api.php'
quote_of_the_day_url = 'https://es.wikiquote.org/wiki/Portada'
def quote_of_the_day_parser(html):
table = html('table')[1]('table')[0]
quote = table('td')[3].text.strip()
author = table('td')[5].div.a.text.strip()
return (quote, author)
non_quote_sections = ['sobre', 'referencias'] |
# membuat tupple
buah = ('anggur', 'jeruk', 'mangga')
print(buah) # output: ('anggur', 'jeruk', 'mangga')
| buah = ('anggur', 'jeruk', 'mangga')
print(buah) |
class Solution:
def searchMatrix(self, matrix: 'List[List[int]]', target: int) -> bool:
m = len(matrix)
if m == 0:
return False
n = len(matrix[0])
if n == 0:
return False
left, right = 0, m * n
while left + 1 < right:
mid = (left + right) >> 1
num = matrix[mid // n][mid % n]
if num < target:
left = mid
elif num > target:
right = mid
else:
return True
return matrix[left // n][left % n] == target
if __name__ == "__main__":
# matrix = [
# [1, 3, 5, 7],
# [10, 11, 16, 20],
# [23, 30, 34, 50]
# ]
# target = 3
# print(Solution().searchMatrix(matrix, target))
#
# matrix = [
# [1, 3, 5, 7],
# [10, 11, 16, 20],
# [23, 30, 34, 50]
# ]
# target = 13
# print(Solution().searchMatrix(matrix, target))
matrix = [[]]
target = 1
print(Solution().searchMatrix(matrix, target))
| class Solution:
def search_matrix(self, matrix: 'List[List[int]]', target: int) -> bool:
m = len(matrix)
if m == 0:
return False
n = len(matrix[0])
if n == 0:
return False
(left, right) = (0, m * n)
while left + 1 < right:
mid = left + right >> 1
num = matrix[mid // n][mid % n]
if num < target:
left = mid
elif num > target:
right = mid
else:
return True
return matrix[left // n][left % n] == target
if __name__ == '__main__':
matrix = [[]]
target = 1
print(solution().searchMatrix(matrix, target)) |
#Eoin Lees
student = {
"name":"Mary",
"modules": [
{
"courseName":"Programming",
"grade":45
},
{
"courseName":"History",
"grade":99
}
]
}
print ("Student: {}".format(student["name"]))
for module in student["modules"]:
print("\t {} \t: {}".format(module["courseName"], module["grade"])) | student = {'name': 'Mary', 'modules': [{'courseName': 'Programming', 'grade': 45}, {'courseName': 'History', 'grade': 99}]}
print('Student: {}'.format(student['name']))
for module in student['modules']:
print('\t {} \t: {}'.format(module['courseName'], module['grade'])) |
# crypto_test.py 21/05/2016 D.J.Whale
#
# Placeholder for test harness for crypto.py
#TODO:
print("no tests defined")
# END
| print('no tests defined') |
class Node:
def __init__(self, data):
self.data = data
self.both = id(data)
def __repr__(self):
return str(self.data)
a = Node("a")
b = Node("b")
c = Node("c")
d = Node("d")
e = Node("e")
# id_map simulates object pointer values
id_map = dict()
id_map[id("a")] = a
id_map[id("b")] = b
id_map[id("c")] = c
id_map[id("d")] = d
id_map[id("e")] = e
class LinkedList:
def __init__(self, node):
self.head = node
self.tail = node
self.head.both = 0
self.tail.both = 0
def add(self, element):
self.tail.both ^= id(element.data)
element.both = id(self.tail.data)
self.tail = element
def get(self, index):
prev_node_address = 0
result_node = self.head
for i in range(index):
next_node_address = prev_node_address ^ result_node.both
prev_node_address = id(result_node.data)
result_node = id_map[next_node_address]
return result_node.data
llist = LinkedList(c)
llist.add(d)
llist.add(e)
llist.add(a)
assert llist.get(0) == "c"
assert llist.get(1) == "d"
assert llist.get(2) == "e"
assert llist.get(3) == "a"
| class Node:
def __init__(self, data):
self.data = data
self.both = id(data)
def __repr__(self):
return str(self.data)
a = node('a')
b = node('b')
c = node('c')
d = node('d')
e = node('e')
id_map = dict()
id_map[id('a')] = a
id_map[id('b')] = b
id_map[id('c')] = c
id_map[id('d')] = d
id_map[id('e')] = e
class Linkedlist:
def __init__(self, node):
self.head = node
self.tail = node
self.head.both = 0
self.tail.both = 0
def add(self, element):
self.tail.both ^= id(element.data)
element.both = id(self.tail.data)
self.tail = element
def get(self, index):
prev_node_address = 0
result_node = self.head
for i in range(index):
next_node_address = prev_node_address ^ result_node.both
prev_node_address = id(result_node.data)
result_node = id_map[next_node_address]
return result_node.data
llist = linked_list(c)
llist.add(d)
llist.add(e)
llist.add(a)
assert llist.get(0) == 'c'
assert llist.get(1) == 'd'
assert llist.get(2) == 'e'
assert llist.get(3) == 'a' |
#!/usr/bin/env python3
# --------------------( LICENSE )--------------------
# Copyright (c) 2014-2022 Beartype authors.
# See "LICENSE" for further details.
'''
Project-wide **unimportable data submodule.**
This submodule exercises dynamic importability by providing an unimportable
submodule defining an arbitrary attribute. External unit tests are expected to
dynamically import this attribute from this submodule.
'''
# ....................{ EXCEPTIONS }....................
raise ValueError(
'Can you imagine a fulfilled society? '
'Whoa, what would everyone do?'
)
| """
Project-wide **unimportable data submodule.**
This submodule exercises dynamic importability by providing an unimportable
submodule defining an arbitrary attribute. External unit tests are expected to
dynamically import this attribute from this submodule.
"""
raise value_error('Can you imagine a fulfilled society? Whoa, what would everyone do?') |
while True:
print("hello")
if 2<1:
2
print('hi') | while True:
print('hello')
if 2 < 1:
2
print('hi') |
'''
A submodule for doing basic error analysis for experimental
physics results.
'''
def average(values):
# TODO: add documentation
pass
def percent_diff(expected, actual):
# TODO: add documentation
pass | """
A submodule for doing basic error analysis for experimental
physics results.
"""
def average(values):
pass
def percent_diff(expected, actual):
pass |
# A list is a collection which is ordered and changeable. In Python lists are written with square brackets.
thislist = ["apple", "banana", "cherry", "orange", "kiwi", "melon", "mango"]
print(thislist)
# You access the list items by referring to the index number
# Print the second item of the list
print("The second element of list are:" + thislist[1]);
# Negative indexing means beginning from the end, -1 refers to the last item,
# -2 refers to the second last item etc.
# Print the last item of the list
print("The last element of list are:" + thislist[-1] );
# You can specify a range of indexes by specifying where to start and where to end the range.
# When specifying a range, the return value will be a new list with the specified items.
# Return the third, fourth, and fifth item
print("The 3rd 4th and 5th item of list are:");
print(thislist[2:5]);
# This example returns the items from the beginning to "orange"
print(thislist[:4]);
# This example returns the items from "cherry" and to the en
print(thislist[2:]);
# Specify negative indexes if we want to start the search from the end of the list
print(thislist[-4:-1]);
# To change the value of a specific item, refer to the index number
thislist[1] = "blackcurrant";
print(thislist);
# You can loop through the list items by using a for loop
for item in thislist:
print(item);
# To determine if a specified item is present in a list use the in keyword
if "apple" in thislist:
print("Yes, 'apple' is in the fruits list")
else:
print("No, 'apple' is not in the fruits list")
#To determine how many items a list has, use the len() function
txt = "The length of list are {}";
length = len(thislist);
print(txt.format(length));
# To add an item to the end of the list, use the append() method
thislist.append("pineapple");
print(thislist);
# To add an item at the specified index, use the insert() method
thislist.insert(0,"Delicious Apple");
print(thislist);
# The remove() method removes the specified item
thislist.remove("orange");
print(thislist);
# The pop() method removes the specified index, (or the last item if index is not specified
thislist.pop();
print(thislist);
# The del keyword removes the specified index
thislist = ["apple", "banana", "cherry"]
del thislist[0]
print(thislist)
# The del keyword can also delete the list completely
del thislist;
# print(thislist);
# The clear() method empties the list
thislist = ["apple", "banana", "cherry"];
thislist.clear();
print(thislist);
# You cannot copy a list simply by typing list2 = list1,
# because: list2 will only be a reference to list1,
# and changes made in list1 will automatically also be made in list2.
# There are ways to make a copy, one way is to use the built-in List method copy().
# Make a copy of a list with the copy() method
thislist = ["apple", "banana", "cherry"]
mylist = thislist.copy()
print(mylist)
# Another way to make a copy is to use the built-in method list()
# Make a copy of a list with the list() method
mylist = list(thislist)
print(mylist)
# There are several ways to join, or concatenate, two or more lists in Python.
# One of the easiest ways are by using the + operator.
list1 = ["a", "b" , "c"]
list2 = [1, 2, 3]
list3 = list1 + list2
print(list3)
# Another way to join two lists are by appending all the items from list2 into list1, one by one:
list1 = ["a", "b" , "c"]
list2 = [5, 6, 7]
for x in list2:
list1.append(x)
print(list1)
# you can use the extend() method, which purpose is to add elements from one list to another list
list1 = ["a", "b" , "c"]
list2 = [8, 9, 10]
list1.extend(list2)
print(list1)
# It is also possible to use the list() constructor to make a new list
thislist = list(("apple", "banana", "cherry")) # note the double round-brackets
print(thislist)
# we can sort the list using the sort() method
print(thislist.sort()); | thislist = ['apple', 'banana', 'cherry', 'orange', 'kiwi', 'melon', 'mango']
print(thislist)
print('The second element of list are:' + thislist[1])
print('The last element of list are:' + thislist[-1])
print('The 3rd 4th and 5th item of list are:')
print(thislist[2:5])
print(thislist[:4])
print(thislist[2:])
print(thislist[-4:-1])
thislist[1] = 'blackcurrant'
print(thislist)
for item in thislist:
print(item)
if 'apple' in thislist:
print("Yes, 'apple' is in the fruits list")
else:
print("No, 'apple' is not in the fruits list")
txt = 'The length of list are {}'
length = len(thislist)
print(txt.format(length))
thislist.append('pineapple')
print(thislist)
thislist.insert(0, 'Delicious Apple')
print(thislist)
thislist.remove('orange')
print(thislist)
thislist.pop()
print(thislist)
thislist = ['apple', 'banana', 'cherry']
del thislist[0]
print(thislist)
del thislist
thislist = ['apple', 'banana', 'cherry']
thislist.clear()
print(thislist)
thislist = ['apple', 'banana', 'cherry']
mylist = thislist.copy()
print(mylist)
mylist = list(thislist)
print(mylist)
list1 = ['a', 'b', 'c']
list2 = [1, 2, 3]
list3 = list1 + list2
print(list3)
list1 = ['a', 'b', 'c']
list2 = [5, 6, 7]
for x in list2:
list1.append(x)
print(list1)
list1 = ['a', 'b', 'c']
list2 = [8, 9, 10]
list1.extend(list2)
print(list1)
thislist = list(('apple', 'banana', 'cherry'))
print(thislist)
print(thislist.sort()) |
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="gprpy",
version="1.0.8",
author="Alain Plattner",
author_email="plattner@alumni.ethz.ch",
description="GPRPy - open source ground penetrating radar processing and visualization",
entry_points={'console_scripts': ['gprpy = gprpy.__main__:main']},
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/NSGeophysics/GPRPy",
packages=['gprpy'],
package_data={'gprpy': ['exampledata/GSSI/*.DZT',
'exampledata/GSSI/*.txt',
'exampledata/SnS/ComOffs/*.xyz',
'exampledata/SnS/ComOffs/*.DT1',
'exampledata/SnS/ComOffs/*.HD',
'exampledata/SnS/WARR/*.DT1',
'exampledata/SnS/WARR/*.HD',
'exampledata/pickedSurfaceData/*.txt',
'examplescripts/*.py',
'toolbox/splashdat/*.png',
'toolbox/*.py',
'irlib/*.py',
'irlib/external/*.py']},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=['tqdm','numpy','scipy','matplotlib','Pmw','pyevtk']
)
| with open('README.md', 'r') as fh:
long_description = fh.read()
setuptools.setup(name='gprpy', version='1.0.8', author='Alain Plattner', author_email='plattner@alumni.ethz.ch', description='GPRPy - open source ground penetrating radar processing and visualization', entry_points={'console_scripts': ['gprpy = gprpy.__main__:main']}, long_description=long_description, long_description_content_type='text/markdown', url='https://github.com/NSGeophysics/GPRPy', packages=['gprpy'], package_data={'gprpy': ['exampledata/GSSI/*.DZT', 'exampledata/GSSI/*.txt', 'exampledata/SnS/ComOffs/*.xyz', 'exampledata/SnS/ComOffs/*.DT1', 'exampledata/SnS/ComOffs/*.HD', 'exampledata/SnS/WARR/*.DT1', 'exampledata/SnS/WARR/*.HD', 'exampledata/pickedSurfaceData/*.txt', 'examplescripts/*.py', 'toolbox/splashdat/*.png', 'toolbox/*.py', 'irlib/*.py', 'irlib/external/*.py']}, classifiers=['Programming Language :: Python :: 3', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent'], install_requires=['tqdm', 'numpy', 'scipy', 'matplotlib', 'Pmw', 'pyevtk']) |
class _Emojis:
def __init__(self):
self.key = "\U0001F511"
self.link = "\U0001F4CE"
self.alert = "\U0001F6A8"
self.ghost = "\U0001F47B"
self.package = "\U0001F4E6"
self.folder = "\U0001F5C2"
self.bell = "\U0001F514"
self.dissy = "\U0001F4AB"
self.genie = "\U0001F9DE"
self.linked_paperclip = "\U0001F587"
self.file_cabinet = "\U0001F5C3"
self.graduation_cap = "\U0001F393"
self.safety_helmet = "\U000026D1"
self.grinning_cat1 = "\U0001F638"
self.fire = "\U0001F525"
self.pan = "\U0001F373"
Emojis = _Emojis() | class _Emojis:
def __init__(self):
self.key = '🔑'
self.link = '📎'
self.alert = '🚨'
self.ghost = '👻'
self.package = '📦'
self.folder = '🗂'
self.bell = '🔔'
self.dissy = '💫'
self.genie = '🧞'
self.linked_paperclip = '🖇'
self.file_cabinet = '🗃'
self.graduation_cap = '🎓'
self.safety_helmet = '⛑'
self.grinning_cat1 = '😸'
self.fire = '🔥'
self.pan = '🍳'
emojis = __emojis() |
icu_sources = [
'utypes.cpp',
'uloc.cpp',
'ustring.cpp',
'ucase.cpp',
'ubrk.cpp',
'brkiter.cpp',
'filteredbrk.cpp',
'ucharstriebuilder.cpp',
'uobject.cpp',
'resbund.cpp',
'servrbf.cpp',
'servlkf.cpp',
'serv.cpp',
'servnotf.cpp',
'servls.cpp',
'servlk.cpp',
'servslkf.cpp',
'stringtriebuilder.cpp',
'uvector.cpp',
'ustrenum.cpp',
'uenum.cpp',
'unistr.cpp',
'appendable.cpp',
'rbbi.cpp',
'rbbi_cache.cpp',
'cstring.cpp',
'umath.cpp',
'charstr.cpp',
'rbbidata.cpp',
'ustrfmt.cpp',
'ucharstrie.cpp',
'uloc_keytype.cpp',
'uhash.cpp',
'locdispnames.cpp',
'brkeng.cpp',
'dictionarydata.cpp',
'udataswp.cpp',
'uinvchar.cpp',
'uresbund.cpp',
'uresdata.cpp', # modified due to duplicate symbol `gEmptyString2`
'resource.cpp',
'locavailable.cpp',
'utrie2.cpp',
'ucol_swp.cpp',
'utrie_swap.cpp',
'schriter.cpp',
'uchriter.cpp',
'locid.cpp', # modified due to duplicate include `bytesinkutil.h`
'locbased.cpp',
'chariter.cpp',
'uvectr32.cpp',
'bytestrie.cpp',
'ustack.cpp',
'umutex.cpp',
'uniset.cpp', # modified due to duplicate symbol `compareUnicodeString2`
'stringpiece.cpp',
'locutil.cpp',
'unifilt.cpp',
'util.cpp', # modified due to duplicate symbol `BACKSLASH2`, `UPPER_U2`, and `LOWER_U2`
'bmpset.cpp',
'unifunct.cpp',
'unisetspan.cpp',
'uniset_props.cpp', # modified due to duplicate include `_dbgct2`
'patternprops.cpp',
'bytesinkutil.cpp', # modified due to duplicate include `bytesinkutil.h`
'dictbe.cpp',
'rbbirb.cpp',
'utext.cpp', # modified due to duplicate symbol `gEmptyString3`
'utf_impl.cpp',
'propsvec.cpp',
'locmap.cpp',
'loclikely.cpp',
'uloc_tag.cpp',
'ustrtrns.cpp',
'udatamem.cpp',
'putil.cpp',
'uhash_us.cpp',
'uprops.cpp',
'uchar.cpp', # modified due to duplicate symbol `_enumPropertyStartsRange2`
'parsepos.cpp',
'ruleiter.cpp',
'rbbitblb.cpp',
'edits.cpp',
'rbbinode.cpp',
'bytestream.cpp',
'rbbiscan.cpp',
'loadednormalizer2impl.cpp',
'characterproperties.cpp',
'locresdata.cpp',
'normalizer2impl.cpp', # modified due to duplicate include `bytesinkutil.h`
'normalizer2.cpp',
'rbbisetb.cpp',
'rbbistbl.cpp',
'unistr_case.cpp',
'unames.cpp', # modified due to duplicate symbol `DATA_TYPE2`
'propname.cpp',
'ustrcase.cpp',
'ustrcase_locale.cpp',
'ubidi.cpp',
'ucptrie.cpp',
'umutablecptrie.cpp', # modified due to duplicate symbol `getRange2` and `OVERFLOW2`
'cmemory.cpp',
'utrie2_builder.cpp', # modified due to duplicate symbol `writeBlock2`
'uscript.cpp',
'uscript_props.cpp',
'utrie.cpp', # modified due to duplicate symbol `equal_uint322` and `enumSameValue2`
'ucmndata.cpp',
'uarrsort.cpp',
'umapfile.cpp',
'ucln_cmn.cpp', # modified due to duplicate include `ucln_imp.h`
'uregex.cpp', # modified due to duplicate symbol `BACKSLASH3`
'ucol.cpp',
'coll.cpp', # modified due to duplicate symbol `gService2`, `getService2`, `initService2`, `hasService2`, `availableLocaleList2`
'collation.cpp',
'ucoleitr.cpp',
'rematch.cpp', # modified due to duplicate symbol `BACKSLASH4`
'regexcmp.cpp',
'repattrn.cpp',
'collationroot.cpp',
'ucol_res.cpp',
'collationbuilder.cpp',
'coleitr.cpp',
'sharedobject.cpp',
'collationdata.cpp',
'uiter.cpp',
'ucln_in.cpp', # modified due to duplicate symbol `copyright2` and duplicate include `ucln_imp.h`
'uniset_closure.cpp',
'unifiedcache.cpp', # modified due to duplicate symbol `gCacheInitOnce2`
'regexst.cpp',
'collationweights.cpp',
'caniter.cpp',
'collationiterator.cpp',
'collationfastlatin.cpp',
'collationtailoring.cpp',
'usetiter.cpp',
'collationdatareader.cpp',
'collationruleparser.cpp',
'collationdatabuilder.cpp',
'regeximp.cpp',
'collationsets.cpp',
'utf16collationiterator.cpp',
'uvectr64.cpp',
'rulebasedcollator.cpp',
'collationrootelements.cpp',
'ucol_sit.cpp', # modified due to duplicate symbol `internalBufferSize2`
'ulist.cpp',
'uset.cpp',
'regextxt.cpp',
'ucharstrieiterator.cpp',
'collationfcd.cpp',
'collationkeys.cpp',
'unistr_case_locale.cpp',
'collationsettings.cpp',
'collationcompare.cpp',
'utf8collationiterator.cpp',
'uitercollationiterator.cpp',
'collationfastlatinbuilder.cpp',
'collationdatawriter.cpp',
'uset_props.cpp',
'utrace.cpp',
'sortkey.cpp',
'unistr_titlecase_brkiter.cpp',
'ubidi_props.cpp', # modified due to duplicate symbol `_enumPropertyStartsRange3`
'bocsu.cpp',
'ubidiln.cpp',
'ubidiwrt.cpp',
'ustr_titlecase_brkiter.cpp',
'wintz.cpp',
'stubdata.cpp',
'udata.cpp',
# modified due to to comment out `extern "C" const DataHeader U_DATA_API
# U_ICUDATA_ENTRY_POINT;` and cast `(const DataHeader*)` due to
# stubdata.cpp being added
]
# Other modifications:
# Modify: regexcst.h
# Replace the header gaurd with:
# #ifndef REGEXCST_H
# #define REGEXCST_H
# Modify: regexcmp.h
# Replace the header gaurd with:
# #ifndef REGEXCMP_H
# #define REGEXCMP_H
# Modify: regexcst.h
# Append '2' to every enum in Regex_PatternParseAction
# Replace all of the references to those enums in regexcst.h and regexcmp.cpp
# Modify: regexcst.h
# Replace: `gRuleParseStateTable` symbol with `gRuleParseStateTable2`
# Replace with `gRuleParseStateTable` in regexcmp.cpp
| icu_sources = ['utypes.cpp', 'uloc.cpp', 'ustring.cpp', 'ucase.cpp', 'ubrk.cpp', 'brkiter.cpp', 'filteredbrk.cpp', 'ucharstriebuilder.cpp', 'uobject.cpp', 'resbund.cpp', 'servrbf.cpp', 'servlkf.cpp', 'serv.cpp', 'servnotf.cpp', 'servls.cpp', 'servlk.cpp', 'servslkf.cpp', 'stringtriebuilder.cpp', 'uvector.cpp', 'ustrenum.cpp', 'uenum.cpp', 'unistr.cpp', 'appendable.cpp', 'rbbi.cpp', 'rbbi_cache.cpp', 'cstring.cpp', 'umath.cpp', 'charstr.cpp', 'rbbidata.cpp', 'ustrfmt.cpp', 'ucharstrie.cpp', 'uloc_keytype.cpp', 'uhash.cpp', 'locdispnames.cpp', 'brkeng.cpp', 'dictionarydata.cpp', 'udataswp.cpp', 'uinvchar.cpp', 'uresbund.cpp', 'uresdata.cpp', 'resource.cpp', 'locavailable.cpp', 'utrie2.cpp', 'ucol_swp.cpp', 'utrie_swap.cpp', 'schriter.cpp', 'uchriter.cpp', 'locid.cpp', 'locbased.cpp', 'chariter.cpp', 'uvectr32.cpp', 'bytestrie.cpp', 'ustack.cpp', 'umutex.cpp', 'uniset.cpp', 'stringpiece.cpp', 'locutil.cpp', 'unifilt.cpp', 'util.cpp', 'bmpset.cpp', 'unifunct.cpp', 'unisetspan.cpp', 'uniset_props.cpp', 'patternprops.cpp', 'bytesinkutil.cpp', 'dictbe.cpp', 'rbbirb.cpp', 'utext.cpp', 'utf_impl.cpp', 'propsvec.cpp', 'locmap.cpp', 'loclikely.cpp', 'uloc_tag.cpp', 'ustrtrns.cpp', 'udatamem.cpp', 'putil.cpp', 'uhash_us.cpp', 'uprops.cpp', 'uchar.cpp', 'parsepos.cpp', 'ruleiter.cpp', 'rbbitblb.cpp', 'edits.cpp', 'rbbinode.cpp', 'bytestream.cpp', 'rbbiscan.cpp', 'loadednormalizer2impl.cpp', 'characterproperties.cpp', 'locresdata.cpp', 'normalizer2impl.cpp', 'normalizer2.cpp', 'rbbisetb.cpp', 'rbbistbl.cpp', 'unistr_case.cpp', 'unames.cpp', 'propname.cpp', 'ustrcase.cpp', 'ustrcase_locale.cpp', 'ubidi.cpp', 'ucptrie.cpp', 'umutablecptrie.cpp', 'cmemory.cpp', 'utrie2_builder.cpp', 'uscript.cpp', 'uscript_props.cpp', 'utrie.cpp', 'ucmndata.cpp', 'uarrsort.cpp', 'umapfile.cpp', 'ucln_cmn.cpp', 'uregex.cpp', 'ucol.cpp', 'coll.cpp', 'collation.cpp', 'ucoleitr.cpp', 'rematch.cpp', 'regexcmp.cpp', 'repattrn.cpp', 'collationroot.cpp', 'ucol_res.cpp', 'collationbuilder.cpp', 'coleitr.cpp', 'sharedobject.cpp', 'collationdata.cpp', 'uiter.cpp', 'ucln_in.cpp', 'uniset_closure.cpp', 'unifiedcache.cpp', 'regexst.cpp', 'collationweights.cpp', 'caniter.cpp', 'collationiterator.cpp', 'collationfastlatin.cpp', 'collationtailoring.cpp', 'usetiter.cpp', 'collationdatareader.cpp', 'collationruleparser.cpp', 'collationdatabuilder.cpp', 'regeximp.cpp', 'collationsets.cpp', 'utf16collationiterator.cpp', 'uvectr64.cpp', 'rulebasedcollator.cpp', 'collationrootelements.cpp', 'ucol_sit.cpp', 'ulist.cpp', 'uset.cpp', 'regextxt.cpp', 'ucharstrieiterator.cpp', 'collationfcd.cpp', 'collationkeys.cpp', 'unistr_case_locale.cpp', 'collationsettings.cpp', 'collationcompare.cpp', 'utf8collationiterator.cpp', 'uitercollationiterator.cpp', 'collationfastlatinbuilder.cpp', 'collationdatawriter.cpp', 'uset_props.cpp', 'utrace.cpp', 'sortkey.cpp', 'unistr_titlecase_brkiter.cpp', 'ubidi_props.cpp', 'bocsu.cpp', 'ubidiln.cpp', 'ubidiwrt.cpp', 'ustr_titlecase_brkiter.cpp', 'wintz.cpp', 'stubdata.cpp', 'udata.cpp'] |
while(True):
try:
x, a, y, b = map(int, input().split())
if(x * b == a * y):
print("=")
elif (x * b > a * y):
print(">")
else:
print("<")
except:
exit()
| while True:
try:
(x, a, y, b) = map(int, input().split())
if x * b == a * y:
print('=')
elif x * b > a * y:
print('>')
else:
print('<')
except:
exit() |
META = [{
'lookup': 'city',
'tag': 'city',
'path': ['names','en'],
},{
'lookup': 'continent',
'tag': 'continent',
'path': ['names','en'],
},{
'lookup': 'continent_code',
'tag': 'continent',
'path': ['code'],
},{
'lookup': 'country',
'tag': 'country',
'path': ['names','en'],
},{
'lookup': 'iso_code',
'tag': 'country',
'path': ['iso_code'],
},{
'lookup': 'latitude',
'tag': 'location',
'path': ['latitude'],
},{
'lookup': 'longitude',
'tag': 'location',
'path': ['longitude'],
},{
'lookup': 'metro_code',
'tag': 'location',
'path': ['metro_code'],
},{
'lookup': 'postal_code',
'tag': 'postal',
'path': ['code'],
}]
PORTMAP = {
0:"DoS", # Denial of Service
1:"ICMP", # ICMP
20:"FTP", # FTP Data
21:"FTP", # FTP Control
22:"SSH", # SSH
23:"TELNET", # Telnet
25:"EMAIL", # SMTP
43:"WHOIS", # Whois
53:"DNS", # DNS
80:"HTTP", # HTTP
88:"AUTH", # Kerberos
109:"EMAIL", # POP v2
110:"EMAIL", # POP v3
115:"FTP", # SFTP
118:"SQL", # SQL
143:"EMAIL", # IMAP
156:"SQL", # SQL
161:"SNMP", # SNMP
220:"EMAIL", # IMAP v3
389:"AUTH", # LDAP
443:"HTTPS", # HTTPS
445:"SMB", # SMB
636:"AUTH", # LDAP of SSL/TLS
1433:"SQL", # MySQL Server
1434:"SQL", # MySQL Monitor
3306:"SQL", # MySQL
3389:"RDP", # RDP
5900:"RDP", # VNC:0
5901:"RDP", # VNC:1
5902:"RDP", # VNC:2
5903:"RDP", # VNC:3
8080:"HTTP", # HTTP Alternative
}
| meta = [{'lookup': 'city', 'tag': 'city', 'path': ['names', 'en']}, {'lookup': 'continent', 'tag': 'continent', 'path': ['names', 'en']}, {'lookup': 'continent_code', 'tag': 'continent', 'path': ['code']}, {'lookup': 'country', 'tag': 'country', 'path': ['names', 'en']}, {'lookup': 'iso_code', 'tag': 'country', 'path': ['iso_code']}, {'lookup': 'latitude', 'tag': 'location', 'path': ['latitude']}, {'lookup': 'longitude', 'tag': 'location', 'path': ['longitude']}, {'lookup': 'metro_code', 'tag': 'location', 'path': ['metro_code']}, {'lookup': 'postal_code', 'tag': 'postal', 'path': ['code']}]
portmap = {0: 'DoS', 1: 'ICMP', 20: 'FTP', 21: 'FTP', 22: 'SSH', 23: 'TELNET', 25: 'EMAIL', 43: 'WHOIS', 53: 'DNS', 80: 'HTTP', 88: 'AUTH', 109: 'EMAIL', 110: 'EMAIL', 115: 'FTP', 118: 'SQL', 143: 'EMAIL', 156: 'SQL', 161: 'SNMP', 220: 'EMAIL', 389: 'AUTH', 443: 'HTTPS', 445: 'SMB', 636: 'AUTH', 1433: 'SQL', 1434: 'SQL', 3306: 'SQL', 3389: 'RDP', 5900: 'RDP', 5901: 'RDP', 5902: 'RDP', 5903: 'RDP', 8080: 'HTTP'} |
# Example: Fetch single bridge by ID
my_bridge = api.get_bridge('brg-bridgeId')
print(my_bridge)
## { 'bridgeAudio': True,
## 'calls' : 'https://api.catapult.inetwork.com/v1/users/u-123/bridges/brg-bridgeId/calls',
## 'createdTime': '2017-01-26T01:15:09Z',
## 'id' : 'brg-bridgeId',
## 'state' : 'created'}
print(my_bridge["state"])
## created
| my_bridge = api.get_bridge('brg-bridgeId')
print(my_bridge)
print(my_bridge['state']) |
class Solution:
def isAdditiveNumber(self, num: str) -> bool:
l = len(num)
for i in range(1, (2 * l) // 3):
for j in range(0, i):
if num[0] == "0" and j + 1 != 1:
break
if num[j + 1] == "0" and i - j != 1:
continue
lst1, lst2 = int(num[0: j + 1]), int(num[j + 1: i + 1])
cur = i + 1
flag = 1
while cur < l:
nxt = lst1 + lst2
ll = len(str(nxt))
if ll + cur > l or int(num[cur: cur + ll]) != nxt:
flag = 0
break
cur += ll
lst1, lst2 = lst2, nxt
if not flag:
continue
else:
return True
return False | class Solution:
def is_additive_number(self, num: str) -> bool:
l = len(num)
for i in range(1, 2 * l // 3):
for j in range(0, i):
if num[0] == '0' and j + 1 != 1:
break
if num[j + 1] == '0' and i - j != 1:
continue
(lst1, lst2) = (int(num[0:j + 1]), int(num[j + 1:i + 1]))
cur = i + 1
flag = 1
while cur < l:
nxt = lst1 + lst2
ll = len(str(nxt))
if ll + cur > l or int(num[cur:cur + ll]) != nxt:
flag = 0
break
cur += ll
(lst1, lst2) = (lst2, nxt)
if not flag:
continue
else:
return True
return False |
# Database Config
config = {
'MYSQL_DATABASE_USER' : 'root', #Username for mysql
'MYSQL_DATABASE_DB' : 'CoveServices',
'MYSQL_DATABASE_PASSWORD' : 'root', # Password to connect to mysql
'MYSQL_DATABASE_HOST' : 'localhost',
'USERNAME' : '',
'USERID' :'',
} | config = {'MYSQL_DATABASE_USER': 'root', 'MYSQL_DATABASE_DB': 'CoveServices', 'MYSQL_DATABASE_PASSWORD': 'root', 'MYSQL_DATABASE_HOST': 'localhost', 'USERNAME': '', 'USERID': ''} |
nota1 = float(input())
while nota1 > 10 or nota1 < 0:
print('nota invalida')
nota1 = float(input())
nota2 = float(input())
while nota2 > 10 or nota2 < 0:
print('nota invalida')
nota2 = float(input())
media = (nota1+nota2)/2
print('media = %.2f'%media)
| nota1 = float(input())
while nota1 > 10 or nota1 < 0:
print('nota invalida')
nota1 = float(input())
nota2 = float(input())
while nota2 > 10 or nota2 < 0:
print('nota invalida')
nota2 = float(input())
media = (nota1 + nota2) / 2
print('media = %.2f' % media) |
# -*- coding: utf-8 -*-
# TODO: deprecated
URL_DID_SIGN_IN = '/api/v2/did/signin'
URL_DID_AUTH = '/api/v2/did/auth'
URL_DID_BACKUP_AUTH = '/api/v2/did/backup_auth'
URL_BACKUP_SERVICE = '/api/v2/internal_backup/service'
URL_BACKUP_FINISH = '/api/v2/internal_backup/finished_confirmation'
URL_BACKUP_FILES = '/api/v2/internal_backup/files'
URL_BACKUP_FILE = '/api/v2/internal_backup/file'
URL_BACKUP_PATCH_HASH = '/api/v2/internal_backup/patch_hash'
URL_BACKUP_PATCH_DELTA = '/api/v2/internal_backup/patch_delta'
URL_BACKUP_PATCH_FILE = '/api/v2/internal_backup/patch_file'
URL_RESTORE_FINISH = '/api/v2/internal_restore/finished_confirmation'
# TODO: deprecated
URL_IPFS_BACKUP_PIN_CIDS = '/api/v2/ipfs-backup-internal/pin_cids'
URL_IPFS_BACKUP_GET_CIDS = '/api/v2/ipfs-backup-internal/get_cids'
URL_IPFS_BACKUP_GET_DBFILES = '/api/v2/ipfs-backup-internal/get_dbfiles'
URL_IPFS_BACKUP_STATE = '/api/v2/ipfs-backup-internal/state'
URL_VAULT_BACKUP_SERVICE_BACKUP = '/api/v2/vault-backup-service/backup'
URL_VAULT_BACKUP_SERVICE_RESTORE = '/api/v2/vault-backup-service/restore'
URL_VAULT_BACKUP_SERVICE_STATE = '/api/v2/vault-backup-service/state'
BACKUP_FILE_SUFFIX = '.backup'
DID = 'did'
USR_DID = 'user_did'
APP_DID = 'app_did'
OWNER_ID = 'owner_id'
CREATE_TIME = 'create_time'
MODIFY_TIME = 'modify_time'
SIZE = 'size'
STATE = 'state'
STATE_RUNNING = 'running'
STATE_FINISH = 'finish'
STATE_FAILED = 'failed'
ORIGINAL_SIZE = 'original_size'
IS_UPGRADED = 'is_upgraded'
CID = 'cid'
COUNT = 'count'
COL_ORDERS = 'vault_order'
COL_ORDERS_SUBSCRIPTION = 'subscription'
COL_ORDERS_PRICING_NAME = 'pricing_name'
COL_ORDERS_ELA_AMOUNT = 'ela_amount'
COL_ORDERS_ELA_ADDRESS = 'ela_address'
COL_ORDERS_PROOF = 'proof'
COL_ORDERS_STATUS = 'status'
COL_ORDERS_STATUS_NORMAL = 'normal'
COL_ORDERS_STATUS_PAID = 'paid'
COL_ORDERS_STATUS_ARCHIVE = 'archive'
COL_RECEIPTS = 'vault_receipt'
COL_RECEIPTS_ID = 'receipt_id'
COL_RECEIPTS_ORDER_ID = 'order_id'
COL_RECEIPTS_TRANSACTION_ID = 'transaction_id'
COL_RECEIPTS_PAID_DID = 'paid_did'
COL_IPFS_FILES = 'ipfs_files'
COL_IPFS_FILES_PATH = 'path'
COL_IPFS_FILES_SHA256 = 'sha256'
COL_IPFS_FILES_IS_FILE = 'is_file'
COL_IPFS_FILES_IPFS_CID = 'ipfs_cid'
COL_IPFS_CID_REF = 'ipfs_cid_ref'
COL_IPFS_BACKUP_CLIENT = 'ipfs_backup_client'
COL_IPFS_BACKUP_SERVER = 'ipfs_backup_server'
BACKUP_TARGET_TYPE = 'type'
BACKUP_TARGET_TYPE_HIVE_NODE = 'hive_node'
BACKUP_TARGET_TYPE_GOOGLE_DRIVER = 'google_driver'
BACKUP_REQUEST_ACTION = 'action'
BACKUP_REQUEST_ACTION_BACKUP = 'backup'
BACKUP_REQUEST_ACTION_RESTORE = 'restore'
BACKUP_REQUEST_STATE = 'state'
BACKUP_REQUEST_STATE_STOP = 'stop'
BACKUP_REQUEST_STATE_INPROGRESS = 'process'
BACKUP_REQUEST_STATE_SUCCESS = 'success'
BACKUP_REQUEST_STATE_FAILED = 'failed'
BACKUP_REQUEST_STATE_MSG = 'state_msg'
BACKUP_REQUEST_TARGET_HOST = 'target_host'
BACKUP_REQUEST_TARGET_DID = 'target_did'
BACKUP_REQUEST_TARGET_TOKEN = 'target_token'
# For backup subscription.
BKSERVER_REQ_ACTION = 'req_action'
BKSERVER_REQ_STATE = 'req_state'
BKSERVER_REQ_STATE_MSG = 'req_state_msg'
BKSERVER_REQ_CID = 'req_cid'
BKSERVER_REQ_SHA256 = 'req_sha256'
BKSERVER_REQ_SIZE = 'req_size'
def get_unique_dict_item_from_list(dict_list: list):
if not dict_list:
return list()
return list({frozenset(item.items()): item for item in dict_list}.values())
| url_did_sign_in = '/api/v2/did/signin'
url_did_auth = '/api/v2/did/auth'
url_did_backup_auth = '/api/v2/did/backup_auth'
url_backup_service = '/api/v2/internal_backup/service'
url_backup_finish = '/api/v2/internal_backup/finished_confirmation'
url_backup_files = '/api/v2/internal_backup/files'
url_backup_file = '/api/v2/internal_backup/file'
url_backup_patch_hash = '/api/v2/internal_backup/patch_hash'
url_backup_patch_delta = '/api/v2/internal_backup/patch_delta'
url_backup_patch_file = '/api/v2/internal_backup/patch_file'
url_restore_finish = '/api/v2/internal_restore/finished_confirmation'
url_ipfs_backup_pin_cids = '/api/v2/ipfs-backup-internal/pin_cids'
url_ipfs_backup_get_cids = '/api/v2/ipfs-backup-internal/get_cids'
url_ipfs_backup_get_dbfiles = '/api/v2/ipfs-backup-internal/get_dbfiles'
url_ipfs_backup_state = '/api/v2/ipfs-backup-internal/state'
url_vault_backup_service_backup = '/api/v2/vault-backup-service/backup'
url_vault_backup_service_restore = '/api/v2/vault-backup-service/restore'
url_vault_backup_service_state = '/api/v2/vault-backup-service/state'
backup_file_suffix = '.backup'
did = 'did'
usr_did = 'user_did'
app_did = 'app_did'
owner_id = 'owner_id'
create_time = 'create_time'
modify_time = 'modify_time'
size = 'size'
state = 'state'
state_running = 'running'
state_finish = 'finish'
state_failed = 'failed'
original_size = 'original_size'
is_upgraded = 'is_upgraded'
cid = 'cid'
count = 'count'
col_orders = 'vault_order'
col_orders_subscription = 'subscription'
col_orders_pricing_name = 'pricing_name'
col_orders_ela_amount = 'ela_amount'
col_orders_ela_address = 'ela_address'
col_orders_proof = 'proof'
col_orders_status = 'status'
col_orders_status_normal = 'normal'
col_orders_status_paid = 'paid'
col_orders_status_archive = 'archive'
col_receipts = 'vault_receipt'
col_receipts_id = 'receipt_id'
col_receipts_order_id = 'order_id'
col_receipts_transaction_id = 'transaction_id'
col_receipts_paid_did = 'paid_did'
col_ipfs_files = 'ipfs_files'
col_ipfs_files_path = 'path'
col_ipfs_files_sha256 = 'sha256'
col_ipfs_files_is_file = 'is_file'
col_ipfs_files_ipfs_cid = 'ipfs_cid'
col_ipfs_cid_ref = 'ipfs_cid_ref'
col_ipfs_backup_client = 'ipfs_backup_client'
col_ipfs_backup_server = 'ipfs_backup_server'
backup_target_type = 'type'
backup_target_type_hive_node = 'hive_node'
backup_target_type_google_driver = 'google_driver'
backup_request_action = 'action'
backup_request_action_backup = 'backup'
backup_request_action_restore = 'restore'
backup_request_state = 'state'
backup_request_state_stop = 'stop'
backup_request_state_inprogress = 'process'
backup_request_state_success = 'success'
backup_request_state_failed = 'failed'
backup_request_state_msg = 'state_msg'
backup_request_target_host = 'target_host'
backup_request_target_did = 'target_did'
backup_request_target_token = 'target_token'
bkserver_req_action = 'req_action'
bkserver_req_state = 'req_state'
bkserver_req_state_msg = 'req_state_msg'
bkserver_req_cid = 'req_cid'
bkserver_req_sha256 = 'req_sha256'
bkserver_req_size = 'req_size'
def get_unique_dict_item_from_list(dict_list: list):
if not dict_list:
return list()
return list({frozenset(item.items()): item for item in dict_list}.values()) |
def input(channel):
pass
def wait_for_edge(channel, edge_type, timeout=None):
pass
def add_event_detect(channel, edge_type, callback=None, bouncetime=None):
pass
def add_event_callback(channel, callback, bouncetime=None):
pass
def event_detected(channel):
pass
def remove_event_detect(channel):
pass
| def input(channel):
pass
def wait_for_edge(channel, edge_type, timeout=None):
pass
def add_event_detect(channel, edge_type, callback=None, bouncetime=None):
pass
def add_event_callback(channel, callback, bouncetime=None):
pass
def event_detected(channel):
pass
def remove_event_detect(channel):
pass |
class Solution:
def generateParenthesis(self, n: int) -> List[str]:
st = []
res = []
def backtracking(op ,cl):
if op == cl == n :
res.append("".join(st))
return
if op < n :
st.append("(")
backtracking(op+1,cl)
st.pop()
if cl < op :
st.append(")")
backtracking(op,cl+1)
st.pop()
backtracking(0,0)
return res
| class Solution:
def generate_parenthesis(self, n: int) -> List[str]:
st = []
res = []
def backtracking(op, cl):
if op == cl == n:
res.append(''.join(st))
return
if op < n:
st.append('(')
backtracking(op + 1, cl)
st.pop()
if cl < op:
st.append(')')
backtracking(op, cl + 1)
st.pop()
backtracking(0, 0)
return res |
# Do not edit this file directly.
# It was auto-generated by: code/programs/reflexivity/reflexive_refresh
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def glog():
http_archive(
name="glog" ,
sha256="bae42ec37b50e156071f5b92d2ff09aa5ece56fd8c58d2175fc1ffea85137664" ,
strip_prefix="glog-0a2e5931bd5ff22fd3bf8999eb8ce776f159cda6" ,
urls = [
"https://github.com/Unilang/glog/archive/0a2e5931bd5ff22fd3bf8999eb8ce776f159cda6.tar.gz",
], repo_mapping = {
"@com_github_gflags_gflags" : "@gflags",
},
)
| load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive')
def glog():
http_archive(name='glog', sha256='bae42ec37b50e156071f5b92d2ff09aa5ece56fd8c58d2175fc1ffea85137664', strip_prefix='glog-0a2e5931bd5ff22fd3bf8999eb8ce776f159cda6', urls=['https://github.com/Unilang/glog/archive/0a2e5931bd5ff22fd3bf8999eb8ce776f159cda6.tar.gz'], repo_mapping={'@com_github_gflags_gflags': '@gflags'}) |
'''
Created on 14.10.2019
@author: JM
'''
class TMC2130_register_variant:
" ===== TMC2130 register variants ===== "
"..." | """
Created on 14.10.2019
@author: JM
"""
class Tmc2130_Register_Variant:
""" ===== TMC2130 register variants ===== """
'...' |
# Rainbow Grid handgezeichnet
add_library('handy')
def setup():
global h
h = HandyRenderer(this)
size(600, 600)
this.surface.setTitle("Rainbow Grid Handy")
rectMode(CENTER)
h.setRoughness(1)
h.setFillWeight(0.9)
h.setFillGap(0.9)
def draw():
colorMode(RGB)
background(235, 215, 182)
colorMode(HSB)
translate(12, 12)
for x in range(20):
for y in range(20):
d = dist(30*x, 30*y, mouseX, mouseY)
fill(0.5*d, 255, 255)
h.rect(x*30 + 3, y*30 + 3, 24, 24)
| add_library('handy')
def setup():
global h
h = handy_renderer(this)
size(600, 600)
this.surface.setTitle('Rainbow Grid Handy')
rect_mode(CENTER)
h.setRoughness(1)
h.setFillWeight(0.9)
h.setFillGap(0.9)
def draw():
color_mode(RGB)
background(235, 215, 182)
color_mode(HSB)
translate(12, 12)
for x in range(20):
for y in range(20):
d = dist(30 * x, 30 * y, mouseX, mouseY)
fill(0.5 * d, 255, 255)
h.rect(x * 30 + 3, y * 30 + 3, 24, 24) |
set_name(0x800A0CD8, "VID_OpenModule__Fv", SN_NOWARN)
set_name(0x800A0D98, "InitScreens__Fv", SN_NOWARN)
set_name(0x800A0E88, "MEM_SetupMem__Fv", SN_NOWARN)
set_name(0x800A0EB4, "SetupWorkRam__Fv", SN_NOWARN)
set_name(0x800A0F44, "SYSI_Init__Fv", SN_NOWARN)
set_name(0x800A1050, "GM_Open__Fv", SN_NOWARN)
set_name(0x800A1074, "PA_Open__Fv", SN_NOWARN)
set_name(0x800A10AC, "PAD_Open__Fv", SN_NOWARN)
set_name(0x800A10F0, "OVR_Open__Fv", SN_NOWARN)
set_name(0x800A1110, "SCR_Open__Fv", SN_NOWARN)
set_name(0x800A1140, "DEC_Open__Fv", SN_NOWARN)
set_name(0x800A13B4, "GetVersionString__FPc", SN_NOWARN)
set_name(0x800A1488, "GetWord__FPc", SN_NOWARN)
set_name(0x800A1164, "StrDate", SN_NOWARN)
set_name(0x800A1170, "StrTime", SN_NOWARN)
set_name(0x800A117C, "Words", SN_NOWARN)
set_name(0x800A1354, "MonDays", SN_NOWARN)
| set_name(2148142296, 'VID_OpenModule__Fv', SN_NOWARN)
set_name(2148142488, 'InitScreens__Fv', SN_NOWARN)
set_name(2148142728, 'MEM_SetupMem__Fv', SN_NOWARN)
set_name(2148142772, 'SetupWorkRam__Fv', SN_NOWARN)
set_name(2148142916, 'SYSI_Init__Fv', SN_NOWARN)
set_name(2148143184, 'GM_Open__Fv', SN_NOWARN)
set_name(2148143220, 'PA_Open__Fv', SN_NOWARN)
set_name(2148143276, 'PAD_Open__Fv', SN_NOWARN)
set_name(2148143344, 'OVR_Open__Fv', SN_NOWARN)
set_name(2148143376, 'SCR_Open__Fv', SN_NOWARN)
set_name(2148143424, 'DEC_Open__Fv', SN_NOWARN)
set_name(2148144052, 'GetVersionString__FPc', SN_NOWARN)
set_name(2148144264, 'GetWord__FPc', SN_NOWARN)
set_name(2148143460, 'StrDate', SN_NOWARN)
set_name(2148143472, 'StrTime', SN_NOWARN)
set_name(2148143484, 'Words', SN_NOWARN)
set_name(2148143956, 'MonDays', SN_NOWARN) |
__title__ = "Django REST framework Caching Tools"
__version__ = "1.0.3"
__author__ = "Vincent Wantchalk"
__license__ = "MIT"
__copyright__ = "Copyright 2011-2019 xsudo.com"
# Version synonym
VERSION = __version__
# Header encoding (see RFC5987)
HTTP_HEADER_ENCODING = "iso-8859-1"
default_app_config = "drf_cache.apps.DOTConfig"
| __title__ = 'Django REST framework Caching Tools'
__version__ = '1.0.3'
__author__ = 'Vincent Wantchalk'
__license__ = 'MIT'
__copyright__ = 'Copyright 2011-2019 xsudo.com'
version = __version__
http_header_encoding = 'iso-8859-1'
default_app_config = 'drf_cache.apps.DOTConfig' |
# Generate input data for EM 514, Homework Problem 8
def DefineInputs():
area = 200.0e-6
nodes = [{'x': 0.0e0, 'y': 0.0e0, 'z': 0.0e0, 'xflag': 'd', 'xbcval': 0.0, 'yflag': 'd', 'ybcval': 0.0e0, 'zflag': 'd', 'zbcval': 0.0e0}]
nodes.append({'x': 3.0e0, 'y': 0.0e0, 'z': 0.0e0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'f', 'ybcval': 0.0e0, 'zflag': 'd', 'zbcval': 0.0e0})
nodes.append({'x': 6.0e0, 'y': 0.0e0, 'z': 0.0e0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'f', 'ybcval': 0.0e0, 'zflag': 'd', 'zbcval': 0.0e0})
nodes.append({'x': 3.0e0, 'y': -4.0e0, 'z': 0.0e0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'f', 'ybcval': -9.0e3, 'zflag': 'd', 'zbcval': 0.0e0})
nodes.append({'x': 6.0e0, 'y': -4.0e0, 'z': 0.0e0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'f', 'ybcval': -15.0e3, 'zflag': 'd', 'zbcval': 0.0e0})
nodes.append({'x': 9.0e0, 'y': -4.0e0, 'z': 0.0e0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'd', 'ybcval': 0.0e0, 'zflag': 'd', 'zbcval': 0.0e0})
members = [{'start': 0, 'end': 1, 'E': 200.0e9, 'A': area, 'sigma_yield': 36.0e6, 'sigma_ult': 66.0e6}]
members.append({'start': 1, 'end': 2, 'E': 200.0e9, 'A': area, 'sigma_yield': 36.0e6, 'sigma_ult': 66.0e6})
members.append({'start': 0, 'end': 3, 'E': 200.0e9, 'A': area, 'sigma_yield': 36.0e6, 'sigma_ult': 66.0e6})
members.append({'start': 1, 'end': 3, 'E': 200.0e9, 'A': area, 'sigma_yield': 36.0e6, 'sigma_ult': 66.0e6})
members.append({'start': 2, 'end': 3, 'E': 200.0e9, 'A': area, 'sigma_yield': 36.0e6, 'sigma_ult': 66.0e6})
members.append({'start': 3, 'end': 4, 'E': 200.0e9, 'A': area, 'sigma_yield': 36.0e6, 'sigma_ult': 66.0e6})
members.append({'start': 2, 'end': 4, 'E': 200.0e9, 'A': area, 'sigma_yield': 36.0e6, 'sigma_ult': 66.0e6})
members.append({'start': 2, 'end': 5, 'E': 200.0e9, 'A': area, 'sigma_yield': 36.0e6, 'sigma_ult': 66.0e6})
members.append({'start': 4, 'end': 5, 'E': 200.0e9, 'A': area, 'sigma_yield': 36.0e6, 'sigma_ult': 66.0e6})
return nodes, members | def define_inputs():
area = 0.0002
nodes = [{'x': 0.0, 'y': 0.0, 'z': 0.0, 'xflag': 'd', 'xbcval': 0.0, 'yflag': 'd', 'ybcval': 0.0, 'zflag': 'd', 'zbcval': 0.0}]
nodes.append({'x': 3.0, 'y': 0.0, 'z': 0.0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'f', 'ybcval': 0.0, 'zflag': 'd', 'zbcval': 0.0})
nodes.append({'x': 6.0, 'y': 0.0, 'z': 0.0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'f', 'ybcval': 0.0, 'zflag': 'd', 'zbcval': 0.0})
nodes.append({'x': 3.0, 'y': -4.0, 'z': 0.0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'f', 'ybcval': -9000.0, 'zflag': 'd', 'zbcval': 0.0})
nodes.append({'x': 6.0, 'y': -4.0, 'z': 0.0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'f', 'ybcval': -15000.0, 'zflag': 'd', 'zbcval': 0.0})
nodes.append({'x': 9.0, 'y': -4.0, 'z': 0.0, 'xflag': 'f', 'xbcval': 0.0, 'yflag': 'd', 'ybcval': 0.0, 'zflag': 'd', 'zbcval': 0.0})
members = [{'start': 0, 'end': 1, 'E': 200000000000.0, 'A': area, 'sigma_yield': 36000000.0, 'sigma_ult': 66000000.0}]
members.append({'start': 1, 'end': 2, 'E': 200000000000.0, 'A': area, 'sigma_yield': 36000000.0, 'sigma_ult': 66000000.0})
members.append({'start': 0, 'end': 3, 'E': 200000000000.0, 'A': area, 'sigma_yield': 36000000.0, 'sigma_ult': 66000000.0})
members.append({'start': 1, 'end': 3, 'E': 200000000000.0, 'A': area, 'sigma_yield': 36000000.0, 'sigma_ult': 66000000.0})
members.append({'start': 2, 'end': 3, 'E': 200000000000.0, 'A': area, 'sigma_yield': 36000000.0, 'sigma_ult': 66000000.0})
members.append({'start': 3, 'end': 4, 'E': 200000000000.0, 'A': area, 'sigma_yield': 36000000.0, 'sigma_ult': 66000000.0})
members.append({'start': 2, 'end': 4, 'E': 200000000000.0, 'A': area, 'sigma_yield': 36000000.0, 'sigma_ult': 66000000.0})
members.append({'start': 2, 'end': 5, 'E': 200000000000.0, 'A': area, 'sigma_yield': 36000000.0, 'sigma_ult': 66000000.0})
members.append({'start': 4, 'end': 5, 'E': 200000000000.0, 'A': area, 'sigma_yield': 36000000.0, 'sigma_ult': 66000000.0})
return (nodes, members) |
n = int(input('Valor do produto: '))
val = (n*5) / 100
res = val
print('O VALOR FINAL COM 5% DE DESCONTO VAI SER ${}:'.format(val))
| n = int(input('Valor do produto: '))
val = n * 5 / 100
res = val
print('O VALOR FINAL COM 5% DE DESCONTO VAI SER ${}:'.format(val)) |
quarter = (dta.inspection_date.dt.month - 1) // 3
quarter_size = dta.groupby((quarter, violation_num)).size()
axes = quarter_size.unstack(level=0).plot.bar(
figsize=(14, 8),
)
| quarter = (dta.inspection_date.dt.month - 1) // 3
quarter_size = dta.groupby((quarter, violation_num)).size()
axes = quarter_size.unstack(level=0).plot.bar(figsize=(14, 8)) |
# pin numbers
# http://micropython-on-wemos-d1-mini.readthedocs.io/en/latest/setup.html
# https://forum.micropython.org/viewtopic.php?t=2503
D0 = 16 # wake
D5 = 14 # sck
D6 = 12 # miso
D7 = 13 # mosi
D8 = 15 # cs PULL-DOWN 10k
D4 = 2 # boot PULL-UP 10k
D3 = 0 # flash PULL-UP 10k
D2 = 4 # sda
D1 = 5 # scl
RX = 3 # rx
TX = 1 # tx
# note: D4 is also used to control the builtin blue led, but it's reversed
# (when D4 is 1, the led is off)
LED = D4
| d0 = 16
d5 = 14
d6 = 12
d7 = 13
d8 = 15
d4 = 2
d3 = 0
d2 = 4
d1 = 5
rx = 3
tx = 1
led = D4 |
CENTRALIZED = False
EXAMPLE_PAIR = "ZRX-WETH"
USE_ETHEREUM_WALLET = True
FEE_TYPE = "FlatFee"
FEE_TOKEN = "ETH"
DEFAULT_FEES = [0, 0.00001]
| centralized = False
example_pair = 'ZRX-WETH'
use_ethereum_wallet = True
fee_type = 'FlatFee'
fee_token = 'ETH'
default_fees = [0, 1e-05] |
'''
154. Find Minimum in Rotated Sorted Array II
https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/
similar problem: "153. Find Minimum in Rotated Sorted Array"
https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).
Find the minimum element.
The array may contain duplicates.
Example 1:
Input: [1,3,5]
Output: 1
Example 2:
Input: [2,2,2,0,1]
Output: 0
Note:
This is a follow up problem to Find Minimum in Rotated Sorted Array.
Would allow duplicates affect the run-time complexity? How and why?
'''
# correct:
class Solution:
def findMin(self, nums: List[int]) -> int:
lo, hi = 0, len(nums) - 1
while lo < hi:
mid = lo + (hi - lo) // 2
if nums[mid] > nums[hi]:
lo = mid + 1
else:
hi = mid if nums[hi] != nums[mid] else hi - 1
return nums[lo]
# reference:
# https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/discuss/48908/Clean-python-solution
'''
wrong:
class Solution:
def findMin(self, nums: List[int]) -> int:
lo, hi = 0, len(nums)-1
while lo < hi:
mid = lo + (hi - lo) // 2
# if nums[mid] < nums[hi]: wrong! should use >
hi = mid if nums[hi] != nums[mid] else hi -1
else:
lo = mid + 1
return nums[lo]
''' | """
154. Find Minimum in Rotated Sorted Array II
https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/
similar problem: "153. Find Minimum in Rotated Sorted Array"
https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).
Find the minimum element.
The array may contain duplicates.
Example 1:
Input: [1,3,5]
Output: 1
Example 2:
Input: [2,2,2,0,1]
Output: 0
Note:
This is a follow up problem to Find Minimum in Rotated Sorted Array.
Would allow duplicates affect the run-time complexity? How and why?
"""
class Solution:
def find_min(self, nums: List[int]) -> int:
(lo, hi) = (0, len(nums) - 1)
while lo < hi:
mid = lo + (hi - lo) // 2
if nums[mid] > nums[hi]:
lo = mid + 1
else:
hi = mid if nums[hi] != nums[mid] else hi - 1
return nums[lo]
'\nwrong:\nclass Solution:\n def findMin(self, nums: List[int]) -> int:\n lo, hi = 0, len(nums)-1\n while lo < hi:\n mid = lo + (hi - lo) // 2\n # if nums[mid] < nums[hi]: wrong! should use >\n hi = mid if nums[hi] != nums[mid] else hi -1\n\n else:\n lo = mid + 1\n\n return nums[lo]\n' |
def self_powers(final:int):
sum_pows = 0
for integer in range(1, final + 1):
power = 1
for _ in range(integer):
power = (power * integer) % (10**11)
sum_pows += power
return sum_pows % (10 ** 10)
if __name__ == "__main__":
print(self_powers(1000)) | def self_powers(final: int):
sum_pows = 0
for integer in range(1, final + 1):
power = 1
for _ in range(integer):
power = power * integer % 10 ** 11
sum_pows += power
return sum_pows % 10 ** 10
if __name__ == '__main__':
print(self_powers(1000)) |
SP500 = {'A.O. Smith Corp': 'AOS',
'Abbott Laboratories': 'ABT',
'AbbVie Inc.': 'ABBV',
'Accenture plc': 'ACN',
'Activision Blizzard': 'ATVI',
'Acuity Brands Inc': 'AYI',
'Adobe Systems Inc': 'ADBE',
'Advance Auto Parts': 'AAP',
'Advanced Micro Devices Inc': 'AMD',
'AES Corp': 'AES',
'Aetna Inc': 'AET',
'Affiliated Managers Group Inc': 'AMG',
'AFLAC Inc': 'AFL',
'Agilent Technologies Inc': 'A',
'Air Products & Chemicals Inc': 'APD',
'Akamai Technologies Inc': 'AKAM',
'Alaska Air Group Inc': 'ALK',
'Albemarle Corp': 'ALB',
'Alexandria Real Estate Equities Inc': 'ARE',
'Alexion Pharmaceuticals': 'ALXN',
'Align Technology': 'ALGN',
'Allegion': 'ALLE',
'Alliance Data Systems': 'ADS',
'Alliant Energy Corp': 'LNT',
'Allstate Corp': 'ALL',
'Alphabet Inc Class A': 'GOOGL',
'Alphabet Inc Class C': 'GOOG',
'Altria Group Inc': 'MO',
'Amazon.com Inc.': 'AMZN',
'Ameren Corp': 'AEE',
'American Airlines Group': 'AAL',
'American Electric Power': 'AEP',
'American Express Co': 'AXP',
'American International Group Inc.': 'AIG',
'American Tower Corp A': 'AMT',
'American Water Works Company Inc': 'AWK',
'Ameriprise Financial': 'AMP',
'AmerisourceBergen Corp': 'ABC',
'AMETEK Inc.': 'AME',
'Amgen Inc.': 'AMGN',
'Amphenol Corp': 'APH',
'Andeavor': 'ANDV',
'ANSYS': 'ANSS',
'Anthem Inc.': 'ANTM',
'Aon plc': 'AON',
'Apache Corporation': 'APA',
'Apartment Investment & Management': 'AIV',
'Apple Inc.': 'AAPL',
'Applied Materials Inc.': 'AMAT',
'Aptiv Plc': 'APTV',
'Archer-Daniels-Midland Co': 'ADM',
'Arconic Inc.': 'ARNC',
'Arthur J. Gallagher & Co.': 'AJG',
'Assurant Inc.': 'AIZ',
'AT&T Inc.': 'T',
'Autodesk Inc.': 'ADSK',
'Automatic Data Processing': 'ADP',
'AutoZone Inc': 'AZO',
'AvalonBay Communities Inc.': 'AVB',
'Avery Dennison Corp': 'AVY',
'Baker Hughes a GE Company': 'BKR',
'Ball Corp': 'BLL',
'Bank of America Corp': 'BAC',
'Baxter International Inc.': 'BAX',
'Becton Dickinson': 'BDX',
'Berkshire Hathaway': 'BRK.A',
'Best Buy Co. Inc.': 'BBY',
'Biogen Inc.': 'BIIB',
'BlackRock': 'BLK',
'Block H&R': 'HRB',
'Boeing Company': 'BA',
'Booking Holdings Inc': 'BKNG',
'BorgWarner': 'BWA',
'Boston Properties': 'BXP',
'Boston Scientific': 'BSX',
'Brighthouse Financial Inc': 'BHF',
'Bristol-Myers Squibb': 'BMY',
'Broadcom': 'AVGO',
'Brown-Forman Corp.': 'BF.B',
'C. H. Robinson Worldwide': 'CHRW',
'CA Inc.': 'CA',
'Cabot Oil & Gas': 'COG',
'Cadence Design Systems': 'CDNS',
'Campbell Soup': 'CPB',
'Capital One Financial': 'COF',
'Cardinal Health Inc.': 'CAH',
'Carmax Inc': 'KMX',
'Carnival Corp.': 'CCL',
'Caterpillar Inc.': 'CAT',
'Cboe Global Markets': 'CBOE',
'CBRE Group': 'CBRE',
'Centene Corporation': 'CNC',
'CenterPoint Energy': 'CNP',
'CenturyLink Inc': 'CTL',
'Cerner': 'CERN',
'CF Industries Holdings Inc': 'CF',
'Charles Schwab Corporation': 'SCHW',
'Charter Communications': 'CHTR',
'Chevron Corp.': 'CVX',
'Chipotle Mexican Grill': 'CMG',
'Chubb Limited': 'CB',
'Church & Dwight': 'CHD',
'CIGNA Corp.': 'CI',
'Cimarex Energy': 'XEC',
'Cincinnati Financial': 'CINF',
'Cintas Corporation': 'CTAS',
'Cisco Systems': 'CSCO',
'Citigroup Inc.': 'C',
'Citizens Financial Group': 'CFG',
'Citrix Systems': 'CTXS',
'CME Group Inc.': 'CME',
'CMS Energy': 'CMS',
'Coca-Cola Company (The)': 'KO',
'Cognizant Technology Solutions': 'CTSH',
'Colgate-Palmolive': 'CL',
'Comcast Corp.': 'CMCSA',
'Comerica Inc.': 'CMA',
'Conagra Brands': 'CAG',
'Concho Resources': 'CXO',
'ConocoPhillips': 'COP',
'Consolidated Edison': 'ED',
'Constellation Brands': 'STZ',
'Corning Inc.': 'GLW',
'Costco Wholesale Corp.': 'COST',
'Coty Inc': 'COTY',
'Crown Castle International Corp.': 'CCI',
'CSRA Inc.': 'CSRA',
'CSX Corp.': 'CSX',
'Cummins Inc.': 'CMI',
'CVS Health': 'CVS',
'D. R. Horton': 'DHI',
'Danaher Corp.': 'DHR',
'Darden Restaurants': 'DRI',
'DaVita Inc.': 'DVA',
'Deere & Co.': 'DE',
'Delta Air Lines Inc.': 'DAL',
'Dentsply Sirona': 'XRAY',
'Devon Energy Corp.': 'DVN',
'Digital Realty Trust Inc': 'DLR',
'Discover Financial Services': 'DFS',
'Discovery Inc. Class A': 'DISCA',
'Discovery Inc. Class C': 'DISCK',
'Dish Network': 'DISH',
'Dollar General': 'DG',
'Dollar Tree': 'DLTR',
'Dominion Energy': 'D',
'Dover Corp.': 'DOV',
'DTE Energy Co.': 'DTE',
'Duke Energy': 'DUK',
'Duke Realty Corp': 'DRE',
'DXC Technology': 'DXC',
'E*Trade': 'ETFC',
'Eastman Chemical': 'EMN',
'Eaton Corporation': 'ETN',
'eBay Inc.': 'EBAY',
'Ecolab Inc.': 'ECL',
'Edison International': 'EIX',
'Edwards Lifesciences': 'EW',
'Electronic Arts': 'EA',
'Emerson Electric Company': 'EMR',
'Entergy Corp.': 'ETR',
'Envision Healthcare': 'EVHC',
'EOG Resources': 'EOG',
'EQT Corporation': 'EQT',
'Equifax Inc.': 'EFX',
'Equinix': 'EQIX',
'Equity Residential': 'EQR',
'Essex Property Trust Inc.': 'ESS',
'Estee Lauder Cos.': 'EL',
'Everest Re Group Ltd.': 'RE',
'Eversource Energy': 'ES',
'Exelon Corp.': 'EXC',
'Expedia Inc.': 'EXPE',
'Expeditors International': 'EXPD',
'Express Scripts': 'ESRX',
'Extra Space Storage': 'EXR',
'Exxon Mobil Corp.': 'XOM',
'F5 Networks': 'FFIV',
'Facebook Inc.': 'FB',
'Fastenal Co': 'FAST',
'Federal Realty Investment Trust': 'FRT',
'FedEx Corporation': 'FDX',
'Fidelity National Information Services': 'FIS',
'Fifth Third Bancorp': 'FITB',
'FirstEnergy Corp': 'FE',
'Fiserv Inc': 'FISV',
'FLIR Systems': 'FLIR',
'Flowserve Corporation': 'FLS',
'Fluor Corp.': 'FLR',
'FMC Corporation': 'FMC',
'Foot Locker Inc': 'FL',
'Ford Motor': 'F',
'Fortive Corp': 'FTV',
'Fortune Brands Home & Security': 'FBHS',
'Franklin Resources': 'BEN',
'Freeport-McMoRan Inc.': 'FCX',
'Gap Inc.': 'GPS',
'Garmin Ltd.': 'GRMN',
'Gartner Inc': 'IT',
'General Dynamics': 'GD',
'General Electric': 'GE',
'General Growth Properties Inc.': 'GGP',
'General Mills': 'GIS',
'General Motors': 'GM',
'Genuine Parts': 'GPC',
'Gilead Sciences': 'GILD',
'Global Payments Inc.': 'GPN',
'Goldman Sachs Group': 'GS',
'Goodyear Tire & Rubber': 'GT',
'Grainger (W.W.) Inc.': 'GWW',
'Halliburton Co.': 'HAL',
'Hanesbrands Inc': 'HBI',
'Harley-Davidson': 'HOG',
'Hartford Financial Svc.Gp.': 'HIG',
'Hasbro Inc.': 'HAS',
'HCA Holdings': 'HCA',
'Helmerich & Payne': 'HP',
'Henry Schein': 'HSIC',
'Hess Corporation': 'HES',
'Hewlett Packard Enterprise': 'HPE',
'Hilton Worldwide Holdings Inc': 'HLT',
'Hologic': 'HOLX',
'Home Depot': 'HD',
'Honeywell International Inc.': 'HON',
'Hormel Foods Corp.': 'HRL',
'Host Hotels & Resorts': 'HST',
'HP Inc.': 'HPQ',
'Humana Inc.': 'HUM',
'Huntington Bancshares': 'HBAN',
'Huntington Ingalls Industries': 'HII',
'IDEXX Laboratories': 'IDXX',
'IHS Markit Ltd.': 'INFO',
'Illinois Tool Works': 'ITW',
'Illumina Inc': 'ILMN',
'Incyte': 'INCY',
'Ingersoll-Rand PLC': 'IR',
'Intel Corp.': 'INTC',
'Intercontinental Exchange': 'ICE',
'International Business Machines': 'IBM',
'International Paper': 'IP',
'Interpublic Group': 'IPG',
'Intl Flavors & Fragrances': 'IFF',
'Intuit Inc.': 'INTU',
'Intuitive Surgical Inc.': 'ISRG',
'Invesco Ltd.': 'IVZ',
'IPG Photonics Corp.': 'IPGP',
'IQVIA Holdings Inc.': 'IQV',
'Iron Mountain Incorporated': 'IRM',
'J. B. Hunt Transport Services': 'JBHT',
'Jacobs Engineering Group': 'J',
'JM Smucker': 'SJM',
'Johnson & Johnson': 'JNJ',
'Johnson Controls International': 'JCI',
'JPMorgan Chase & Co.': 'JPM',
'Juniper Networks': 'JNPR',
'Kansas City Southern': 'KSU',
'Kellogg Co.': 'K',
'KeyCorp': 'KEY',
'Kimberly-Clark': 'KMB',
'Kimco Realty': 'KIM',
'Kinder Morgan': 'KMI',
'KLA-Tencor Corp.': 'KLAC',
'Kohls Corp.': 'KSS',
'Kraft Heinz Co': 'KHC',
'Kroger Co.': 'KR',
'L Brands Inc.': 'LB',
'Laboratory Corp. of America Holding': 'LH',
'Lam Research': 'LRCX',
'Leggett & Platt': 'LEG',
'Lennar Corp.': 'LEN',
'Lilly (Eli) & Co.': 'LLY',
'Lincoln National': 'LNC',
'LKQ Corporation': 'LKQ',
'Lockheed Martin Corp.': 'LMT',
'Loews Corp.': 'L',
'Lowes Cos.': 'LOW',
'LyondellBasell': 'LYB',
'M&T Bank Corp.': 'MTB',
'Macerich': 'MAC',
'Macys Inc.': 'M',
'Marathon Oil Corp.': 'MRO',
'Marathon Petroleum': 'MPC',
'Marriott International.': 'MAR',
'Marsh & McLennan': 'MMC',
'Martin Marietta Materials': 'MLM',
'Masco Corp.': 'MAS',
'Mastercard Inc.': 'MA',
'Mattel Inc.': 'MAT',
'McCormick & Co.': 'MKC',
'McDonalds Corp.': 'MCD',
'McKesson Corp.': 'MCK',
'Medtronic plc': 'MDT',
'Merck & Co.': 'MRK',
'MetLife Inc.': 'MET',
'Mettler Toledo': 'MTD',
'MGM Resorts International': 'MGM',
'Microchip Technology': 'MCHP',
'Micron Technology': 'MU',
'Microsoft Corp.': 'MSFT',
'Mid-America Apartments': 'MAA',
'Mohawk Industries': 'MHK',
'Molson Coors Brewing Company': 'TAP',
'Mondelez International': 'MDLZ',
'Monsanto Co.': 'MON',
'Monster Beverage': 'MNST',
'Moodys Corp': 'MCO',
'Morgan Stanley': 'MS',
'Motorola Solutions Inc.': 'MSI',
'Mylan N.V.': 'MYL',
'Nasdaq Inc.': 'NDAQ',
'National Oilwell Varco Inc.': 'NOV',
'Navient': 'NAVI',
'Nektar Therapeutics': 'NKTR',
'NetApp': 'NTAP',
'Netflix Inc.': 'NFLX',
'Newell Brands': 'NWL',
'Newmont Mining Corporation': 'NEM',
'News Corp. Class A': 'NWSA',
'News Corp. Class B': 'NWS',
'NextEra Energy': 'NEE',
'Nielsen Holdings': 'NLSN',
'Nike': 'NKE',
'NiSource Inc.': 'NI',
'Noble Energy Inc': 'NBL',
'Nordstrom': 'JWN',
'Norfolk Southern Corp.': 'NSC',
'Northern Trust Corp.': 'NTRS',
'Northrop Grumman Corp.': 'NOC',
'Norwegian Cruise Line': 'NCLH',
'NRG Energy': 'NRG',
'Nucor Corp.': 'NUE',
'Nvidia Corporation': 'NVDA',
'OReilly Automotive': 'ORLY',
'Occidental Petroleum': 'OXY',
'Omnicom Group': 'OMC',
'ONEOK': 'OKE',
'Oracle Corp.': 'ORCL',
'PACCAR Inc.': 'PCAR',
'Packaging Corporation of America': 'PKG',
'Parker-Hannifin': 'PH',
'Paychex Inc.': 'PAYX',
'PayPal': 'PYPL',
'Pentair Ltd.': 'PNR',
'Peoples United Financial': 'PBCT',
'PepsiCo Inc.': 'PEP',
'PerkinElmer': 'PKI',
'Perrigo': 'PRGO',
'Pfizer Inc.': 'PFE',
'PG&E Corp.': 'PCG',
'Philip Morris International': 'PM',
'Phillips 66': 'PSX',
'Pinnacle West Capital': 'PNW',
'Pioneer Natural Resources': 'PXD',
'PNC Financial Services': 'PNC',
'Polo Ralph Lauren Corp.': 'RL',
'PPG Industries': 'PPG',
'PPL Corp.': 'PPL',
'Principal Financial Group': 'PFG',
'Procter & Gamble': 'PG',
'Progressive Corp.': 'PGR',
'Prologis': 'PLD',
'Prudential Financial': 'PRU',
'Public Serv. Enterprise Inc.': 'PEG',
'Public Storage': 'PSA',
'Pulte Homes Inc.': 'PHM',
'PVH Corp.': 'PVH',
'Qorvo': 'QRVO',
'QUALCOMM Inc.': 'QCOM',
'Quanta Services Inc.': 'PWR',
'Quest Diagnostics': 'DGX',
'Range Resources Corp.': 'RRC',
'Raymond James Financial Inc.': 'RJF',
'Realty Income Corporation': 'O',
'Regency Centers Corporation': 'REG',
'Regeneron': 'REGN',
'Regions Financial Corp.': 'RF',
'Republic Services Inc': 'RSG',
'ResMed': 'RMD',
'Robert Half International': 'RHI',
'Rockwell Automation Inc.': 'ROK',
'Rockwell Collins': 'COL',
'Roper Technologies': 'ROP',
'Ross Stores': 'ROST',
'Royal Caribbean Cruises Ltd': 'RCL',
'S&P Global Inc.': 'SPGI',
'Salesforce.com': 'CRM',
'SBA Communications': 'SBAC',
'SCANA Corp': 'SCG',
'Schlumberger Ltd.': 'SLB',
'Seagate Technology': 'STX',
'Sealed Air': 'SEE',
'Sempra Energy': 'SRE',
'Sherwin-Williams': 'SHW',
'Simon Property Group Inc': 'SPG',
'Skyworks Solutions': 'SWKS',
'SL Green Realty': 'SLG',
'Snap-On Inc.': 'SNA',
'Southern Co.': 'SO',
'Southwest Airlines': 'LUV',
'Stanley Black & Decker': 'SWK',
'Starbucks Corp.': 'SBUX',
'State Street Corp.': 'STT',
'Stericycle Inc': 'SRCL',
'Stryker Corp.': 'SYK',
'SVB Financial': 'SIVB',
'Synchrony Financial': 'SYF',
'Synopsys Inc.': 'SNPS',
'Sysco Corp.': 'SYY',
'T. Rowe Price Group': 'TROW',
'Take-Two Interactive': 'TTWO',
'Tapestry Inc.': 'TPR',
'Target Corp.': 'TGT',
'TE Connectivity Ltd.': 'TEL',
'TechnipFMC': 'FTI',
'Texas Instruments': 'TXN',
'Textron Inc.': 'TXT',
'The Bank of New York Mellon Corp.': 'BK',
'The Clorox Company': 'CLX',
'The Cooper Companies': 'COO',
'The Hershey Company': 'HSY',
'The Mosaic Company': 'MOS',
'The Travelers Companies Inc.': 'TRV',
'The Walt Disney Company': 'DIS',
'Thermo Fisher Scientific': 'TMO',
'Tiffany & Co.': 'TIF',
'Time Warner Inc.': 'TWX',
'TJX Companies Inc.': 'TJX',
'Tractor Supply Company': 'TSCO',
'TransDigm Group': 'TDG',
'TripAdvisor': 'TRIP',
'Twenty-First Century Fox Class A': 'FOXA',
'Twenty-First Century Fox Class B': 'FOX',
'Tyson Foods': 'TSN',
'U.S. Bancorp': 'USB',
'UDR Inc': 'UDR',
'Ulta Beauty': 'ULTA',
'Under Armour Class A': 'UAA',
'Under Armour Class C': 'UA',
'Union Pacific': 'UNP',
'United Continental Holdings': 'UAL',
'United Health Group Inc.': 'UNH',
'United Parcel Service': 'UPS',
'United Rentals Inc.': 'URI',
'Universal Health Services Inc.': 'UHS',
'Unum Group': 'UNM',
'V.F. Corp.': 'VFC',
'Valero Energy': 'VLO',
'Varian Medical Systems': 'VAR',
'Ventas Inc': 'VTR',
'Verisign Inc.': 'VRSN',
'Verisk Analytics': 'VRSK',
'Verizon Communications': 'VZ',
'Vertex Pharmaceuticals Inc': 'VRTX',
'Viacom Inc.': 'VIAC',
'Visa Inc.': 'V',
'Vornado Realty Trust': 'VNO',
'Vulcan Materials': 'VMC',
'Wal-Mart Stores': 'WMT',
'Walgreens Boots Alliance': 'WBA',
'Waste Management Inc.': 'WM',
'Waters Corporation': 'WAT',
'Wec Energy Group Inc': 'WEC',
'Wells Fargo': 'WFC',
'Welltower Inc.': 'WELL',
'Western Digital': 'WDC',
'Western Union Co': 'WU',
'WestRock Company': 'WRK',
'Weyerhaeuser Corp.': 'WY',
'Whirlpool Corp.': 'WHR',
'Williams Cos.': 'WMB',
'Willis Towers Watson': 'WLTW',
'Wynn Resorts Ltd': 'WYNN',
'Xcel Energy Inc': 'XEL',
'Xerox Corp.': 'XRX',
'Xilinx Inc': 'XLNX',
'XL Capital': 'XL',
'Xylem Inc.': 'XYL',
'Yum! Brands Inc': 'YUM',
'Zimmer Biomet Holdings': 'ZBH',
'Zions Bancorp': 'ZION',
'Zoetis': 'ZTS'}
ISO3 = {'Afghanistan': 'AFG',
'Albania': 'ALB',
'Algeria': 'DZA',
'Angola': 'AGO',
'Antigua and Barbuda': 'ATG',
'Argentina': 'ARG',
'Armenia': 'ARM',
'Aruba': 'ABW',
'Australia': 'AUS',
'Austria': 'AUT',
'Azerbaijan': 'AZE',
'Bahamas': 'BHS',
'Bahrain': 'BHR',
'Bangladesh': 'BGD',
'Barbados': 'BRB',
'Belarus': 'BLR',
'Belgium': 'BEL',
'Belize': 'BLZ',
'Benin': 'BEN',
'Bhutan': 'BTN',
'Bolivia': 'BOL',
'Bosnia and Herzegovina': 'BIH',
'Botswana': 'BWA',
'Brazil': 'BRA',
'Brunei Darussalam': 'BRN',
'Bulgaria': 'BGR',
'Burkina Faso': 'BFA',
'Burundi': 'BDI',
'Cabo Verde': 'CPV',
'Cambodia': 'KHM',
'Cameroon': 'CMR',
'Canada': 'CAN',
'Chad': 'TCD',
'Chile': 'CHL',
'China': 'CHN',
'Colombia': 'COL',
'Comoros': 'COM',
'Congo Dem. Rep.': 'COD',
'Congo Rep.': 'COG',
'Costa Rica': 'CRI',
'Cote dIvoire': 'CIV',
'Croatia': 'HRV',
'Cyprus': 'CYP',
'Czech Republic': 'CZE',
'Denmark': 'DNK',
'Djibouti': 'DJI',
'Dominica': 'DMA',
'Dominican Republic': 'DOM',
'Ecuador': 'ECU',
'Egypt Arab Rep.': 'EGY',
'El Salvador': 'SLV',
'Equatorial Guinea': 'GNQ',
'Eritrea': 'ERI',
'Estonia': 'EST',
'Ethiopia': 'ETH',
'Fiji': 'FJI',
'Finland': 'FIN',
'France': 'FRA',
'Gabon': 'GAB',
'Gambia': 'GMB',
'Georgia': 'GEO',
'Germany': 'DEU',
'Ghana': 'GHA',
'Greece': 'GRC',
'Grenada': 'GRD',
'Guatemala': 'GTM',
'Guinea': 'GIN',
'Guinea-Bissau': 'GNB',
'Guyana': 'GUY',
'Haiti': 'HTI',
'Honduras': 'HND',
'Hong Kong SAR China': 'HKG',
'Hungary': 'HUN',
'Iceland': 'ISL',
'India': 'IND',
'Indonesia': 'IDN',
'Iran Islamic Rep.': 'IRN',
'Iraq': 'IRQ',
'Ireland': 'IRL',
'Israel': 'ISR',
'Italy': 'ITA',
'Jamaica': 'JAM',
'Japan': 'JPN',
'Jordan': 'JOR',
'Kazakhstan': 'KAZ',
'Kenya': 'KEN',
'Kiribati': 'KIR',
'Korea Rep': 'KOR',
'Kuwait': 'KWT',
'Kyrgyz Republic': 'KGZ',
'Lao PDR': 'LAO',
'Latvia': 'LVA',
'Lebanon': 'LBN',
'Lesotho': 'LSO',
'Liberia': 'LBR',
'Libya': 'LBY',
'Lithuania': 'LTU',
'Luxembourg': 'LUX',
'Macao SAR China': 'MAC',
'Macedonia FYR': 'MKD',
'Madagascar': 'MDG',
'Malawi': 'MWI',
'Malaysia': 'MYS',
'Maldives': 'MDV',
'Mali': 'MLI',
'Malta': 'MLT',
'Marshall Islands': 'MHL',
'Mauritania': 'MRT',
'Mauritius': 'MUS',
'Mexico': 'MEX',
'Micronesia Fed. Sts.': 'FSM',
'Moldova': 'MDA',
'Mongolia': 'MNG',
'Montenegro': 'MNE',
'Morocco': 'MAR',
'Mozambique': 'MOZ',
'Myanmar': 'MMR',
'Namibia': 'NAM',
'Nepal': 'NPL',
'Netherlands': 'NLD',
'New Zealand': 'NZL',
'Nicaragua': 'NIC',
'Niger': 'NER',
'Nigeria': 'NGA',
'Norway': 'NOR',
'Oman': 'OMN',
'Pakistan': 'PAK',
'Palau': 'PLW',
'Panama': 'PAN',
'Papua New Guinea': 'PNG',
'Paraguay': 'PRY',
'Peru': 'PER',
'Philippines': 'PHL',
'Poland': 'POL',
'Portugal': 'PRT',
'Puerto Rico': 'PRI',
'Qatar': 'QAT',
'Romania': 'ROU',
'Russian Federation': 'RUS',
'Rwanda': 'RWA',
'Samoa': 'WSM',
'San Marino': 'SMR',
'Sao Tome and Principe': 'STP',
'Saudi Arabia': 'SAU',
'Senegal': 'SEN',
'Serbia': 'SRB',
'Seychelles': 'SYC',
'Sierra Leone': 'SLE',
'Singapore': 'SGP',
'Slovak Republic': 'SVK',
'Slovenia': 'SVN',
'Solomon Islands': 'SLB',
'South Africa': 'ZAF',
'South Sudan': 'SSD',
'Spain': 'ESP',
'Sri Lanka': 'LKA',
'St. Kitts and Nevis': 'KNA',
'St. Lucia': 'LCA',
'St. Vincent and the Grenadines': 'VCT',
'Sudan': 'SDN',
'Suriname': 'SUR',
'Swaziland': 'SWZ',
'Sweden': 'SWE',
'Switzerland': 'CHE',
'Syrian Arab Republic': 'SYR',
'Tajikistan': 'TJK',
'Tanzania': 'TZA',
'Thailand': 'THA',
'Timor-Leste': 'TLS',
'Togo': 'TGO',
'Tonga': 'TON',
'Trinidad and Tobago': 'TTO',
'Tunisia': 'TUN',
'Turkey': 'TUR',
'Turkmenistan': 'TKM',
'Tuvalu': 'TUV',
'Uganda': 'UGA',
'Ukraine': 'UKR',
'United Arab Emirates': 'ARE',
'United Kingdom': 'GBR',
'United States': 'USA',
'Uruguay': 'URY',
'Uzbekistan': 'UZB',
'Vanuatu': 'VUT',
'Venezuela RB': 'VEN',
'Vietnam': 'VNM',
'Yemen Rep.': 'YEM',
'Zambia': 'ZMB',
'Zimbabwe': 'ZWE'} | sp500 = {'A.O. Smith Corp': 'AOS', 'Abbott Laboratories': 'ABT', 'AbbVie Inc.': 'ABBV', 'Accenture plc': 'ACN', 'Activision Blizzard': 'ATVI', 'Acuity Brands Inc': 'AYI', 'Adobe Systems Inc': 'ADBE', 'Advance Auto Parts': 'AAP', 'Advanced Micro Devices Inc': 'AMD', 'AES Corp': 'AES', 'Aetna Inc': 'AET', 'Affiliated Managers Group Inc': 'AMG', 'AFLAC Inc': 'AFL', 'Agilent Technologies Inc': 'A', 'Air Products & Chemicals Inc': 'APD', 'Akamai Technologies Inc': 'AKAM', 'Alaska Air Group Inc': 'ALK', 'Albemarle Corp': 'ALB', 'Alexandria Real Estate Equities Inc': 'ARE', 'Alexion Pharmaceuticals': 'ALXN', 'Align Technology': 'ALGN', 'Allegion': 'ALLE', 'Alliance Data Systems': 'ADS', 'Alliant Energy Corp': 'LNT', 'Allstate Corp': 'ALL', 'Alphabet Inc Class A': 'GOOGL', 'Alphabet Inc Class C': 'GOOG', 'Altria Group Inc': 'MO', 'Amazon.com Inc.': 'AMZN', 'Ameren Corp': 'AEE', 'American Airlines Group': 'AAL', 'American Electric Power': 'AEP', 'American Express Co': 'AXP', 'American International Group Inc.': 'AIG', 'American Tower Corp A': 'AMT', 'American Water Works Company Inc': 'AWK', 'Ameriprise Financial': 'AMP', 'AmerisourceBergen Corp': 'ABC', 'AMETEK Inc.': 'AME', 'Amgen Inc.': 'AMGN', 'Amphenol Corp': 'APH', 'Andeavor': 'ANDV', 'ANSYS': 'ANSS', 'Anthem Inc.': 'ANTM', 'Aon plc': 'AON', 'Apache Corporation': 'APA', 'Apartment Investment & Management': 'AIV', 'Apple Inc.': 'AAPL', 'Applied Materials Inc.': 'AMAT', 'Aptiv Plc': 'APTV', 'Archer-Daniels-Midland Co': 'ADM', 'Arconic Inc.': 'ARNC', 'Arthur J. Gallagher & Co.': 'AJG', 'Assurant Inc.': 'AIZ', 'AT&T Inc.': 'T', 'Autodesk Inc.': 'ADSK', 'Automatic Data Processing': 'ADP', 'AutoZone Inc': 'AZO', 'AvalonBay Communities Inc.': 'AVB', 'Avery Dennison Corp': 'AVY', 'Baker Hughes a GE Company': 'BKR', 'Ball Corp': 'BLL', 'Bank of America Corp': 'BAC', 'Baxter International Inc.': 'BAX', 'Becton Dickinson': 'BDX', 'Berkshire Hathaway': 'BRK.A', 'Best Buy Co. Inc.': 'BBY', 'Biogen Inc.': 'BIIB', 'BlackRock': 'BLK', 'Block H&R': 'HRB', 'Boeing Company': 'BA', 'Booking Holdings Inc': 'BKNG', 'BorgWarner': 'BWA', 'Boston Properties': 'BXP', 'Boston Scientific': 'BSX', 'Brighthouse Financial Inc': 'BHF', 'Bristol-Myers Squibb': 'BMY', 'Broadcom': 'AVGO', 'Brown-Forman Corp.': 'BF.B', 'C. H. Robinson Worldwide': 'CHRW', 'CA Inc.': 'CA', 'Cabot Oil & Gas': 'COG', 'Cadence Design Systems': 'CDNS', 'Campbell Soup': 'CPB', 'Capital One Financial': 'COF', 'Cardinal Health Inc.': 'CAH', 'Carmax Inc': 'KMX', 'Carnival Corp.': 'CCL', 'Caterpillar Inc.': 'CAT', 'Cboe Global Markets': 'CBOE', 'CBRE Group': 'CBRE', 'Centene Corporation': 'CNC', 'CenterPoint Energy': 'CNP', 'CenturyLink Inc': 'CTL', 'Cerner': 'CERN', 'CF Industries Holdings Inc': 'CF', 'Charles Schwab Corporation': 'SCHW', 'Charter Communications': 'CHTR', 'Chevron Corp.': 'CVX', 'Chipotle Mexican Grill': 'CMG', 'Chubb Limited': 'CB', 'Church & Dwight': 'CHD', 'CIGNA Corp.': 'CI', 'Cimarex Energy': 'XEC', 'Cincinnati Financial': 'CINF', 'Cintas Corporation': 'CTAS', 'Cisco Systems': 'CSCO', 'Citigroup Inc.': 'C', 'Citizens Financial Group': 'CFG', 'Citrix Systems': 'CTXS', 'CME Group Inc.': 'CME', 'CMS Energy': 'CMS', 'Coca-Cola Company (The)': 'KO', 'Cognizant Technology Solutions': 'CTSH', 'Colgate-Palmolive': 'CL', 'Comcast Corp.': 'CMCSA', 'Comerica Inc.': 'CMA', 'Conagra Brands': 'CAG', 'Concho Resources': 'CXO', 'ConocoPhillips': 'COP', 'Consolidated Edison': 'ED', 'Constellation Brands': 'STZ', 'Corning Inc.': 'GLW', 'Costco Wholesale Corp.': 'COST', 'Coty Inc': 'COTY', 'Crown Castle International Corp.': 'CCI', 'CSRA Inc.': 'CSRA', 'CSX Corp.': 'CSX', 'Cummins Inc.': 'CMI', 'CVS Health': 'CVS', 'D. R. Horton': 'DHI', 'Danaher Corp.': 'DHR', 'Darden Restaurants': 'DRI', 'DaVita Inc.': 'DVA', 'Deere & Co.': 'DE', 'Delta Air Lines Inc.': 'DAL', 'Dentsply Sirona': 'XRAY', 'Devon Energy Corp.': 'DVN', 'Digital Realty Trust Inc': 'DLR', 'Discover Financial Services': 'DFS', 'Discovery Inc. Class A': 'DISCA', 'Discovery Inc. Class C': 'DISCK', 'Dish Network': 'DISH', 'Dollar General': 'DG', 'Dollar Tree': 'DLTR', 'Dominion Energy': 'D', 'Dover Corp.': 'DOV', 'DTE Energy Co.': 'DTE', 'Duke Energy': 'DUK', 'Duke Realty Corp': 'DRE', 'DXC Technology': 'DXC', 'E*Trade': 'ETFC', 'Eastman Chemical': 'EMN', 'Eaton Corporation': 'ETN', 'eBay Inc.': 'EBAY', 'Ecolab Inc.': 'ECL', 'Edison International': 'EIX', 'Edwards Lifesciences': 'EW', 'Electronic Arts': 'EA', 'Emerson Electric Company': 'EMR', 'Entergy Corp.': 'ETR', 'Envision Healthcare': 'EVHC', 'EOG Resources': 'EOG', 'EQT Corporation': 'EQT', 'Equifax Inc.': 'EFX', 'Equinix': 'EQIX', 'Equity Residential': 'EQR', 'Essex Property Trust Inc.': 'ESS', 'Estee Lauder Cos.': 'EL', 'Everest Re Group Ltd.': 'RE', 'Eversource Energy': 'ES', 'Exelon Corp.': 'EXC', 'Expedia Inc.': 'EXPE', 'Expeditors International': 'EXPD', 'Express Scripts': 'ESRX', 'Extra Space Storage': 'EXR', 'Exxon Mobil Corp.': 'XOM', 'F5 Networks': 'FFIV', 'Facebook Inc.': 'FB', 'Fastenal Co': 'FAST', 'Federal Realty Investment Trust': 'FRT', 'FedEx Corporation': 'FDX', 'Fidelity National Information Services': 'FIS', 'Fifth Third Bancorp': 'FITB', 'FirstEnergy Corp': 'FE', 'Fiserv Inc': 'FISV', 'FLIR Systems': 'FLIR', 'Flowserve Corporation': 'FLS', 'Fluor Corp.': 'FLR', 'FMC Corporation': 'FMC', 'Foot Locker Inc': 'FL', 'Ford Motor': 'F', 'Fortive Corp': 'FTV', 'Fortune Brands Home & Security': 'FBHS', 'Franklin Resources': 'BEN', 'Freeport-McMoRan Inc.': 'FCX', 'Gap Inc.': 'GPS', 'Garmin Ltd.': 'GRMN', 'Gartner Inc': 'IT', 'General Dynamics': 'GD', 'General Electric': 'GE', 'General Growth Properties Inc.': 'GGP', 'General Mills': 'GIS', 'General Motors': 'GM', 'Genuine Parts': 'GPC', 'Gilead Sciences': 'GILD', 'Global Payments Inc.': 'GPN', 'Goldman Sachs Group': 'GS', 'Goodyear Tire & Rubber': 'GT', 'Grainger (W.W.) Inc.': 'GWW', 'Halliburton Co.': 'HAL', 'Hanesbrands Inc': 'HBI', 'Harley-Davidson': 'HOG', 'Hartford Financial Svc.Gp.': 'HIG', 'Hasbro Inc.': 'HAS', 'HCA Holdings': 'HCA', 'Helmerich & Payne': 'HP', 'Henry Schein': 'HSIC', 'Hess Corporation': 'HES', 'Hewlett Packard Enterprise': 'HPE', 'Hilton Worldwide Holdings Inc': 'HLT', 'Hologic': 'HOLX', 'Home Depot': 'HD', 'Honeywell International Inc.': 'HON', 'Hormel Foods Corp.': 'HRL', 'Host Hotels & Resorts': 'HST', 'HP Inc.': 'HPQ', 'Humana Inc.': 'HUM', 'Huntington Bancshares': 'HBAN', 'Huntington Ingalls Industries': 'HII', 'IDEXX Laboratories': 'IDXX', 'IHS Markit Ltd.': 'INFO', 'Illinois Tool Works': 'ITW', 'Illumina Inc': 'ILMN', 'Incyte': 'INCY', 'Ingersoll-Rand PLC': 'IR', 'Intel Corp.': 'INTC', 'Intercontinental Exchange': 'ICE', 'International Business Machines': 'IBM', 'International Paper': 'IP', 'Interpublic Group': 'IPG', 'Intl Flavors & Fragrances': 'IFF', 'Intuit Inc.': 'INTU', 'Intuitive Surgical Inc.': 'ISRG', 'Invesco Ltd.': 'IVZ', 'IPG Photonics Corp.': 'IPGP', 'IQVIA Holdings Inc.': 'IQV', 'Iron Mountain Incorporated': 'IRM', 'J. B. Hunt Transport Services': 'JBHT', 'Jacobs Engineering Group': 'J', 'JM Smucker': 'SJM', 'Johnson & Johnson': 'JNJ', 'Johnson Controls International': 'JCI', 'JPMorgan Chase & Co.': 'JPM', 'Juniper Networks': 'JNPR', 'Kansas City Southern': 'KSU', 'Kellogg Co.': 'K', 'KeyCorp': 'KEY', 'Kimberly-Clark': 'KMB', 'Kimco Realty': 'KIM', 'Kinder Morgan': 'KMI', 'KLA-Tencor Corp.': 'KLAC', 'Kohls Corp.': 'KSS', 'Kraft Heinz Co': 'KHC', 'Kroger Co.': 'KR', 'L Brands Inc.': 'LB', 'Laboratory Corp. of America Holding': 'LH', 'Lam Research': 'LRCX', 'Leggett & Platt': 'LEG', 'Lennar Corp.': 'LEN', 'Lilly (Eli) & Co.': 'LLY', 'Lincoln National': 'LNC', 'LKQ Corporation': 'LKQ', 'Lockheed Martin Corp.': 'LMT', 'Loews Corp.': 'L', 'Lowes Cos.': 'LOW', 'LyondellBasell': 'LYB', 'M&T Bank Corp.': 'MTB', 'Macerich': 'MAC', 'Macys Inc.': 'M', 'Marathon Oil Corp.': 'MRO', 'Marathon Petroleum': 'MPC', 'Marriott International.': 'MAR', 'Marsh & McLennan': 'MMC', 'Martin Marietta Materials': 'MLM', 'Masco Corp.': 'MAS', 'Mastercard Inc.': 'MA', 'Mattel Inc.': 'MAT', 'McCormick & Co.': 'MKC', 'McDonalds Corp.': 'MCD', 'McKesson Corp.': 'MCK', 'Medtronic plc': 'MDT', 'Merck & Co.': 'MRK', 'MetLife Inc.': 'MET', 'Mettler Toledo': 'MTD', 'MGM Resorts International': 'MGM', 'Microchip Technology': 'MCHP', 'Micron Technology': 'MU', 'Microsoft Corp.': 'MSFT', 'Mid-America Apartments': 'MAA', 'Mohawk Industries': 'MHK', 'Molson Coors Brewing Company': 'TAP', 'Mondelez International': 'MDLZ', 'Monsanto Co.': 'MON', 'Monster Beverage': 'MNST', 'Moodys Corp': 'MCO', 'Morgan Stanley': 'MS', 'Motorola Solutions Inc.': 'MSI', 'Mylan N.V.': 'MYL', 'Nasdaq Inc.': 'NDAQ', 'National Oilwell Varco Inc.': 'NOV', 'Navient': 'NAVI', 'Nektar Therapeutics': 'NKTR', 'NetApp': 'NTAP', 'Netflix Inc.': 'NFLX', 'Newell Brands': 'NWL', 'Newmont Mining Corporation': 'NEM', 'News Corp. Class A': 'NWSA', 'News Corp. Class B': 'NWS', 'NextEra Energy': 'NEE', 'Nielsen Holdings': 'NLSN', 'Nike': 'NKE', 'NiSource Inc.': 'NI', 'Noble Energy Inc': 'NBL', 'Nordstrom': 'JWN', 'Norfolk Southern Corp.': 'NSC', 'Northern Trust Corp.': 'NTRS', 'Northrop Grumman Corp.': 'NOC', 'Norwegian Cruise Line': 'NCLH', 'NRG Energy': 'NRG', 'Nucor Corp.': 'NUE', 'Nvidia Corporation': 'NVDA', 'OReilly Automotive': 'ORLY', 'Occidental Petroleum': 'OXY', 'Omnicom Group': 'OMC', 'ONEOK': 'OKE', 'Oracle Corp.': 'ORCL', 'PACCAR Inc.': 'PCAR', 'Packaging Corporation of America': 'PKG', 'Parker-Hannifin': 'PH', 'Paychex Inc.': 'PAYX', 'PayPal': 'PYPL', 'Pentair Ltd.': 'PNR', 'Peoples United Financial': 'PBCT', 'PepsiCo Inc.': 'PEP', 'PerkinElmer': 'PKI', 'Perrigo': 'PRGO', 'Pfizer Inc.': 'PFE', 'PG&E Corp.': 'PCG', 'Philip Morris International': 'PM', 'Phillips 66': 'PSX', 'Pinnacle West Capital': 'PNW', 'Pioneer Natural Resources': 'PXD', 'PNC Financial Services': 'PNC', 'Polo Ralph Lauren Corp.': 'RL', 'PPG Industries': 'PPG', 'PPL Corp.': 'PPL', 'Principal Financial Group': 'PFG', 'Procter & Gamble': 'PG', 'Progressive Corp.': 'PGR', 'Prologis': 'PLD', 'Prudential Financial': 'PRU', 'Public Serv. Enterprise Inc.': 'PEG', 'Public Storage': 'PSA', 'Pulte Homes Inc.': 'PHM', 'PVH Corp.': 'PVH', 'Qorvo': 'QRVO', 'QUALCOMM Inc.': 'QCOM', 'Quanta Services Inc.': 'PWR', 'Quest Diagnostics': 'DGX', 'Range Resources Corp.': 'RRC', 'Raymond James Financial Inc.': 'RJF', 'Realty Income Corporation': 'O', 'Regency Centers Corporation': 'REG', 'Regeneron': 'REGN', 'Regions Financial Corp.': 'RF', 'Republic Services Inc': 'RSG', 'ResMed': 'RMD', 'Robert Half International': 'RHI', 'Rockwell Automation Inc.': 'ROK', 'Rockwell Collins': 'COL', 'Roper Technologies': 'ROP', 'Ross Stores': 'ROST', 'Royal Caribbean Cruises Ltd': 'RCL', 'S&P Global Inc.': 'SPGI', 'Salesforce.com': 'CRM', 'SBA Communications': 'SBAC', 'SCANA Corp': 'SCG', 'Schlumberger Ltd.': 'SLB', 'Seagate Technology': 'STX', 'Sealed Air': 'SEE', 'Sempra Energy': 'SRE', 'Sherwin-Williams': 'SHW', 'Simon Property Group Inc': 'SPG', 'Skyworks Solutions': 'SWKS', 'SL Green Realty': 'SLG', 'Snap-On Inc.': 'SNA', 'Southern Co.': 'SO', 'Southwest Airlines': 'LUV', 'Stanley Black & Decker': 'SWK', 'Starbucks Corp.': 'SBUX', 'State Street Corp.': 'STT', 'Stericycle Inc': 'SRCL', 'Stryker Corp.': 'SYK', 'SVB Financial': 'SIVB', 'Synchrony Financial': 'SYF', 'Synopsys Inc.': 'SNPS', 'Sysco Corp.': 'SYY', 'T. Rowe Price Group': 'TROW', 'Take-Two Interactive': 'TTWO', 'Tapestry Inc.': 'TPR', 'Target Corp.': 'TGT', 'TE Connectivity Ltd.': 'TEL', 'TechnipFMC': 'FTI', 'Texas Instruments': 'TXN', 'Textron Inc.': 'TXT', 'The Bank of New York Mellon Corp.': 'BK', 'The Clorox Company': 'CLX', 'The Cooper Companies': 'COO', 'The Hershey Company': 'HSY', 'The Mosaic Company': 'MOS', 'The Travelers Companies Inc.': 'TRV', 'The Walt Disney Company': 'DIS', 'Thermo Fisher Scientific': 'TMO', 'Tiffany & Co.': 'TIF', 'Time Warner Inc.': 'TWX', 'TJX Companies Inc.': 'TJX', 'Tractor Supply Company': 'TSCO', 'TransDigm Group': 'TDG', 'TripAdvisor': 'TRIP', 'Twenty-First Century Fox Class A': 'FOXA', 'Twenty-First Century Fox Class B': 'FOX', 'Tyson Foods': 'TSN', 'U.S. Bancorp': 'USB', 'UDR Inc': 'UDR', 'Ulta Beauty': 'ULTA', 'Under Armour Class A': 'UAA', 'Under Armour Class C': 'UA', 'Union Pacific': 'UNP', 'United Continental Holdings': 'UAL', 'United Health Group Inc.': 'UNH', 'United Parcel Service': 'UPS', 'United Rentals Inc.': 'URI', 'Universal Health Services Inc.': 'UHS', 'Unum Group': 'UNM', 'V.F. Corp.': 'VFC', 'Valero Energy': 'VLO', 'Varian Medical Systems': 'VAR', 'Ventas Inc': 'VTR', 'Verisign Inc.': 'VRSN', 'Verisk Analytics': 'VRSK', 'Verizon Communications': 'VZ', 'Vertex Pharmaceuticals Inc': 'VRTX', 'Viacom Inc.': 'VIAC', 'Visa Inc.': 'V', 'Vornado Realty Trust': 'VNO', 'Vulcan Materials': 'VMC', 'Wal-Mart Stores': 'WMT', 'Walgreens Boots Alliance': 'WBA', 'Waste Management Inc.': 'WM', 'Waters Corporation': 'WAT', 'Wec Energy Group Inc': 'WEC', 'Wells Fargo': 'WFC', 'Welltower Inc.': 'WELL', 'Western Digital': 'WDC', 'Western Union Co': 'WU', 'WestRock Company': 'WRK', 'Weyerhaeuser Corp.': 'WY', 'Whirlpool Corp.': 'WHR', 'Williams Cos.': 'WMB', 'Willis Towers Watson': 'WLTW', 'Wynn Resorts Ltd': 'WYNN', 'Xcel Energy Inc': 'XEL', 'Xerox Corp.': 'XRX', 'Xilinx Inc': 'XLNX', 'XL Capital': 'XL', 'Xylem Inc.': 'XYL', 'Yum! Brands Inc': 'YUM', 'Zimmer Biomet Holdings': 'ZBH', 'Zions Bancorp': 'ZION', 'Zoetis': 'ZTS'}
iso3 = {'Afghanistan': 'AFG', 'Albania': 'ALB', 'Algeria': 'DZA', 'Angola': 'AGO', 'Antigua and Barbuda': 'ATG', 'Argentina': 'ARG', 'Armenia': 'ARM', 'Aruba': 'ABW', 'Australia': 'AUS', 'Austria': 'AUT', 'Azerbaijan': 'AZE', 'Bahamas': 'BHS', 'Bahrain': 'BHR', 'Bangladesh': 'BGD', 'Barbados': 'BRB', 'Belarus': 'BLR', 'Belgium': 'BEL', 'Belize': 'BLZ', 'Benin': 'BEN', 'Bhutan': 'BTN', 'Bolivia': 'BOL', 'Bosnia and Herzegovina': 'BIH', 'Botswana': 'BWA', 'Brazil': 'BRA', 'Brunei Darussalam': 'BRN', 'Bulgaria': 'BGR', 'Burkina Faso': 'BFA', 'Burundi': 'BDI', 'Cabo Verde': 'CPV', 'Cambodia': 'KHM', 'Cameroon': 'CMR', 'Canada': 'CAN', 'Chad': 'TCD', 'Chile': 'CHL', 'China': 'CHN', 'Colombia': 'COL', 'Comoros': 'COM', 'Congo Dem. Rep.': 'COD', 'Congo Rep.': 'COG', 'Costa Rica': 'CRI', 'Cote dIvoire': 'CIV', 'Croatia': 'HRV', 'Cyprus': 'CYP', 'Czech Republic': 'CZE', 'Denmark': 'DNK', 'Djibouti': 'DJI', 'Dominica': 'DMA', 'Dominican Republic': 'DOM', 'Ecuador': 'ECU', 'Egypt Arab Rep.': 'EGY', 'El Salvador': 'SLV', 'Equatorial Guinea': 'GNQ', 'Eritrea': 'ERI', 'Estonia': 'EST', 'Ethiopia': 'ETH', 'Fiji': 'FJI', 'Finland': 'FIN', 'France': 'FRA', 'Gabon': 'GAB', 'Gambia': 'GMB', 'Georgia': 'GEO', 'Germany': 'DEU', 'Ghana': 'GHA', 'Greece': 'GRC', 'Grenada': 'GRD', 'Guatemala': 'GTM', 'Guinea': 'GIN', 'Guinea-Bissau': 'GNB', 'Guyana': 'GUY', 'Haiti': 'HTI', 'Honduras': 'HND', 'Hong Kong SAR China': 'HKG', 'Hungary': 'HUN', 'Iceland': 'ISL', 'India': 'IND', 'Indonesia': 'IDN', 'Iran Islamic Rep.': 'IRN', 'Iraq': 'IRQ', 'Ireland': 'IRL', 'Israel': 'ISR', 'Italy': 'ITA', 'Jamaica': 'JAM', 'Japan': 'JPN', 'Jordan': 'JOR', 'Kazakhstan': 'KAZ', 'Kenya': 'KEN', 'Kiribati': 'KIR', 'Korea Rep': 'KOR', 'Kuwait': 'KWT', 'Kyrgyz Republic': 'KGZ', 'Lao PDR': 'LAO', 'Latvia': 'LVA', 'Lebanon': 'LBN', 'Lesotho': 'LSO', 'Liberia': 'LBR', 'Libya': 'LBY', 'Lithuania': 'LTU', 'Luxembourg': 'LUX', 'Macao SAR China': 'MAC', 'Macedonia FYR': 'MKD', 'Madagascar': 'MDG', 'Malawi': 'MWI', 'Malaysia': 'MYS', 'Maldives': 'MDV', 'Mali': 'MLI', 'Malta': 'MLT', 'Marshall Islands': 'MHL', 'Mauritania': 'MRT', 'Mauritius': 'MUS', 'Mexico': 'MEX', 'Micronesia Fed. Sts.': 'FSM', 'Moldova': 'MDA', 'Mongolia': 'MNG', 'Montenegro': 'MNE', 'Morocco': 'MAR', 'Mozambique': 'MOZ', 'Myanmar': 'MMR', 'Namibia': 'NAM', 'Nepal': 'NPL', 'Netherlands': 'NLD', 'New Zealand': 'NZL', 'Nicaragua': 'NIC', 'Niger': 'NER', 'Nigeria': 'NGA', 'Norway': 'NOR', 'Oman': 'OMN', 'Pakistan': 'PAK', 'Palau': 'PLW', 'Panama': 'PAN', 'Papua New Guinea': 'PNG', 'Paraguay': 'PRY', 'Peru': 'PER', 'Philippines': 'PHL', 'Poland': 'POL', 'Portugal': 'PRT', 'Puerto Rico': 'PRI', 'Qatar': 'QAT', 'Romania': 'ROU', 'Russian Federation': 'RUS', 'Rwanda': 'RWA', 'Samoa': 'WSM', 'San Marino': 'SMR', 'Sao Tome and Principe': 'STP', 'Saudi Arabia': 'SAU', 'Senegal': 'SEN', 'Serbia': 'SRB', 'Seychelles': 'SYC', 'Sierra Leone': 'SLE', 'Singapore': 'SGP', 'Slovak Republic': 'SVK', 'Slovenia': 'SVN', 'Solomon Islands': 'SLB', 'South Africa': 'ZAF', 'South Sudan': 'SSD', 'Spain': 'ESP', 'Sri Lanka': 'LKA', 'St. Kitts and Nevis': 'KNA', 'St. Lucia': 'LCA', 'St. Vincent and the Grenadines': 'VCT', 'Sudan': 'SDN', 'Suriname': 'SUR', 'Swaziland': 'SWZ', 'Sweden': 'SWE', 'Switzerland': 'CHE', 'Syrian Arab Republic': 'SYR', 'Tajikistan': 'TJK', 'Tanzania': 'TZA', 'Thailand': 'THA', 'Timor-Leste': 'TLS', 'Togo': 'TGO', 'Tonga': 'TON', 'Trinidad and Tobago': 'TTO', 'Tunisia': 'TUN', 'Turkey': 'TUR', 'Turkmenistan': 'TKM', 'Tuvalu': 'TUV', 'Uganda': 'UGA', 'Ukraine': 'UKR', 'United Arab Emirates': 'ARE', 'United Kingdom': 'GBR', 'United States': 'USA', 'Uruguay': 'URY', 'Uzbekistan': 'UZB', 'Vanuatu': 'VUT', 'Venezuela RB': 'VEN', 'Vietnam': 'VNM', 'Yemen Rep.': 'YEM', 'Zambia': 'ZMB', 'Zimbabwe': 'ZWE'} |
a= int(input())
if (a%4 == 0) and (a%100 != 0):
print(1)
elif a%400 ==0:
print(1)
else:
print(0)
| a = int(input())
if a % 4 == 0 and a % 100 != 0:
print(1)
elif a % 400 == 0:
print(1)
else:
print(0) |
c = 0
while(True):
c+=1
inp = input()
if(inp == '0'):
break
n = int(inp)
inp = input().split(' ')
su = 0
for j in range(0,len(inp)):
su += int(inp[j])
av = int(su / len(inp))
count = 0
for j in range(0,len(inp)):
count += abs(av - int(inp[j]))
print('Set #' + str(c))
print('The minimum number of moves is ' + str(int(count/2)) + '.')
print('')
| c = 0
while True:
c += 1
inp = input()
if inp == '0':
break
n = int(inp)
inp = input().split(' ')
su = 0
for j in range(0, len(inp)):
su += int(inp[j])
av = int(su / len(inp))
count = 0
for j in range(0, len(inp)):
count += abs(av - int(inp[j]))
print('Set #' + str(c))
print('The minimum number of moves is ' + str(int(count / 2)) + '.')
print('') |
# cook your dish here
def highestPowerOf2(n):
return (n & (~(n - 1)))
for t in range(int(input())):
ts=int(input())
sum=0
if ts%2==1:
print((ts-1)//2)
else:
x=highestPowerOf2(ts)
print(ts//((x*2)))
| def highest_power_of2(n):
return n & ~(n - 1)
for t in range(int(input())):
ts = int(input())
sum = 0
if ts % 2 == 1:
print((ts - 1) // 2)
else:
x = highest_power_of2(ts)
print(ts // (x * 2)) |
'''rig pipeline prototype
by Ben Barker, copyright (c) 2015
ben.barker@gmail.com
for license info see license.txt
''' | """rig pipeline prototype
by Ben Barker, copyright (c) 2015
ben.barker@gmail.com
for license info see license.txt
""" |
def main():
# Manage input file
input = open(r"C:\Users\lawht\Desktop\Github\ROSALIND\Bioinformatics Stronghold\(2) Transcribing DNA into RNA\(2) Transcribing DNA into RNA\rosalind_rna.txt","r");
DNA_string = input.readline(); # take first line of input file for counting
# Take in input file of DNA string and print out its corresponding RNA sequence
print(DNA_to_RNA(DNA_string));
input.close();
# Given: A DNA string t having length at most 1000 nt.
# Return: The transcribed RNA string of t.
def DNA_to_RNA(s):
rna = "";
for n in s:
if n == "T":
rna = rna + "U";
else:
rna = rna + n;
return rna;
# Manually call main() on the file load
if __name__ == "__main__":
main(); | def main():
input = open('C:\\Users\\lawht\\Desktop\\Github\\ROSALIND\\Bioinformatics Stronghold\\(2) Transcribing DNA into RNA\\(2) Transcribing DNA into RNA\\rosalind_rna.txt', 'r')
dna_string = input.readline()
print(dna_to_rna(DNA_string))
input.close()
def dna_to_rna(s):
rna = ''
for n in s:
if n == 'T':
rna = rna + 'U'
else:
rna = rna + n
return rna
if __name__ == '__main__':
main() |
class Solution:
def minDifference(self, nums: List[int]) -> int:
# pick three values
if len(nums) <= 4:
return 0
nums.sort()
ans = nums[-1] - nums[0]
for i in range(4):
ans = min(nums[-1 - (3 - i)] - nums[i], ans)
return ans
| class Solution:
def min_difference(self, nums: List[int]) -> int:
if len(nums) <= 4:
return 0
nums.sort()
ans = nums[-1] - nums[0]
for i in range(4):
ans = min(nums[-1 - (3 - i)] - nums[i], ans)
return ans |
'''https://practice.geeksforgeeks.org/problems/bottom-view-of-binary-tree/1
https://www.geeksforgeeks.org/bottom-view-binary-tree/
Bottom View of Binary Tree
Medium Accuracy: 45.32% Submissions: 90429 Points: 4
Given a binary tree, print the bottom view from left to right.
A node is included in bottom view if it can be seen when we look at the tree from bottom.
20
/ \
8 22
/ \ \
5 3 25
/ \
10 14
For the above tree, the bottom view is 5 10 3 14 25.
If there are multiple bottom-most nodes for a horizontal distance from root, then print the later one in level traversal. For example, in the below diagram, 3 and 4 are both the bottommost nodes at horizontal distance 0, we need to print 4.
20
/ \
8 22
/ \ / \
5 3 4 25
/ \
10 14
For the above tree the output should be 5 10 4 14 25.
Example 1:
Input:
1
/ \
3 2
Output: 3 1 2
Explanation:
First case represents a tree with 3 nodes
and 2 edges where root is 1, left child of
1 is 3 and right child of 1 is 2.
Thus nodes of the binary tree will be
printed as such 3 1 2.
Example 2:
Input:
10
/ \
20 30
/ \
40 60
Output: 40 20 60 30
Your Task:
This is a functional problem, you don't need to care about input, just complete the function bottomView() which takes the root node of the tree as input and returns an array containing the bottom view of the given tree.
Expected Time Complexity: O(N).
Expected Auxiliary Space: O(N).
Constraints:
1 <= Number of nodes <= 105
1 <= Data of a node <= 105'''
# Python3 program to print Bottom
# View of Binary Tree
# Tree node class
class Node:
def __init__(self, key):
self.data = key
self.hd = 1000000
self.left = None
self.right = None
# Method that prints the bottom view.
def bottomView(root):
if (root == None):
return
# Initialize a variable 'hd' with 0
# for the root element.
hd = 0
# TreeMap which stores key value pair
# sorted on key value
m = dict()
# Queue to store tree nodes in level
# order traversal
q = []
# Assign initialized horizontal distance
# value to root node and add it to the queue.
root.hd = hd
# In STL, append() is used enqueue an item
q.append(root)
# Loop until the queue is empty (standard
# level order loop)
while (len(q) != 0):
temp = q[0]
# In STL, pop() is used dequeue an item
q.pop(0)
# Extract the horizontal distance value
# from the dequeued tree node.
hd = temp.hd
# Put the dequeued tree node to TreeMap
# having key as horizontal distance. Every
# time we find a node having same horizontal
# distance we need to replace the data in
# the map.
m[hd] = temp.data
# If the dequeued node has a left child, add
# it to the queue with a horizontal distance hd-1.
if (temp.left != None):
temp.left.hd = hd - 1
q.append(temp.left)
# If the dequeued node has a right child, add
# it to the queue with a horizontal distance
# hd+1.
if (temp.right != None):
temp.right.hd = hd + 1
q.append(temp.right)
# Traverse the map elements using the iterator.
for i in sorted(m.keys()):
print(m[i], end=' ')
# Driver Code
if __name__ == '__main__':
root = Node(20)
root.left = Node(8)
root.right = Node(22)
root.left.left = Node(5)
root.left.right = Node(3)
root.right.left = Node(4)
root.right.right = Node(25)
root.left.right.left = Node(10)
root.left.right.right = Node(14)
print("Bottom view of the given binary tree :")
bottomView(root)
# Using Hash Map
# Python3 program to print Bottom
# View of Binary Tree
class Node:
def __init__(self, key=None,
left=None,
right=None):
self.data = key
self.left = left
self.right = right
def printBottomView(root):
# Create a dictionary where
# key -> relative horizontal distance
# of the node from root node and
# value -> pair containing node's
# value and its level
d = dict()
printBottomViewUtil(root, d, 0, 0)
# Traverse the dictionary in sorted
# order of their keys and print
# the bottom view
for i in sorted(d.keys()):
print(d[i][0], end=" ")
def printBottomViewUtil(root, d, hd, level):
# Base case
if root is None:
return
# If current level is more than or equal
# to maximum level seen so far for the
# same horizontal distance or horizontal
# distance is seen for the first time,
# update the dictionary
if hd in d:
if level >= d[hd][1]:
d[hd] = [root.data, level]
else:
d[hd] = [root.data, level]
# recur for left subtree by decreasing
# horizontal distance and increasing
# level by 1
printBottomViewUtil(root.left, d, hd - 1,
level + 1)
# recur for right subtree by increasing
# horizontal distance and increasing
# level by 1
printBottomViewUtil(root.right, d, hd + 1,
level + 1)
# Driver Code
if __name__ == '__main__':
root = Node(20)
root.left = Node(8)
root.right = Node(22)
root.left.left = Node(5)
root.left.right = Node(3)
root.right.left = Node(4)
root.right.right = Node(25)
root.left.right.left = Node(10)
root.left.right.right = Node(14)
print("Bottom view of the given binary tree :")
printBottomView(root)
| """https://practice.geeksforgeeks.org/problems/bottom-view-of-binary-tree/1
https://www.geeksforgeeks.org/bottom-view-binary-tree/
Bottom View of Binary Tree
Medium Accuracy: 45.32% Submissions: 90429 Points: 4
Given a binary tree, print the bottom view from left to right.
A node is included in bottom view if it can be seen when we look at the tree from bottom.
20
/ 8 22
/ \\ 5 3 25
/ \\
10 14
For the above tree, the bottom view is 5 10 3 14 25.
If there are multiple bottom-most nodes for a horizontal distance from root, then print the later one in level traversal. For example, in the below diagram, 3 and 4 are both the bottommost nodes at horizontal distance 0, we need to print 4.
20
/ 8 22
/ \\ / 5 3 4 25
/ \\
10 14
For the above tree the output should be 5 10 4 14 25.
Example 1:
Input:
1
/ 3 2
Output: 3 1 2
Explanation:
First case represents a tree with 3 nodes
and 2 edges where root is 1, left child of
1 is 3 and right child of 1 is 2.
Thus nodes of the binary tree will be
printed as such 3 1 2.
Example 2:
Input:
10
/ 20 30
/ 40 60
Output: 40 20 60 30
Your Task:
This is a functional problem, you don't need to care about input, just complete the function bottomView() which takes the root node of the tree as input and returns an array containing the bottom view of the given tree.
Expected Time Complexity: O(N).
Expected Auxiliary Space: O(N).
Constraints:
1 <= Number of nodes <= 105
1 <= Data of a node <= 105"""
class Node:
def __init__(self, key):
self.data = key
self.hd = 1000000
self.left = None
self.right = None
def bottom_view(root):
if root == None:
return
hd = 0
m = dict()
q = []
root.hd = hd
q.append(root)
while len(q) != 0:
temp = q[0]
q.pop(0)
hd = temp.hd
m[hd] = temp.data
if temp.left != None:
temp.left.hd = hd - 1
q.append(temp.left)
if temp.right != None:
temp.right.hd = hd + 1
q.append(temp.right)
for i in sorted(m.keys()):
print(m[i], end=' ')
if __name__ == '__main__':
root = node(20)
root.left = node(8)
root.right = node(22)
root.left.left = node(5)
root.left.right = node(3)
root.right.left = node(4)
root.right.right = node(25)
root.left.right.left = node(10)
root.left.right.right = node(14)
print('Bottom view of the given binary tree :')
bottom_view(root)
class Node:
def __init__(self, key=None, left=None, right=None):
self.data = key
self.left = left
self.right = right
def print_bottom_view(root):
d = dict()
print_bottom_view_util(root, d, 0, 0)
for i in sorted(d.keys()):
print(d[i][0], end=' ')
def print_bottom_view_util(root, d, hd, level):
if root is None:
return
if hd in d:
if level >= d[hd][1]:
d[hd] = [root.data, level]
else:
d[hd] = [root.data, level]
print_bottom_view_util(root.left, d, hd - 1, level + 1)
print_bottom_view_util(root.right, d, hd + 1, level + 1)
if __name__ == '__main__':
root = node(20)
root.left = node(8)
root.right = node(22)
root.left.left = node(5)
root.left.right = node(3)
root.right.left = node(4)
root.right.right = node(25)
root.left.right.left = node(10)
root.left.right.right = node(14)
print('Bottom view of the given binary tree :')
print_bottom_view(root) |
class dotControlObject_t(object):
# no doc
aName = None
Color = None
Extension = None
IsMagnetic = None
ModelObject = None
Plane = None
| class Dotcontrolobject_T(object):
a_name = None
color = None
extension = None
is_magnetic = None
model_object = None
plane = None |
#Ask User for his role and save it in a variable
role = input ("Are you an administrator, teacher, or student?: ")
#If role "administrator or teacher" print they have keys
if role == "administrator" or role == "teacher":
print ("Administrators and teachers get keys!")
#If role "Student" print they dont get keys
elif role == "student":
print ("Students do not get keys")
#Else of the options, say the roles that can be used
else:
print("You can only be an administrator, teacher, or student!") | role = input('Are you an administrator, teacher, or student?: ')
if role == 'administrator' or role == 'teacher':
print('Administrators and teachers get keys!')
elif role == 'student':
print('Students do not get keys')
else:
print('You can only be an administrator, teacher, or student!') |
# Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
def f_gold ( k , s1 , s2 ) :
n = len ( s1 )
m = len ( s2 )
lcs = [ [ 0 for x in range ( m + 1 ) ] for y in range ( n + 1 ) ]
cnt = [ [ 0 for x in range ( m + 1 ) ] for y in range ( n + 1 ) ]
for i in range ( 1 , n + 1 ) :
for j in range ( 1 , m + 1 ) :
lcs [ i ] [ j ] = max ( lcs [ i - 1 ] [ j ] , lcs [ i ] [ j - 1 ] )
if ( s1 [ i - 1 ] == s2 [ j - 1 ] ) :
cnt [ i ] [ j ] = cnt [ i - 1 ] [ j - 1 ] + 1 ;
if ( cnt [ i ] [ j ] >= k ) :
for a in range ( k , cnt [ i ] [ j ] + 1 ) :
lcs [ i ] [ j ] = max ( lcs [ i ] [ j ] , lcs [ i - a ] [ j - a ] + a )
return lcs [ n ] [ m ]
#TOFILL
if __name__ == '__main__':
param = [
(4,'aggayxysdfa','aggajxaaasdfa',),
(2,'55571659965107','390286654154',),
(3,'01011011100','0000110001000',),
(5,'aggasdfa','aggajasdfaxy',),
(2,'5710246551','79032504084062',),
(3,'0100010','10100000',),
(3,'aabcaaaa','baaabcd',),
(1,'1219','3337119582',),
(2,'111000011','011',),
(2,'wiC oD','csiuGOUwE',)
]
n_success = 0
for i, parameters_set in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success+=1
print("#Results: %i, %i" % (n_success, len(param))) | def f_gold(k, s1, s2):
n = len(s1)
m = len(s2)
lcs = [[0 for x in range(m + 1)] for y in range(n + 1)]
cnt = [[0 for x in range(m + 1)] for y in range(n + 1)]
for i in range(1, n + 1):
for j in range(1, m + 1):
lcs[i][j] = max(lcs[i - 1][j], lcs[i][j - 1])
if s1[i - 1] == s2[j - 1]:
cnt[i][j] = cnt[i - 1][j - 1] + 1
if cnt[i][j] >= k:
for a in range(k, cnt[i][j] + 1):
lcs[i][j] = max(lcs[i][j], lcs[i - a][j - a] + a)
return lcs[n][m]
if __name__ == '__main__':
param = [(4, 'aggayxysdfa', 'aggajxaaasdfa'), (2, '55571659965107', '390286654154'), (3, '01011011100', '0000110001000'), (5, 'aggasdfa', 'aggajasdfaxy'), (2, '5710246551', '79032504084062'), (3, '0100010', '10100000'), (3, 'aabcaaaa', 'baaabcd'), (1, '1219', '3337119582'), (2, '111000011', '011'), (2, 'wiC oD', 'csiuGOUwE')]
n_success = 0
for (i, parameters_set) in enumerate(param):
if f_filled(*parameters_set) == f_gold(*parameters_set):
n_success += 1
print('#Results: %i, %i' % (n_success, len(param))) |
name = 'Zed A. Shaw'
age = 35
height = 74
weight = 180 # lbs
eyes = 'Blue'
teeth = 'White'
hair = 'Brown'
print(f"Let's talk about {name}.")
print(f"He's {height} inches tall.")
print(f"He's {weight} pounds heavy.")
print("Actually it's not too heavy")
print(f"He's got {eyes} eyes and {hair} hair.")
print(f"His teeth are usually {teeth} depending on the coffee.")
total = age + weight + height
print(f"If I add {age}, {height}, and {weight} I get {total}")
#Study Drills:
print("Conversion from lbs to kg")
print("=" * 20) #Writes = 20 times on same line
customLBS = 200
kg = round(customLBS / 2.2046226218488, 2)
print(f"{customLBS} is {kg} kg") | name = 'Zed A. Shaw'
age = 35
height = 74
weight = 180
eyes = 'Blue'
teeth = 'White'
hair = 'Brown'
print(f"Let's talk about {name}.")
print(f"He's {height} inches tall.")
print(f"He's {weight} pounds heavy.")
print("Actually it's not too heavy")
print(f"He's got {eyes} eyes and {hair} hair.")
print(f'His teeth are usually {teeth} depending on the coffee.')
total = age + weight + height
print(f'If I add {age}, {height}, and {weight} I get {total}')
print('Conversion from lbs to kg')
print('=' * 20)
custom_lbs = 200
kg = round(customLBS / 2.2046226218488, 2)
print(f'{customLBS} is {kg} kg') |
def get_data(path):
try:
file_handler = open(path, "r")
except:
return 0
data = []
for line in file_handler:
values = line.strip().split(" ")
data.append([int(values[1]), int(values[2]), int(values[3])])
return data
def sensortxt_parser(path):
order = ['lu', 'ru', 'lu', 'ru']
order2 = ['ld', 'rd', 'ld', 'rd']
dict1 = {} # walker1
dict2 = {} # walker2
with open(path, 'r') as f:
c = 0
for line in f:
if c == 2:
sensors = []
for elem in line.strip().split("\t"):
if elem == ' ':
sensors.append("x")
else:
sensors.append(int(elem))
if len(line.strip().split("\t")) == 3:
sensors.append("x")
for i in range(len(sensors)):
if i > 1:
dict2[order[i]] = sensors[i]
else:
dict1[order[i]] = sensors[i]
if c == 3:
sensors = []
for elem in line.strip().split("\t"):
if elem == ' ':
sensors.append("x")
else:
sensors.append(int(elem))
if len(line.strip().split("\t")) == 3:
sensors.append("x")
for i in range(len(sensors)):
if i > 1:
dict2[order2[i]] = sensors[i]
else:
dict1[order2[i]] = sensors[i]
c += 1
return dict1, dict2
| def get_data(path):
try:
file_handler = open(path, 'r')
except:
return 0
data = []
for line in file_handler:
values = line.strip().split(' ')
data.append([int(values[1]), int(values[2]), int(values[3])])
return data
def sensortxt_parser(path):
order = ['lu', 'ru', 'lu', 'ru']
order2 = ['ld', 'rd', 'ld', 'rd']
dict1 = {}
dict2 = {}
with open(path, 'r') as f:
c = 0
for line in f:
if c == 2:
sensors = []
for elem in line.strip().split('\t'):
if elem == ' ':
sensors.append('x')
else:
sensors.append(int(elem))
if len(line.strip().split('\t')) == 3:
sensors.append('x')
for i in range(len(sensors)):
if i > 1:
dict2[order[i]] = sensors[i]
else:
dict1[order[i]] = sensors[i]
if c == 3:
sensors = []
for elem in line.strip().split('\t'):
if elem == ' ':
sensors.append('x')
else:
sensors.append(int(elem))
if len(line.strip().split('\t')) == 3:
sensors.append('x')
for i in range(len(sensors)):
if i > 1:
dict2[order2[i]] = sensors[i]
else:
dict1[order2[i]] = sensors[i]
c += 1
return (dict1, dict2) |
# first line: 1
@mem.cache
def get_data(filename):
data=load_svmlight_file(filename)
return data[0],data[1]
| @mem.cache
def get_data(filename):
data = load_svmlight_file(filename)
return (data[0], data[1]) |
#
# Copyright 2017, Data61
# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
# ABN 41 687 119 230.
#
# This software may be distributed and modified according to the terms of
# the BSD 2-Clause license. Note that NO WARRANTY is provided.
# See "LICENSE_BSD2.txt" for details.
#
# @TAG(DATA61_BSD)
#
'''
Helpers for accessing architecture-specific information
'''
def is_64_bit_arch(arch):
return arch in ('x86_64', 'aarch64')
def min_untyped_size(arch):
return 4
def max_untyped_size(arch):
if is_64_bit_arch(arch):
return 47
else:
return 29
| """
Helpers for accessing architecture-specific information
"""
def is_64_bit_arch(arch):
return arch in ('x86_64', 'aarch64')
def min_untyped_size(arch):
return 4
def max_untyped_size(arch):
if is_64_bit_arch(arch):
return 47
else:
return 29 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.