content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
# Copyright (c) 2010 Spotify AB
# Copyright (c) 2010 Yelp
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, dis-
# tribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the fol-
# lowing conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
class BootstrapAction(object):
def __init__(self, name, path, bootstrap_action_args):
self.name = name
self.path = path
if isinstance(bootstrap_action_args, basestring):
bootstrap_action_args = [bootstrap_action_args]
self.bootstrap_action_args = bootstrap_action_args
def args(self):
args = []
if self.bootstrap_action_args:
args.extend(self.bootstrap_action_args)
return args
def __repr__(self):
return '%s.%s(name=%r, path=%r, bootstrap_action_args=%r)' % (
self.__class__.__module__, self.__class__.__name__,
self.name, self.path, self.bootstrap_action_args)
| class Bootstrapaction(object):
def __init__(self, name, path, bootstrap_action_args):
self.name = name
self.path = path
if isinstance(bootstrap_action_args, basestring):
bootstrap_action_args = [bootstrap_action_args]
self.bootstrap_action_args = bootstrap_action_args
def args(self):
args = []
if self.bootstrap_action_args:
args.extend(self.bootstrap_action_args)
return args
def __repr__(self):
return '%s.%s(name=%r, path=%r, bootstrap_action_args=%r)' % (self.__class__.__module__, self.__class__.__name__, self.name, self.path, self.bootstrap_action_args) |
def bond(output, i,j,Jz,Jx,S2=1):
if S2==1:
bond_half(output, i,j,Jz,Jx)
elif S2==2:
bond_one(output, i,j,Jz,Jx)
else:
error("S2 should be 1 or 2.")
def bond_half(output, i,j, Jz,Jx):
z = 0.25*Jz
x = 0.5*Jx
# diagonal
output.write('{} 0 {} 0 {} 0 {} 0 {} 0.0 \n'.format(i,i,j,j,z))
output.write('{} 1 {} 1 {} 0 {} 0 {} 0.0 \n'.format(i,i,j,j,-z))
output.write('{} 0 {} 0 {} 1 {} 1 {} 0.0 \n'.format(i,i,j,j,-z))
output.write('{} 1 {} 1 {} 1 {} 1 {} 0.0 \n'.format(i,i,j,j,z))
# off-diagonal
# S_i^+ S_j^-
output.write('{} 1 {} 0 {} 0 {} 1 {} 0.0 \n'.format(i,i,j,j,x))
# S_j^+ S_i^-
output.write('{} 1 {} 0 {} 0 {} 1 {} 0.0 \n'.format(j,j,i,i,x))
def bond_one(output, i,j, Jz,Jx):
# diagonal
output.write('{} 0 {} 0 {} 0 {} 0 {} 0.0 \n'.format(i,i,j,j,Jz))
output.write('{} 2 {} 2 {} 0 {} 0 {} 0.0 \n'.format(i,i,j,j,-Jz))
output.write('{} 0 {} 0 {} 2 {} 2 {} 0.0 \n'.format(i,i,j,j,-Jz))
output.write('{} 2 {} 2 {} 2 {} 2 {} 0.0 \n'.format(i,i,j,j,Jz))
# off-diagonal
# S_i^+ S_j^-
output.write('{} 1 {} 0 {} 0 {} 1 {} 0.0 \n'.format(i,i,j,j,Jx))
output.write('{} 2 {} 1 {} 0 {} 1 {} 0.0 \n'.format(i,i,j,j,Jx))
output.write('{} 1 {} 0 {} 1 {} 2 {} 0.0 \n'.format(i,i,j,j,Jx))
output.write('{} 2 {} 1 {} 1 {} 2 {} 0.0 \n'.format(i,i,j,j,Jx))
# S_j^+ S_i^-
output.write('{} 1 {} 0 {} 0 {} 1 {} 0.0 \n'.format(j,j,i,i,Jx))
output.write('{} 2 {} 1 {} 0 {} 1 {} 0.0 \n'.format(j,j,i,i,Jx))
output.write('{} 1 {} 0 {} 1 {} 2 {} 0.0 \n'.format(j,j,i,i,Jx))
output.write('{} 2 {} 1 {} 1 {} 2 {} 0.0 \n'.format(j,j,i,i,Jx))
def interall_header(output, L, S2=1):
output.write('=== header start\n')
output.write('NInterAll {}\n'.format(6*S2*L))
output.write('=== header (reserved)\n')
output.write('=== header (reserved)\n')
output.write('=== header end\n')
| def bond(output, i, j, Jz, Jx, S2=1):
if S2 == 1:
bond_half(output, i, j, Jz, Jx)
elif S2 == 2:
bond_one(output, i, j, Jz, Jx)
else:
error('S2 should be 1 or 2.')
def bond_half(output, i, j, Jz, Jx):
z = 0.25 * Jz
x = 0.5 * Jx
output.write('{} 0 {} 0 {} 0 {} 0 {} 0.0 \n'.format(i, i, j, j, z))
output.write('{} 1 {} 1 {} 0 {} 0 {} 0.0 \n'.format(i, i, j, j, -z))
output.write('{} 0 {} 0 {} 1 {} 1 {} 0.0 \n'.format(i, i, j, j, -z))
output.write('{} 1 {} 1 {} 1 {} 1 {} 0.0 \n'.format(i, i, j, j, z))
output.write('{} 1 {} 0 {} 0 {} 1 {} 0.0 \n'.format(i, i, j, j, x))
output.write('{} 1 {} 0 {} 0 {} 1 {} 0.0 \n'.format(j, j, i, i, x))
def bond_one(output, i, j, Jz, Jx):
output.write('{} 0 {} 0 {} 0 {} 0 {} 0.0 \n'.format(i, i, j, j, Jz))
output.write('{} 2 {} 2 {} 0 {} 0 {} 0.0 \n'.format(i, i, j, j, -Jz))
output.write('{} 0 {} 0 {} 2 {} 2 {} 0.0 \n'.format(i, i, j, j, -Jz))
output.write('{} 2 {} 2 {} 2 {} 2 {} 0.0 \n'.format(i, i, j, j, Jz))
output.write('{} 1 {} 0 {} 0 {} 1 {} 0.0 \n'.format(i, i, j, j, Jx))
output.write('{} 2 {} 1 {} 0 {} 1 {} 0.0 \n'.format(i, i, j, j, Jx))
output.write('{} 1 {} 0 {} 1 {} 2 {} 0.0 \n'.format(i, i, j, j, Jx))
output.write('{} 2 {} 1 {} 1 {} 2 {} 0.0 \n'.format(i, i, j, j, Jx))
output.write('{} 1 {} 0 {} 0 {} 1 {} 0.0 \n'.format(j, j, i, i, Jx))
output.write('{} 2 {} 1 {} 0 {} 1 {} 0.0 \n'.format(j, j, i, i, Jx))
output.write('{} 1 {} 0 {} 1 {} 2 {} 0.0 \n'.format(j, j, i, i, Jx))
output.write('{} 2 {} 1 {} 1 {} 2 {} 0.0 \n'.format(j, j, i, i, Jx))
def interall_header(output, L, S2=1):
output.write('=== header start\n')
output.write('NInterAll {}\n'.format(6 * S2 * L))
output.write('=== header (reserved)\n')
output.write('=== header (reserved)\n')
output.write('=== header end\n') |
class Solution:
def minSubArrayLen(self, s: int, nums: List[int]) -> int:
ans = int(2e5)
i = curr = 0
for j in range(len(nums)):
curr += nums[j]
while curr >= s:
curr -= nums[i]
ans = min(ans, j + 1 - i)
i += 1
return 0 if ans == int(2e5) else ans
| class Solution:
def min_sub_array_len(self, s: int, nums: List[int]) -> int:
ans = int(200000.0)
i = curr = 0
for j in range(len(nums)):
curr += nums[j]
while curr >= s:
curr -= nums[i]
ans = min(ans, j + 1 - i)
i += 1
return 0 if ans == int(200000.0) else ans |
{'application':{'type':'Application',
'name':'Addresses',
'backgrounds':
[
{'type':'Background',
'name':'bgBody',
'title':'Addresses',
'position':(208,183),
'size':(416, 310),
'menubar':
{
'type':'MenuBar',
'menus':
[
{ 'type':'Menu',
'name':'menuFile',
'label':'&File',
'items': [
{ 'type':'MenuItem',
'name':'menuFileImportOutlook',
'label':"&Import Outlook",
'command':'fileImportOutlook'},
{ 'type':'MenuItem', 'name':'fileSep1', 'label':'-' },
{ 'type':'MenuItem',
'name':'menuFileExit',
'label':'E&xit\tAlt+X',
'command':'exit'}
] },
{'type':'Menu',
'name':'Edit',
'label':'&Edit',
'items': [ { 'type':'MenuItem',
'name':'menuEditUndo',
'label':'&Undo\tCtrl+Z',
'command':'editUndo'},
{ 'type':'MenuItem',
'name':'menuEditRedo',
'label':'&Redo\tCtrl+Y',
'command':'editRedo'},
{ 'type':'MenuItem', 'name':'editSep1', 'label':'-' },
{ 'type':'MenuItem',
'name':'menuEditCut',
'label':'Cu&t\tCtrl+X',
'command':'editCut'},
{ 'type':'MenuItem',
'name':'menuEditCopy',
'label':'&Copy\tCtrl+C',
'command':'editCopy'},
{ 'type':'MenuItem',
'name':'menuEditPaste',
'label':'&Paste\tCtrl+V',
'command':'editPaste'},
{ 'type':'MenuItem', 'name':'editSep2', 'label':'-' },
{ 'type':'MenuItem',
'name':'menuEditClear',
'label':'Cle&ar\tDel',
'command':'editClear'},
{ 'type':'MenuItem',
'name':'menuEditSelectAll',
'label':'Select A&ll\tCtrl+A',
'command':'editSelectAll'},
{ 'type':'MenuItem', 'name':'editSep3', 'label':'-' },
{ 'type':"MenuItem",
'name':"menuEditNewCard",
'label':"&New Card\tCtrl+N",
'command':'editNewCard'},
{ 'type':"MenuItem",
'name':"menuEditDeleteCard",
'label':"&Delete Card",
'command':'editDeleteCard'},
] },
{'type':'Menu',
'name':'Go',
'label':'&Go',
'items': [ { 'type':"MenuItem",
'name':"menuGoNextCard",
'label':"&Next Card\tCtrl+1",
'command':'goNext'},
{ 'type':"MenuItem",
'name':"menuGoPrevCard",
'label':"&Prev Card\tCtrl+2",
'command':'goPrev'},
{ 'type':"MenuItem",
'name':"menuGoFirstCard",
'label':"&First Card\tCtrl+3",
'command':'goFirst'},
{ 'type':"MenuItem",
'name':"menuGoLastCard",
'label':"&Last Card\tCtrl+4",
'command':'goLast'},
] }
]
},
'components':
[
{'type':'TextArea', 'name':'Notes',
'position':(7,64),
'size':(278, 200),
'visible':0,
},
{'type':'TextField', 'name':'Name',
'position':(100,17),
'size':(241, -1),
},
{'type':'TextField', 'name':'Company',
'position':(100,39),
'size':(241, -1),
},
{'type':'TextField', 'name':'Street',
'position':(100,72),
'size':(183, -1),
},
{'type':'TextField', 'name':'City',
'position':(100,94),
'size':(183, -1),
},
{'type':'TextField', 'name':'State',
'position':(100,116),
'size':(183, -1),
},
{'type':'TextField', 'name':'Zip',
'position':(100,138),
'size':(183, -1),
},
{'type':'TextField',
'name':'Phone1',
'position':(100, 176),
'size':(169, -1),
},
{'type':'TextField',
'name':'Phone2',
'position':(100, 198),
'size':(169, -1),
},
{'type':'TextField',
'name':'Phone3',
'position':(100, 220),
'size':(169, -1),
},
{'type':'TextField',
'name':'Phone4',
'position':(100, 242),
'size':(169, -1),
},
{'type':'StaticText', 'name':'NameLabel',
'position':(7,24),
'size':(68, -1),
'text':'Name',
'alignment':'right',
},
{'type':'StaticText', 'name':'CompanyLabel',
'position':(7,46),
'size':(68, -1),
'text':'Company',
'alignment':'right',
},
{'type':'StaticText', 'name':'StreetLabel',
'position':(8,79),
'size':(68, -1),
'text':'Street',
'alignment':'right',
},
{'type':'StaticText', 'name':'CityLabel',
'position':(8,101),
'size':(68, -1),
'text':'City',
'alignment':'right',
},
{'type':'StaticText', 'name':'ZipCodeLabel',
'position':(8,145),
'size':(68, -1),
'text':'Zip Code',
'alignment':'right',
},
{'type':'StaticText', 'name':'TelephoneLabel',
'position':(7,180),
'size':(68, -1),
'text':'Telephone',
'alignment':'right',
},
{'type':'TextField', 'name':'Sortorder',
'position':(0,0),
'size':(30, -1),
'text':'1',
'visible':0,
},
{'type':'TextField', 'name':'NameOrder',
'position':(141,0),
'size':(73, -1),
'text':'last word',
'visible':0,
},
{'type':'StaticText', 'name':'StateLabel',
'position':(8,123),
'size':(68, -1),
'text':'State',
'alignment':'right',
},
{'type':'TextField', 'name':'CorrectName',
'position':(100,0),
'size':(241, -1),
'visible':0,
},
{'type':'Button', 'name':'NewCard',
'position':(301,152),
'size':(100, -1),
'label':'New Card',
'command':'editNewCard'
},
{'type':'Button', 'name':'DeleteCard',
'position':(301,178),
'size':(100, -1),
'label':'Delete Card',
'command':'editDeleteCard'
},
{'type':'Button', 'name':'Find',
'position':(301,100),
'size':(100, -1),
'label':'Find',
'command':'findRecord'
},
{'type':'Button', 'name':'ShowNotes',
'position':(301,126),
'size':(100, -1),
'label':'Show Notes',
'command':'showNotes',
},
{'type':'ImageButton', 'name':'Prev',
'position':(323,68),
'size':(26, 23),
'file':'prev.gif',
'command':'goPrev',
},
{'type':'ImageButton', 'name':'Next',
'position':(355,69),
'size':(25, 23),
'file':'next.gif',
'command':'goNext',
},
] }
] }
}
| {'application': {'type': 'Application', 'name': 'Addresses', 'backgrounds': [{'type': 'Background', 'name': 'bgBody', 'title': 'Addresses', 'position': (208, 183), 'size': (416, 310), 'menubar': {'type': 'MenuBar', 'menus': [{'type': 'Menu', 'name': 'menuFile', 'label': '&File', 'items': [{'type': 'MenuItem', 'name': 'menuFileImportOutlook', 'label': '&Import Outlook', 'command': 'fileImportOutlook'}, {'type': 'MenuItem', 'name': 'fileSep1', 'label': '-'}, {'type': 'MenuItem', 'name': 'menuFileExit', 'label': 'E&xit\tAlt+X', 'command': 'exit'}]}, {'type': 'Menu', 'name': 'Edit', 'label': '&Edit', 'items': [{'type': 'MenuItem', 'name': 'menuEditUndo', 'label': '&Undo\tCtrl+Z', 'command': 'editUndo'}, {'type': 'MenuItem', 'name': 'menuEditRedo', 'label': '&Redo\tCtrl+Y', 'command': 'editRedo'}, {'type': 'MenuItem', 'name': 'editSep1', 'label': '-'}, {'type': 'MenuItem', 'name': 'menuEditCut', 'label': 'Cu&t\tCtrl+X', 'command': 'editCut'}, {'type': 'MenuItem', 'name': 'menuEditCopy', 'label': '&Copy\tCtrl+C', 'command': 'editCopy'}, {'type': 'MenuItem', 'name': 'menuEditPaste', 'label': '&Paste\tCtrl+V', 'command': 'editPaste'}, {'type': 'MenuItem', 'name': 'editSep2', 'label': '-'}, {'type': 'MenuItem', 'name': 'menuEditClear', 'label': 'Cle&ar\tDel', 'command': 'editClear'}, {'type': 'MenuItem', 'name': 'menuEditSelectAll', 'label': 'Select A&ll\tCtrl+A', 'command': 'editSelectAll'}, {'type': 'MenuItem', 'name': 'editSep3', 'label': '-'}, {'type': 'MenuItem', 'name': 'menuEditNewCard', 'label': '&New Card\tCtrl+N', 'command': 'editNewCard'}, {'type': 'MenuItem', 'name': 'menuEditDeleteCard', 'label': '&Delete Card', 'command': 'editDeleteCard'}]}, {'type': 'Menu', 'name': 'Go', 'label': '&Go', 'items': [{'type': 'MenuItem', 'name': 'menuGoNextCard', 'label': '&Next Card\tCtrl+1', 'command': 'goNext'}, {'type': 'MenuItem', 'name': 'menuGoPrevCard', 'label': '&Prev Card\tCtrl+2', 'command': 'goPrev'}, {'type': 'MenuItem', 'name': 'menuGoFirstCard', 'label': '&First Card\tCtrl+3', 'command': 'goFirst'}, {'type': 'MenuItem', 'name': 'menuGoLastCard', 'label': '&Last Card\tCtrl+4', 'command': 'goLast'}]}]}, 'components': [{'type': 'TextArea', 'name': 'Notes', 'position': (7, 64), 'size': (278, 200), 'visible': 0}, {'type': 'TextField', 'name': 'Name', 'position': (100, 17), 'size': (241, -1)}, {'type': 'TextField', 'name': 'Company', 'position': (100, 39), 'size': (241, -1)}, {'type': 'TextField', 'name': 'Street', 'position': (100, 72), 'size': (183, -1)}, {'type': 'TextField', 'name': 'City', 'position': (100, 94), 'size': (183, -1)}, {'type': 'TextField', 'name': 'State', 'position': (100, 116), 'size': (183, -1)}, {'type': 'TextField', 'name': 'Zip', 'position': (100, 138), 'size': (183, -1)}, {'type': 'TextField', 'name': 'Phone1', 'position': (100, 176), 'size': (169, -1)}, {'type': 'TextField', 'name': 'Phone2', 'position': (100, 198), 'size': (169, -1)}, {'type': 'TextField', 'name': 'Phone3', 'position': (100, 220), 'size': (169, -1)}, {'type': 'TextField', 'name': 'Phone4', 'position': (100, 242), 'size': (169, -1)}, {'type': 'StaticText', 'name': 'NameLabel', 'position': (7, 24), 'size': (68, -1), 'text': 'Name', 'alignment': 'right'}, {'type': 'StaticText', 'name': 'CompanyLabel', 'position': (7, 46), 'size': (68, -1), 'text': 'Company', 'alignment': 'right'}, {'type': 'StaticText', 'name': 'StreetLabel', 'position': (8, 79), 'size': (68, -1), 'text': 'Street', 'alignment': 'right'}, {'type': 'StaticText', 'name': 'CityLabel', 'position': (8, 101), 'size': (68, -1), 'text': 'City', 'alignment': 'right'}, {'type': 'StaticText', 'name': 'ZipCodeLabel', 'position': (8, 145), 'size': (68, -1), 'text': 'Zip Code', 'alignment': 'right'}, {'type': 'StaticText', 'name': 'TelephoneLabel', 'position': (7, 180), 'size': (68, -1), 'text': 'Telephone', 'alignment': 'right'}, {'type': 'TextField', 'name': 'Sortorder', 'position': (0, 0), 'size': (30, -1), 'text': '1', 'visible': 0}, {'type': 'TextField', 'name': 'NameOrder', 'position': (141, 0), 'size': (73, -1), 'text': 'last word', 'visible': 0}, {'type': 'StaticText', 'name': 'StateLabel', 'position': (8, 123), 'size': (68, -1), 'text': 'State', 'alignment': 'right'}, {'type': 'TextField', 'name': 'CorrectName', 'position': (100, 0), 'size': (241, -1), 'visible': 0}, {'type': 'Button', 'name': 'NewCard', 'position': (301, 152), 'size': (100, -1), 'label': 'New Card', 'command': 'editNewCard'}, {'type': 'Button', 'name': 'DeleteCard', 'position': (301, 178), 'size': (100, -1), 'label': 'Delete Card', 'command': 'editDeleteCard'}, {'type': 'Button', 'name': 'Find', 'position': (301, 100), 'size': (100, -1), 'label': 'Find', 'command': 'findRecord'}, {'type': 'Button', 'name': 'ShowNotes', 'position': (301, 126), 'size': (100, -1), 'label': 'Show Notes', 'command': 'showNotes'}, {'type': 'ImageButton', 'name': 'Prev', 'position': (323, 68), 'size': (26, 23), 'file': 'prev.gif', 'command': 'goPrev'}, {'type': 'ImageButton', 'name': 'Next', 'position': (355, 69), 'size': (25, 23), 'file': 'next.gif', 'command': 'goNext'}]}]}} |
class API:
# BASE_URL
API_PREFIX = '/api/v1'
# REST Endpoints
ACCOUNT_BALANCE = '/accountbalance'
CURRENT_POSITIONS = '/currentpositions'
EXCHANGE_LIST = '/exchangelist'
HISTORICAL_ACCOUNT_BALANCES = '/historicalaccountbalances'
HISTORICAL_ORDER_FILLS = '/historicalorderfills'
SECURITY_DEFINITION = '/securitydefinition'
TRADE_ACCOUNTS = '/tradeaccounts'
HISTORICAL_PRICE_DATA = '/historicalpricedata'
# WS Endpoints
MARKET_DATA = '/marketdata'
MARKET_DEPTH = '/marketdepth'
| class Api:
api_prefix = '/api/v1'
account_balance = '/accountbalance'
current_positions = '/currentpositions'
exchange_list = '/exchangelist'
historical_account_balances = '/historicalaccountbalances'
historical_order_fills = '/historicalorderfills'
security_definition = '/securitydefinition'
trade_accounts = '/tradeaccounts'
historical_price_data = '/historicalpricedata'
market_data = '/marketdata'
market_depth = '/marketdepth' |
class KubeKrbMixin(object):
def __init__(self, **kwargs):
self.ticket_vol = "kerberos-data"
self.secret_name = "statesecret"
def inject_kerberos(self, kube_resources):
for r in kube_resources:
if r["kind"] == "Job":
for c in r["spec"]["template"]["spec"]["initContainers"]:
self.addKrbContainer(c)
for c in r["spec"]["template"]["spec"]["containers"]:
self.addKrbContainer(c)
r["spec"]["template"]["spec"]["initContainers"].insert(
0, self.getKrbInit()
)
r["spec"]["template"]["spec"]["volumes"].extend(
[{"emptyDir": {}, "name": self.ticket_vol}]
)
return kube_resources
def addKrbContainer(self, data):
data.setdefault("volumeMounts", []).extend(
[{"mountPath": "/tmp/kerberos", "name": self.ticket_vol}]
)
data.setdefault("env", []).extend(
[
{"name": "KRB5CCNAME", "value": "FILE:/tmp/kerberos/tmp_kt"},
{
"name": "KRBUSERNAME",
"valueFrom": {
"secretKeyRef": {"key": "username", "name": self.secret_name}
},
},
{
"name": "KRBPASSWORD",
"valueFrom": {
"secretKeyRef": {"key": "password", "name": self.secret_name}
},
},
]
)
def getKrbInit(self):
init = {
"command": ["sh", "-c", "echo $KRBPASSWORD|kinit $KRBUSERNAME@CERN.CH\n"],
"env": [
{"name": "KRB5CCNAME", "value": "FILE:/tmp/kerberos/tmp_kt"},
{
"name": "KRBUSERNAME",
"valueFrom": {
"secretKeyRef": {"key": "username", "name": self.secret_name}
},
},
{
"name": "KRBPASSWORD",
"valueFrom": {
"secretKeyRef": {"key": "password", "name": self.secret_name}
},
},
],
"image": "cern/cc7-base",
"name": "makecc",
"volumeMounts": [{"mountPath": "/tmp/kerberos", "name": self.ticket_vol}],
}
return init
| class Kubekrbmixin(object):
def __init__(self, **kwargs):
self.ticket_vol = 'kerberos-data'
self.secret_name = 'statesecret'
def inject_kerberos(self, kube_resources):
for r in kube_resources:
if r['kind'] == 'Job':
for c in r['spec']['template']['spec']['initContainers']:
self.addKrbContainer(c)
for c in r['spec']['template']['spec']['containers']:
self.addKrbContainer(c)
r['spec']['template']['spec']['initContainers'].insert(0, self.getKrbInit())
r['spec']['template']['spec']['volumes'].extend([{'emptyDir': {}, 'name': self.ticket_vol}])
return kube_resources
def add_krb_container(self, data):
data.setdefault('volumeMounts', []).extend([{'mountPath': '/tmp/kerberos', 'name': self.ticket_vol}])
data.setdefault('env', []).extend([{'name': 'KRB5CCNAME', 'value': 'FILE:/tmp/kerberos/tmp_kt'}, {'name': 'KRBUSERNAME', 'valueFrom': {'secretKeyRef': {'key': 'username', 'name': self.secret_name}}}, {'name': 'KRBPASSWORD', 'valueFrom': {'secretKeyRef': {'key': 'password', 'name': self.secret_name}}}])
def get_krb_init(self):
init = {'command': ['sh', '-c', 'echo $KRBPASSWORD|kinit $KRBUSERNAME@CERN.CH\n'], 'env': [{'name': 'KRB5CCNAME', 'value': 'FILE:/tmp/kerberos/tmp_kt'}, {'name': 'KRBUSERNAME', 'valueFrom': {'secretKeyRef': {'key': 'username', 'name': self.secret_name}}}, {'name': 'KRBPASSWORD', 'valueFrom': {'secretKeyRef': {'key': 'password', 'name': self.secret_name}}}], 'image': 'cern/cc7-base', 'name': 'makecc', 'volumeMounts': [{'mountPath': '/tmp/kerberos', 'name': self.ticket_vol}]}
return init |
products = {
# 'Basil Hayden\'s 10 Year': '016679',
'Blade and Bow 22 Year': '016834',
'Blantons': '016850',
'Blantons Gold Label': '016841',
'Booker\'s': '016906',
'Buffalo Trace': '018006',
# 'Buffalo Trace Experimental': '0953565',
# 'Eagle Rare': '017766',
'Eagle Rare 17yr': '017756',
'EH Taylor Barrel Proof': '021600',
'EH Taylor Four Grain': '021605',
# 'EH Taylor Seasoned Wood': '021603',
'EH Taylor Single Barrel': '021589',
'EH Taylor Small Batch': '021602',
# 'EH Taylor Straight Rye': '027101',
'EH Taylor 18y Marriage': '017900',
'Elijah Craig 18y': '017920',
'Elijah Craig 21y': '017923',
'Elijah Craig 23y': '017925',
# 'Elijah Craig Barrel Proof': '017914',
'Elijah Craig Toasted Barrel': '017913',
'Elmer T. Lee': '017946',
'Four Roses LE Small Batch': '018374',
'Four Roses LE Small Batch Barrel': '018365',
'Four Roses LE Small Batch Bourbon': '018378',
# 'George Dickel Bottled In Bond': '016102',
'George T. Stagg': '018416',
# 'Henry Mckenna Single Barrel': '018656',
# 'Kentucky Owl Confiscated': '019320',
'Kentucky Owl Straight Rye Whiskey': '026772',
# 'Knob Creek LE 2001': '019240',
# 'Larceny Barrel Proof': '018860',
# 'Little Book Batch 2: Noe Simple Task': '024572'
# 'Little Book Batch 3: The Road Home': '019440'
# 'Little Book Chapter 4: Lessons Honored': '024574',
# 'Lost Prophet': '019456',
# 'Maker\'s Mark Wood Finishing Series': '019492',
'Michter\'s Single Barrel 10 Yr Bourbon': '019876',
'Michter\'s Limited Release Single Barrel 10 Yr Rye': '027062',
'Michter\'s Toasted Barrel Finish': '019872',
'Old Fitzgerald 9 Year Bottled In Bond': '016372',
'Old Fitzgerald 14 Year Bottles In Bond': '016375',
'Old Forester 150 Anniversary': '101052',
'Old Forester Birthday': '000612',
'Old Rip Van Winkle 10yr': '020140',
'Pappy Van Winkle Family Reserve 23yr': '021030',
'Pappy Van Winkle Family Reserve 20yr': '021016',
'Pappy Van Winkle Family Reserve 15yr': '020150',
'Parkers Heritage #13 Heavy Char Rye': '026617',
'Parkers Heritage #43 Heavy Char Bourbon': '026412',
'Rock Hill Farms': '021279',
'Sazerac Rye 6yr': '027100',
'Sazerac Rye 18yr': '027096',
'Stagg Jr.': '021540',
'Thomas H. Handy': '027036',
'Van Winkle Special Reserve 12yr': '021906',
'Weller Antique': '022036',
'Weller 12 Year': '022027',
'Weller Full Proof': '022044',
'Weller Special Reserve': '021986',
'Weller C.Y.P.B': '022042',
'Weller Single Barrel': '022046',
# 'Wild Turkey Master\'s Keep Decades': '022097',
# 'Wild Turkey Master\'s Keep Revival': '086953',
# 'Wild Turkey Master\'s Keep Cornerstone': '022170',
# 'Wild Turkey Master\'s Keep Bottled In Bond': '100992',
'William Larue Weller': '022086'
} | products = {'Blade and Bow 22 Year': '016834', 'Blantons': '016850', 'Blantons Gold Label': '016841', "Booker's": '016906', 'Buffalo Trace': '018006', 'Eagle Rare 17yr': '017756', 'EH Taylor Barrel Proof': '021600', 'EH Taylor Four Grain': '021605', 'EH Taylor Single Barrel': '021589', 'EH Taylor Small Batch': '021602', 'EH Taylor 18y Marriage': '017900', 'Elijah Craig 18y': '017920', 'Elijah Craig 21y': '017923', 'Elijah Craig 23y': '017925', 'Elijah Craig Toasted Barrel': '017913', 'Elmer T. Lee': '017946', 'Four Roses LE Small Batch': '018374', 'Four Roses LE Small Batch Barrel': '018365', 'Four Roses LE Small Batch Bourbon': '018378', 'George T. Stagg': '018416', 'Kentucky Owl Straight Rye Whiskey': '026772', "Michter's Single Barrel 10 Yr Bourbon": '019876', "Michter's Limited Release Single Barrel 10 Yr Rye": '027062', "Michter's Toasted Barrel Finish": '019872', 'Old Fitzgerald 9 Year Bottled In Bond': '016372', 'Old Fitzgerald 14 Year Bottles In Bond': '016375', 'Old Forester 150 Anniversary': '101052', 'Old Forester Birthday': '000612', 'Old Rip Van Winkle 10yr': '020140', 'Pappy Van Winkle Family Reserve 23yr': '021030', 'Pappy Van Winkle Family Reserve 20yr': '021016', 'Pappy Van Winkle Family Reserve 15yr': '020150', 'Parkers Heritage #13 Heavy Char Rye': '026617', 'Parkers Heritage #43 Heavy Char Bourbon': '026412', 'Rock Hill Farms': '021279', 'Sazerac Rye 6yr': '027100', 'Sazerac Rye 18yr': '027096', 'Stagg Jr.': '021540', 'Thomas H. Handy': '027036', 'Van Winkle Special Reserve 12yr': '021906', 'Weller Antique': '022036', 'Weller 12 Year': '022027', 'Weller Full Proof': '022044', 'Weller Special Reserve': '021986', 'Weller C.Y.P.B': '022042', 'Weller Single Barrel': '022046', 'William Larue Weller': '022086'} |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def pathSum(self, root: 'TreeNode', sum: 'int') -> 'List[List[int]]':
return self.hasPathSum(root, sum, sum, 0)
def hasPathSum(self, root: 'TreeNode', sum: 'int', originalSum: 'int', dirty: 'int'):
if root == None:
return 0
elif root.right == None and root.left == None :
return int(sum == root.val)
else:
result = int(sum == root.val) + self.hasPathSum(root.left, sum - root.val, originalSum, 1) + self.hasPathSum(root.right, sum - root.val, originalSum, 1)
if (not dirty):
result = result + self.hasPathSum(root.left, originalSum, originalSum, 0) + self.hasPathSum(root.right, originalSum, originalSum, 0)
return result
| class Solution:
def path_sum(self, root: 'TreeNode', sum: 'int') -> 'List[List[int]]':
return self.hasPathSum(root, sum, sum, 0)
def has_path_sum(self, root: 'TreeNode', sum: 'int', originalSum: 'int', dirty: 'int'):
if root == None:
return 0
elif root.right == None and root.left == None:
return int(sum == root.val)
else:
result = int(sum == root.val) + self.hasPathSum(root.left, sum - root.val, originalSum, 1) + self.hasPathSum(root.right, sum - root.val, originalSum, 1)
if not dirty:
result = result + self.hasPathSum(root.left, originalSum, originalSum, 0) + self.hasPathSum(root.right, originalSum, originalSum, 0)
return result |
#
# PySNMP MIB module NETSERVER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETSERVER-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:20:48 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, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
Integer32, mib_2, Bits, Counter64, NotificationType, NotificationType, enterprises, ObjectIdentity, Counter32, ModuleIdentity, TimeTicks, IpAddress, MibIdentifier, iso, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "mib-2", "Bits", "Counter64", "NotificationType", "NotificationType", "enterprises", "ObjectIdentity", "Counter32", "ModuleIdentity", "TimeTicks", "IpAddress", "MibIdentifier", "iso", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
auspex = MibIdentifier((1, 3, 6, 1, 4, 1, 80))
netServer = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3))
axProductInfo = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 1))
axNP = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 2))
axFSP = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 3))
axTrapData = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 4))
axFP = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 2))
fpHTFS = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3))
axSP = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 3))
spRaid = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 3, 2))
npProtocols = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 2, 3))
axFab = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 4))
fabRaid = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5))
axProductName = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 1, 1), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: axProductName.setStatus('mandatory')
if mibBuilder.loadTexts: axProductName.setDescription('Name of the file server product.')
axSWVersion = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: axSWVersion.setStatus('mandatory')
if mibBuilder.loadTexts: axSWVersion.setDescription('Version of the M16 Kernel on Netserver')
axNumNPFSP = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: axNumNPFSP.setStatus('mandatory')
if mibBuilder.loadTexts: axNumNPFSP.setDescription('Number of NPFSP boards on file server.')
npTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 2, 1), )
if mibBuilder.loadTexts: npTable.setStatus('mandatory')
if mibBuilder.loadTexts: npTable.setDescription('A table for all NPs(Network Processors) on the file server.')
npEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 2, 1, 1), ).setIndexNames((0, "NETSERVER-MIB", "npIndex"))
if mibBuilder.loadTexts: npEntry.setStatus('mandatory')
if mibBuilder.loadTexts: npEntry.setDescription('An entry for each NP on the file server.')
npIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIndex.setStatus('mandatory')
if mibBuilder.loadTexts: npIndex.setDescription('A unique number for identifying an NP in the system.')
npBusyCount = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npBusyCount.setStatus('mandatory')
if mibBuilder.loadTexts: npBusyCount.setDescription('Busy counts of NP.')
npIdleCount = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIdleCount.setStatus('mandatory')
if mibBuilder.loadTexts: npIdleCount.setDescription('Idle counts of NP.')
npIfTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 2, 2), )
if mibBuilder.loadTexts: npIfTable.setStatus('mandatory')
if mibBuilder.loadTexts: npIfTable.setDescription('Table containing information for each interface of NP. It maps the interface with the NP')
npIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1), ).setIndexNames((0, "NETSERVER-MIB", "npIndex"), (0, "NETSERVER-MIB", "npIfIndex"))
if mibBuilder.loadTexts: npIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts: npIfEntry.setDescription('Entry for each interface')
npIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: npIfIndex.setDescription('A unique number for an interface for a given NP')
npIfifIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfifIndex.setStatus('mandatory')
if mibBuilder.loadTexts: npIfifIndex.setDescription('Corresponding ifINdex in ifTable of mib-2')
npIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfType.setStatus('mandatory')
if mibBuilder.loadTexts: npIfType.setDescription('Type of network interface ')
npIfSpeed = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfSpeed.setStatus('mandatory')
if mibBuilder.loadTexts: npIfSpeed.setDescription('Nominal Interface Speed (in millions of bits per second)')
npIfInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfInOctets.setStatus('mandatory')
if mibBuilder.loadTexts: npIfInOctets.setDescription('The total number of octets received on the interface, including framing characters')
npIfInUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfInUcastPkts.setStatus('mandatory')
if mibBuilder.loadTexts: npIfInUcastPkts.setDescription('The number of subnetwork-unicast packets delivered to a higher-layer protocol')
npIfInNUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfInNUcastPkts.setStatus('mandatory')
if mibBuilder.loadTexts: npIfInNUcastPkts.setDescription('The number of non-unicast (i.e., subnetwork-broadcast or multicast) packets delivered to a higher-layer protocol')
npIfInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: npIfInDiscards.setDescription('The inbound packet discard count even though no errors were detected. One reason for discarding could be to free up buffer space')
npIfInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfInErrors.setStatus('mandatory')
if mibBuilder.loadTexts: npIfInErrors.setDescription('The input-packet error count for an interface for a given NP')
npIfInUnknownProto = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfInUnknownProto.setStatus('mandatory')
if mibBuilder.loadTexts: npIfInUnknownProto.setDescription('The input-packet discard count due to an unknown or unsupported protocol')
npIfOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfOutOctets.setStatus('mandatory')
if mibBuilder.loadTexts: npIfOutOctets.setDescription('The total number of octets transmitted out of the interface, including framing characters')
npIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfOutUcastPkts.setStatus('mandatory')
if mibBuilder.loadTexts: npIfOutUcastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted to a subnetwork-unicast address, including those that were discarded or not sent')
npIfOutNUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfOutNUcastPkts.setStatus('mandatory')
if mibBuilder.loadTexts: npIfOutNUcastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted to a non-unicast (i.e., a subnetwork-broadcast or multicast) address, including those that were discarded or not sent')
npIfOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfOutDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: npIfOutDiscards.setDescription('The number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possibel reason for discarding such a packet could be to free up buffer space')
npIfOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfOutErrors.setStatus('mandatory')
if mibBuilder.loadTexts: npIfOutErrors.setDescription('The number of outbound packets that could not be transmitted because of errors')
npIfOutCollisions = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfOutCollisions.setStatus('mandatory')
if mibBuilder.loadTexts: npIfOutCollisions.setDescription('The output-packet collision count for an interface for a given NP')
npIfOutQLen = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 17), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfOutQLen.setStatus('mandatory')
if mibBuilder.loadTexts: npIfOutQLen.setDescription('The output-packet queue length (in packets) for an interface for a given NP')
npIfAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: npIfAdminStatus.setStatus('mandatory')
if mibBuilder.loadTexts: npIfAdminStatus.setDescription('The desired state of the interface. The testing(3) state indicates that no operational packets can be passed.')
npIfOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIfOperStatus.setStatus('mandatory')
if mibBuilder.loadTexts: npIfOperStatus.setDescription('The current operational state of the interface. The testing(3) state indicates that no operational packets can be passed.')
npIPTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1), )
if mibBuilder.loadTexts: npIPTable.setStatus('mandatory')
if mibBuilder.loadTexts: npIPTable.setDescription('Table for Internet Protocol statistics for each NP of the system.')
npIPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1), ).setIndexNames((0, "NETSERVER-MIB", "npIndex"))
if mibBuilder.loadTexts: npIPEntry.setStatus('mandatory')
if mibBuilder.loadTexts: npIPEntry.setDescription('An entry for each NP in the system.')
npIPForwarding = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("forwarding", 1), ("not-forwarding", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPForwarding.setStatus('mandatory')
if mibBuilder.loadTexts: npIPForwarding.setDescription('It has two values : forwarding(1) -- acting as gateway notforwarding(2) -- NOT acting as gateway')
npIPDefaultTTL = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPDefaultTTL.setStatus('mandatory')
if mibBuilder.loadTexts: npIPDefaultTTL.setDescription('NP IP default Time To Live.')
npIPInReceives = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPInReceives.setStatus('mandatory')
if mibBuilder.loadTexts: npIPInReceives.setDescription('NP IP received packet count.')
npIPInHdrErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPInHdrErrors.setStatus('mandatory')
if mibBuilder.loadTexts: npIPInHdrErrors.setDescription('NP IP header error count.')
npIPInAddrErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPInAddrErrors.setStatus('mandatory')
if mibBuilder.loadTexts: npIPInAddrErrors.setDescription('NP IP address error count.')
npIPForwDatagrams = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPForwDatagrams.setStatus('mandatory')
if mibBuilder.loadTexts: npIPForwDatagrams.setDescription('NP IP forwarded datagram count.')
npIPInUnknownProtos = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPInUnknownProtos.setStatus('mandatory')
if mibBuilder.loadTexts: npIPInUnknownProtos.setDescription('NP IP input packet with unknown protocol.')
npIPInDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: npIPInDiscards.setDescription('NP IP discarded input packet count.')
npIPInDelivers = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPInDelivers.setStatus('mandatory')
if mibBuilder.loadTexts: npIPInDelivers.setDescription('NP IP delivered input packet count.')
npIPOutRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPOutRequests.setStatus('mandatory')
if mibBuilder.loadTexts: npIPOutRequests.setDescription('NP IP tx packet count.')
npIPOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPOutDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: npIPOutDiscards.setDescription('NP IP discarded out packet count.')
npIPOutNoRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPOutNoRoutes.setStatus('mandatory')
if mibBuilder.loadTexts: npIPOutNoRoutes.setDescription('NP IP tx fails due to no route count.')
npIPReasmTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPReasmTimeout.setStatus('mandatory')
if mibBuilder.loadTexts: npIPReasmTimeout.setDescription('NP IP reassembly time out count.')
npIPReasmReqds = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPReasmReqds.setStatus('mandatory')
if mibBuilder.loadTexts: npIPReasmReqds.setDescription('NP IP reassembly required count.')
npIPReasmOKs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPReasmOKs.setStatus('mandatory')
if mibBuilder.loadTexts: npIPReasmOKs.setDescription('NP IP reassembly success count.')
npIPReasmFails = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPReasmFails.setStatus('mandatory')
if mibBuilder.loadTexts: npIPReasmFails.setDescription('NP IP reassembly failure count.')
npIPFragOKs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPFragOKs.setStatus('mandatory')
if mibBuilder.loadTexts: npIPFragOKs.setDescription('NP IP fragmentation success count.')
npIPFragFails = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPFragFails.setStatus('mandatory')
if mibBuilder.loadTexts: npIPFragFails.setDescription('NP IP fragmentation failure count.')
npIPFragCreates = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPFragCreates.setStatus('mandatory')
if mibBuilder.loadTexts: npIPFragCreates.setDescription('NP IP fragment created count.')
npIPRoutingDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npIPRoutingDiscards.setStatus('mandatory')
if mibBuilder.loadTexts: npIPRoutingDiscards.setDescription('NP IP discarded route count.')
npICMPTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2), )
if mibBuilder.loadTexts: npICMPTable.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPTable.setDescription('Table for Internet Control Message Protocol statistics for each NP of the system.')
npICMPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1), ).setIndexNames((0, "NETSERVER-MIB", "npIndex"))
if mibBuilder.loadTexts: npICMPEntry.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPEntry.setDescription('An entry for each NP in the system.')
npICMPInMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInMsgs.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInMsgs.setDescription('NP ICMP input message count.')
npICMPInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInErrors.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInErrors.setDescription('NP ICMP input error packet count.')
npICMPInDestUnreachs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInDestUnreachs.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInDestUnreachs.setDescription('NP ICMP input destination unreachable count.')
npICMPInTimeExcds = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInTimeExcds.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInTimeExcds.setDescription('NP ICMP input time exceeded count.')
npICMPInParmProbs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInParmProbs.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInParmProbs.setDescription('NP ICMP input parameter problem packet count.')
npICMPInSrcQuenchs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInSrcQuenchs.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInSrcQuenchs.setDescription('NP ICMP input source quench packet count.')
npICMPInRedirects = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInRedirects.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInRedirects.setDescription('NP ICMP input redirect packet count.')
npICMPInEchos = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInEchos.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInEchos.setDescription('NP ICMP input echo count.')
npICMPInEchoReps = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInEchoReps.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInEchoReps.setDescription('NP ICMP input echo reply count.')
npICMPInTimestamps = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInTimestamps.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInTimestamps.setDescription('NP ICMP input timestamp count.')
npICMPInTimestampReps = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInTimestampReps.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInTimestampReps.setDescription('NP ICMP input timestamp reply count.')
npICMPInAddrMasks = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInAddrMasks.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInAddrMasks.setDescription('NP ICMP input address mask count.')
npICMPInAddrMaskReps = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPInAddrMaskReps.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPInAddrMaskReps.setDescription('NP ICMP input address mask reply count.')
npICMPOutMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutMsgs.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutMsgs.setDescription('NP ICMP output message count.')
npICMPOutErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutErrors.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutErrors.setDescription('NP ICMP output error packet count.')
npICMPOutDestUnreachs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutDestUnreachs.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutDestUnreachs.setDescription('NP ICMP output destination unreachable count.')
npICMPOutTimeExcds = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutTimeExcds.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutTimeExcds.setDescription('NP ICMP output time exceeded count.')
npICMPOutParmProbs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutParmProbs.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutParmProbs.setDescription('NP ICMP output parameter problem packet count.')
npICMPOutSrcQuenchs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutSrcQuenchs.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutSrcQuenchs.setDescription('NP ICMP output source quench packet count.')
npICMPOutRedirects = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutRedirects.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutRedirects.setDescription('NP ICMP output redirect packet count.')
npICMPOutEchos = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutEchos.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutEchos.setDescription('NP ICMP output echo count.')
npICMPOutEchoReps = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutEchoReps.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutEchoReps.setDescription('NP ICMP output echo reply count.')
npICMPOutTimestamps = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutTimestamps.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutTimestamps.setDescription('NP ICMP output timestamp count.')
npICMPOutTimestampReps = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutTimestampReps.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutTimestampReps.setDescription('NP ICMP output timestamp reply count.')
npICMPOutAddrMasks = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutAddrMasks.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutAddrMasks.setDescription('NP ICMP output address mask count.')
npICMPOutAddrMaskReps = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npICMPOutAddrMaskReps.setStatus('mandatory')
if mibBuilder.loadTexts: npICMPOutAddrMaskReps.setDescription('NP ICMP output address mask reply count.')
npTCPTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3), )
if mibBuilder.loadTexts: npTCPTable.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPTable.setDescription('Table for Transmission Control Protocol statistics for each NP of the system.')
npTCPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1), ).setIndexNames((0, "NETSERVER-MIB", "npIndex"))
if mibBuilder.loadTexts: npTCPEntry.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPEntry.setDescription('An entry for each NP in the system.')
npTCPRtoAlgorithm = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("other", 1), ("constant", 2), ("rsre", 3), ("vanj", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPRtoAlgorithm.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPRtoAlgorithm.setDescription('NP TCP Round Trip Algorithm type.')
npTCPRtoMin = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPRtoMin.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPRtoMin.setDescription('NP TCP minimum RTO.')
npTCPRtoMax = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPRtoMax.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPRtoMax.setDescription('NP TCP maximum RTO.')
npTCPMaxConn = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPMaxConn.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPMaxConn.setDescription('NP TCP maximum number of connections.')
npTCPActiveOpens = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPActiveOpens.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPActiveOpens.setDescription('NP TCP active open count.')
npTCPPassiveOpens = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPPassiveOpens.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPPassiveOpens.setDescription('NP TCP passive open count.')
npTCPAttemptFails = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPAttemptFails.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPAttemptFails.setDescription('NP TCP connect attempt fails.')
npTCPEstabResets = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPEstabResets.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPEstabResets.setDescription('NP TCP reset of established session.')
npTCPCurrEstab = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPCurrEstab.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPCurrEstab.setDescription('NP TCP current established session count.')
npTCPInSegs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPInSegs.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPInSegs.setDescription('NP TCP input segments count.')
npTCPOutSegs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPOutSegs.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPOutSegs.setDescription('NP TCP output segments count.')
npTCPRetransSegs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPRetransSegs.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPRetransSegs.setDescription('NP TCP retransmitted segments count.')
npTCPInErrs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPInErrs.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPInErrs.setDescription('NP TCP input error packets count.')
npTCPOutRsts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npTCPOutRsts.setStatus('mandatory')
if mibBuilder.loadTexts: npTCPOutRsts.setDescription('NP TCP output reset packets count.')
npUDPTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4), )
if mibBuilder.loadTexts: npUDPTable.setStatus('mandatory')
if mibBuilder.loadTexts: npUDPTable.setDescription('Table for User Datagram Protocol statistics for each NP of the system.')
npUDPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1), ).setIndexNames((0, "NETSERVER-MIB", "npIndex"))
if mibBuilder.loadTexts: npUDPEntry.setStatus('mandatory')
if mibBuilder.loadTexts: npUDPEntry.setDescription('An entry for each NP in the system.')
npUDPInDatagrams = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npUDPInDatagrams.setStatus('mandatory')
if mibBuilder.loadTexts: npUDPInDatagrams.setDescription('NP UDP input datagram count.')
npUDPNoPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npUDPNoPorts.setStatus('mandatory')
if mibBuilder.loadTexts: npUDPNoPorts.setDescription('NP UDP number of ports.')
npUDPInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npUDPInErrors.setStatus('mandatory')
if mibBuilder.loadTexts: npUDPInErrors.setDescription('NP UDP input error count.')
npUDPOutDatagrams = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npUDPOutDatagrams.setStatus('mandatory')
if mibBuilder.loadTexts: npUDPOutDatagrams.setDescription('Np UDP output datagram count.')
npNFSTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5), )
if mibBuilder.loadTexts: npNFSTable.setStatus('mandatory')
if mibBuilder.loadTexts: npNFSTable.setDescription('Table for Network File System statistics for each NP in the system.')
npNFSEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5, 1), ).setIndexNames((0, "NETSERVER-MIB", "npIndex"))
if mibBuilder.loadTexts: npNFSEntry.setStatus('mandatory')
if mibBuilder.loadTexts: npNFSEntry.setDescription('An entry for each NP in the system.')
npNFSDCounts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npNFSDCounts.setStatus('mandatory')
if mibBuilder.loadTexts: npNFSDCounts.setDescription('NP NFS count (obtained from NFS daemon)')
npNFSDNJobs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npNFSDNJobs.setStatus('mandatory')
if mibBuilder.loadTexts: npNFSDNJobs.setDescription('NP NFS number of jobs (obtained from NFS daemon)')
npNFSDBusyCounts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npNFSDBusyCounts.setStatus('mandatory')
if mibBuilder.loadTexts: npNFSDBusyCounts.setDescription('NP NFS busy count (obtained from NFS daemon)')
npSMBTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6), )
if mibBuilder.loadTexts: npSMBTable.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBTable.setDescription('Contains statistical counts for the SMB protocol per NP')
npSMBEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1), ).setIndexNames((0, "NETSERVER-MIB", "npIndex"))
if mibBuilder.loadTexts: npSMBEntry.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBEntry.setDescription('An entry for each NP in the system.')
npSMBRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npSMBRcvd.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBRcvd.setDescription('The total number of SMB netbios messages received.')
npSMBBytesRcvd = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npSMBBytesRcvd.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBBytesRcvd.setDescription('The total number of SMB related bytes rvcd by this NP from a client (does not include netbios header bytes).')
npSMBBytesSent = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npSMBBytesSent.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBBytesSent.setDescription('The total SMB related bytes sent by this NP to a client (does not include netbios header bytes).')
npSMBReads = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npSMBReads.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBReads.setDescription('The total number of SMB reads consisting of the following opcodes: SMB-COM-READ, SMB-COM-LOCK-AND-READ, SMB-COM-READ-RAW, SMB-COM-READ-MPX, SMB-COM-READ-MPX-SECONDARY and SMB-COM-READ-ANDX.')
npSMBWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npSMBWrites.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBWrites.setDescription('The total number of SMB writes consisting of the following opcodes: SMB-COM-WRITE, SMB-COM-WRITE-AND-UNLOCK, SMB-COM-WRITE-RAW, SMB-COM-WRITE-MPX, SMB-COM-WRITE-COMPLETE, SMB-COM-WRITE-ANDX and SMB-COM-WRITE-AND-CLOSE.')
npSMBOpens = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npSMBOpens.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBOpens.setDescription('The total number of SMB opens consisting of the SMB-COM-OPEN, SMB-COM-CREATE,SMB-COM-CREATE-TEMPORARY,SMB-COM-CREATE-NEW, TRANS2-OPEN2, NT-TRANSACT-CREATE and SMB-COM-OPEN-ANDX opcodes received.')
npSMBCloses = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npSMBCloses.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBCloses.setDescription('The total number of SMB SMB-COM-CLOSE opcodes recieved.')
npSMBErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npSMBErrors.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBErrors.setDescription('The total number of invalid netbios messages recieved.')
npSMBLocksHeld = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: npSMBLocksHeld.setStatus('mandatory')
if mibBuilder.loadTexts: npSMBLocksHeld.setDescription('The total number of locks currently held')
fspTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 1), )
if mibBuilder.loadTexts: fspTable.setStatus('mandatory')
if mibBuilder.loadTexts: fspTable.setDescription('A table for all FSPs(File and Storage Processors) on the file server.')
fspEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 1, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"))
if mibBuilder.loadTexts: fspEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fspEntry.setDescription('An entry for one FSP on the file server.')
fspIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fspIndex.setStatus('mandatory')
if mibBuilder.loadTexts: fspIndex.setDescription('A unique number for identifying an FSP in the system.')
fspBusyCount = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fspBusyCount.setStatus('mandatory')
if mibBuilder.loadTexts: fspBusyCount.setDescription('Busy counts of FSP.')
fspIdleCount = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fspIdleCount.setStatus('mandatory')
if mibBuilder.loadTexts: fspIdleCount.setDescription('Idle counts of FSP.')
fpLFSTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1), )
if mibBuilder.loadTexts: fpLFSTable.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSTable.setDescription('Table for FP File System Services Statistics for each FSP on the system.')
fpLFSEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"))
if mibBuilder.loadTexts: fpLFSEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSEntry.setDescription('An entry for each FSP in the system.')
fpLFSVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSVersion.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSVersion.setDescription('FP file system services statistics version.')
fpLFSMounts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSMounts.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSMounts.setDescription('FP file system services - FC-MOUNT - Counter.')
fpLFSUMounts = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSUMounts.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSUMounts.setDescription('FP file system services - FC-UMOUNT - Counter.')
fpLFSReads = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSReads.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSReads.setDescription('FP file system services - FC-READ - Counter.')
fpLFSWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSWrites.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSWrites.setDescription('FP file system services - FC-WRITE - Counter.')
fpLFSReaddirs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSReaddirs.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSReaddirs.setDescription('FP file system services - FC-READDIR - Counter.')
fpLFSReadlinks = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSReadlinks.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSReadlinks.setDescription('FP file system services - FC-READLINK - Counter.')
fpLFSMkdirs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSMkdirs.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSMkdirs.setDescription('FP file system services - FC-MKDIR - Counter.')
fpLFSMknods = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSMknods.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSMknods.setDescription('FP file system services - FC-MKNOD - Counter.')
fpLFSReaddirPluses = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSReaddirPluses.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSReaddirPluses.setDescription('FP file system services - FC-READDIR-PLUS - Counter.')
fpLFSFsstats = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSFsstats.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSFsstats.setDescription('FP file system services - FC-FSSTAT - Counter.')
fpLFSNull = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 12), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSNull.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSNull.setDescription('FP file system services - FC-NULL - Counter.')
fpLFSFsinfo = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 13), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSFsinfo.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSFsinfo.setDescription('FP file system services - FC-FSINFO - Counter.')
fpLFSGetattrs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 14), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSGetattrs.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSGetattrs.setDescription('FP file system services - FC-GETATTR - Counter.')
fpLFSSetattrs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 15), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSSetattrs.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSSetattrs.setDescription('FP file system services - FC-SETATTR - Counter.')
fpLFSLookups = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 16), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSLookups.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSLookups.setDescription('FP file system services - FC-LOOKUP - Counter.')
fpLFSCreates = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 17), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSCreates.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSCreates.setDescription('FP file system services - FC-CREATE - Counter.')
fpLFSRemoves = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 18), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSRemoves.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSRemoves.setDescription('FP file system services - FC-REMOVE - Counter.')
fpLFSRenames = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 19), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSRenames.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSRenames.setDescription('FP file system services - FC-RENAME - Counter.')
fpLFSLinks = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 20), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSLinks.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSLinks.setDescription('FP file system services - FC-LINK - Counter.')
fpLFSSymlinks = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 21), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSSymlinks.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSSymlinks.setDescription('FP file system services - FC-SYMLINK - Counter.')
fpLFSRmdirs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSRmdirs.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSRmdirs.setDescription('FP file system services - FC-RMDIR - Counter.')
fpLFSCkpntons = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSCkpntons.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSCkpntons.setDescription('FP file system services - FC-CKPNTON - Counter.')
fpLFSCkpntoffs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSCkpntoffs.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSCkpntoffs.setDescription('FP file system services - FC-CKPNTOFFS - Counter.')
fpLFSClears = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSClears.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSClears.setDescription('FP file system services - FC-CLEAR - Counter.')
fpLFSIsolateFs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSIsolateFs.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSIsolateFs.setDescription('FP file system services - FC-ISOLATE-FS - Counter.')
fpLFSReleaseFs = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSReleaseFs.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSReleaseFs.setDescription('FP file system services - FC-RELEASE-FS - Counter.')
fpLFSIsolationStates = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSIsolationStates.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSIsolationStates.setDescription('FP file system services - FC-ISOLATION-STATE - Counter.')
fpLFSDiagnostics = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSDiagnostics.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSDiagnostics.setDescription('FP file system services - FC-DIAGNOSTIC - Counter.')
fpLFSPurges = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpLFSPurges.setStatus('mandatory')
if mibBuilder.loadTexts: fpLFSPurges.setDescription('FP file system services - FC-PURGE - Counter.')
fpFileSystemTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 2), )
if mibBuilder.loadTexts: fpFileSystemTable.setStatus('mandatory')
if mibBuilder.loadTexts: fpFileSystemTable.setDescription('Table containg File systems on each FSP')
fpFSEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 2, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"), (0, "NETSERVER-MIB", "fpFSIndex"))
if mibBuilder.loadTexts: fpFSEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fpFSEntry.setDescription('Entry for each File System')
fpFSIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpFSIndex.setStatus('mandatory')
if mibBuilder.loadTexts: fpFSIndex.setDescription('Uniquely identifies each FS on FSP')
fpHrFSIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpHrFSIndex.setStatus('mandatory')
if mibBuilder.loadTexts: fpHrFSIndex.setDescription('Index of the corresponding FS entry in host resource mib')
fpDNLCTStatTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1), )
if mibBuilder.loadTexts: fpDNLCTStatTable.setStatus('mandatory')
if mibBuilder.loadTexts: fpDNLCTStatTable.setDescription('DNLC is part of StackOS module. This table displays DNLC Statistics.')
fpDNLCSEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"))
if mibBuilder.loadTexts: fpDNLCSEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fpDNLCSEntry.setDescription('Each entry for a FSP board.')
fpDNLCHit = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpDNLCHit.setStatus('mandatory')
if mibBuilder.loadTexts: fpDNLCHit.setDescription('DNLC hit on a given FSP.')
fpDNLCMiss = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpDNLCMiss.setStatus('mandatory')
if mibBuilder.loadTexts: fpDNLCMiss.setDescription('DNLC miss on a given FSP.')
fpDNLCEnter = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpDNLCEnter.setStatus('mandatory')
if mibBuilder.loadTexts: fpDNLCEnter.setDescription('Number of DNLC entries made (total).')
fpDNLCConflict = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpDNLCConflict.setStatus('mandatory')
if mibBuilder.loadTexts: fpDNLCConflict.setDescription('Times entry found in DNLC on dnlc-enter.')
fpDNLCPurgevfsp = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpDNLCPurgevfsp.setStatus('mandatory')
if mibBuilder.loadTexts: fpDNLCPurgevfsp.setDescription('Entries purged based on vfsp.')
fpDNLCPurgevp = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpDNLCPurgevp.setStatus('mandatory')
if mibBuilder.loadTexts: fpDNLCPurgevp.setDescription('Entries purge based on vp.')
fpDNLCHashsz = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpDNLCHashsz.setStatus('mandatory')
if mibBuilder.loadTexts: fpDNLCHashsz.setDescription('Number of hash buckets in dnlc hash table.')
fpPageStatTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2), )
if mibBuilder.loadTexts: fpPageStatTable.setStatus('mandatory')
if mibBuilder.loadTexts: fpPageStatTable.setDescription('Page is part of StackOS module. This table gives the Page Statistics for all FSPs.')
fpPageEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"))
if mibBuilder.loadTexts: fpPageEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fpPageEntry.setDescription('Each Entry in the table displays Page Statistics for a FSP.')
fpPAGETotalmem = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGETotalmem.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGETotalmem.setDescription('Allocated memory for pages.')
fpPAGEFreelistcnt = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEFreelistcnt.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEFreelistcnt.setDescription('Pages on freelist.')
fpPAGECachelistcnt = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGECachelistcnt.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGECachelistcnt.setDescription('Pages on cachelist.')
fpPAGEDirtyflistcnt = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEDirtyflistcnt.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEDirtyflistcnt.setDescription('Pages on dirtyflist.')
fpPAGEDirtydlistcnt = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEDirtydlistcnt.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEDirtydlistcnt.setDescription('Pages on dirtydlist')
fpPAGECachehit = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGECachehit.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGECachehit.setDescription('Page cache hit.')
fpPAGECachemiss = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGECachemiss.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGECachemiss.setDescription('Page cache miss.')
fpPAGEWritehit = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEWritehit.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEWritehit.setDescription('Page cache write hit.')
fpPAGEWritemiss = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEWritemiss.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEWritemiss.setDescription('Page cache write miss.')
fpPAGEZcref = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEZcref.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEZcref.setDescription('Page Zref.')
fpPAGEZcbreak = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 11), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEZcbreak.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEZcbreak.setDescription('Page Zbreak.')
fpPAGEOutscan = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 12), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEOutscan.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEOutscan.setDescription('Page out scan.')
fpPAGEOutputpage = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 13), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEOutputpage.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEOutputpage.setDescription('Output Page.')
fpPAGEFsflushscan = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 14), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEFsflushscan.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEFsflushscan.setDescription('Flush scan.')
fpPAGEFsflushputpage = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEFsflushputpage.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEFsflushputpage.setDescription('Flush output page.')
fpPAGEOutcnt = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpPAGEOutcnt.setStatus('mandatory')
if mibBuilder.loadTexts: fpPAGEOutcnt.setDescription('Page out count.')
fpBufferStatTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3), )
if mibBuilder.loadTexts: fpBufferStatTable.setStatus('mandatory')
if mibBuilder.loadTexts: fpBufferStatTable.setDescription('BufferIO is one of the modules present in StackOS. This table displays the bufferIO statistics for all FSPs.')
fpBufferEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"))
if mibBuilder.loadTexts: fpBufferEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fpBufferEntry.setDescription('Each entry in the table for a single FSP.')
fpBUFLreads = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpBUFLreads.setStatus('mandatory')
if mibBuilder.loadTexts: fpBUFLreads.setDescription('Number of buffered reads.')
fpBUFBreads = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpBUFBreads.setStatus('mandatory')
if mibBuilder.loadTexts: fpBUFBreads.setDescription('Number of breads doing sp-read.')
fpBUFLwrites = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpBUFLwrites.setStatus('mandatory')
if mibBuilder.loadTexts: fpBUFLwrites.setDescription('Number of buffered writes (incl. delayed).')
fpBUFBwrites = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpBUFBwrites.setStatus('mandatory')
if mibBuilder.loadTexts: fpBUFBwrites.setDescription('Number of bwrites doing sp-write.')
fpBUFIOwaits = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpBUFIOwaits.setStatus('mandatory')
if mibBuilder.loadTexts: fpBUFIOwaits.setDescription('Number of processes blocked in biowait.')
fpBUFResid = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpBUFResid.setStatus('mandatory')
if mibBuilder.loadTexts: fpBUFResid.setDescription('Running total of unused buf memory.')
fpBUFBufsize = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpBUFBufsize.setStatus('mandatory')
if mibBuilder.loadTexts: fpBUFBufsize.setDescription('Running total of memory on free list.')
fpBUFBcount = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpBUFBcount.setStatus('mandatory')
if mibBuilder.loadTexts: fpBUFBcount.setDescription('Running total of memory on hash lists.')
fpInodeTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4), )
if mibBuilder.loadTexts: fpInodeTable.setStatus('mandatory')
if mibBuilder.loadTexts: fpInodeTable.setDescription('Inode table displays the Inode Statistics for all FSPs. Inode is part of StackOS module.')
fpInodeEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"))
if mibBuilder.loadTexts: fpInodeEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fpInodeEntry.setDescription('Each entry in the table displays Inode Statistics for a FSP.')
fpINODEIgetcalls = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpINODEIgetcalls.setStatus('mandatory')
if mibBuilder.loadTexts: fpINODEIgetcalls.setDescription('Number of calls to htfs-iget.')
fpFoundinodes = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpFoundinodes.setStatus('mandatory')
if mibBuilder.loadTexts: fpFoundinodes.setDescription('Inode cache hits.')
fpTotalinodes = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpTotalinodes.setStatus('mandatory')
if mibBuilder.loadTexts: fpTotalinodes.setDescription('Total number of inodes in memory.')
fpGoneinodes = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpGoneinodes.setStatus('mandatory')
if mibBuilder.loadTexts: fpGoneinodes.setDescription('Number of inodes on gone list.')
fpFreeinodes = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpFreeinodes.setStatus('mandatory')
if mibBuilder.loadTexts: fpFreeinodes.setDescription('Number of inodes on free list.')
fpCacheinodes = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpCacheinodes.setStatus('mandatory')
if mibBuilder.loadTexts: fpCacheinodes.setDescription('Number of inodes on cache list.')
fpSyncinodes = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fpSyncinodes.setStatus('mandatory')
if mibBuilder.loadTexts: fpSyncinodes.setDescription('Number of inodes on sync list.')
class RaidLevel(TextualConvention, Integer32):
description = 'Defines the type of Raid Level present in the system'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 3, 5, 6, 7))
namedValues = NamedValues(("raid0", 0), ("raid1", 1), ("raid3", 3), ("raid5", 5), ("raid6", 6), ("raid7", 7))
class RebuildFlag(TextualConvention, Integer32):
description = 'Defines the Rebuild Flag type.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 240, 241, 242, 243, 244, 255))
namedValues = NamedValues(("none", 0), ("autorebuild", 1), ("manualrebuild", 2), ("check", 3), ("expandcapacity", 4), ("phydevfailed", 240), ("logdevfailed", 241), ("justfailed", 242), ("canceled", 243), ("expandcapacityfailed", 244), ("autorebuildfailed", 255))
class BusType(TextualConvention, Integer32):
description = 'Defines Bus type.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))
namedValues = NamedValues(("eisa", 1), ("mca", 2), ("pci", 3), ("vesa", 4), ("isa", 5), ("scsi", 6))
class ControllerType(TextualConvention, Integer32):
description = 'This textual Convention defines the type of Controller.'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 8, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 80, 96, 97, 98, 99, 100, 129, 130, 131, 132, 133, 134, 136, 137, 138, 139, 140, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 192, 193, 194, 195))
namedValues = NamedValues(("dac960E", 1), ("dac960M", 8), ("dac960PD", 16), ("dac960PL", 17), ("dac960PDU", 18), ("dac960PE", 19), ("dac960PG", 20), ("dac960PJ", 21), ("dac960PTL", 22), ("dac960PR", 23), ("dac960PRL", 24), ("dac960PT", 25), ("dac1164P", 26), ("dacI20", 80), ("dac960S", 96), ("dac960SU", 97), ("dac960SX", 98), ("dac960SF", 99), ("dac960FL", 100), ("hba440", 129), ("hba440C", 130), ("hba445", 131), ("hba445C", 132), ("hba440xC", 133), ("hba445S", 134), ("hba640", 136), ("hba640A", 137), ("hba446", 138), ("hba446D", 139), ("hba446S", 140), ("hba742", 144), ("hba742A", 145), ("hba747", 146), ("hba747D", 147), ("hba747S", 148), ("hba74xC", 149), ("hba757", 150), ("hba757D", 151), ("hba757S", 152), ("hba757CD", 153), ("hba75xC", 154), ("hba747C", 155), ("hba757C", 156), ("hba540", 160), ("hba540C", 161), ("hba542", 162), ("hba542B", 163), ("hba542C", 164), ("hba542D", 165), ("hba545", 166), ("hba545C", 167), ("hba545S", 168), ("hba54xC", 169), ("hba946", 176), ("hba946C", 177), ("hba948", 178), ("hba948C", 179), ("hba956", 180), ("hba956C", 181), ("hba958", 182), ("hba958C", 183), ("hba958D", 184), ("hba956CD", 185), ("hba958CD", 186), ("hba930", 192), ("hba932", 193), ("hba950", 194), ("hba952", 195))
class VendorName(TextualConvention, Integer32):
description = 'Name of the Vendors'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8))
namedValues = NamedValues(("mylex", 0), ("ibm", 1), ("hp", 2), ("dec", 3), ("att", 4), ("dell", 5), ("nec", 6), ("sni", 7), ("ncr", 8))
class U08Bits(TextualConvention, Integer32):
description = 'Integer type of range 0..255'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 255)
class U16Bits(TextualConvention, Integer32):
description = 'Integer type of range 0..65535'
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 65535)
fabLogDevTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1), )
if mibBuilder.loadTexts: fabLogDevTable.setStatus('mandatory')
if mibBuilder.loadTexts: fabLogDevTable.setDescription('This table contains information for logical devices.')
fabLogDevEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"), (0, "NETSERVER-MIB", "ldIndex"))
if mibBuilder.loadTexts: fabLogDevEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fabLogDevEntry.setDescription('Entry for each logical device')
ldIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ldIndex.setStatus('mandatory')
if mibBuilder.loadTexts: ldIndex.setDescription(' Index of the logical device')
ldSectorReads = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ldSectorReads.setStatus('mandatory')
if mibBuilder.loadTexts: ldSectorReads.setDescription(' Number of sectors read ')
ldWBufReads = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ldWBufReads.setStatus('mandatory')
if mibBuilder.loadTexts: ldWBufReads.setDescription(' Number of sectors read from WBUF ')
ldSectorWrites = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ldSectorWrites.setStatus('mandatory')
if mibBuilder.loadTexts: ldSectorWrites.setDescription('Number of sector writes ')
ldReadIO = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ldReadIO.setStatus('mandatory')
if mibBuilder.loadTexts: ldReadIO.setDescription("Number of read IO's ")
ldWriteIO = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ldWriteIO.setStatus('mandatory')
if mibBuilder.loadTexts: ldWriteIO.setDescription("Number of write IO's ")
ldMediaErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ldMediaErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ldMediaErrors.setDescription('Number of media errors ')
ldDriveErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ldDriveErrors.setStatus('mandatory')
if mibBuilder.loadTexts: ldDriveErrors.setDescription('Number of drive errors ')
ldTotalTime = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: ldTotalTime.setStatus('mandatory')
if mibBuilder.loadTexts: ldTotalTime.setDescription('Total time for the logical device')
fabAdptTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1), )
if mibBuilder.loadTexts: fabAdptTable.setStatus('mandatory')
if mibBuilder.loadTexts: fabAdptTable.setDescription('Table containing information for all fibre channel adapters information on the Auspex IO node')
fabAdptEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"), (0, "NETSERVER-MIB", "fabIndex"))
if mibBuilder.loadTexts: fabAdptEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fabAdptEntry.setDescription('Entry for each fibre channel adapter')
fabIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabIndex.setStatus('mandatory')
if mibBuilder.loadTexts: fabIndex.setDescription('Fabric adapter index')
fabPCIBusNum = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 2), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabPCIBusNum.setStatus('mandatory')
if mibBuilder.loadTexts: fabPCIBusNum.setDescription('Fabric adapter PCI BUS number')
fabSlotNum = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 3), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabSlotNum.setStatus('mandatory')
if mibBuilder.loadTexts: fabSlotNum.setDescription('Fabric adapter Slot number')
fabIntLine = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 4), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabIntLine.setStatus('mandatory')
if mibBuilder.loadTexts: fabIntLine.setDescription('Fabric adapter Interrupt line')
fabIntPin = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 5), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabIntPin.setStatus('mandatory')
if mibBuilder.loadTexts: fabIntPin.setDescription('Fabric adapter Interrupt pin')
fabType = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 6), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabType.setStatus('mandatory')
if mibBuilder.loadTexts: fabType.setDescription('Fabric adapter Type')
fabVendorId = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 7), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabVendorId.setStatus('mandatory')
if mibBuilder.loadTexts: fabVendorId.setDescription('Fabric adapter Vendor ID')
fabDeviceId = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 8), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabDeviceId.setStatus('mandatory')
if mibBuilder.loadTexts: fabDeviceId.setDescription('Fabric adapter Device ID')
fabRevisionId = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 9), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabRevisionId.setStatus('mandatory')
if mibBuilder.loadTexts: fabRevisionId.setDescription('Fabric adapter Revision ID')
fabWWN = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 10), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabWWN.setStatus('mandatory')
if mibBuilder.loadTexts: fabWWN.setDescription('Fabric adapter World Wide Number')
fabNumOfTargets = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 11), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabNumOfTargets.setStatus('mandatory')
if mibBuilder.loadTexts: fabNumOfTargets.setDescription('Number of targets found for the adapter')
fabAdptNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 12), U08Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabAdptNumber.setStatus('mandatory')
if mibBuilder.loadTexts: fabAdptNumber.setDescription('Fabric adapter Number')
fabTargetTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2), )
if mibBuilder.loadTexts: fabTargetTable.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetTable.setDescription('Table containing information for all fibre channel adapters information on the Auspex IO node')
fabTargetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"), (0, "NETSERVER-MIB", "fabTargetIndex"))
if mibBuilder.loadTexts: fabTargetEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetEntry.setDescription('Entry for each fibre channel adapter')
fabTargetIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabTargetIndex.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetIndex.setDescription('The Fabric target adapter index ')
fabTargetAdapterNum = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 2), U08Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabTargetAdapterNum.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetAdapterNum.setDescription('The fabric target Adapter number')
fabTargetNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 3), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabTargetNumber.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetNumber.setDescription('The fabric target number')
fabTargetWWN = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabTargetWWN.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetWWN.setDescription('The fabric target WWN number')
fabTargetPortWWN = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabTargetPortWWN.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetPortWWN.setDescription('The fabric target Port WWN number')
fabTargetAliasName = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 6), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabTargetAliasName.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetAliasName.setDescription('The fabric target Alias Name')
fabTargetType = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disk", 1), ("other", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabTargetType.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetType.setDescription('The fabric target Type disk - other ')
fabTargetNumOfLuns = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 8), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabTargetNumOfLuns.setStatus('mandatory')
if mibBuilder.loadTexts: fabTargetNumOfLuns.setDescription('The number of luns on the target')
fabLunTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3), )
if mibBuilder.loadTexts: fabLunTable.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunTable.setDescription('Table containing information for all Luns ')
fabLunEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"), (0, "NETSERVER-MIB", "fabLunIndex"))
if mibBuilder.loadTexts: fabLunEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunEntry.setDescription('Entry for each Lun')
fabLunIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunIndex.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunIndex.setDescription('Unique Lun identifier')
fabLunNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 2), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunNumber.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunNumber.setDescription(' Lun Number ')
fabLunAdptNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 3), U08Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunAdptNumber.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunAdptNumber.setDescription('The adapter number for the lun')
fabLunTarNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 4), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunTarNumber.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunTarNumber.setDescription('The Target number for the lun')
fabLunWWN = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 5), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunWWN.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunWWN.setDescription('The worldwide number for the lun')
fabLunType = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 6), U08Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunType.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunType.setDescription('The type of the lun')
fabLunSize = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunSize.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunSize.setDescription('The size of the lun')
fabLunMap = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("unmapped", 0), ("mapped", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunMap.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunMap.setDescription('Identifier for the lun mapping')
fabLunMapTable = MibTable((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4), )
if mibBuilder.loadTexts: fabLunMapTable.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunMapTable.setDescription('Table containing mapping information for all Luns ')
fabLunMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1), ).setIndexNames((0, "NETSERVER-MIB", "fspIndex"), (0, "NETSERVER-MIB", "fabLunMapIndex"))
if mibBuilder.loadTexts: fabLunMapEntry.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunMapEntry.setDescription('Entry for each mapped Lun')
fabLunMapIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunMapIndex.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunMapIndex.setDescription('Unique Mapped Lun identifier')
fabLunMNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 2), U16Bits()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunMNumber.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunMNumber.setDescription(' Mapped Lun Number ')
fabLunAlias = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunAlias.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunAlias.setDescription('The Alias name associated with the lun')
fabLunMapWWN = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunMapWWN.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunMapWWN.setDescription('The WWN associated with the lun')
fabLunLabel = MibTableColumn((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("unlabelled", 0), ("labelled", 1), ("labelledactive", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: fabLunLabel.setStatus('mandatory')
if mibBuilder.loadTexts: fabLunLabel.setDescription('The label of the lun')
trapFSFull = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 1))
trapFSDegradation = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 2))
trapDiskUpdation = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 3))
trapFCAdptLinkFailure = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 4))
trapFCAdptLinkUp = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 5))
trapFCLossOfLinkFailure = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 6))
trapLunDisappear = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 7))
trapLunSizeChange = MibIdentifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 8))
trapFSFullMsg = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 1, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFSFullMsg.setStatus('mandatory')
if mibBuilder.loadTexts: trapFSFullMsg.setDescription('Name of the file system which got full and for which fileSystemFull trap has to be sent.')
trapFSFullTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 1, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFSFullTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts: trapFSFullTimeStamp.setDescription('Time at which file system identified by trapFSFullMsg got full.')
trapFSDegradationMsg = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 2, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFSDegradationMsg.setStatus('mandatory')
if mibBuilder.loadTexts: trapFSDegradationMsg.setDescription('Name of the file system which got degraded and for which fileSystemDegradation trap has to be sent.')
trapFSDegradationTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 2, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFSDegradationTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts: trapFSDegradationTimeStamp.setDescription('Time at which file system identified by trapFSDegradationMsg got degraded.')
trapDiskMsg = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 3, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapDiskMsg.setStatus('mandatory')
if mibBuilder.loadTexts: trapDiskMsg.setDescription('Name of the disk which got removed from the system and for which diskStackUpdation trap has to be sent.')
trapDiskTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 3, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapDiskTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts: trapDiskTimeStamp.setDescription('Time at which disk identified by trapDiskIndex was added/removed.')
trapFCAdptLinkFailureMsg = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 4, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFCAdptLinkFailureMsg.setStatus('mandatory')
if mibBuilder.loadTexts: trapFCAdptLinkFailureMsg.setDescription('Name of the fibre channel adapter on which link failure occured.')
trapFCAdptLinkFailureTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 4, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFCAdptLinkFailureTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts: trapFCAdptLinkFailureTimeStamp.setDescription('Time at which the fibre channel adapter link failure occured.')
trapFCAdptLinkUpMsg = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 5, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFCAdptLinkUpMsg.setStatus('mandatory')
if mibBuilder.loadTexts: trapFCAdptLinkUpMsg.setDescription('Name of the fibre channel adapter on which link up occured.')
trapFCAdptLinkUpTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 5, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFCAdptLinkUpTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts: trapFCAdptLinkUpTimeStamp.setDescription('Time at which the fibre channel adapter link up occured.')
trapFCLossOfLinkFailureMsg = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 6, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFCLossOfLinkFailureMsg.setStatus('mandatory')
if mibBuilder.loadTexts: trapFCLossOfLinkFailureMsg.setDescription('Name of the SD device which had complete loss of link.')
trapFCLossOfLinkFailureTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 6, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapFCLossOfLinkFailureTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts: trapFCLossOfLinkFailureTimeStamp.setDescription('Time at which complete loss of link occured.')
trapLunDisappearMsg = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 7, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapLunDisappearMsg.setStatus('mandatory')
if mibBuilder.loadTexts: trapLunDisappearMsg.setDescription('Mapped lun which disappeared')
trapLunDisappearTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 7, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapLunDisappearTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts: trapLunDisappearTimeStamp.setDescription('Time at which mapped lun disappeared')
trapLunSizeChangeMsg = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 8, 1), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapLunSizeChangeMsg.setStatus('mandatory')
if mibBuilder.loadTexts: trapLunSizeChangeMsg.setDescription('Mapped lun whose lun size changed')
trapLunSizeChangeTimeStamp = MibScalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 8, 2), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: trapLunSizeChangeTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts: trapLunSizeChangeTimeStamp.setDescription('Time at which mapped lun size changed')
fileSystemFullTrap = NotificationType((1, 3, 6, 1, 4, 1, 80) + (0,1)).setObjects(("NETSERVER-MIB", "trapFSFullMsg"), ("NETSERVER-MIB", "trapFSFullTimeStamp"))
if mibBuilder.loadTexts: fileSystemFullTrap.setDescription('Trap indicating that a file system got full.')
if mibBuilder.loadTexts: fileSystemFullTrap.setReference('None')
fileSystemDegradationTrap = NotificationType((1, 3, 6, 1, 4, 1, 80) + (0,2)).setObjects(("NETSERVER-MIB", "trapFSDegradationMsg"), ("NETSERVER-MIB", "trapFSDegradationTimeStamp"))
if mibBuilder.loadTexts: fileSystemDegradationTrap.setDescription('Trap indicating that a file system got degradated.')
if mibBuilder.loadTexts: fileSystemDegradationTrap.setReference('None')
diskStackUpdationTrap = NotificationType((1, 3, 6, 1, 4, 1, 80) + (0,3)).setObjects(("NETSERVER-MIB", "trapDiskMsg"), ("NETSERVER-MIB", "trapDiskTimeStamp"))
if mibBuilder.loadTexts: diskStackUpdationTrap.setDescription('Trap indicating that a disk was removed.')
if mibBuilder.loadTexts: diskStackUpdationTrap.setReference('None')
fcLinkFailureTrap = NotificationType((1, 3, 6, 1, 4, 1, 80) + (0,4)).setObjects(("NETSERVER-MIB", "trapFCAdptLinkFailureMsg"), ("NETSERVER-MIB", "trapFCAdptLinkFailureTimeStamp"))
if mibBuilder.loadTexts: fcLinkFailureTrap.setDescription('Trap indicating that a adapter link failure occured.')
if mibBuilder.loadTexts: fcLinkFailureTrap.setReference('None')
fcLinkUpTrap = NotificationType((1, 3, 6, 1, 4, 1, 80) + (0,5)).setObjects(("NETSERVER-MIB", "trapFCAdptLinkUpMsg"), ("NETSERVER-MIB", "trapFCAdptLinkUpTimeStamp"))
if mibBuilder.loadTexts: fcLinkUpTrap.setDescription('Trap indicating that a adapter link up occured.')
if mibBuilder.loadTexts: fcLinkUpTrap.setReference('None')
fcCompleteLossTrap = NotificationType((1, 3, 6, 1, 4, 1, 80) + (0,6)).setObjects(("NETSERVER-MIB", "trapFCLossOfLinkFailureMsg"), ("NETSERVER-MIB", "trapFCLossOfLinkFailureTimeStamp"))
if mibBuilder.loadTexts: fcCompleteLossTrap.setDescription('Trap indicating that complete loss of link occured.')
if mibBuilder.loadTexts: fcCompleteLossTrap.setReference('None')
lunDisappearTrap = NotificationType((1, 3, 6, 1, 4, 1, 80) + (0,7)).setObjects(("NETSERVER-MIB", "trapLunDisappearMsg"), ("NETSERVER-MIB", "trapLunDisappearTimeStamp"))
if mibBuilder.loadTexts: lunDisappearTrap.setDescription('Trap indicating that a mapped lun disappeared.')
if mibBuilder.loadTexts: lunDisappearTrap.setReference('None')
lunSizeChangeTrap = NotificationType((1, 3, 6, 1, 4, 1, 80) + (0,8)).setObjects(("NETSERVER-MIB", "trapLunSizeChangeMsg"), ("NETSERVER-MIB", "trapLunSizeChangeTimeStamp"))
if mibBuilder.loadTexts: lunSizeChangeTrap.setDescription('Trap indicating that lun size change occured on a mapped lun.')
if mibBuilder.loadTexts: lunSizeChangeTrap.setReference('None')
host = MibIdentifier((1, 3, 6, 1, 2, 1, 25))
hrSystem = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 1))
hrStorage = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2))
hrDevice = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3))
class Boolean(Integer32):
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("true", 1), ("false", 2))
class KBytes(Integer32):
subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 2147483647)
class ProductID(ObjectIdentifier):
pass
class DateAndTime(OctetString):
subtypeSpec = OctetString.subtypeSpec + ConstraintsUnion(ValueSizeConstraint(8, 8), ValueSizeConstraint(11, 11), )
class InternationalDisplayString(OctetString):
pass
hrSystemUptime = MibScalar((1, 3, 6, 1, 2, 1, 25, 1, 1), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrSystemUptime.setStatus('mandatory')
if mibBuilder.loadTexts: hrSystemUptime.setDescription('The amount of time since this host was last initialized. Note that this is different from sysUpTime in MIB-II [3] because sysUpTime is the uptime of the network management portion of the system.')
hrSystemDate = MibScalar((1, 3, 6, 1, 2, 1, 25, 1, 2), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hrSystemDate.setStatus('mandatory')
if mibBuilder.loadTexts: hrSystemDate.setDescription("The host's notion of the local date and time of day.")
hrSystemInitialLoadDevice = MibScalar((1, 3, 6, 1, 2, 1, 25, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hrSystemInitialLoadDevice.setStatus('mandatory')
if mibBuilder.loadTexts: hrSystemInitialLoadDevice.setDescription('The index of the hrDeviceEntry for the device from which this host is configured to load its initial operating system configuration.')
hrSystemInitialLoadParameters = MibScalar((1, 3, 6, 1, 2, 1, 25, 1, 4), InternationalDisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hrSystemInitialLoadParameters.setStatus('mandatory')
if mibBuilder.loadTexts: hrSystemInitialLoadParameters.setDescription('This object contains the parameters (e.g. a pathname and parameter) supplied to the load device when requesting the initial operating system configuration from that device.')
hrSystemNumUsers = MibScalar((1, 3, 6, 1, 2, 1, 25, 1, 5), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrSystemNumUsers.setStatus('mandatory')
if mibBuilder.loadTexts: hrSystemNumUsers.setDescription('The number of user sessions for which this host is storing state information. A session is a collection of processes requiring a single act of user authentication and possibly subject to collective job control.')
hrSystemProcesses = MibScalar((1, 3, 6, 1, 2, 1, 25, 1, 6), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrSystemProcesses.setStatus('mandatory')
if mibBuilder.loadTexts: hrSystemProcesses.setDescription('The number of process contexts currently loaded or running on this system.')
hrSystemMaxProcesses = MibScalar((1, 3, 6, 1, 2, 1, 25, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrSystemMaxProcesses.setStatus('mandatory')
if mibBuilder.loadTexts: hrSystemMaxProcesses.setDescription('The maximum number of process contexts this system can support. If there is no fixed maximum, the value should be zero. On systems that have a fixed maximum, this object can help diagnose failures that occur when this maximum is reached.')
hrStorageTypes = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2, 1))
hrStorageOther = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 1))
hrStorageRam = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 2))
hrStorageVirtualMemory = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 3))
hrStorageFixedDisk = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 4))
hrStorageRemovableDisk = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 5))
hrStorageFloppyDisk = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 6))
hrStorageCompactDisc = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 7))
hrStorageRamDisk = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 8))
hrMemorySize = MibScalar((1, 3, 6, 1, 2, 1, 25, 2, 2), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrMemorySize.setStatus('mandatory')
if mibBuilder.loadTexts: hrMemorySize.setDescription('The amount of physical main memory contained by the host.')
hrStorageTable = MibTable((1, 3, 6, 1, 2, 1, 25, 2, 3), )
if mibBuilder.loadTexts: hrStorageTable.setStatus('mandatory')
if mibBuilder.loadTexts: hrStorageTable.setDescription("The (conceptual) table of logical storage areas on the host. An entry shall be placed in the storage table for each logical area of storage that is allocated and has fixed resource limits. The amount of storage represented in an entity is the amount actually usable by the requesting entity, and excludes loss due to formatting or file system reference information. These entries are associated with logical storage areas, as might be seen by an application, rather than physical storage entities which are typically seen by an operating system. Storage such as tapes and floppies without file systems on them are typically not allocated in chunks by the operating system to requesting applications, and therefore shouldn't appear in this table. Examples of valid storage for this table include disk partitions, file systems, ram (for some architectures this is further segmented into regular memory, extended memory, and so on), backing store for virtual memory (`swap space'). This table is intended to be a useful diagnostic for `out of memory' and `out of buffers' types of failures. In addition, it can be a useful performance monitoring tool for tracking memory, disk, or buffer usage.")
hrStorageEntry = MibTableRow((1, 3, 6, 1, 2, 1, 25, 2, 3, 1), ).setIndexNames((0, "NETSERVER-MIB", "hrStorageIndex"))
if mibBuilder.loadTexts: hrStorageEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hrStorageEntry.setDescription('A (conceptual) entry for one logical storage area on the host. As an example, an instance of the hrStorageType object might be named hrStorageType.3')
hrStorageIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrStorageIndex.setStatus('mandatory')
if mibBuilder.loadTexts: hrStorageIndex.setDescription('A unique value for each logical storage area contained by the host.')
hrStorageType = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 2), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrStorageType.setStatus('mandatory')
if mibBuilder.loadTexts: hrStorageType.setDescription('The type of storage represented by this entry.')
hrStorageDescr = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 3), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrStorageDescr.setStatus('mandatory')
if mibBuilder.loadTexts: hrStorageDescr.setDescription('A description of the type and instance of the storage described by this entry.')
hrStorageAllocationUnits = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrStorageAllocationUnits.setStatus('mandatory')
if mibBuilder.loadTexts: hrStorageAllocationUnits.setDescription('The size, in bytes, of the data objects allocated from this pool. If this entry is monitoring sectors, blocks, buffers, or packets, for example, this number will commonly be greater than one. Otherwise this number will typically be one.')
hrStorageSize = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hrStorageSize.setStatus('mandatory')
if mibBuilder.loadTexts: hrStorageSize.setDescription('The size of the storage represented by this entry, in units of hrStorageAllocationUnits.')
hrStorageUsed = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrStorageUsed.setStatus('mandatory')
if mibBuilder.loadTexts: hrStorageUsed.setDescription('The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.')
hrStorageAllocationFailures = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrStorageAllocationFailures.setStatus('mandatory')
if mibBuilder.loadTexts: hrStorageAllocationFailures.setDescription('The number of requests for storage represented by this entry that could not be honored due to not enough storage. It should be noted that as this object has a SYNTAX of Counter, that it does not have a defined initial value. However, it is recommended that this object be initialized to zero.')
hrDeviceTypes = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1))
hrDeviceOther = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 1))
hrDeviceUnknown = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 2))
hrDeviceProcessor = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 3))
hrDeviceNetwork = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 4))
hrDevicePrinter = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 5))
hrDeviceDiskStorage = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 6))
hrDeviceVideo = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 10))
hrDeviceAudio = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 11))
hrDeviceCoprocessor = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 12))
hrDeviceKeyboard = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 13))
hrDeviceModem = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 14))
hrDeviceParallelPort = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 15))
hrDevicePointing = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 16))
hrDeviceSerialPort = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 17))
hrDeviceTape = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 18))
hrDeviceClock = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 19))
hrDeviceVolatileMemory = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 20))
hrDeviceNonVolatileMemory = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 21))
hrDeviceTable = MibTable((1, 3, 6, 1, 2, 1, 25, 3, 2), )
if mibBuilder.loadTexts: hrDeviceTable.setStatus('mandatory')
if mibBuilder.loadTexts: hrDeviceTable.setDescription('The (conceptual) table of devices contained by the host.')
hrDeviceEntry = MibTableRow((1, 3, 6, 1, 2, 1, 25, 3, 2, 1), ).setIndexNames((0, "NETSERVER-MIB", "hrDeviceIndex"))
if mibBuilder.loadTexts: hrDeviceEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hrDeviceEntry.setDescription('A (conceptual) entry for one device contained by the host. As an example, an instance of the hrDeviceType object might be named hrDeviceType.3')
hrDeviceIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDeviceIndex.setStatus('mandatory')
if mibBuilder.loadTexts: hrDeviceIndex.setDescription('A unique value for each device contained by the host. The value for each device must remain constant at least from one re-initialization of the agent to the next re-initialization.')
hrDeviceType = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 2), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDeviceType.setStatus('mandatory')
if mibBuilder.loadTexts: hrDeviceType.setDescription("An indication of the type of device. If this value is `hrDeviceProcessor { hrDeviceTypes 3 }' then an entry exists in the hrProcessorTable which corresponds to this device. If this value is `hrDeviceNetwork { hrDeviceTypes 4 }', then an entry exists in the hrNetworkTable which corresponds to this device. If this value is `hrDevicePrinter { hrDeviceTypes 5 }', then an entry exists in the hrPrinterTable which corresponds to this device. If this value is `hrDeviceDiskStorage { hrDeviceTypes 6 }', then an entry exists in the hrDiskStorageTable which corresponds to this device.")
hrDeviceDescr = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDeviceDescr.setStatus('mandatory')
if mibBuilder.loadTexts: hrDeviceDescr.setDescription("A textual description of this device, including the device's manufacturer and revision, and optionally, its serial number.")
hrDeviceID = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 4), ProductID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDeviceID.setStatus('mandatory')
if mibBuilder.loadTexts: hrDeviceID.setDescription('The product ID for this device.')
hrDeviceStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("unknown", 1), ("running", 2), ("warning", 3), ("testing", 4), ("down", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDeviceStatus.setStatus('mandatory')
if mibBuilder.loadTexts: hrDeviceStatus.setDescription("The current operational state of the device described by this row of the table. A value unknown(1) indicates that the current state of the device is unknown. running(2) indicates that the device is up and running and that no unusual error conditions are known. The warning(3) state indicates that agent has been informed of an unusual error condition by the operational software (e.g., a disk device driver) but that the device is still 'operational'. An example would be high number of soft errors on a disk. A value of testing(4), indicates that the device is not available for use because it is in the testing state. The state of down(5) is used only when the agent has been informed that the device is not available for any use.")
hrDeviceErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDeviceErrors.setStatus('mandatory')
if mibBuilder.loadTexts: hrDeviceErrors.setDescription('The number of errors detected on this device. It should be noted that as this object has a SYNTAX of Counter, that it does not have a defined initial value. However, it is recommended that this object be initialized to zero.')
hrProcessorTable = MibTable((1, 3, 6, 1, 2, 1, 25, 3, 3), )
if mibBuilder.loadTexts: hrProcessorTable.setStatus('mandatory')
if mibBuilder.loadTexts: hrProcessorTable.setDescription("The (conceptual) table of processors contained by the host. Note that this table is potentially sparse: a (conceptual) entry exists only if the correspondent value of the hrDeviceType object is `hrDeviceProcessor'.")
hrProcessorEntry = MibTableRow((1, 3, 6, 1, 2, 1, 25, 3, 3, 1), ).setIndexNames((0, "NETSERVER-MIB", "hrDeviceIndex"))
if mibBuilder.loadTexts: hrProcessorEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hrProcessorEntry.setDescription('A (conceptual) entry for one processor contained by the host. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrProcessorEntry. As an example of how objects in this table are named, an instance of the hrProcessorFrwID object might be named hrProcessorFrwID.3')
hrProcessorFrwID = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 3, 1, 1), ProductID()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrProcessorFrwID.setStatus('mandatory')
if mibBuilder.loadTexts: hrProcessorFrwID.setDescription('The product ID of the firmware associated with the processor.')
hrProcessorLoad = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 3, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrProcessorLoad.setStatus('mandatory')
if mibBuilder.loadTexts: hrProcessorLoad.setDescription('The average, over the last minute, of the percentage of time that this processor was not idle.')
hrNetworkTable = MibTable((1, 3, 6, 1, 2, 1, 25, 3, 4), )
if mibBuilder.loadTexts: hrNetworkTable.setStatus('mandatory')
if mibBuilder.loadTexts: hrNetworkTable.setDescription("The (conceptual) table of network devices contained by the host. Note that this table is potentially sparse: a (conceptual) entry exists only if the correspondent value of the hrDeviceType object is `hrDeviceNetwork'.")
hrNetworkEntry = MibTableRow((1, 3, 6, 1, 2, 1, 25, 3, 4, 1), ).setIndexNames((0, "NETSERVER-MIB", "hrDeviceIndex"))
if mibBuilder.loadTexts: hrNetworkEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hrNetworkEntry.setDescription('A (conceptual) entry for one network device contained by the host. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrNetworkEntry. As an example of how objects in this table are named, an instance of the hrNetworkIfIndex object might be named hrNetworkIfIndex.3')
hrNetworkIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 4, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrNetworkIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts: hrNetworkIfIndex.setDescription('The value of ifIndex which corresponds to this network device.')
hrPrinterTable = MibTable((1, 3, 6, 1, 2, 1, 25, 3, 5), )
if mibBuilder.loadTexts: hrPrinterTable.setStatus('mandatory')
if mibBuilder.loadTexts: hrPrinterTable.setDescription("The (conceptual) table of printers local to the host. Note that this table is potentially sparse: a (conceptual) entry exists only if the correspondent value of the hrDeviceType object is `hrDevicePrinter'.")
hrPrinterEntry = MibTableRow((1, 3, 6, 1, 2, 1, 25, 3, 5, 1), ).setIndexNames((0, "NETSERVER-MIB", "hrDeviceIndex"))
if mibBuilder.loadTexts: hrPrinterEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hrPrinterEntry.setDescription('A (conceptual) entry for one printer local to the host. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrPrinterEntry. As an example of how objects in this table are named, an instance of the hrPrinterStatus object might be named hrPrinterStatus.3')
hrPrinterStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 5, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("idle", 3), ("printing", 4), ("warmup", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrPrinterStatus.setStatus('mandatory')
if mibBuilder.loadTexts: hrPrinterStatus.setDescription('The current status of this printer device. When in the idle(1), printing(2), or warmup(3) state, the corresponding hrDeviceStatus should be running(2) or warning(3). When in the unknown state, the corresponding hrDeviceStatus should be unknown(1).')
hrPrinterDetectedErrorState = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 5, 1, 2), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrPrinterDetectedErrorState.setStatus('mandatory')
if mibBuilder.loadTexts: hrPrinterDetectedErrorState.setDescription('This object represents any error conditions detected by the printer. The error conditions are encoded as bits in an octet string, with the following definitions: Condition Bit # hrDeviceStatus lowPaper 0 warning(3) noPaper 1 down(5) lowToner 2 warning(3) noToner 3 down(5) doorOpen 4 down(5) jammed 5 down(5) offline 6 down(5) serviceRequested 7 warning(3) If multiple conditions are currently detected and the hrDeviceStatus would not otherwise be unknown(1) or testing(4), the hrDeviceStatus shall correspond to the worst state of those indicated, where down(5) is worse than warning(3) which is worse than running(2). Bits are numbered starting with the most significant bit of the first byte being bit 0, the least significant bit of the first byte being bit 7, the most significant bit of the second byte being bit 8, and so on. A one bit encodes that the condition was detected, while a zero bit encodes that the condition was not detected. This object is useful for alerting an operator to specific warning or error conditions that may occur, especially those requiring human intervention.')
hrDiskStorageTable = MibTable((1, 3, 6, 1, 2, 1, 25, 3, 6), )
if mibBuilder.loadTexts: hrDiskStorageTable.setStatus('mandatory')
if mibBuilder.loadTexts: hrDiskStorageTable.setDescription("The (conceptual) table of long-term storage devices contained by the host. In particular, disk devices accessed remotely over a network are not included here. Note that this table is potentially sparse: a (conceptual) entry exists only if the correspondent value of the hrDeviceType object is `hrDeviceDiskStorage'.")
hrDiskStorageEntry = MibTableRow((1, 3, 6, 1, 2, 1, 25, 3, 6, 1), ).setIndexNames((0, "NETSERVER-MIB", "hrDeviceIndex"))
if mibBuilder.loadTexts: hrDiskStorageEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hrDiskStorageEntry.setDescription('A (conceptual) entry for one long-term storage device contained by the host. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrDiskStorageEntry. As an example, an instance of the hrDiskStorageCapacity object might be named hrDiskStorageCapacity.3')
hrDiskStorageAccess = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 6, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("readWrite", 1), ("readOnly", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDiskStorageAccess.setStatus('mandatory')
if mibBuilder.loadTexts: hrDiskStorageAccess.setDescription('An indication if this long-term storage device is readable and writable or only readable. This should reflect the media type, any write-protect mechanism, and any device configuration that affects the entire device.')
hrDiskStorageMedia = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("other", 1), ("unknown", 2), ("hardDisk", 3), ("floppyDisk", 4), ("opticalDiskROM", 5), ("opticalDiskWORM", 6), ("opticalDiskRW", 7), ("ramDisk", 8)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDiskStorageMedia.setStatus('mandatory')
if mibBuilder.loadTexts: hrDiskStorageMedia.setDescription('An indication of the type of media used in this long-term storage device.')
hrDiskStorageRemoveble = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 6, 1, 3), Boolean()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDiskStorageRemoveble.setStatus('mandatory')
if mibBuilder.loadTexts: hrDiskStorageRemoveble.setDescription('Denotes whether or not the disk media may be removed from the drive.')
hrDiskStorageCapacity = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 6, 1, 4), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrDiskStorageCapacity.setStatus('mandatory')
if mibBuilder.loadTexts: hrDiskStorageCapacity.setDescription('The total size for this long-term storage device.')
hrPartitionTable = MibTable((1, 3, 6, 1, 2, 1, 25, 3, 7), )
if mibBuilder.loadTexts: hrPartitionTable.setStatus('mandatory')
if mibBuilder.loadTexts: hrPartitionTable.setDescription('The (conceptual) table of partitions for long-term storage devices contained by the host. In particular, partitions accessed remotely over a network are not included here.')
hrPartitionEntry = MibTableRow((1, 3, 6, 1, 2, 1, 25, 3, 7, 1), ).setIndexNames((0, "NETSERVER-MIB", "hrDeviceIndex"), (0, "NETSERVER-MIB", "hrPartitionIndex"))
if mibBuilder.loadTexts: hrPartitionEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hrPartitionEntry.setDescription('A (conceptual) entry for one partition. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrPartitionEntry. As an example of how objects in this table are named, an instance of the hrPartitionSize object might be named hrPartitionSize.3.1')
hrPartitionIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrPartitionIndex.setStatus('mandatory')
if mibBuilder.loadTexts: hrPartitionIndex.setDescription('A unique value for each partition on this long- term storage device. The value for each long-term storage device must remain constant at least from one re-initialization of the agent to the next re- initialization.')
hrPartitionLabel = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 2), InternationalDisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrPartitionLabel.setStatus('mandatory')
if mibBuilder.loadTexts: hrPartitionLabel.setDescription('A textual description of this partition.')
hrPartitionID = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 3), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrPartitionID.setStatus('mandatory')
if mibBuilder.loadTexts: hrPartitionID.setDescription('A descriptor which uniquely represents this partition to the responsible operating system. On some systems, this might take on a binary representation.')
hrPartitionSize = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 4), KBytes()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrPartitionSize.setStatus('mandatory')
if mibBuilder.loadTexts: hrPartitionSize.setDescription('The size of this partition.')
hrPartitionFSIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrPartitionFSIndex.setStatus('mandatory')
if mibBuilder.loadTexts: hrPartitionFSIndex.setDescription('The index of the file system mounted on this partition. If no file system is mounted on this partition, then this value shall be zero. Note that multiple partitions may point to one file system, denoting that that file system resides on those partitions. Multiple file systems may not reside on one partition.')
hrFSTable = MibTable((1, 3, 6, 1, 2, 1, 25, 3, 8), )
if mibBuilder.loadTexts: hrFSTable.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSTable.setDescription("The (conceptual) table of file systems local to this host or remotely mounted from a file server. File systems that are in only one user's environment on a multi-user system will not be included in this table.")
hrFSEntry = MibTableRow((1, 3, 6, 1, 2, 1, 25, 3, 8, 1), ).setIndexNames((0, "NETSERVER-MIB", "hrFSIndex"))
if mibBuilder.loadTexts: hrFSEntry.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSEntry.setDescription("A (conceptual) entry for one file system local to this host or remotely mounted from a file server. File systems that are in only one user's environment on a multi-user system will not be included in this table. As an example of how objects in this table are named, an instance of the hrFSMountPoint object might be named hrFSMountPoint.3")
hrFSTypes = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9))
hrFSOther = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 1))
hrFSUnknown = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 2))
hrFSBerkeleyFFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 3))
hrFSSys5FS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 4))
hrFSFat = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 5))
hrFSHPFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 6))
hrFSHFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 7))
hrFSMFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 8))
hrFSNTFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 9))
hrFSVNode = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 10))
hrFSJournaled = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 11))
hrFSiso9660 = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 12))
hrFSRockRidge = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 13))
hrFSNFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 14))
hrFSNetware = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 15))
hrFSAFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 16))
hrFSDFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 17))
hrFSAppleshare = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 18))
hrFSRFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 19))
hrFSDGCFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 20))
hrFSBFS = MibIdentifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 21))
hrFSIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrFSIndex.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSIndex.setDescription('A unique value for each file system local to this host. The value for each file system must remain constant at least from one re-initialization of the agent to the next re-initialization.')
hrFSMountPoint = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 2), InternationalDisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrFSMountPoint.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSMountPoint.setDescription('The path name of the root of this file system.')
hrFSRemoteMountPoint = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 3), InternationalDisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrFSRemoteMountPoint.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSRemoteMountPoint.setDescription('A description of the name and/or address of the server that this file system is mounted from. This may also include parameters such as the mount point on the remote file system. If this is not a remote file system, this string should have a length of zero.')
hrFSType = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 4), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrFSType.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSType.setDescription('The value of this object identifies the type of this file system.')
hrFSAccess = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("readWrite", 1), ("readOnly", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrFSAccess.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSAccess.setDescription('An indication if this file system is logically configured by the operating system to be readable and writable or only readable. This does not represent any local access-control policy, except one that is applied to the file system as a whole.')
hrFSBootable = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 6), Boolean()).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrFSBootable.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSBootable.setDescription('A flag indicating whether this file system is bootable.')
hrFSStorageIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 2147483647))).setMaxAccess("readonly")
if mibBuilder.loadTexts: hrFSStorageIndex.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSStorageIndex.setDescription('The index of the hrStorageEntry that represents information about this file system. If there is no such information available, then this value shall be zero. The relevant storage entry will be useful in tracking the percent usage of this file system and diagnosing errors that may occur when it runs out of space.')
hrFSLastFullBackupDate = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 8), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hrFSLastFullBackupDate.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSLastFullBackupDate.setDescription("The last date at which this complete file system was copied to another storage device for backup. This information is useful for ensuring that backups are being performed regularly. If this information is not known, then this variable shall have the value corresponding to January 1, year 0000, 00:00:00.0, which is encoded as (hex)'00 00 01 01 00 00 00 00'.")
hrFSLastPartialBackupDate = MibTableColumn((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 9), DateAndTime()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hrFSLastPartialBackupDate.setStatus('mandatory')
if mibBuilder.loadTexts: hrFSLastPartialBackupDate.setDescription("The last date at which a portion of this file system was copied to another storage device for backup. This information is useful for ensuring that backups are being performed regularly. If this information is not known, then this variable shall have the value corresponding to January 1, year 0000, 00:00:00.0, which is encoded as (hex)'00 00 01 01 00 00 00 00'.")
mibBuilder.exportSymbols("NETSERVER-MIB", fabAdptEntry=fabAdptEntry, diskStackUpdationTrap=diskStackUpdationTrap, trapLunDisappear=trapLunDisappear, npIndex=npIndex, npIfEntry=npIfEntry, BusType=BusType, trapFCAdptLinkUpMsg=trapFCAdptLinkUpMsg, fpDNLCHit=fpDNLCHit, fabLunMapEntry=fabLunMapEntry, hrFSTypes=hrFSTypes, npICMPOutMsgs=npICMPOutMsgs, ldDriveErrors=ldDriveErrors, fpDNLCConflict=fpDNLCConflict, npSMBRcvd=npSMBRcvd, hrDeviceNonVolatileMemory=hrDeviceNonVolatileMemory, fpLFSPurges=fpLFSPurges, npICMPInTimestampReps=npICMPInTimestampReps, hrStorageTable=hrStorageTable, hrFSIndex=hrFSIndex, fpPAGECachelistcnt=fpPAGECachelistcnt, npUDPEntry=npUDPEntry, netServer=netServer, hrPrinterEntry=hrPrinterEntry, fabAdptTable=fabAdptTable, RebuildFlag=RebuildFlag, ldMediaErrors=ldMediaErrors, fpHTFS=fpHTFS, fpLFSReaddirPluses=fpLFSReaddirPluses, npTCPActiveOpens=npTCPActiveOpens, fileSystemDegradationTrap=fileSystemDegradationTrap, fspBusyCount=fspBusyCount, npIPOutNoRoutes=npIPOutNoRoutes, hrFSDFS=hrFSDFS, fspTable=fspTable, npSMBCloses=npSMBCloses, fpLFSLinks=fpLFSLinks, hrFSVNode=hrFSVNode, fabIntLine=fabIntLine, npICMPOutTimestampReps=npICMPOutTimestampReps, npIfOutUcastPkts=npIfOutUcastPkts, fpPAGEDirtydlistcnt=fpPAGEDirtydlistcnt, fpPAGEWritehit=fpPAGEWritehit, trapFCAdptLinkUp=trapFCAdptLinkUp, npIPRoutingDiscards=npIPRoutingDiscards, fabTargetTable=fabTargetTable, fabLunMapIndex=fabLunMapIndex, npEntry=npEntry, fabTargetEntry=fabTargetEntry, hrPartitionTable=hrPartitionTable, npIfInErrors=npIfInErrors, npUDPNoPorts=npUDPNoPorts, fabLunNumber=fabLunNumber, axSP=axSP, ldWriteIO=ldWriteIO, fpLFSEntry=fpLFSEntry, fpPAGEZcbreak=fpPAGEZcbreak, npSMBWrites=npSMBWrites, npTCPRetransSegs=npTCPRetransSegs, npTable=npTable, axProductInfo=axProductInfo, npIPInDiscards=npIPInDiscards, axFP=axFP, trapFSDegradation=trapFSDegradation, hrStorageVirtualMemory=hrStorageVirtualMemory, hrFSAFS=hrFSAFS, fpInodeTable=fpInodeTable, fabLunMap=fabLunMap, fpLFSGetattrs=fpLFSGetattrs, fabRaid=fabRaid, fpDNLCHashsz=fpDNLCHashsz, npIfInDiscards=npIfInDiscards, npTCPCurrEstab=npTCPCurrEstab, fpLFSClears=fpLFSClears, fpBUFBufsize=fpBUFBufsize, hrStorageIndex=hrStorageIndex, hrFSUnknown=hrFSUnknown, fabTargetIndex=fabTargetIndex, npIPInUnknownProtos=npIPInUnknownProtos, KBytes=KBytes, fcLinkUpTrap=fcLinkUpTrap, fpLFSCreates=fpLFSCreates, hrStorageRam=hrStorageRam, fabSlotNum=fabSlotNum, npIPReasmReqds=npIPReasmReqds, npICMPOutEchos=npICMPOutEchos, ldSectorWrites=ldSectorWrites, hrDiskStorageRemoveble=hrDiskStorageRemoveble, DateAndTime=DateAndTime, Boolean=Boolean, fpFSEntry=fpFSEntry, npIdleCount=npIdleCount, hrPartitionLabel=hrPartitionLabel, npSMBTable=npSMBTable, hrSystem=hrSystem, hrDeviceProcessor=hrDeviceProcessor, fabLunType=fabLunType, hrNetworkIfIndex=hrNetworkIfIndex, fspEntry=fspEntry, hrPartitionIndex=hrPartitionIndex, ProductID=ProductID, trapFCLossOfLinkFailure=trapFCLossOfLinkFailure, npICMPTable=npICMPTable, hrFSBFS=hrFSBFS, fabLunEntry=fabLunEntry, npICMPOutAddrMasks=npICMPOutAddrMasks, trapDiskMsg=trapDiskMsg, hrMemorySize=hrMemorySize, hrFSAppleshare=hrFSAppleshare, hrPartitionID=hrPartitionID, axFSP=axFSP, hrFSNetware=hrFSNetware, fpGoneinodes=fpGoneinodes, fcCompleteLossTrap=fcCompleteLossTrap, hrFSMountPoint=hrFSMountPoint, fpHrFSIndex=fpHrFSIndex, hrStorageTypes=hrStorageTypes, hrStorageSize=hrStorageSize, npICMPOutAddrMaskReps=npICMPOutAddrMaskReps, fpLFSMkdirs=fpLFSMkdirs, npIPEntry=npIPEntry, InternationalDisplayString=InternationalDisplayString, hrDeviceVideo=hrDeviceVideo, npIPInReceives=npIPInReceives, fpPAGECachemiss=fpPAGECachemiss, fabDeviceId=fabDeviceId, fpDNLCSEntry=fpDNLCSEntry, npIfSpeed=npIfSpeed, npIPDefaultTTL=npIPDefaultTTL, npSMBBytesRcvd=npSMBBytesRcvd, fabTargetNumOfLuns=fabTargetNumOfLuns, hrSystemUptime=hrSystemUptime, U08Bits=U08Bits, npNFSDCounts=npNFSDCounts, auspex=auspex, fpLFSMounts=fpLFSMounts, hrFSiso9660=hrFSiso9660, fpPAGEOutscan=fpPAGEOutscan, npTCPRtoAlgorithm=npTCPRtoAlgorithm, npIfInUnknownProto=npIfInUnknownProto, npTCPTable=npTCPTable, fpPAGEFsflushscan=fpPAGEFsflushscan, fabTargetPortWWN=fabTargetPortWWN, fabAdptNumber=fabAdptNumber, fabLunMapWWN=fabLunMapWWN, hrFSDGCFS=hrFSDGCFS, trapFSFull=trapFSFull, hrDeviceOther=hrDeviceOther, hrDiskStorageTable=hrDiskStorageTable, hrDeviceTable=hrDeviceTable, fabTargetNumber=fabTargetNumber, fpLFSRenames=fpLFSRenames, fpINODEIgetcalls=fpINODEIgetcalls, npTCPRtoMin=npTCPRtoMin, ldReadIO=ldReadIO, fpBUFLwrites=fpBUFLwrites, fpLFSNull=fpLFSNull, fpTotalinodes=fpTotalinodes, hrProcessorLoad=hrProcessorLoad, npSMBErrors=npSMBErrors, fpPageStatTable=fpPageStatTable, npIfOutDiscards=npIfOutDiscards, fpBufferStatTable=fpBufferStatTable, hrProcessorEntry=hrProcessorEntry, npTCPMaxConn=npTCPMaxConn, hrStorageAllocationUnits=hrStorageAllocationUnits, npIfOutErrors=npIfOutErrors, hrStorageFixedDisk=hrStorageFixedDisk, hrFSTable=hrFSTable, npTCPOutRsts=npTCPOutRsts, hrStorageType=hrStorageType, trapFCAdptLinkFailure=trapFCAdptLinkFailure, npICMPOutSrcQuenchs=npICMPOutSrcQuenchs, fpPAGETotalmem=fpPAGETotalmem, trapFSFullMsg=trapFSFullMsg, hrDeviceType=hrDeviceType, trapLunSizeChangeMsg=trapLunSizeChangeMsg, hrPrinterTable=hrPrinterTable, hrDeviceParallelPort=hrDeviceParallelPort, hrStorageUsed=hrStorageUsed, axNP=axNP, lunDisappearTrap=lunDisappearTrap, spRaid=spRaid, hrSystemInitialLoadDevice=hrSystemInitialLoadDevice, npICMPInTimeExcds=npICMPInTimeExcds, fpSyncinodes=fpSyncinodes, fpPageEntry=fpPageEntry, npICMPInErrors=npICMPInErrors, fabWWN=fabWWN, hrPartitionFSIndex=hrPartitionFSIndex, fpPAGEFsflushputpage=fpPAGEFsflushputpage, hrProcessorFrwID=hrProcessorFrwID, ldTotalTime=ldTotalTime, npIfOutOctets=npIfOutOctets, fpLFSCkpntoffs=fpLFSCkpntoffs, fpPAGEOutcnt=fpPAGEOutcnt, fpPAGECachehit=fpPAGECachehit, npIfInOctets=npIfInOctets, fabLogDevTable=fabLogDevTable, hrDiskStorageCapacity=hrDiskStorageCapacity, fpLFSFsstats=fpLFSFsstats, fabLunAlias=fabLunAlias, trapFCAdptLinkUpTimeStamp=trapFCAdptLinkUpTimeStamp, npIfOperStatus=npIfOperStatus, fabNumOfTargets=fabNumOfTargets, fpLFSCkpntons=fpLFSCkpntons, fpFSIndex=fpFSIndex, fpLFSUMounts=fpLFSUMounts, fpLFSRemoves=fpLFSRemoves, RaidLevel=RaidLevel, VendorName=VendorName, hrFSOther=hrFSOther, fileSystemFullTrap=fileSystemFullTrap, npICMPOutParmProbs=npICMPOutParmProbs, hrFSRemoteMountPoint=hrFSRemoteMountPoint, hrDeviceClock=hrDeviceClock, hrFSEntry=hrFSEntry, npIPTable=npIPTable, trapLunDisappearTimeStamp=trapLunDisappearTimeStamp, hrFSAccess=hrFSAccess, npIfInUcastPkts=npIfInUcastPkts, fpLFSSymlinks=fpLFSSymlinks, hrFSNTFS=hrFSNTFS, hrFSType=hrFSType, fabType=fabType, ldIndex=ldIndex, npTCPInSegs=npTCPInSegs, npICMPInAddrMaskReps=npICMPInAddrMaskReps, fpPAGEOutputpage=fpPAGEOutputpage, axFab=axFab, npSMBEntry=npSMBEntry, hrFSNFS=hrFSNFS, hrFSHFS=hrFSHFS, hrFSLastFullBackupDate=hrFSLastFullBackupDate, npTCPAttemptFails=npTCPAttemptFails, npSMBBytesSent=npSMBBytesSent, fpBUFBcount=fpBUFBcount, fpLFSSetattrs=fpLFSSetattrs, hrFSMFS=hrFSMFS, npICMPInEchoReps=npICMPInEchoReps, hrStorageDescr=hrStorageDescr, npIPForwarding=npIPForwarding, npICMPInEchos=npICMPInEchos, hrDeviceErrors=hrDeviceErrors, npTCPPassiveOpens=npTCPPassiveOpens, fpFileSystemTable=fpFileSystemTable, hrDeviceDescr=hrDeviceDescr, fpFoundinodes=fpFoundinodes, hrDeviceUnknown=hrDeviceUnknown, hrProcessorTable=hrProcessorTable, npNFSDNJobs=npNFSDNJobs, fabRevisionId=fabRevisionId, hrFSBootable=hrFSBootable, trapFCAdptLinkFailureMsg=trapFCAdptLinkFailureMsg, hrDeviceNetwork=hrDeviceNetwork)
mibBuilder.exportSymbols("NETSERVER-MIB", hrDevicePointing=hrDevicePointing, fpPAGEFreelistcnt=fpPAGEFreelistcnt, axNumNPFSP=axNumNPFSP, npICMPOutTimestamps=npICMPOutTimestamps, npNFSTable=npNFSTable, npNFSDBusyCounts=npNFSDBusyCounts, hrDeviceTape=hrDeviceTape, hrDeviceTypes=hrDeviceTypes, hrDiskStorageEntry=hrDiskStorageEntry, npSMBOpens=npSMBOpens, hrStorageOther=hrStorageOther, hrPrinterDetectedErrorState=hrPrinterDetectedErrorState, fabLunTarNumber=fabLunTarNumber, npUDPOutDatagrams=npUDPOutDatagrams, fpLFSRmdirs=fpLFSRmdirs, fpBUFLreads=fpBUFLreads, fpCacheinodes=fpCacheinodes, fabIndex=fabIndex, npIPFragCreates=npIPFragCreates, fpBUFIOwaits=fpBUFIOwaits, npNFSEntry=npNFSEntry, lunSizeChangeTrap=lunSizeChangeTrap, fpBUFBreads=fpBUFBreads, fabTargetAliasName=fabTargetAliasName, hrPrinterStatus=hrPrinterStatus, hrDeviceVolatileMemory=hrDeviceVolatileMemory, hrFSFat=hrFSFat, fabLunTable=fabLunTable, npICMPInSrcQuenchs=npICMPInSrcQuenchs, npIPFragOKs=npIPFragOKs, fpLFSVersion=fpLFSVersion, trapDiskUpdation=trapDiskUpdation, hrStorageFloppyDisk=hrStorageFloppyDisk, fpLFSReleaseFs=fpLFSReleaseFs, trapFSDegradationTimeStamp=trapFSDegradationTimeStamp, fpLFSReaddirs=fpLFSReaddirs, fpBUFResid=fpBUFResid, fabLunMapTable=fabLunMapTable, hrStorageAllocationFailures=hrStorageAllocationFailures, npICMPOutErrors=npICMPOutErrors, hrFSRockRidge=hrFSRockRidge, fabLunMNumber=fabLunMNumber, fpLFSReads=fpLFSReads, fpLFSFsinfo=fpLFSFsinfo, fabVendorId=fabVendorId, npIfifIndex=npIfifIndex, hrSystemProcesses=hrSystemProcesses, fpLFSMknods=fpLFSMknods, fabTargetWWN=fabTargetWWN, hrDevicePrinter=hrDevicePrinter, hrStorageEntry=hrStorageEntry, npUDPInDatagrams=npUDPInDatagrams, npICMPOutTimeExcds=npICMPOutTimeExcds, ControllerType=ControllerType, npProtocols=npProtocols, U16Bits=U16Bits, hrDeviceEntry=hrDeviceEntry, npUDPInErrors=npUDPInErrors, fpLFSWrites=fpLFSWrites, npICMPOutEchoReps=npICMPOutEchoReps, fabLunIndex=fabLunIndex, fspIndex=fspIndex, npIfIndex=npIfIndex, trapFCAdptLinkFailureTimeStamp=trapFCAdptLinkFailureTimeStamp, npIfTable=npIfTable, npTCPEstabResets=npTCPEstabResets, npIPReasmTimeout=npIPReasmTimeout, hrSystemNumUsers=hrSystemNumUsers, hrSystemMaxProcesses=hrSystemMaxProcesses, trapFCLossOfLinkFailureMsg=trapFCLossOfLinkFailureMsg, hrFSStorageIndex=hrFSStorageIndex, hrDiskStorageAccess=hrDiskStorageAccess, hrDeviceStatus=hrDeviceStatus, hrDiskStorageMedia=hrDiskStorageMedia, fpLFSLookups=fpLFSLookups, hrPartitionEntry=hrPartitionEntry, hrFSLastPartialBackupDate=hrFSLastPartialBackupDate, fpBufferEntry=fpBufferEntry, axTrapData=axTrapData, npICMPOutRedirects=npICMPOutRedirects, hrFSSys5FS=hrFSSys5FS, hrDeviceDiskStorage=hrDeviceDiskStorage, hrSystemDate=hrSystemDate, hrStorage=hrStorage, npUDPTable=npUDPTable, npICMPInMsgs=npICMPInMsgs, ldWBufReads=ldWBufReads, trapFCLossOfLinkFailureTimeStamp=trapFCLossOfLinkFailureTimeStamp, trapLunDisappearMsg=trapLunDisappearMsg, npIfType=npIfType, trapDiskTimeStamp=trapDiskTimeStamp, fpLFSIsolationStates=fpLFSIsolationStates, fabTargetAdapterNum=fabTargetAdapterNum, fabLunWWN=fabLunWWN, fpDNLCMiss=fpDNLCMiss, fspIdleCount=fspIdleCount, npICMPInAddrMasks=npICMPInAddrMasks, hrDeviceModem=hrDeviceModem, fpDNLCPurgevp=fpDNLCPurgevp, fpBUFBwrites=fpBUFBwrites, hrFSJournaled=hrFSJournaled, hrStorageCompactDisc=hrStorageCompactDisc, fpLFSDiagnostics=fpLFSDiagnostics, npICMPEntry=npICMPEntry, trapFSFullTimeStamp=trapFSFullTimeStamp, hrSystemInitialLoadParameters=hrSystemInitialLoadParameters, hrDevice=hrDevice, hrDeviceSerialPort=hrDeviceSerialPort, npICMPInParmProbs=npICMPInParmProbs, hrFSBerkeleyFFS=hrFSBerkeleyFFS, trapLunSizeChange=trapLunSizeChange, npIPReasmFails=npIPReasmFails, fabLunSize=fabLunSize, host=host, fpDNLCTStatTable=fpDNLCTStatTable, fpPAGEDirtyflistcnt=fpPAGEDirtyflistcnt, npIPReasmOKs=npIPReasmOKs, npICMPInRedirects=npICMPInRedirects, fpFreeinodes=fpFreeinodes, fpDNLCPurgevfsp=fpDNLCPurgevfsp, fabLunLabel=fabLunLabel, hrDeviceID=hrDeviceID, hrDeviceIndex=hrDeviceIndex, npTCPRtoMax=npTCPRtoMax, hrPartitionSize=hrPartitionSize, npIPInHdrErrors=npIPInHdrErrors, npICMPInTimestamps=npICMPInTimestamps, fabIntPin=fabIntPin, npTCPInErrs=npTCPInErrs, hrFSHPFS=hrFSHPFS, fpLFSIsolateFs=fpLFSIsolateFs, fpDNLCEnter=fpDNLCEnter, npTCPOutSegs=npTCPOutSegs, fabTargetType=fabTargetType, fpPAGEZcref=fpPAGEZcref, hrFSRFS=hrFSRFS, fpPAGEWritemiss=fpPAGEWritemiss, npIPOutRequests=npIPOutRequests, npIfAdminStatus=npIfAdminStatus, fpLFSTable=fpLFSTable, ldSectorReads=ldSectorReads, hrStorageRamDisk=hrStorageRamDisk, npIfOutQLen=npIfOutQLen, hrStorageRemovableDisk=hrStorageRemovableDisk, fpInodeEntry=fpInodeEntry, axProductName=axProductName, fcLinkFailureTrap=fcLinkFailureTrap, fabPCIBusNum=fabPCIBusNum, npSMBLocksHeld=npSMBLocksHeld, trapLunSizeChangeTimeStamp=trapLunSizeChangeTimeStamp, npIPInAddrErrors=npIPInAddrErrors, hrNetworkTable=hrNetworkTable, npIPOutDiscards=npIPOutDiscards, hrDeviceAudio=hrDeviceAudio, npSMBReads=npSMBReads, axSWVersion=axSWVersion, fabLunAdptNumber=fabLunAdptNumber, trapFSDegradationMsg=trapFSDegradationMsg, npIPFragFails=npIPFragFails, fabLogDevEntry=fabLogDevEntry, npIfOutNUcastPkts=npIfOutNUcastPkts, npIfInNUcastPkts=npIfInNUcastPkts, hrNetworkEntry=hrNetworkEntry, hrDeviceCoprocessor=hrDeviceCoprocessor, fpLFSReadlinks=fpLFSReadlinks, npIfOutCollisions=npIfOutCollisions, npIPForwDatagrams=npIPForwDatagrams, npICMPInDestUnreachs=npICMPInDestUnreachs, hrDeviceKeyboard=hrDeviceKeyboard, npBusyCount=npBusyCount, npIPInDelivers=npIPInDelivers, npICMPOutDestUnreachs=npICMPOutDestUnreachs, npTCPEntry=npTCPEntry)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, value_size_constraint, value_range_constraint, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(integer32, mib_2, bits, counter64, notification_type, notification_type, enterprises, object_identity, counter32, module_identity, time_ticks, ip_address, mib_identifier, iso, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'mib-2', 'Bits', 'Counter64', 'NotificationType', 'NotificationType', 'enterprises', 'ObjectIdentity', 'Counter32', 'ModuleIdentity', 'TimeTicks', 'IpAddress', 'MibIdentifier', 'iso', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
auspex = mib_identifier((1, 3, 6, 1, 4, 1, 80))
net_server = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3))
ax_product_info = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 1))
ax_np = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 2))
ax_fsp = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 3))
ax_trap_data = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 4))
ax_fp = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 2))
fp_htfs = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3))
ax_sp = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 3))
sp_raid = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 3, 2))
np_protocols = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 2, 3))
ax_fab = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 4))
fab_raid = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5))
ax_product_name = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 1, 1), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
axProductName.setStatus('mandatory')
if mibBuilder.loadTexts:
axProductName.setDescription('Name of the file server product.')
ax_sw_version = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
axSWVersion.setStatus('mandatory')
if mibBuilder.loadTexts:
axSWVersion.setDescription('Version of the M16 Kernel on Netserver')
ax_num_npfsp = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
axNumNPFSP.setStatus('mandatory')
if mibBuilder.loadTexts:
axNumNPFSP.setDescription('Number of NPFSP boards on file server.')
np_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 2, 1))
if mibBuilder.loadTexts:
npTable.setStatus('mandatory')
if mibBuilder.loadTexts:
npTable.setDescription('A table for all NPs(Network Processors) on the file server.')
np_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 2, 1, 1)).setIndexNames((0, 'NETSERVER-MIB', 'npIndex'))
if mibBuilder.loadTexts:
npEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
npEntry.setDescription('An entry for each NP on the file server.')
np_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
npIndex.setDescription('A unique number for identifying an NP in the system.')
np_busy_count = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 1, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npBusyCount.setStatus('mandatory')
if mibBuilder.loadTexts:
npBusyCount.setDescription('Busy counts of NP.')
np_idle_count = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 1, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIdleCount.setStatus('mandatory')
if mibBuilder.loadTexts:
npIdleCount.setDescription('Idle counts of NP.')
np_if_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 2, 2))
if mibBuilder.loadTexts:
npIfTable.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfTable.setDescription('Table containing information for each interface of NP. It maps the interface with the NP')
np_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1)).setIndexNames((0, 'NETSERVER-MIB', 'npIndex'), (0, 'NETSERVER-MIB', 'npIfIndex'))
if mibBuilder.loadTexts:
npIfEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfEntry.setDescription('Entry for each interface')
np_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfIndex.setDescription('A unique number for an interface for a given NP')
np_ifif_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfifIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfifIndex.setDescription('Corresponding ifINdex in ifTable of mib-2')
np_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfType.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfType.setDescription('Type of network interface ')
np_if_speed = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfSpeed.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfSpeed.setDescription('Nominal Interface Speed (in millions of bits per second)')
np_if_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfInOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfInOctets.setDescription('The total number of octets received on the interface, including framing characters')
np_if_in_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfInUcastPkts.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfInUcastPkts.setDescription('The number of subnetwork-unicast packets delivered to a higher-layer protocol')
np_if_in_n_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfInNUcastPkts.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfInNUcastPkts.setDescription('The number of non-unicast (i.e., subnetwork-broadcast or multicast) packets delivered to a higher-layer protocol')
np_if_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfInDiscards.setDescription('The inbound packet discard count even though no errors were detected. One reason for discarding could be to free up buffer space')
np_if_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfInErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfInErrors.setDescription('The input-packet error count for an interface for a given NP')
np_if_in_unknown_proto = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfInUnknownProto.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfInUnknownProto.setDescription('The input-packet discard count due to an unknown or unsupported protocol')
np_if_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfOutOctets.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfOutOctets.setDescription('The total number of octets transmitted out of the interface, including framing characters')
np_if_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfOutUcastPkts.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfOutUcastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted to a subnetwork-unicast address, including those that were discarded or not sent')
np_if_out_n_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfOutNUcastPkts.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfOutNUcastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted to a non-unicast (i.e., a subnetwork-broadcast or multicast) address, including those that were discarded or not sent')
np_if_out_discards = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfOutDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfOutDiscards.setDescription('The number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possibel reason for discarding such a packet could be to free up buffer space')
np_if_out_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfOutErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfOutErrors.setDescription('The number of outbound packets that could not be transmitted because of errors')
np_if_out_collisions = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfOutCollisions.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfOutCollisions.setDescription('The output-packet collision count for an interface for a given NP')
np_if_out_q_len = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 17), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfOutQLen.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfOutQLen.setDescription('The output-packet queue length (in packets) for an interface for a given NP')
np_if_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('testing', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
npIfAdminStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfAdminStatus.setDescription('The desired state of the interface. The testing(3) state indicates that no operational packets can be passed.')
np_if_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 2, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('testing', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIfOperStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
npIfOperStatus.setDescription('The current operational state of the interface. The testing(3) state indicates that no operational packets can be passed.')
np_ip_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1))
if mibBuilder.loadTexts:
npIPTable.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPTable.setDescription('Table for Internet Protocol statistics for each NP of the system.')
np_ip_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1)).setIndexNames((0, 'NETSERVER-MIB', 'npIndex'))
if mibBuilder.loadTexts:
npIPEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPEntry.setDescription('An entry for each NP in the system.')
np_ip_forwarding = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('forwarding', 1), ('not-forwarding', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPForwarding.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPForwarding.setDescription('It has two values : forwarding(1) -- acting as gateway notforwarding(2) -- NOT acting as gateway')
np_ip_default_ttl = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPDefaultTTL.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPDefaultTTL.setDescription('NP IP default Time To Live.')
np_ip_in_receives = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPInReceives.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPInReceives.setDescription('NP IP received packet count.')
np_ip_in_hdr_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPInHdrErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPInHdrErrors.setDescription('NP IP header error count.')
np_ip_in_addr_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPInAddrErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPInAddrErrors.setDescription('NP IP address error count.')
np_ip_forw_datagrams = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPForwDatagrams.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPForwDatagrams.setDescription('NP IP forwarded datagram count.')
np_ip_in_unknown_protos = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPInUnknownProtos.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPInUnknownProtos.setDescription('NP IP input packet with unknown protocol.')
np_ip_in_discards = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPInDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPInDiscards.setDescription('NP IP discarded input packet count.')
np_ip_in_delivers = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPInDelivers.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPInDelivers.setDescription('NP IP delivered input packet count.')
np_ip_out_requests = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPOutRequests.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPOutRequests.setDescription('NP IP tx packet count.')
np_ip_out_discards = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPOutDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPOutDiscards.setDescription('NP IP discarded out packet count.')
np_ip_out_no_routes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPOutNoRoutes.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPOutNoRoutes.setDescription('NP IP tx fails due to no route count.')
np_ip_reasm_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPReasmTimeout.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPReasmTimeout.setDescription('NP IP reassembly time out count.')
np_ip_reasm_reqds = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPReasmReqds.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPReasmReqds.setDescription('NP IP reassembly required count.')
np_ip_reasm_o_ks = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPReasmOKs.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPReasmOKs.setDescription('NP IP reassembly success count.')
np_ip_reasm_fails = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPReasmFails.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPReasmFails.setDescription('NP IP reassembly failure count.')
np_ip_frag_o_ks = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPFragOKs.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPFragOKs.setDescription('NP IP fragmentation success count.')
np_ip_frag_fails = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPFragFails.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPFragFails.setDescription('NP IP fragmentation failure count.')
np_ip_frag_creates = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPFragCreates.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPFragCreates.setDescription('NP IP fragment created count.')
np_ip_routing_discards = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npIPRoutingDiscards.setStatus('mandatory')
if mibBuilder.loadTexts:
npIPRoutingDiscards.setDescription('NP IP discarded route count.')
np_icmp_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2))
if mibBuilder.loadTexts:
npICMPTable.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPTable.setDescription('Table for Internet Control Message Protocol statistics for each NP of the system.')
np_icmp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1)).setIndexNames((0, 'NETSERVER-MIB', 'npIndex'))
if mibBuilder.loadTexts:
npICMPEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPEntry.setDescription('An entry for each NP in the system.')
np_icmp_in_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInMsgs.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInMsgs.setDescription('NP ICMP input message count.')
np_icmp_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInErrors.setDescription('NP ICMP input error packet count.')
np_icmp_in_dest_unreachs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInDestUnreachs.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInDestUnreachs.setDescription('NP ICMP input destination unreachable count.')
np_icmp_in_time_excds = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInTimeExcds.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInTimeExcds.setDescription('NP ICMP input time exceeded count.')
np_icmp_in_parm_probs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInParmProbs.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInParmProbs.setDescription('NP ICMP input parameter problem packet count.')
np_icmp_in_src_quenchs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInSrcQuenchs.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInSrcQuenchs.setDescription('NP ICMP input source quench packet count.')
np_icmp_in_redirects = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInRedirects.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInRedirects.setDescription('NP ICMP input redirect packet count.')
np_icmp_in_echos = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInEchos.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInEchos.setDescription('NP ICMP input echo count.')
np_icmp_in_echo_reps = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInEchoReps.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInEchoReps.setDescription('NP ICMP input echo reply count.')
np_icmp_in_timestamps = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInTimestamps.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInTimestamps.setDescription('NP ICMP input timestamp count.')
np_icmp_in_timestamp_reps = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInTimestampReps.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInTimestampReps.setDescription('NP ICMP input timestamp reply count.')
np_icmp_in_addr_masks = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInAddrMasks.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInAddrMasks.setDescription('NP ICMP input address mask count.')
np_icmp_in_addr_mask_reps = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPInAddrMaskReps.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPInAddrMaskReps.setDescription('NP ICMP input address mask reply count.')
np_icmp_out_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutMsgs.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutMsgs.setDescription('NP ICMP output message count.')
np_icmp_out_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutErrors.setDescription('NP ICMP output error packet count.')
np_icmp_out_dest_unreachs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutDestUnreachs.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutDestUnreachs.setDescription('NP ICMP output destination unreachable count.')
np_icmp_out_time_excds = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutTimeExcds.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutTimeExcds.setDescription('NP ICMP output time exceeded count.')
np_icmp_out_parm_probs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutParmProbs.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutParmProbs.setDescription('NP ICMP output parameter problem packet count.')
np_icmp_out_src_quenchs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutSrcQuenchs.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutSrcQuenchs.setDescription('NP ICMP output source quench packet count.')
np_icmp_out_redirects = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutRedirects.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutRedirects.setDescription('NP ICMP output redirect packet count.')
np_icmp_out_echos = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutEchos.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutEchos.setDescription('NP ICMP output echo count.')
np_icmp_out_echo_reps = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutEchoReps.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutEchoReps.setDescription('NP ICMP output echo reply count.')
np_icmp_out_timestamps = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutTimestamps.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutTimestamps.setDescription('NP ICMP output timestamp count.')
np_icmp_out_timestamp_reps = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutTimestampReps.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutTimestampReps.setDescription('NP ICMP output timestamp reply count.')
np_icmp_out_addr_masks = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutAddrMasks.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutAddrMasks.setDescription('NP ICMP output address mask count.')
np_icmp_out_addr_mask_reps = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 2, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npICMPOutAddrMaskReps.setStatus('mandatory')
if mibBuilder.loadTexts:
npICMPOutAddrMaskReps.setDescription('NP ICMP output address mask reply count.')
np_tcp_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3))
if mibBuilder.loadTexts:
npTCPTable.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPTable.setDescription('Table for Transmission Control Protocol statistics for each NP of the system.')
np_tcp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1)).setIndexNames((0, 'NETSERVER-MIB', 'npIndex'))
if mibBuilder.loadTexts:
npTCPEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPEntry.setDescription('An entry for each NP in the system.')
np_tcp_rto_algorithm = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('other', 1), ('constant', 2), ('rsre', 3), ('vanj', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPRtoAlgorithm.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPRtoAlgorithm.setDescription('NP TCP Round Trip Algorithm type.')
np_tcp_rto_min = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPRtoMin.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPRtoMin.setDescription('NP TCP minimum RTO.')
np_tcp_rto_max = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPRtoMax.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPRtoMax.setDescription('NP TCP maximum RTO.')
np_tcp_max_conn = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPMaxConn.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPMaxConn.setDescription('NP TCP maximum number of connections.')
np_tcp_active_opens = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPActiveOpens.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPActiveOpens.setDescription('NP TCP active open count.')
np_tcp_passive_opens = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPPassiveOpens.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPPassiveOpens.setDescription('NP TCP passive open count.')
np_tcp_attempt_fails = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPAttemptFails.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPAttemptFails.setDescription('NP TCP connect attempt fails.')
np_tcp_estab_resets = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPEstabResets.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPEstabResets.setDescription('NP TCP reset of established session.')
np_tcp_curr_estab = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPCurrEstab.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPCurrEstab.setDescription('NP TCP current established session count.')
np_tcp_in_segs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPInSegs.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPInSegs.setDescription('NP TCP input segments count.')
np_tcp_out_segs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPOutSegs.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPOutSegs.setDescription('NP TCP output segments count.')
np_tcp_retrans_segs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPRetransSegs.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPRetransSegs.setDescription('NP TCP retransmitted segments count.')
np_tcp_in_errs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPInErrs.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPInErrs.setDescription('NP TCP input error packets count.')
np_tcp_out_rsts = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 3, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npTCPOutRsts.setStatus('mandatory')
if mibBuilder.loadTexts:
npTCPOutRsts.setDescription('NP TCP output reset packets count.')
np_udp_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4))
if mibBuilder.loadTexts:
npUDPTable.setStatus('mandatory')
if mibBuilder.loadTexts:
npUDPTable.setDescription('Table for User Datagram Protocol statistics for each NP of the system.')
np_udp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1)).setIndexNames((0, 'NETSERVER-MIB', 'npIndex'))
if mibBuilder.loadTexts:
npUDPEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
npUDPEntry.setDescription('An entry for each NP in the system.')
np_udp_in_datagrams = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npUDPInDatagrams.setStatus('mandatory')
if mibBuilder.loadTexts:
npUDPInDatagrams.setDescription('NP UDP input datagram count.')
np_udp_no_ports = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npUDPNoPorts.setStatus('mandatory')
if mibBuilder.loadTexts:
npUDPNoPorts.setDescription('NP UDP number of ports.')
np_udp_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npUDPInErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
npUDPInErrors.setDescription('NP UDP input error count.')
np_udp_out_datagrams = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 4, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npUDPOutDatagrams.setStatus('mandatory')
if mibBuilder.loadTexts:
npUDPOutDatagrams.setDescription('Np UDP output datagram count.')
np_nfs_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5))
if mibBuilder.loadTexts:
npNFSTable.setStatus('mandatory')
if mibBuilder.loadTexts:
npNFSTable.setDescription('Table for Network File System statistics for each NP in the system.')
np_nfs_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5, 1)).setIndexNames((0, 'NETSERVER-MIB', 'npIndex'))
if mibBuilder.loadTexts:
npNFSEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
npNFSEntry.setDescription('An entry for each NP in the system.')
np_nfsd_counts = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npNFSDCounts.setStatus('mandatory')
if mibBuilder.loadTexts:
npNFSDCounts.setDescription('NP NFS count (obtained from NFS daemon)')
np_nfsdn_jobs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npNFSDNJobs.setStatus('mandatory')
if mibBuilder.loadTexts:
npNFSDNJobs.setDescription('NP NFS number of jobs (obtained from NFS daemon)')
np_nfsd_busy_counts = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 5, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npNFSDBusyCounts.setStatus('mandatory')
if mibBuilder.loadTexts:
npNFSDBusyCounts.setDescription('NP NFS busy count (obtained from NFS daemon)')
np_smb_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6))
if mibBuilder.loadTexts:
npSMBTable.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBTable.setDescription('Contains statistical counts for the SMB protocol per NP')
np_smb_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1)).setIndexNames((0, 'NETSERVER-MIB', 'npIndex'))
if mibBuilder.loadTexts:
npSMBEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBEntry.setDescription('An entry for each NP in the system.')
np_smb_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npSMBRcvd.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBRcvd.setDescription('The total number of SMB netbios messages received.')
np_smb_bytes_rcvd = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npSMBBytesRcvd.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBBytesRcvd.setDescription('The total number of SMB related bytes rvcd by this NP from a client (does not include netbios header bytes).')
np_smb_bytes_sent = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npSMBBytesSent.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBBytesSent.setDescription('The total SMB related bytes sent by this NP to a client (does not include netbios header bytes).')
np_smb_reads = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npSMBReads.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBReads.setDescription('The total number of SMB reads consisting of the following opcodes: SMB-COM-READ, SMB-COM-LOCK-AND-READ, SMB-COM-READ-RAW, SMB-COM-READ-MPX, SMB-COM-READ-MPX-SECONDARY and SMB-COM-READ-ANDX.')
np_smb_writes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npSMBWrites.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBWrites.setDescription('The total number of SMB writes consisting of the following opcodes: SMB-COM-WRITE, SMB-COM-WRITE-AND-UNLOCK, SMB-COM-WRITE-RAW, SMB-COM-WRITE-MPX, SMB-COM-WRITE-COMPLETE, SMB-COM-WRITE-ANDX and SMB-COM-WRITE-AND-CLOSE.')
np_smb_opens = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npSMBOpens.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBOpens.setDescription('The total number of SMB opens consisting of the SMB-COM-OPEN, SMB-COM-CREATE,SMB-COM-CREATE-TEMPORARY,SMB-COM-CREATE-NEW, TRANS2-OPEN2, NT-TRANSACT-CREATE and SMB-COM-OPEN-ANDX opcodes received.')
np_smb_closes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npSMBCloses.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBCloses.setDescription('The total number of SMB SMB-COM-CLOSE opcodes recieved.')
np_smb_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npSMBErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBErrors.setDescription('The total number of invalid netbios messages recieved.')
np_smb_locks_held = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 2, 3, 6, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
npSMBLocksHeld.setStatus('mandatory')
if mibBuilder.loadTexts:
npSMBLocksHeld.setDescription('The total number of locks currently held')
fsp_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 1))
if mibBuilder.loadTexts:
fspTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fspTable.setDescription('A table for all FSPs(File and Storage Processors) on the file server.')
fsp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 1, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'))
if mibBuilder.loadTexts:
fspEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fspEntry.setDescription('An entry for one FSP on the file server.')
fsp_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fspIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
fspIndex.setDescription('A unique number for identifying an FSP in the system.')
fsp_busy_count = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 1, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fspBusyCount.setStatus('mandatory')
if mibBuilder.loadTexts:
fspBusyCount.setDescription('Busy counts of FSP.')
fsp_idle_count = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 1, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fspIdleCount.setStatus('mandatory')
if mibBuilder.loadTexts:
fspIdleCount.setDescription('Idle counts of FSP.')
fp_lfs_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1))
if mibBuilder.loadTexts:
fpLFSTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSTable.setDescription('Table for FP File System Services Statistics for each FSP on the system.')
fp_lfs_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'))
if mibBuilder.loadTexts:
fpLFSEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSEntry.setDescription('An entry for each FSP in the system.')
fp_lfs_version = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSVersion.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSVersion.setDescription('FP file system services statistics version.')
fp_lfs_mounts = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSMounts.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSMounts.setDescription('FP file system services - FC-MOUNT - Counter.')
fp_lfsu_mounts = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSUMounts.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSUMounts.setDescription('FP file system services - FC-UMOUNT - Counter.')
fp_lfs_reads = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSReads.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSReads.setDescription('FP file system services - FC-READ - Counter.')
fp_lfs_writes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSWrites.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSWrites.setDescription('FP file system services - FC-WRITE - Counter.')
fp_lfs_readdirs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSReaddirs.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSReaddirs.setDescription('FP file system services - FC-READDIR - Counter.')
fp_lfs_readlinks = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSReadlinks.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSReadlinks.setDescription('FP file system services - FC-READLINK - Counter.')
fp_lfs_mkdirs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSMkdirs.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSMkdirs.setDescription('FP file system services - FC-MKDIR - Counter.')
fp_lfs_mknods = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSMknods.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSMknods.setDescription('FP file system services - FC-MKNOD - Counter.')
fp_lfs_readdir_pluses = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSReaddirPluses.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSReaddirPluses.setDescription('FP file system services - FC-READDIR-PLUS - Counter.')
fp_lfs_fsstats = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSFsstats.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSFsstats.setDescription('FP file system services - FC-FSSTAT - Counter.')
fp_lfs_null = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 12), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSNull.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSNull.setDescription('FP file system services - FC-NULL - Counter.')
fp_lfs_fsinfo = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 13), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSFsinfo.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSFsinfo.setDescription('FP file system services - FC-FSINFO - Counter.')
fp_lfs_getattrs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 14), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSGetattrs.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSGetattrs.setDescription('FP file system services - FC-GETATTR - Counter.')
fp_lfs_setattrs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 15), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSSetattrs.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSSetattrs.setDescription('FP file system services - FC-SETATTR - Counter.')
fp_lfs_lookups = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 16), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSLookups.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSLookups.setDescription('FP file system services - FC-LOOKUP - Counter.')
fp_lfs_creates = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 17), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSCreates.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSCreates.setDescription('FP file system services - FC-CREATE - Counter.')
fp_lfs_removes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 18), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSRemoves.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSRemoves.setDescription('FP file system services - FC-REMOVE - Counter.')
fp_lfs_renames = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 19), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSRenames.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSRenames.setDescription('FP file system services - FC-RENAME - Counter.')
fp_lfs_links = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 20), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSLinks.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSLinks.setDescription('FP file system services - FC-LINK - Counter.')
fp_lfs_symlinks = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 21), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSSymlinks.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSSymlinks.setDescription('FP file system services - FC-SYMLINK - Counter.')
fp_lfs_rmdirs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSRmdirs.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSRmdirs.setDescription('FP file system services - FC-RMDIR - Counter.')
fp_lfs_ckpntons = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSCkpntons.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSCkpntons.setDescription('FP file system services - FC-CKPNTON - Counter.')
fp_lfs_ckpntoffs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSCkpntoffs.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSCkpntoffs.setDescription('FP file system services - FC-CKPNTOFFS - Counter.')
fp_lfs_clears = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSClears.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSClears.setDescription('FP file system services - FC-CLEAR - Counter.')
fp_lfs_isolate_fs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSIsolateFs.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSIsolateFs.setDescription('FP file system services - FC-ISOLATE-FS - Counter.')
fp_lfs_release_fs = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSReleaseFs.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSReleaseFs.setDescription('FP file system services - FC-RELEASE-FS - Counter.')
fp_lfs_isolation_states = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSIsolationStates.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSIsolationStates.setDescription('FP file system services - FC-ISOLATION-STATE - Counter.')
fp_lfs_diagnostics = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSDiagnostics.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSDiagnostics.setDescription('FP file system services - FC-DIAGNOSTIC - Counter.')
fp_lfs_purges = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 1, 1, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpLFSPurges.setStatus('mandatory')
if mibBuilder.loadTexts:
fpLFSPurges.setDescription('FP file system services - FC-PURGE - Counter.')
fp_file_system_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 2))
if mibBuilder.loadTexts:
fpFileSystemTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fpFileSystemTable.setDescription('Table containg File systems on each FSP')
fp_fs_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 2, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'), (0, 'NETSERVER-MIB', 'fpFSIndex'))
if mibBuilder.loadTexts:
fpFSEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fpFSEntry.setDescription('Entry for each File System')
fp_fs_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpFSIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
fpFSIndex.setDescription('Uniquely identifies each FS on FSP')
fp_hr_fs_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpHrFSIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
fpHrFSIndex.setDescription('Index of the corresponding FS entry in host resource mib')
fp_dnlct_stat_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1))
if mibBuilder.loadTexts:
fpDNLCTStatTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fpDNLCTStatTable.setDescription('DNLC is part of StackOS module. This table displays DNLC Statistics.')
fp_dnlcs_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'))
if mibBuilder.loadTexts:
fpDNLCSEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fpDNLCSEntry.setDescription('Each entry for a FSP board.')
fp_dnlc_hit = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpDNLCHit.setStatus('mandatory')
if mibBuilder.loadTexts:
fpDNLCHit.setDescription('DNLC hit on a given FSP.')
fp_dnlc_miss = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpDNLCMiss.setStatus('mandatory')
if mibBuilder.loadTexts:
fpDNLCMiss.setDescription('DNLC miss on a given FSP.')
fp_dnlc_enter = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpDNLCEnter.setStatus('mandatory')
if mibBuilder.loadTexts:
fpDNLCEnter.setDescription('Number of DNLC entries made (total).')
fp_dnlc_conflict = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpDNLCConflict.setStatus('mandatory')
if mibBuilder.loadTexts:
fpDNLCConflict.setDescription('Times entry found in DNLC on dnlc-enter.')
fp_dnlc_purgevfsp = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpDNLCPurgevfsp.setStatus('mandatory')
if mibBuilder.loadTexts:
fpDNLCPurgevfsp.setDescription('Entries purged based on vfsp.')
fp_dnlc_purgevp = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpDNLCPurgevp.setStatus('mandatory')
if mibBuilder.loadTexts:
fpDNLCPurgevp.setDescription('Entries purge based on vp.')
fp_dnlc_hashsz = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 1, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpDNLCHashsz.setStatus('mandatory')
if mibBuilder.loadTexts:
fpDNLCHashsz.setDescription('Number of hash buckets in dnlc hash table.')
fp_page_stat_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2))
if mibBuilder.loadTexts:
fpPageStatTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPageStatTable.setDescription('Page is part of StackOS module. This table gives the Page Statistics for all FSPs.')
fp_page_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'))
if mibBuilder.loadTexts:
fpPageEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPageEntry.setDescription('Each Entry in the table displays Page Statistics for a FSP.')
fp_page_totalmem = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGETotalmem.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGETotalmem.setDescription('Allocated memory for pages.')
fp_page_freelistcnt = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEFreelistcnt.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEFreelistcnt.setDescription('Pages on freelist.')
fp_page_cachelistcnt = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGECachelistcnt.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGECachelistcnt.setDescription('Pages on cachelist.')
fp_page_dirtyflistcnt = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEDirtyflistcnt.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEDirtyflistcnt.setDescription('Pages on dirtyflist.')
fp_page_dirtydlistcnt = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEDirtydlistcnt.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEDirtydlistcnt.setDescription('Pages on dirtydlist')
fp_page_cachehit = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGECachehit.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGECachehit.setDescription('Page cache hit.')
fp_page_cachemiss = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGECachemiss.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGECachemiss.setDescription('Page cache miss.')
fp_page_writehit = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEWritehit.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEWritehit.setDescription('Page cache write hit.')
fp_page_writemiss = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEWritemiss.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEWritemiss.setDescription('Page cache write miss.')
fp_page_zcref = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEZcref.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEZcref.setDescription('Page Zref.')
fp_page_zcbreak = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 11), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEZcbreak.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEZcbreak.setDescription('Page Zbreak.')
fp_page_outscan = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 12), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEOutscan.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEOutscan.setDescription('Page out scan.')
fp_page_outputpage = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 13), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEOutputpage.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEOutputpage.setDescription('Output Page.')
fp_page_fsflushscan = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 14), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEFsflushscan.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEFsflushscan.setDescription('Flush scan.')
fp_page_fsflushputpage = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEFsflushputpage.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEFsflushputpage.setDescription('Flush output page.')
fp_page_outcnt = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 2, 1, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpPAGEOutcnt.setStatus('mandatory')
if mibBuilder.loadTexts:
fpPAGEOutcnt.setDescription('Page out count.')
fp_buffer_stat_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3))
if mibBuilder.loadTexts:
fpBufferStatTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBufferStatTable.setDescription('BufferIO is one of the modules present in StackOS. This table displays the bufferIO statistics for all FSPs.')
fp_buffer_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'))
if mibBuilder.loadTexts:
fpBufferEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBufferEntry.setDescription('Each entry in the table for a single FSP.')
fp_buf_lreads = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpBUFLreads.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBUFLreads.setDescription('Number of buffered reads.')
fp_buf_breads = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpBUFBreads.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBUFBreads.setDescription('Number of breads doing sp-read.')
fp_buf_lwrites = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpBUFLwrites.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBUFLwrites.setDescription('Number of buffered writes (incl. delayed).')
fp_buf_bwrites = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpBUFBwrites.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBUFBwrites.setDescription('Number of bwrites doing sp-write.')
fp_bufi_owaits = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpBUFIOwaits.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBUFIOwaits.setDescription('Number of processes blocked in biowait.')
fp_buf_resid = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpBUFResid.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBUFResid.setDescription('Running total of unused buf memory.')
fp_buf_bufsize = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpBUFBufsize.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBUFBufsize.setDescription('Running total of memory on free list.')
fp_buf_bcount = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 3, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpBUFBcount.setStatus('mandatory')
if mibBuilder.loadTexts:
fpBUFBcount.setDescription('Running total of memory on hash lists.')
fp_inode_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4))
if mibBuilder.loadTexts:
fpInodeTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fpInodeTable.setDescription('Inode table displays the Inode Statistics for all FSPs. Inode is part of StackOS module.')
fp_inode_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'))
if mibBuilder.loadTexts:
fpInodeEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fpInodeEntry.setDescription('Each entry in the table displays Inode Statistics for a FSP.')
fp_inode_igetcalls = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpINODEIgetcalls.setStatus('mandatory')
if mibBuilder.loadTexts:
fpINODEIgetcalls.setDescription('Number of calls to htfs-iget.')
fp_foundinodes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpFoundinodes.setStatus('mandatory')
if mibBuilder.loadTexts:
fpFoundinodes.setDescription('Inode cache hits.')
fp_totalinodes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpTotalinodes.setStatus('mandatory')
if mibBuilder.loadTexts:
fpTotalinodes.setDescription('Total number of inodes in memory.')
fp_goneinodes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpGoneinodes.setStatus('mandatory')
if mibBuilder.loadTexts:
fpGoneinodes.setDescription('Number of inodes on gone list.')
fp_freeinodes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpFreeinodes.setStatus('mandatory')
if mibBuilder.loadTexts:
fpFreeinodes.setDescription('Number of inodes on free list.')
fp_cacheinodes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpCacheinodes.setStatus('mandatory')
if mibBuilder.loadTexts:
fpCacheinodes.setDescription('Number of inodes on cache list.')
fp_syncinodes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 2, 3, 4, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fpSyncinodes.setStatus('mandatory')
if mibBuilder.loadTexts:
fpSyncinodes.setDescription('Number of inodes on sync list.')
class Raidlevel(TextualConvention, Integer32):
description = 'Defines the type of Raid Level present in the system'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 3, 5, 6, 7))
named_values = named_values(('raid0', 0), ('raid1', 1), ('raid3', 3), ('raid5', 5), ('raid6', 6), ('raid7', 7))
class Rebuildflag(TextualConvention, Integer32):
description = 'Defines the Rebuild Flag type.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 240, 241, 242, 243, 244, 255))
named_values = named_values(('none', 0), ('autorebuild', 1), ('manualrebuild', 2), ('check', 3), ('expandcapacity', 4), ('phydevfailed', 240), ('logdevfailed', 241), ('justfailed', 242), ('canceled', 243), ('expandcapacityfailed', 244), ('autorebuildfailed', 255))
class Bustype(TextualConvention, Integer32):
description = 'Defines Bus type.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))
named_values = named_values(('eisa', 1), ('mca', 2), ('pci', 3), ('vesa', 4), ('isa', 5), ('scsi', 6))
class Controllertype(TextualConvention, Integer32):
description = 'This textual Convention defines the type of Controller.'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 8, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 80, 96, 97, 98, 99, 100, 129, 130, 131, 132, 133, 134, 136, 137, 138, 139, 140, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 192, 193, 194, 195))
named_values = named_values(('dac960E', 1), ('dac960M', 8), ('dac960PD', 16), ('dac960PL', 17), ('dac960PDU', 18), ('dac960PE', 19), ('dac960PG', 20), ('dac960PJ', 21), ('dac960PTL', 22), ('dac960PR', 23), ('dac960PRL', 24), ('dac960PT', 25), ('dac1164P', 26), ('dacI20', 80), ('dac960S', 96), ('dac960SU', 97), ('dac960SX', 98), ('dac960SF', 99), ('dac960FL', 100), ('hba440', 129), ('hba440C', 130), ('hba445', 131), ('hba445C', 132), ('hba440xC', 133), ('hba445S', 134), ('hba640', 136), ('hba640A', 137), ('hba446', 138), ('hba446D', 139), ('hba446S', 140), ('hba742', 144), ('hba742A', 145), ('hba747', 146), ('hba747D', 147), ('hba747S', 148), ('hba74xC', 149), ('hba757', 150), ('hba757D', 151), ('hba757S', 152), ('hba757CD', 153), ('hba75xC', 154), ('hba747C', 155), ('hba757C', 156), ('hba540', 160), ('hba540C', 161), ('hba542', 162), ('hba542B', 163), ('hba542C', 164), ('hba542D', 165), ('hba545', 166), ('hba545C', 167), ('hba545S', 168), ('hba54xC', 169), ('hba946', 176), ('hba946C', 177), ('hba948', 178), ('hba948C', 179), ('hba956', 180), ('hba956C', 181), ('hba958', 182), ('hba958C', 183), ('hba958D', 184), ('hba956CD', 185), ('hba958CD', 186), ('hba930', 192), ('hba932', 193), ('hba950', 194), ('hba952', 195))
class Vendorname(TextualConvention, Integer32):
description = 'Name of the Vendors'
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8))
named_values = named_values(('mylex', 0), ('ibm', 1), ('hp', 2), ('dec', 3), ('att', 4), ('dell', 5), ('nec', 6), ('sni', 7), ('ncr', 8))
class U08Bits(TextualConvention, Integer32):
description = 'Integer type of range 0..255'
status = 'current'
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 255)
class U16Bits(TextualConvention, Integer32):
description = 'Integer type of range 0..65535'
status = 'current'
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 65535)
fab_log_dev_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1))
if mibBuilder.loadTexts:
fabLogDevTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLogDevTable.setDescription('This table contains information for logical devices.')
fab_log_dev_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'), (0, 'NETSERVER-MIB', 'ldIndex'))
if mibBuilder.loadTexts:
fabLogDevEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLogDevEntry.setDescription('Entry for each logical device')
ld_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ldIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
ldIndex.setDescription(' Index of the logical device')
ld_sector_reads = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ldSectorReads.setStatus('mandatory')
if mibBuilder.loadTexts:
ldSectorReads.setDescription(' Number of sectors read ')
ld_w_buf_reads = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ldWBufReads.setStatus('mandatory')
if mibBuilder.loadTexts:
ldWBufReads.setDescription(' Number of sectors read from WBUF ')
ld_sector_writes = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ldSectorWrites.setStatus('mandatory')
if mibBuilder.loadTexts:
ldSectorWrites.setDescription('Number of sector writes ')
ld_read_io = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ldReadIO.setStatus('mandatory')
if mibBuilder.loadTexts:
ldReadIO.setDescription("Number of read IO's ")
ld_write_io = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ldWriteIO.setStatus('mandatory')
if mibBuilder.loadTexts:
ldWriteIO.setDescription("Number of write IO's ")
ld_media_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ldMediaErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ldMediaErrors.setDescription('Number of media errors ')
ld_drive_errors = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ldDriveErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
ldDriveErrors.setDescription('Number of drive errors ')
ld_total_time = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 5, 1, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
ldTotalTime.setStatus('mandatory')
if mibBuilder.loadTexts:
ldTotalTime.setDescription('Total time for the logical device')
fab_adpt_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1))
if mibBuilder.loadTexts:
fabAdptTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fabAdptTable.setDescription('Table containing information for all fibre channel adapters information on the Auspex IO node')
fab_adpt_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'), (0, 'NETSERVER-MIB', 'fabIndex'))
if mibBuilder.loadTexts:
fabAdptEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fabAdptEntry.setDescription('Entry for each fibre channel adapter')
fab_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
fabIndex.setDescription('Fabric adapter index')
fab_pci_bus_num = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 2), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabPCIBusNum.setStatus('mandatory')
if mibBuilder.loadTexts:
fabPCIBusNum.setDescription('Fabric adapter PCI BUS number')
fab_slot_num = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 3), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabSlotNum.setStatus('mandatory')
if mibBuilder.loadTexts:
fabSlotNum.setDescription('Fabric adapter Slot number')
fab_int_line = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 4), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabIntLine.setStatus('mandatory')
if mibBuilder.loadTexts:
fabIntLine.setDescription('Fabric adapter Interrupt line')
fab_int_pin = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 5), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabIntPin.setStatus('mandatory')
if mibBuilder.loadTexts:
fabIntPin.setDescription('Fabric adapter Interrupt pin')
fab_type = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 6), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabType.setStatus('mandatory')
if mibBuilder.loadTexts:
fabType.setDescription('Fabric adapter Type')
fab_vendor_id = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 7), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabVendorId.setStatus('mandatory')
if mibBuilder.loadTexts:
fabVendorId.setDescription('Fabric adapter Vendor ID')
fab_device_id = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 8), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabDeviceId.setStatus('mandatory')
if mibBuilder.loadTexts:
fabDeviceId.setDescription('Fabric adapter Device ID')
fab_revision_id = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 9), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabRevisionId.setStatus('mandatory')
if mibBuilder.loadTexts:
fabRevisionId.setDescription('Fabric adapter Revision ID')
fab_wwn = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 10), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabWWN.setStatus('mandatory')
if mibBuilder.loadTexts:
fabWWN.setDescription('Fabric adapter World Wide Number')
fab_num_of_targets = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 11), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabNumOfTargets.setStatus('mandatory')
if mibBuilder.loadTexts:
fabNumOfTargets.setDescription('Number of targets found for the adapter')
fab_adpt_number = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 1, 1, 12), u08_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabAdptNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
fabAdptNumber.setDescription('Fabric adapter Number')
fab_target_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2))
if mibBuilder.loadTexts:
fabTargetTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetTable.setDescription('Table containing information for all fibre channel adapters information on the Auspex IO node')
fab_target_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'), (0, 'NETSERVER-MIB', 'fabTargetIndex'))
if mibBuilder.loadTexts:
fabTargetEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetEntry.setDescription('Entry for each fibre channel adapter')
fab_target_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabTargetIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetIndex.setDescription('The Fabric target adapter index ')
fab_target_adapter_num = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 2), u08_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabTargetAdapterNum.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetAdapterNum.setDescription('The fabric target Adapter number')
fab_target_number = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 3), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabTargetNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetNumber.setDescription('The fabric target number')
fab_target_wwn = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabTargetWWN.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetWWN.setDescription('The fabric target WWN number')
fab_target_port_wwn = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabTargetPortWWN.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetPortWWN.setDescription('The fabric target Port WWN number')
fab_target_alias_name = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 6), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabTargetAliasName.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetAliasName.setDescription('The fabric target Alias Name')
fab_target_type = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disk', 1), ('other', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabTargetType.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetType.setDescription('The fabric target Type disk - other ')
fab_target_num_of_luns = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 2, 1, 8), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabTargetNumOfLuns.setStatus('mandatory')
if mibBuilder.loadTexts:
fabTargetNumOfLuns.setDescription('The number of luns on the target')
fab_lun_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3))
if mibBuilder.loadTexts:
fabLunTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunTable.setDescription('Table containing information for all Luns ')
fab_lun_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'), (0, 'NETSERVER-MIB', 'fabLunIndex'))
if mibBuilder.loadTexts:
fabLunEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunEntry.setDescription('Entry for each Lun')
fab_lun_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunIndex.setDescription('Unique Lun identifier')
fab_lun_number = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 2), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunNumber.setDescription(' Lun Number ')
fab_lun_adpt_number = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 3), u08_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunAdptNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunAdptNumber.setDescription('The adapter number for the lun')
fab_lun_tar_number = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 4), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunTarNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunTarNumber.setDescription('The Target number for the lun')
fab_lun_wwn = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 5), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunWWN.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunWWN.setDescription('The worldwide number for the lun')
fab_lun_type = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 6), u08_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunType.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunType.setDescription('The type of the lun')
fab_lun_size = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunSize.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunSize.setDescription('The size of the lun')
fab_lun_map = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 3, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('unmapped', 0), ('mapped', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunMap.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunMap.setDescription('Identifier for the lun mapping')
fab_lun_map_table = mib_table((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4))
if mibBuilder.loadTexts:
fabLunMapTable.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunMapTable.setDescription('Table containing mapping information for all Luns ')
fab_lun_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1)).setIndexNames((0, 'NETSERVER-MIB', 'fspIndex'), (0, 'NETSERVER-MIB', 'fabLunMapIndex'))
if mibBuilder.loadTexts:
fabLunMapEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunMapEntry.setDescription('Entry for each mapped Lun')
fab_lun_map_index = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunMapIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunMapIndex.setDescription('Unique Mapped Lun identifier')
fab_lun_m_number = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 2), u16_bits()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunMNumber.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunMNumber.setDescription(' Mapped Lun Number ')
fab_lun_alias = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunAlias.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunAlias.setDescription('The Alias name associated with the lun')
fab_lun_map_wwn = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunMapWWN.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunMapWWN.setDescription('The WWN associated with the lun')
fab_lun_label = mib_table_column((1, 3, 6, 1, 4, 1, 80, 3, 3, 4, 4, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('unlabelled', 0), ('labelled', 1), ('labelledactive', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
fabLunLabel.setStatus('mandatory')
if mibBuilder.loadTexts:
fabLunLabel.setDescription('The label of the lun')
trap_fs_full = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 1))
trap_fs_degradation = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 2))
trap_disk_updation = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 3))
trap_fc_adpt_link_failure = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 4))
trap_fc_adpt_link_up = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 5))
trap_fc_loss_of_link_failure = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 6))
trap_lun_disappear = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 7))
trap_lun_size_change = mib_identifier((1, 3, 6, 1, 4, 1, 80, 3, 4, 8))
trap_fs_full_msg = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 1, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFSFullMsg.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFSFullMsg.setDescription('Name of the file system which got full and for which fileSystemFull trap has to be sent.')
trap_fs_full_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 1, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFSFullTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFSFullTimeStamp.setDescription('Time at which file system identified by trapFSFullMsg got full.')
trap_fs_degradation_msg = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 2, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFSDegradationMsg.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFSDegradationMsg.setDescription('Name of the file system which got degraded and for which fileSystemDegradation trap has to be sent.')
trap_fs_degradation_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 2, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFSDegradationTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFSDegradationTimeStamp.setDescription('Time at which file system identified by trapFSDegradationMsg got degraded.')
trap_disk_msg = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 3, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapDiskMsg.setStatus('mandatory')
if mibBuilder.loadTexts:
trapDiskMsg.setDescription('Name of the disk which got removed from the system and for which diskStackUpdation trap has to be sent.')
trap_disk_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 3, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapDiskTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts:
trapDiskTimeStamp.setDescription('Time at which disk identified by trapDiskIndex was added/removed.')
trap_fc_adpt_link_failure_msg = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 4, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFCAdptLinkFailureMsg.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFCAdptLinkFailureMsg.setDescription('Name of the fibre channel adapter on which link failure occured.')
trap_fc_adpt_link_failure_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 4, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFCAdptLinkFailureTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFCAdptLinkFailureTimeStamp.setDescription('Time at which the fibre channel adapter link failure occured.')
trap_fc_adpt_link_up_msg = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 5, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFCAdptLinkUpMsg.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFCAdptLinkUpMsg.setDescription('Name of the fibre channel adapter on which link up occured.')
trap_fc_adpt_link_up_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 5, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFCAdptLinkUpTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFCAdptLinkUpTimeStamp.setDescription('Time at which the fibre channel adapter link up occured.')
trap_fc_loss_of_link_failure_msg = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 6, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFCLossOfLinkFailureMsg.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFCLossOfLinkFailureMsg.setDescription('Name of the SD device which had complete loss of link.')
trap_fc_loss_of_link_failure_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 6, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapFCLossOfLinkFailureTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts:
trapFCLossOfLinkFailureTimeStamp.setDescription('Time at which complete loss of link occured.')
trap_lun_disappear_msg = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 7, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapLunDisappearMsg.setStatus('mandatory')
if mibBuilder.loadTexts:
trapLunDisappearMsg.setDescription('Mapped lun which disappeared')
trap_lun_disappear_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 7, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapLunDisappearTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts:
trapLunDisappearTimeStamp.setDescription('Time at which mapped lun disappeared')
trap_lun_size_change_msg = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 8, 1), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapLunSizeChangeMsg.setStatus('mandatory')
if mibBuilder.loadTexts:
trapLunSizeChangeMsg.setDescription('Mapped lun whose lun size changed')
trap_lun_size_change_time_stamp = mib_scalar((1, 3, 6, 1, 4, 1, 80, 3, 4, 8, 2), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
trapLunSizeChangeTimeStamp.setStatus('mandatory')
if mibBuilder.loadTexts:
trapLunSizeChangeTimeStamp.setDescription('Time at which mapped lun size changed')
file_system_full_trap = notification_type((1, 3, 6, 1, 4, 1, 80) + (0, 1)).setObjects(('NETSERVER-MIB', 'trapFSFullMsg'), ('NETSERVER-MIB', 'trapFSFullTimeStamp'))
if mibBuilder.loadTexts:
fileSystemFullTrap.setDescription('Trap indicating that a file system got full.')
if mibBuilder.loadTexts:
fileSystemFullTrap.setReference('None')
file_system_degradation_trap = notification_type((1, 3, 6, 1, 4, 1, 80) + (0, 2)).setObjects(('NETSERVER-MIB', 'trapFSDegradationMsg'), ('NETSERVER-MIB', 'trapFSDegradationTimeStamp'))
if mibBuilder.loadTexts:
fileSystemDegradationTrap.setDescription('Trap indicating that a file system got degradated.')
if mibBuilder.loadTexts:
fileSystemDegradationTrap.setReference('None')
disk_stack_updation_trap = notification_type((1, 3, 6, 1, 4, 1, 80) + (0, 3)).setObjects(('NETSERVER-MIB', 'trapDiskMsg'), ('NETSERVER-MIB', 'trapDiskTimeStamp'))
if mibBuilder.loadTexts:
diskStackUpdationTrap.setDescription('Trap indicating that a disk was removed.')
if mibBuilder.loadTexts:
diskStackUpdationTrap.setReference('None')
fc_link_failure_trap = notification_type((1, 3, 6, 1, 4, 1, 80) + (0, 4)).setObjects(('NETSERVER-MIB', 'trapFCAdptLinkFailureMsg'), ('NETSERVER-MIB', 'trapFCAdptLinkFailureTimeStamp'))
if mibBuilder.loadTexts:
fcLinkFailureTrap.setDescription('Trap indicating that a adapter link failure occured.')
if mibBuilder.loadTexts:
fcLinkFailureTrap.setReference('None')
fc_link_up_trap = notification_type((1, 3, 6, 1, 4, 1, 80) + (0, 5)).setObjects(('NETSERVER-MIB', 'trapFCAdptLinkUpMsg'), ('NETSERVER-MIB', 'trapFCAdptLinkUpTimeStamp'))
if mibBuilder.loadTexts:
fcLinkUpTrap.setDescription('Trap indicating that a adapter link up occured.')
if mibBuilder.loadTexts:
fcLinkUpTrap.setReference('None')
fc_complete_loss_trap = notification_type((1, 3, 6, 1, 4, 1, 80) + (0, 6)).setObjects(('NETSERVER-MIB', 'trapFCLossOfLinkFailureMsg'), ('NETSERVER-MIB', 'trapFCLossOfLinkFailureTimeStamp'))
if mibBuilder.loadTexts:
fcCompleteLossTrap.setDescription('Trap indicating that complete loss of link occured.')
if mibBuilder.loadTexts:
fcCompleteLossTrap.setReference('None')
lun_disappear_trap = notification_type((1, 3, 6, 1, 4, 1, 80) + (0, 7)).setObjects(('NETSERVER-MIB', 'trapLunDisappearMsg'), ('NETSERVER-MIB', 'trapLunDisappearTimeStamp'))
if mibBuilder.loadTexts:
lunDisappearTrap.setDescription('Trap indicating that a mapped lun disappeared.')
if mibBuilder.loadTexts:
lunDisappearTrap.setReference('None')
lun_size_change_trap = notification_type((1, 3, 6, 1, 4, 1, 80) + (0, 8)).setObjects(('NETSERVER-MIB', 'trapLunSizeChangeMsg'), ('NETSERVER-MIB', 'trapLunSizeChangeTimeStamp'))
if mibBuilder.loadTexts:
lunSizeChangeTrap.setDescription('Trap indicating that lun size change occured on a mapped lun.')
if mibBuilder.loadTexts:
lunSizeChangeTrap.setReference('None')
host = mib_identifier((1, 3, 6, 1, 2, 1, 25))
hr_system = mib_identifier((1, 3, 6, 1, 2, 1, 25, 1))
hr_storage = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2))
hr_device = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3))
class Boolean(Integer32):
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('true', 1), ('false', 2))
class Kbytes(Integer32):
subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 2147483647)
class Productid(ObjectIdentifier):
pass
class Dateandtime(OctetString):
subtype_spec = OctetString.subtypeSpec + constraints_union(value_size_constraint(8, 8), value_size_constraint(11, 11))
class Internationaldisplaystring(OctetString):
pass
hr_system_uptime = mib_scalar((1, 3, 6, 1, 2, 1, 25, 1, 1), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrSystemUptime.setStatus('mandatory')
if mibBuilder.loadTexts:
hrSystemUptime.setDescription('The amount of time since this host was last initialized. Note that this is different from sysUpTime in MIB-II [3] because sysUpTime is the uptime of the network management portion of the system.')
hr_system_date = mib_scalar((1, 3, 6, 1, 2, 1, 25, 1, 2), date_and_time()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hrSystemDate.setStatus('mandatory')
if mibBuilder.loadTexts:
hrSystemDate.setDescription("The host's notion of the local date and time of day.")
hr_system_initial_load_device = mib_scalar((1, 3, 6, 1, 2, 1, 25, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hrSystemInitialLoadDevice.setStatus('mandatory')
if mibBuilder.loadTexts:
hrSystemInitialLoadDevice.setDescription('The index of the hrDeviceEntry for the device from which this host is configured to load its initial operating system configuration.')
hr_system_initial_load_parameters = mib_scalar((1, 3, 6, 1, 2, 1, 25, 1, 4), international_display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hrSystemInitialLoadParameters.setStatus('mandatory')
if mibBuilder.loadTexts:
hrSystemInitialLoadParameters.setDescription('This object contains the parameters (e.g. a pathname and parameter) supplied to the load device when requesting the initial operating system configuration from that device.')
hr_system_num_users = mib_scalar((1, 3, 6, 1, 2, 1, 25, 1, 5), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrSystemNumUsers.setStatus('mandatory')
if mibBuilder.loadTexts:
hrSystemNumUsers.setDescription('The number of user sessions for which this host is storing state information. A session is a collection of processes requiring a single act of user authentication and possibly subject to collective job control.')
hr_system_processes = mib_scalar((1, 3, 6, 1, 2, 1, 25, 1, 6), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrSystemProcesses.setStatus('mandatory')
if mibBuilder.loadTexts:
hrSystemProcesses.setDescription('The number of process contexts currently loaded or running on this system.')
hr_system_max_processes = mib_scalar((1, 3, 6, 1, 2, 1, 25, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrSystemMaxProcesses.setStatus('mandatory')
if mibBuilder.loadTexts:
hrSystemMaxProcesses.setDescription('The maximum number of process contexts this system can support. If there is no fixed maximum, the value should be zero. On systems that have a fixed maximum, this object can help diagnose failures that occur when this maximum is reached.')
hr_storage_types = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2, 1))
hr_storage_other = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 1))
hr_storage_ram = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 2))
hr_storage_virtual_memory = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 3))
hr_storage_fixed_disk = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 4))
hr_storage_removable_disk = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 5))
hr_storage_floppy_disk = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 6))
hr_storage_compact_disc = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 7))
hr_storage_ram_disk = mib_identifier((1, 3, 6, 1, 2, 1, 25, 2, 1, 8))
hr_memory_size = mib_scalar((1, 3, 6, 1, 2, 1, 25, 2, 2), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrMemorySize.setStatus('mandatory')
if mibBuilder.loadTexts:
hrMemorySize.setDescription('The amount of physical main memory contained by the host.')
hr_storage_table = mib_table((1, 3, 6, 1, 2, 1, 25, 2, 3))
if mibBuilder.loadTexts:
hrStorageTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hrStorageTable.setDescription("The (conceptual) table of logical storage areas on the host. An entry shall be placed in the storage table for each logical area of storage that is allocated and has fixed resource limits. The amount of storage represented in an entity is the amount actually usable by the requesting entity, and excludes loss due to formatting or file system reference information. These entries are associated with logical storage areas, as might be seen by an application, rather than physical storage entities which are typically seen by an operating system. Storage such as tapes and floppies without file systems on them are typically not allocated in chunks by the operating system to requesting applications, and therefore shouldn't appear in this table. Examples of valid storage for this table include disk partitions, file systems, ram (for some architectures this is further segmented into regular memory, extended memory, and so on), backing store for virtual memory (`swap space'). This table is intended to be a useful diagnostic for `out of memory' and `out of buffers' types of failures. In addition, it can be a useful performance monitoring tool for tracking memory, disk, or buffer usage.")
hr_storage_entry = mib_table_row((1, 3, 6, 1, 2, 1, 25, 2, 3, 1)).setIndexNames((0, 'NETSERVER-MIB', 'hrStorageIndex'))
if mibBuilder.loadTexts:
hrStorageEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hrStorageEntry.setDescription('A (conceptual) entry for one logical storage area on the host. As an example, an instance of the hrStorageType object might be named hrStorageType.3')
hr_storage_index = mib_table_column((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrStorageIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
hrStorageIndex.setDescription('A unique value for each logical storage area contained by the host.')
hr_storage_type = mib_table_column((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 2), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrStorageType.setStatus('mandatory')
if mibBuilder.loadTexts:
hrStorageType.setDescription('The type of storage represented by this entry.')
hr_storage_descr = mib_table_column((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 3), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrStorageDescr.setStatus('mandatory')
if mibBuilder.loadTexts:
hrStorageDescr.setDescription('A description of the type and instance of the storage described by this entry.')
hr_storage_allocation_units = mib_table_column((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrStorageAllocationUnits.setStatus('mandatory')
if mibBuilder.loadTexts:
hrStorageAllocationUnits.setDescription('The size, in bytes, of the data objects allocated from this pool. If this entry is monitoring sectors, blocks, buffers, or packets, for example, this number will commonly be greater than one. Otherwise this number will typically be one.')
hr_storage_size = mib_table_column((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hrStorageSize.setStatus('mandatory')
if mibBuilder.loadTexts:
hrStorageSize.setDescription('The size of the storage represented by this entry, in units of hrStorageAllocationUnits.')
hr_storage_used = mib_table_column((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrStorageUsed.setStatus('mandatory')
if mibBuilder.loadTexts:
hrStorageUsed.setDescription('The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.')
hr_storage_allocation_failures = mib_table_column((1, 3, 6, 1, 2, 1, 25, 2, 3, 1, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrStorageAllocationFailures.setStatus('mandatory')
if mibBuilder.loadTexts:
hrStorageAllocationFailures.setDescription('The number of requests for storage represented by this entry that could not be honored due to not enough storage. It should be noted that as this object has a SYNTAX of Counter, that it does not have a defined initial value. However, it is recommended that this object be initialized to zero.')
hr_device_types = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1))
hr_device_other = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 1))
hr_device_unknown = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 2))
hr_device_processor = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 3))
hr_device_network = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 4))
hr_device_printer = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 5))
hr_device_disk_storage = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 6))
hr_device_video = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 10))
hr_device_audio = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 11))
hr_device_coprocessor = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 12))
hr_device_keyboard = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 13))
hr_device_modem = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 14))
hr_device_parallel_port = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 15))
hr_device_pointing = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 16))
hr_device_serial_port = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 17))
hr_device_tape = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 18))
hr_device_clock = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 19))
hr_device_volatile_memory = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 20))
hr_device_non_volatile_memory = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 1, 21))
hr_device_table = mib_table((1, 3, 6, 1, 2, 1, 25, 3, 2))
if mibBuilder.loadTexts:
hrDeviceTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDeviceTable.setDescription('The (conceptual) table of devices contained by the host.')
hr_device_entry = mib_table_row((1, 3, 6, 1, 2, 1, 25, 3, 2, 1)).setIndexNames((0, 'NETSERVER-MIB', 'hrDeviceIndex'))
if mibBuilder.loadTexts:
hrDeviceEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDeviceEntry.setDescription('A (conceptual) entry for one device contained by the host. As an example, an instance of the hrDeviceType object might be named hrDeviceType.3')
hr_device_index = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDeviceIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDeviceIndex.setDescription('A unique value for each device contained by the host. The value for each device must remain constant at least from one re-initialization of the agent to the next re-initialization.')
hr_device_type = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 2), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDeviceType.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDeviceType.setDescription("An indication of the type of device. If this value is `hrDeviceProcessor { hrDeviceTypes 3 }' then an entry exists in the hrProcessorTable which corresponds to this device. If this value is `hrDeviceNetwork { hrDeviceTypes 4 }', then an entry exists in the hrNetworkTable which corresponds to this device. If this value is `hrDevicePrinter { hrDeviceTypes 5 }', then an entry exists in the hrPrinterTable which corresponds to this device. If this value is `hrDeviceDiskStorage { hrDeviceTypes 6 }', then an entry exists in the hrDiskStorageTable which corresponds to this device.")
hr_device_descr = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDeviceDescr.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDeviceDescr.setDescription("A textual description of this device, including the device's manufacturer and revision, and optionally, its serial number.")
hr_device_id = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 4), product_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDeviceID.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDeviceID.setDescription('The product ID for this device.')
hr_device_status = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('unknown', 1), ('running', 2), ('warning', 3), ('testing', 4), ('down', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDeviceStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDeviceStatus.setDescription("The current operational state of the device described by this row of the table. A value unknown(1) indicates that the current state of the device is unknown. running(2) indicates that the device is up and running and that no unusual error conditions are known. The warning(3) state indicates that agent has been informed of an unusual error condition by the operational software (e.g., a disk device driver) but that the device is still 'operational'. An example would be high number of soft errors on a disk. A value of testing(4), indicates that the device is not available for use because it is in the testing state. The state of down(5) is used only when the agent has been informed that the device is not available for any use.")
hr_device_errors = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 2, 1, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDeviceErrors.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDeviceErrors.setDescription('The number of errors detected on this device. It should be noted that as this object has a SYNTAX of Counter, that it does not have a defined initial value. However, it is recommended that this object be initialized to zero.')
hr_processor_table = mib_table((1, 3, 6, 1, 2, 1, 25, 3, 3))
if mibBuilder.loadTexts:
hrProcessorTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hrProcessorTable.setDescription("The (conceptual) table of processors contained by the host. Note that this table is potentially sparse: a (conceptual) entry exists only if the correspondent value of the hrDeviceType object is `hrDeviceProcessor'.")
hr_processor_entry = mib_table_row((1, 3, 6, 1, 2, 1, 25, 3, 3, 1)).setIndexNames((0, 'NETSERVER-MIB', 'hrDeviceIndex'))
if mibBuilder.loadTexts:
hrProcessorEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hrProcessorEntry.setDescription('A (conceptual) entry for one processor contained by the host. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrProcessorEntry. As an example of how objects in this table are named, an instance of the hrProcessorFrwID object might be named hrProcessorFrwID.3')
hr_processor_frw_id = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 3, 1, 1), product_id()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrProcessorFrwID.setStatus('mandatory')
if mibBuilder.loadTexts:
hrProcessorFrwID.setDescription('The product ID of the firmware associated with the processor.')
hr_processor_load = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 3, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrProcessorLoad.setStatus('mandatory')
if mibBuilder.loadTexts:
hrProcessorLoad.setDescription('The average, over the last minute, of the percentage of time that this processor was not idle.')
hr_network_table = mib_table((1, 3, 6, 1, 2, 1, 25, 3, 4))
if mibBuilder.loadTexts:
hrNetworkTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hrNetworkTable.setDescription("The (conceptual) table of network devices contained by the host. Note that this table is potentially sparse: a (conceptual) entry exists only if the correspondent value of the hrDeviceType object is `hrDeviceNetwork'.")
hr_network_entry = mib_table_row((1, 3, 6, 1, 2, 1, 25, 3, 4, 1)).setIndexNames((0, 'NETSERVER-MIB', 'hrDeviceIndex'))
if mibBuilder.loadTexts:
hrNetworkEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hrNetworkEntry.setDescription('A (conceptual) entry for one network device contained by the host. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrNetworkEntry. As an example of how objects in this table are named, an instance of the hrNetworkIfIndex object might be named hrNetworkIfIndex.3')
hr_network_if_index = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 4, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrNetworkIfIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
hrNetworkIfIndex.setDescription('The value of ifIndex which corresponds to this network device.')
hr_printer_table = mib_table((1, 3, 6, 1, 2, 1, 25, 3, 5))
if mibBuilder.loadTexts:
hrPrinterTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPrinterTable.setDescription("The (conceptual) table of printers local to the host. Note that this table is potentially sparse: a (conceptual) entry exists only if the correspondent value of the hrDeviceType object is `hrDevicePrinter'.")
hr_printer_entry = mib_table_row((1, 3, 6, 1, 2, 1, 25, 3, 5, 1)).setIndexNames((0, 'NETSERVER-MIB', 'hrDeviceIndex'))
if mibBuilder.loadTexts:
hrPrinterEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPrinterEntry.setDescription('A (conceptual) entry for one printer local to the host. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrPrinterEntry. As an example of how objects in this table are named, an instance of the hrPrinterStatus object might be named hrPrinterStatus.3')
hr_printer_status = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 5, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('idle', 3), ('printing', 4), ('warmup', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrPrinterStatus.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPrinterStatus.setDescription('The current status of this printer device. When in the idle(1), printing(2), or warmup(3) state, the corresponding hrDeviceStatus should be running(2) or warning(3). When in the unknown state, the corresponding hrDeviceStatus should be unknown(1).')
hr_printer_detected_error_state = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 5, 1, 2), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrPrinterDetectedErrorState.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPrinterDetectedErrorState.setDescription('This object represents any error conditions detected by the printer. The error conditions are encoded as bits in an octet string, with the following definitions: Condition Bit # hrDeviceStatus lowPaper 0 warning(3) noPaper 1 down(5) lowToner 2 warning(3) noToner 3 down(5) doorOpen 4 down(5) jammed 5 down(5) offline 6 down(5) serviceRequested 7 warning(3) If multiple conditions are currently detected and the hrDeviceStatus would not otherwise be unknown(1) or testing(4), the hrDeviceStatus shall correspond to the worst state of those indicated, where down(5) is worse than warning(3) which is worse than running(2). Bits are numbered starting with the most significant bit of the first byte being bit 0, the least significant bit of the first byte being bit 7, the most significant bit of the second byte being bit 8, and so on. A one bit encodes that the condition was detected, while a zero bit encodes that the condition was not detected. This object is useful for alerting an operator to specific warning or error conditions that may occur, especially those requiring human intervention.')
hr_disk_storage_table = mib_table((1, 3, 6, 1, 2, 1, 25, 3, 6))
if mibBuilder.loadTexts:
hrDiskStorageTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDiskStorageTable.setDescription("The (conceptual) table of long-term storage devices contained by the host. In particular, disk devices accessed remotely over a network are not included here. Note that this table is potentially sparse: a (conceptual) entry exists only if the correspondent value of the hrDeviceType object is `hrDeviceDiskStorage'.")
hr_disk_storage_entry = mib_table_row((1, 3, 6, 1, 2, 1, 25, 3, 6, 1)).setIndexNames((0, 'NETSERVER-MIB', 'hrDeviceIndex'))
if mibBuilder.loadTexts:
hrDiskStorageEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDiskStorageEntry.setDescription('A (conceptual) entry for one long-term storage device contained by the host. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrDiskStorageEntry. As an example, an instance of the hrDiskStorageCapacity object might be named hrDiskStorageCapacity.3')
hr_disk_storage_access = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 6, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('readWrite', 1), ('readOnly', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDiskStorageAccess.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDiskStorageAccess.setDescription('An indication if this long-term storage device is readable and writable or only readable. This should reflect the media type, any write-protect mechanism, and any device configuration that affects the entire device.')
hr_disk_storage_media = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('other', 1), ('unknown', 2), ('hardDisk', 3), ('floppyDisk', 4), ('opticalDiskROM', 5), ('opticalDiskWORM', 6), ('opticalDiskRW', 7), ('ramDisk', 8)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDiskStorageMedia.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDiskStorageMedia.setDescription('An indication of the type of media used in this long-term storage device.')
hr_disk_storage_removeble = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 6, 1, 3), boolean()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDiskStorageRemoveble.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDiskStorageRemoveble.setDescription('Denotes whether or not the disk media may be removed from the drive.')
hr_disk_storage_capacity = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 6, 1, 4), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrDiskStorageCapacity.setStatus('mandatory')
if mibBuilder.loadTexts:
hrDiskStorageCapacity.setDescription('The total size for this long-term storage device.')
hr_partition_table = mib_table((1, 3, 6, 1, 2, 1, 25, 3, 7))
if mibBuilder.loadTexts:
hrPartitionTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPartitionTable.setDescription('The (conceptual) table of partitions for long-term storage devices contained by the host. In particular, partitions accessed remotely over a network are not included here.')
hr_partition_entry = mib_table_row((1, 3, 6, 1, 2, 1, 25, 3, 7, 1)).setIndexNames((0, 'NETSERVER-MIB', 'hrDeviceIndex'), (0, 'NETSERVER-MIB', 'hrPartitionIndex'))
if mibBuilder.loadTexts:
hrPartitionEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPartitionEntry.setDescription('A (conceptual) entry for one partition. The hrDeviceIndex in the index represents the entry in the hrDeviceTable that corresponds to the hrPartitionEntry. As an example of how objects in this table are named, an instance of the hrPartitionSize object might be named hrPartitionSize.3.1')
hr_partition_index = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrPartitionIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPartitionIndex.setDescription('A unique value for each partition on this long- term storage device. The value for each long-term storage device must remain constant at least from one re-initialization of the agent to the next re- initialization.')
hr_partition_label = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 2), international_display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrPartitionLabel.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPartitionLabel.setDescription('A textual description of this partition.')
hr_partition_id = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 3), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrPartitionID.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPartitionID.setDescription('A descriptor which uniquely represents this partition to the responsible operating system. On some systems, this might take on a binary representation.')
hr_partition_size = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 4), k_bytes()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrPartitionSize.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPartitionSize.setDescription('The size of this partition.')
hr_partition_fs_index = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 7, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrPartitionFSIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
hrPartitionFSIndex.setDescription('The index of the file system mounted on this partition. If no file system is mounted on this partition, then this value shall be zero. Note that multiple partitions may point to one file system, denoting that that file system resides on those partitions. Multiple file systems may not reside on one partition.')
hr_fs_table = mib_table((1, 3, 6, 1, 2, 1, 25, 3, 8))
if mibBuilder.loadTexts:
hrFSTable.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSTable.setDescription("The (conceptual) table of file systems local to this host or remotely mounted from a file server. File systems that are in only one user's environment on a multi-user system will not be included in this table.")
hr_fs_entry = mib_table_row((1, 3, 6, 1, 2, 1, 25, 3, 8, 1)).setIndexNames((0, 'NETSERVER-MIB', 'hrFSIndex'))
if mibBuilder.loadTexts:
hrFSEntry.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSEntry.setDescription("A (conceptual) entry for one file system local to this host or remotely mounted from a file server. File systems that are in only one user's environment on a multi-user system will not be included in this table. As an example of how objects in this table are named, an instance of the hrFSMountPoint object might be named hrFSMountPoint.3")
hr_fs_types = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9))
hr_fs_other = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 1))
hr_fs_unknown = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 2))
hr_fs_berkeley_ffs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 3))
hr_fs_sys5_fs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 4))
hr_fs_fat = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 5))
hr_fshpfs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 6))
hr_fshfs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 7))
hr_fsmfs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 8))
hr_fsntfs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 9))
hr_fsv_node = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 10))
hr_fs_journaled = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 11))
hr_f_siso9660 = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 12))
hr_fs_rock_ridge = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 13))
hr_fsnfs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 14))
hr_fs_netware = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 15))
hr_fsafs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 16))
hr_fsdfs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 17))
hr_fs_appleshare = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 18))
hr_fsrfs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 19))
hr_fsdgcfs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 20))
hr_fsbfs = mib_identifier((1, 3, 6, 1, 2, 1, 25, 3, 9, 21))
hr_fs_index = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrFSIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSIndex.setDescription('A unique value for each file system local to this host. The value for each file system must remain constant at least from one re-initialization of the agent to the next re-initialization.')
hr_fs_mount_point = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 2), international_display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrFSMountPoint.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSMountPoint.setDescription('The path name of the root of this file system.')
hr_fs_remote_mount_point = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 3), international_display_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrFSRemoteMountPoint.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSRemoteMountPoint.setDescription('A description of the name and/or address of the server that this file system is mounted from. This may also include parameters such as the mount point on the remote file system. If this is not a remote file system, this string should have a length of zero.')
hr_fs_type = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 4), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrFSType.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSType.setDescription('The value of this object identifies the type of this file system.')
hr_fs_access = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('readWrite', 1), ('readOnly', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrFSAccess.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSAccess.setDescription('An indication if this file system is logically configured by the operating system to be readable and writable or only readable. This does not represent any local access-control policy, except one that is applied to the file system as a whole.')
hr_fs_bootable = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 6), boolean()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrFSBootable.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSBootable.setDescription('A flag indicating whether this file system is bootable.')
hr_fs_storage_index = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
hrFSStorageIndex.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSStorageIndex.setDescription('The index of the hrStorageEntry that represents information about this file system. If there is no such information available, then this value shall be zero. The relevant storage entry will be useful in tracking the percent usage of this file system and diagnosing errors that may occur when it runs out of space.')
hr_fs_last_full_backup_date = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 8), date_and_time()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hrFSLastFullBackupDate.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSLastFullBackupDate.setDescription("The last date at which this complete file system was copied to another storage device for backup. This information is useful for ensuring that backups are being performed regularly. If this information is not known, then this variable shall have the value corresponding to January 1, year 0000, 00:00:00.0, which is encoded as (hex)'00 00 01 01 00 00 00 00'.")
hr_fs_last_partial_backup_date = mib_table_column((1, 3, 6, 1, 2, 1, 25, 3, 8, 1, 9), date_and_time()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hrFSLastPartialBackupDate.setStatus('mandatory')
if mibBuilder.loadTexts:
hrFSLastPartialBackupDate.setDescription("The last date at which a portion of this file system was copied to another storage device for backup. This information is useful for ensuring that backups are being performed regularly. If this information is not known, then this variable shall have the value corresponding to January 1, year 0000, 00:00:00.0, which is encoded as (hex)'00 00 01 01 00 00 00 00'.")
mibBuilder.exportSymbols('NETSERVER-MIB', fabAdptEntry=fabAdptEntry, diskStackUpdationTrap=diskStackUpdationTrap, trapLunDisappear=trapLunDisappear, npIndex=npIndex, npIfEntry=npIfEntry, BusType=BusType, trapFCAdptLinkUpMsg=trapFCAdptLinkUpMsg, fpDNLCHit=fpDNLCHit, fabLunMapEntry=fabLunMapEntry, hrFSTypes=hrFSTypes, npICMPOutMsgs=npICMPOutMsgs, ldDriveErrors=ldDriveErrors, fpDNLCConflict=fpDNLCConflict, npSMBRcvd=npSMBRcvd, hrDeviceNonVolatileMemory=hrDeviceNonVolatileMemory, fpLFSPurges=fpLFSPurges, npICMPInTimestampReps=npICMPInTimestampReps, hrStorageTable=hrStorageTable, hrFSIndex=hrFSIndex, fpPAGECachelistcnt=fpPAGECachelistcnt, npUDPEntry=npUDPEntry, netServer=netServer, hrPrinterEntry=hrPrinterEntry, fabAdptTable=fabAdptTable, RebuildFlag=RebuildFlag, ldMediaErrors=ldMediaErrors, fpHTFS=fpHTFS, fpLFSReaddirPluses=fpLFSReaddirPluses, npTCPActiveOpens=npTCPActiveOpens, fileSystemDegradationTrap=fileSystemDegradationTrap, fspBusyCount=fspBusyCount, npIPOutNoRoutes=npIPOutNoRoutes, hrFSDFS=hrFSDFS, fspTable=fspTable, npSMBCloses=npSMBCloses, fpLFSLinks=fpLFSLinks, hrFSVNode=hrFSVNode, fabIntLine=fabIntLine, npICMPOutTimestampReps=npICMPOutTimestampReps, npIfOutUcastPkts=npIfOutUcastPkts, fpPAGEDirtydlistcnt=fpPAGEDirtydlistcnt, fpPAGEWritehit=fpPAGEWritehit, trapFCAdptLinkUp=trapFCAdptLinkUp, npIPRoutingDiscards=npIPRoutingDiscards, fabTargetTable=fabTargetTable, fabLunMapIndex=fabLunMapIndex, npEntry=npEntry, fabTargetEntry=fabTargetEntry, hrPartitionTable=hrPartitionTable, npIfInErrors=npIfInErrors, npUDPNoPorts=npUDPNoPorts, fabLunNumber=fabLunNumber, axSP=axSP, ldWriteIO=ldWriteIO, fpLFSEntry=fpLFSEntry, fpPAGEZcbreak=fpPAGEZcbreak, npSMBWrites=npSMBWrites, npTCPRetransSegs=npTCPRetransSegs, npTable=npTable, axProductInfo=axProductInfo, npIPInDiscards=npIPInDiscards, axFP=axFP, trapFSDegradation=trapFSDegradation, hrStorageVirtualMemory=hrStorageVirtualMemory, hrFSAFS=hrFSAFS, fpInodeTable=fpInodeTable, fabLunMap=fabLunMap, fpLFSGetattrs=fpLFSGetattrs, fabRaid=fabRaid, fpDNLCHashsz=fpDNLCHashsz, npIfInDiscards=npIfInDiscards, npTCPCurrEstab=npTCPCurrEstab, fpLFSClears=fpLFSClears, fpBUFBufsize=fpBUFBufsize, hrStorageIndex=hrStorageIndex, hrFSUnknown=hrFSUnknown, fabTargetIndex=fabTargetIndex, npIPInUnknownProtos=npIPInUnknownProtos, KBytes=KBytes, fcLinkUpTrap=fcLinkUpTrap, fpLFSCreates=fpLFSCreates, hrStorageRam=hrStorageRam, fabSlotNum=fabSlotNum, npIPReasmReqds=npIPReasmReqds, npICMPOutEchos=npICMPOutEchos, ldSectorWrites=ldSectorWrites, hrDiskStorageRemoveble=hrDiskStorageRemoveble, DateAndTime=DateAndTime, Boolean=Boolean, fpFSEntry=fpFSEntry, npIdleCount=npIdleCount, hrPartitionLabel=hrPartitionLabel, npSMBTable=npSMBTable, hrSystem=hrSystem, hrDeviceProcessor=hrDeviceProcessor, fabLunType=fabLunType, hrNetworkIfIndex=hrNetworkIfIndex, fspEntry=fspEntry, hrPartitionIndex=hrPartitionIndex, ProductID=ProductID, trapFCLossOfLinkFailure=trapFCLossOfLinkFailure, npICMPTable=npICMPTable, hrFSBFS=hrFSBFS, fabLunEntry=fabLunEntry, npICMPOutAddrMasks=npICMPOutAddrMasks, trapDiskMsg=trapDiskMsg, hrMemorySize=hrMemorySize, hrFSAppleshare=hrFSAppleshare, hrPartitionID=hrPartitionID, axFSP=axFSP, hrFSNetware=hrFSNetware, fpGoneinodes=fpGoneinodes, fcCompleteLossTrap=fcCompleteLossTrap, hrFSMountPoint=hrFSMountPoint, fpHrFSIndex=fpHrFSIndex, hrStorageTypes=hrStorageTypes, hrStorageSize=hrStorageSize, npICMPOutAddrMaskReps=npICMPOutAddrMaskReps, fpLFSMkdirs=fpLFSMkdirs, npIPEntry=npIPEntry, InternationalDisplayString=InternationalDisplayString, hrDeviceVideo=hrDeviceVideo, npIPInReceives=npIPInReceives, fpPAGECachemiss=fpPAGECachemiss, fabDeviceId=fabDeviceId, fpDNLCSEntry=fpDNLCSEntry, npIfSpeed=npIfSpeed, npIPDefaultTTL=npIPDefaultTTL, npSMBBytesRcvd=npSMBBytesRcvd, fabTargetNumOfLuns=fabTargetNumOfLuns, hrSystemUptime=hrSystemUptime, U08Bits=U08Bits, npNFSDCounts=npNFSDCounts, auspex=auspex, fpLFSMounts=fpLFSMounts, hrFSiso9660=hrFSiso9660, fpPAGEOutscan=fpPAGEOutscan, npTCPRtoAlgorithm=npTCPRtoAlgorithm, npIfInUnknownProto=npIfInUnknownProto, npTCPTable=npTCPTable, fpPAGEFsflushscan=fpPAGEFsflushscan, fabTargetPortWWN=fabTargetPortWWN, fabAdptNumber=fabAdptNumber, fabLunMapWWN=fabLunMapWWN, hrFSDGCFS=hrFSDGCFS, trapFSFull=trapFSFull, hrDeviceOther=hrDeviceOther, hrDiskStorageTable=hrDiskStorageTable, hrDeviceTable=hrDeviceTable, fabTargetNumber=fabTargetNumber, fpLFSRenames=fpLFSRenames, fpINODEIgetcalls=fpINODEIgetcalls, npTCPRtoMin=npTCPRtoMin, ldReadIO=ldReadIO, fpBUFLwrites=fpBUFLwrites, fpLFSNull=fpLFSNull, fpTotalinodes=fpTotalinodes, hrProcessorLoad=hrProcessorLoad, npSMBErrors=npSMBErrors, fpPageStatTable=fpPageStatTable, npIfOutDiscards=npIfOutDiscards, fpBufferStatTable=fpBufferStatTable, hrProcessorEntry=hrProcessorEntry, npTCPMaxConn=npTCPMaxConn, hrStorageAllocationUnits=hrStorageAllocationUnits, npIfOutErrors=npIfOutErrors, hrStorageFixedDisk=hrStorageFixedDisk, hrFSTable=hrFSTable, npTCPOutRsts=npTCPOutRsts, hrStorageType=hrStorageType, trapFCAdptLinkFailure=trapFCAdptLinkFailure, npICMPOutSrcQuenchs=npICMPOutSrcQuenchs, fpPAGETotalmem=fpPAGETotalmem, trapFSFullMsg=trapFSFullMsg, hrDeviceType=hrDeviceType, trapLunSizeChangeMsg=trapLunSizeChangeMsg, hrPrinterTable=hrPrinterTable, hrDeviceParallelPort=hrDeviceParallelPort, hrStorageUsed=hrStorageUsed, axNP=axNP, lunDisappearTrap=lunDisappearTrap, spRaid=spRaid, hrSystemInitialLoadDevice=hrSystemInitialLoadDevice, npICMPInTimeExcds=npICMPInTimeExcds, fpSyncinodes=fpSyncinodes, fpPageEntry=fpPageEntry, npICMPInErrors=npICMPInErrors, fabWWN=fabWWN, hrPartitionFSIndex=hrPartitionFSIndex, fpPAGEFsflushputpage=fpPAGEFsflushputpage, hrProcessorFrwID=hrProcessorFrwID, ldTotalTime=ldTotalTime, npIfOutOctets=npIfOutOctets, fpLFSCkpntoffs=fpLFSCkpntoffs, fpPAGEOutcnt=fpPAGEOutcnt, fpPAGECachehit=fpPAGECachehit, npIfInOctets=npIfInOctets, fabLogDevTable=fabLogDevTable, hrDiskStorageCapacity=hrDiskStorageCapacity, fpLFSFsstats=fpLFSFsstats, fabLunAlias=fabLunAlias, trapFCAdptLinkUpTimeStamp=trapFCAdptLinkUpTimeStamp, npIfOperStatus=npIfOperStatus, fabNumOfTargets=fabNumOfTargets, fpLFSCkpntons=fpLFSCkpntons, fpFSIndex=fpFSIndex, fpLFSUMounts=fpLFSUMounts, fpLFSRemoves=fpLFSRemoves, RaidLevel=RaidLevel, VendorName=VendorName, hrFSOther=hrFSOther, fileSystemFullTrap=fileSystemFullTrap, npICMPOutParmProbs=npICMPOutParmProbs, hrFSRemoteMountPoint=hrFSRemoteMountPoint, hrDeviceClock=hrDeviceClock, hrFSEntry=hrFSEntry, npIPTable=npIPTable, trapLunDisappearTimeStamp=trapLunDisappearTimeStamp, hrFSAccess=hrFSAccess, npIfInUcastPkts=npIfInUcastPkts, fpLFSSymlinks=fpLFSSymlinks, hrFSNTFS=hrFSNTFS, hrFSType=hrFSType, fabType=fabType, ldIndex=ldIndex, npTCPInSegs=npTCPInSegs, npICMPInAddrMaskReps=npICMPInAddrMaskReps, fpPAGEOutputpage=fpPAGEOutputpage, axFab=axFab, npSMBEntry=npSMBEntry, hrFSNFS=hrFSNFS, hrFSHFS=hrFSHFS, hrFSLastFullBackupDate=hrFSLastFullBackupDate, npTCPAttemptFails=npTCPAttemptFails, npSMBBytesSent=npSMBBytesSent, fpBUFBcount=fpBUFBcount, fpLFSSetattrs=fpLFSSetattrs, hrFSMFS=hrFSMFS, npICMPInEchoReps=npICMPInEchoReps, hrStorageDescr=hrStorageDescr, npIPForwarding=npIPForwarding, npICMPInEchos=npICMPInEchos, hrDeviceErrors=hrDeviceErrors, npTCPPassiveOpens=npTCPPassiveOpens, fpFileSystemTable=fpFileSystemTable, hrDeviceDescr=hrDeviceDescr, fpFoundinodes=fpFoundinodes, hrDeviceUnknown=hrDeviceUnknown, hrProcessorTable=hrProcessorTable, npNFSDNJobs=npNFSDNJobs, fabRevisionId=fabRevisionId, hrFSBootable=hrFSBootable, trapFCAdptLinkFailureMsg=trapFCAdptLinkFailureMsg, hrDeviceNetwork=hrDeviceNetwork)
mibBuilder.exportSymbols('NETSERVER-MIB', hrDevicePointing=hrDevicePointing, fpPAGEFreelistcnt=fpPAGEFreelistcnt, axNumNPFSP=axNumNPFSP, npICMPOutTimestamps=npICMPOutTimestamps, npNFSTable=npNFSTable, npNFSDBusyCounts=npNFSDBusyCounts, hrDeviceTape=hrDeviceTape, hrDeviceTypes=hrDeviceTypes, hrDiskStorageEntry=hrDiskStorageEntry, npSMBOpens=npSMBOpens, hrStorageOther=hrStorageOther, hrPrinterDetectedErrorState=hrPrinterDetectedErrorState, fabLunTarNumber=fabLunTarNumber, npUDPOutDatagrams=npUDPOutDatagrams, fpLFSRmdirs=fpLFSRmdirs, fpBUFLreads=fpBUFLreads, fpCacheinodes=fpCacheinodes, fabIndex=fabIndex, npIPFragCreates=npIPFragCreates, fpBUFIOwaits=fpBUFIOwaits, npNFSEntry=npNFSEntry, lunSizeChangeTrap=lunSizeChangeTrap, fpBUFBreads=fpBUFBreads, fabTargetAliasName=fabTargetAliasName, hrPrinterStatus=hrPrinterStatus, hrDeviceVolatileMemory=hrDeviceVolatileMemory, hrFSFat=hrFSFat, fabLunTable=fabLunTable, npICMPInSrcQuenchs=npICMPInSrcQuenchs, npIPFragOKs=npIPFragOKs, fpLFSVersion=fpLFSVersion, trapDiskUpdation=trapDiskUpdation, hrStorageFloppyDisk=hrStorageFloppyDisk, fpLFSReleaseFs=fpLFSReleaseFs, trapFSDegradationTimeStamp=trapFSDegradationTimeStamp, fpLFSReaddirs=fpLFSReaddirs, fpBUFResid=fpBUFResid, fabLunMapTable=fabLunMapTable, hrStorageAllocationFailures=hrStorageAllocationFailures, npICMPOutErrors=npICMPOutErrors, hrFSRockRidge=hrFSRockRidge, fabLunMNumber=fabLunMNumber, fpLFSReads=fpLFSReads, fpLFSFsinfo=fpLFSFsinfo, fabVendorId=fabVendorId, npIfifIndex=npIfifIndex, hrSystemProcesses=hrSystemProcesses, fpLFSMknods=fpLFSMknods, fabTargetWWN=fabTargetWWN, hrDevicePrinter=hrDevicePrinter, hrStorageEntry=hrStorageEntry, npUDPInDatagrams=npUDPInDatagrams, npICMPOutTimeExcds=npICMPOutTimeExcds, ControllerType=ControllerType, npProtocols=npProtocols, U16Bits=U16Bits, hrDeviceEntry=hrDeviceEntry, npUDPInErrors=npUDPInErrors, fpLFSWrites=fpLFSWrites, npICMPOutEchoReps=npICMPOutEchoReps, fabLunIndex=fabLunIndex, fspIndex=fspIndex, npIfIndex=npIfIndex, trapFCAdptLinkFailureTimeStamp=trapFCAdptLinkFailureTimeStamp, npIfTable=npIfTable, npTCPEstabResets=npTCPEstabResets, npIPReasmTimeout=npIPReasmTimeout, hrSystemNumUsers=hrSystemNumUsers, hrSystemMaxProcesses=hrSystemMaxProcesses, trapFCLossOfLinkFailureMsg=trapFCLossOfLinkFailureMsg, hrFSStorageIndex=hrFSStorageIndex, hrDiskStorageAccess=hrDiskStorageAccess, hrDeviceStatus=hrDeviceStatus, hrDiskStorageMedia=hrDiskStorageMedia, fpLFSLookups=fpLFSLookups, hrPartitionEntry=hrPartitionEntry, hrFSLastPartialBackupDate=hrFSLastPartialBackupDate, fpBufferEntry=fpBufferEntry, axTrapData=axTrapData, npICMPOutRedirects=npICMPOutRedirects, hrFSSys5FS=hrFSSys5FS, hrDeviceDiskStorage=hrDeviceDiskStorage, hrSystemDate=hrSystemDate, hrStorage=hrStorage, npUDPTable=npUDPTable, npICMPInMsgs=npICMPInMsgs, ldWBufReads=ldWBufReads, trapFCLossOfLinkFailureTimeStamp=trapFCLossOfLinkFailureTimeStamp, trapLunDisappearMsg=trapLunDisappearMsg, npIfType=npIfType, trapDiskTimeStamp=trapDiskTimeStamp, fpLFSIsolationStates=fpLFSIsolationStates, fabTargetAdapterNum=fabTargetAdapterNum, fabLunWWN=fabLunWWN, fpDNLCMiss=fpDNLCMiss, fspIdleCount=fspIdleCount, npICMPInAddrMasks=npICMPInAddrMasks, hrDeviceModem=hrDeviceModem, fpDNLCPurgevp=fpDNLCPurgevp, fpBUFBwrites=fpBUFBwrites, hrFSJournaled=hrFSJournaled, hrStorageCompactDisc=hrStorageCompactDisc, fpLFSDiagnostics=fpLFSDiagnostics, npICMPEntry=npICMPEntry, trapFSFullTimeStamp=trapFSFullTimeStamp, hrSystemInitialLoadParameters=hrSystemInitialLoadParameters, hrDevice=hrDevice, hrDeviceSerialPort=hrDeviceSerialPort, npICMPInParmProbs=npICMPInParmProbs, hrFSBerkeleyFFS=hrFSBerkeleyFFS, trapLunSizeChange=trapLunSizeChange, npIPReasmFails=npIPReasmFails, fabLunSize=fabLunSize, host=host, fpDNLCTStatTable=fpDNLCTStatTable, fpPAGEDirtyflistcnt=fpPAGEDirtyflistcnt, npIPReasmOKs=npIPReasmOKs, npICMPInRedirects=npICMPInRedirects, fpFreeinodes=fpFreeinodes, fpDNLCPurgevfsp=fpDNLCPurgevfsp, fabLunLabel=fabLunLabel, hrDeviceID=hrDeviceID, hrDeviceIndex=hrDeviceIndex, npTCPRtoMax=npTCPRtoMax, hrPartitionSize=hrPartitionSize, npIPInHdrErrors=npIPInHdrErrors, npICMPInTimestamps=npICMPInTimestamps, fabIntPin=fabIntPin, npTCPInErrs=npTCPInErrs, hrFSHPFS=hrFSHPFS, fpLFSIsolateFs=fpLFSIsolateFs, fpDNLCEnter=fpDNLCEnter, npTCPOutSegs=npTCPOutSegs, fabTargetType=fabTargetType, fpPAGEZcref=fpPAGEZcref, hrFSRFS=hrFSRFS, fpPAGEWritemiss=fpPAGEWritemiss, npIPOutRequests=npIPOutRequests, npIfAdminStatus=npIfAdminStatus, fpLFSTable=fpLFSTable, ldSectorReads=ldSectorReads, hrStorageRamDisk=hrStorageRamDisk, npIfOutQLen=npIfOutQLen, hrStorageRemovableDisk=hrStorageRemovableDisk, fpInodeEntry=fpInodeEntry, axProductName=axProductName, fcLinkFailureTrap=fcLinkFailureTrap, fabPCIBusNum=fabPCIBusNum, npSMBLocksHeld=npSMBLocksHeld, trapLunSizeChangeTimeStamp=trapLunSizeChangeTimeStamp, npIPInAddrErrors=npIPInAddrErrors, hrNetworkTable=hrNetworkTable, npIPOutDiscards=npIPOutDiscards, hrDeviceAudio=hrDeviceAudio, npSMBReads=npSMBReads, axSWVersion=axSWVersion, fabLunAdptNumber=fabLunAdptNumber, trapFSDegradationMsg=trapFSDegradationMsg, npIPFragFails=npIPFragFails, fabLogDevEntry=fabLogDevEntry, npIfOutNUcastPkts=npIfOutNUcastPkts, npIfInNUcastPkts=npIfInNUcastPkts, hrNetworkEntry=hrNetworkEntry, hrDeviceCoprocessor=hrDeviceCoprocessor, fpLFSReadlinks=fpLFSReadlinks, npIfOutCollisions=npIfOutCollisions, npIPForwDatagrams=npIPForwDatagrams, npICMPInDestUnreachs=npICMPInDestUnreachs, hrDeviceKeyboard=hrDeviceKeyboard, npBusyCount=npBusyCount, npIPInDelivers=npIPInDelivers, npICMPOutDestUnreachs=npICMPOutDestUnreachs, npTCPEntry=npTCPEntry) |
'''2. Write a Python script to add a key to a dictionary.
Sample Dictionary : {0: 10, 1: 20}
Expected Result : {0: 10, 1: 20, 2: 30} '''
original_dict = {0: 10, 1: 20}
original_dict[2] = 30
print(original_dict) | """2. Write a Python script to add a key to a dictionary.
Sample Dictionary : {0: 10, 1: 20}
Expected Result : {0: 10, 1: 20, 2: 30} """
original_dict = {0: 10, 1: 20}
original_dict[2] = 30
print(original_dict) |
# Class method return
# EXPECTED OUTPUT:
# case4.py: MyClass.hash -> dict
# case4.py: MyClass.get_hash() -> {}
class MyClass:
def __init__(self):
self.hash = {}
def get_hash(self):
return self.hash
| class Myclass:
def __init__(self):
self.hash = {}
def get_hash(self):
return self.hash |
# https://leetcode.com/problems/factorial-trailing-zeroes/
# https://practice.geeksforgeeks.org/problems/trailing-zeroes-in-factorial5134/1
class Solution:
def trailingZeroes(self, N):
j = 5
ans = 0
while j<=N:
ans = ans + N//j
j = j*5
return ans | class Solution:
def trailing_zeroes(self, N):
j = 5
ans = 0
while j <= N:
ans = ans + N // j
j = j * 5
return ans |
# train and classify variations
class ReadDepthLogisticClassifier (object):
'''
build a classifier using local read depth data with 2 possible labels
'''
def __init__( self, fasta, read_length ):
'''
@fasta: ProbabilisticFasta
@read_length: determines how local the features will be (i.e. +/- read_legnth)
'''
self.fasta = fasta
self.read_length = read_length
self.window_start = -read_length
def add_instance( pos, positive ):
'''
@pos: position on fasta
@positive: is this a positive example
'''
pass
def classify( pos ):
'''
return a probability of positive classification
'''
pass
| class Readdepthlogisticclassifier(object):
"""
build a classifier using local read depth data with 2 possible labels
"""
def __init__(self, fasta, read_length):
"""
@fasta: ProbabilisticFasta
@read_length: determines how local the features will be (i.e. +/- read_legnth)
"""
self.fasta = fasta
self.read_length = read_length
self.window_start = -read_length
def add_instance(pos, positive):
"""
@pos: position on fasta
@positive: is this a positive example
"""
pass
def classify(pos):
"""
return a probability of positive classification
"""
pass |
class Jumble(object):
def __init__(self):
self.dict = self.create_dict()
def create_dict(self):
f = open('/usr/share/dict/words', 'r')
sortedict = {}
for word in f:
word = word.strip().lower()
sort = ''.join(sorted(word))
sortedict[sort] = word
return sortedict
def create_word_solver(self,word):
sorted_input = ''.join(sorted(word))
if sorted_input in self.dict:
return self.dict[sorted_input]
def create_solver(self, words):
# List to add solved words to
solved = []
# loop through the given words
for word in words:
solved_words = self.create_word_solver(word)
# check to make sure there are words
if solved_words:
if len(solved_words) == 1:
solved.prepend(solved_words)
else:
solved.append(solved_words)
# return the word list
return solved
if __name__ == "__main__":
jumble = Jumble()
words = ['shast', 'doore', 'ditnic', 'bureek']
solved_words = jumble.create_solver(words)
print(solved_words)
| class Jumble(object):
def __init__(self):
self.dict = self.create_dict()
def create_dict(self):
f = open('/usr/share/dict/words', 'r')
sortedict = {}
for word in f:
word = word.strip().lower()
sort = ''.join(sorted(word))
sortedict[sort] = word
return sortedict
def create_word_solver(self, word):
sorted_input = ''.join(sorted(word))
if sorted_input in self.dict:
return self.dict[sorted_input]
def create_solver(self, words):
solved = []
for word in words:
solved_words = self.create_word_solver(word)
if solved_words:
if len(solved_words) == 1:
solved.prepend(solved_words)
else:
solved.append(solved_words)
return solved
if __name__ == '__main__':
jumble = jumble()
words = ['shast', 'doore', 'ditnic', 'bureek']
solved_words = jumble.create_solver(words)
print(solved_words) |
class Task:
def __init__(self, robot):
self.robot = robot
def warmup(self):
pass
def run(self, input):
pass
def cooldown(self):
pass
def mock(self, input):
return "this is a test"
| class Task:
def __init__(self, robot):
self.robot = robot
def warmup(self):
pass
def run(self, input):
pass
def cooldown(self):
pass
def mock(self, input):
return 'this is a test' |
#!usr/bin/python3
#simple fizzbuzz solution
# Author: @fr4nkl1n-1k3h
for num in range(101):
if n%5 == 0 and n%3 == 0:
print('fizzbuzz',num,end="/n")
elif n%5 == 0:
print('buzz',num,end=" ")
elif n%3 == 0:
print('fizz',num, end=" ")
else:
print(num, end=" ")
print("Simple fizzbuzz by Fr4nkl1n-1keh")
| for num in range(101):
if n % 5 == 0 and n % 3 == 0:
print('fizzbuzz', num, end='/n')
elif n % 5 == 0:
print('buzz', num, end=' ')
elif n % 3 == 0:
print('fizz', num, end=' ')
else:
print(num, end=' ')
print('Simple fizzbuzz by Fr4nkl1n-1keh') |
__title__ = "betfairlightweight"
__description__ = "Lightweight python wrapper for Betfair API-NG"
__url__ = "https://github.com/liampauling/betfair"
__version__ = "2.7.2"
__author__ = "Liam Pauling"
__license__ = "MIT"
| __title__ = 'betfairlightweight'
__description__ = 'Lightweight python wrapper for Betfair API-NG'
__url__ = 'https://github.com/liampauling/betfair'
__version__ = '2.7.2'
__author__ = 'Liam Pauling'
__license__ = 'MIT' |
class Operand:
def add(self, x, y):
return x + y
def multiply(self, x, y):
return x * y
def subtract(self, x, y):
return x - y
def divide(self, x, y):
if y == 0:
return 0
return x / y | class Operand:
def add(self, x, y):
return x + y
def multiply(self, x, y):
return x * y
def subtract(self, x, y):
return x - y
def divide(self, x, y):
if y == 0:
return 0
return x / y |
__version__ = "6.7.0"
__title__ = "slims-python-api"
__description__ = "A python api for SLims."
__uri__ = "http://www.genohm.com"
__author__ = "Genohm"
__email__ = "support@genohm.com"
__license__ = "TODO"
__copyright__ = "Copyright (c) 2016 Genohm"
| __version__ = '6.7.0'
__title__ = 'slims-python-api'
__description__ = 'A python api for SLims.'
__uri__ = 'http://www.genohm.com'
__author__ = 'Genohm'
__email__ = 'support@genohm.com'
__license__ = 'TODO'
__copyright__ = 'Copyright (c) 2016 Genohm' |
NEGATIVE_COLLECTION_FIDS = set(
(
"88513394757c43089cd44f817f16ca05", # Khadija Project Research Data
"45602a9bb6c04a179a2657e56ed3a310", # Mozambique Persons of Interest (2015)
"zz_occrp_pdi", # Persona de Interes (2014)
"ch_seco_sanctions", # Swiss SECO Sanctions
"interpol_red_notices", # INTERPOL Red Notices
"45602a9bb6c04a179a2657e56ed3a310",
# "ru_moscow_registration_2014", # 3.9GB
"ru_pskov_people_2007",
"ua_antac_peps",
"am_voters",
"hr_gong_peps",
"hr_gong_companies",
"mk_dksk",
"ru_oligarchs",
"everypolitician",
"lg_people_companies",
"rs_prijave",
"5b5ec30364bb41999f503a050eb17b78",
"aecf6ecc4ab34955a1b8f7f542b6df62",
"am_hetq_peps",
"kg_akipress_peps",
# "ph_voters", # 7.5GB
"gb_coh_disqualified",
)
)
FEATURE_KEYS = [
"name",
"name_length_ratio",
"country",
"registrationNumber",
"incorporationDate",
"address",
"jurisdiction",
"dissolutionDate",
"mainCountry",
"ogrnCode",
"innCode",
"kppCode",
"fnsCode",
"email",
"phone",
"website",
"idNumber",
"birthDate",
"nationality",
"accountNumber",
"iban",
"wikidataId",
"wikipediaUrl",
"deathDate",
"cikCode",
"irsCode",
"vatCode",
"okpoCode",
"passportNumber",
"taxNumber",
"bvdId",
]
FEATURE_IDXS = dict(zip(FEATURE_KEYS, range(len(FEATURE_KEYS))))
SCHEMAS = set(("Person", "Company", "LegalEntity", "Organization", "PublicBody"))
FIELDS_BAN_SET = set(
["alephUrl", "modifiedAt", "retrievedAt", "sourceUrl", "publisher", "publisherUrl"]
)
FEATURE_FTM_COMPARE_WEIGHTS = {
"name": 0.6,
"country": 0.1,
"email": 0.2,
"phone": 0.3,
"website": 0.1,
"incorporationDate": 0.2,
"dissolutionDate": 0.2,
"registrationNumber": 0.3,
"idNumber": 0.3,
"taxNumber": 0.3,
"vatCode": 0.3,
"jurisdiction": 0.1,
"mainCountry": 0.1,
"bvdId": 0.3,
"okpoCode": 0.3,
"innCode": 0.3,
"country": 0.1,
"wikipediaUrl": 0.1,
"wikidataId": 0.3,
"address": 0.3,
"accountNumber": 0.3,
"iban": 0.3,
"irsCode": 0.3,
"cikCode": 0.3,
"kppCode": 0.3,
"fnsCode": 0.3,
"ogrnCode": 0.3,
"birthDate": 0.2,
"deathDate": 0.2,
"nationality": 0.1,
"passportNumber": 0.3,
}
| negative_collection_fids = set(('88513394757c43089cd44f817f16ca05', '45602a9bb6c04a179a2657e56ed3a310', 'zz_occrp_pdi', 'ch_seco_sanctions', 'interpol_red_notices', '45602a9bb6c04a179a2657e56ed3a310', 'ru_pskov_people_2007', 'ua_antac_peps', 'am_voters', 'hr_gong_peps', 'hr_gong_companies', 'mk_dksk', 'ru_oligarchs', 'everypolitician', 'lg_people_companies', 'rs_prijave', '5b5ec30364bb41999f503a050eb17b78', 'aecf6ecc4ab34955a1b8f7f542b6df62', 'am_hetq_peps', 'kg_akipress_peps', 'gb_coh_disqualified'))
feature_keys = ['name', 'name_length_ratio', 'country', 'registrationNumber', 'incorporationDate', 'address', 'jurisdiction', 'dissolutionDate', 'mainCountry', 'ogrnCode', 'innCode', 'kppCode', 'fnsCode', 'email', 'phone', 'website', 'idNumber', 'birthDate', 'nationality', 'accountNumber', 'iban', 'wikidataId', 'wikipediaUrl', 'deathDate', 'cikCode', 'irsCode', 'vatCode', 'okpoCode', 'passportNumber', 'taxNumber', 'bvdId']
feature_idxs = dict(zip(FEATURE_KEYS, range(len(FEATURE_KEYS))))
schemas = set(('Person', 'Company', 'LegalEntity', 'Organization', 'PublicBody'))
fields_ban_set = set(['alephUrl', 'modifiedAt', 'retrievedAt', 'sourceUrl', 'publisher', 'publisherUrl'])
feature_ftm_compare_weights = {'name': 0.6, 'country': 0.1, 'email': 0.2, 'phone': 0.3, 'website': 0.1, 'incorporationDate': 0.2, 'dissolutionDate': 0.2, 'registrationNumber': 0.3, 'idNumber': 0.3, 'taxNumber': 0.3, 'vatCode': 0.3, 'jurisdiction': 0.1, 'mainCountry': 0.1, 'bvdId': 0.3, 'okpoCode': 0.3, 'innCode': 0.3, 'country': 0.1, 'wikipediaUrl': 0.1, 'wikidataId': 0.3, 'address': 0.3, 'accountNumber': 0.3, 'iban': 0.3, 'irsCode': 0.3, 'cikCode': 0.3, 'kppCode': 0.3, 'fnsCode': 0.3, 'ogrnCode': 0.3, 'birthDate': 0.2, 'deathDate': 0.2, 'nationality': 0.1, 'passportNumber': 0.3} |
class ClientException(Exception):
pass
class ServerException(Exception):
pass
class BadRequestError(ServerException):
pass
class UnauthorizedError(ServerException):
pass
class NotFoundError(ServerException):
pass
class UnprocessableError(ServerException):
pass
class InternalServerError(ServerException):
pass
class ServiceUnavailableError(ServerException):
pass
class ClientError(ServerException):
pass
class ServerError(ServerException):
pass
class ServerBaseErrors(object):
ERR_UIZA_BAD_REQUEST = 'The request was unacceptable, often due to missing a required parameter.'
ERR_UIZA_UNAUTHORIZED = 'No valid API key provided.'
ERR_UIZA_NOT_FOUND = 'The requested resource doesn\'t exist.'
ERR_UIZA_UNPROCESSABLE = 'The syntax of the request is correct (often cause of wrong parameter)'
ERR_UIZA_INTERNAL_SERVER_ERROR = 'We had a problem with our server. Try again later.'
ERR_UIZA_SERVICE_UNAVAILABLE = 'The server is overloaded or down for maintenance.'
ERR_UIZA_CLIENT_ERROR = 'The error seems to have been caused by the client'
ERR_UIZA_SERVER_ERROR = ' the server is aware that it has encountered an error'
| class Clientexception(Exception):
pass
class Serverexception(Exception):
pass
class Badrequesterror(ServerException):
pass
class Unauthorizederror(ServerException):
pass
class Notfounderror(ServerException):
pass
class Unprocessableerror(ServerException):
pass
class Internalservererror(ServerException):
pass
class Serviceunavailableerror(ServerException):
pass
class Clienterror(ServerException):
pass
class Servererror(ServerException):
pass
class Serverbaseerrors(object):
err_uiza_bad_request = 'The request was unacceptable, often due to missing a required parameter.'
err_uiza_unauthorized = 'No valid API key provided.'
err_uiza_not_found = "The requested resource doesn't exist."
err_uiza_unprocessable = 'The syntax of the request is correct (often cause of wrong parameter)'
err_uiza_internal_server_error = 'We had a problem with our server. Try again later.'
err_uiza_service_unavailable = 'The server is overloaded or down for maintenance.'
err_uiza_client_error = 'The error seems to have been caused by the client'
err_uiza_server_error = ' the server is aware that it has encountered an error' |
class DealResult(object):
'''
Details of a deal that has taken place.
'''
def __init__(self):
self.proposer = None
self.proposee = None
self.properties_transferred_to_proposer = []
self.properties_transferred_to_proposee = []
self.cash_transferred_from_proposer_to_proposee = 0
| class Dealresult(object):
"""
Details of a deal that has taken place.
"""
def __init__(self):
self.proposer = None
self.proposee = None
self.properties_transferred_to_proposer = []
self.properties_transferred_to_proposee = []
self.cash_transferred_from_proposer_to_proposee = 0 |
'''
Full write up is here! https://devclass.io/climbing-stairs
You are climbing a staircase. It takes `n` steps to reach the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
**Example 1**
`Input: n = 2`
`Output: 2`
_Explanation_
There are two ways to climb to the top.
1. 1 step + 1 step
2. 2 steps
'''
class Solution:
def climbStairs(self, n):
if n <= 2:
return n
return self.climbStairs(n - 1) + self.climbStairs(n - 2)
class SolutionMemoize:
def climbStairs(self, n):
if n < 3:
return n
memo = [-1] * n
memo[0] = 0
memo[1] = 1
memo[2] = 2
def climbHelper(n):
if n <= 2:
return memo[n]
for i in range(3, n):
memo[i] = memo[i-1] + memo[i-2]
return memo[n-1] + memo[n-2]
return climbHelper(n)
| """
Full write up is here! https://devclass.io/climbing-stairs
You are climbing a staircase. It takes `n` steps to reach the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
**Example 1**
`Input: n = 2`
`Output: 2`
_Explanation_
There are two ways to climb to the top.
1. 1 step + 1 step
2. 2 steps
"""
class Solution:
def climb_stairs(self, n):
if n <= 2:
return n
return self.climbStairs(n - 1) + self.climbStairs(n - 2)
class Solutionmemoize:
def climb_stairs(self, n):
if n < 3:
return n
memo = [-1] * n
memo[0] = 0
memo[1] = 1
memo[2] = 2
def climb_helper(n):
if n <= 2:
return memo[n]
for i in range(3, n):
memo[i] = memo[i - 1] + memo[i - 2]
return memo[n - 1] + memo[n - 2]
return climb_helper(n) |
STATUS = {
'no_content': ('No content, check the request body', 204),
'unprocessable_entity': ('Unprocessable entity, check the request attributes', 422)
}
def missing_attributes(document, attributes):
for attribute in attributes:
if attribute not in document:
return True
return False
| status = {'no_content': ('No content, check the request body', 204), 'unprocessable_entity': ('Unprocessable entity, check the request attributes', 422)}
def missing_attributes(document, attributes):
for attribute in attributes:
if attribute not in document:
return True
return False |
# This module defines many standard colors that should be useful.
# These colors should be exactly the same as the ones defined in
# vtkNamedColors.h.
# Whites
antique_white = (0.9804, 0.9216, 0.8431)
azure = (0.9412, 1.0000, 1.0000)
bisque = (1.0000, 0.8941, 0.7686)
blanched_almond = (1.0000, 0.9216, 0.8039)
cornsilk = (1.0000, 0.9725, 0.8627)
eggshell = (0.9900, 0.9000, 0.7900)
floral_white = (1.0000, 0.9804, 0.9412)
gainsboro = (0.8627, 0.8627, 0.8627)
ghost_white = (0.9725, 0.9725, 1.0000)
honeydew = (0.9412, 1.0000, 0.9412)
ivory = (1.0000, 1.0000, 0.9412)
lavender = (0.9020, 0.9020, 0.9804)
lavender_blush = (1.0000, 0.9412, 0.9608)
lemon_chiffon = (1.0000, 0.9804, 0.8039)
linen = (0.9804, 0.9412, 0.9020)
mint_cream = (0.9608, 1.0000, 0.9804)
misty_rose = (1.0000, 0.8941, 0.8824)
moccasin = (1.0000, 0.8941, 0.7098)
navajo_white = (1.0000, 0.8706, 0.6784)
old_lace = (0.9922, 0.9608, 0.9020)
papaya_whip = (1.0000, 0.9373, 0.8353)
peach_puff = (1.0000, 0.8549, 0.7255)
seashell = (1.0000, 0.9608, 0.9333)
snow = (1.0000, 0.9804, 0.9804)
thistle = (0.8471, 0.7490, 0.8471)
titanium_white = (0.9900, 1.0000, 0.9400)
wheat = (0.9608, 0.8706, 0.7020)
white = (1.0000, 1.0000, 1.0000)
white_smoke = (0.9608, 0.9608, 0.9608)
zinc_white = (0.9900, 0.9700, 1.0000)
# Greys
cold_grey = (0.5000, 0.5400, 0.5300)
dim_grey = (0.4118, 0.4118, 0.4118)
grey = (0.7529, 0.7529, 0.7529)
light_grey = (0.8275, 0.8275, 0.8275)
slate_grey = (0.4392, 0.5020, 0.5647)
slate_grey_dark = (0.1843, 0.3098, 0.3098)
slate_grey_light = (0.4667, 0.5333, 0.6000)
warm_grey = (0.5000, 0.5000, 0.4100)
# Blacks
black = (0.0000, 0.0000, 0.0000)
ivory_black = (0.1600, 0.1400, 0.1300)
lamp_black = (0.1800, 0.2800, 0.2300)
# Reds
alizarin_crimson = (0.8900, 0.1500, 0.2100)
brick = (0.6100, 0.4000, 0.1200)
cadmium_red_deep = (0.8900, 0.0900, 0.0500)
coral = (1.0000, 0.4980, 0.3137)
coral_light = (0.9412, 0.5020, 0.5020)
deep_pink = (1.0000, 0.0784, 0.5765)
english_red = (0.8300, 0.2400, 0.1000)
firebrick = (0.6980, 0.1333, 0.1333)
geranium_lake = (0.8900, 0.0700, 0.1900)
hot_pink = (1.0000, 0.4118, 0.7059)
indian_red = (0.6900, 0.0900, 0.1200)
light_salmon = (1.0000, 0.6275, 0.4784)
madder_lake_deep = (0.8900, 0.1800, 0.1900)
maroon = (0.6902, 0.1882, 0.3765)
pink = (1.0000, 0.7529, 0.7961)
pink_light = (1.0000, 0.7137, 0.7569)
raspberry = (0.5300, 0.1500, 0.3400)
red = (1.0000, 0.0000, 0.0000)
rose_madder = (0.8900, 0.2100, 0.2200)
salmon = (0.9804, 0.5020, 0.4471)
tomato = (1.0000, 0.3882, 0.2784)
venetian_red = (0.8300, 0.1000, 0.1200)
# Browns
beige = (0.6400, 0.5800, 0.5000)
brown = (0.5000, 0.1647, 0.1647)
brown_madder = (0.8600, 0.1600, 0.1600)
brown_ochre = (0.5300, 0.2600, 0.1200)
burlywood = (0.8706, 0.7216, 0.5294)
burnt_sienna = (0.5400, 0.2100, 0.0600)
burnt_umber = (0.5400, 0.2000, 0.1400)
chocolate = (0.8235, 0.4118, 0.1176)
deep_ochre = (0.4500, 0.2400, 0.1000)
flesh = (1.0000, 0.4900, 0.2500)
flesh_ochre = (1.0000, 0.3400, 0.1300)
gold_ochre = (0.7800, 0.4700, 0.1500)
greenish_umber = (1.0000, 0.2400, 0.0500)
khaki = (0.9412, 0.9020, 0.5490)
khaki_dark = (0.7412, 0.7176, 0.4196)
light_beige = (0.9608, 0.9608, 0.8627)
peru = (0.8039, 0.5216, 0.2471)
rosy_brown = (0.7373, 0.5608, 0.5608)
raw_sienna = (0.7800, 0.3800, 0.0800)
raw_umber = (0.4500, 0.2900, 0.0700)
sepia = (0.3700, 0.1500, 0.0700)
sienna = (0.6275, 0.3216, 0.1765)
saddle_brown = (0.5451, 0.2706, 0.0745)
sandy_brown = (0.9569, 0.6431, 0.3765)
tan = (0.8235, 0.7059, 0.5490)
van_dyke_brown = (0.3700, 0.1500, 0.0200)
# Oranges
cadmium_orange = (1.0000, 0.3800, 0.0100)
cadmium_red_light = (1.0000, 0.0100, 0.0500)
carrot = (0.9300, 0.5700, 0.1300)
dark_orange = (1.0000, 0.5490, 0.0000)
mars_orange = (0.5900, 0.2700, 0.0800)
mars_yellow = (0.8900, 0.4400, 0.1000)
orange = (1.0000, 0.5000, 0.0000)
orange_red = (1.0000, 0.2706, 0.0000)
yellow_ochre = (0.8900, 0.5100, 0.0900)
# Yellows
aureoline_yellow = (1.0000, 0.6600, 0.1400)
banana = (0.8900, 0.8100, 0.3400)
cadmium_lemon = (1.0000, 0.8900, 0.0100)
cadmium_yellow = (1.0000, 0.6000, 0.0700)
cadmium_yellow_light = (1.0000, 0.6900, 0.0600)
gold = (1.0000, 0.8431, 0.0000)
goldenrod = (0.8549, 0.6471, 0.1255)
goldenrod_dark = (0.7216, 0.5255, 0.0431)
goldenrod_light = (0.9804, 0.9804, 0.8235)
goldenrod_pale = (0.9333, 0.9098, 0.6667)
light_goldenrod = (0.9333, 0.8667, 0.5098)
melon = (0.8900, 0.6600, 0.4100)
naples_yellow_deep = (1.0000, 0.6600, 0.0700)
yellow = (1.0000, 1.0000, 0.0000)
yellow_light = (1.0000, 1.0000, 0.8784)
# Greens
chartreuse = (0.4980, 1.0000, 0.0000)
chrome_oxide_green = (0.4000, 0.5000, 0.0800)
cinnabar_green = (0.3800, 0.7000, 0.1600)
cobalt_green = (0.2400, 0.5700, 0.2500)
emerald_green = (0.0000, 0.7900, 0.3400)
forest_green = (0.1333, 0.5451, 0.1333)
green = (0.0000, 1.0000, 0.0000)
green_dark = (0.0000, 0.3922, 0.0000)
green_pale = (0.5961, 0.9843, 0.5961)
green_yellow = (0.6784, 1.0000, 0.1843)
lawn_green = (0.4863, 0.9882, 0.0000)
lime_green = (0.1961, 0.8039, 0.1961)
mint = (0.7400, 0.9900, 0.7900)
olive = (0.2300, 0.3700, 0.1700)
olive_drab = (0.4196, 0.5569, 0.1373)
olive_green_dark = (0.3333, 0.4196, 0.1843)
permanent_green = (0.0400, 0.7900, 0.1700)
sap_green = (0.1900, 0.5000, 0.0800)
sea_green = (0.1804, 0.5451, 0.3412)
sea_green_dark = (0.5608, 0.7373, 0.5608)
sea_green_medium = (0.2353, 0.7020, 0.4431)
sea_green_light = (0.1255, 0.6980, 0.6667)
spring_green = (0.0000, 1.0000, 0.4980)
spring_green_medium = (0.0000, 0.9804, 0.6039)
terre_verte = (0.2200, 0.3700, 0.0600)
viridian_light = (0.4300, 1.0000, 0.4400)
yellow_green = (0.6039, 0.8039, 0.1961)
# Cyans
aquamarine = (0.4980, 1.0000, 0.8314)
aquamarine_medium = (0.4000, 0.8039, 0.6667)
cyan = (0.0000, 1.0000, 1.0000)
cyan_white = (0.8784, 1.0000, 1.0000)
turquoise = (0.2510, 0.8784, 0.8157)
turquoise_dark = (0.0000, 0.8078, 0.8196)
turquoise_medium = (0.2824, 0.8196, 0.8000)
turquoise_pale = (0.6863, 0.9333, 0.9333)
# Blues
alice_blue = (0.9412, 0.9725, 1.0000)
blue = (0.0000, 0.0000, 1.0000)
blue_light = (0.6784, 0.8471, 0.9020)
blue_medium = (0.0000, 0.0000, 0.8039)
cadet = (0.3725, 0.6196, 0.6275)
cobalt = (0.2400, 0.3500, 0.6700)
cornflower = (0.3922, 0.5843, 0.9294)
cerulean = (0.0200, 0.7200, 0.8000)
dodger_blue = (0.1176, 0.5647, 1.0000)
indigo = (0.0300, 0.1800, 0.3300)
manganese_blue = (0.0100, 0.6600, 0.6200)
midnight_blue = (0.0980, 0.0980, 0.4392)
navy = (0.0000, 0.0000, 0.5020)
peacock = (0.2000, 0.6300, 0.7900)
powder_blue = (0.6902, 0.8784, 0.9020)
royal_blue = (0.2549, 0.4118, 0.8824)
slate_blue = (0.4157, 0.3529, 0.8039)
slate_blue_dark = (0.2824, 0.2392, 0.5451)
slate_blue_light = (0.5176, 0.4392, 1.0000)
slate_blue_medium = (0.4824, 0.4078, 0.9333)
sky_blue = (0.5294, 0.8078, 0.9216)
sky_blue_deep = (0.0000, 0.7490, 1.0000)
sky_blue_light = (0.5294, 0.8078, 0.9804)
steel_blue = (0.2745, 0.5098, 0.7059)
steel_blue_light = (0.6902, 0.7686, 0.8706)
turquoise_blue = (0.0000, 0.7800, 0.5500)
ultramarine = (0.0700, 0.0400, 0.5600)
# Magentas
blue_violet = (0.5412, 0.1686, 0.8863)
cobalt_violet_deep = (0.5700, 0.1300, 0.6200)
magenta = (1.0000, 0.0000, 1.0000)
orchid = (0.8549, 0.4392, 0.8392)
orchid_dark = (0.6000, 0.1961, 0.8000)
orchid_medium = (0.7294, 0.3333, 0.8275)
permanent_red_violet = (0.8600, 0.1500, 0.2700)
plum = (0.8667, 0.6275, 0.8667)
purple = (0.6275, 0.1255, 0.9412)
purple_medium = (0.5765, 0.4392, 0.8588)
ultramarine_violet = (0.3600, 0.1400, 0.4300)
violet = (0.5600, 0.3700, 0.6000)
violet_dark = (0.5804, 0.0000, 0.8275)
violet_red = (0.8157, 0.1255, 0.5647)
violet_red_medium = (0.7804, 0.0824, 0.5216)
violet_red_pale = (0.8588, 0.4392, 0.5765)
| antique_white = (0.9804, 0.9216, 0.8431)
azure = (0.9412, 1.0, 1.0)
bisque = (1.0, 0.8941, 0.7686)
blanched_almond = (1.0, 0.9216, 0.8039)
cornsilk = (1.0, 0.9725, 0.8627)
eggshell = (0.99, 0.9, 0.79)
floral_white = (1.0, 0.9804, 0.9412)
gainsboro = (0.8627, 0.8627, 0.8627)
ghost_white = (0.9725, 0.9725, 1.0)
honeydew = (0.9412, 1.0, 0.9412)
ivory = (1.0, 1.0, 0.9412)
lavender = (0.902, 0.902, 0.9804)
lavender_blush = (1.0, 0.9412, 0.9608)
lemon_chiffon = (1.0, 0.9804, 0.8039)
linen = (0.9804, 0.9412, 0.902)
mint_cream = (0.9608, 1.0, 0.9804)
misty_rose = (1.0, 0.8941, 0.8824)
moccasin = (1.0, 0.8941, 0.7098)
navajo_white = (1.0, 0.8706, 0.6784)
old_lace = (0.9922, 0.9608, 0.902)
papaya_whip = (1.0, 0.9373, 0.8353)
peach_puff = (1.0, 0.8549, 0.7255)
seashell = (1.0, 0.9608, 0.9333)
snow = (1.0, 0.9804, 0.9804)
thistle = (0.8471, 0.749, 0.8471)
titanium_white = (0.99, 1.0, 0.94)
wheat = (0.9608, 0.8706, 0.702)
white = (1.0, 1.0, 1.0)
white_smoke = (0.9608, 0.9608, 0.9608)
zinc_white = (0.99, 0.97, 1.0)
cold_grey = (0.5, 0.54, 0.53)
dim_grey = (0.4118, 0.4118, 0.4118)
grey = (0.7529, 0.7529, 0.7529)
light_grey = (0.8275, 0.8275, 0.8275)
slate_grey = (0.4392, 0.502, 0.5647)
slate_grey_dark = (0.1843, 0.3098, 0.3098)
slate_grey_light = (0.4667, 0.5333, 0.6)
warm_grey = (0.5, 0.5, 0.41)
black = (0.0, 0.0, 0.0)
ivory_black = (0.16, 0.14, 0.13)
lamp_black = (0.18, 0.28, 0.23)
alizarin_crimson = (0.89, 0.15, 0.21)
brick = (0.61, 0.4, 0.12)
cadmium_red_deep = (0.89, 0.09, 0.05)
coral = (1.0, 0.498, 0.3137)
coral_light = (0.9412, 0.502, 0.502)
deep_pink = (1.0, 0.0784, 0.5765)
english_red = (0.83, 0.24, 0.1)
firebrick = (0.698, 0.1333, 0.1333)
geranium_lake = (0.89, 0.07, 0.19)
hot_pink = (1.0, 0.4118, 0.7059)
indian_red = (0.69, 0.09, 0.12)
light_salmon = (1.0, 0.6275, 0.4784)
madder_lake_deep = (0.89, 0.18, 0.19)
maroon = (0.6902, 0.1882, 0.3765)
pink = (1.0, 0.7529, 0.7961)
pink_light = (1.0, 0.7137, 0.7569)
raspberry = (0.53, 0.15, 0.34)
red = (1.0, 0.0, 0.0)
rose_madder = (0.89, 0.21, 0.22)
salmon = (0.9804, 0.502, 0.4471)
tomato = (1.0, 0.3882, 0.2784)
venetian_red = (0.83, 0.1, 0.12)
beige = (0.64, 0.58, 0.5)
brown = (0.5, 0.1647, 0.1647)
brown_madder = (0.86, 0.16, 0.16)
brown_ochre = (0.53, 0.26, 0.12)
burlywood = (0.8706, 0.7216, 0.5294)
burnt_sienna = (0.54, 0.21, 0.06)
burnt_umber = (0.54, 0.2, 0.14)
chocolate = (0.8235, 0.4118, 0.1176)
deep_ochre = (0.45, 0.24, 0.1)
flesh = (1.0, 0.49, 0.25)
flesh_ochre = (1.0, 0.34, 0.13)
gold_ochre = (0.78, 0.47, 0.15)
greenish_umber = (1.0, 0.24, 0.05)
khaki = (0.9412, 0.902, 0.549)
khaki_dark = (0.7412, 0.7176, 0.4196)
light_beige = (0.9608, 0.9608, 0.8627)
peru = (0.8039, 0.5216, 0.2471)
rosy_brown = (0.7373, 0.5608, 0.5608)
raw_sienna = (0.78, 0.38, 0.08)
raw_umber = (0.45, 0.29, 0.07)
sepia = (0.37, 0.15, 0.07)
sienna = (0.6275, 0.3216, 0.1765)
saddle_brown = (0.5451, 0.2706, 0.0745)
sandy_brown = (0.9569, 0.6431, 0.3765)
tan = (0.8235, 0.7059, 0.549)
van_dyke_brown = (0.37, 0.15, 0.02)
cadmium_orange = (1.0, 0.38, 0.01)
cadmium_red_light = (1.0, 0.01, 0.05)
carrot = (0.93, 0.57, 0.13)
dark_orange = (1.0, 0.549, 0.0)
mars_orange = (0.59, 0.27, 0.08)
mars_yellow = (0.89, 0.44, 0.1)
orange = (1.0, 0.5, 0.0)
orange_red = (1.0, 0.2706, 0.0)
yellow_ochre = (0.89, 0.51, 0.09)
aureoline_yellow = (1.0, 0.66, 0.14)
banana = (0.89, 0.81, 0.34)
cadmium_lemon = (1.0, 0.89, 0.01)
cadmium_yellow = (1.0, 0.6, 0.07)
cadmium_yellow_light = (1.0, 0.69, 0.06)
gold = (1.0, 0.8431, 0.0)
goldenrod = (0.8549, 0.6471, 0.1255)
goldenrod_dark = (0.7216, 0.5255, 0.0431)
goldenrod_light = (0.9804, 0.9804, 0.8235)
goldenrod_pale = (0.9333, 0.9098, 0.6667)
light_goldenrod = (0.9333, 0.8667, 0.5098)
melon = (0.89, 0.66, 0.41)
naples_yellow_deep = (1.0, 0.66, 0.07)
yellow = (1.0, 1.0, 0.0)
yellow_light = (1.0, 1.0, 0.8784)
chartreuse = (0.498, 1.0, 0.0)
chrome_oxide_green = (0.4, 0.5, 0.08)
cinnabar_green = (0.38, 0.7, 0.16)
cobalt_green = (0.24, 0.57, 0.25)
emerald_green = (0.0, 0.79, 0.34)
forest_green = (0.1333, 0.5451, 0.1333)
green = (0.0, 1.0, 0.0)
green_dark = (0.0, 0.3922, 0.0)
green_pale = (0.5961, 0.9843, 0.5961)
green_yellow = (0.6784, 1.0, 0.1843)
lawn_green = (0.4863, 0.9882, 0.0)
lime_green = (0.1961, 0.8039, 0.1961)
mint = (0.74, 0.99, 0.79)
olive = (0.23, 0.37, 0.17)
olive_drab = (0.4196, 0.5569, 0.1373)
olive_green_dark = (0.3333, 0.4196, 0.1843)
permanent_green = (0.04, 0.79, 0.17)
sap_green = (0.19, 0.5, 0.08)
sea_green = (0.1804, 0.5451, 0.3412)
sea_green_dark = (0.5608, 0.7373, 0.5608)
sea_green_medium = (0.2353, 0.702, 0.4431)
sea_green_light = (0.1255, 0.698, 0.6667)
spring_green = (0.0, 1.0, 0.498)
spring_green_medium = (0.0, 0.9804, 0.6039)
terre_verte = (0.22, 0.37, 0.06)
viridian_light = (0.43, 1.0, 0.44)
yellow_green = (0.6039, 0.8039, 0.1961)
aquamarine = (0.498, 1.0, 0.8314)
aquamarine_medium = (0.4, 0.8039, 0.6667)
cyan = (0.0, 1.0, 1.0)
cyan_white = (0.8784, 1.0, 1.0)
turquoise = (0.251, 0.8784, 0.8157)
turquoise_dark = (0.0, 0.8078, 0.8196)
turquoise_medium = (0.2824, 0.8196, 0.8)
turquoise_pale = (0.6863, 0.9333, 0.9333)
alice_blue = (0.9412, 0.9725, 1.0)
blue = (0.0, 0.0, 1.0)
blue_light = (0.6784, 0.8471, 0.902)
blue_medium = (0.0, 0.0, 0.8039)
cadet = (0.3725, 0.6196, 0.6275)
cobalt = (0.24, 0.35, 0.67)
cornflower = (0.3922, 0.5843, 0.9294)
cerulean = (0.02, 0.72, 0.8)
dodger_blue = (0.1176, 0.5647, 1.0)
indigo = (0.03, 0.18, 0.33)
manganese_blue = (0.01, 0.66, 0.62)
midnight_blue = (0.098, 0.098, 0.4392)
navy = (0.0, 0.0, 0.502)
peacock = (0.2, 0.63, 0.79)
powder_blue = (0.6902, 0.8784, 0.902)
royal_blue = (0.2549, 0.4118, 0.8824)
slate_blue = (0.4157, 0.3529, 0.8039)
slate_blue_dark = (0.2824, 0.2392, 0.5451)
slate_blue_light = (0.5176, 0.4392, 1.0)
slate_blue_medium = (0.4824, 0.4078, 0.9333)
sky_blue = (0.5294, 0.8078, 0.9216)
sky_blue_deep = (0.0, 0.749, 1.0)
sky_blue_light = (0.5294, 0.8078, 0.9804)
steel_blue = (0.2745, 0.5098, 0.7059)
steel_blue_light = (0.6902, 0.7686, 0.8706)
turquoise_blue = (0.0, 0.78, 0.55)
ultramarine = (0.07, 0.04, 0.56)
blue_violet = (0.5412, 0.1686, 0.8863)
cobalt_violet_deep = (0.57, 0.13, 0.62)
magenta = (1.0, 0.0, 1.0)
orchid = (0.8549, 0.4392, 0.8392)
orchid_dark = (0.6, 0.1961, 0.8)
orchid_medium = (0.7294, 0.3333, 0.8275)
permanent_red_violet = (0.86, 0.15, 0.27)
plum = (0.8667, 0.6275, 0.8667)
purple = (0.6275, 0.1255, 0.9412)
purple_medium = (0.5765, 0.4392, 0.8588)
ultramarine_violet = (0.36, 0.14, 0.43)
violet = (0.56, 0.37, 0.6)
violet_dark = (0.5804, 0.0, 0.8275)
violet_red = (0.8157, 0.1255, 0.5647)
violet_red_medium = (0.7804, 0.0824, 0.5216)
violet_red_pale = (0.8588, 0.4392, 0.5765) |
class Course:
def __init__(self, records: dict = None):
self.id: int = records.get('Id')
self.name: str = records.get('CourseName')
self.about: str = records.get('About')
self.about_exam: str = records.get('About Exam')
self.site: str = records.get('Site')
| class Course:
def __init__(self, records: dict=None):
self.id: int = records.get('Id')
self.name: str = records.get('CourseName')
self.about: str = records.get('About')
self.about_exam: str = records.get('About Exam')
self.site: str = records.get('Site') |
seconds = int(input("Enter number of seconds:"))
minutes = seconds // 60
seconds = seconds % 60
hours = minutes // 60
minutes = minutes % 60
days = hours // 24
hours = hours % 24
print(f"{days} day(s), {hours} hour(s), {minutes} minute(s), and {seconds} second(s).") | seconds = int(input('Enter number of seconds:'))
minutes = seconds // 60
seconds = seconds % 60
hours = minutes // 60
minutes = minutes % 60
days = hours // 24
hours = hours % 24
print(f'{days} day(s), {hours} hour(s), {minutes} minute(s), and {seconds} second(s).') |
# Interval List Intersections
class Solution:
def intervalIntersection(self, firstList, secondList):
fl, sl = len(firstList), len(secondList)
fi, si = 0, 0
inter = []
while fi < fl and si < sl:
f, s = firstList[fi], secondList[si]
if s[0] <= f[1] <= s[1]:
inter.append([max(s[0], f[0]), f[1]])
fi += 1
elif f[0] <= s[1] <= f[1]:
inter.append([max(s[0], f[0]), s[1]])
si += 1
else:
if f[1] > s[1]:
si += 1
else:
fi += 1
return inter
if __name__ == "__main__":
sol = Solution()
firstList = [[0,2],[5,10],[13,23],[24,25]]
secondList = [[1,5],[8,12],[15,24],[25,26]]
firstList = [[1,3],[5,9]]
secondList = []
print(sol.intervalIntersection(firstList, secondList))
| class Solution:
def interval_intersection(self, firstList, secondList):
(fl, sl) = (len(firstList), len(secondList))
(fi, si) = (0, 0)
inter = []
while fi < fl and si < sl:
(f, s) = (firstList[fi], secondList[si])
if s[0] <= f[1] <= s[1]:
inter.append([max(s[0], f[0]), f[1]])
fi += 1
elif f[0] <= s[1] <= f[1]:
inter.append([max(s[0], f[0]), s[1]])
si += 1
elif f[1] > s[1]:
si += 1
else:
fi += 1
return inter
if __name__ == '__main__':
sol = solution()
first_list = [[0, 2], [5, 10], [13, 23], [24, 25]]
second_list = [[1, 5], [8, 12], [15, 24], [25, 26]]
first_list = [[1, 3], [5, 9]]
second_list = []
print(sol.intervalIntersection(firstList, secondList)) |
class InvalidParameter:
def __init__(self, reason: str):
self.reason = reason
| class Invalidparameter:
def __init__(self, reason: str):
self.reason = reason |
RESERVED_SUBSTITUTIONS = {
0x1D455: 0x210E, 0x1D49D: 0x212C, 0x1D4A0: 0x2130, 0x1D4A1: 0x2131,
0x1D4A3: 0x210B, 0x1D4A4: 0x2110, 0x1D4A7: 0x2112, 0x1D4A8: 0x2133,
0x1D4AD: 0x211B, 0x1D4BA: 0x212F, 0x1D4BC: 0x210A, 0x1D4C4: 0x2134,
0x1D506: 0x212D, 0x1D50B: 0x210C, 0x1D50C: 0x2111, 0x1D515: 0x211C,
0x1D51D: 0x2128, 0x1D53A: 0x2102, 0x1D53F: 0x210D, 0x1D545: 0x2115,
0x1D547: 0x2119, 0x1D548: 0x211A, 0x1D549: 0x211D, 0x1D551: 0x2124,
}
_chr = lambda n: chr(RESERVED_SUBSTITUTIONS.get(n, n))
MATHEMATICAL_BOLD_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D400, 0x1D41A)))
MATHEMATICAL_BOLD_SMALL_LETTERS = tuple(map(_chr, range(0x1D41A, 0x1D434)))
MATHEMATICAL_ITALIC_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D434, 0x1D44E)))
MATHEMATICAL_ITALIC_SMALL_LETTERS = tuple(map(_chr, range(0x1D44E, 0x1D468)))
MATHEMATICAL_BOLD_ITALIC_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D468, 0x1D482)))
MATHEMATICAL_BOLD_ITALIC_SMALL_LETTERS = tuple(map(_chr, range(0x1D482, 0x1D49C)))
MATHEMATICAL_SCRIPT_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D49C, 0x1D4B6)))
MATHEMATICAL_SCRIPT_SMALL_LETTERS = tuple(map(_chr, range(0x1D4B6, 0x1D4D0)))
MATHEMATICAL_BOLD_SCRIPT_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D4D0, 0x1D4EA)))
MATHEMATICAL_BOLD_SCRIPT_SMALL_LETTERS = tuple(map(_chr, range(0x1D4EA, 0x1D504)))
MATHEMATICAL_FRAKTUR_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D504, 0x1D51E)))
MATHEMATICAL_FRAKTUR_SMALL_LETTERS = tuple(map(_chr, range(0x1D51E, 0x1D538)))
MATHEMATICAL_DOUBLE_STRUCK_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D538, 0x1D552)))
MATHEMATICAL_DOUBLE_STRUCK_SMALL_LETTERS = tuple(map(_chr, range(0x1D552, 0x1D56C)))
MATHEMATICAL_BOLD_FRAKTUR_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D56C, 0x1D586)))
MATHEMATICAL_BOLD_FRAKTUR_SMALL_LETTERS = tuple(map(_chr, range(0x1D586, 0x1D5A0)))
MATHEMATICAL_SANS_SERIF_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D5A0, 0x1D5BA)))
MATHEMATICAL_SANS_SERIF_SMALL_LETTERS = tuple(map(_chr, range(0x1D5BA, 0x1D5D4)))
MATHEMATICAL_SANS_SERIF_BOLD_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D5D4, 0x1D5EE)))
MATHEMATICAL_SANS_SERIF_BOLD_SMALL_LETTERS = tuple(map(_chr, range(0x1D5EE, 0x1D608)))
MATHEMATICAL_SANS_SERIF_ITALIC_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D608, 0x1D622)))
MATHEMATICAL_SANS_SERIF_ITALIC_SMALL_LETTERS = tuple(map(_chr, range(0x1D622, 0x1D63C)))
MATHEMATICAL_SANS_SERIF_BOLD_ITALIC_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D63C, 0x1D656)))
MATHEMATICAL_SANS_SERIF_BOLD_ITALIC_SMALL_LETTERS = tuple(map(_chr, range(0x1D656, 0x1D670)))
MATHEMATICAL_MONOSPACE_CAPITAL_LETTERS = tuple(map(_chr, range(0x1D670, 0x1D68A)))
MATHEMATICAL_MONOSPACE_SMALL_LETTERS = tuple(map(_chr, range(0x1D68A, 0x1D6A4)))
MATHEMATICAL_BOLD_GREEK_LETTERS = tuple(map(_chr, range(0x1D6A8, 0x1D6E2)))
MATHEMATICAL_ITALIC_GREEK_LETTERS = tuple(map(_chr, range(0x1D6E2, 0x1D71C)))
MATHEMATICAL_BOLD_ITALIC_GREEK_LETTERS = tuple(map(_chr, range(0x1D71C, 0x1D756)))
MATHEMATICAL_SANS_SERIF_BOLD_GREEK_LETTERS = tuple(map(_chr, range(0x1D756, 0x1D790)))
MATHEMATICAL_SANS_SERIF_BOLD_ITALIC_GREEK_LETTERS = tuple(map(_chr, range(0x1D790, 0x1D7CA)))
MATHEMATICAL_BOLD_DIGITS = tuple(map(_chr, range(0x1D7CE, 0x1D7D8)))
MATHEMATICAL_DOUBLE_STRUCK_DIGITS = tuple(map(_chr, range(0x1D7D8, 0x1D7E2)))
MATHEMATICAL_SANS_SERIF_DIGITS = tuple(map(_chr, range(0x1D7E2, 0x1D7EC)))
MATHEMATICAL_SANS_SERIF_BOLD_DIGITS = tuple(map(_chr, range(0x1D7EC, 0x1D7F6)))
MATHEMATICAL_MONOSPACE_DIGITS = tuple(map(_chr, range(0x1D7F6, 0x1D800)))
# TODO:
# 1D6A4 MATHEMATICAL ITALIC SMALL DOTLESS I (\imath)
# 1D6A5 MATHEMATICAL ITALIC SMALL DOTLESS J (\jmath)
# 1D7CA MATHEMATICAL BOLD CAPITAL DIGAMMA (\Digamma)
# 1D7CB MATHEMATICAL BOLD SMALL DIGAMMA (\digamma)
LATEX_GREEK_COMMANDS = (
"\\\\Alpha", "\\\\Beta", "\\\\Gamma", "\\\\Delta", "\\\\Epsilon",
"\\\\Zeta", "\\\\Eta", "\\\\Theta", "\\\\Iota", "\\\\Kappa", "\\\\Lambda",
"\\\\Mu", "\\\\Nu", "\\\\Xi", "\\\\Omicron", "\\\\Pi", "\\\\Rho",
"\\\\varTheta", "\\\\Sigma", "\\\\Tau", "\\\\Upsilon", "\\\\Phi",
"\\\\Chi", "\\\\Psi", "\\\\Omega", "\\\\nabla", "\\\\alpha", "\\\\beta",
"\\\\gamma", "\\\\delta", "\\\\varepsilon", "\\\\zeta", "\\\\eta",
"\\\\theta", "\\\\iota", "\\\\kappa", "\\\\lambda", "\\\\mu", "\\\\nu",
"\\\\xi", "\\\\omicron", "\\\\pi", "\\\\rho", "\\\\varsigma", "\\\\sigma",
"\\\\tau", "\\\\upsilon", "\\\\varphi", "\\\\chi", "\\\\psi", "\\\\omega",
"\\\\partial", "\\\\epsilon", "\\\\vartheta", "\\\\varkappa", "\\\\phi",
"\\\\varrho", "\\\\varpi")
LATEX_STYLE_COMMANDS = {
("mathbf", "mathbfup", "symbf", "symbfup"): (MATHEMATICAL_BOLD_CAPITAL_LETTERS, MATHEMATICAL_BOLD_SMALL_LETTERS, MATHEMATICAL_BOLD_GREEK_LETTERS, MATHEMATICAL_BOLD_DIGITS),
("mathit", "mathnormal", "symit", "symnormal"): (MATHEMATICAL_ITALIC_CAPITAL_LETTERS, MATHEMATICAL_ITALIC_SMALL_LETTERS, MATHEMATICAL_ITALIC_GREEK_LETTERS, None),
("mathbfit", "symbfit", "boldsymbol", "bm"): (MATHEMATICAL_BOLD_ITALIC_CAPITAL_LETTERS, MATHEMATICAL_BOLD_ITALIC_SMALL_LETTERS, MATHEMATICAL_BOLD_ITALIC_GREEK_LETTERS, None),
("mathcal", "mathscr", "symcal", "symscr"): (MATHEMATICAL_SCRIPT_CAPITAL_LETTERS, MATHEMATICAL_SCRIPT_SMALL_LETTERS, None, None),
("mathbfcal", "mathbfscr", "symbfcal", "symbfscr"): (MATHEMATICAL_BOLD_SCRIPT_CAPITAL_LETTERS, MATHEMATICAL_BOLD_SCRIPT_SMALL_LETTERS, None, None),
("mathfrak", "symfrak"): (MATHEMATICAL_FRAKTUR_CAPITAL_LETTERS, MATHEMATICAL_FRAKTUR_SMALL_LETTERS, None, None),
("mathbb", "symbb", "Bbb"): (MATHEMATICAL_DOUBLE_STRUCK_CAPITAL_LETTERS, MATHEMATICAL_DOUBLE_STRUCK_SMALL_LETTERS, None, MATHEMATICAL_DOUBLE_STRUCK_DIGITS),
("mathbffrak", "symbffrak"): (MATHEMATICAL_BOLD_FRAKTUR_CAPITAL_LETTERS, MATHEMATICAL_BOLD_FRAKTUR_SMALL_LETTERS, None, None),
("mathsf", "mathsfup", "symsf", "symsfup"): (MATHEMATICAL_SANS_SERIF_CAPITAL_LETTERS, MATHEMATICAL_SANS_SERIF_SMALL_LETTERS, None, MATHEMATICAL_SANS_SERIF_DIGITS),
("mathbfsf", "symbfsf"): (MATHEMATICAL_SANS_SERIF_BOLD_CAPITAL_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_SMALL_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_GREEK_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_DIGITS),
("mathsfit", "symsfit"): (MATHEMATICAL_SANS_SERIF_ITALIC_CAPITAL_LETTERS, MATHEMATICAL_SANS_SERIF_ITALIC_SMALL_LETTERS, None, None),
("mathbfsfit", "symbfsfit"): (MATHEMATICAL_SANS_SERIF_BOLD_ITALIC_CAPITAL_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_ITALIC_SMALL_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_ITALIC_GREEK_LETTERS, None),
("mathtt", "symtt"): (MATHEMATICAL_MONOSPACE_CAPITAL_LETTERS, MATHEMATICAL_MONOSPACE_SMALL_LETTERS, None, MATHEMATICAL_MONOSPACE_DIGITS),
}
| reserved_substitutions = {119893: 8462, 119965: 8492, 119968: 8496, 119969: 8497, 119971: 8459, 119972: 8464, 119975: 8466, 119976: 8499, 119981: 8475, 119994: 8495, 119996: 8458, 120004: 8500, 120070: 8493, 120075: 8460, 120076: 8465, 120085: 8476, 120093: 8488, 120122: 8450, 120127: 8461, 120133: 8469, 120135: 8473, 120136: 8474, 120137: 8477, 120145: 8484}
_chr = lambda n: chr(RESERVED_SUBSTITUTIONS.get(n, n))
mathematical_bold_capital_letters = tuple(map(_chr, range(119808, 119834)))
mathematical_bold_small_letters = tuple(map(_chr, range(119834, 119860)))
mathematical_italic_capital_letters = tuple(map(_chr, range(119860, 119886)))
mathematical_italic_small_letters = tuple(map(_chr, range(119886, 119912)))
mathematical_bold_italic_capital_letters = tuple(map(_chr, range(119912, 119938)))
mathematical_bold_italic_small_letters = tuple(map(_chr, range(119938, 119964)))
mathematical_script_capital_letters = tuple(map(_chr, range(119964, 119990)))
mathematical_script_small_letters = tuple(map(_chr, range(119990, 120016)))
mathematical_bold_script_capital_letters = tuple(map(_chr, range(120016, 120042)))
mathematical_bold_script_small_letters = tuple(map(_chr, range(120042, 120068)))
mathematical_fraktur_capital_letters = tuple(map(_chr, range(120068, 120094)))
mathematical_fraktur_small_letters = tuple(map(_chr, range(120094, 120120)))
mathematical_double_struck_capital_letters = tuple(map(_chr, range(120120, 120146)))
mathematical_double_struck_small_letters = tuple(map(_chr, range(120146, 120172)))
mathematical_bold_fraktur_capital_letters = tuple(map(_chr, range(120172, 120198)))
mathematical_bold_fraktur_small_letters = tuple(map(_chr, range(120198, 120224)))
mathematical_sans_serif_capital_letters = tuple(map(_chr, range(120224, 120250)))
mathematical_sans_serif_small_letters = tuple(map(_chr, range(120250, 120276)))
mathematical_sans_serif_bold_capital_letters = tuple(map(_chr, range(120276, 120302)))
mathematical_sans_serif_bold_small_letters = tuple(map(_chr, range(120302, 120328)))
mathematical_sans_serif_italic_capital_letters = tuple(map(_chr, range(120328, 120354)))
mathematical_sans_serif_italic_small_letters = tuple(map(_chr, range(120354, 120380)))
mathematical_sans_serif_bold_italic_capital_letters = tuple(map(_chr, range(120380, 120406)))
mathematical_sans_serif_bold_italic_small_letters = tuple(map(_chr, range(120406, 120432)))
mathematical_monospace_capital_letters = tuple(map(_chr, range(120432, 120458)))
mathematical_monospace_small_letters = tuple(map(_chr, range(120458, 120484)))
mathematical_bold_greek_letters = tuple(map(_chr, range(120488, 120546)))
mathematical_italic_greek_letters = tuple(map(_chr, range(120546, 120604)))
mathematical_bold_italic_greek_letters = tuple(map(_chr, range(120604, 120662)))
mathematical_sans_serif_bold_greek_letters = tuple(map(_chr, range(120662, 120720)))
mathematical_sans_serif_bold_italic_greek_letters = tuple(map(_chr, range(120720, 120778)))
mathematical_bold_digits = tuple(map(_chr, range(120782, 120792)))
mathematical_double_struck_digits = tuple(map(_chr, range(120792, 120802)))
mathematical_sans_serif_digits = tuple(map(_chr, range(120802, 120812)))
mathematical_sans_serif_bold_digits = tuple(map(_chr, range(120812, 120822)))
mathematical_monospace_digits = tuple(map(_chr, range(120822, 120832)))
latex_greek_commands = ('\\\\Alpha', '\\\\Beta', '\\\\Gamma', '\\\\Delta', '\\\\Epsilon', '\\\\Zeta', '\\\\Eta', '\\\\Theta', '\\\\Iota', '\\\\Kappa', '\\\\Lambda', '\\\\Mu', '\\\\Nu', '\\\\Xi', '\\\\Omicron', '\\\\Pi', '\\\\Rho', '\\\\varTheta', '\\\\Sigma', '\\\\Tau', '\\\\Upsilon', '\\\\Phi', '\\\\Chi', '\\\\Psi', '\\\\Omega', '\\\\nabla', '\\\\alpha', '\\\\beta', '\\\\gamma', '\\\\delta', '\\\\varepsilon', '\\\\zeta', '\\\\eta', '\\\\theta', '\\\\iota', '\\\\kappa', '\\\\lambda', '\\\\mu', '\\\\nu', '\\\\xi', '\\\\omicron', '\\\\pi', '\\\\rho', '\\\\varsigma', '\\\\sigma', '\\\\tau', '\\\\upsilon', '\\\\varphi', '\\\\chi', '\\\\psi', '\\\\omega', '\\\\partial', '\\\\epsilon', '\\\\vartheta', '\\\\varkappa', '\\\\phi', '\\\\varrho', '\\\\varpi')
latex_style_commands = {('mathbf', 'mathbfup', 'symbf', 'symbfup'): (MATHEMATICAL_BOLD_CAPITAL_LETTERS, MATHEMATICAL_BOLD_SMALL_LETTERS, MATHEMATICAL_BOLD_GREEK_LETTERS, MATHEMATICAL_BOLD_DIGITS), ('mathit', 'mathnormal', 'symit', 'symnormal'): (MATHEMATICAL_ITALIC_CAPITAL_LETTERS, MATHEMATICAL_ITALIC_SMALL_LETTERS, MATHEMATICAL_ITALIC_GREEK_LETTERS, None), ('mathbfit', 'symbfit', 'boldsymbol', 'bm'): (MATHEMATICAL_BOLD_ITALIC_CAPITAL_LETTERS, MATHEMATICAL_BOLD_ITALIC_SMALL_LETTERS, MATHEMATICAL_BOLD_ITALIC_GREEK_LETTERS, None), ('mathcal', 'mathscr', 'symcal', 'symscr'): (MATHEMATICAL_SCRIPT_CAPITAL_LETTERS, MATHEMATICAL_SCRIPT_SMALL_LETTERS, None, None), ('mathbfcal', 'mathbfscr', 'symbfcal', 'symbfscr'): (MATHEMATICAL_BOLD_SCRIPT_CAPITAL_LETTERS, MATHEMATICAL_BOLD_SCRIPT_SMALL_LETTERS, None, None), ('mathfrak', 'symfrak'): (MATHEMATICAL_FRAKTUR_CAPITAL_LETTERS, MATHEMATICAL_FRAKTUR_SMALL_LETTERS, None, None), ('mathbb', 'symbb', 'Bbb'): (MATHEMATICAL_DOUBLE_STRUCK_CAPITAL_LETTERS, MATHEMATICAL_DOUBLE_STRUCK_SMALL_LETTERS, None, MATHEMATICAL_DOUBLE_STRUCK_DIGITS), ('mathbffrak', 'symbffrak'): (MATHEMATICAL_BOLD_FRAKTUR_CAPITAL_LETTERS, MATHEMATICAL_BOLD_FRAKTUR_SMALL_LETTERS, None, None), ('mathsf', 'mathsfup', 'symsf', 'symsfup'): (MATHEMATICAL_SANS_SERIF_CAPITAL_LETTERS, MATHEMATICAL_SANS_SERIF_SMALL_LETTERS, None, MATHEMATICAL_SANS_SERIF_DIGITS), ('mathbfsf', 'symbfsf'): (MATHEMATICAL_SANS_SERIF_BOLD_CAPITAL_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_SMALL_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_GREEK_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_DIGITS), ('mathsfit', 'symsfit'): (MATHEMATICAL_SANS_SERIF_ITALIC_CAPITAL_LETTERS, MATHEMATICAL_SANS_SERIF_ITALIC_SMALL_LETTERS, None, None), ('mathbfsfit', 'symbfsfit'): (MATHEMATICAL_SANS_SERIF_BOLD_ITALIC_CAPITAL_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_ITALIC_SMALL_LETTERS, MATHEMATICAL_SANS_SERIF_BOLD_ITALIC_GREEK_LETTERS, None), ('mathtt', 'symtt'): (MATHEMATICAL_MONOSPACE_CAPITAL_LETTERS, MATHEMATICAL_MONOSPACE_SMALL_LETTERS, None, MATHEMATICAL_MONOSPACE_DIGITS)} |
class Solution:
# @param A : tuple of integers
# @return an integer
def maxProduct(self, A):
m = -1
for i in range(len(A)):
p = A[i]
if p > m:
m = p
for j in range(i+1, len(A)):
a = A[i+1:j]
for k in a:
p *= k
if p > m:
m = p
return m
# print Solution().maxProduct([0]) | class Solution:
def max_product(self, A):
m = -1
for i in range(len(A)):
p = A[i]
if p > m:
m = p
for j in range(i + 1, len(A)):
a = A[i + 1:j]
for k in a:
p *= k
if p > m:
m = p
return m |
#a sample object
class animal:
#properties - details
size = 0
age = 0
color = ""
gender = ""
breed = ""
#actions
def __init__(self, size, age, color, gender, breed):
self.size = int(size)
self.age = int(age)
self.color = str(color)
self.gender = str(gender)
self.breed = str(breed)
def grow(self, growAmount):
self.size += growAmount
def getOlder(self):
self.age += 1
def dyeAnimal(self, color):
self.color = str(color) | class Animal:
size = 0
age = 0
color = ''
gender = ''
breed = ''
def __init__(self, size, age, color, gender, breed):
self.size = int(size)
self.age = int(age)
self.color = str(color)
self.gender = str(gender)
self.breed = str(breed)
def grow(self, growAmount):
self.size += growAmount
def get_older(self):
self.age += 1
def dye_animal(self, color):
self.color = str(color) |
grocery = ["Sugar", "Pizza", "Ice-Cream", 100]
print(grocery)
print(grocery[1])
numbers = [2, 5, 6, 9, 4]
print(numbers)
print(numbers[3])
print(numbers[0:4])
print(numbers[1:3])
print(numbers[::1])
print("\n")
numbers.sort()
print(numbers)
numbers.reverse()
print(numbers)
numbers.append(99)
print("\t", numbers)
numbers.insert(1, 1996)
print(numbers)
numbers.pop()
print(numbers) | grocery = ['Sugar', 'Pizza', 'Ice-Cream', 100]
print(grocery)
print(grocery[1])
numbers = [2, 5, 6, 9, 4]
print(numbers)
print(numbers[3])
print(numbers[0:4])
print(numbers[1:3])
print(numbers[::1])
print('\n')
numbers.sort()
print(numbers)
numbers.reverse()
print(numbers)
numbers.append(99)
print('\t', numbers)
numbers.insert(1, 1996)
print(numbers)
numbers.pop()
print(numbers) |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'target_defaults': {
'conditions': [
['use_x11 == 1', {
'include_dirs': [
'<(DEPTH)/third_party/angle/include',
],
}],
],
},
'targets': [
{
'target_name': 'surface',
'type': '<(component)',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/ui/gl/gl.gyp:gl',
'<(DEPTH)/ui/ui.gyp:ui',
],
'sources': [
'accelerated_surface_mac.cc',
'accelerated_surface_mac.h',
'accelerated_surface_win.cc',
'accelerated_surface_win.h',
'io_surface_support_mac.cc',
'io_surface_support_mac.h',
'surface_export.h',
'transport_dib.h',
'transport_dib_android.cc',
'transport_dib_linux.cc',
'transport_dib_mac.cc',
'transport_dib_win.cc',
],
'defines': [
'SURFACE_IMPLEMENTATION',
],
'conditions': [
['use_aura==1', {
'sources/': [
['exclude', 'accelerated_surface_win.cc'],
['exclude', 'accelerated_surface_win.h'],
],
}],
],
},
],
}
| {'variables': {'chromium_code': 1}, 'target_defaults': {'conditions': [['use_x11 == 1', {'include_dirs': ['<(DEPTH)/third_party/angle/include']}]]}, 'targets': [{'target_name': 'surface', 'type': '<(component)', 'dependencies': ['<(DEPTH)/base/base.gyp:base', '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', '<(DEPTH)/skia/skia.gyp:skia', '<(DEPTH)/ui/gl/gl.gyp:gl', '<(DEPTH)/ui/ui.gyp:ui'], 'sources': ['accelerated_surface_mac.cc', 'accelerated_surface_mac.h', 'accelerated_surface_win.cc', 'accelerated_surface_win.h', 'io_surface_support_mac.cc', 'io_surface_support_mac.h', 'surface_export.h', 'transport_dib.h', 'transport_dib_android.cc', 'transport_dib_linux.cc', 'transport_dib_mac.cc', 'transport_dib_win.cc'], 'defines': ['SURFACE_IMPLEMENTATION'], 'conditions': [['use_aura==1', {'sources/': [['exclude', 'accelerated_surface_win.cc'], ['exclude', 'accelerated_surface_win.h']]}]]}]} |
{ 'application':{ 'type':'Application',
'name':'Test Sounds',
'backgrounds':
[
{ 'type':'Background',
'name':'Test Sounds',
'title':'Test Sounds',
'position':( 5, 5 ),
'size':( 300, 200 ),
'menubar':
{
'type':'MenuBar',
'menus':
[
{ 'type':'Menu',
'name':'File',
'label':'&File',
'items': [
{ 'type':'MenuItem', 'name':'menuFileExit', 'label':'Exit', 'command':'exit' } ] }
]
},
'components':
[
{ 'type':'TextField', 'name':'fldFilename', 'position':( 5, 4 ), 'size':( 200, -1 ), 'text':'anykey.wav' },
{ 'type':'Button', 'name':'btnFile', 'position':( 210, 5 ), 'size':( -1, -1), 'label':'Select File' },
{ 'type':'Button', 'name':'btnPlay', 'position':( 5, 40 ), 'size':( -1, -1 ), 'label':'Play' },
{ 'type':'CheckBox', 'name':'chkAsync', 'position':( 5, 70 ), 'size':( -1, -1 ), 'label':'Async I/O', 'checked':0 },
{ 'type':'CheckBox', 'name':'chkLoop', 'position':( 5, 90 ), 'size':( -1, -1 ), 'label':'Loop sound', 'checked':0 },
]
}
]
}
}
| {'application': {'type': 'Application', 'name': 'Test Sounds', 'backgrounds': [{'type': 'Background', 'name': 'Test Sounds', 'title': 'Test Sounds', 'position': (5, 5), 'size': (300, 200), 'menubar': {'type': 'MenuBar', 'menus': [{'type': 'Menu', 'name': 'File', 'label': '&File', 'items': [{'type': 'MenuItem', 'name': 'menuFileExit', 'label': 'Exit', 'command': 'exit'}]}]}, 'components': [{'type': 'TextField', 'name': 'fldFilename', 'position': (5, 4), 'size': (200, -1), 'text': 'anykey.wav'}, {'type': 'Button', 'name': 'btnFile', 'position': (210, 5), 'size': (-1, -1), 'label': 'Select File'}, {'type': 'Button', 'name': 'btnPlay', 'position': (5, 40), 'size': (-1, -1), 'label': 'Play'}, {'type': 'CheckBox', 'name': 'chkAsync', 'position': (5, 70), 'size': (-1, -1), 'label': 'Async I/O', 'checked': 0}, {'type': 'CheckBox', 'name': 'chkLoop', 'position': (5, 90), 'size': (-1, -1), 'label': 'Loop sound', 'checked': 0}]}]}} |
'''
Date: 2021-06-24 10:56:59
LastEditors: Liuliang
LastEditTime: 2021-06-24 11:26:06
Description:
'''
class Node():
def __init__(self,item):
self.item = item
self.next = None
a = Node(1)
b = Node(2)
c = Node(3)
a.next = b
b.next = c
print(a.item)
print(a.next.item)
print(b.next.item)
print(c.next.item)
| """
Date: 2021-06-24 10:56:59
LastEditors: Liuliang
LastEditTime: 2021-06-24 11:26:06
Description:
"""
class Node:
def __init__(self, item):
self.item = item
self.next = None
a = node(1)
b = node(2)
c = node(3)
a.next = b
b.next = c
print(a.item)
print(a.next.item)
print(b.next.item)
print(c.next.item) |
n=input()
words=input()
words=words.lower()
lst=[]
for i in words:
if i not in lst:
lst.append(i)
print("YES") if len(lst)==26 else print("NO") | n = input()
words = input()
words = words.lower()
lst = []
for i in words:
if i not in lst:
lst.append(i)
print('YES') if len(lst) == 26 else print('NO') |
pkgname = "libexecinfo"
version = "1.1"
revision = 0
build_style = "gnu_makefile"
make_build_args = ["PREFIX=/usr"]
short_desc = "BSD licensed clone of the GNU libc backtrace facility"
maintainer = "q66 <q66@chimera-linux.org>"
license = "BSD-2-Clause"
homepage = "http://www.freshports.org/devel/libexecinfo"
distfiles = [f"http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-{version}.tar.bz2"]
checksum = ["c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f"]
options = ["!check"]
def do_install(self):
self.install_dir("usr/lib/pkgconfig")
self.install_dir("usr/include")
self.install_file("libexecinfo.pc", "usr/lib/pkgconfig")
self.install_file("execinfo.h", "usr/include")
self.install_file("stacktraverse.h", "usr/include")
self.install_file("libexecinfo.a", "usr/lib")
self.install_lib("libexecinfo.so.1")
self.install_link("libexecinfo.so.1", "usr/lib/libexecinfo.so")
@subpackage("libexecinfo-devel")
def _devel(self):
self.short_desc = short_desc + " - development files"
self.depends = [f"{pkgname}={version}-r{revision}"]
return [
"usr/include", "usr/lib/*.so", "usr/lib/*.a", "usr/lib/pkgconfig"
]
| pkgname = 'libexecinfo'
version = '1.1'
revision = 0
build_style = 'gnu_makefile'
make_build_args = ['PREFIX=/usr']
short_desc = 'BSD licensed clone of the GNU libc backtrace facility'
maintainer = 'q66 <q66@chimera-linux.org>'
license = 'BSD-2-Clause'
homepage = 'http://www.freshports.org/devel/libexecinfo'
distfiles = [f'http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-{version}.tar.bz2']
checksum = ['c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f']
options = ['!check']
def do_install(self):
self.install_dir('usr/lib/pkgconfig')
self.install_dir('usr/include')
self.install_file('libexecinfo.pc', 'usr/lib/pkgconfig')
self.install_file('execinfo.h', 'usr/include')
self.install_file('stacktraverse.h', 'usr/include')
self.install_file('libexecinfo.a', 'usr/lib')
self.install_lib('libexecinfo.so.1')
self.install_link('libexecinfo.so.1', 'usr/lib/libexecinfo.so')
@subpackage('libexecinfo-devel')
def _devel(self):
self.short_desc = short_desc + ' - development files'
self.depends = [f'{pkgname}={version}-r{revision}']
return ['usr/include', 'usr/lib/*.so', 'usr/lib/*.a', 'usr/lib/pkgconfig'] |
# -*- coding: utf-8 -*-
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.coverage'
]
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'python-troveclient'
copyright = u'2012, OpenStack Foundation'
exclude_trees = []
pygments_style = 'sphinx'
html_theme = 'default'
html_static_path = ['_static']
htmlhelp_basename = 'python-troveclientdoc'
latex_documents = [
('index', 'python-troveclient.tex', u'python-troveclient Documentation',
u'OpenStack', 'manual'),
]
| extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.coverage']
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'python-troveclient'
copyright = u'2012, OpenStack Foundation'
exclude_trees = []
pygments_style = 'sphinx'
html_theme = 'default'
html_static_path = ['_static']
htmlhelp_basename = 'python-troveclientdoc'
latex_documents = [('index', 'python-troveclient.tex', u'python-troveclient Documentation', u'OpenStack', 'manual')] |
#Excersie 1.1
str1 = "JohnDipPeta"
newstr1 = list(str1)
output = None
for i in range (0,len(newstr1)):
if(newstr1[i]=="D" and newstr1[i+1]=='i' and newstr1[i+2]=='p'):
output = newstr1[i]+ newstr1[i+1]+newstr1[i+2]
print(output)
#Excersie 2
#Given 2 strings, s1 and s2, create a new string by appending s2 in the middle of s1
s1 = "Ault"
s2 = "Kelly"
result=s1[0:2]+s2+s1[2:4]
print(result)
#Excersie 3
#Given an input string with the combination of the lower
# and upper case arrange characters in such a way that all
# lowercase letters should come first.
def makeString(str):
lowerWord = ""
upperWord = ""
result = ""
for word in range (len(str)):
if str[word].islower() == True:
lowerWord +=str[word]
elif str[word].isupper() == True:
upperWord +=str[word]
result = lowerWord + upperWord
return result
value = "PyNaTive"
res = makeString(value)
print(res)
#Excersie 4
# Count all lower case, upper case,
# digits, and special symbols from a
# given string
def showWord(str):
digits = ""
words = ""
symbhols = ""
for word in str:
if word.isdigit()==True:
digits+=word
elif word.islower() or word.isupper():
words += word
else:
symbhols +=word
#result = [digits,words,symbhols]
result = {'numbers':digits,'strings':words,'sym':symbhols}
return result
mainStr = "P@#yn26at^&i5ve"
count =showWord(mainStr)
print(f'the count of numeric words {len(count["numbers"])}')
print(f'the count of words {len(count["strings"])}')
print(f'the count of symbhols {len(count["sym"])}')
#Excersie 5
#create a third-string made of the
# first char of s1 then the last char of s2,
# Next, the second char of s1 and second last char of s2,
# and so on. Any leftover chars go at the end of the result.
def mixFunction(str1,str2):
result = str1[0]+str2[-1]+str1[1]+str2[-2]+str1[2:]+str2[-2:]
return result
s1="Abc"
s2="Xyz"
res = mixFunction(s1,s2)
print(res)
#Excersie 6
#String characters balance Test
def checkBalance(str1,str2):
charList = [str1,str2]
for char in str1:
print(char)
s1="Pycharm"
s2 = "Pyhcharm"
res = checkBalance(s1,s2)
| str1 = 'JohnDipPeta'
newstr1 = list(str1)
output = None
for i in range(0, len(newstr1)):
if newstr1[i] == 'D' and newstr1[i + 1] == 'i' and (newstr1[i + 2] == 'p'):
output = newstr1[i] + newstr1[i + 1] + newstr1[i + 2]
print(output)
s1 = 'Ault'
s2 = 'Kelly'
result = s1[0:2] + s2 + s1[2:4]
print(result)
def make_string(str):
lower_word = ''
upper_word = ''
result = ''
for word in range(len(str)):
if str[word].islower() == True:
lower_word += str[word]
elif str[word].isupper() == True:
upper_word += str[word]
result = lowerWord + upperWord
return result
value = 'PyNaTive'
res = make_string(value)
print(res)
def show_word(str):
digits = ''
words = ''
symbhols = ''
for word in str:
if word.isdigit() == True:
digits += word
elif word.islower() or word.isupper():
words += word
else:
symbhols += word
result = {'numbers': digits, 'strings': words, 'sym': symbhols}
return result
main_str = 'P@#yn26at^&i5ve'
count = show_word(mainStr)
print(f"the count of numeric words {len(count['numbers'])}")
print(f"the count of words {len(count['strings'])}")
print(f"the count of symbhols {len(count['sym'])}")
def mix_function(str1, str2):
result = str1[0] + str2[-1] + str1[1] + str2[-2] + str1[2:] + str2[-2:]
return result
s1 = 'Abc'
s2 = 'Xyz'
res = mix_function(s1, s2)
print(res)
def check_balance(str1, str2):
char_list = [str1, str2]
for char in str1:
print(char)
s1 = 'Pycharm'
s2 = 'Pyhcharm'
res = check_balance(s1, s2) |
# Copyright (c) 2017 Dustin Doloff
# Licensed under Apache License v2.0
load(
"//actions:actions.bzl",
"stamp_file",
)
load(
"//assert:assert.bzl",
"assert_files_equal",
)
load(
"//rules:rules.bzl",
"generate_file",
"zip_files",
"zip_runfiles",
)
def run_all_tests():
test_generate_file()
test_zip_files()
test_zip_runfiles()
def test_generate_file():
test_generate_bin_file()
test_generate_gen_file()
def test_generate_bin_file():
generate_file(
name = "test_generate_bin_file",
contents = "contents",
bin_file = True,
file = "test_generate_bin_file.txt",
)
assert_files_equal("data/contents.txt", ":test_generate_bin_file")
def test_generate_gen_file():
generate_file(
name = "test_generate_gen_file",
contents = "contents",
bin_file = False,
file = "test_generate_gen_file.txt",
)
assert_files_equal("data/contents.txt", ":test_generate_gen_file")
def test_zip_files():
test_empty()
test_full()
test_full_strip()
test_generated_paths()
test_generated_paths_strip()
def test_empty():
zip_files(
name = "test_zip_files_empty",
srcs = [],
)
assert_files_equal("data/empty.zip", ":test_zip_files_empty")
def test_full():
zip_files(
name = "test_zip_files_full",
srcs = [
"data/file.txt",
"data/template.txt",
":test_generate_bin_file",
":test_generate_gen_file",
],
)
assert_files_equal("data/full.zip", ":test_zip_files_full")
def test_full_strip():
zip_files(
name = "test_zip_files_full_strip",
srcs = [
"data/file.txt",
"data/template.txt",
":test_generate_bin_file",
":test_generate_gen_file",
],
strip_prefixes = [
"test/",
"test/data/",
],
)
assert_files_equal("data/flat.zip", ":test_zip_files_full_strip")
def _stamp_file_rule_impl(ctx):
stamp_file(ctx, ctx.outputs.stamp_file)
_stamp_file_rule = rule(
outputs = {
"stamp_file": "%{name}.stamp",
},
implementation = _stamp_file_rule_impl,
)
def test_generated_paths():
_stamp_file_rule(
name = "generated_paths_stamp",
)
zip_files(
name = "test_generated_paths",
srcs = [
":generated_paths_stamp",
],
)
assert_files_equal("data/nested.zip", ":test_generated_paths")
def test_generated_paths_strip():
_stamp_file_rule(
name = "generated_paths_stamp_strip",
)
zip_files(
name = "test_generated_paths_strip",
srcs = [
":generated_paths_stamp_strip",
],
strip_prefixes = [
"test",
],
)
assert_files_equal("data/nested_stripped.zip", ":test_generated_paths_strip")
def test_zip_runfiles():
test_zip_runfiles_deps()
test_simple_zip_runfiles()
test_single_dep_zip_runfiles()
test_complex_zip_runfiles()
def test_zip_runfiles_deps():
native.py_library(
name = "simple_library",
srcs = ["data/test.py"],
)
native.py_library(
name = "single_dep_library",
srcs = ["data/test.py"],
data = ["data/file.txt"],
)
native.py_binary(
name = "complex_binary",
srcs = ["data/other.py"],
main = "data/other.py",
deps = [
":simple_library",
":single_dep_library",
],
data = [
"data/empty.txt",
"@markup_safe//:markup_safe",
],
)
def test_simple_zip_runfiles():
zip_runfiles(
name = "test_simple_library_runfiles",
py_library = ":simple_library",
)
assert_files_equal("data/expected_simple_library_runfiles.zip", ":test_simple_library_runfiles")
def test_single_dep_zip_runfiles():
zip_runfiles(
name = "test_single_dep_runfiles",
py_library = ":single_dep_library",
)
assert_files_equal("data/expected_single_dep_runfiles.zip", ":test_single_dep_runfiles")
def test_complex_zip_runfiles():
zip_runfiles(
name = "test_complex_runfiles",
py_library = ":complex_binary",
)
assert_files_equal("data/expected_complex_binary_runfiles.zip", ":test_complex_runfiles")
| load('//actions:actions.bzl', 'stamp_file')
load('//assert:assert.bzl', 'assert_files_equal')
load('//rules:rules.bzl', 'generate_file', 'zip_files', 'zip_runfiles')
def run_all_tests():
test_generate_file()
test_zip_files()
test_zip_runfiles()
def test_generate_file():
test_generate_bin_file()
test_generate_gen_file()
def test_generate_bin_file():
generate_file(name='test_generate_bin_file', contents='contents', bin_file=True, file='test_generate_bin_file.txt')
assert_files_equal('data/contents.txt', ':test_generate_bin_file')
def test_generate_gen_file():
generate_file(name='test_generate_gen_file', contents='contents', bin_file=False, file='test_generate_gen_file.txt')
assert_files_equal('data/contents.txt', ':test_generate_gen_file')
def test_zip_files():
test_empty()
test_full()
test_full_strip()
test_generated_paths()
test_generated_paths_strip()
def test_empty():
zip_files(name='test_zip_files_empty', srcs=[])
assert_files_equal('data/empty.zip', ':test_zip_files_empty')
def test_full():
zip_files(name='test_zip_files_full', srcs=['data/file.txt', 'data/template.txt', ':test_generate_bin_file', ':test_generate_gen_file'])
assert_files_equal('data/full.zip', ':test_zip_files_full')
def test_full_strip():
zip_files(name='test_zip_files_full_strip', srcs=['data/file.txt', 'data/template.txt', ':test_generate_bin_file', ':test_generate_gen_file'], strip_prefixes=['test/', 'test/data/'])
assert_files_equal('data/flat.zip', ':test_zip_files_full_strip')
def _stamp_file_rule_impl(ctx):
stamp_file(ctx, ctx.outputs.stamp_file)
_stamp_file_rule = rule(outputs={'stamp_file': '%{name}.stamp'}, implementation=_stamp_file_rule_impl)
def test_generated_paths():
_stamp_file_rule(name='generated_paths_stamp')
zip_files(name='test_generated_paths', srcs=[':generated_paths_stamp'])
assert_files_equal('data/nested.zip', ':test_generated_paths')
def test_generated_paths_strip():
_stamp_file_rule(name='generated_paths_stamp_strip')
zip_files(name='test_generated_paths_strip', srcs=[':generated_paths_stamp_strip'], strip_prefixes=['test'])
assert_files_equal('data/nested_stripped.zip', ':test_generated_paths_strip')
def test_zip_runfiles():
test_zip_runfiles_deps()
test_simple_zip_runfiles()
test_single_dep_zip_runfiles()
test_complex_zip_runfiles()
def test_zip_runfiles_deps():
native.py_library(name='simple_library', srcs=['data/test.py'])
native.py_library(name='single_dep_library', srcs=['data/test.py'], data=['data/file.txt'])
native.py_binary(name='complex_binary', srcs=['data/other.py'], main='data/other.py', deps=[':simple_library', ':single_dep_library'], data=['data/empty.txt', '@markup_safe//:markup_safe'])
def test_simple_zip_runfiles():
zip_runfiles(name='test_simple_library_runfiles', py_library=':simple_library')
assert_files_equal('data/expected_simple_library_runfiles.zip', ':test_simple_library_runfiles')
def test_single_dep_zip_runfiles():
zip_runfiles(name='test_single_dep_runfiles', py_library=':single_dep_library')
assert_files_equal('data/expected_single_dep_runfiles.zip', ':test_single_dep_runfiles')
def test_complex_zip_runfiles():
zip_runfiles(name='test_complex_runfiles', py_library=':complex_binary')
assert_files_equal('data/expected_complex_binary_runfiles.zip', ':test_complex_runfiles') |
expected_output={
"replicate_oce": {
"0x7F9E40C590C8": {
"uid": 6889
},
"0x7F9E40C59340": {
"uid": 6888
}
}
}
| expected_output = {'replicate_oce': {'0x7F9E40C590C8': {'uid': 6889}, '0x7F9E40C59340': {'uid': 6888}}} |
# Return lines from a file
def getFileLines(file):
f = open(file, "r")
lines = f.readlines()
f.close
return lines | def get_file_lines(file):
f = open(file, 'r')
lines = f.readlines()
f.close
return lines |
expected_output = {
"channel_assignment": {
"chan_assn_mode": "AUTO",
"chan_upd_int": "12 Hours",
"anchor_time_hour": 7,
"channel_update_contribution" : {
"channel_noise": "Enable",
"channel_interference": "Enable",
"channel_load": "Disable",
"device_aware": "Disable",
},
"clean_air": "Disabled",
"wlc_leader_name": "sj-00a-ewlc1",
"wlc_leader_ip": "10.7.5.133",
"last_run_seconds": 15995,
"dca_level": "MEDIUM",
"dca_db": 15,
"chan_width_mhz": 80,
"max_chan_width_mhz": 80,
"dca_min_energy_dbm": -95.0,
"channel_energy_levels" : {
"min_dbm": -94.0,
"average_dbm": -82.0,
"max_dbm": -81.0,
},
"channel_dwell_times" : {
"minimum": "4 hours 9 minutes 54 seconds",
"average": "4 hours 24 minutes 54 seconds",
"max": "4 hours 26 minutes 35 seconds",
},
"allowed_channel_list": "36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,144,149,153,157,161",
"unused_channel_list": "165",
}
}
| expected_output = {'channel_assignment': {'chan_assn_mode': 'AUTO', 'chan_upd_int': '12 Hours', 'anchor_time_hour': 7, 'channel_update_contribution': {'channel_noise': 'Enable', 'channel_interference': 'Enable', 'channel_load': 'Disable', 'device_aware': 'Disable'}, 'clean_air': 'Disabled', 'wlc_leader_name': 'sj-00a-ewlc1', 'wlc_leader_ip': '10.7.5.133', 'last_run_seconds': 15995, 'dca_level': 'MEDIUM', 'dca_db': 15, 'chan_width_mhz': 80, 'max_chan_width_mhz': 80, 'dca_min_energy_dbm': -95.0, 'channel_energy_levels': {'min_dbm': -94.0, 'average_dbm': -82.0, 'max_dbm': -81.0}, 'channel_dwell_times': {'minimum': '4 hours 9 minutes 54 seconds', 'average': '4 hours 24 minutes 54 seconds', 'max': '4 hours 26 minutes 35 seconds'}, 'allowed_channel_list': '36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,144,149,153,157,161', 'unused_channel_list': '165'}} |
# Example: list media files and save any with the name `dog` in file name
media_list = api.get_media_files()
for media in media_list:
if 'dog' in media['mediaName'].lower():
stream, content_type = api.download_media_file(media['mediaName'])
with io.open(media['mediaName'], 'wb') as file:
file.write(stream.read())
| media_list = api.get_media_files()
for media in media_list:
if 'dog' in media['mediaName'].lower():
(stream, content_type) = api.download_media_file(media['mediaName'])
with io.open(media['mediaName'], 'wb') as file:
file.write(stream.read()) |
def de(fobj, bounds, mut=0.8, crossp=0.7, popsize=20, its=1000):
dimensions = len(bounds)
pop = np.random.rand(popsize, dimensions)
min_b, max_b = np.asarray(bounds).T
diff = np.fabs(min_b - max_b)
pop_denorm = min_b + pop * diff
fitness = np.asarray([fobj(ind) for ind in pop_denorm])
best_idx = np.argmin(fitness)
best = pop_denorm[best_idx]
for i in range(its):
for j in range(popsize):
idxs = [idx for idx in range(popsize) if idx != j]
a, b, c = pop[np.random.choice(idxs, 3, replace=False)]
mutant = np.clip(a + mut * (b - c), 0, 1)
cross_points = np.random.rand(dimensions) < crossp
if not np.any(cross_points):
cross_points[np.random.randint(0, dimensions)] = True
trial = np.where(cross_points, mutant, pop[j])
trial_denorm = min_b + trial * diff
f = fobj(trial_denorm)
if f < fitness[j]:
fitness[j] = f
pop[j] = trial
if f < fitness[best_idx]:
best_idx = j
best = trial_denorm
yield best, fitness[best_idx]
| def de(fobj, bounds, mut=0.8, crossp=0.7, popsize=20, its=1000):
dimensions = len(bounds)
pop = np.random.rand(popsize, dimensions)
(min_b, max_b) = np.asarray(bounds).T
diff = np.fabs(min_b - max_b)
pop_denorm = min_b + pop * diff
fitness = np.asarray([fobj(ind) for ind in pop_denorm])
best_idx = np.argmin(fitness)
best = pop_denorm[best_idx]
for i in range(its):
for j in range(popsize):
idxs = [idx for idx in range(popsize) if idx != j]
(a, b, c) = pop[np.random.choice(idxs, 3, replace=False)]
mutant = np.clip(a + mut * (b - c), 0, 1)
cross_points = np.random.rand(dimensions) < crossp
if not np.any(cross_points):
cross_points[np.random.randint(0, dimensions)] = True
trial = np.where(cross_points, mutant, pop[j])
trial_denorm = min_b + trial * diff
f = fobj(trial_denorm)
if f < fitness[j]:
fitness[j] = f
pop[j] = trial
if f < fitness[best_idx]:
best_idx = j
best = trial_denorm
yield (best, fitness[best_idx]) |
#This program is for practicing lists
#Take a list, say for example this one:
#a = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
#and write a program that prints out all the elements of the list that are less than 5.
a = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = len(a)
new1 = []
print ("Number of elements in a is %d" %b)
for i in range (0,b):
if a[i]<5:
new1.append(a[i])
print(new1)
#below codes requires user to enter the list
new =[]
for i in range(0,10):
x = int(input("enter the %d th element of the list:" %i))
new.append(x)
print(new)
new2 = []
for i in range(0,len(new)):
if new[i]<5:
new2.append(new[i])
print(new2)
| a = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = len(a)
new1 = []
print('Number of elements in a is %d' % b)
for i in range(0, b):
if a[i] < 5:
new1.append(a[i])
print(new1)
new = []
for i in range(0, 10):
x = int(input('enter the %d th element of the list:' % i))
new.append(x)
print(new)
new2 = []
for i in range(0, len(new)):
if new[i] < 5:
new2.append(new[i])
print(new2) |
a = [1,2,3]
b = [4,5,6]
print(a+b)
print(a)
print(a*2)
print(a*3)
print(b*2)
print(b*3)
print(1 in a)
print(2 in a)
print(3 in a)
print(4 in a) | a = [1, 2, 3]
b = [4, 5, 6]
print(a + b)
print(a)
print(a * 2)
print(a * 3)
print(b * 2)
print(b * 3)
print(1 in a)
print(2 in a)
print(3 in a)
print(4 in a) |
# encoding: utf-8
__all__ = ['LoggingTransport']
log = __import__('logging').getLogger(__name__)
class LoggingTransport(object):
__slots__ = ('ephemeral', 'log')
def __init__(self, config):
self.log = log if 'name' not in config else __import__('logging').getLogger(config.name)
def startup(self):
log.debug("Logging transport starting.")
def deliver(self, message):
msg = str(message)
self.log.info("DELIVER %s %s %d %r %r", message.id, message.date.isoformat(),
len(msg), message.author, message.recipients)
self.log.critical(msg)
def shutdown(self):
log.debug("Logging transport stopping.")
| __all__ = ['LoggingTransport']
log = __import__('logging').getLogger(__name__)
class Loggingtransport(object):
__slots__ = ('ephemeral', 'log')
def __init__(self, config):
self.log = log if 'name' not in config else __import__('logging').getLogger(config.name)
def startup(self):
log.debug('Logging transport starting.')
def deliver(self, message):
msg = str(message)
self.log.info('DELIVER %s %s %d %r %r', message.id, message.date.isoformat(), len(msg), message.author, message.recipients)
self.log.critical(msg)
def shutdown(self):
log.debug('Logging transport stopping.') |
## 2. Syntax Errors ##
def first_elts(input_lst):
elts = []
for each in input_lst:
elts.append(each)
return elts
animals = [["dog","cat","rabbit"],["turtle","snake"], ["sloth","penguin","bird"]]
first_animal = first_elts(animals)
print(first_animal)
## 4. TypeError and ValueError ##
forty_two = "42"
forty_two + 42
int("guardians")
## 5. IndexError and AttributeError ##
# Default code containing errors
lives = [1,2,3]
first_life = lives[0]
f = open("story.txt")
story = f.read()
split_story = story.split("\n")
## 6. Traceback ##
def summary_statistics(input_lst):
num_japan_films = feature_counter(input_lst,6,"Japan",True)
num_color_films = feature_counter(input_lst,2,"Color",True)
num_films_in_english = feature_counter(input_lst,5,"English",True)
summary_dict = {"japan_films" : num_japan_films, "color_films" : num_color_films, "films_in_english" : num_films_in_english}
return summary_dict
def feature_counter(input_lst,index, input_str, header_row = False):
num_elt = 0
if header_row == True:
input_lst = input_lst[1:len(input_lst)]
for each in input_lst:
if each[index] == input_str:
num_elt = num_elt + 1
return num_elt
summary = summary_statistics(movie_data)
print(summary) | def first_elts(input_lst):
elts = []
for each in input_lst:
elts.append(each)
return elts
animals = [['dog', 'cat', 'rabbit'], ['turtle', 'snake'], ['sloth', 'penguin', 'bird']]
first_animal = first_elts(animals)
print(first_animal)
forty_two = '42'
forty_two + 42
int('guardians')
lives = [1, 2, 3]
first_life = lives[0]
f = open('story.txt')
story = f.read()
split_story = story.split('\n')
def summary_statistics(input_lst):
num_japan_films = feature_counter(input_lst, 6, 'Japan', True)
num_color_films = feature_counter(input_lst, 2, 'Color', True)
num_films_in_english = feature_counter(input_lst, 5, 'English', True)
summary_dict = {'japan_films': num_japan_films, 'color_films': num_color_films, 'films_in_english': num_films_in_english}
return summary_dict
def feature_counter(input_lst, index, input_str, header_row=False):
num_elt = 0
if header_row == True:
input_lst = input_lst[1:len(input_lst)]
for each in input_lst:
if each[index] == input_str:
num_elt = num_elt + 1
return num_elt
summary = summary_statistics(movie_data)
print(summary) |
'''
Assignment: Create functions that serialize/deserialize objects to/from a stream of data. Additionally, create a function
that retrieves a given value from the stream of data.
All objects have a flat structure that is described by a schema. Objects needn't have all fields, in such a case, the default
value is assumed. The example of a schema is given below:
schema = [
{
"id": "name",
"default": "<UNNAMED>"
},
{
"id": "width",
"default": 10
},
{
"id": "height",
"default": 10
}
]
-----------------------------------------------------------------------------------------------------------------------
Usage example:
-----------------------------------------------------------------------------------------------------------------------
sample_structured_data = [
{
"name": "Rectangle 1",
"width": 12,
"height": 20
},
{
"name": "Rectangle 2",
"height": 20
},
{
"name": "Rectangle 3"
},
{
}
]
sample_serialized_data = ['Rectangle 1', 12, 20, 'Rectangle 2', 10, 20, 'Rectangle 3', 10, 10, '<UNNAMED>', 10, 10]
print(serialize_data(sample_structured_data))
# Prints: ['Rectangle 1', 12, 20, 'Rectangle 2', 10, 20, 'Rectangle 3', 10, 10, '<UNNAMED>', 10, 10]
print(deserialize_data(sample_serialized_data))
# Prints: [{'name': 'Rectangle 1', 'width': 12, 'height': 20}, {'name': 'Rectangle 2', 'width': 10, 'height': 20}, {'name': 'Rectangle 3', 'width': 10, 'height': 10}, {'name': '<UNNAMED>', 'width': 10, 'height': 10}]
print(get_from_serialized_data(sample_serialized_data, "width", 2))
# Prints: 10
'''
schema = [
{
"id": "name",
"default": "<UNNAMED>"
},
{
"id": "width",
"default": 10
},
{
"id": "height",
"default": 10
}
]
schema_len = len(schema)
schema_by_ids = {
field_schema["id"]: {"idx": field_idx, "default": field_schema["default"]} for field_idx, field_schema in enumerate(schema)
}
def serialize_data(data):
stream = []
for record in data:
for field_schema in schema:
field_id = field_schema["id"]
val = record[field_id] if field_id in record else field_schema["default"]
stream.append(val)
return stream
def deserialize_data(stream):
data = []
records = [stream[i:i + schema_len] for i in range(0, len(stream), schema_len)]
for record in records:
output_record = {}
for val, field_schema in zip(record, schema):
field_id = field_schema["id"]
output_record[field_id] = val
data.append(output_record)
return data
def get_from_serialized_data(stream, field_id, record_idx):
field_schema = schema_by_ids[field_id]
stream_offset = record_idx * schema_len + field_schema["idx"]
return stream[stream_offset]
sample_structured_data = [
{
"name": "Rectangle 1",
"width": 12,
"height": 20
},
{
"name": "Rectangle 2",
"height": 20
},
{
"name": "Rectangle 3"
},
{
}
]
sample_serialized_data = ['Rectangle 1', 12, 20, 'Rectangle 2', 10, 20, 'Rectangle 3', 10, 10, '<UNNAMED>', 10, 10]
print(serialize_data(sample_structured_data))
print(deserialize_data(sample_serialized_data))
print(get_from_serialized_data(sample_serialized_data, "width", 2)) | """
Assignment: Create functions that serialize/deserialize objects to/from a stream of data. Additionally, create a function
that retrieves a given value from the stream of data.
All objects have a flat structure that is described by a schema. Objects needn't have all fields, in such a case, the default
value is assumed. The example of a schema is given below:
schema = [
{
"id": "name",
"default": "<UNNAMED>"
},
{
"id": "width",
"default": 10
},
{
"id": "height",
"default": 10
}
]
-----------------------------------------------------------------------------------------------------------------------
Usage example:
-----------------------------------------------------------------------------------------------------------------------
sample_structured_data = [
{
"name": "Rectangle 1",
"width": 12,
"height": 20
},
{
"name": "Rectangle 2",
"height": 20
},
{
"name": "Rectangle 3"
},
{
}
]
sample_serialized_data = ['Rectangle 1', 12, 20, 'Rectangle 2', 10, 20, 'Rectangle 3', 10, 10, '<UNNAMED>', 10, 10]
print(serialize_data(sample_structured_data))
# Prints: ['Rectangle 1', 12, 20, 'Rectangle 2', 10, 20, 'Rectangle 3', 10, 10, '<UNNAMED>', 10, 10]
print(deserialize_data(sample_serialized_data))
# Prints: [{'name': 'Rectangle 1', 'width': 12, 'height': 20}, {'name': 'Rectangle 2', 'width': 10, 'height': 20}, {'name': 'Rectangle 3', 'width': 10, 'height': 10}, {'name': '<UNNAMED>', 'width': 10, 'height': 10}]
print(get_from_serialized_data(sample_serialized_data, "width", 2))
# Prints: 10
"""
schema = [{'id': 'name', 'default': '<UNNAMED>'}, {'id': 'width', 'default': 10}, {'id': 'height', 'default': 10}]
schema_len = len(schema)
schema_by_ids = {field_schema['id']: {'idx': field_idx, 'default': field_schema['default']} for (field_idx, field_schema) in enumerate(schema)}
def serialize_data(data):
stream = []
for record in data:
for field_schema in schema:
field_id = field_schema['id']
val = record[field_id] if field_id in record else field_schema['default']
stream.append(val)
return stream
def deserialize_data(stream):
data = []
records = [stream[i:i + schema_len] for i in range(0, len(stream), schema_len)]
for record in records:
output_record = {}
for (val, field_schema) in zip(record, schema):
field_id = field_schema['id']
output_record[field_id] = val
data.append(output_record)
return data
def get_from_serialized_data(stream, field_id, record_idx):
field_schema = schema_by_ids[field_id]
stream_offset = record_idx * schema_len + field_schema['idx']
return stream[stream_offset]
sample_structured_data = [{'name': 'Rectangle 1', 'width': 12, 'height': 20}, {'name': 'Rectangle 2', 'height': 20}, {'name': 'Rectangle 3'}, {}]
sample_serialized_data = ['Rectangle 1', 12, 20, 'Rectangle 2', 10, 20, 'Rectangle 3', 10, 10, '<UNNAMED>', 10, 10]
print(serialize_data(sample_structured_data))
print(deserialize_data(sample_serialized_data))
print(get_from_serialized_data(sample_serialized_data, 'width', 2)) |
async def run(plugin, ctx):
plugin.db.configs.update(ctx.guild.id, "persist", True)
await ctx.send(plugin.t(ctx.guild, "enabled_module_no_channel", _emote="YES", module="Persist")) | async def run(plugin, ctx):
plugin.db.configs.update(ctx.guild.id, 'persist', True)
await ctx.send(plugin.t(ctx.guild, 'enabled_module_no_channel', _emote='YES', module='Persist')) |
def attation(proto_layers, layer_infos, edges_info, attation_num):
for proto_index, proto_layer in enumerate(proto_layers):
for key, layer_info in layer_infos.items():
if layer_info['name'] == proto_layer.name:
cur_layer_info = layer_info
break
cur_data = layer_info['data']
for edge in edges_info:
if edge['to-layer'] == cur_layer_info['id']:
top_name = layer_infos[int(edge['to-layer'])]['name']
if not top_name in proto_layer.top:
proto_layer.top.append(top_name)
bottom_name = layer_infos[int(edge['from-layer']) - proto_index - attation_num]['name']
if not bottom_name in proto_layer.bottom:
proto_layer.bottom.append(bottom_name)
if proto_index == 0:
proto_layer_shape = proto_layer.reshape_param.shape
proto_layer_shape.dim.append(0)
proto_layer_shape.dim.append(0)
else:
proto_layer.type = 'Scale'
proto_layer.scale_param.axis = 0
proto_layer.scale_param.bias_term = False
| def attation(proto_layers, layer_infos, edges_info, attation_num):
for (proto_index, proto_layer) in enumerate(proto_layers):
for (key, layer_info) in layer_infos.items():
if layer_info['name'] == proto_layer.name:
cur_layer_info = layer_info
break
cur_data = layer_info['data']
for edge in edges_info:
if edge['to-layer'] == cur_layer_info['id']:
top_name = layer_infos[int(edge['to-layer'])]['name']
if not top_name in proto_layer.top:
proto_layer.top.append(top_name)
bottom_name = layer_infos[int(edge['from-layer']) - proto_index - attation_num]['name']
if not bottom_name in proto_layer.bottom:
proto_layer.bottom.append(bottom_name)
if proto_index == 0:
proto_layer_shape = proto_layer.reshape_param.shape
proto_layer_shape.dim.append(0)
proto_layer_shape.dim.append(0)
else:
proto_layer.type = 'Scale'
proto_layer.scale_param.axis = 0
proto_layer.scale_param.bias_term = False |
def main():
n, m = map(int, input().split())
if n < m:
print(f"Dr. Chaz will have {m-n} piece{'' if m-n == 1 else 's'} of chicken left over!")
else:
print(f"Dr. Chaz needs {n-m} more piece{'' if n-m == 1 else 's'} of chicken!")
return
if __name__ == "__main__":
main()
| def main():
(n, m) = map(int, input().split())
if n < m:
print(f"Dr. Chaz will have {m - n} piece{('' if m - n == 1 else 's')} of chicken left over!")
else:
print(f"Dr. Chaz needs {n - m} more piece{('' if n - m == 1 else 's')} of chicken!")
return
if __name__ == '__main__':
main() |
data = int(input("Num : "))
max = 12
min = 1
while min<=max:
print("%d * %d = %d" % (data,min,data*min))
min+=1
| data = int(input('Num : '))
max = 12
min = 1
while min <= max:
print('%d * %d = %d' % (data, min, data * min))
min += 1 |
def setup():
size(600, 400)
def draw():
global theta
background(0);
frameRate(30);
stroke(255);
a = (mouseX / float(width)) * 90;
theta = radians(a);
translate(width/2,height);
line(0,0,0,-120);
translate(0,-120);
branch(120);
def branch(l):
l *= .66
if l > 1:
pushMatrix()
rotate(theta)
line(0, 0, 0, -l)
translate(0, -l)
branch(l)
popMatrix()
pushMatrix()
rotate(-theta)
line(0, 0, 0, -l)
translate(0, -l)
branch(l)
popMatrix()
| def setup():
size(600, 400)
def draw():
global theta
background(0)
frame_rate(30)
stroke(255)
a = mouseX / float(width) * 90
theta = radians(a)
translate(width / 2, height)
line(0, 0, 0, -120)
translate(0, -120)
branch(120)
def branch(l):
l *= 0.66
if l > 1:
push_matrix()
rotate(theta)
line(0, 0, 0, -l)
translate(0, -l)
branch(l)
pop_matrix()
push_matrix()
rotate(-theta)
line(0, 0, 0, -l)
translate(0, -l)
branch(l)
pop_matrix() |
def f(x):
y = x**4 - 3*x
return y
#pythran export integrate_f6(float64, float64, int)
def integrate_f6(a, b, n):
dx = (b - a) / n
dx2 = dx / 2
s = f(a) * dx2
i = 0
for i in range(1, n):
s += f(a + i * dx) * dx
s += f(b) * dx2
return s
| def f(x):
y = x ** 4 - 3 * x
return y
def integrate_f6(a, b, n):
dx = (b - a) / n
dx2 = dx / 2
s = f(a) * dx2
i = 0
for i in range(1, n):
s += f(a + i * dx) * dx
s += f(b) * dx2
return s |
# O(n) time | O(1) space
def reverseLinkedList(head):
p1, p2 = None, head
while p2 is not None:
p3 = p2.next
p2.next = p1
p1 = p2
p2 = p3
return p1 | def reverse_linked_list(head):
(p1, p2) = (None, head)
while p2 is not None:
p3 = p2.next
p2.next = p1
p1 = p2
p2 = p3
return p1 |
# Make a config.py file filling in these constants. Note: This is only a template file!
clientID = 'CLIENT_ID'
secretID = 'SECRET_ID'
uName = 'USERNAME'
password = 'PASSWORD'
db_host = 'IP_ADDR_DB'
db_name = 'MockSalutes'
db_user = 'DB_USER'
db_pass = 'DB_PASSWORD'
| client_id = 'CLIENT_ID'
secret_id = 'SECRET_ID'
u_name = 'USERNAME'
password = 'PASSWORD'
db_host = 'IP_ADDR_DB'
db_name = 'MockSalutes'
db_user = 'DB_USER'
db_pass = 'DB_PASSWORD' |
# cook your dish here
for _ in range(int(input())):
N,MINX,MAXX = map(int,input().split())
num = MAXX-MINX+1
even = num//2
odd = num-even
for i in range(N):
w, b = map(int,input().split())
if w%2==0 and b%2==0:
even = even+odd
odd=0
elif w%2==1 and b%2==1:
even,odd = odd,even
elif w%2==0 and b%2==1:
odd= even+odd
even=0
print(even,odd)
| for _ in range(int(input())):
(n, minx, maxx) = map(int, input().split())
num = MAXX - MINX + 1
even = num // 2
odd = num - even
for i in range(N):
(w, b) = map(int, input().split())
if w % 2 == 0 and b % 2 == 0:
even = even + odd
odd = 0
elif w % 2 == 1 and b % 2 == 1:
(even, odd) = (odd, even)
elif w % 2 == 0 and b % 2 == 1:
odd = even + odd
even = 0
print(even, odd) |
#!/usr/bin/env python3
'''
Create a function, that takes 3 numbers: a, b, c and returns True if the last digit
of (the last digit of a * the last digit of b) = the last digit of c.
'''
def last_dig(a, b, c):
a = list(str(a))
b = list(str(b))
c = list(str(c))
val = list(str(int(a[-1]) * int(b[-1])))
return int(val[-1]) == int(c[-1])
#Alternative Solutions
def last_dig(a, b, c):
return str(a*b)[-1] == str(c)[-1]
def last_dig(a, b, c):
return ((a % 10) * (b % 10) % 10) == (c % 10)
| """
Create a function, that takes 3 numbers: a, b, c and returns True if the last digit
of (the last digit of a * the last digit of b) = the last digit of c.
"""
def last_dig(a, b, c):
a = list(str(a))
b = list(str(b))
c = list(str(c))
val = list(str(int(a[-1]) * int(b[-1])))
return int(val[-1]) == int(c[-1])
def last_dig(a, b, c):
return str(a * b)[-1] == str(c)[-1]
def last_dig(a, b, c):
return a % 10 * (b % 10) % 10 == c % 10 |
# Definition for an interval.
class Interval:
def __init__(self, s=0, e=0):
self.start = s
self.end = e
class Solution:
# @param intervals, a list of Intervals
# @return a list of Interval
def merge(self, intervals):
newInterval = []
if len(intervals) == 0:
return [newInterval]
| class Interval:
def __init__(self, s=0, e=0):
self.start = s
self.end = e
class Solution:
def merge(self, intervals):
new_interval = []
if len(intervals) == 0:
return [newInterval] |
# Basic Fantasy RPG Dungeoneer Suite
# Copyright 2007-2018 Chris Gonnerman
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyright
# notice, self list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright
# notice, self list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# Neither the name of the author nor the names of any contributors
# may be used to endorse or promote products derived from self software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
roomtypes = [
0,
( 5, "Antechamber"),
( 3, "Armory"),
( 7, "Audience"),
( 2, "Aviary"),
( 7, "Banquet Room"),
( 4, "Barracks"),
( 6, "Bath"),
(10, "Bedroom"),
( 2, "Bestiary"),
( 1, "Cell"),
( 1, "Chantry"),
( 2, "Chapel"),
( 1, "Cistern"),
( 3, "Classroom"),
( 8, "Closet"),
( 2, "Conjuring"),
( 5, "Corridor"),
( 1, "Courtroom"),
( 1, "Crypt"),
( 7, "Dining Room"),
( 2, "Divination Room"),
( 6, "Dormitory"),
( 4, "Dressing Room"),
( 3, "Gallery"),
( 3, "Game Room"),
( 4, "Great Hall"),
( 5, "Guardroom"),
( 6, "Hall"),
( 2, "Harem/Seraglio"),
( 2, "Kennel"),
( 6, "Kitchen"),
( 3, "Laboratory"),
( 3, "Library"),
( 7, "Lounge"),
( 3, "Meditation Room"),
( 2, "Museum"),
( 1, "Observatory"),
( 7, "Office"),
( 6, "Pantry"),
( 2, "Prison"),
( 1, "Privy"),
( 4, "Reception Room"),
( 3, "Refectory"),
( 2, "Robing Room"),
( 2, "Shrine"),
( 7, "Sitting Room"),
( 3, "Smithy"),
( 1, "Solar"),
( 4, "Stable"),
( 6, "Storage"),
( 2, "Strongroom/Vault"),
( 5, "Study"),
( 1, "Temple"),
( 1, "Throne Room"),
( 1, "Torture Chamber"),
( 2, "Training Room"),
( 2, "Trophy Room"),
( 8, "Vestibule"),
( 6, "Waiting Room"),
( 3, "Water Closet"),
( 3, "Well"),
( 4, "Workroom"),
( 6, "Workshop"),
]
# end of file.
| roomtypes = [0, (5, 'Antechamber'), (3, 'Armory'), (7, 'Audience'), (2, 'Aviary'), (7, 'Banquet Room'), (4, 'Barracks'), (6, 'Bath'), (10, 'Bedroom'), (2, 'Bestiary'), (1, 'Cell'), (1, 'Chantry'), (2, 'Chapel'), (1, 'Cistern'), (3, 'Classroom'), (8, 'Closet'), (2, 'Conjuring'), (5, 'Corridor'), (1, 'Courtroom'), (1, 'Crypt'), (7, 'Dining Room'), (2, 'Divination Room'), (6, 'Dormitory'), (4, 'Dressing Room'), (3, 'Gallery'), (3, 'Game Room'), (4, 'Great Hall'), (5, 'Guardroom'), (6, 'Hall'), (2, 'Harem/Seraglio'), (2, 'Kennel'), (6, 'Kitchen'), (3, 'Laboratory'), (3, 'Library'), (7, 'Lounge'), (3, 'Meditation Room'), (2, 'Museum'), (1, 'Observatory'), (7, 'Office'), (6, 'Pantry'), (2, 'Prison'), (1, 'Privy'), (4, 'Reception Room'), (3, 'Refectory'), (2, 'Robing Room'), (2, 'Shrine'), (7, 'Sitting Room'), (3, 'Smithy'), (1, 'Solar'), (4, 'Stable'), (6, 'Storage'), (2, 'Strongroom/Vault'), (5, 'Study'), (1, 'Temple'), (1, 'Throne Room'), (1, 'Torture Chamber'), (2, 'Training Room'), (2, 'Trophy Room'), (8, 'Vestibule'), (6, 'Waiting Room'), (3, 'Water Closet'), (3, 'Well'), (4, 'Workroom'), (6, 'Workshop')] |
##########################################################################################
#
# Asteroid Version
#
# (c) University of Rhode Island
##########################################################################################
VERSION = "0.1.0"
| version = '0.1.0' |
class User:
def __init__(self,account_name,card,pin):
self.account_name = account_name
self.card = card
self.pin = pin | class User:
def __init__(self, account_name, card, pin):
self.account_name = account_name
self.card = card
self.pin = pin |
CFG = {
'in_ch': 3,
'out_ch': 24,
'kernel_size': 3,
'stride': 2,
'width_mult': 1,
'divisor': 8,
'actn_layer': None,
'layers': [
{'channels': 24, 'expansion': 1, 'kernel_size': 3, 'stride': 1,
'nums': 2, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2,
'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True,
'use_se': False},
{'channels': 48, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 4, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2,
'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True,
'use_se': False},
{'channels': 64, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 4, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2,
'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True,
'use_se': False},
{'channels': 128, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 6, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2,
'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False,
'use_se': True},
{'channels': 160, 'expansion': 6, 'kernel_size': 3, 'stride': 1,
'nums': 9, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2,
'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False,
'use_se': True},
{'channels': 256, 'expansion': 6, 'kernel_size': 3, 'stride': 2,
'nums': 15, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2,
'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False,
'use_se': True}
]
}
def get_default_cfg():
return CFG
def get_cfg(name='efficientnetv2_s'):
name = name.lower()
if name == 'efficientnetv2_s':
cfg = get_default_cfg()
elif name == 'efficientnetv2_m':
cfg = get_default_cfg()
cfg['layers'] = [
{'channels': 24, 'expansion': 1, 'kernel_size': 3, 'stride': 1,
'nums': 3, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': True, 'use_se': False},
{'channels': 48, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 5, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': True, 'use_se': False},
{'channels': 80, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 5, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': True, 'use_se': False},
{'channels': 160, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 7, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True},
{'channels': 176, 'expansion': 6, 'kernel_size': 3, 'stride': 1,
'nums': 14, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True},
{'channels': 304, 'expansion': 6, 'kernel_size': 3, 'stride': 2,
'nums': 18, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True},
{'channels': 512, 'expansion': 6, 'kernel_size': 3, 'stride': 1,
'nums': 5, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True}
]
elif name == 'efficientnetv2_l':
cfg = get_default_cfg()
cfg['layers'] = [
{'channels': 32, 'expansion': 1, 'kernel_size': 3, 'stride': 1,
'nums': 4, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': True, 'use_se': False},
{'channels': 64, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 7, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': True, 'use_se': False},
{'channels': 96, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 7, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': True, 'use_se': False},
{'channels': 192, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 10, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True},
{'channels': 224, 'expansion': 6, 'kernel_size': 3, 'stride': 1,
'nums': 19, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True},
{'channels': 384, 'expansion': 6, 'kernel_size': 3, 'stride': 2,
'nums': 25, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True},
{'channels': 640, 'expansion': 6, 'kernel_size': 3, 'stride': 1,
'nums': 7, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True}
]
elif name == 'efficientnetv2_xl':
cfg = get_default_cfg()
cfg['layers'] = [
{'channels': 32, 'expansion': 1, 'kernel_size': 3, 'stride': 1,
'nums': 4, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': True, 'use_se': False},
{'channels': 64, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 8, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': True, 'use_se': False},
{'channels': 96, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 8, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': True, 'use_se': False},
{'channels': 192, 'expansion': 4, 'kernel_size': 3, 'stride': 2,
'nums': 16, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True},
{'channels': 256, 'expansion': 6, 'kernel_size': 3, 'stride': 1,
'nums': 24, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True},
{'channels': 512, 'expansion': 6, 'kernel_size': 3, 'stride': 2,
'nums': 32, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True},
{'channels': 640, 'expansion': 6, 'kernel_size': 3, 'stride': 1,
'nums': 8, 'norm_layer': None, 'dropout_ratio': 0.1,
'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None,
'fused': False, 'use_se': True}
]
else:
raise ValueError("No pretrained config available"
" for name {}".format(name))
return cfg
| cfg = {'in_ch': 3, 'out_ch': 24, 'kernel_size': 3, 'stride': 2, 'width_mult': 1, 'divisor': 8, 'actn_layer': None, 'layers': [{'channels': 24, 'expansion': 1, 'kernel_size': 3, 'stride': 1, 'nums': 2, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 48, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 4, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 64, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 4, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 128, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 6, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 160, 'expansion': 6, 'kernel_size': 3, 'stride': 1, 'nums': 9, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 256, 'expansion': 6, 'kernel_size': 3, 'stride': 2, 'nums': 15, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}]}
def get_default_cfg():
return CFG
def get_cfg(name='efficientnetv2_s'):
name = name.lower()
if name == 'efficientnetv2_s':
cfg = get_default_cfg()
elif name == 'efficientnetv2_m':
cfg = get_default_cfg()
cfg['layers'] = [{'channels': 24, 'expansion': 1, 'kernel_size': 3, 'stride': 1, 'nums': 3, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 48, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 5, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 80, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 5, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 160, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 7, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 176, 'expansion': 6, 'kernel_size': 3, 'stride': 1, 'nums': 14, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 304, 'expansion': 6, 'kernel_size': 3, 'stride': 2, 'nums': 18, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 512, 'expansion': 6, 'kernel_size': 3, 'stride': 1, 'nums': 5, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}]
elif name == 'efficientnetv2_l':
cfg = get_default_cfg()
cfg['layers'] = [{'channels': 32, 'expansion': 1, 'kernel_size': 3, 'stride': 1, 'nums': 4, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 64, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 7, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 96, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 7, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 192, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 10, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 224, 'expansion': 6, 'kernel_size': 3, 'stride': 1, 'nums': 19, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 384, 'expansion': 6, 'kernel_size': 3, 'stride': 2, 'nums': 25, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 640, 'expansion': 6, 'kernel_size': 3, 'stride': 1, 'nums': 7, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}]
elif name == 'efficientnetv2_xl':
cfg = get_default_cfg()
cfg['layers'] = [{'channels': 32, 'expansion': 1, 'kernel_size': 3, 'stride': 1, 'nums': 4, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 64, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 8, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 96, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 8, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': True, 'use_se': False}, {'channels': 192, 'expansion': 4, 'kernel_size': 3, 'stride': 2, 'nums': 16, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 256, 'expansion': 6, 'kernel_size': 3, 'stride': 1, 'nums': 24, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 512, 'expansion': 6, 'kernel_size': 3, 'stride': 2, 'nums': 32, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}, {'channels': 640, 'expansion': 6, 'kernel_size': 3, 'stride': 1, 'nums': 8, 'norm_layer': None, 'dropout_ratio': 0.1, 'dc_ratio': 0.2, 'reduction_ratio': 0.25, 'actn_layer': None, 'fused': False, 'use_se': True}]
else:
raise value_error('No pretrained config available for name {}'.format(name))
return cfg |
pod_examples = [
dict(
apiVersion='v1',
kind='Pod',
metadata=dict(
name='good',
namespace='default'
),
spec=dict(
serviceAccountName='default'
)
),
dict(
apiVersion='v1',
kind='Pod',
metadata=dict(
name='bad',
namespace='default'
),
spec=dict(
serviceAccountName='bad'
)
),
dict(
apiVersion='v1',
kind='Pod',
metadata=dict(
name='raise',
namespace='default'
),
spec=dict(
serviceAccountName='bad'
)
)
]
| pod_examples = [dict(apiVersion='v1', kind='Pod', metadata=dict(name='good', namespace='default'), spec=dict(serviceAccountName='default')), dict(apiVersion='v1', kind='Pod', metadata=dict(name='bad', namespace='default'), spec=dict(serviceAccountName='bad')), dict(apiVersion='v1', kind='Pod', metadata=dict(name='raise', namespace='default'), spec=dict(serviceAccountName='bad'))] |
######################################################################
#
# Copyright (C) 2013
# Associated Universities, Inc. Washington DC, USA,
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This library 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 Library General Public
# License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with this library; if not, write to the Free Software Foundation,
# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
#
# Correspondence concerning VLA Pipelines should be addressed as follows:
# Please register and submit helpdesk tickets via: https://help.nrao.edu
# Postal address:
# National Radio Astronomy Observatory
# VLA Pipeline Support Office
# PO Box O
# Socorro, NM, USA
#
######################################################################
# Version that removes rflagging for spectral line data
# CHECKING FLAGGING OF ALL CALIBRATED DATA, INCLUDING TARGET
# use rflag mode of flagdata
logprint("Starting EVLA_pipe_targetflag_lines.py", logfileout='logs/targetflag.log')
time_list = runtiming('checkflag', 'start')
QA2_targetflag = 'Pass'
logprint("Checking RFI flagging of all targets",
logfileout='logs/targetflag.log')
# Run on all calibrator scans
default('flagdata')
vis = ms_active
mode = 'rflag'
field = ''
correlation = 'ABS_' + corrstring
scan = ''
intent = '*CALIBRATE*'
ntime = 'scan'
combinescans = False
datacolumn = 'corrected'
winsize = 3
timedevscale = 4.0
freqdevscale = 4.0
extendflags = False
action = 'apply'
display = ''
flagbackup = True
savepars = True
flagdata()
# clearstat()
# Save final version of flags
default('flagmanager')
vis = ms_active
mode = 'save'
versionname = 'finalflags'
comment = 'Final flags saved after calibrations and rflag'
merge = 'replace'
flagmanager()
logprint("Flag column saved to " + versionname,
logfileout='logs/targetflag.log')
# calculate final flag statistics
default('flagdata')
vis = ms_active
mode = 'summary'
spwchan = True
spwcorr = True
basecnt = True
action = 'calculate'
savepars = False
final_flags = flagdata()
frac_flagged_on_source2 = 1.0 - \
((start_total - final_flags['flagged']) / init_on_source_vis)
logprint("Final fraction of on-source data flagged = " +
str(frac_flagged_on_source2), logfileout='logs/targetflag.log')
if (frac_flagged_on_source2 >= 0.6):
QA2_targetflag = 'Fail'
logprint("QA2 score: " + QA2_targetflag, logfileout='logs/targetflag.log')
logprint("Finished EVLA_pipe_targetflag_lines.py", logfileout='logs/targetflag.log')
time_list = runtiming('targetflag', 'end')
pipeline_save()
######################################################################
| logprint('Starting EVLA_pipe_targetflag_lines.py', logfileout='logs/targetflag.log')
time_list = runtiming('checkflag', 'start')
qa2_targetflag = 'Pass'
logprint('Checking RFI flagging of all targets', logfileout='logs/targetflag.log')
default('flagdata')
vis = ms_active
mode = 'rflag'
field = ''
correlation = 'ABS_' + corrstring
scan = ''
intent = '*CALIBRATE*'
ntime = 'scan'
combinescans = False
datacolumn = 'corrected'
winsize = 3
timedevscale = 4.0
freqdevscale = 4.0
extendflags = False
action = 'apply'
display = ''
flagbackup = True
savepars = True
flagdata()
default('flagmanager')
vis = ms_active
mode = 'save'
versionname = 'finalflags'
comment = 'Final flags saved after calibrations and rflag'
merge = 'replace'
flagmanager()
logprint('Flag column saved to ' + versionname, logfileout='logs/targetflag.log')
default('flagdata')
vis = ms_active
mode = 'summary'
spwchan = True
spwcorr = True
basecnt = True
action = 'calculate'
savepars = False
final_flags = flagdata()
frac_flagged_on_source2 = 1.0 - (start_total - final_flags['flagged']) / init_on_source_vis
logprint('Final fraction of on-source data flagged = ' + str(frac_flagged_on_source2), logfileout='logs/targetflag.log')
if frac_flagged_on_source2 >= 0.6:
qa2_targetflag = 'Fail'
logprint('QA2 score: ' + QA2_targetflag, logfileout='logs/targetflag.log')
logprint('Finished EVLA_pipe_targetflag_lines.py', logfileout='logs/targetflag.log')
time_list = runtiming('targetflag', 'end')
pipeline_save() |
regularServingPancakes = 24
cupsOfFlourrPer24Pancakes = 4.5
noOfEggsPer24Pancakes = 4
litresOfMilkPer24Pancakes = 1
noOfPancakes = float(input("How many pancakes do you want to make: "))
expectedCupsOfFlour = ( noOfPancakes / regularServingPancakes ) * \
cupsOfFlourrPer24Pancakes
expectedNoOfEggs = ( noOfPancakes / regularServingPancakes ) * \
noOfEggsPer24Pancakes
expectedLitresOfMilk = ( noOfPancakes / regularServingPancakes ) * \
litresOfMilkPer24Pancakes
print ( "For " + str(noOfPancakes ) + " you will need " + \
str( expectedCupsOfFlour ) + " cups of flour " + \
str( expectedNoOfEggs ) + " eggs " + \
str( expectedLitresOfMilk ) + " litres of milk" )
| regular_serving_pancakes = 24
cups_of_flourr_per24_pancakes = 4.5
no_of_eggs_per24_pancakes = 4
litres_of_milk_per24_pancakes = 1
no_of_pancakes = float(input('How many pancakes do you want to make: '))
expected_cups_of_flour = noOfPancakes / regularServingPancakes * cupsOfFlourrPer24Pancakes
expected_no_of_eggs = noOfPancakes / regularServingPancakes * noOfEggsPer24Pancakes
expected_litres_of_milk = noOfPancakes / regularServingPancakes * litresOfMilkPer24Pancakes
print('For ' + str(noOfPancakes) + ' you will need ' + str(expectedCupsOfFlour) + ' cups of flour ' + str(expectedNoOfEggs) + ' eggs ' + str(expectedLitresOfMilk) + ' litres of milk') |
def generated_per_next_split(max_day):
# generate a table saying how many lanternfish result from a lanternfish
# which next split is on a given day
table = {}
for i in range(max_day+10, 0, -1):
table[i] = 1 if i >= max_day else (table[i+7] + table[i+9])
return table
def solve(next_splits, max_day):
table = generated_per_next_split(max_day)
return sum([table[next_split] for next_split in next_splits])
def parse(input_path):
with open(input_path, 'r') as f:
return list(map(int, f.readline().split(',')))
if __name__ == "__main__":
parsed = parse("data.txt")
print('Part 1 :', solve(parsed, 80))
print('Part 2 :', solve(parsed, 256))
| def generated_per_next_split(max_day):
table = {}
for i in range(max_day + 10, 0, -1):
table[i] = 1 if i >= max_day else table[i + 7] + table[i + 9]
return table
def solve(next_splits, max_day):
table = generated_per_next_split(max_day)
return sum([table[next_split] for next_split in next_splits])
def parse(input_path):
with open(input_path, 'r') as f:
return list(map(int, f.readline().split(',')))
if __name__ == '__main__':
parsed = parse('data.txt')
print('Part 1 :', solve(parsed, 80))
print('Part 2 :', solve(parsed, 256)) |
n = int(input())
xs = []
ys = []
numToPosX = dict()
numToPosY = dict()
for i in range(n):
x, y = list(map(float, input().split()))
numToPosX.setdefault(x, i)
numToPosY.setdefault(y, i)
xs.append(x)
ys.append(y)
xs.sort()
ys.sort()
resX = [0] * n
resY = [0] * n
for i in range(n):
resX[numToPosX[xs[i]]] = i
resY[numToPosY[ys[i]]] = i
print(format(1.0 - 6.0 * sum(map(lambda x: (x[0] - x[1]) ** 2, zip(resX, resY)))/(n ** 3 - n), ".9f")) | n = int(input())
xs = []
ys = []
num_to_pos_x = dict()
num_to_pos_y = dict()
for i in range(n):
(x, y) = list(map(float, input().split()))
numToPosX.setdefault(x, i)
numToPosY.setdefault(y, i)
xs.append(x)
ys.append(y)
xs.sort()
ys.sort()
res_x = [0] * n
res_y = [0] * n
for i in range(n):
resX[numToPosX[xs[i]]] = i
resY[numToPosY[ys[i]]] = i
print(format(1.0 - 6.0 * sum(map(lambda x: (x[0] - x[1]) ** 2, zip(resX, resY))) / (n ** 3 - n), '.9f')) |
def setup():
size(400,400)
stroke(225)
background(192, 64, 0)
def draw():
line(200, 200, mouseX, mouseY)
def mousePressed():
saveFrame("Output.png")
| def setup():
size(400, 400)
stroke(225)
background(192, 64, 0)
def draw():
line(200, 200, mouseX, mouseY)
def mouse_pressed():
save_frame('Output.png') |
class random:
def __init__(self, animaltype, name, canfly):
self.animaltype = animaltype
self.name = name
self.fly = canfly
def getanimaltype(self):
return self.animaltype
def getobjects(self):
print('{} {} {}'.format(self.animaltype, self.name, self.fly))
ok = random('bird', 'penguin', 'no').getobjects()
| class Random:
def __init__(self, animaltype, name, canfly):
self.animaltype = animaltype
self.name = name
self.fly = canfly
def getanimaltype(self):
return self.animaltype
def getobjects(self):
print('{} {} {}'.format(self.animaltype, self.name, self.fly))
ok = random('bird', 'penguin', 'no').getobjects() |
class ValidationResult:
def __init__(self, is_success, error_message=None):
self.is_success = is_success
self.error_message = error_message
@classmethod
def success(cls):
return cls(True)
@classmethod
def error(cls, error_message):
return cls(False, error_message)
print(ValidationResult(True).__dict__)
print(ValidationResult(False, "Some error").__dict__)
print(ValidationResult.success().__dict__)
print(ValidationResult.error('Another error').__dict__)
class Pizza:
def __init__(self, ingredients):
self.ingredients = ['bread'] + ingredients
@classmethod
def pepperoni(cls):
return cls(['tomato sauce', 'parmesan', 'pepperoni'])
class ItalianPizza(Pizza):
def __init__(self, ingredients):
super().__init__(ingredients)
self.ingredients = ['italian bread'] + ingredients
print(Pizza.pepperoni().__dict__)
print(Pizza(['tomato sauce', 'parmesan', 'pepperoni']).__dict__)
print(ItalianPizza.pepperoni().__dict__)
| class Validationresult:
def __init__(self, is_success, error_message=None):
self.is_success = is_success
self.error_message = error_message
@classmethod
def success(cls):
return cls(True)
@classmethod
def error(cls, error_message):
return cls(False, error_message)
print(validation_result(True).__dict__)
print(validation_result(False, 'Some error').__dict__)
print(ValidationResult.success().__dict__)
print(ValidationResult.error('Another error').__dict__)
class Pizza:
def __init__(self, ingredients):
self.ingredients = ['bread'] + ingredients
@classmethod
def pepperoni(cls):
return cls(['tomato sauce', 'parmesan', 'pepperoni'])
class Italianpizza(Pizza):
def __init__(self, ingredients):
super().__init__(ingredients)
self.ingredients = ['italian bread'] + ingredients
print(Pizza.pepperoni().__dict__)
print(pizza(['tomato sauce', 'parmesan', 'pepperoni']).__dict__)
print(ItalianPizza.pepperoni().__dict__) |
def eval_chunk_size(rm):
chunks = []
chunk_size = 0
for row in range(rm.max_row):
for col in range(rm.max_col):
if (rm.seats[row][col] == None or rm.seats[row][col].sid == -1) and chunk_size > 0:
chunks.append(chunk_size)
chunk_size = 0
else:
chunk_size += 1
if chunk_size > 0:
chunks.append(chunk_size)
chunk_size = 0
score = sum(chunks) / len(chunks)
# Remove decimals past 2 sigfigs
score *= 100
score = round(score) / 100
print(score)
| def eval_chunk_size(rm):
chunks = []
chunk_size = 0
for row in range(rm.max_row):
for col in range(rm.max_col):
if (rm.seats[row][col] == None or rm.seats[row][col].sid == -1) and chunk_size > 0:
chunks.append(chunk_size)
chunk_size = 0
else:
chunk_size += 1
if chunk_size > 0:
chunks.append(chunk_size)
chunk_size = 0
score = sum(chunks) / len(chunks)
score *= 100
score = round(score) / 100
print(score) |
class Circle:
def __init__(self,d):
self.diameter=d
self.__pi=3.14
def calculate_circumference(self):
c=self.__pi*self.diameter
return c
def calculate_area(self):
r=self.diameter/2
return self.__pi*(r*r)
def calculate_area_of_sector(self,angle):
c=self.calculate_circumference(); r=self.diameter/2
a=(angle*c)/360
sectorS=(r/2)*a
return sectorS
#test
circle1=Circle(10)
print(f"{circle1.calculate_circumference():.2f}\n{circle1.calculate_area():.2f}\n{circle1.calculate_area_of_sector(5):.2f}")
| class Circle:
def __init__(self, d):
self.diameter = d
self.__pi = 3.14
def calculate_circumference(self):
c = self.__pi * self.diameter
return c
def calculate_area(self):
r = self.diameter / 2
return self.__pi * (r * r)
def calculate_area_of_sector(self, angle):
c = self.calculate_circumference()
r = self.diameter / 2
a = angle * c / 360
sector_s = r / 2 * a
return sectorS
circle1 = circle(10)
print(f'{circle1.calculate_circumference():.2f}\n{circle1.calculate_area():.2f}\n{circle1.calculate_area_of_sector(5):.2f}') |
class Solution:
def coinChange(self, coins: List[int], amount: int) -> int:
amounts = [float('inf')] * (amount + 1)
amounts[0] = 0
for coin in coins:
for amt in range(coin, amount + 1):
amounts[amt] = min(amounts[amt], amounts[amt - coin] + 1)
if amounts[amount] == float('inf'):
return -1
return amounts[amount]
| class Solution:
def coin_change(self, coins: List[int], amount: int) -> int:
amounts = [float('inf')] * (amount + 1)
amounts[0] = 0
for coin in coins:
for amt in range(coin, amount + 1):
amounts[amt] = min(amounts[amt], amounts[amt - coin] + 1)
if amounts[amount] == float('inf'):
return -1
return amounts[amount] |
names = ["Katya", "Max", "Oleksii", "Olesya", "Oleh", "Yaroslav", "Anastasiia"]
age = [25, 54, 18, 23, 45, 21, 21]
isPaid = [True, False, True, True, False, True, False]
namesFromDatabaseClear = names.index("Max")
ageMax = age[namesFromDatabaseClear]
print(ageMax)
| names = ['Katya', 'Max', 'Oleksii', 'Olesya', 'Oleh', 'Yaroslav', 'Anastasiia']
age = [25, 54, 18, 23, 45, 21, 21]
is_paid = [True, False, True, True, False, True, False]
names_from_database_clear = names.index('Max')
age_max = age[namesFromDatabaseClear]
print(ageMax) |
# -*- coding: utf-8 -*-
SEXO = (
('F', 'Feminino'),
('M', 'Masculino'),
) | sexo = (('F', 'Feminino'), ('M', 'Masculino')) |
cats_path = "python_crash_course/exceptions/cats.txt"
dogs_path = "python_crash_course/exceptions/dogs.txt"
try:
with open(cats_path) as file_object:
cats = file_object.read()
print("Koty:")
print(cats)
except FileNotFoundError:
pass
try:
with open(dogs_path) as file_object:
dogs = file_object.read()
print("\nPsy:")
print(dogs)
except FileNotFoundError:
pass
| cats_path = 'python_crash_course/exceptions/cats.txt'
dogs_path = 'python_crash_course/exceptions/dogs.txt'
try:
with open(cats_path) as file_object:
cats = file_object.read()
print('Koty:')
print(cats)
except FileNotFoundError:
pass
try:
with open(dogs_path) as file_object:
dogs = file_object.read()
print('\nPsy:')
print(dogs)
except FileNotFoundError:
pass |
def has_unique_chars(string: str) -> bool:
if len(string) == 1:
return True
unique = []
for item in string:
if item not in unique:
unique.append(item)
else:
return False
return True | def has_unique_chars(string: str) -> bool:
if len(string) == 1:
return True
unique = []
for item in string:
if item not in unique:
unique.append(item)
else:
return False
return True |
#
# PySNMP MIB module ChrComPmSonetSNT-PFE-Interval-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ChrComPmSonetSNT-PFE-Interval-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:20:44 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")
ConstraintsUnion, ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint")
chrComIfifIndex, = mibBuilder.importSymbols("ChrComIfifTable-MIB", "chrComIfifIndex")
TruthValue, = mibBuilder.importSymbols("ChrTyp-MIB", "TruthValue")
chrComPmSonet, = mibBuilder.importSymbols("Chromatis-MIB", "chrComPmSonet")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
TimeTicks, Bits, Gauge32, ModuleIdentity, iso, MibIdentifier, Counter64, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Counter32, IpAddress, Integer32, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "Bits", "Gauge32", "ModuleIdentity", "iso", "MibIdentifier", "Counter64", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Counter32", "IpAddress", "Integer32", "ObjectIdentity")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
chrComPmSonetSNT_PFE_IntervalTable = MibTable((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14), ).setLabel("chrComPmSonetSNT-PFE-IntervalTable")
if mibBuilder.loadTexts: chrComPmSonetSNT_PFE_IntervalTable.setStatus('current')
chrComPmSonetSNT_PFE_IntervalEntry = MibTableRow((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1), ).setLabel("chrComPmSonetSNT-PFE-IntervalEntry").setIndexNames((0, "ChrComIfifTable-MIB", "chrComIfifIndex"), (0, "ChrComPmSonetSNT-PFE-Interval-MIB", "chrComPmSonetIntervalNumber"))
if mibBuilder.loadTexts: chrComPmSonetSNT_PFE_IntervalEntry.setStatus('current')
chrComPmSonetIntervalNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetIntervalNumber.setStatus('current')
chrComPmSonetSuspectedInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 2), TruthValue()).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetSuspectedInterval.setStatus('current')
chrComPmSonetElapsedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetElapsedTime.setStatus('current')
chrComPmSonetSuppressedIntrvls = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 4), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetSuppressedIntrvls.setStatus('current')
chrComPmSonetES = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 5), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetES.setStatus('current')
chrComPmSonetSES = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 6), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetSES.setStatus('current')
chrComPmSonetCV = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 7), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetCV.setStatus('current')
chrComPmSonetUAS = MibTableColumn((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 8), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly")
if mibBuilder.loadTexts: chrComPmSonetUAS.setStatus('current')
mibBuilder.exportSymbols("ChrComPmSonetSNT-PFE-Interval-MIB", chrComPmSonetCV=chrComPmSonetCV, chrComPmSonetElapsedTime=chrComPmSonetElapsedTime, chrComPmSonetUAS=chrComPmSonetUAS, chrComPmSonetES=chrComPmSonetES, chrComPmSonetSuspectedInterval=chrComPmSonetSuspectedInterval, chrComPmSonetSNT_PFE_IntervalTable=chrComPmSonetSNT_PFE_IntervalTable, chrComPmSonetSNT_PFE_IntervalEntry=chrComPmSonetSNT_PFE_IntervalEntry, chrComPmSonetSES=chrComPmSonetSES, chrComPmSonetIntervalNumber=chrComPmSonetIntervalNumber, chrComPmSonetSuppressedIntrvls=chrComPmSonetSuppressedIntrvls)
| (octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, constraints_intersection, value_size_constraint, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint')
(chr_com_ifif_index,) = mibBuilder.importSymbols('ChrComIfifTable-MIB', 'chrComIfifIndex')
(truth_value,) = mibBuilder.importSymbols('ChrTyp-MIB', 'TruthValue')
(chr_com_pm_sonet,) = mibBuilder.importSymbols('Chromatis-MIB', 'chrComPmSonet')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(time_ticks, bits, gauge32, module_identity, iso, mib_identifier, counter64, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, counter32, ip_address, integer32, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'Bits', 'Gauge32', 'ModuleIdentity', 'iso', 'MibIdentifier', 'Counter64', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Counter32', 'IpAddress', 'Integer32', 'ObjectIdentity')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
chr_com_pm_sonet_snt_pfe__interval_table = mib_table((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14)).setLabel('chrComPmSonetSNT-PFE-IntervalTable')
if mibBuilder.loadTexts:
chrComPmSonetSNT_PFE_IntervalTable.setStatus('current')
chr_com_pm_sonet_snt_pfe__interval_entry = mib_table_row((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1)).setLabel('chrComPmSonetSNT-PFE-IntervalEntry').setIndexNames((0, 'ChrComIfifTable-MIB', 'chrComIfifIndex'), (0, 'ChrComPmSonetSNT-PFE-Interval-MIB', 'chrComPmSonetIntervalNumber'))
if mibBuilder.loadTexts:
chrComPmSonetSNT_PFE_IntervalEntry.setStatus('current')
chr_com_pm_sonet_interval_number = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetIntervalNumber.setStatus('current')
chr_com_pm_sonet_suspected_interval = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 2), truth_value()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetSuspectedInterval.setStatus('current')
chr_com_pm_sonet_elapsed_time = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetElapsedTime.setStatus('current')
chr_com_pm_sonet_suppressed_intrvls = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 4), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetSuppressedIntrvls.setStatus('current')
chr_com_pm_sonet_es = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 5), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetES.setStatus('current')
chr_com_pm_sonet_ses = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 6), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetSES.setStatus('current')
chr_com_pm_sonet_cv = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 7), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetCV.setStatus('current')
chr_com_pm_sonet_uas = mib_table_column((1, 3, 6, 1, 4, 1, 3695, 1, 10, 2, 14, 1, 8), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
chrComPmSonetUAS.setStatus('current')
mibBuilder.exportSymbols('ChrComPmSonetSNT-PFE-Interval-MIB', chrComPmSonetCV=chrComPmSonetCV, chrComPmSonetElapsedTime=chrComPmSonetElapsedTime, chrComPmSonetUAS=chrComPmSonetUAS, chrComPmSonetES=chrComPmSonetES, chrComPmSonetSuspectedInterval=chrComPmSonetSuspectedInterval, chrComPmSonetSNT_PFE_IntervalTable=chrComPmSonetSNT_PFE_IntervalTable, chrComPmSonetSNT_PFE_IntervalEntry=chrComPmSonetSNT_PFE_IntervalEntry, chrComPmSonetSES=chrComPmSonetSES, chrComPmSonetIntervalNumber=chrComPmSonetIntervalNumber, chrComPmSonetSuppressedIntrvls=chrComPmSonetSuppressedIntrvls) |
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'local_database.db',
'TEST_NAME': ':memory:',
}
}
SECRET_KEY = '9(-c^&tzdv(d-*x$cefm2pddz=0!_*8iu*i8fh+krpa!5ebk)+'
ROOT_URLCONF = 'test_project.urls'
TEMPLATE_DIRS = (
'templates',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'formwizard',
'testapp',
'testapp2',
)
#TEST_RUNNER = 'django-test-coverage.runner.run_tests' | debug = True
databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'local_database.db', 'TEST_NAME': ':memory:'}}
secret_key = '9(-c^&tzdv(d-*x$cefm2pddz=0!_*8iu*i8fh+krpa!5ebk)+'
root_urlconf = 'test_project.urls'
template_dirs = ('templates',)
installed_apps = ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'formwizard', 'testapp', 'testapp2') |
class Course:
def __init__(self, link, code, title, credits, campus, dept, year, semester, semester_code, faculty, courselvl, description, prereq, coreq, exclusion, breadth, apsc, flags):
self.link = link.strip()
self.code = code.strip()
self.title = title.strip()
self.credits = credits.strip()
self.campus = campus.strip()
self.dept = dept.strip()
self.year = year.strip()
self.semester = semester.strip()
self.semester_code = semester_code.strip()
self.faculty = faculty.strip()
self.courselvl = courselvl.strip()
self.description = description.strip()
self.prereq = prereq.strip()
self.coreq = coreq.strip()
self.exclusion = exclusion.strip()
self.breadth = breadth.strip()
self.apsc = apsc.strip()
self.flags = flags
def __repr__(self):
return '\nLink: ' + self.link + '\nCode: ' + self.code + '\nTitle: ' + self.title + '\nCredits: ' + self.credits + '\nCampus: ' + self.campus + '\nDepartment: ' + self.dept + '\nYear: ' + self.year + '\nSemester: ' + self.semester + '\nSemester code: ' + self.semester_code + '\nFaculty: ' + self.faculty + '\nCourse level: ' + self.courselvl + '\nDescription: ' + self.description + '\nPre-requisites: ' + self.prereq + '\nCo-requisites: ' + self.coreq + '\nExclusion: ' + self.exclusion + '\nBreadth: ' + self.breadth + '\nAPSC electives: ' + self.apsc + '\nFlags: ' + str(self.flags) | class Course:
def __init__(self, link, code, title, credits, campus, dept, year, semester, semester_code, faculty, courselvl, description, prereq, coreq, exclusion, breadth, apsc, flags):
self.link = link.strip()
self.code = code.strip()
self.title = title.strip()
self.credits = credits.strip()
self.campus = campus.strip()
self.dept = dept.strip()
self.year = year.strip()
self.semester = semester.strip()
self.semester_code = semester_code.strip()
self.faculty = faculty.strip()
self.courselvl = courselvl.strip()
self.description = description.strip()
self.prereq = prereq.strip()
self.coreq = coreq.strip()
self.exclusion = exclusion.strip()
self.breadth = breadth.strip()
self.apsc = apsc.strip()
self.flags = flags
def __repr__(self):
return '\nLink: ' + self.link + '\nCode: ' + self.code + '\nTitle: ' + self.title + '\nCredits: ' + self.credits + '\nCampus: ' + self.campus + '\nDepartment: ' + self.dept + '\nYear: ' + self.year + '\nSemester: ' + self.semester + '\nSemester code: ' + self.semester_code + '\nFaculty: ' + self.faculty + '\nCourse level: ' + self.courselvl + '\nDescription: ' + self.description + '\nPre-requisites: ' + self.prereq + '\nCo-requisites: ' + self.coreq + '\nExclusion: ' + self.exclusion + '\nBreadth: ' + self.breadth + '\nAPSC electives: ' + self.apsc + '\nFlags: ' + str(self.flags) |
# Generates comments with the specified indentation and wrapping-length
def generateComment(comment, length=100, indentation=""):
out = ""
for commentChunk in [
comment[i : i + length] for i in range(0, len(comment), length)
]:
out += indentation + "// " + commentChunk + "\n"
return out
# Generates C++ pointer data references from an XML element
def getDataReference(element, root):
for parent in root.iter():
# Check to make sure parent is actually a parent of element
if element in parent:
return getDataReference(parent, root) + "->" + element.attrib["id"]
return root.attrib["id"]
def capitalize(string):
return string.capitalize()[0] + string[1:]
def getMutexReference(struct, root):
return getDataReference(struct, root) + "->" + struct.attrib["id"] + "Mutex"
def getGetReference(struct, field):
return "get" + capitalize(struct.attrib["id"]) + capitalize(field.attrib["id"])
def getSetReference(struct, field):
return "set" + capitalize(struct.attrib["id"]) + capitalize(field.attrib["id"])
| def generate_comment(comment, length=100, indentation=''):
out = ''
for comment_chunk in [comment[i:i + length] for i in range(0, len(comment), length)]:
out += indentation + '// ' + commentChunk + '\n'
return out
def get_data_reference(element, root):
for parent in root.iter():
if element in parent:
return get_data_reference(parent, root) + '->' + element.attrib['id']
return root.attrib['id']
def capitalize(string):
return string.capitalize()[0] + string[1:]
def get_mutex_reference(struct, root):
return get_data_reference(struct, root) + '->' + struct.attrib['id'] + 'Mutex'
def get_get_reference(struct, field):
return 'get' + capitalize(struct.attrib['id']) + capitalize(field.attrib['id'])
def get_set_reference(struct, field):
return 'set' + capitalize(struct.attrib['id']) + capitalize(field.attrib['id']) |
# -*- coding: utf-8 -*-
class Solution:
def exist(self, board, word):
visited = set()
for i in range(len(board)):
for j in range(len(board[0])):
if self.startsHere(board, word, visited, 0, i, j):
return True
return False
def startsHere(self, board, word, visited, current, i, j):
if current == len(word):
return True
out_of_bounds = i < 0 or i >= len(board) or j < 0 or j >= len(board[0])
if out_of_bounds:
return False
already_visited = (i, j) in visited
wrong_current_letter = board[i][j] != word[current]
if already_visited or wrong_current_letter:
return False
visited.add((i, j))
result = (
self.startsHere(board, word, visited, current + 1, i - 1, j) or
self.startsHere(board, word, visited, current + 1, i, j - 1) or
self.startsHere(board, word, visited, current + 1, i + 1, j) or
self.startsHere(board, word, visited, current + 1, i, j + 1)
)
visited.remove((i, j))
return result
if __name__ == '__main__':
solution = Solution()
assert solution.exist([
['A', 'B', 'C', 'E'],
['S', 'F', 'C', 'S'],
['A', 'D', 'E', 'E'],
], 'ABCCED')
assert solution.exist([
['A', 'B', 'C', 'E'],
['S', 'F', 'C', 'S'],
['A', 'D', 'E', 'E'],
], 'SEE')
assert not solution.exist([
['A', 'B', 'C', 'E'],
['S', 'F', 'C', 'S'],
['A', 'D', 'E', 'E'],
], 'ABCB')
| class Solution:
def exist(self, board, word):
visited = set()
for i in range(len(board)):
for j in range(len(board[0])):
if self.startsHere(board, word, visited, 0, i, j):
return True
return False
def starts_here(self, board, word, visited, current, i, j):
if current == len(word):
return True
out_of_bounds = i < 0 or i >= len(board) or j < 0 or (j >= len(board[0]))
if out_of_bounds:
return False
already_visited = (i, j) in visited
wrong_current_letter = board[i][j] != word[current]
if already_visited or wrong_current_letter:
return False
visited.add((i, j))
result = self.startsHere(board, word, visited, current + 1, i - 1, j) or self.startsHere(board, word, visited, current + 1, i, j - 1) or self.startsHere(board, word, visited, current + 1, i + 1, j) or self.startsHere(board, word, visited, current + 1, i, j + 1)
visited.remove((i, j))
return result
if __name__ == '__main__':
solution = solution()
assert solution.exist([['A', 'B', 'C', 'E'], ['S', 'F', 'C', 'S'], ['A', 'D', 'E', 'E']], 'ABCCED')
assert solution.exist([['A', 'B', 'C', 'E'], ['S', 'F', 'C', 'S'], ['A', 'D', 'E', 'E']], 'SEE')
assert not solution.exist([['A', 'B', 'C', 'E'], ['S', 'F', 'C', 'S'], ['A', 'D', 'E', 'E']], 'ABCB') |
#-------------------------------------------------------------------------------
# Name: Removing duplicates
# Purpose:
#
# Author: Ben Jones
#
# Created: 03/02/2022
# Copyright: (c) Ben Jones 2022
#-------------------------------------------------------------------------------
new_menu = ['Hawaiian', 'Margherita', 'Mushroom', 'Prosciutto', 'Meat Feast', 'Hawaiian', 'Bacon', 'Black Olive Special', 'Sausage', 'Sausage']
final_new_menu = list(dict.fromkeys(new_menu))
print(final_new_menu)
| new_menu = ['Hawaiian', 'Margherita', 'Mushroom', 'Prosciutto', 'Meat Feast', 'Hawaiian', 'Bacon', 'Black Olive Special', 'Sausage', 'Sausage']
final_new_menu = list(dict.fromkeys(new_menu))
print(final_new_menu) |
word_size = 8
num_words = 256
num_banks = 1
tech_name = "freepdk45"
process_corners = ["TT"]
supply_voltages = [1.0]
temperatures = [25]
| word_size = 8
num_words = 256
num_banks = 1
tech_name = 'freepdk45'
process_corners = ['TT']
supply_voltages = [1.0]
temperatures = [25] |
# Definition for a binary tree node.
# class Node(object):
# def __init__(self, val=" ", left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def checkEquivalence(self, root1: 'Node', root2: 'Node') -> bool:
def post_order(node):
ans = collections.Counter()
if node is None:
return ans
if node.left is None and node.right is None:
ans[node.val] += 1
else:
l = post_order(node.left)
r = post_order(node.right)
for val, cnt in l.items():
ans[val] += cnt
for val, cnt in r.items():
ans[val] += cnt
return ans
r1 = post_order(root1)
r2 = post_order(root2)
return r1 == r2
| class Solution:
def check_equivalence(self, root1: 'Node', root2: 'Node') -> bool:
def post_order(node):
ans = collections.Counter()
if node is None:
return ans
if node.left is None and node.right is None:
ans[node.val] += 1
else:
l = post_order(node.left)
r = post_order(node.right)
for (val, cnt) in l.items():
ans[val] += cnt
for (val, cnt) in r.items():
ans[val] += cnt
return ans
r1 = post_order(root1)
r2 = post_order(root2)
return r1 == r2 |
# Panel settings: /project/<default>/api_access
PANEL_DASHBOARD = 'project'
PANEL_GROUP = 'default'
PANEL = 'api_access'
# The default _was_ "overview", but that gives 403s.
# Make this the default in this dashboard.
DEFAULT_PANEL = 'api_access'
| panel_dashboard = 'project'
panel_group = 'default'
panel = 'api_access'
default_panel = 'api_access' |
# python stack using list #
my_Stack = [10, 12, 13, 11, 33, 24, 56, 78, 13, 56, 31, 32, 33, 10, 15] # array #
print(my_Stack)
print(my_Stack.pop())
# think python simple just pop and push #
print(my_Stack.pop())
print(my_Stack.pop())
print(my_Stack.pop())
| my__stack = [10, 12, 13, 11, 33, 24, 56, 78, 13, 56, 31, 32, 33, 10, 15]
print(my_Stack)
print(my_Stack.pop())
print(my_Stack.pop())
print(my_Stack.pop())
print(my_Stack.pop()) |
dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
del dict['Name'] # remove entry with key 'Name'
dict.clear() # remove all entries in dict
del dict # delete entire dictionary
print ("dict['Age']: ", dict['Age'])
print ("dict['School']: ", dict['School']) | dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
del dict['Name']
dict.clear()
del dict
print("dict['Age']: ", dict['Age'])
print("dict['School']: ", dict['School']) |
'''
URL: https://leetcode.com/problems/maximum-nesting-depth-of-the-parentheses/
Difficulty: Easy
Description: Maximum Nesting Depth of the Parentheses
A string is a valid parentheses string (denoted VPS) if it meets one of the following:
It is an empty string "", or a single character not equal to "(" or ")",
It can be written as AB (A concatenated with B), where A and B are VPS's, or
It can be written as (A), where A is a VPS.
We can similarly define the nesting depth depth(S) of any VPS S as follows:
depth("") = 0
depth(C) = 0, where C is a string with a single character not equal to "(" or ")".
depth(A + B) = max(depth(A), depth(B)), where A and B are VPS's.
depth("(" + A + ")") = 1 + depth(A), where A is a VPS.
For example, "", "()()", and "()(()())" are VPS's (with nesting depths 0, 1, and 2), and ")(" and "(()" are not VPS's.
Given a VPS represented as string s, return the nesting depth of s.
Example 1:
Input: s = "(1+(2*3)+((8)/4))+1"
Output: 3
Explanation: Digit 8 is inside of 3 nested parentheses in the string.
Example 2:
Input: s = "(1)+((2))+(((3)))"
Output: 3
Example 3:
Input: s = "1+(2*3)/(2-1)"
Output: 1
Example 4:
Input: s = "1"
Output: 0
Constraints:
1 <= s.length <= 100
s consists of digits 0-9 and characters '+', '-', '*', '/', '(', and ')'.
It is guaranteed that parentheses expression s is a VPS.
'''
class Solution:
def maxDepth(self, s):
maxD = -float('inf')
currD = 0
for ch in s:
if ch not in ["(", ")"]:
continue
if ch == "(":
currD += 1
else:
maxD = max(maxD, currD)
currD -= 1
return maxD if maxD != -float('inf') else currD
| """
URL: https://leetcode.com/problems/maximum-nesting-depth-of-the-parentheses/
Difficulty: Easy
Description: Maximum Nesting Depth of the Parentheses
A string is a valid parentheses string (denoted VPS) if it meets one of the following:
It is an empty string "", or a single character not equal to "(" or ")",
It can be written as AB (A concatenated with B), where A and B are VPS's, or
It can be written as (A), where A is a VPS.
We can similarly define the nesting depth depth(S) of any VPS S as follows:
depth("") = 0
depth(C) = 0, where C is a string with a single character not equal to "(" or ")".
depth(A + B) = max(depth(A), depth(B)), where A and B are VPS's.
depth("(" + A + ")") = 1 + depth(A), where A is a VPS.
For example, "", "()()", and "()(()())" are VPS's (with nesting depths 0, 1, and 2), and ")(" and "(()" are not VPS's.
Given a VPS represented as string s, return the nesting depth of s.
Example 1:
Input: s = "(1+(2*3)+((8)/4))+1"
Output: 3
Explanation: Digit 8 is inside of 3 nested parentheses in the string.
Example 2:
Input: s = "(1)+((2))+(((3)))"
Output: 3
Example 3:
Input: s = "1+(2*3)/(2-1)"
Output: 1
Example 4:
Input: s = "1"
Output: 0
Constraints:
1 <= s.length <= 100
s consists of digits 0-9 and characters '+', '-', '*', '/', '(', and ')'.
It is guaranteed that parentheses expression s is a VPS.
"""
class Solution:
def max_depth(self, s):
max_d = -float('inf')
curr_d = 0
for ch in s:
if ch not in ['(', ')']:
continue
if ch == '(':
curr_d += 1
else:
max_d = max(maxD, currD)
curr_d -= 1
return maxD if maxD != -float('inf') else currD |
#
# PySNMP MIB module CISCO-EVC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-EVC-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:57:43 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, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
SingleValueConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint")
ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt")
CiscoCosList, = mibBuilder.importSymbols("CISCO-TC", "CiscoCosList")
ifIndex, InterfaceIndexOrZero = mibBuilder.importSymbols("IF-MIB", "ifIndex", "InterfaceIndexOrZero")
VlanId, VlanIdOrNone = mibBuilder.importSymbols("Q-BRIDGE-MIB", "VlanId", "VlanIdOrNone")
SnmpAdminString, = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup")
ObjectIdentity, Unsigned32, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, IpAddress, MibIdentifier, TimeTicks, Gauge32, iso, ModuleIdentity, NotificationType, Counter64, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "Unsigned32", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "IpAddress", "MibIdentifier", "TimeTicks", "Gauge32", "iso", "ModuleIdentity", "NotificationType", "Counter64", "Counter32")
RowStatus, TruthValue, MacAddress, StorageType, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TruthValue", "MacAddress", "StorageType", "DisplayString", "TextualConvention")
ciscoEvcMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 613))
ciscoEvcMIB.setRevisions(('2012-05-21 00:00', '2008-05-01 00:00', '2007-12-20 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: ciscoEvcMIB.setRevisionsDescriptions(('- Added following objects to cevcSITable: * cevcSICreationType * cevcSIType - Added following objects to cevcSIForwardBdTable: * cevcSIForwardBdNumberBase * cevcSIForwardBdNumber1kBitmap * cevcSIForwardBdNumber2kBitmap * cevcSIForwardBdNumber3kBitmap * cevcSIForwardBdNumber4kBitmap - Added MacSecurityViolation OID subtree and following objects: * cevcMacAddress * cevcMaxMacConfigLimit * cevcSIID - Deprecated cevcEvcNotificationGroup and added cevcEvcNotificationGroupRev1 and added cevcMacSecurityViolationNotification - Deprecated cevcSIGroup and added cevcSIGroupRev1 and added cevcSICreationType and cevcSIType - Deprecated cevcSIForwardGroup and added cevcSIForwardGroupRev1 and added the new objects mentioned in cevcSIForwardBdTable - Added CevcMacSecurityViolationCause Textual convention - Added new ciscoEvcMIBComplianceRev2', '- Added following enums to cevcSIOperStatus: * deleted(4) * errorDisabled(5) * unknown(6) - Added following named bits to cevcSIMatchEncapValid: * payloadTypes(3) * priorityCos(4) * dot1qNativeVlan(5) * dot1adNativeVlan(6) * encapExact(7) - The Object cevcSIMatchEncapPayloadType is replaced by new object cevcSIMatchEncapPayloadTypes to support multiple payload types for service instance match criteria. - Added new object cevcSIMatchEncapPriorityCos to cevcSIMatchEncapTable. - Added new Compliance ciscoEvcMIBComplianceRev1. - Added new Object Group cevcSIMatchCriteriaGroupRev1. - Miscellaneous updates/corrections.', 'Initial version of this MIB module.',))
if mibBuilder.loadTexts: ciscoEvcMIB.setLastUpdated('201205210000Z')
if mibBuilder.loadTexts: ciscoEvcMIB.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts: ciscoEvcMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-ethermibs@cisco.com')
if mibBuilder.loadTexts: ciscoEvcMIB.setDescription("Metro Ethernet services can support a wide range of applications and subscriber needs easily, efficiently and cost-effectively. Using standard Ethernet interfaces, subscribers can set up secure, private Ethernet Virtual Connections, to connect their sites together and connect to business partners, suppliers and the Internet. This MIB module defines the managed objects and notifications describing Ethernet Virtual Connections. Ethernet Virtual Connections (EVC), are defined by the Metro Ethernet Forum (MEF), as an association between two or more UNIs. Frames within an EVC can only be exchanged among the associated UNIs. Frames sent into the MEN via a particular UNI must not be delivered back to the UNI from which it originated. Along an EVC path, there are demarcation flow points on associated ingress and egress interface, of every device, through which the EVC passes. A service instance represents these flow points where a service passes through an interface. From an operational perspective, a service instance serves three purposes: 1. Defines the instance of a particular EVC service on a specific interface and identifies all frames that belongs to that particular service/flow. 2. To provide the capability of applying the configured features to those frames belonging to the service. 3. To optionally define how to forward those frames in the data-path. The association of a service instance to an EVC depicts an instance of an Ethernet flow on a particular interface for an end-to-end (UNI-to-UNI) Ethernet service for a subscriber. The following diagram illustrates the association of EVC, UNIs and service instances. UNI physical ports are depicted as 'U', and service instances as 'x'. CE MEN MEN CE ------- ------- ------- ------- | | | | () | | | | | |--------Ux x|--( )--|x xU--------| | | | | | () | | | | ------- ------- ------- ------- ^ ^ | | -------- EVC --------- This MIB module addresses the functional areas of network management for EVC, including: The operational mode for interfaces that are providing Ethernet service(s). The service attributes regarding an interface behaving as UNI, such as CE-VLAN mapping and layer 2 control protocol (eg. stp, vtp, cdp) processing. The provisioning of service instances to define flow points for an Ethernet service. The operational status of EVCs for notifications of status changes, and EVC creation and deletion. Definition of terms and acronyms: B-Tag: Backbone Tag field in Ethernet 802.1ah frame CE: Customer Edge CE-VLAN: Customer Edge VLAN CoS: Class Of Service EVC: Ethernet Virtual Connection I-SID: Service Instance Identifier field in Ethernet 802.1ah frame MAC: Media Access Control MEN: Metro Ethernet Network NNI: Network to Network Interface OAM: Operations Administration and Management PPPoE: Point-to-Point Protocol over Ethernet Service frame: An Ethernet frame transmitted across the UNI toward the service provider or an Ethernet frame transmitted across the UNI toward the Subscriber. Service Instance: A flow point of an Ethernet service Service provider: The organization providing Ethernet service(s). Subscriber: The organization purchasing and/or using Ethernet service(s). UNI: User Network Interface The physical demarcation point between the responsibility of the service provider and the responsibility of the Subscriber. UNI-C: User Network Interface, subscriber side UNI-N: User Network Interface, service provider side VLAN: Virtual Local Area Network")
ciscoEvcMIBNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 0))
ciscoEvcMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1))
ciscoEvcMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 2))
cevcSystem = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 1))
cevcPort = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2))
cevcEvc = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3))
cevcServiceInstance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4))
cevcEvcNotificationConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 5))
cevcMacSecurityViolation = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6))
class CevcMacSecurityViolationCauseType(TextualConvention, Integer32):
description = "An integer value which identifies the cause for the MAC Security Violation. If the system MAC Address limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedSystemLimit' value. If the Bridge domain limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedBdLimit' value. If the Service Instance limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedSILimit' value. If the MAC address is present in the Black list then cevcMacSecurityViolationCauseType will contain 'blackListDeny' value."
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))
namedValues = NamedValues(("exceedSystemLimit", 1), ("exceedBdLimit", 2), ("exceedSILimit", 3), ("blackListDeny", 4))
class CiscoEvcIndex(TextualConvention, Unsigned32):
description = 'An integer-value which uniquely identifies the EVC.'
status = 'current'
subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 4294967295)
class CiscoEvcIndexOrZero(TextualConvention, Unsigned32):
description = "This textual convention is an extension to textual convention 'CiscoEvcIndex'. It includes the value of '0' in addition to the range of 1-429496725. Value of '0' indicates that the EVC has been neither configured nor assigned."
status = 'current'
subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 4294967295)
class CevcL2ControlProtocolType(TextualConvention, Integer32):
description = "Defines the different types of layer 2 control protocols: 'other' None of the following. 'cdp' Cisco Discovery Protocol. 'dtp' Dynamic Trunking Protocol. 'pagp' Port Aggregration Protocol. 'udld' UniDirectional Link Detection. 'vtp' Vlan Trunking Protocol. 'lacp' Link Aggregation Control Protocol. 'dot1x' IEEE 802.1x 'stp' Spanning Tree Protocol."
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))
namedValues = NamedValues(("other", 1), ("cdp", 2), ("dtp", 3), ("pagp", 4), ("udld", 5), ("vtp", 6), ("lacp", 7), ("dot1x", 8), ("stp", 9))
class ServiceInstanceTarget(TextualConvention, OctetString):
description = "Denotes a generic service instance target. An ServiceInstanceTarget value is always interpreted within the context of an ServiceInstanceTargetType value. Every usage of the ServiceInstanceTarget textual convention is required to specify the ServiceInstanceTargetType object which provides the context. It is suggested that the ServiceInstanceTargetType object is logically registered before the object(s) which use the ServiceInstanceTarget textual convention if they appear in the same logical row. The value of an ServiceInstanceTarget object must always be consistent with the value of the associated ServiceInstanceTargetType object. Attempts to set an ServiceInstanceTarget object to a value which is inconsistent with the associated ServiceInstanceTargetType must fail with an inconsistentValue error. When this textual convention is used as the syntax of an index object, there may be issues with the limit of 128 sub-identifiers specified in SMIv2, STD 58. In this case, the object definition MUST include a 'SIZE' clause to limit the number of potential instance sub-identifiers."
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 40)
class ServiceInstanceTargetType(TextualConvention, Integer32):
description = "Defines the type of interface/media to which a service instance is attached. 'other' None of the following. This value MUST be used if the value of the corresponding ServiceInstanceTarget object is a zero-length string. 'interface' Service instance is attached to the the interface defined by ServiceInstanceInterface textual convention. Each definition of a concrete ServiceInstanceTargetType value must be accompanied by a definition of a textual convention for use with that ServiceInstanceTargetType. To support future extensions, the ServiceInstanceTargetType textual convention SHOULD NOT be sub-typed in object type definitions. It MAY be sub-typed in compliance statements in order to require only a subset of these target types for a compliant implementation. Implementations must ensure that ServiceInstanceTargetType objects and any dependent objects (e.g. ServiceInstanceTarget objects) are consistent. An inconsistentValue error must be generated if an attempt to change an ServiceInstanceTargetType object would, for example, lead to an undefined ServiceInstanceTarget value. In particular, ServiceInstanceTargetType/ServiceInstanceTarget pairs must be changed together if the service instance taget type changes."
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("other", 1), ("interface", 2))
class ServiceInstanceInterface(TextualConvention, OctetString):
description = "This textual convention indicates the ifIndex which identifies the interface that the service instance is attached, for which the corresponding ifType has the value of (but not limited to) 'ethernetCsmacd'. octets contents encoding 1-4 ifIndex network-byte order The corresponding ServiceInstanceTargetType value is interface(2)."
status = 'current'
subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(4, 4)
fixedLength = 4
cevcMacAddress = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6, 1), MacAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcMacAddress.setStatus('current')
if mibBuilder.loadTexts: cevcMacAddress.setDescription('This object indicates the MAC Address which has violated the Mac security rules.')
cevcMaxMacConfigLimit = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6, 2), Unsigned32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cevcMaxMacConfigLimit.setStatus('current')
if mibBuilder.loadTexts: cevcMaxMacConfigLimit.setDescription('This object specifies the maximum MAC configuration limit. This is also sent as a part of MAC security violation notification. Every platform has their own forwarding table limitation. User can also set the maximum MAC configuration limit and if the limit set by user is not supported by platform then the object returns error.')
cevcSIID = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcSIID.setStatus('current')
if mibBuilder.loadTexts: cevcSIID.setDescription('This object indicates the service instance ID for the MAC security violation notification.')
cevcViolationCause = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6, 4), CevcMacSecurityViolationCauseType()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcViolationCause.setStatus('current')
if mibBuilder.loadTexts: cevcViolationCause.setDescription("This object indicates the MAC security violation cause. When the system MAC Address limit is exceeded, the cevcMacSecurityViolationCause will contain 'exceedSystemLimit' value. When the Bridge domain limit is exceeded, the cevcMacSecurityViolationCause will contain 'exceedBdLimit' value. When the Service Instance limit is exceeded, the cevcMacSecurityViolationCause will contain 'exceedSILimit' value. If the MAC address is present in the Black list then cevcMacSecurityViolationCause will contain 'blackListDeny' value.")
cevcMaxNumEvcs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 1, 1), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcMaxNumEvcs.setStatus('current')
if mibBuilder.loadTexts: cevcMaxNumEvcs.setDescription('This object indicates the maximum number of EVCs that the system supports.')
cevcNumCfgEvcs = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 1, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcNumCfgEvcs.setStatus('current')
if mibBuilder.loadTexts: cevcNumCfgEvcs.setDescription('This object indicates the actual number of EVCs currently configured on the system.')
cevcPortTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1), )
if mibBuilder.loadTexts: cevcPortTable.setStatus('current')
if mibBuilder.loadTexts: cevcPortTable.setDescription("This table provides the operational mode and configuration limitations of the physical interfaces (ports) that provide Ethernet services for the MEN. This table has a sparse depedent relationship on the ifTable, containing a row for each ifEntry having an ifType of 'ethernetCsmacd' capable of supporting Ethernet services.")
cevcPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: cevcPortEntry.setStatus('current')
if mibBuilder.loadTexts: cevcPortEntry.setDescription("This entry represents a port, a physical point, at which signals can enter or leave the network en route to or from another network to provide Ethernet services for the MEN. The system automatically creates an entry for each ifEntry in the ifTable having an ifType of 'ethernetCsmacd' capable of supporting Ethernet services and entries are automatically destroyed when the corresponding row in the ifTable is destroyed.")
cevcPortMode = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("uni", 1), ("nni", 2)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cevcPortMode.setStatus('current')
if mibBuilder.loadTexts: cevcPortMode.setDescription("Port denotes the physcial interface which can provide Ethernet services. This object indicates the mode of the port and its operational behaviour in the MEN. 'uni' User Network Interface The port resides on the interface between the end user and the network. Additional information related to the UNI is included in cevcUniTable. 'nni' Network to Network Interface. The port resides on the interface between two networks.")
cevcPortMaxNumEVCs = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1, 1, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcPortMaxNumEVCs.setStatus('current')
if mibBuilder.loadTexts: cevcPortMaxNumEVCs.setDescription('This object indicates the maximum number of EVCs that the interface can support.')
cevcPortMaxNumServiceInstances = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1, 1, 3), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcPortMaxNumServiceInstances.setStatus('current')
if mibBuilder.loadTexts: cevcPortMaxNumServiceInstances.setDescription('This object indicates the maximum number of service instances that the interface can support.')
cevcUniTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2), )
if mibBuilder.loadTexts: cevcUniTable.setStatus('current')
if mibBuilder.loadTexts: cevcUniTable.setDescription("This table contains a list of UNIs locally configured on the system. This table has a sparse dependent relationship on the cevcPortTable, containing a row for each cevcPortEntry having a cevcPortMode column value 'uni'.")
cevcUniEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"))
if mibBuilder.loadTexts: cevcUniEntry.setStatus('current')
if mibBuilder.loadTexts: cevcUniEntry.setDescription("This entry represents an UNI and its service attributes. The system automatically creates an entry when the system or the EMS/NMS creates a row in the cevcPortTable with a cevcPortMode of 'uni'. Likewise, the system automatically destroys an entry when the system or the EMS/NMS destroys the corresponding row in the cevcPortTable.")
cevcUniIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcUniIdentifier.setReference("MEF 16, 'Ethernet Local Management Interface (E-LMI)', January 2006")
if mibBuilder.loadTexts: cevcUniIdentifier.setStatus('current')
if mibBuilder.loadTexts: cevcUniIdentifier.setDescription('This object specifies a string-value assigned to a UNI for identification. When the UNI identifier is configured by the system or the EMS/NMS, it should be unique among all UNIs for the MEN. If the UNI identifier value is not specified, the value of the cevcUniIdentifier column is a zero-length string.')
cevcUniPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("dot1q", 1), ("dot1ad", 2))).clone('dot1q')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcUniPortType.setStatus('current')
if mibBuilder.loadTexts: cevcUniPortType.setDescription("This object specifies the UNI port type. 'dot1q' The UNI port is an IEEE 802.1q port. 'dot1ad' The UNI port is an IEEE 802.1ad port.")
cevcUniServiceAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2, 1, 3), Bits().clone(namedValues=NamedValues(("serviceMultiplexing", 0), ("bundling", 1), ("allToOneBundling", 2))).clone(namedValues=NamedValues(("serviceMultiplexing", 0), ("bundling", 1)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcUniServiceAttributes.setStatus('current')
if mibBuilder.loadTexts: cevcUniServiceAttributes.setDescription("This object specifies the UNI service attributes. 'serviceMultiplexing' This bit specifies whether the UNI supports multiple EVCs. Point-to-Point EVCs and Multipoint-to-Multipoint EVCs may be multiplexed in any combination at the UNI if this bit is set to '1'. 'bundling' This bit specifies whether the UNI has the bundling attribute configured. If this bit is set to '1', more than one CE-VLAN ID can map to a particular EVC at the UNI. 'allToOneBundling' This bit specifies whether the UNI has the all to one bundling attribute. If this bit is set to '1', all CE-VLAN IDs map to a single EVC at the UNI. To summarize the valid combinations of serviceMultiplexing(0), bundling(1) and allToOneBundling(2) bits for an UNI, consider the following diagram: VALID COMBINATIONS +---------------+-------+-------+-------+-------+-------+ |UNI ATTRIBUTES | 1 | 2 | 3 | 4 | 5 | +---------------+-------+------+------------------------+ |Service | | | | | | |Multiplexing | | Y | Y | | | | | | | | | | +---------------+-------+-------+-------+-------+-------+ | | | | | | | |Bundling | | | Y | Y | | | | | | | | | +---------------+-------+-------+-------+-------+-------+ |All to One | | | | | | |Bundling | | | | | Y | | | | | | | | +---------------+-------+-------+------ +-------+-------+")
cevcPortL2ControlProtocolTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 3), )
if mibBuilder.loadTexts: cevcPortL2ControlProtocolTable.setStatus('current')
if mibBuilder.loadTexts: cevcPortL2ControlProtocolTable.setDescription('This table lists the layer 2 control protocol processing attributes at UNI ports. This table has an expansion dependent relationship on the cevcUniTable, containing zero or more rows for each UNI.')
cevcPortL2ControlProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 3, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-EVC-MIB", "cevcPortL2ControlProtocolType"))
if mibBuilder.loadTexts: cevcPortL2ControlProtocolEntry.setStatus('current')
if mibBuilder.loadTexts: cevcPortL2ControlProtocolEntry.setDescription('This entry represents the layer 2 control protocol processing at the UNI. The system automatically creates an entry for each layer 2 control protocol type when an entry is created in the cevcUniTable, and entries are automatically destroyed when the system destroys the corresponding row in the cevcUniTable.')
cevcPortL2ControlProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 3, 1, 1), CevcL2ControlProtocolType())
if mibBuilder.loadTexts: cevcPortL2ControlProtocolType.setStatus('current')
if mibBuilder.loadTexts: cevcPortL2ControlProtocolType.setDescription('This object indicates the type of layer 2 control protocol service frame as denoted by the value of cevcPortL2ControlProtocolAction column.')
cevcPortL2ControlProtocolAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("discard", 1), ("peer", 2), ("passToEvc", 3), ("peerAndPassToEvc", 4))).clone('discard')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcPortL2ControlProtocolAction.setStatus('current')
if mibBuilder.loadTexts: cevcPortL2ControlProtocolAction.setDescription("This object specifies the action to be taken for the given layer 2 control protocol service frames which matches the cevcPortL2ControlProtocolType, including: 'discard' The port must discard all ingress service frames carrying the layer 2 control protocol service frames and the port must not generate any egress service frames carrying the layer 2 control protocol service frames. When this action is set at the port, an EVC cannot process the layer 2 control protocol service frames. 'peer' The port must act as a peer, meaning it actively participates with the Customer Equipment, in the operation of the layer 2 control protocol service frames. An example of this is port authentication service at the UNI with 802.1x or enhanced link OAM functionality by peering at the UNI with link OAM (IEEE 802.3ah). When this action is set at the port, an EVC cannot process the layer 2 control protocol service frames. 'passToEvc' The disposition of the service frames which are layer 2 control protocol service frames must be determined by the layer 2 control protocol action attribute of the EVC, (see cevcSIL2ControlProtocolAction for further details). 'peerAndPassToEvc' The layer 2 control protocol service frames will be peered at the port and also passed to one or more EVCs for tunneling. An example of this possibility is where an 802.1x authentication frame is peered at the UNI for UNI-based authentication, but also passed to a given EVC for customer end-to-end authentication.")
cevcUniCEVlanEvcTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4), )
if mibBuilder.loadTexts: cevcUniCEVlanEvcTable.setStatus('current')
if mibBuilder.loadTexts: cevcUniCEVlanEvcTable.setDescription('This table contains for each UNI, a list of EVCs and the association of CE-VLANs to the EVC. The CE-VLAN mapping is locally significant to the UNI. This table has an expansion dependent relationship on the cevcUniTable, containing zero or more rows for each UNI.')
cevcUniCEVlanEvcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4, 1), ).setIndexNames((0, "IF-MIB", "ifIndex"), (0, "CISCO-EVC-MIB", "cevcUniEvcIndex"), (0, "CISCO-EVC-MIB", "cevcUniCEVlanEvcBeginningVlan"))
if mibBuilder.loadTexts: cevcUniCEVlanEvcEntry.setStatus('current')
if mibBuilder.loadTexts: cevcUniCEVlanEvcEntry.setDescription('This entry represents an EVC and the CE-VLANs that are mapped to it at an UNI. For example, if CE-VLANs 10, 20-30, 40 are mapped to an EVC indicated by cevcUniEvcIndex = 1, at an UNI with ifIndex = 2, this table will contain following rows to represent above CE-VLAN map: cevcUniCEVlanEvcEndingVlan.2.1.10 = 0 cevcUniCEVlanEvcEndingVlan.2.1.20 = 30 cevcUniCEVlanEvcEndingVlan.2.1.40 = 0 The system automatically creates an entry when the system creates an entry in the cevcUniTable and an entry is created in cevcSICEVlanTable for a service instance which is attached to an EVC on this UNI. Likewise, the system automatically destroys an entry when the system or the EMS/NMS destroys the corresponding row in the cevcUniTable or in the cevcSICEVlanTable.')
cevcUniEvcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4, 1, 1), CiscoEvcIndex())
if mibBuilder.loadTexts: cevcUniEvcIndex.setStatus('current')
if mibBuilder.loadTexts: cevcUniEvcIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies the EVC attached at an UNI.')
cevcUniCEVlanEvcBeginningVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4, 1, 2), VlanId())
if mibBuilder.loadTexts: cevcUniCEVlanEvcBeginningVlan.setStatus('current')
if mibBuilder.loadTexts: cevcUniCEVlanEvcBeginningVlan.setDescription("If cevcUniCEVlanEvcEndingVlan is '0', then this object indicates a single VLAN in the list. If cevcUniCEVlanEvcEndingVlan is not '0', then this object indicates the first VLAN in a range of VLANs.")
cevcUniCEVlanEvcEndingVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4, 1, 3), VlanIdOrNone()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcUniCEVlanEvcEndingVlan.setStatus('current')
if mibBuilder.loadTexts: cevcUniCEVlanEvcEndingVlan.setDescription("This object indicates the last VLAN in a range of VLANs. If the row does not describe a range, then the value of this column must be '0'.")
cevcEvcTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1), )
if mibBuilder.loadTexts: cevcEvcTable.setStatus('current')
if mibBuilder.loadTexts: cevcEvcTable.setDescription('This table contains a list of EVCs and their service attributes.')
cevcEvcEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcEvcIndex"))
if mibBuilder.loadTexts: cevcEvcEntry.setStatus('current')
if mibBuilder.loadTexts: cevcEvcEntry.setDescription("This entry represents the EVC configured on the system and its service atrributes. Entries in this table may be created and deleted via the cevcEvcRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcEvcRowStatus column to 'createAndGo'or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcEvcRowStatus column to 'destroy'.")
cevcEvcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 1), CiscoEvcIndex())
if mibBuilder.loadTexts: cevcEvcIndex.setStatus('current')
if mibBuilder.loadTexts: cevcEvcIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies the EVC.')
cevcEvcRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcEvcRowStatus.setStatus('current')
if mibBuilder.loadTexts: cevcEvcRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcEvcTable. cevcEvcIdentifier column must have a valid value before a row can be set to 'active'. Writable objects in this table can be modified while the value of cevcEvcRowStatus column is 'active'. An entry cannot be deleted if there exists a service instance which is referring to the cevcEvcEntry i.e. cevcSIEvcIndex in the cevcSITable has the same value as cevcEvcIndex being deleted.")
cevcEvcStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 3), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcEvcStorageType.setStatus('current')
if mibBuilder.loadTexts: cevcEvcStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevcEvcIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 4), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1, 100))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcEvcIdentifier.setReference("MEF 16, 'Ethernet Local Management Interface (E-LMI)', January 2006")
if mibBuilder.loadTexts: cevcEvcIdentifier.setStatus('current')
if mibBuilder.loadTexts: cevcEvcIdentifier.setDescription('This object specifies a string-value identifying the EVC. This value should be unique across the MEN.')
cevcEvcType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("pointToPoint", 1), ("multipointToMultipoint", 2))).clone('pointToPoint')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcEvcType.setStatus('current')
if mibBuilder.loadTexts: cevcEvcType.setDescription("This object specifies the type of EVC: 'pointToPoint' Exactly two UNIs are associated with one another. An ingress service frame at one UNI must not result in an egress service frame at a UNI other than the other UNI in the EVC. 'multipointToMultipoint' Two or more UNIs are associated with one another. An ingress service frame at one UNI must not result in an egress service frame at a UNI that is not in the EVC.")
cevcEvcCfgUnis = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(2, 4294967295)).clone(2)).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcEvcCfgUnis.setStatus('current')
if mibBuilder.loadTexts: cevcEvcCfgUnis.setDescription("This object specifies the number of UNIs expected to be configured for the EVC in the MEN. The underlying OAM protocol can use this value of UNIs to determine the EVC operational status, cevcEvcOperStatus. For a Multipoint-to-Multipoint EVC the minimum number of Uni's would be two.")
cevcEvcStateTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 2), )
if mibBuilder.loadTexts: cevcEvcStateTable.setStatus('current')
if mibBuilder.loadTexts: cevcEvcStateTable.setDescription('This table lists statical/status data of the EVC. This table has an one-to-one dependent relationship on the cevcEvcTable, containing a row for each EVC.')
cevcEvcStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 2, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcEvcIndex"))
if mibBuilder.loadTexts: cevcEvcStateEntry.setStatus('current')
if mibBuilder.loadTexts: cevcEvcStateEntry.setDescription('This entry represents status atrributes of an EVC. The system automatically creates an entry when the system or the EMS/NMS creates a row in the cevcEvcTable. Likewise, the system automatically destroys an entry when the system or the EMS/NMS destroys the corresponding row in the cevcEvcTable.')
cevcEvcOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("unknown", 1), ("active", 2), ("partiallyActive", 3), ("inactive", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcEvcOperStatus.setStatus('current')
if mibBuilder.loadTexts: cevcEvcOperStatus.setDescription("This object specifies the operational status of the EVC: 'unknown' Not enough information available regarding the EVC to determine the operational status at this time or EVC operational status is undefined. 'active' Fully operational between the UNIs in the EVC. 'partiallyActive' Capable of transferring traffic among some but not all of the UNIs in the EVC. This operational status is applicable only for Multipoint-to-Multipoint EVCs. 'inactive' Not capable of transferring traffic among any of the UNIs in the EVC. This value is derived from data gathered by underlying OAM protocol.")
cevcEvcActiveUnis = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 2, 1, 2), Gauge32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcEvcActiveUnis.setStatus('current')
if mibBuilder.loadTexts: cevcEvcActiveUnis.setDescription('This object indicates the number of active UNIs for the EVC in the MEN. This value is derived from data gathered by underlying OAM Protocol.')
cevcEvcUniTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3), )
if mibBuilder.loadTexts: cevcEvcUniTable.setStatus('current')
if mibBuilder.loadTexts: cevcEvcUniTable.setDescription("This table contains a list of UNI's for each EVC configured on the device. The UNIs can be local (i.e. physically located on the system) or remote (i.e. not physically located on the device). For local UNIs, the UNI Id is the same as denoted by cevcUniIdentifier with the same ifIndex value as cevcEvcLocalUniIfIndex. For remote UNIs, the underlying OAM protocol, if capable, provides the UNI Id via its protocol messages. This table has an expansion dependent relationship on the cevcEvcTable, containing a row for each UNI that is in the EVC.")
cevcEvcUniEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcEvcIndex"), (0, "CISCO-EVC-MIB", "cevcEvcUniIndex"))
if mibBuilder.loadTexts: cevcEvcUniEntry.setStatus('current')
if mibBuilder.loadTexts: cevcEvcUniEntry.setDescription('This entry represents a UNI, either local or remote, in the EVC. The system automatically creates an entry, when an UNI is attached to the EVC. Entries are automatically destroyed when the system or the EMS/NMS destroys the corresponding row in the cevcEvcTable or when an UNI is removed from the EVC.')
cevcEvcUniIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: cevcEvcUniIndex.setStatus('current')
if mibBuilder.loadTexts: cevcEvcUniIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies the UNI in an EVC.')
cevcEvcUniId = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcEvcUniId.setReference('MEF 16, Ethernet Local Management Interface (E-LMI), January 2006')
if mibBuilder.loadTexts: cevcEvcUniId.setStatus('current')
if mibBuilder.loadTexts: cevcEvcUniId.setDescription('This object indicates the string-value identifying the UNI that is in the EVC. For UNI that is local, this value is the same as cevcUniIdentifier for the same ifIndex value as cevcEvcLocalUniIfIndex. For UNI that is not on the system, this value may be derived from the underlying OAM protocol. If the UNI identifier value is not specified for the UNI or it is unknown, the value of the cevcEvcUniId column is a zero-length string.')
cevcEvcUniOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=NamedValues(("unknown", 1), ("notReachable", 2), ("up", 3), ("down", 4), ("adminDown", 5), ("localExcessiveError", 6), ("remoteExcessiveError", 7), ("localInLoopback", 8), ("remoteInLoopback", 9), ("localOutLoopback", 10), ("remoteOutLoopback", 11)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcEvcUniOperStatus.setStatus('current')
if mibBuilder.loadTexts: cevcEvcUniOperStatus.setDescription("This object indicates the operational status derived from data gathered by the OAM protocol for an UNI. 'unknown' Status is not known; possible reason could be caused by the OAM protocol has not provided information regarding the UNI. 'notReachable' UNI is not reachable; possible reason could be caused by the OAM protocol messages having not been received for an excessive length of time. 'up' UNI is active, up, and able to pass traffic. 'down' UNI is down and not passing traffic. 'adminDown' UNI has been administratively put in down state. 'localExcessiveError' UNI has experienced excessive number of invalid frames on the local end of the physical link between UNI-C and UNI-N. 'remoteExcessiveError' UNI has experienced excessive number of invalid frames on the remote side of the physical connection between UNI-C and UNI-N. 'localInLoopback' UNI is loopback on the local end of the physical link between UNI-C and UNI-N. 'remoteInLoopback' UNI is looped back on the remote end of the link between UNI-C and UNI-N. 'localOutLoopback' UNI just transitioned out of loopback on the local end of the physcial link between UNI-C and UNI-N. 'remoteOutLoopback' UNI just transitioned out of loopback on the remote end of the physcial link between UNI-C and UNI-N.")
cevcEvcLocalUniIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1, 4), InterfaceIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcEvcLocalUniIfIndex.setStatus('current')
if mibBuilder.loadTexts: cevcEvcLocalUniIfIndex.setDescription("When the UNI is local on the system, this object specifies the ifIndex of the UNI. The value '0' of this column indicates remote UNI.")
cevcSITable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1), )
if mibBuilder.loadTexts: cevcSITable.setStatus('current')
if mibBuilder.loadTexts: cevcSITable.setDescription('This table lists each service instance and its service attributes.')
cevcSIEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"))
if mibBuilder.loadTexts: cevcSIEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSIEntry.setDescription("This entry represents a service instance configured on the system and its service attributes. Entries in this table may be created and deleted via the cevcSIRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcSIRowStatus column to 'createAndGo'or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcSIRowStatus column to 'destroy'.")
cevcSIIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: cevcSIIndex.setStatus('current')
if mibBuilder.loadTexts: cevcSIIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies a service instance. An implementation MAY assign an ifIndex-value assigned to the service instance to cevcSIIndex.')
cevcSIRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIRowStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSIRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSITable. This object cannot be set to 'active' until following corresponding objects are assigned to valid values: - cevcSITargetType - cevcSITarget - cevcSIName - cevcSIType Following writable objects in this table cannot be modified while the value of cevcSIRowStatus is 'active': - cevcSITargetType - cevcSITarget - cevcSIName - cevcSIType Objects in this table and all other tables that have the same cevcSIIndex value as an index disappear when cevcSIRowStatus is set to 'destroy'.")
cevcSIStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 3), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIStorageType.setStatus('current')
if mibBuilder.loadTexts: cevcSIStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevcSITargetType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 4), ServiceInstanceTargetType()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSITargetType.setStatus('current')
if mibBuilder.loadTexts: cevcSITargetType.setDescription('This object indicates the type of interface/media to which a service instance has an attachment.')
cevcSITarget = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 5), ServiceInstanceTarget()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSITarget.setStatus('current')
if mibBuilder.loadTexts: cevcSITarget.setDescription('This object indicates the target to which a service instance has an attachment. If the target is unknown, the value of the cevcSITarget column is a zero-length string.')
cevcSIName = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 6), SnmpAdminString()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIName.setStatus('current')
if mibBuilder.loadTexts: cevcSIName.setDescription("The textual name of the service instance. The value of this column should be the name of the component as assigned by the local interface/media type and should be be suitable for use in commands entered at the device's 'console'. This might be text name, such as 'si1' or a simple service instance number, such as '1', depending on the interface naming syntax of the device. If there is no local name or this object is otherwise not applicable, then this object contains a zero-length string.")
cevcSIEvcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 7), CiscoEvcIndexOrZero()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIEvcIndex.setStatus('current')
if mibBuilder.loadTexts: cevcSIEvcIndex.setDescription("This object specifies the EVC Index that the service instance is associated. The value of '0' this column indicates that the service instance is not associated to an EVC. If the value of cevcSIEvcIndex column is not '0', there must exist an active row in the cevcEvcTable with the same index value for cevcEvcIndex.")
cevcSIAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2))).clone('up')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIAdminStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSIAdminStatus.setDescription("This object specifies the desired state of the Service Instance. 'up' Ready to transfer traffic. When a system initializes, all service instances start with this state. 'down' The service instance is administratively down and is not capable of transferring traffic.")
cevcSIForwardingType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("other", 0), ("bridgeDomain", 1)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIForwardingType.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardingType.setDescription("This object indicates technique used by a service instance to forward service frames. 'other' If the forwarding behavior of a service instance is not defined or unknown, this object is set to other(0). 'bridgeDomain' Bridge domain is used to forward service frames by a service instance. If cevcSIForwardingType is 'bridgeDomain(1)', there must exist an active row in the cevcSIForwardBdTable with the same index value of cevcSIIndex. The object cevcSIForwardBdNumber indicates the identifier of the bridge domain component being used.")
cevcSICreationType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("static", 1), ("dynamic", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcSICreationType.setStatus('current')
if mibBuilder.loadTexts: cevcSICreationType.setDescription("This object specifies whether the service instance created is statically configured by the user or is dynamically created. 'static' If the service instance is configured manually this object is set to static(1). 'dynamic' If the service instance is created dynamically by the first sign of life of an Ethernet frame, then this object is set to dynamic(2) for the service instance.")
cevcSIType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("regular", 1), ("trunk", 2), ("l2context", 3)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIType.setStatus('current')
if mibBuilder.loadTexts: cevcSIType.setDescription("This object specifies the type of the service instance. It mentions if the service instance is either a regular or trunk or l2context service instance. 'regular' If a service instance is configured without any type specified, then it is a regular service instance. 'trunk' If the service instance is configured with trunk type, then it is a trunk service instance. For a trunk service instance, its Bridge domain IDs are derived from encapsulation VLAN plus an optional offset (refer cevcSIForwardBdNumberBase object). 'l2context' If the service instance is configured with dynamic type, then it is a L2 context service instance. The Ethernet L2 Context is a statically configured service instance which contains the Ethernet Initiator for attracting the first sign of life. In other words, Ethernet L2 Context service instance is used for catching the first sign of life of Ethernet frames to create dynamic Ethernet sessions service instances.")
cevcSIStateTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 2), )
if mibBuilder.loadTexts: cevcSIStateTable.setStatus('current')
if mibBuilder.loadTexts: cevcSIStateTable.setDescription('This table lists statical status data of the service instance. This table has an one-to-one dependent relationship on the cevcSITable, containing a row for each service instance.')
cevcSIStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 2, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"))
if mibBuilder.loadTexts: cevcSIStateEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSIStateEntry.setDescription('This entry represents operational status of a service instance. The system automatically creates an entry when the system or the EMS NMS creates a row in the cevcSITable. Likewise, the system automatically destroys an entry when the system or the EMS NMS destroys the corresponding row in the cevcSITable.')
cevcSIOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("adminDown", 3), ("deleted", 4), ("errorDisabled", 5), ("unknown", 6)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: cevcSIOperStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSIOperStatus.setDescription("This object indicates the operational status of the Service Instance. 'up' Service instance is fully operational and able to transfer traffic. 'down' Service instance is down and not capable of transferring traffic, and is not administratively configured to be down by management system. 'adminDown' Service instance has been explicitly configured to administratively down by a management system and is not capable of transferring traffic. 'deleted' Service instance has been deleted. 'errorDisabled' Service instance has been shut down due to MAC security violations. 'unknown' Operational status of service instance is unknown or undefined.")
cevcSIVlanRewriteTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3), )
if mibBuilder.loadTexts: cevcSIVlanRewriteTable.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteTable.setDescription("This table lists the rewrite adjustments of the service frame's VLAN tags for service instances. This table has an expansion dependent relationship on the cevcSITable, containing a row for a VLAN adjustment for ingress and egress frames at each service instance.")
cevcSIVlanRewriteEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"), (0, "CISCO-EVC-MIB", "cevcSIVlanRewriteDirection"))
if mibBuilder.loadTexts: cevcSIVlanRewriteEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteEntry.setDescription('Each entry represents the VLAN adjustment for a Service Instance.')
cevcSIVlanRewriteDirection = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("ingress", 1), ("egress", 2))))
if mibBuilder.loadTexts: cevcSIVlanRewriteDirection.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteDirection.setDescription("This object specifies the VLAN adjustment for 'ingress' frames or 'egress' frames on the service instance.")
cevcSIVlanRewriteRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIVlanRewriteRowStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIVlanRewriteTable. cevcSIVlanRewriteAction and cevcSIVlanRewriteEncapsulation must have valid values before this object can be set to 'active'. Writable objects in this table can be modified while the value of cevcSIVlanRewriteRowStatus column is 'active'.")
cevcSIVlanRewriteStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 3), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIVlanRewriteStorageType.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevcSIVlanRewriteAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("push1", 1), ("push2", 2), ("pop1", 3), ("pop2", 4), ("translate1To1", 5), ("translate1To2", 6), ("translate2To1", 7), ("translate2To2", 8)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIVlanRewriteAction.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteAction.setDescription("This object specifies the rewrite action the device performs for the service instance, including: 'push1' Add cevcSIVlanRewriteVlan1 as the VLAN tag to the service frame. 'push2' Add cevcSIVlanRewriteVlan1 as the outer VLAN tag and cevcSIVlanRewriteVlan2 as the inner VLAN tag of the service frame. 'pop1' Remove the outermost VLAN tag from the service frame. 'pop2' Remove the two outermost VLAN tags from the service frame. 'translate1To1' Replace the outermost VLAN tag with the cevcSIVlanRewriteVlan1 tag. 'translate1To2' Replace the outermost VLAN tag with cevcSIVlanRewriteVlan1 and add cevcSIVlanRewriteVlan2 to the second VLAN tag of the service frame. 'translate2To1' Remove the outermost VLAN tag and replace the second VLAN tag with cevcSIVlanVlanRewriteVlan1. 'translate2To2' Replace the outermost VLAN tag with cevcSIVlanRewriteVlan1 and the second VLAN tag with cevcSIVlanRewriteVlan2.")
cevcSIVlanRewriteEncapsulation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("dot1q", 1), ("dot1ad", 2)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIVlanRewriteEncapsulation.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteEncapsulation.setDescription("This object specifies the encapsulation type to process for the service instance. 'dot1q' The IEEE 802.1q encapsulation. 'dot1ad' The IEEE 802.1ad encapsulation.")
cevcSIVlanRewriteVlan1 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 6), VlanId()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIVlanRewriteVlan1.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteVlan1.setDescription("This object specifies the outermost VLAN ID tag of the frame for the service instance. This object is valid only when cevcSIVlanRewriteAction is 'push1', 'push2', 'translate1To1', 'translate1To2', 'translate2To1', or 'translate2To2'.")
cevcSIVlanRewriteVlan2 = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 7), VlanId()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIVlanRewriteVlan2.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteVlan2.setDescription("This object specifies the second VLAN ID tag of the frame for the service instance. This object is valid only when cevcSIVlanRewriteAction is 'push2', 'translate1To2', or 'translate2To2'.")
cevcSIVlanRewriteSymmetric = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 8), TruthValue().clone('false')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIVlanRewriteSymmetric.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteSymmetric.setDescription("This object is valid only when cevcSIVlanRewriteDirection is 'ingress'. The value 'true' of this column specifies that egress packets are tagged with a VLAN specified by an active row in cevcSIPrimaryVlanTable. There could only be one VLAN value assigned in the cevcSIPrimaryVlanTable, i.e. only one 'active' entry that has the same index value of cevcSIIndex column and corresponding instance of cevcSIPrimaryVlanEndingVlan column has value '0'.")
cevcSIL2ControlProtocolTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 4), )
if mibBuilder.loadTexts: cevcSIL2ControlProtocolTable.setStatus('current')
if mibBuilder.loadTexts: cevcSIL2ControlProtocolTable.setDescription('This table lists the layer 2 control protocol processing attributes at service instances. This table has an expansion dependent relationship on the cevcSITable, containing a row for each layer 2 control protocol disposition at each service instance.')
cevcSIL2ControlProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 4, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"), (0, "CISCO-EVC-MIB", "cevcSIL2ControlProtocolType"))
if mibBuilder.loadTexts: cevcSIL2ControlProtocolEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSIL2ControlProtocolEntry.setDescription('This entry represents the layer 2 control protocol processing at a service instance. The system automatically creates an entry for each layer 2 control protocol type when an entry is created in the cevcSITable, and entries are automatically destroyed when the system destroys the corresponding row in the cevcSITable.')
cevcSIL2ControlProtocolType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 4, 1, 1), CevcL2ControlProtocolType())
if mibBuilder.loadTexts: cevcSIL2ControlProtocolType.setStatus('current')
if mibBuilder.loadTexts: cevcSIL2ControlProtocolType.setDescription('The layer 2 control protocol service frame that the service instance is to process as defined by object cevcSIL2ControlProtocolAction.')
cevcSIL2ControlProtocolAction = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("discard", 1), ("tunnel", 2), ("forward", 3))).clone('discard')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIL2ControlProtocolAction.setStatus('current')
if mibBuilder.loadTexts: cevcSIL2ControlProtocolAction.setDescription("The actions to be taken for a given layer 2 control protocol service frames that matches cevcSIL2ControlProtocolType, including: 'discard' The MEN must discard all ingress service frames carrying the layer 2 control protocol service frames on the EVC and the MEN must not generate any egress service frames carrying the layer 2 control protocol frames on the EVC. 'tunnel' Forward the layer 2 control protocol service frames with the MAC address changed as defined by the individual layer 2 control protocol. The EVC does not process the layer 2 protocol service frames. If a layer 2 control protocol service frame is to be tunneled, all the UNIs in the EVC must be configured to pass the layer 2 control protocol service frames to the EVC, cevcPortL2ControlProtocolAction column has the value of 'passToEvc' or 'peerAndPassToEvc'. 'forward' Forward the layer 2 conrol protocol service frames as data; similar to tunnel but layer 2 control protocol service frames are forwarded without changing the MAC address.")
cevcSICEVlanTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5), )
if mibBuilder.loadTexts: cevcSICEVlanTable.setStatus('current')
if mibBuilder.loadTexts: cevcSICEVlanTable.setDescription('This table contains the CE-VLAN map list for each Service Instance. This table has an expansion dependent relationship on the cevcSITable, containing a row for each CE-VLAN or a range of CE-VLANs that are mapped to a service instance.')
cevcSICEVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"), (0, "CISCO-EVC-MIB", "cevcSICEVlanBeginningVlan"))
if mibBuilder.loadTexts: cevcSICEVlanEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSICEVlanEntry.setDescription("This entry contains the CE-VLANs that are mapped at a Service Instance. Entries in this table may be created and deleted via the cevcSICEVlanRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcSICEVlanRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcSICEVlanRowStatus column to 'destroy'.")
cevcSICEVlanBeginningVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1, 1), VlanId())
if mibBuilder.loadTexts: cevcSICEVlanBeginningVlan.setStatus('current')
if mibBuilder.loadTexts: cevcSICEVlanBeginningVlan.setDescription("If cevcSICEVlanEndingVlan is '0', then this object indicates a single VLAN in the list. If cevcSICEVlanEndingVlan is not '0', then this object indicates the first VLAN in a range of VLANs.")
cevcSICEVlanRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSICEVlanRowStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSICEVlanRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSICEVlanTable. This object cannot be set to 'active' until all objects have been assigned valid values. Writable objects in this table can be modified while the value of the cevcSICEVlanRowStatus column is 'active'.")
cevcSICEVlanStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1, 3), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSICEVlanStorageType.setStatus('current')
if mibBuilder.loadTexts: cevcSICEVlanStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevcSICEVlanEndingVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1, 4), VlanIdOrNone()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSICEVlanEndingVlan.setStatus('current')
if mibBuilder.loadTexts: cevcSICEVlanEndingVlan.setDescription("This object indicates the last VLAN in a range of VLANs. If the row does not describe a range, then the value of this column must be '0'.")
cevcSIMatchCriteriaTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6), )
if mibBuilder.loadTexts: cevcSIMatchCriteriaTable.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchCriteriaTable.setDescription('This table contains the match criteria for each Service Instance. This table has an expansion dependent relationship on the cevcSITable, containing a row for each group of match criteria of each service instance.')
cevcSIMatchCriteriaEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"), (0, "CISCO-EVC-MIB", "cevcSIMatchCriteriaIndex"))
if mibBuilder.loadTexts: cevcSIMatchCriteriaEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchCriteriaEntry.setDescription("This entry represents a group of match criteria for a service instance. Each entry in the table with the same cevcSIIndex and different cevcSIMatchCriteriaIndex represents an OR operation of the match criteria for the service instance. Entries in this table may be created and deleted via the cevcSIMatchRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcSIMatchRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcSIMatchRowStatus column to 'destroy'.")
cevcSIMatchCriteriaIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 4294967295)))
if mibBuilder.loadTexts: cevcSIMatchCriteriaIndex.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchCriteriaIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies a match criteria for a service instance.')
cevcSIMatchRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchRowStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIMatchCriteriaTable. If the value of cevcSIMatchCriteriaType column is 'dot1q(1)' or 'dot1ad(2)' or 'untaggedAndDot1q' or 'untaggedAndDot1ad, then cevcSIMatchCriteriaRowStatus can not be set to 'active' until there exist an active row in the cevcSIMatchEncapTable with the same index value for cevcSIIndex and cevcSIMatchCriteriaIndex. Writable objects in this table can be modified while the value of the cevcSIMatchRowStatus column is 'active'.")
cevcSIMatchStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1, 3), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchStorageType.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevcSIMatchCriteriaType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("unknown", 1), ("dot1q", 2), ("dot1ad", 3), ("untagged", 4), ("untaggedAndDot1q", 5), ("untaggedAndDot1ad", 6), ("priorityTagged", 7), ("defaultTagged", 8)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchCriteriaType.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchCriteriaType.setDescription("This object specifies the criteria used to match a service instance. 'unknown' Match criteria for the service instance is not defined or unknown. 'dot1q' The IEEE 802.1q encapsulation is used as a match criteria for the service instance. The ether type value of the IEEE 802.1q tag is specified by the object cevcSIEncapEncapsulation with the same index value of cevcSIIndex and cevcSIMatchCreriaIndex. 'dot1ad' The IEEE 802.1ad encapsulation is used as a match criteria for the service instance. The ether type value of the IEEE 802.1ad tag is specified by the cevcSIEncapEncapsulation column with the same index value of cevcSIIndex and cevcSIMatchCreriaIndex. 'untagged' Service instance processes untagged service frames. Only one service instance on the interface/media type can use untagged frames as a match criteria. 'untaggedAndDot1q' Both untagged frames and the IEEE 802.1q encapsulation are used as a match criteria for the service instance. Only one service instance on the interface/media type can use untagged frames as a match criteria. The ether type value of the IEEE 802.1q tag is specified by the cevcSIEncapEncapsulation column with the same index value of cevcSIIndex and cevcSIMatchCreriaIndex. 'untaggedAndDot1ad' Both untagged frames and the IEEE 802.1ad encapsulation are used as a match criteria for the service instance. Only one service instance on the interface/media type can use untagged frames as a match criteria. The ether type value of the IEEE 802.1ad tag is specified by the cevcSIEncapEncapsulation column with the same index value of cevcSIIndex and cevcSIMatchCreriaIndex. 'priorityTagged' Service instance processes priority tagged frames. Only one service instance on the interface/media type can use priority tagged frames as a match criteria. 'defaultTagged' Service instance is a default service instance. The default service instance processes frames with VLANs that do not match to any other service instances configured on the interface/media type. Only one service instance on the interface/media type can be the default service instance.")
cevcSIMatchEncapTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7), )
if mibBuilder.loadTexts: cevcSIMatchEncapTable.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapTable.setDescription("This table contains the encapsulation based match criteria for each service instance. This table has a sparse dependent relationship on the cevcSIMatchCriteriaTable, containing a row for each match criteria having one of the following values for cevcSIMatchCriteriaType: - 'dot1q' - 'dot1ad' - 'untaggedAndDot1q' - 'untaggedAndDot1ad' - 'priorityTagged'")
cevcSIMatchEncapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"), (0, "CISCO-EVC-MIB", "cevcSIMatchCriteriaIndex"))
if mibBuilder.loadTexts: cevcSIMatchEncapEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapEntry.setDescription("This entry represents a group of encapulation match criteria for a service instance. Entries in this table may be created and deleted via the cevcSIMatchEncapRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcSIMatchEncapRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcSIMatchEncapRowStatus column to 'destroy'.")
cevcSIMatchEncapRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 1), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchEncapRowStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIMatchEncapTable. This object cannot be set to 'active' until cevcSIEncapEncapsulation and objects referred by cevcSIMatchEncapValid have been assigned their respective valid values. Writable objects in this table can be modified while the value of the cevcSIEncapMatchRowStatus column is 'active'.")
cevcSIMatchEncapStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 2), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchEncapStorageType.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevcSIMatchEncapValid = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 3), Bits().clone(namedValues=NamedValues(("primaryCos", 0), ("secondaryCos", 1), ("payloadType", 2), ("payloadTypes", 3), ("priorityCos", 4), ("dot1qNativeVlan", 5), ("dot1adNativeVlan", 6), ("encapExact", 7)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchEncapValid.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapValid.setDescription("This object specifies the encapsulation criteria used to match a service instance. 'primaryCos' The 'primaryCos' bit set to '1' specifies the Class of Service is used as service match criteria for the service instance. When this bit is set to '1' there must exist aleast one active rows in the cevcSIPrimaryVlanTable which has the same index values of cevcSIIndex and cevcSIMatchCriteriaIndex. When 'primaryCos' bit is '1', the cevcSIPrimaryCos column indicates the CoS value(s). 'secondaryCos' The 'secondaryCos' bit set to '1' specifies the Class of Service is used as service match criteria for the service instance. When this bit is set to '1' there must exist aleast one active rows in the cevcSISecondaryVlanTable which has the same index values of cevcSIIndex and cevcSIMatchCriteriaIndex. When 'secondaryCos' bit is '1', the cevcSISecondaryCos column indicates the CoS value(s). 'payloadType' This bit set to '1' specifies that the value of corresponding instance of cevcSIMatchEncapPayloadType is used as service match criteria for the service instance. 'payloadTypes' This bit set to '1' specifies that the value of corresponding instance of cevcSIMatchEncapPayloadTypes is used as service match criteria for the service instance. 'priorityCos' This bit set to '1' specifies that the value of corresponding instance of cevcSIMatchEncapPriorityCos is used as service match criteria for the service instance. 'dot1qNativeVlan' This bit set to '1' specifies that the IEEE 802.1q tag with native vlan is used as service match criteria for the service instance. 'dot1adNativeVlan' This bit set to '1' specifies that the IEEE 802.1ad tag with native vlan is used as service match criteria for the service instance. 'encapExact' This bit set to '1' specifies that a service frame is mapped to the service instance only if it matches exactly to the encapsulation specified by the service instance.")
cevcSIMatchEncapEncapsulation = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("dot1qEthertype0x8100", 1), ("dot1qEthertype0x9100", 2), ("dot1qEthertype0x9200", 3), ("dot1qEthertype0x88A8", 4), ("dot1adEthertype0x88A8", 5), ("dot1ahEthertype0x88A8", 6)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchEncapEncapsulation.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapEncapsulation.setDescription("This object specifies the encapsulation type used as service match criteria. The object also specifies the Ethertype for egress packets on the service instance. 'dot1qEthertype0x8100' The IEEE 801.1q encapsulation with ether type value 0x8100. 'dot1qEthertype0x9100' The IEEE 801.1q encapsulation with ether type value 0x9100. 'dot1qEthertype0x9200' The IEEE 801.1q encapsulation with ether type value 0x9200. 'dot1qEthertype0x88A8' The IEEE 801.1q encapsulation with ether type value 0x88A8. 'dot1adEthertype0x88A8' The IEEE 801.1ad encapsulation with ether type value 0x88A8. 'dot1ahEthertype0x88A8' The IEEE 801.1ah encapsulation with ether type value 0x88A8.")
cevcSIMatchEncapPrimaryCos = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 5), CiscoCosList()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchEncapPrimaryCos.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapPrimaryCos.setDescription("This object specifies the CoS values which the Service Instance uses as service match criteria. This object is valid only when 'primaryVlans' and 'primaryCos' bits are set to '1' in corresponding instance of the object cevcSIMatchEncapValid.")
cevcSIMatchEncapSecondaryCos = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 6), CiscoCosList()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchEncapSecondaryCos.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapSecondaryCos.setDescription("This object specifies the CoS values which the Service Instance uses as service match criteria. This object is valid only when 'secondaryVlans' and 'secondaryCos' bits are set to '1' in corresponding instance of the object cevcSIMatchEncapValid.")
cevcSIMatchEncapPayloadType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("other", 1), ("payloadType0x0800ip", 2)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchEncapPayloadType.setStatus('deprecated')
if mibBuilder.loadTexts: cevcSIMatchEncapPayloadType.setDescription("This object specifies the PayloadType(etype/protocol type) values that the service instance uses as a service match criteria. This object is required when the forwarding of layer-2 ethernet packet is done through the payloadType i.e IP etc. 'other' None of the following. 'payloadType0x0800ip' Payload type value for IP is 0x0800. This object is valid only when 'payloadType' bit is set to '1' in corresponding instance of the object cevcSIMatchEncapValid. This object is deprecated by cevcSIMatchEncapPayloadTypes.")
cevcSIMatchEncapPayloadTypes = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 8), Bits().clone(namedValues=NamedValues(("payloadTypeIPv4", 0), ("payloadTypeIPv6", 1), ("payloadTypePPPoEDiscovery", 2), ("payloadTypePPPoESession", 3), ("payloadTypePPPoEAll", 4)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchEncapPayloadTypes.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapPayloadTypes.setDescription("This object specifies the etype/protocol type values that service instance uses as a service match criteria. This object is required when the forwarding of layer-2 ethernet packet is done through the payload ether type i.e IP etc. 'payloadTypeIPv4' Ethernet payload type value for IPv4 protocol. 'payloadTypeIPv6' Ethernet payload type value for IPv6 protocol. 'payloadTypePPPoEDiscovery' Ethernet payload type value for PPPoE discovery stage. 'payloadTypePPPoESession' Ethernet payload type value for PPPoE session stage. 'payloadTypePPPoEAll' All ethernet payload type values for PPPoE protocol. This object is valid only when 'payloadTypes' bit is set to '1' in corresponding instance of the object cevcSIMatchEncapValid. This object deprecates cevcSIMatchEncapPayloadType.")
cevcSIMatchEncapPriorityCos = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 9), CiscoCosList()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIMatchEncapPriorityCos.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchEncapPriorityCos.setDescription("This object specifies the priority CoS values which the service instance uses as service match criteria. This object is valid only when 'priorityCos' bit is set to '1' in corresponding instance of the object cevcSIMatchEncapValid.")
cevcSIPrimaryVlanTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8), )
if mibBuilder.loadTexts: cevcSIPrimaryVlanTable.setStatus('current')
if mibBuilder.loadTexts: cevcSIPrimaryVlanTable.setDescription('This table contains the primary VLAN ID list for each Service Instance. This table has an expansion dependent relationship on the cevcSIMatchEncapTable, containing zero or more rows for each encapsulation match criteria.')
cevcSIPrimaryVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"), (0, "CISCO-EVC-MIB", "cevcSIMatchCriteriaIndex"), (0, "CISCO-EVC-MIB", "cevcSIPrimaryVlanBeginningVlan"))
if mibBuilder.loadTexts: cevcSIPrimaryVlanEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSIPrimaryVlanEntry.setDescription("This entry specifies a single VLAN or a range of VLANs contained in the primary VLAN list that's part of the encapsulation match criteria. Entries in this table may be created and deleted via the cevcSIPrimaryVlanRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of the cevcSIPrimaryVlanRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of the cevcSIPrimaryVlanRowStatus column to 'destroy'.")
cevcSIPrimaryVlanBeginningVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1, 1), VlanId())
if mibBuilder.loadTexts: cevcSIPrimaryVlanBeginningVlan.setStatus('current')
if mibBuilder.loadTexts: cevcSIPrimaryVlanBeginningVlan.setDescription("If cevcSIPrimaryVlanEndingVlan is '0', then this object indicates a single VLAN in the list. If cevcSIPrimaryVlanEndingVlan is not '0', then this object indicates the first VLAN in a range of VLANs.")
cevcSIPrimaryVlanRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIPrimaryVlanRowStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSIPrimaryVlanRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIPrimaryVlanTable. This column cannot be set to 'active' until all objects have been assigned valid values. Writable objects in this table can be modified while the value of the cevcSIPrimaryVlanRowStatus column is 'active'.")
cevcSIPrimaryVlanStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1, 3), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIPrimaryVlanStorageType.setStatus('current')
if mibBuilder.loadTexts: cevcSIPrimaryVlanStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevcSIPrimaryVlanEndingVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1, 4), VlanIdOrNone()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIPrimaryVlanEndingVlan.setStatus('current')
if mibBuilder.loadTexts: cevcSIPrimaryVlanEndingVlan.setDescription("This object indicates the last VLAN in a range of VLANs. If the row does not describe a range, then the value of this column must be '0'.")
cevcSISecondaryVlanTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9), )
if mibBuilder.loadTexts: cevcSISecondaryVlanTable.setStatus('current')
if mibBuilder.loadTexts: cevcSISecondaryVlanTable.setDescription('This table contains the seconadary VLAN ID list for each service instance. This table has an expansion dependent relationship on the cevcSIMatchEncapTable, containing zero or more rows for each encapsulation match criteria.')
cevcSISecondaryVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"), (0, "CISCO-EVC-MIB", "cevcSIMatchCriteriaIndex"), (0, "CISCO-EVC-MIB", "cevcSISecondaryVlanBeginningVlan"))
if mibBuilder.loadTexts: cevcSISecondaryVlanEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSISecondaryVlanEntry.setDescription("This entry specifies a single VLAN or a range of VLANs contained in the secondary VLAN list that's part of the encapsulation match criteria. Entries in this table may be created and deleted via the cevcSISecondaryVlanRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of the cevcSISecondaryVlanRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of the cevcSISecondaryVlanRowStatus column to 'destroy'.")
cevcSISecondaryVlanBeginningVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1, 1), VlanId())
if mibBuilder.loadTexts: cevcSISecondaryVlanBeginningVlan.setStatus('current')
if mibBuilder.loadTexts: cevcSISecondaryVlanBeginningVlan.setDescription("If cevcSISecondaryVlanEndingVlan is '0', then this object indicates a single VLAN in the list. If cevcSISecondaryVlanEndingVlan is not '0', then this object indicates the first VLAN in a range of VLANs.")
cevcSISecondaryVlanRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1, 2), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSISecondaryVlanRowStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSISecondaryVlanRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSISecondaryVlanTable. This column can not be set to 'active' until all objects have been assigned valid values. Writable objects in this table can be modified while the value of cevcSISecondaryVlanRowStatus column is 'active'.")
cevcSISecondaryVlanStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1, 3), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSISecondaryVlanStorageType.setStatus('current')
if mibBuilder.loadTexts: cevcSISecondaryVlanStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevcSISecondaryVlanEndingVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1, 4), VlanIdOrNone()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSISecondaryVlanEndingVlan.setStatus('current')
if mibBuilder.loadTexts: cevcSISecondaryVlanEndingVlan.setDescription("This object indicates the last VLAN in a range of VLANs. If the row does not describe a range, then the value of this column must be '0'.")
cevcSIForwardBdTable = MibTable((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10), )
if mibBuilder.loadTexts: cevcSIForwardBdTable.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardBdTable.setDescription("This table contains the forwarding bridge domain information for each service instance. This table has a sparse dependent relationship on the cevcSITable, containing a row for each service instance having a cevcSIForwardingType of 'bridgeDomain'.")
cevcSIForwardBdEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1), ).setIndexNames((0, "CISCO-EVC-MIB", "cevcSIIndex"))
if mibBuilder.loadTexts: cevcSIForwardBdEntry.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardBdEntry.setDescription("This entry represents an bridged domain used to forward service frames by the service instance. Entries in this table may be created and deleted via the cevcSIForwardBdRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of the cevcSIForwardBdRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of the cevcSIForwardBdRowStatus column to 'destroy'.")
cevcSIForwardBdRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 1), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIForwardBdRowStatus.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardBdRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIForwardBdTable. This column can not be set to 'active' until all objects have been assigned valid values. Writable objects in this table can be modified while the value of the cevcSIForwardBdRowStatus column is 'active'.")
cevcSIForwardBdStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 2), StorageType().clone('volatile')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIForwardBdStorageType.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardBdStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevcSIForwardBdNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 3), Unsigned32()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIForwardBdNumber.setStatus('deprecated')
if mibBuilder.loadTexts: cevcSIForwardBdNumber.setDescription('The bridge domain identifier that is associated with the service instance. A bridge domain refers to a layer 2 broadcast domain spanning a set of physical or virtual ports. Frames are switched Multicast and unknown destination unicast frames are flooded within the confines of the bridge domain.')
cevcSIForwardBdNumberBase = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 4096, 8192, 12288, 16384))).clone(namedValues=NamedValues(("bdNumBase0", 0), ("bdNumBase4096", 4096), ("bdNumBase8192", 8192), ("bdNumBase12288", 12288), ("bdNumBase16384", 16384)))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIForwardBdNumberBase.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardBdNumberBase.setDescription('This object specifies the base of bridge domain. The bridge domain range is 1~16k, cevcSIForwardBdNumberBase is to track what is the base of each 4k bitmap. In this way we can specify all the 16k bridge domains using four 1k bitmaps and having the base which describes that is the base of each 4k bitmap. The four 1k bitmaps, cevcSIForwardBdNumber1kBitmap represents 0~1023, cevcSIForwardBdNumber2kBitmap represents 1024~2047, cevcSIForwardBdNumber3kBitmap represents 2048~3071, cevcSIForwardBdNumber4kBitmap represents 3072~4095 And cevcSIForwardBdNumberBase is one of 0, 4096, 8192, 12288, 16384. SNMP Administrator can use cevcSIForwardBdNumberBase + (position of the set bit in four 1k bitmaps) to get BD number of a service instance.')
cevcSIForwardBdNumber1kBitmap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIForwardBdNumber1kBitmap.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardBdNumber1kBitmap.setDescription("This object specifies a string of octets containing one bit per Bridge domain per service instance(generally we have one bridge domain per nontrunk service instance but can have more than one bridge configured with a trunk service instance). The first octet corresponds to Bridge domains with Bridge domain ID values of 0 through 7; the second octet to Bridge domains 8 through 15; etc. Thus, this 128-octet bitmap represents bridge domain ID value 0~1023. For each Bridge domain configured, the bit corresponding to that bridge domain is set to '1'. SNMP Administrator uses cevcSIForwardBdNumberBase + (position of the set bit in bitmap)to calculate BD number of a service instance. Note that if the length of this string is less than 128 octets, any 'missing' octets are assumed to contain the value zero. An NMS may omit any zero-valued octets from the end of this string in order to reduce SetPDU size, and the agent may also omit zero-valued trailing octets, to reduce the size of GetResponse PDUs.")
cevcSIForwardBdNumber2kBitmap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIForwardBdNumber2kBitmap.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardBdNumber2kBitmap.setDescription("This object specifies a string of octets containing one bit per Bridge domain per service instance(generally we have one bridge domain per nontrunk service instance but can have more than one bridge configured with a trunk service instance). The first octet corresponds to Bridge domains with Bridge domain ID values of 1024 through 1031; the second octet to Bridge domains 1032 through 1039; etc. Thus, this 128-octet bitmap represents bridge domain ID value 1024~2047. For each Bridge domain configured, the bit corresponding to that bridge domain is set to 1. SNMP Administrator uses cevcSIForwardBdNumberBase + (position of the set bit in bitmap)to calculate BD number of a service instance. Note that if the length of this string is less than 128 octets, any 'missing' octets are assumed to contain the value zero. An NMS may omit any zero-valued octets from the end of this string in order to reduce SetPDU size, and the agent may also omit zero-valued trailing octets, to reduce the size of GetResponse PDUs.")
cevcSIForwardBdNumber3kBitmap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIForwardBdNumber3kBitmap.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardBdNumber3kBitmap.setDescription("This object specifies a string of octets containing one bit per Bridge domain per service instance(generally we have one bridge domain per non-trunk service instance but can have more than one bridge configured with a trunk service instance). The first octet corresponds to Bridge domains with Bridgedomain ID values of 2048 through 2055; the second octet to Bridge domains 2056 through 2063; etc. Thus, this 128-octet bitmap represents bridge domain ID value 2048~3071. For each Bridge domain configured, the bit corresponding to that bridge domain is set to 1. SNMP Administrator uses cevcSIForwardBdNumberBase + (position of the set bit in bitmap)to calculate BD number of a service instance. Note that if the length of this string is less than 128 octets, any 'missing' octets are assumed to contain the value zero. An NMS may omit any zero-valued octets from the end of this string in order to reduce SetPDU size, and the agent may also omit zero-valued trailing octets, to reduce the size of GetResponse PDUs.")
cevcSIForwardBdNumber4kBitmap = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 8), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: cevcSIForwardBdNumber4kBitmap.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardBdNumber4kBitmap.setDescription("This object specifies a string of octets containing one bit per Bridge domain per service instance(generally we have one bridge domain per non-trunk service instance but can have more than one bridge configured with a trunk service instance). The first octet corresponds to Bridge domains with Bridgedomain ID values of 3078 through 3085; the second octet to Bridge domains 3086 through 3093; etc. Thus, this 128-octet bitmap represents bridge domain ID value 3072~4095. For each Bridge domain configured, the bit corresponding to that bridge domain is set to 1. SNMP Administrator uses cevcSIForwardBdNumberBase + (position of the set bit in bitmap)to calculate BD number of a service instance. Note that if the length of this string is less than 128 octets, any 'missing' octets are assumed to contain the value zero. An NMS may omit any zero-valued octets from the end of this string in order to reduce SetPDU size, and the agent may also omit zero-valued trailing octets, to reduce the size of GetResponse PDUs.")
cevcEvcNotifyEnabled = MibScalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 5, 1), Bits().clone(namedValues=NamedValues(("status", 0), ("creation", 1), ("deletion", 2), ("macSecurityViolation", 3)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: cevcEvcNotifyEnabled.setStatus('current')
if mibBuilder.loadTexts: cevcEvcNotifyEnabled.setDescription("This object specifies the system generation of notification, including: 'status' This bit set to '1' specifies the system generation of cevcEvcStatusChangedNotification. 'creation' This bit set to '1' specifies the system generation of cevcEvcCreationNotification. 'deletion' This bit set to '1' specifices the system generation of cevcEvcDeletionNotification. 'macSecurityViolation' This bit set to '1' specifies the system generation of cevcMacSecurityViolation.")
ciscoEvcNotificationPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0))
cevcEvcStatusChangedNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0, 1)).setObjects(("CISCO-EVC-MIB", "cevcEvcOperStatus"), ("CISCO-EVC-MIB", "cevcEvcCfgUnis"), ("CISCO-EVC-MIB", "cevcEvcActiveUnis"))
if mibBuilder.loadTexts: cevcEvcStatusChangedNotification.setStatus('current')
if mibBuilder.loadTexts: cevcEvcStatusChangedNotification.setDescription("A device generates this notification when an EVC's operational status changes, or the number of active UNIs associated with the EVC (cevcNumActiveUnis) changes.")
cevcEvcCreationNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0, 2)).setObjects(("CISCO-EVC-MIB", "cevcEvcOperStatus"))
if mibBuilder.loadTexts: cevcEvcCreationNotification.setStatus('current')
if mibBuilder.loadTexts: cevcEvcCreationNotification.setDescription('A device generates this notification upon the creation of an EVC.')
cevcEvcDeletionNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0, 3)).setObjects(("CISCO-EVC-MIB", "cevcEvcOperStatus"))
if mibBuilder.loadTexts: cevcEvcDeletionNotification.setStatus('current')
if mibBuilder.loadTexts: cevcEvcDeletionNotification.setDescription('A device generates this notification upon the deletion of an EVC.')
cevcMacSecurityViolationNotification = NotificationType((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0, 4)).setObjects(("IF-MIB", "ifIndex"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumberBase"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumber1kBitmap"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumber2kBitmap"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumber3kBitmap"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumber4kBitmap"), ("CISCO-EVC-MIB", "cevcSIID"), ("CISCO-EVC-MIB", "cevcMacAddress"), ("CISCO-EVC-MIB", "cevcMaxMacConfigLimit"), ("CISCO-EVC-MIB", "cevcViolationCause"))
if mibBuilder.loadTexts: cevcMacSecurityViolationNotification.setStatus('current')
if mibBuilder.loadTexts: cevcMacSecurityViolationNotification.setDescription("A SNMP entity generates this notification in the following cases: When the system MAC Address limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedSystemLimit' value. When the Bridge domain limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedBdLimit' value. When the Service Instance limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedSILimit' value. If the MAC address is present in the Black list then cevcMacSecurityViolationCauseType will contain 'blackListDeny' value. Description of all the varbinds for this Notification is as follows: ifIndex indicates the interface index which identifies the interface that the service instance is attached. cevcSIForwardBdNumberBase indicates the base of bridge domain. The bridge domain range is 1~16k, this object is to track the base of each 4k bitmap. cevcSIForwardBdNumber1kBitmap indicates a string of octets containing one bit per Bridge domain per service instance. This 128-octet bitmap represents bridge domain ID values 0~1023. cevcSIForwardBdNumber2kBitmap indicates a string of octets containing one bit per Bridge domain per service instance. This 128-octet bitmap represents bridge domain ID values 1024~2047. cevcSIForwardBdNumber3kBitmap indicates a string of octets containing one bit per Bridge domain per service instance. This 128-octet bitmap represents bridge domain ID values 2048~3071. cevcSIForwardBdNumber4kBitmap indicates a string of octets containing one bit per Bridge domain per service instance. This 128-octet bitmap represents bridge domain ID values 3072~4095. cevcSIID indicates the service instance ID for the Mac security violation notification. cevcMacAddress indicates the Mac address which has violated the Mac security rules. cevcMaxMacConfigLimit indicates the maximum Mac configuration limit. This is also sent as a part of Mac security violation notification. cevcViolationCause indicates the Mac security violation cause.")
ciscoEvcMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 1))
ciscoEvcMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2))
ciscoEvcMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 1, 1)).setObjects(("CISCO-EVC-MIB", "cevcSystemGroup"), ("CISCO-EVC-MIB", "cevcPortGroup"), ("CISCO-EVC-MIB", "cevcEvcGroup"), ("CISCO-EVC-MIB", "cevcSIGroup"), ("CISCO-EVC-MIB", "cevcEvcNotificationConfigGroup"), ("CISCO-EVC-MIB", "cevcEvcNotificationGroup"), ("CISCO-EVC-MIB", "cevcSICosMatchCriteriaGroup"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteGroup"), ("CISCO-EVC-MIB", "cevcSIMatchCriteriaGroup"), ("CISCO-EVC-MIB", "cevcSIForwardGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEvcMIBCompliance = ciscoEvcMIBCompliance.setStatus('deprecated')
if mibBuilder.loadTexts: ciscoEvcMIBCompliance.setDescription('The new compliance statement for entities which implement the CISCO-EVC-MIB.')
ciscoEvcMIBComplianceRev1 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 1, 2)).setObjects(("CISCO-EVC-MIB", "cevcSystemGroup"), ("CISCO-EVC-MIB", "cevcPortGroup"), ("CISCO-EVC-MIB", "cevcEvcGroup"), ("CISCO-EVC-MIB", "cevcSIGroup"), ("CISCO-EVC-MIB", "cevcEvcNotificationConfigGroup"), ("CISCO-EVC-MIB", "cevcEvcNotificationGroup"), ("CISCO-EVC-MIB", "cevcSICosMatchCriteriaGroup"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteGroup"), ("CISCO-EVC-MIB", "cevcSIMatchCriteriaGroupRev1"), ("CISCO-EVC-MIB", "cevcSIForwardGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEvcMIBComplianceRev1 = ciscoEvcMIBComplianceRev1.setStatus('deprecated')
if mibBuilder.loadTexts: ciscoEvcMIBComplianceRev1.setDescription('The compliance statement for entities which implement the CISCO-EVC-MIB. This compliance module deprecates ciscoEvcMIBCompliance.')
ciscoEvcMIBComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 1, 3)).setObjects(("CISCO-EVC-MIB", "cevcSystemGroup"), ("CISCO-EVC-MIB", "cevcPortGroup"), ("CISCO-EVC-MIB", "cevcEvcGroup"), ("CISCO-EVC-MIB", "cevcSIGroupRev1"), ("CISCO-EVC-MIB", "cevcEvcNotificationConfigGroup"), ("CISCO-EVC-MIB", "cevcEvcNotificationGroupRev1"), ("CISCO-EVC-MIB", "cevcSICosMatchCriteriaGroup"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteGroup"), ("CISCO-EVC-MIB", "cevcSIMatchCriteriaGroupRev1"), ("CISCO-EVC-MIB", "cevcSIForwardGroupRev1"), ("CISCO-EVC-MIB", "cevcMacSecurityViolationGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
ciscoEvcMIBComplianceRev2 = ciscoEvcMIBComplianceRev2.setStatus('current')
if mibBuilder.loadTexts: ciscoEvcMIBComplianceRev2.setDescription('The compliance statement for entities which implement the CISCO-EVC-MIB. This compliance module deprecates ciscoEvcMIBComplianceRev1.')
cevcSystemGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 1)).setObjects(("CISCO-EVC-MIB", "cevcMaxNumEvcs"), ("CISCO-EVC-MIB", "cevcNumCfgEvcs"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcSystemGroup = cevcSystemGroup.setStatus('current')
if mibBuilder.loadTexts: cevcSystemGroup.setDescription('A collection of objects providing system configuration of EVCs.')
cevcPortGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 2)).setObjects(("CISCO-EVC-MIB", "cevcPortMode"), ("CISCO-EVC-MIB", "cevcPortMaxNumEVCs"), ("CISCO-EVC-MIB", "cevcPortMaxNumServiceInstances"), ("CISCO-EVC-MIB", "cevcPortL2ControlProtocolAction"), ("CISCO-EVC-MIB", "cevcUniIdentifier"), ("CISCO-EVC-MIB", "cevcUniPortType"), ("CISCO-EVC-MIB", "cevcUniServiceAttributes"), ("CISCO-EVC-MIB", "cevcUniCEVlanEvcEndingVlan"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcPortGroup = cevcPortGroup.setStatus('current')
if mibBuilder.loadTexts: cevcPortGroup.setDescription('A collection of objects providing configuration for ports in an EVC.')
cevcEvcGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 3)).setObjects(("CISCO-EVC-MIB", "cevcEvcIdentifier"), ("CISCO-EVC-MIB", "cevcEvcType"), ("CISCO-EVC-MIB", "cevcEvcOperStatus"), ("CISCO-EVC-MIB", "cevcEvcCfgUnis"), ("CISCO-EVC-MIB", "cevcEvcActiveUnis"), ("CISCO-EVC-MIB", "cevcEvcStorageType"), ("CISCO-EVC-MIB", "cevcEvcRowStatus"), ("CISCO-EVC-MIB", "cevcEvcUniId"), ("CISCO-EVC-MIB", "cevcEvcUniOperStatus"), ("CISCO-EVC-MIB", "cevcEvcLocalUniIfIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcEvcGroup = cevcEvcGroup.setStatus('current')
if mibBuilder.loadTexts: cevcEvcGroup.setDescription('A collection of objects providing configuration and status information for EVCs.')
cevcSIGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 4)).setObjects(("CISCO-EVC-MIB", "cevcSIName"), ("CISCO-EVC-MIB", "cevcSITargetType"), ("CISCO-EVC-MIB", "cevcSITarget"), ("CISCO-EVC-MIB", "cevcSIEvcIndex"), ("CISCO-EVC-MIB", "cevcSIRowStatus"), ("CISCO-EVC-MIB", "cevcSIStorageType"), ("CISCO-EVC-MIB", "cevcSIAdminStatus"), ("CISCO-EVC-MIB", "cevcSIOperStatus"), ("CISCO-EVC-MIB", "cevcSIL2ControlProtocolAction"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteAction"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteEncapsulation"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteVlan1"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteVlan2"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteSymmetric"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteStorageType"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteRowStatus"), ("CISCO-EVC-MIB", "cevcSIForwardingType"), ("CISCO-EVC-MIB", "cevcSICEVlanRowStatus"), ("CISCO-EVC-MIB", "cevcSICEVlanStorageType"), ("CISCO-EVC-MIB", "cevcSICEVlanEndingVlan"), ("CISCO-EVC-MIB", "cevcSIMatchStorageType"), ("CISCO-EVC-MIB", "cevcSIMatchRowStatus"), ("CISCO-EVC-MIB", "cevcSIMatchCriteriaType"), ("CISCO-EVC-MIB", "cevcSIMatchEncapRowStatus"), ("CISCO-EVC-MIB", "cevcSIMatchEncapStorageType"), ("CISCO-EVC-MIB", "cevcSIMatchEncapValid"), ("CISCO-EVC-MIB", "cevcSIMatchEncapEncapsulation"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanRowStatus"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanStorageType"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanEndingVlan"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcSIGroup = cevcSIGroup.setStatus('deprecated')
if mibBuilder.loadTexts: cevcSIGroup.setDescription('A collection of objects providing configuration and match criteria for service instances. cevcSIGroup object is superseded by cevcSIGroupRev1.')
cevcSIVlanRewriteGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 5)).setObjects(("CISCO-EVC-MIB", "cevcSIVlanRewriteAction"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteEncapsulation"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteVlan1"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteVlan2"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteSymmetric"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteStorageType"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteRowStatus"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcSIVlanRewriteGroup = cevcSIVlanRewriteGroup.setStatus('current')
if mibBuilder.loadTexts: cevcSIVlanRewriteGroup.setDescription('A collection of objects which provides VLAN rewrite information for a service instance.')
cevcSICosMatchCriteriaGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 6)).setObjects(("CISCO-EVC-MIB", "cevcSIMatchEncapPrimaryCos"), ("CISCO-EVC-MIB", "cevcSIMatchEncapSecondaryCos"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcSICosMatchCriteriaGroup = cevcSICosMatchCriteriaGroup.setStatus('current')
if mibBuilder.loadTexts: cevcSICosMatchCriteriaGroup.setDescription('A collection of objects which provides CoS match criteria for a service instance.')
cevcSIMatchCriteriaGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 7)).setObjects(("CISCO-EVC-MIB", "cevcSIMatchRowStatus"), ("CISCO-EVC-MIB", "cevcSIMatchStorageType"), ("CISCO-EVC-MIB", "cevcSIMatchCriteriaType"), ("CISCO-EVC-MIB", "cevcSIMatchEncapRowStatus"), ("CISCO-EVC-MIB", "cevcSIMatchEncapStorageType"), ("CISCO-EVC-MIB", "cevcSIMatchEncapValid"), ("CISCO-EVC-MIB", "cevcSIMatchEncapEncapsulation"), ("CISCO-EVC-MIB", "cevcSIMatchEncapPrimaryCos"), ("CISCO-EVC-MIB", "cevcSIMatchEncapSecondaryCos"), ("CISCO-EVC-MIB", "cevcSIMatchEncapPayloadType"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanRowStatus"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanStorageType"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanEndingVlan"), ("CISCO-EVC-MIB", "cevcSISecondaryVlanRowStatus"), ("CISCO-EVC-MIB", "cevcSISecondaryVlanStorageType"), ("CISCO-EVC-MIB", "cevcSISecondaryVlanEndingVlan"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcSIMatchCriteriaGroup = cevcSIMatchCriteriaGroup.setStatus('deprecated')
if mibBuilder.loadTexts: cevcSIMatchCriteriaGroup.setDescription('A collection of objects providing match criteria information for service instances. cevcSIMatchCriteriaGroup object is superseded by cevcSIMatchCriteriaGroupRev1.')
cevcSIForwardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 8)).setObjects(("CISCO-EVC-MIB", "cevcSIForwardingType"), ("CISCO-EVC-MIB", "cevcSIForwardBdRowStatus"), ("CISCO-EVC-MIB", "cevcSIForwardBdStorageType"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumber"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcSIForwardGroup = cevcSIForwardGroup.setStatus('deprecated')
if mibBuilder.loadTexts: cevcSIForwardGroup.setDescription('A collection of objects providing service frame forwarding information for service instances. cevcSIForwardGroup object is superseded by cevcSIForwardGroupRev1.')
cevcEvcNotificationConfigGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 9)).setObjects(("CISCO-EVC-MIB", "cevcEvcNotifyEnabled"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcEvcNotificationConfigGroup = cevcEvcNotificationConfigGroup.setStatus('current')
if mibBuilder.loadTexts: cevcEvcNotificationConfigGroup.setDescription('A collection of objects for configuring notification of this MIB.')
cevcEvcNotificationGroup = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 10)).setObjects(("CISCO-EVC-MIB", "cevcEvcStatusChangedNotification"), ("CISCO-EVC-MIB", "cevcEvcCreationNotification"), ("CISCO-EVC-MIB", "cevcEvcDeletionNotification"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcEvcNotificationGroup = cevcEvcNotificationGroup.setStatus('deprecated')
if mibBuilder.loadTexts: cevcEvcNotificationGroup.setDescription('A collection of notifications that this MIB module is required to implement. cevcEvcNotificationGroup object is superseded by cevcEvcNotificationGroupRev1.')
cevcSIMatchCriteriaGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 11)).setObjects(("CISCO-EVC-MIB", "cevcSIMatchRowStatus"), ("CISCO-EVC-MIB", "cevcSIMatchStorageType"), ("CISCO-EVC-MIB", "cevcSIMatchCriteriaType"), ("CISCO-EVC-MIB", "cevcSIMatchEncapRowStatus"), ("CISCO-EVC-MIB", "cevcSIMatchEncapStorageType"), ("CISCO-EVC-MIB", "cevcSIMatchEncapValid"), ("CISCO-EVC-MIB", "cevcSIMatchEncapEncapsulation"), ("CISCO-EVC-MIB", "cevcSIMatchEncapPrimaryCos"), ("CISCO-EVC-MIB", "cevcSIMatchEncapSecondaryCos"), ("CISCO-EVC-MIB", "cevcSIMatchEncapPayloadTypes"), ("CISCO-EVC-MIB", "cevcSIMatchEncapPriorityCos"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanRowStatus"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanStorageType"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanEndingVlan"), ("CISCO-EVC-MIB", "cevcSISecondaryVlanRowStatus"), ("CISCO-EVC-MIB", "cevcSISecondaryVlanStorageType"), ("CISCO-EVC-MIB", "cevcSISecondaryVlanEndingVlan"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcSIMatchCriteriaGroupRev1 = cevcSIMatchCriteriaGroupRev1.setStatus('current')
if mibBuilder.loadTexts: cevcSIMatchCriteriaGroupRev1.setDescription('A collection of objects providing match criteria information for service instances. This group deprecates the old group cevcSIMatchCriteriaGroup.')
cevcEvcNotificationGroupRev1 = NotificationGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 12)).setObjects(("CISCO-EVC-MIB", "cevcEvcStatusChangedNotification"), ("CISCO-EVC-MIB", "cevcEvcCreationNotification"), ("CISCO-EVC-MIB", "cevcEvcDeletionNotification"), ("CISCO-EVC-MIB", "cevcMacSecurityViolationNotification"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcEvcNotificationGroupRev1 = cevcEvcNotificationGroupRev1.setStatus('current')
if mibBuilder.loadTexts: cevcEvcNotificationGroupRev1.setDescription('A collection of notifications that this MIB module is required to implement. This module deprecates the cevcNotificationGroup')
cevcSIGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 13)).setObjects(("CISCO-EVC-MIB", "cevcSIName"), ("CISCO-EVC-MIB", "cevcSITargetType"), ("CISCO-EVC-MIB", "cevcSITarget"), ("CISCO-EVC-MIB", "cevcSIEvcIndex"), ("CISCO-EVC-MIB", "cevcSIRowStatus"), ("CISCO-EVC-MIB", "cevcSIStorageType"), ("CISCO-EVC-MIB", "cevcSIAdminStatus"), ("CISCO-EVC-MIB", "cevcSIOperStatus"), ("CISCO-EVC-MIB", "cevcPortL2ControlProtocolAction"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteAction"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteEncapsulation"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteVlan1"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteVlan2"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteSymmetric"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteRowStatus"), ("CISCO-EVC-MIB", "cevcSIVlanRewriteStorageType"), ("CISCO-EVC-MIB", "cevcSIForwardingType"), ("CISCO-EVC-MIB", "cevcSICEVlanRowStatus"), ("CISCO-EVC-MIB", "cevcSICEVlanStorageType"), ("CISCO-EVC-MIB", "cevcSICEVlanEndingVlan"), ("CISCO-EVC-MIB", "cevcSIMatchStorageType"), ("CISCO-EVC-MIB", "cevcSIMatchCriteriaType"), ("CISCO-EVC-MIB", "cevcSIMatchEncapRowStatus"), ("CISCO-EVC-MIB", "cevcSIMatchEncapStorageType"), ("CISCO-EVC-MIB", "cevcSIMatchEncapValid"), ("CISCO-EVC-MIB", "cevcSIMatchEncapEncapsulation"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanRowStatus"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanStorageType"), ("CISCO-EVC-MIB", "cevcSIPrimaryVlanEndingVlan"), ("CISCO-EVC-MIB", "cevcSIMatchRowStatus"), ("CISCO-EVC-MIB", "cevcSICreationType"), ("CISCO-EVC-MIB", "cevcSIType"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcSIGroupRev1 = cevcSIGroupRev1.setStatus('current')
if mibBuilder.loadTexts: cevcSIGroupRev1.setDescription('A collection of objects providing configuration and match criteria for service instances. This module deprecates the cevcSIGroup')
cevcSIForwardGroupRev1 = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 14)).setObjects(("CISCO-EVC-MIB", "cevcSIForwardingType"), ("CISCO-EVC-MIB", "cevcSIForwardBdRowStatus"), ("CISCO-EVC-MIB", "cevcSIForwardBdStorageType"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumberBase"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumber1kBitmap"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumber2kBitmap"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumber3kBitmap"), ("CISCO-EVC-MIB", "cevcSIForwardBdNumber4kBitmap"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcSIForwardGroupRev1 = cevcSIForwardGroupRev1.setStatus('current')
if mibBuilder.loadTexts: cevcSIForwardGroupRev1.setDescription('A collection of objects providing service frame forwarding information for service instances. This module deprecates cevcSIForwardGroup')
cevcMacSecurityViolationGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 15)).setObjects(("CISCO-EVC-MIB", "cevcMacAddress"), ("CISCO-EVC-MIB", "cevcMaxMacConfigLimit"), ("CISCO-EVC-MIB", "cevcSIID"), ("CISCO-EVC-MIB", "cevcViolationCause"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevcMacSecurityViolationGroup = cevcMacSecurityViolationGroup.setStatus('current')
if mibBuilder.loadTexts: cevcMacSecurityViolationGroup.setDescription('A collection of objects providing the maximum configured MAC limit, the MAC address, service instance ID and Violation cause for Mac Security Violation Information.')
mibBuilder.exportSymbols("CISCO-EVC-MIB", cevcEvcStorageType=cevcEvcStorageType, cevcSIType=cevcSIType, cevcEvc=cevcEvc, cevcEvcUniOperStatus=cevcEvcUniOperStatus, ciscoEvcMIBCompliance=ciscoEvcMIBCompliance, cevcEvcUniTable=cevcEvcUniTable, cevcSystemGroup=cevcSystemGroup, cevcNumCfgEvcs=cevcNumCfgEvcs, cevcSICEVlanRowStatus=cevcSICEVlanRowStatus, cevcSIName=cevcSIName, cevcSICreationType=cevcSICreationType, cevcSIForwardBdNumberBase=cevcSIForwardBdNumberBase, cevcSIMatchEncapPayloadTypes=cevcSIMatchEncapPayloadTypes, cevcPortTable=cevcPortTable, ServiceInstanceTarget=ServiceInstanceTarget, cevcSIMatchEncapEntry=cevcSIMatchEncapEntry, PYSNMP_MODULE_ID=ciscoEvcMIB, cevcEvcCfgUnis=cevcEvcCfgUnis, cevcSIForwardGroupRev1=cevcSIForwardGroupRev1, cevcSIForwardBdEntry=cevcSIForwardBdEntry, cevcSIEvcIndex=cevcSIEvcIndex, cevcSIForwardBdNumber3kBitmap=cevcSIForwardBdNumber3kBitmap, cevcSIMatchCriteriaIndex=cevcSIMatchCriteriaIndex, cevcSIGroup=cevcSIGroup, cevcSIForwardBdTable=cevcSIForwardBdTable, cevcEvcUniId=cevcEvcUniId, cevcEvcStatusChangedNotification=cevcEvcStatusChangedNotification, cevcViolationCause=cevcViolationCause, cevcSIPrimaryVlanEntry=cevcSIPrimaryVlanEntry, cevcEvcGroup=cevcEvcGroup, cevcSIIndex=cevcSIIndex, cevcSIVlanRewriteVlan1=cevcSIVlanRewriteVlan1, cevcSITable=cevcSITable, cevcSISecondaryVlanStorageType=cevcSISecondaryVlanStorageType, cevcUniPortType=cevcUniPortType, cevcEvcStateTable=cevcEvcStateTable, cevcSIVlanRewriteSymmetric=cevcSIVlanRewriteSymmetric, cevcSIMatchEncapRowStatus=cevcSIMatchEncapRowStatus, cevcMacSecurityViolationNotification=cevcMacSecurityViolationNotification, cevcEvcNotificationGroupRev1=cevcEvcNotificationGroupRev1, ciscoEvcMIB=ciscoEvcMIB, ciscoEvcMIBComplianceRev1=ciscoEvcMIBComplianceRev1, cevcUniTable=cevcUniTable, cevcUniCEVlanEvcTable=cevcUniCEVlanEvcTable, cevcEvcOperStatus=cevcEvcOperStatus, ciscoEvcMIBNotifications=ciscoEvcMIBNotifications, ciscoEvcMIBComplianceRev2=ciscoEvcMIBComplianceRev2, cevcSIVlanRewriteEntry=cevcSIVlanRewriteEntry, cevcUniCEVlanEvcBeginningVlan=cevcUniCEVlanEvcBeginningVlan, cevcSIPrimaryVlanEndingVlan=cevcSIPrimaryVlanEndingVlan, cevcSIMatchEncapPayloadType=cevcSIMatchEncapPayloadType, cevcSISecondaryVlanRowStatus=cevcSISecondaryVlanRowStatus, cevcEvcStateEntry=cevcEvcStateEntry, cevcPortGroup=cevcPortGroup, cevcSIPrimaryVlanStorageType=cevcSIPrimaryVlanStorageType, cevcSIMatchCriteriaType=cevcSIMatchCriteriaType, cevcSICEVlanTable=cevcSICEVlanTable, cevcSITarget=cevcSITarget, cevcSIAdminStatus=cevcSIAdminStatus, cevcSIL2ControlProtocolType=cevcSIL2ControlProtocolType, ciscoEvcNotificationPrefix=ciscoEvcNotificationPrefix, CiscoEvcIndexOrZero=CiscoEvcIndexOrZero, cevcEvcIdentifier=cevcEvcIdentifier, cevcSIStateEntry=cevcSIStateEntry, cevcSIVlanRewriteTable=cevcSIVlanRewriteTable, cevcSIMatchCriteriaEntry=cevcSIMatchCriteriaEntry, cevcEvcRowStatus=cevcEvcRowStatus, cevcEvcNotificationGroup=cevcEvcNotificationGroup, cevcSIForwardBdNumber2kBitmap=cevcSIForwardBdNumber2kBitmap, cevcMaxNumEvcs=cevcMaxNumEvcs, cevcSIL2ControlProtocolTable=cevcSIL2ControlProtocolTable, cevcEvcUniIndex=cevcEvcUniIndex, cevcEvcIndex=cevcEvcIndex, cevcServiceInstance=cevcServiceInstance, cevcUniCEVlanEvcEntry=cevcUniCEVlanEvcEntry, cevcSICEVlanEntry=cevcSICEVlanEntry, cevcSIVlanRewriteDirection=cevcSIVlanRewriteDirection, cevcSIID=cevcSIID, cevcSIMatchEncapEncapsulation=cevcSIMatchEncapEncapsulation, ciscoEvcMIBObjects=ciscoEvcMIBObjects, ServiceInstanceTargetType=ServiceInstanceTargetType, cevcPort=cevcPort, cevcSIVlanRewriteVlan2=cevcSIVlanRewriteVlan2, cevcSIForwardBdNumber1kBitmap=cevcSIForwardBdNumber1kBitmap, cevcMaxMacConfigLimit=cevcMaxMacConfigLimit, cevcSIMatchEncapSecondaryCos=cevcSIMatchEncapSecondaryCos, cevcPortMaxNumServiceInstances=cevcPortMaxNumServiceInstances, cevcEvcNotifyEnabled=cevcEvcNotifyEnabled, cevcEvcType=cevcEvcType, cevcMacSecurityViolation=cevcMacSecurityViolation, cevcEvcDeletionNotification=cevcEvcDeletionNotification, ciscoEvcMIBGroups=ciscoEvcMIBGroups, cevcSIL2ControlProtocolAction=cevcSIL2ControlProtocolAction, cevcSIVlanRewriteGroup=cevcSIVlanRewriteGroup, cevcUniServiceAttributes=cevcUniServiceAttributes, cevcSIMatchRowStatus=cevcSIMatchRowStatus, cevcSICEVlanStorageType=cevcSICEVlanStorageType, cevcSICEVlanBeginningVlan=cevcSICEVlanBeginningVlan, cevcSIMatchEncapStorageType=cevcSIMatchEncapStorageType, cevcSIL2ControlProtocolEntry=cevcSIL2ControlProtocolEntry, cevcSIMatchCriteriaTable=cevcSIMatchCriteriaTable, cevcEvcActiveUnis=cevcEvcActiveUnis, cevcSIVlanRewriteAction=cevcSIVlanRewriteAction, ciscoEvcMIBCompliances=ciscoEvcMIBCompliances, cevcSICEVlanEndingVlan=cevcSICEVlanEndingVlan, cevcSIPrimaryVlanTable=cevcSIPrimaryVlanTable, cevcSIVlanRewriteEncapsulation=cevcSIVlanRewriteEncapsulation, cevcSIForwardingType=cevcSIForwardingType, cevcSISecondaryVlanBeginningVlan=cevcSISecondaryVlanBeginningVlan, cevcSystem=cevcSystem, ciscoEvcMIBConformance=ciscoEvcMIBConformance, cevcMacSecurityViolationGroup=cevcMacSecurityViolationGroup, cevcSIMatchEncapPriorityCos=cevcSIMatchEncapPriorityCos, cevcSIOperStatus=cevcSIOperStatus, CiscoEvcIndex=CiscoEvcIndex, cevcSIMatchCriteriaGroup=cevcSIMatchCriteriaGroup, cevcSITargetType=cevcSITargetType, cevcPortL2ControlProtocolTable=cevcPortL2ControlProtocolTable, cevcUniIdentifier=cevcUniIdentifier, cevcSISecondaryVlanTable=cevcSISecondaryVlanTable, cevcSIStorageType=cevcSIStorageType, CevcL2ControlProtocolType=CevcL2ControlProtocolType, cevcSIMatchCriteriaGroupRev1=cevcSIMatchCriteriaGroupRev1, cevcSICosMatchCriteriaGroup=cevcSICosMatchCriteriaGroup, cevcSIForwardGroup=cevcSIForwardGroup, cevcEvcUniEntry=cevcEvcUniEntry, cevcEvcNotificationConfigGroup=cevcEvcNotificationConfigGroup, cevcPortL2ControlProtocolAction=cevcPortL2ControlProtocolAction, CevcMacSecurityViolationCauseType=CevcMacSecurityViolationCauseType, cevcSIRowStatus=cevcSIRowStatus, cevcEvcEntry=cevcEvcEntry, cevcEvcCreationNotification=cevcEvcCreationNotification, cevcEvcLocalUniIfIndex=cevcEvcLocalUniIfIndex, cevcUniEntry=cevcUniEntry, cevcSIVlanRewriteRowStatus=cevcSIVlanRewriteRowStatus, cevcPortMaxNumEVCs=cevcPortMaxNumEVCs, cevcPortL2ControlProtocolType=cevcPortL2ControlProtocolType, cevcSISecondaryVlanEntry=cevcSISecondaryVlanEntry, cevcUniCEVlanEvcEndingVlan=cevcUniCEVlanEvcEndingVlan, cevcSIForwardBdRowStatus=cevcSIForwardBdRowStatus, cevcPortMode=cevcPortMode, cevcMacAddress=cevcMacAddress, cevcSIMatchEncapValid=cevcSIMatchEncapValid, cevcUniEvcIndex=cevcUniEvcIndex, cevcPortL2ControlProtocolEntry=cevcPortL2ControlProtocolEntry, cevcSIVlanRewriteStorageType=cevcSIVlanRewriteStorageType, cevcSIStateTable=cevcSIStateTable, cevcSIPrimaryVlanRowStatus=cevcSIPrimaryVlanRowStatus, cevcSIMatchEncapTable=cevcSIMatchEncapTable, cevcSISecondaryVlanEndingVlan=cevcSISecondaryVlanEndingVlan, cevcSIForwardBdNumber4kBitmap=cevcSIForwardBdNumber4kBitmap, cevcPortEntry=cevcPortEntry, cevcSIPrimaryVlanBeginningVlan=cevcSIPrimaryVlanBeginningVlan, ServiceInstanceInterface=ServiceInstanceInterface, cevcSIForwardBdNumber=cevcSIForwardBdNumber, cevcSIMatchEncapPrimaryCos=cevcSIMatchEncapPrimaryCos, cevcEvcTable=cevcEvcTable, cevcSIForwardBdStorageType=cevcSIForwardBdStorageType, cevcSIGroupRev1=cevcSIGroupRev1, cevcEvcNotificationConfig=cevcEvcNotificationConfig, cevcSIEntry=cevcSIEntry, cevcSIMatchStorageType=cevcSIMatchStorageType)
| (integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(single_value_constraint, constraints_intersection, value_range_constraint, constraints_union, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint')
(cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt')
(cisco_cos_list,) = mibBuilder.importSymbols('CISCO-TC', 'CiscoCosList')
(if_index, interface_index_or_zero) = mibBuilder.importSymbols('IF-MIB', 'ifIndex', 'InterfaceIndexOrZero')
(vlan_id, vlan_id_or_none) = mibBuilder.importSymbols('Q-BRIDGE-MIB', 'VlanId', 'VlanIdOrNone')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup')
(object_identity, unsigned32, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, ip_address, mib_identifier, time_ticks, gauge32, iso, module_identity, notification_type, counter64, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'Unsigned32', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'IpAddress', 'MibIdentifier', 'TimeTicks', 'Gauge32', 'iso', 'ModuleIdentity', 'NotificationType', 'Counter64', 'Counter32')
(row_status, truth_value, mac_address, storage_type, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'RowStatus', 'TruthValue', 'MacAddress', 'StorageType', 'DisplayString', 'TextualConvention')
cisco_evc_mib = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 613))
ciscoEvcMIB.setRevisions(('2012-05-21 00:00', '2008-05-01 00:00', '2007-12-20 00:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
ciscoEvcMIB.setRevisionsDescriptions(('- Added following objects to cevcSITable: * cevcSICreationType * cevcSIType - Added following objects to cevcSIForwardBdTable: * cevcSIForwardBdNumberBase * cevcSIForwardBdNumber1kBitmap * cevcSIForwardBdNumber2kBitmap * cevcSIForwardBdNumber3kBitmap * cevcSIForwardBdNumber4kBitmap - Added MacSecurityViolation OID subtree and following objects: * cevcMacAddress * cevcMaxMacConfigLimit * cevcSIID - Deprecated cevcEvcNotificationGroup and added cevcEvcNotificationGroupRev1 and added cevcMacSecurityViolationNotification - Deprecated cevcSIGroup and added cevcSIGroupRev1 and added cevcSICreationType and cevcSIType - Deprecated cevcSIForwardGroup and added cevcSIForwardGroupRev1 and added the new objects mentioned in cevcSIForwardBdTable - Added CevcMacSecurityViolationCause Textual convention - Added new ciscoEvcMIBComplianceRev2', '- Added following enums to cevcSIOperStatus: * deleted(4) * errorDisabled(5) * unknown(6) - Added following named bits to cevcSIMatchEncapValid: * payloadTypes(3) * priorityCos(4) * dot1qNativeVlan(5) * dot1adNativeVlan(6) * encapExact(7) - The Object cevcSIMatchEncapPayloadType is replaced by new object cevcSIMatchEncapPayloadTypes to support multiple payload types for service instance match criteria. - Added new object cevcSIMatchEncapPriorityCos to cevcSIMatchEncapTable. - Added new Compliance ciscoEvcMIBComplianceRev1. - Added new Object Group cevcSIMatchCriteriaGroupRev1. - Miscellaneous updates/corrections.', 'Initial version of this MIB module.'))
if mibBuilder.loadTexts:
ciscoEvcMIB.setLastUpdated('201205210000Z')
if mibBuilder.loadTexts:
ciscoEvcMIB.setOrganization('Cisco Systems, Inc.')
if mibBuilder.loadTexts:
ciscoEvcMIB.setContactInfo('Cisco Systems Customer Service Postal: 170 W Tasman Drive San Jose, CA 95134 USA Tel: +1 800 553-NETS E-mail: cs-ethermibs@cisco.com')
if mibBuilder.loadTexts:
ciscoEvcMIB.setDescription("Metro Ethernet services can support a wide range of applications and subscriber needs easily, efficiently and cost-effectively. Using standard Ethernet interfaces, subscribers can set up secure, private Ethernet Virtual Connections, to connect their sites together and connect to business partners, suppliers and the Internet. This MIB module defines the managed objects and notifications describing Ethernet Virtual Connections. Ethernet Virtual Connections (EVC), are defined by the Metro Ethernet Forum (MEF), as an association between two or more UNIs. Frames within an EVC can only be exchanged among the associated UNIs. Frames sent into the MEN via a particular UNI must not be delivered back to the UNI from which it originated. Along an EVC path, there are demarcation flow points on associated ingress and egress interface, of every device, through which the EVC passes. A service instance represents these flow points where a service passes through an interface. From an operational perspective, a service instance serves three purposes: 1. Defines the instance of a particular EVC service on a specific interface and identifies all frames that belongs to that particular service/flow. 2. To provide the capability of applying the configured features to those frames belonging to the service. 3. To optionally define how to forward those frames in the data-path. The association of a service instance to an EVC depicts an instance of an Ethernet flow on a particular interface for an end-to-end (UNI-to-UNI) Ethernet service for a subscriber. The following diagram illustrates the association of EVC, UNIs and service instances. UNI physical ports are depicted as 'U', and service instances as 'x'. CE MEN MEN CE ------- ------- ------- ------- | | | | () | | | | | |--------Ux x|--( )--|x xU--------| | | | | | () | | | | ------- ------- ------- ------- ^ ^ | | -------- EVC --------- This MIB module addresses the functional areas of network management for EVC, including: The operational mode for interfaces that are providing Ethernet service(s). The service attributes regarding an interface behaving as UNI, such as CE-VLAN mapping and layer 2 control protocol (eg. stp, vtp, cdp) processing. The provisioning of service instances to define flow points for an Ethernet service. The operational status of EVCs for notifications of status changes, and EVC creation and deletion. Definition of terms and acronyms: B-Tag: Backbone Tag field in Ethernet 802.1ah frame CE: Customer Edge CE-VLAN: Customer Edge VLAN CoS: Class Of Service EVC: Ethernet Virtual Connection I-SID: Service Instance Identifier field in Ethernet 802.1ah frame MAC: Media Access Control MEN: Metro Ethernet Network NNI: Network to Network Interface OAM: Operations Administration and Management PPPoE: Point-to-Point Protocol over Ethernet Service frame: An Ethernet frame transmitted across the UNI toward the service provider or an Ethernet frame transmitted across the UNI toward the Subscriber. Service Instance: A flow point of an Ethernet service Service provider: The organization providing Ethernet service(s). Subscriber: The organization purchasing and/or using Ethernet service(s). UNI: User Network Interface The physical demarcation point between the responsibility of the service provider and the responsibility of the Subscriber. UNI-C: User Network Interface, subscriber side UNI-N: User Network Interface, service provider side VLAN: Virtual Local Area Network")
cisco_evc_mib_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 0))
cisco_evc_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1))
cisco_evc_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 2))
cevc_system = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 1))
cevc_port = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2))
cevc_evc = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3))
cevc_service_instance = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4))
cevc_evc_notification_config = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 5))
cevc_mac_security_violation = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6))
class Cevcmacsecurityviolationcausetype(TextualConvention, Integer32):
description = "An integer value which identifies the cause for the MAC Security Violation. If the system MAC Address limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedSystemLimit' value. If the Bridge domain limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedBdLimit' value. If the Service Instance limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedSILimit' value. If the MAC address is present in the Black list then cevcMacSecurityViolationCauseType will contain 'blackListDeny' value."
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4))
named_values = named_values(('exceedSystemLimit', 1), ('exceedBdLimit', 2), ('exceedSILimit', 3), ('blackListDeny', 4))
class Ciscoevcindex(TextualConvention, Unsigned32):
description = 'An integer-value which uniquely identifies the EVC.'
status = 'current'
subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1, 4294967295)
class Ciscoevcindexorzero(TextualConvention, Unsigned32):
description = "This textual convention is an extension to textual convention 'CiscoEvcIndex'. It includes the value of '0' in addition to the range of 1-429496725. Value of '0' indicates that the EVC has been neither configured nor assigned."
status = 'current'
subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 4294967295)
class Cevcl2Controlprotocoltype(TextualConvention, Integer32):
description = "Defines the different types of layer 2 control protocols: 'other' None of the following. 'cdp' Cisco Discovery Protocol. 'dtp' Dynamic Trunking Protocol. 'pagp' Port Aggregration Protocol. 'udld' UniDirectional Link Detection. 'vtp' Vlan Trunking Protocol. 'lacp' Link Aggregation Control Protocol. 'dot1x' IEEE 802.1x 'stp' Spanning Tree Protocol."
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))
named_values = named_values(('other', 1), ('cdp', 2), ('dtp', 3), ('pagp', 4), ('udld', 5), ('vtp', 6), ('lacp', 7), ('dot1x', 8), ('stp', 9))
class Serviceinstancetarget(TextualConvention, OctetString):
description = "Denotes a generic service instance target. An ServiceInstanceTarget value is always interpreted within the context of an ServiceInstanceTargetType value. Every usage of the ServiceInstanceTarget textual convention is required to specify the ServiceInstanceTargetType object which provides the context. It is suggested that the ServiceInstanceTargetType object is logically registered before the object(s) which use the ServiceInstanceTarget textual convention if they appear in the same logical row. The value of an ServiceInstanceTarget object must always be consistent with the value of the associated ServiceInstanceTargetType object. Attempts to set an ServiceInstanceTarget object to a value which is inconsistent with the associated ServiceInstanceTargetType must fail with an inconsistentValue error. When this textual convention is used as the syntax of an index object, there may be issues with the limit of 128 sub-identifiers specified in SMIv2, STD 58. In this case, the object definition MUST include a 'SIZE' clause to limit the number of potential instance sub-identifiers."
status = 'current'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 40)
class Serviceinstancetargettype(TextualConvention, Integer32):
description = "Defines the type of interface/media to which a service instance is attached. 'other' None of the following. This value MUST be used if the value of the corresponding ServiceInstanceTarget object is a zero-length string. 'interface' Service instance is attached to the the interface defined by ServiceInstanceInterface textual convention. Each definition of a concrete ServiceInstanceTargetType value must be accompanied by a definition of a textual convention for use with that ServiceInstanceTargetType. To support future extensions, the ServiceInstanceTargetType textual convention SHOULD NOT be sub-typed in object type definitions. It MAY be sub-typed in compliance statements in order to require only a subset of these target types for a compliant implementation. Implementations must ensure that ServiceInstanceTargetType objects and any dependent objects (e.g. ServiceInstanceTarget objects) are consistent. An inconsistentValue error must be generated if an attempt to change an ServiceInstanceTargetType object would, for example, lead to an undefined ServiceInstanceTarget value. In particular, ServiceInstanceTargetType/ServiceInstanceTarget pairs must be changed together if the service instance taget type changes."
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('other', 1), ('interface', 2))
class Serviceinstanceinterface(TextualConvention, OctetString):
description = "This textual convention indicates the ifIndex which identifies the interface that the service instance is attached, for which the corresponding ifType has the value of (but not limited to) 'ethernetCsmacd'. octets contents encoding 1-4 ifIndex network-byte order The corresponding ServiceInstanceTargetType value is interface(2)."
status = 'current'
subtype_spec = OctetString.subtypeSpec + value_size_constraint(4, 4)
fixed_length = 4
cevc_mac_address = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6, 1), mac_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcMacAddress.setStatus('current')
if mibBuilder.loadTexts:
cevcMacAddress.setDescription('This object indicates the MAC Address which has violated the Mac security rules.')
cevc_max_mac_config_limit = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6, 2), unsigned32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cevcMaxMacConfigLimit.setStatus('current')
if mibBuilder.loadTexts:
cevcMaxMacConfigLimit.setDescription('This object specifies the maximum MAC configuration limit. This is also sent as a part of MAC security violation notification. Every platform has their own forwarding table limitation. User can also set the maximum MAC configuration limit and if the limit set by user is not supported by platform then the object returns error.')
cevc_siid = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcSIID.setStatus('current')
if mibBuilder.loadTexts:
cevcSIID.setDescription('This object indicates the service instance ID for the MAC security violation notification.')
cevc_violation_cause = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 6, 4), cevc_mac_security_violation_cause_type()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcViolationCause.setStatus('current')
if mibBuilder.loadTexts:
cevcViolationCause.setDescription("This object indicates the MAC security violation cause. When the system MAC Address limit is exceeded, the cevcMacSecurityViolationCause will contain 'exceedSystemLimit' value. When the Bridge domain limit is exceeded, the cevcMacSecurityViolationCause will contain 'exceedBdLimit' value. When the Service Instance limit is exceeded, the cevcMacSecurityViolationCause will contain 'exceedSILimit' value. If the MAC address is present in the Black list then cevcMacSecurityViolationCause will contain 'blackListDeny' value.")
cevc_max_num_evcs = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 1, 1), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcMaxNumEvcs.setStatus('current')
if mibBuilder.loadTexts:
cevcMaxNumEvcs.setDescription('This object indicates the maximum number of EVCs that the system supports.')
cevc_num_cfg_evcs = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 1, 2), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcNumCfgEvcs.setStatus('current')
if mibBuilder.loadTexts:
cevcNumCfgEvcs.setDescription('This object indicates the actual number of EVCs currently configured on the system.')
cevc_port_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1))
if mibBuilder.loadTexts:
cevcPortTable.setStatus('current')
if mibBuilder.loadTexts:
cevcPortTable.setDescription("This table provides the operational mode and configuration limitations of the physical interfaces (ports) that provide Ethernet services for the MEN. This table has a sparse depedent relationship on the ifTable, containing a row for each ifEntry having an ifType of 'ethernetCsmacd' capable of supporting Ethernet services.")
cevc_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
cevcPortEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcPortEntry.setDescription("This entry represents a port, a physical point, at which signals can enter or leave the network en route to or from another network to provide Ethernet services for the MEN. The system automatically creates an entry for each ifEntry in the ifTable having an ifType of 'ethernetCsmacd' capable of supporting Ethernet services and entries are automatically destroyed when the corresponding row in the ifTable is destroyed.")
cevc_port_mode = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('uni', 1), ('nni', 2)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cevcPortMode.setStatus('current')
if mibBuilder.loadTexts:
cevcPortMode.setDescription("Port denotes the physcial interface which can provide Ethernet services. This object indicates the mode of the port and its operational behaviour in the MEN. 'uni' User Network Interface The port resides on the interface between the end user and the network. Additional information related to the UNI is included in cevcUniTable. 'nni' Network to Network Interface. The port resides on the interface between two networks.")
cevc_port_max_num_ev_cs = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1, 1, 2), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcPortMaxNumEVCs.setStatus('current')
if mibBuilder.loadTexts:
cevcPortMaxNumEVCs.setDescription('This object indicates the maximum number of EVCs that the interface can support.')
cevc_port_max_num_service_instances = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 1, 1, 3), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcPortMaxNumServiceInstances.setStatus('current')
if mibBuilder.loadTexts:
cevcPortMaxNumServiceInstances.setDescription('This object indicates the maximum number of service instances that the interface can support.')
cevc_uni_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2))
if mibBuilder.loadTexts:
cevcUniTable.setStatus('current')
if mibBuilder.loadTexts:
cevcUniTable.setDescription("This table contains a list of UNIs locally configured on the system. This table has a sparse dependent relationship on the cevcPortTable, containing a row for each cevcPortEntry having a cevcPortMode column value 'uni'.")
cevc_uni_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'))
if mibBuilder.loadTexts:
cevcUniEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcUniEntry.setDescription("This entry represents an UNI and its service attributes. The system automatically creates an entry when the system or the EMS/NMS creates a row in the cevcPortTable with a cevcPortMode of 'uni'. Likewise, the system automatically destroys an entry when the system or the EMS/NMS destroys the corresponding row in the cevcPortTable.")
cevc_uni_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcUniIdentifier.setReference("MEF 16, 'Ethernet Local Management Interface (E-LMI)', January 2006")
if mibBuilder.loadTexts:
cevcUniIdentifier.setStatus('current')
if mibBuilder.loadTexts:
cevcUniIdentifier.setDescription('This object specifies a string-value assigned to a UNI for identification. When the UNI identifier is configured by the system or the EMS/NMS, it should be unique among all UNIs for the MEN. If the UNI identifier value is not specified, the value of the cevcUniIdentifier column is a zero-length string.')
cevc_uni_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('dot1q', 1), ('dot1ad', 2))).clone('dot1q')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcUniPortType.setStatus('current')
if mibBuilder.loadTexts:
cevcUniPortType.setDescription("This object specifies the UNI port type. 'dot1q' The UNI port is an IEEE 802.1q port. 'dot1ad' The UNI port is an IEEE 802.1ad port.")
cevc_uni_service_attributes = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 2, 1, 3), bits().clone(namedValues=named_values(('serviceMultiplexing', 0), ('bundling', 1), ('allToOneBundling', 2))).clone(namedValues=named_values(('serviceMultiplexing', 0), ('bundling', 1)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcUniServiceAttributes.setStatus('current')
if mibBuilder.loadTexts:
cevcUniServiceAttributes.setDescription("This object specifies the UNI service attributes. 'serviceMultiplexing' This bit specifies whether the UNI supports multiple EVCs. Point-to-Point EVCs and Multipoint-to-Multipoint EVCs may be multiplexed in any combination at the UNI if this bit is set to '1'. 'bundling' This bit specifies whether the UNI has the bundling attribute configured. If this bit is set to '1', more than one CE-VLAN ID can map to a particular EVC at the UNI. 'allToOneBundling' This bit specifies whether the UNI has the all to one bundling attribute. If this bit is set to '1', all CE-VLAN IDs map to a single EVC at the UNI. To summarize the valid combinations of serviceMultiplexing(0), bundling(1) and allToOneBundling(2) bits for an UNI, consider the following diagram: VALID COMBINATIONS +---------------+-------+-------+-------+-------+-------+ |UNI ATTRIBUTES | 1 | 2 | 3 | 4 | 5 | +---------------+-------+------+------------------------+ |Service | | | | | | |Multiplexing | | Y | Y | | | | | | | | | | +---------------+-------+-------+-------+-------+-------+ | | | | | | | |Bundling | | | Y | Y | | | | | | | | | +---------------+-------+-------+-------+-------+-------+ |All to One | | | | | | |Bundling | | | | | Y | | | | | | | | +---------------+-------+-------+------ +-------+-------+")
cevc_port_l2_control_protocol_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 3))
if mibBuilder.loadTexts:
cevcPortL2ControlProtocolTable.setStatus('current')
if mibBuilder.loadTexts:
cevcPortL2ControlProtocolTable.setDescription('This table lists the layer 2 control protocol processing attributes at UNI ports. This table has an expansion dependent relationship on the cevcUniTable, containing zero or more rows for each UNI.')
cevc_port_l2_control_protocol_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 3, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-EVC-MIB', 'cevcPortL2ControlProtocolType'))
if mibBuilder.loadTexts:
cevcPortL2ControlProtocolEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcPortL2ControlProtocolEntry.setDescription('This entry represents the layer 2 control protocol processing at the UNI. The system automatically creates an entry for each layer 2 control protocol type when an entry is created in the cevcUniTable, and entries are automatically destroyed when the system destroys the corresponding row in the cevcUniTable.')
cevc_port_l2_control_protocol_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 3, 1, 1), cevc_l2_control_protocol_type())
if mibBuilder.loadTexts:
cevcPortL2ControlProtocolType.setStatus('current')
if mibBuilder.loadTexts:
cevcPortL2ControlProtocolType.setDescription('This object indicates the type of layer 2 control protocol service frame as denoted by the value of cevcPortL2ControlProtocolAction column.')
cevc_port_l2_control_protocol_action = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('discard', 1), ('peer', 2), ('passToEvc', 3), ('peerAndPassToEvc', 4))).clone('discard')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcPortL2ControlProtocolAction.setStatus('current')
if mibBuilder.loadTexts:
cevcPortL2ControlProtocolAction.setDescription("This object specifies the action to be taken for the given layer 2 control protocol service frames which matches the cevcPortL2ControlProtocolType, including: 'discard' The port must discard all ingress service frames carrying the layer 2 control protocol service frames and the port must not generate any egress service frames carrying the layer 2 control protocol service frames. When this action is set at the port, an EVC cannot process the layer 2 control protocol service frames. 'peer' The port must act as a peer, meaning it actively participates with the Customer Equipment, in the operation of the layer 2 control protocol service frames. An example of this is port authentication service at the UNI with 802.1x or enhanced link OAM functionality by peering at the UNI with link OAM (IEEE 802.3ah). When this action is set at the port, an EVC cannot process the layer 2 control protocol service frames. 'passToEvc' The disposition of the service frames which are layer 2 control protocol service frames must be determined by the layer 2 control protocol action attribute of the EVC, (see cevcSIL2ControlProtocolAction for further details). 'peerAndPassToEvc' The layer 2 control protocol service frames will be peered at the port and also passed to one or more EVCs for tunneling. An example of this possibility is where an 802.1x authentication frame is peered at the UNI for UNI-based authentication, but also passed to a given EVC for customer end-to-end authentication.")
cevc_uni_ce_vlan_evc_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4))
if mibBuilder.loadTexts:
cevcUniCEVlanEvcTable.setStatus('current')
if mibBuilder.loadTexts:
cevcUniCEVlanEvcTable.setDescription('This table contains for each UNI, a list of EVCs and the association of CE-VLANs to the EVC. The CE-VLAN mapping is locally significant to the UNI. This table has an expansion dependent relationship on the cevcUniTable, containing zero or more rows for each UNI.')
cevc_uni_ce_vlan_evc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex'), (0, 'CISCO-EVC-MIB', 'cevcUniEvcIndex'), (0, 'CISCO-EVC-MIB', 'cevcUniCEVlanEvcBeginningVlan'))
if mibBuilder.loadTexts:
cevcUniCEVlanEvcEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcUniCEVlanEvcEntry.setDescription('This entry represents an EVC and the CE-VLANs that are mapped to it at an UNI. For example, if CE-VLANs 10, 20-30, 40 are mapped to an EVC indicated by cevcUniEvcIndex = 1, at an UNI with ifIndex = 2, this table will contain following rows to represent above CE-VLAN map: cevcUniCEVlanEvcEndingVlan.2.1.10 = 0 cevcUniCEVlanEvcEndingVlan.2.1.20 = 30 cevcUniCEVlanEvcEndingVlan.2.1.40 = 0 The system automatically creates an entry when the system creates an entry in the cevcUniTable and an entry is created in cevcSICEVlanTable for a service instance which is attached to an EVC on this UNI. Likewise, the system automatically destroys an entry when the system or the EMS/NMS destroys the corresponding row in the cevcUniTable or in the cevcSICEVlanTable.')
cevc_uni_evc_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4, 1, 1), cisco_evc_index())
if mibBuilder.loadTexts:
cevcUniEvcIndex.setStatus('current')
if mibBuilder.loadTexts:
cevcUniEvcIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies the EVC attached at an UNI.')
cevc_uni_ce_vlan_evc_beginning_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4, 1, 2), vlan_id())
if mibBuilder.loadTexts:
cevcUniCEVlanEvcBeginningVlan.setStatus('current')
if mibBuilder.loadTexts:
cevcUniCEVlanEvcBeginningVlan.setDescription("If cevcUniCEVlanEvcEndingVlan is '0', then this object indicates a single VLAN in the list. If cevcUniCEVlanEvcEndingVlan is not '0', then this object indicates the first VLAN in a range of VLANs.")
cevc_uni_ce_vlan_evc_ending_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 2, 4, 1, 3), vlan_id_or_none()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcUniCEVlanEvcEndingVlan.setStatus('current')
if mibBuilder.loadTexts:
cevcUniCEVlanEvcEndingVlan.setDescription("This object indicates the last VLAN in a range of VLANs. If the row does not describe a range, then the value of this column must be '0'.")
cevc_evc_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1))
if mibBuilder.loadTexts:
cevcEvcTable.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcTable.setDescription('This table contains a list of EVCs and their service attributes.')
cevc_evc_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcEvcIndex'))
if mibBuilder.loadTexts:
cevcEvcEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcEntry.setDescription("This entry represents the EVC configured on the system and its service atrributes. Entries in this table may be created and deleted via the cevcEvcRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcEvcRowStatus column to 'createAndGo'or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcEvcRowStatus column to 'destroy'.")
cevc_evc_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 1), cisco_evc_index())
if mibBuilder.loadTexts:
cevcEvcIndex.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies the EVC.')
cevc_evc_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcEvcRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcEvcTable. cevcEvcIdentifier column must have a valid value before a row can be set to 'active'. Writable objects in this table can be modified while the value of cevcEvcRowStatus column is 'active'. An entry cannot be deleted if there exists a service instance which is referring to the cevcEvcEntry i.e. cevcSIEvcIndex in the cevcSITable has the same value as cevcEvcIndex being deleted.")
cevc_evc_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 3), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcEvcStorageType.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevc_evc_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 4), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 100))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcEvcIdentifier.setReference("MEF 16, 'Ethernet Local Management Interface (E-LMI)', January 2006")
if mibBuilder.loadTexts:
cevcEvcIdentifier.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcIdentifier.setDescription('This object specifies a string-value identifying the EVC. This value should be unique across the MEN.')
cevc_evc_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('pointToPoint', 1), ('multipointToMultipoint', 2))).clone('pointToPoint')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcEvcType.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcType.setDescription("This object specifies the type of EVC: 'pointToPoint' Exactly two UNIs are associated with one another. An ingress service frame at one UNI must not result in an egress service frame at a UNI other than the other UNI in the EVC. 'multipointToMultipoint' Two or more UNIs are associated with one another. An ingress service frame at one UNI must not result in an egress service frame at a UNI that is not in the EVC.")
cevc_evc_cfg_unis = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 1, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(2, 4294967295)).clone(2)).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcEvcCfgUnis.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcCfgUnis.setDescription("This object specifies the number of UNIs expected to be configured for the EVC in the MEN. The underlying OAM protocol can use this value of UNIs to determine the EVC operational status, cevcEvcOperStatus. For a Multipoint-to-Multipoint EVC the minimum number of Uni's would be two.")
cevc_evc_state_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 2))
if mibBuilder.loadTexts:
cevcEvcStateTable.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcStateTable.setDescription('This table lists statical/status data of the EVC. This table has an one-to-one dependent relationship on the cevcEvcTable, containing a row for each EVC.')
cevc_evc_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 2, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcEvcIndex'))
if mibBuilder.loadTexts:
cevcEvcStateEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcStateEntry.setDescription('This entry represents status atrributes of an EVC. The system automatically creates an entry when the system or the EMS/NMS creates a row in the cevcEvcTable. Likewise, the system automatically destroys an entry when the system or the EMS/NMS destroys the corresponding row in the cevcEvcTable.')
cevc_evc_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('unknown', 1), ('active', 2), ('partiallyActive', 3), ('inactive', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcEvcOperStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcOperStatus.setDescription("This object specifies the operational status of the EVC: 'unknown' Not enough information available regarding the EVC to determine the operational status at this time or EVC operational status is undefined. 'active' Fully operational between the UNIs in the EVC. 'partiallyActive' Capable of transferring traffic among some but not all of the UNIs in the EVC. This operational status is applicable only for Multipoint-to-Multipoint EVCs. 'inactive' Not capable of transferring traffic among any of the UNIs in the EVC. This value is derived from data gathered by underlying OAM protocol.")
cevc_evc_active_unis = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 2, 1, 2), gauge32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcEvcActiveUnis.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcActiveUnis.setDescription('This object indicates the number of active UNIs for the EVC in the MEN. This value is derived from data gathered by underlying OAM Protocol.')
cevc_evc_uni_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3))
if mibBuilder.loadTexts:
cevcEvcUniTable.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcUniTable.setDescription("This table contains a list of UNI's for each EVC configured on the device. The UNIs can be local (i.e. physically located on the system) or remote (i.e. not physically located on the device). For local UNIs, the UNI Id is the same as denoted by cevcUniIdentifier with the same ifIndex value as cevcEvcLocalUniIfIndex. For remote UNIs, the underlying OAM protocol, if capable, provides the UNI Id via its protocol messages. This table has an expansion dependent relationship on the cevcEvcTable, containing a row for each UNI that is in the EVC.")
cevc_evc_uni_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcEvcIndex'), (0, 'CISCO-EVC-MIB', 'cevcEvcUniIndex'))
if mibBuilder.loadTexts:
cevcEvcUniEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcUniEntry.setDescription('This entry represents a UNI, either local or remote, in the EVC. The system automatically creates an entry, when an UNI is attached to the EVC. Entries are automatically destroyed when the system or the EMS/NMS destroys the corresponding row in the cevcEvcTable or when an UNI is removed from the EVC.')
cevc_evc_uni_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
cevcEvcUniIndex.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcUniIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies the UNI in an EVC.')
cevc_evc_uni_id = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcEvcUniId.setReference('MEF 16, Ethernet Local Management Interface (E-LMI), January 2006')
if mibBuilder.loadTexts:
cevcEvcUniId.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcUniId.setDescription('This object indicates the string-value identifying the UNI that is in the EVC. For UNI that is local, this value is the same as cevcUniIdentifier for the same ifIndex value as cevcEvcLocalUniIfIndex. For UNI that is not on the system, this value may be derived from the underlying OAM protocol. If the UNI identifier value is not specified for the UNI or it is unknown, the value of the cevcEvcUniId column is a zero-length string.')
cevc_evc_uni_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('unknown', 1), ('notReachable', 2), ('up', 3), ('down', 4), ('adminDown', 5), ('localExcessiveError', 6), ('remoteExcessiveError', 7), ('localInLoopback', 8), ('remoteInLoopback', 9), ('localOutLoopback', 10), ('remoteOutLoopback', 11)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcEvcUniOperStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcUniOperStatus.setDescription("This object indicates the operational status derived from data gathered by the OAM protocol for an UNI. 'unknown' Status is not known; possible reason could be caused by the OAM protocol has not provided information regarding the UNI. 'notReachable' UNI is not reachable; possible reason could be caused by the OAM protocol messages having not been received for an excessive length of time. 'up' UNI is active, up, and able to pass traffic. 'down' UNI is down and not passing traffic. 'adminDown' UNI has been administratively put in down state. 'localExcessiveError' UNI has experienced excessive number of invalid frames on the local end of the physical link between UNI-C and UNI-N. 'remoteExcessiveError' UNI has experienced excessive number of invalid frames on the remote side of the physical connection between UNI-C and UNI-N. 'localInLoopback' UNI is loopback on the local end of the physical link between UNI-C and UNI-N. 'remoteInLoopback' UNI is looped back on the remote end of the link between UNI-C and UNI-N. 'localOutLoopback' UNI just transitioned out of loopback on the local end of the physcial link between UNI-C and UNI-N. 'remoteOutLoopback' UNI just transitioned out of loopback on the remote end of the physcial link between UNI-C and UNI-N.")
cevc_evc_local_uni_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 3, 3, 1, 4), interface_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcEvcLocalUniIfIndex.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcLocalUniIfIndex.setDescription("When the UNI is local on the system, this object specifies the ifIndex of the UNI. The value '0' of this column indicates remote UNI.")
cevc_si_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1))
if mibBuilder.loadTexts:
cevcSITable.setStatus('current')
if mibBuilder.loadTexts:
cevcSITable.setDescription('This table lists each service instance and its service attributes.')
cevc_si_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'))
if mibBuilder.loadTexts:
cevcSIEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSIEntry.setDescription("This entry represents a service instance configured on the system and its service attributes. Entries in this table may be created and deleted via the cevcSIRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcSIRowStatus column to 'createAndGo'or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcSIRowStatus column to 'destroy'.")
cevc_si_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
cevcSIIndex.setStatus('current')
if mibBuilder.loadTexts:
cevcSIIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies a service instance. An implementation MAY assign an ifIndex-value assigned to the service instance to cevcSIIndex.')
cevc_si_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSIRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSITable. This object cannot be set to 'active' until following corresponding objects are assigned to valid values: - cevcSITargetType - cevcSITarget - cevcSIName - cevcSIType Following writable objects in this table cannot be modified while the value of cevcSIRowStatus is 'active': - cevcSITargetType - cevcSITarget - cevcSIName - cevcSIType Objects in this table and all other tables that have the same cevcSIIndex value as an index disappear when cevcSIRowStatus is set to 'destroy'.")
cevc_si_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 3), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIStorageType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevc_si_target_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 4), service_instance_target_type()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSITargetType.setStatus('current')
if mibBuilder.loadTexts:
cevcSITargetType.setDescription('This object indicates the type of interface/media to which a service instance has an attachment.')
cevc_si_target = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 5), service_instance_target()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSITarget.setStatus('current')
if mibBuilder.loadTexts:
cevcSITarget.setDescription('This object indicates the target to which a service instance has an attachment. If the target is unknown, the value of the cevcSITarget column is a zero-length string.')
cevc_si_name = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 6), snmp_admin_string()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIName.setStatus('current')
if mibBuilder.loadTexts:
cevcSIName.setDescription("The textual name of the service instance. The value of this column should be the name of the component as assigned by the local interface/media type and should be be suitable for use in commands entered at the device's 'console'. This might be text name, such as 'si1' or a simple service instance number, such as '1', depending on the interface naming syntax of the device. If there is no local name or this object is otherwise not applicable, then this object contains a zero-length string.")
cevc_si_evc_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 7), cisco_evc_index_or_zero()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIEvcIndex.setStatus('current')
if mibBuilder.loadTexts:
cevcSIEvcIndex.setDescription("This object specifies the EVC Index that the service instance is associated. The value of '0' this column indicates that the service instance is not associated to an EVC. If the value of cevcSIEvcIndex column is not '0', there must exist an active row in the cevcEvcTable with the same index value for cevcEvcIndex.")
cevc_si_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2))).clone('up')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIAdminStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSIAdminStatus.setDescription("This object specifies the desired state of the Service Instance. 'up' Ready to transfer traffic. When a system initializes, all service instances start with this state. 'down' The service instance is administratively down and is not capable of transferring traffic.")
cevc_si_forwarding_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('other', 0), ('bridgeDomain', 1)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIForwardingType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardingType.setDescription("This object indicates technique used by a service instance to forward service frames. 'other' If the forwarding behavior of a service instance is not defined or unknown, this object is set to other(0). 'bridgeDomain' Bridge domain is used to forward service frames by a service instance. If cevcSIForwardingType is 'bridgeDomain(1)', there must exist an active row in the cevcSIForwardBdTable with the same index value of cevcSIIndex. The object cevcSIForwardBdNumber indicates the identifier of the bridge domain component being used.")
cevc_si_creation_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('static', 1), ('dynamic', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcSICreationType.setStatus('current')
if mibBuilder.loadTexts:
cevcSICreationType.setDescription("This object specifies whether the service instance created is statically configured by the user or is dynamically created. 'static' If the service instance is configured manually this object is set to static(1). 'dynamic' If the service instance is created dynamically by the first sign of life of an Ethernet frame, then this object is set to dynamic(2) for the service instance.")
cevc_si_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 1, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('regular', 1), ('trunk', 2), ('l2context', 3)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIType.setDescription("This object specifies the type of the service instance. It mentions if the service instance is either a regular or trunk or l2context service instance. 'regular' If a service instance is configured without any type specified, then it is a regular service instance. 'trunk' If the service instance is configured with trunk type, then it is a trunk service instance. For a trunk service instance, its Bridge domain IDs are derived from encapsulation VLAN plus an optional offset (refer cevcSIForwardBdNumberBase object). 'l2context' If the service instance is configured with dynamic type, then it is a L2 context service instance. The Ethernet L2 Context is a statically configured service instance which contains the Ethernet Initiator for attracting the first sign of life. In other words, Ethernet L2 Context service instance is used for catching the first sign of life of Ethernet frames to create dynamic Ethernet sessions service instances.")
cevc_si_state_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 2))
if mibBuilder.loadTexts:
cevcSIStateTable.setStatus('current')
if mibBuilder.loadTexts:
cevcSIStateTable.setDescription('This table lists statical status data of the service instance. This table has an one-to-one dependent relationship on the cevcSITable, containing a row for each service instance.')
cevc_si_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 2, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'))
if mibBuilder.loadTexts:
cevcSIStateEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSIStateEntry.setDescription('This entry represents operational status of a service instance. The system automatically creates an entry when the system or the EMS NMS creates a row in the cevcSITable. Likewise, the system automatically destroys an entry when the system or the EMS NMS destroys the corresponding row in the cevcSITable.')
cevc_si_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('up', 1), ('down', 2), ('adminDown', 3), ('deleted', 4), ('errorDisabled', 5), ('unknown', 6)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
cevcSIOperStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSIOperStatus.setDescription("This object indicates the operational status of the Service Instance. 'up' Service instance is fully operational and able to transfer traffic. 'down' Service instance is down and not capable of transferring traffic, and is not administratively configured to be down by management system. 'adminDown' Service instance has been explicitly configured to administratively down by a management system and is not capable of transferring traffic. 'deleted' Service instance has been deleted. 'errorDisabled' Service instance has been shut down due to MAC security violations. 'unknown' Operational status of service instance is unknown or undefined.")
cevc_si_vlan_rewrite_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3))
if mibBuilder.loadTexts:
cevcSIVlanRewriteTable.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteTable.setDescription("This table lists the rewrite adjustments of the service frame's VLAN tags for service instances. This table has an expansion dependent relationship on the cevcSITable, containing a row for a VLAN adjustment for ingress and egress frames at each service instance.")
cevc_si_vlan_rewrite_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'), (0, 'CISCO-EVC-MIB', 'cevcSIVlanRewriteDirection'))
if mibBuilder.loadTexts:
cevcSIVlanRewriteEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteEntry.setDescription('Each entry represents the VLAN adjustment for a Service Instance.')
cevc_si_vlan_rewrite_direction = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('ingress', 1), ('egress', 2))))
if mibBuilder.loadTexts:
cevcSIVlanRewriteDirection.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteDirection.setDescription("This object specifies the VLAN adjustment for 'ingress' frames or 'egress' frames on the service instance.")
cevc_si_vlan_rewrite_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIVlanRewriteRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIVlanRewriteTable. cevcSIVlanRewriteAction and cevcSIVlanRewriteEncapsulation must have valid values before this object can be set to 'active'. Writable objects in this table can be modified while the value of cevcSIVlanRewriteRowStatus column is 'active'.")
cevc_si_vlan_rewrite_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 3), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIVlanRewriteStorageType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevc_si_vlan_rewrite_action = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('push1', 1), ('push2', 2), ('pop1', 3), ('pop2', 4), ('translate1To1', 5), ('translate1To2', 6), ('translate2To1', 7), ('translate2To2', 8)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIVlanRewriteAction.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteAction.setDescription("This object specifies the rewrite action the device performs for the service instance, including: 'push1' Add cevcSIVlanRewriteVlan1 as the VLAN tag to the service frame. 'push2' Add cevcSIVlanRewriteVlan1 as the outer VLAN tag and cevcSIVlanRewriteVlan2 as the inner VLAN tag of the service frame. 'pop1' Remove the outermost VLAN tag from the service frame. 'pop2' Remove the two outermost VLAN tags from the service frame. 'translate1To1' Replace the outermost VLAN tag with the cevcSIVlanRewriteVlan1 tag. 'translate1To2' Replace the outermost VLAN tag with cevcSIVlanRewriteVlan1 and add cevcSIVlanRewriteVlan2 to the second VLAN tag of the service frame. 'translate2To1' Remove the outermost VLAN tag and replace the second VLAN tag with cevcSIVlanVlanRewriteVlan1. 'translate2To2' Replace the outermost VLAN tag with cevcSIVlanRewriteVlan1 and the second VLAN tag with cevcSIVlanRewriteVlan2.")
cevc_si_vlan_rewrite_encapsulation = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('dot1q', 1), ('dot1ad', 2)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIVlanRewriteEncapsulation.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteEncapsulation.setDescription("This object specifies the encapsulation type to process for the service instance. 'dot1q' The IEEE 802.1q encapsulation. 'dot1ad' The IEEE 802.1ad encapsulation.")
cevc_si_vlan_rewrite_vlan1 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 6), vlan_id()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIVlanRewriteVlan1.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteVlan1.setDescription("This object specifies the outermost VLAN ID tag of the frame for the service instance. This object is valid only when cevcSIVlanRewriteAction is 'push1', 'push2', 'translate1To1', 'translate1To2', 'translate2To1', or 'translate2To2'.")
cevc_si_vlan_rewrite_vlan2 = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 7), vlan_id()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIVlanRewriteVlan2.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteVlan2.setDescription("This object specifies the second VLAN ID tag of the frame for the service instance. This object is valid only when cevcSIVlanRewriteAction is 'push2', 'translate1To2', or 'translate2To2'.")
cevc_si_vlan_rewrite_symmetric = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 3, 1, 8), truth_value().clone('false')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIVlanRewriteSymmetric.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteSymmetric.setDescription("This object is valid only when cevcSIVlanRewriteDirection is 'ingress'. The value 'true' of this column specifies that egress packets are tagged with a VLAN specified by an active row in cevcSIPrimaryVlanTable. There could only be one VLAN value assigned in the cevcSIPrimaryVlanTable, i.e. only one 'active' entry that has the same index value of cevcSIIndex column and corresponding instance of cevcSIPrimaryVlanEndingVlan column has value '0'.")
cevc_sil2_control_protocol_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 4))
if mibBuilder.loadTexts:
cevcSIL2ControlProtocolTable.setStatus('current')
if mibBuilder.loadTexts:
cevcSIL2ControlProtocolTable.setDescription('This table lists the layer 2 control protocol processing attributes at service instances. This table has an expansion dependent relationship on the cevcSITable, containing a row for each layer 2 control protocol disposition at each service instance.')
cevc_sil2_control_protocol_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 4, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'), (0, 'CISCO-EVC-MIB', 'cevcSIL2ControlProtocolType'))
if mibBuilder.loadTexts:
cevcSIL2ControlProtocolEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSIL2ControlProtocolEntry.setDescription('This entry represents the layer 2 control protocol processing at a service instance. The system automatically creates an entry for each layer 2 control protocol type when an entry is created in the cevcSITable, and entries are automatically destroyed when the system destroys the corresponding row in the cevcSITable.')
cevc_sil2_control_protocol_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 4, 1, 1), cevc_l2_control_protocol_type())
if mibBuilder.loadTexts:
cevcSIL2ControlProtocolType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIL2ControlProtocolType.setDescription('The layer 2 control protocol service frame that the service instance is to process as defined by object cevcSIL2ControlProtocolAction.')
cevc_sil2_control_protocol_action = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('discard', 1), ('tunnel', 2), ('forward', 3))).clone('discard')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIL2ControlProtocolAction.setStatus('current')
if mibBuilder.loadTexts:
cevcSIL2ControlProtocolAction.setDescription("The actions to be taken for a given layer 2 control protocol service frames that matches cevcSIL2ControlProtocolType, including: 'discard' The MEN must discard all ingress service frames carrying the layer 2 control protocol service frames on the EVC and the MEN must not generate any egress service frames carrying the layer 2 control protocol frames on the EVC. 'tunnel' Forward the layer 2 control protocol service frames with the MAC address changed as defined by the individual layer 2 control protocol. The EVC does not process the layer 2 protocol service frames. If a layer 2 control protocol service frame is to be tunneled, all the UNIs in the EVC must be configured to pass the layer 2 control protocol service frames to the EVC, cevcPortL2ControlProtocolAction column has the value of 'passToEvc' or 'peerAndPassToEvc'. 'forward' Forward the layer 2 conrol protocol service frames as data; similar to tunnel but layer 2 control protocol service frames are forwarded without changing the MAC address.")
cevc_sice_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5))
if mibBuilder.loadTexts:
cevcSICEVlanTable.setStatus('current')
if mibBuilder.loadTexts:
cevcSICEVlanTable.setDescription('This table contains the CE-VLAN map list for each Service Instance. This table has an expansion dependent relationship on the cevcSITable, containing a row for each CE-VLAN or a range of CE-VLANs that are mapped to a service instance.')
cevc_sice_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'), (0, 'CISCO-EVC-MIB', 'cevcSICEVlanBeginningVlan'))
if mibBuilder.loadTexts:
cevcSICEVlanEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSICEVlanEntry.setDescription("This entry contains the CE-VLANs that are mapped at a Service Instance. Entries in this table may be created and deleted via the cevcSICEVlanRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcSICEVlanRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcSICEVlanRowStatus column to 'destroy'.")
cevc_sice_vlan_beginning_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1, 1), vlan_id())
if mibBuilder.loadTexts:
cevcSICEVlanBeginningVlan.setStatus('current')
if mibBuilder.loadTexts:
cevcSICEVlanBeginningVlan.setDescription("If cevcSICEVlanEndingVlan is '0', then this object indicates a single VLAN in the list. If cevcSICEVlanEndingVlan is not '0', then this object indicates the first VLAN in a range of VLANs.")
cevc_sice_vlan_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSICEVlanRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSICEVlanRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSICEVlanTable. This object cannot be set to 'active' until all objects have been assigned valid values. Writable objects in this table can be modified while the value of the cevcSICEVlanRowStatus column is 'active'.")
cevc_sice_vlan_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1, 3), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSICEVlanStorageType.setStatus('current')
if mibBuilder.loadTexts:
cevcSICEVlanStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevc_sice_vlan_ending_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 5, 1, 4), vlan_id_or_none()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSICEVlanEndingVlan.setStatus('current')
if mibBuilder.loadTexts:
cevcSICEVlanEndingVlan.setDescription("This object indicates the last VLAN in a range of VLANs. If the row does not describe a range, then the value of this column must be '0'.")
cevc_si_match_criteria_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6))
if mibBuilder.loadTexts:
cevcSIMatchCriteriaTable.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchCriteriaTable.setDescription('This table contains the match criteria for each Service Instance. This table has an expansion dependent relationship on the cevcSITable, containing a row for each group of match criteria of each service instance.')
cevc_si_match_criteria_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'), (0, 'CISCO-EVC-MIB', 'cevcSIMatchCriteriaIndex'))
if mibBuilder.loadTexts:
cevcSIMatchCriteriaEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchCriteriaEntry.setDescription("This entry represents a group of match criteria for a service instance. Each entry in the table with the same cevcSIIndex and different cevcSIMatchCriteriaIndex represents an OR operation of the match criteria for the service instance. Entries in this table may be created and deleted via the cevcSIMatchRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcSIMatchRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcSIMatchRowStatus column to 'destroy'.")
cevc_si_match_criteria_index = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
cevcSIMatchCriteriaIndex.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchCriteriaIndex.setDescription('This object indicates an arbitrary integer-value that uniquely identifies a match criteria for a service instance.')
cevc_si_match_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIMatchCriteriaTable. If the value of cevcSIMatchCriteriaType column is 'dot1q(1)' or 'dot1ad(2)' or 'untaggedAndDot1q' or 'untaggedAndDot1ad, then cevcSIMatchCriteriaRowStatus can not be set to 'active' until there exist an active row in the cevcSIMatchEncapTable with the same index value for cevcSIIndex and cevcSIMatchCriteriaIndex. Writable objects in this table can be modified while the value of the cevcSIMatchRowStatus column is 'active'.")
cevc_si_match_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1, 3), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchStorageType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevc_si_match_criteria_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 6, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('unknown', 1), ('dot1q', 2), ('dot1ad', 3), ('untagged', 4), ('untaggedAndDot1q', 5), ('untaggedAndDot1ad', 6), ('priorityTagged', 7), ('defaultTagged', 8)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchCriteriaType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchCriteriaType.setDescription("This object specifies the criteria used to match a service instance. 'unknown' Match criteria for the service instance is not defined or unknown. 'dot1q' The IEEE 802.1q encapsulation is used as a match criteria for the service instance. The ether type value of the IEEE 802.1q tag is specified by the object cevcSIEncapEncapsulation with the same index value of cevcSIIndex and cevcSIMatchCreriaIndex. 'dot1ad' The IEEE 802.1ad encapsulation is used as a match criteria for the service instance. The ether type value of the IEEE 802.1ad tag is specified by the cevcSIEncapEncapsulation column with the same index value of cevcSIIndex and cevcSIMatchCreriaIndex. 'untagged' Service instance processes untagged service frames. Only one service instance on the interface/media type can use untagged frames as a match criteria. 'untaggedAndDot1q' Both untagged frames and the IEEE 802.1q encapsulation are used as a match criteria for the service instance. Only one service instance on the interface/media type can use untagged frames as a match criteria. The ether type value of the IEEE 802.1q tag is specified by the cevcSIEncapEncapsulation column with the same index value of cevcSIIndex and cevcSIMatchCreriaIndex. 'untaggedAndDot1ad' Both untagged frames and the IEEE 802.1ad encapsulation are used as a match criteria for the service instance. Only one service instance on the interface/media type can use untagged frames as a match criteria. The ether type value of the IEEE 802.1ad tag is specified by the cevcSIEncapEncapsulation column with the same index value of cevcSIIndex and cevcSIMatchCreriaIndex. 'priorityTagged' Service instance processes priority tagged frames. Only one service instance on the interface/media type can use priority tagged frames as a match criteria. 'defaultTagged' Service instance is a default service instance. The default service instance processes frames with VLANs that do not match to any other service instances configured on the interface/media type. Only one service instance on the interface/media type can be the default service instance.")
cevc_si_match_encap_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7))
if mibBuilder.loadTexts:
cevcSIMatchEncapTable.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapTable.setDescription("This table contains the encapsulation based match criteria for each service instance. This table has a sparse dependent relationship on the cevcSIMatchCriteriaTable, containing a row for each match criteria having one of the following values for cevcSIMatchCriteriaType: - 'dot1q' - 'dot1ad' - 'untaggedAndDot1q' - 'untaggedAndDot1ad' - 'priorityTagged'")
cevc_si_match_encap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'), (0, 'CISCO-EVC-MIB', 'cevcSIMatchCriteriaIndex'))
if mibBuilder.loadTexts:
cevcSIMatchEncapEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapEntry.setDescription("This entry represents a group of encapulation match criteria for a service instance. Entries in this table may be created and deleted via the cevcSIMatchEncapRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of cevcSIMatchEncapRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of cevcSIMatchEncapRowStatus column to 'destroy'.")
cevc_si_match_encap_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 1), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchEncapRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIMatchEncapTable. This object cannot be set to 'active' until cevcSIEncapEncapsulation and objects referred by cevcSIMatchEncapValid have been assigned their respective valid values. Writable objects in this table can be modified while the value of the cevcSIEncapMatchRowStatus column is 'active'.")
cevc_si_match_encap_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 2), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchEncapStorageType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevc_si_match_encap_valid = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 3), bits().clone(namedValues=named_values(('primaryCos', 0), ('secondaryCos', 1), ('payloadType', 2), ('payloadTypes', 3), ('priorityCos', 4), ('dot1qNativeVlan', 5), ('dot1adNativeVlan', 6), ('encapExact', 7)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchEncapValid.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapValid.setDescription("This object specifies the encapsulation criteria used to match a service instance. 'primaryCos' The 'primaryCos' bit set to '1' specifies the Class of Service is used as service match criteria for the service instance. When this bit is set to '1' there must exist aleast one active rows in the cevcSIPrimaryVlanTable which has the same index values of cevcSIIndex and cevcSIMatchCriteriaIndex. When 'primaryCos' bit is '1', the cevcSIPrimaryCos column indicates the CoS value(s). 'secondaryCos' The 'secondaryCos' bit set to '1' specifies the Class of Service is used as service match criteria for the service instance. When this bit is set to '1' there must exist aleast one active rows in the cevcSISecondaryVlanTable which has the same index values of cevcSIIndex and cevcSIMatchCriteriaIndex. When 'secondaryCos' bit is '1', the cevcSISecondaryCos column indicates the CoS value(s). 'payloadType' This bit set to '1' specifies that the value of corresponding instance of cevcSIMatchEncapPayloadType is used as service match criteria for the service instance. 'payloadTypes' This bit set to '1' specifies that the value of corresponding instance of cevcSIMatchEncapPayloadTypes is used as service match criteria for the service instance. 'priorityCos' This bit set to '1' specifies that the value of corresponding instance of cevcSIMatchEncapPriorityCos is used as service match criteria for the service instance. 'dot1qNativeVlan' This bit set to '1' specifies that the IEEE 802.1q tag with native vlan is used as service match criteria for the service instance. 'dot1adNativeVlan' This bit set to '1' specifies that the IEEE 802.1ad tag with native vlan is used as service match criteria for the service instance. 'encapExact' This bit set to '1' specifies that a service frame is mapped to the service instance only if it matches exactly to the encapsulation specified by the service instance.")
cevc_si_match_encap_encapsulation = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('dot1qEthertype0x8100', 1), ('dot1qEthertype0x9100', 2), ('dot1qEthertype0x9200', 3), ('dot1qEthertype0x88A8', 4), ('dot1adEthertype0x88A8', 5), ('dot1ahEthertype0x88A8', 6)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchEncapEncapsulation.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapEncapsulation.setDescription("This object specifies the encapsulation type used as service match criteria. The object also specifies the Ethertype for egress packets on the service instance. 'dot1qEthertype0x8100' The IEEE 801.1q encapsulation with ether type value 0x8100. 'dot1qEthertype0x9100' The IEEE 801.1q encapsulation with ether type value 0x9100. 'dot1qEthertype0x9200' The IEEE 801.1q encapsulation with ether type value 0x9200. 'dot1qEthertype0x88A8' The IEEE 801.1q encapsulation with ether type value 0x88A8. 'dot1adEthertype0x88A8' The IEEE 801.1ad encapsulation with ether type value 0x88A8. 'dot1ahEthertype0x88A8' The IEEE 801.1ah encapsulation with ether type value 0x88A8.")
cevc_si_match_encap_primary_cos = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 5), cisco_cos_list()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchEncapPrimaryCos.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapPrimaryCos.setDescription("This object specifies the CoS values which the Service Instance uses as service match criteria. This object is valid only when 'primaryVlans' and 'primaryCos' bits are set to '1' in corresponding instance of the object cevcSIMatchEncapValid.")
cevc_si_match_encap_secondary_cos = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 6), cisco_cos_list()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchEncapSecondaryCos.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapSecondaryCos.setDescription("This object specifies the CoS values which the Service Instance uses as service match criteria. This object is valid only when 'secondaryVlans' and 'secondaryCos' bits are set to '1' in corresponding instance of the object cevcSIMatchEncapValid.")
cevc_si_match_encap_payload_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('other', 1), ('payloadType0x0800ip', 2)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchEncapPayloadType.setStatus('deprecated')
if mibBuilder.loadTexts:
cevcSIMatchEncapPayloadType.setDescription("This object specifies the PayloadType(etype/protocol type) values that the service instance uses as a service match criteria. This object is required when the forwarding of layer-2 ethernet packet is done through the payloadType i.e IP etc. 'other' None of the following. 'payloadType0x0800ip' Payload type value for IP is 0x0800. This object is valid only when 'payloadType' bit is set to '1' in corresponding instance of the object cevcSIMatchEncapValid. This object is deprecated by cevcSIMatchEncapPayloadTypes.")
cevc_si_match_encap_payload_types = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 8), bits().clone(namedValues=named_values(('payloadTypeIPv4', 0), ('payloadTypeIPv6', 1), ('payloadTypePPPoEDiscovery', 2), ('payloadTypePPPoESession', 3), ('payloadTypePPPoEAll', 4)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchEncapPayloadTypes.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapPayloadTypes.setDescription("This object specifies the etype/protocol type values that service instance uses as a service match criteria. This object is required when the forwarding of layer-2 ethernet packet is done through the payload ether type i.e IP etc. 'payloadTypeIPv4' Ethernet payload type value for IPv4 protocol. 'payloadTypeIPv6' Ethernet payload type value for IPv6 protocol. 'payloadTypePPPoEDiscovery' Ethernet payload type value for PPPoE discovery stage. 'payloadTypePPPoESession' Ethernet payload type value for PPPoE session stage. 'payloadTypePPPoEAll' All ethernet payload type values for PPPoE protocol. This object is valid only when 'payloadTypes' bit is set to '1' in corresponding instance of the object cevcSIMatchEncapValid. This object deprecates cevcSIMatchEncapPayloadType.")
cevc_si_match_encap_priority_cos = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 7, 1, 9), cisco_cos_list()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIMatchEncapPriorityCos.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchEncapPriorityCos.setDescription("This object specifies the priority CoS values which the service instance uses as service match criteria. This object is valid only when 'priorityCos' bit is set to '1' in corresponding instance of the object cevcSIMatchEncapValid.")
cevc_si_primary_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8))
if mibBuilder.loadTexts:
cevcSIPrimaryVlanTable.setStatus('current')
if mibBuilder.loadTexts:
cevcSIPrimaryVlanTable.setDescription('This table contains the primary VLAN ID list for each Service Instance. This table has an expansion dependent relationship on the cevcSIMatchEncapTable, containing zero or more rows for each encapsulation match criteria.')
cevc_si_primary_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'), (0, 'CISCO-EVC-MIB', 'cevcSIMatchCriteriaIndex'), (0, 'CISCO-EVC-MIB', 'cevcSIPrimaryVlanBeginningVlan'))
if mibBuilder.loadTexts:
cevcSIPrimaryVlanEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSIPrimaryVlanEntry.setDescription("This entry specifies a single VLAN or a range of VLANs contained in the primary VLAN list that's part of the encapsulation match criteria. Entries in this table may be created and deleted via the cevcSIPrimaryVlanRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of the cevcSIPrimaryVlanRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of the cevcSIPrimaryVlanRowStatus column to 'destroy'.")
cevc_si_primary_vlan_beginning_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1, 1), vlan_id())
if mibBuilder.loadTexts:
cevcSIPrimaryVlanBeginningVlan.setStatus('current')
if mibBuilder.loadTexts:
cevcSIPrimaryVlanBeginningVlan.setDescription("If cevcSIPrimaryVlanEndingVlan is '0', then this object indicates a single VLAN in the list. If cevcSIPrimaryVlanEndingVlan is not '0', then this object indicates the first VLAN in a range of VLANs.")
cevc_si_primary_vlan_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIPrimaryVlanRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSIPrimaryVlanRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIPrimaryVlanTable. This column cannot be set to 'active' until all objects have been assigned valid values. Writable objects in this table can be modified while the value of the cevcSIPrimaryVlanRowStatus column is 'active'.")
cevc_si_primary_vlan_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1, 3), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIPrimaryVlanStorageType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIPrimaryVlanStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevc_si_primary_vlan_ending_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 8, 1, 4), vlan_id_or_none()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIPrimaryVlanEndingVlan.setStatus('current')
if mibBuilder.loadTexts:
cevcSIPrimaryVlanEndingVlan.setDescription("This object indicates the last VLAN in a range of VLANs. If the row does not describe a range, then the value of this column must be '0'.")
cevc_si_secondary_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9))
if mibBuilder.loadTexts:
cevcSISecondaryVlanTable.setStatus('current')
if mibBuilder.loadTexts:
cevcSISecondaryVlanTable.setDescription('This table contains the seconadary VLAN ID list for each service instance. This table has an expansion dependent relationship on the cevcSIMatchEncapTable, containing zero or more rows for each encapsulation match criteria.')
cevc_si_secondary_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'), (0, 'CISCO-EVC-MIB', 'cevcSIMatchCriteriaIndex'), (0, 'CISCO-EVC-MIB', 'cevcSISecondaryVlanBeginningVlan'))
if mibBuilder.loadTexts:
cevcSISecondaryVlanEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSISecondaryVlanEntry.setDescription("This entry specifies a single VLAN or a range of VLANs contained in the secondary VLAN list that's part of the encapsulation match criteria. Entries in this table may be created and deleted via the cevcSISecondaryVlanRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of the cevcSISecondaryVlanRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of the cevcSISecondaryVlanRowStatus column to 'destroy'.")
cevc_si_secondary_vlan_beginning_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1, 1), vlan_id())
if mibBuilder.loadTexts:
cevcSISecondaryVlanBeginningVlan.setStatus('current')
if mibBuilder.loadTexts:
cevcSISecondaryVlanBeginningVlan.setDescription("If cevcSISecondaryVlanEndingVlan is '0', then this object indicates a single VLAN in the list. If cevcSISecondaryVlanEndingVlan is not '0', then this object indicates the first VLAN in a range of VLANs.")
cevc_si_secondary_vlan_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1, 2), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSISecondaryVlanRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSISecondaryVlanRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSISecondaryVlanTable. This column can not be set to 'active' until all objects have been assigned valid values. Writable objects in this table can be modified while the value of cevcSISecondaryVlanRowStatus column is 'active'.")
cevc_si_secondary_vlan_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1, 3), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSISecondaryVlanStorageType.setStatus('current')
if mibBuilder.loadTexts:
cevcSISecondaryVlanStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevc_si_secondary_vlan_ending_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 9, 1, 4), vlan_id_or_none()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSISecondaryVlanEndingVlan.setStatus('current')
if mibBuilder.loadTexts:
cevcSISecondaryVlanEndingVlan.setDescription("This object indicates the last VLAN in a range of VLANs. If the row does not describe a range, then the value of this column must be '0'.")
cevc_si_forward_bd_table = mib_table((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10))
if mibBuilder.loadTexts:
cevcSIForwardBdTable.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardBdTable.setDescription("This table contains the forwarding bridge domain information for each service instance. This table has a sparse dependent relationship on the cevcSITable, containing a row for each service instance having a cevcSIForwardingType of 'bridgeDomain'.")
cevc_si_forward_bd_entry = mib_table_row((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1)).setIndexNames((0, 'CISCO-EVC-MIB', 'cevcSIIndex'))
if mibBuilder.loadTexts:
cevcSIForwardBdEntry.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardBdEntry.setDescription("This entry represents an bridged domain used to forward service frames by the service instance. Entries in this table may be created and deleted via the cevcSIForwardBdRowStatus object or the management console on the system. Using SNMP, rows are created by a SET request setting the value of the cevcSIForwardBdRowStatus column to 'createAndGo' or 'createAndWait'. Rows are deleted by a SET request setting the value of the cevcSIForwardBdRowStatus column to 'destroy'.")
cevc_si_forward_bd_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 1), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIForwardBdRowStatus.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardBdRowStatus.setDescription("This object enables a SNMP peer to create, modify, and delete rows in the cevcSIForwardBdTable. This column can not be set to 'active' until all objects have been assigned valid values. Writable objects in this table can be modified while the value of the cevcSIForwardBdRowStatus column is 'active'.")
cevc_si_forward_bd_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 2), storage_type().clone('volatile')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIForwardBdStorageType.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardBdStorageType.setDescription("This object specifies how the SNMP entity stores the data contained by the corresponding conceptual row. This object can be set to either 'volatile' or 'nonVolatile'. Other values are not applicable for this conceptual row and are not supported.")
cevc_si_forward_bd_number = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 3), unsigned32()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber.setStatus('deprecated')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber.setDescription('The bridge domain identifier that is associated with the service instance. A bridge domain refers to a layer 2 broadcast domain spanning a set of physical or virtual ports. Frames are switched Multicast and unknown destination unicast frames are flooded within the confines of the bridge domain.')
cevc_si_forward_bd_number_base = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 4096, 8192, 12288, 16384))).clone(namedValues=named_values(('bdNumBase0', 0), ('bdNumBase4096', 4096), ('bdNumBase8192', 8192), ('bdNumBase12288', 12288), ('bdNumBase16384', 16384)))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIForwardBdNumberBase.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardBdNumberBase.setDescription('This object specifies the base of bridge domain. The bridge domain range is 1~16k, cevcSIForwardBdNumberBase is to track what is the base of each 4k bitmap. In this way we can specify all the 16k bridge domains using four 1k bitmaps and having the base which describes that is the base of each 4k bitmap. The four 1k bitmaps, cevcSIForwardBdNumber1kBitmap represents 0~1023, cevcSIForwardBdNumber2kBitmap represents 1024~2047, cevcSIForwardBdNumber3kBitmap represents 2048~3071, cevcSIForwardBdNumber4kBitmap represents 3072~4095 And cevcSIForwardBdNumberBase is one of 0, 4096, 8192, 12288, 16384. SNMP Administrator can use cevcSIForwardBdNumberBase + (position of the set bit in four 1k bitmaps) to get BD number of a service instance.')
cevc_si_forward_bd_number1k_bitmap = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber1kBitmap.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber1kBitmap.setDescription("This object specifies a string of octets containing one bit per Bridge domain per service instance(generally we have one bridge domain per nontrunk service instance but can have more than one bridge configured with a trunk service instance). The first octet corresponds to Bridge domains with Bridge domain ID values of 0 through 7; the second octet to Bridge domains 8 through 15; etc. Thus, this 128-octet bitmap represents bridge domain ID value 0~1023. For each Bridge domain configured, the bit corresponding to that bridge domain is set to '1'. SNMP Administrator uses cevcSIForwardBdNumberBase + (position of the set bit in bitmap)to calculate BD number of a service instance. Note that if the length of this string is less than 128 octets, any 'missing' octets are assumed to contain the value zero. An NMS may omit any zero-valued octets from the end of this string in order to reduce SetPDU size, and the agent may also omit zero-valued trailing octets, to reduce the size of GetResponse PDUs.")
cevc_si_forward_bd_number2k_bitmap = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber2kBitmap.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber2kBitmap.setDescription("This object specifies a string of octets containing one bit per Bridge domain per service instance(generally we have one bridge domain per nontrunk service instance but can have more than one bridge configured with a trunk service instance). The first octet corresponds to Bridge domains with Bridge domain ID values of 1024 through 1031; the second octet to Bridge domains 1032 through 1039; etc. Thus, this 128-octet bitmap represents bridge domain ID value 1024~2047. For each Bridge domain configured, the bit corresponding to that bridge domain is set to 1. SNMP Administrator uses cevcSIForwardBdNumberBase + (position of the set bit in bitmap)to calculate BD number of a service instance. Note that if the length of this string is less than 128 octets, any 'missing' octets are assumed to contain the value zero. An NMS may omit any zero-valued octets from the end of this string in order to reduce SetPDU size, and the agent may also omit zero-valued trailing octets, to reduce the size of GetResponse PDUs.")
cevc_si_forward_bd_number3k_bitmap = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber3kBitmap.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber3kBitmap.setDescription("This object specifies a string of octets containing one bit per Bridge domain per service instance(generally we have one bridge domain per non-trunk service instance but can have more than one bridge configured with a trunk service instance). The first octet corresponds to Bridge domains with Bridgedomain ID values of 2048 through 2055; the second octet to Bridge domains 2056 through 2063; etc. Thus, this 128-octet bitmap represents bridge domain ID value 2048~3071. For each Bridge domain configured, the bit corresponding to that bridge domain is set to 1. SNMP Administrator uses cevcSIForwardBdNumberBase + (position of the set bit in bitmap)to calculate BD number of a service instance. Note that if the length of this string is less than 128 octets, any 'missing' octets are assumed to contain the value zero. An NMS may omit any zero-valued octets from the end of this string in order to reduce SetPDU size, and the agent may also omit zero-valued trailing octets, to reduce the size of GetResponse PDUs.")
cevc_si_forward_bd_number4k_bitmap = mib_table_column((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 4, 10, 1, 8), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber4kBitmap.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardBdNumber4kBitmap.setDescription("This object specifies a string of octets containing one bit per Bridge domain per service instance(generally we have one bridge domain per non-trunk service instance but can have more than one bridge configured with a trunk service instance). The first octet corresponds to Bridge domains with Bridgedomain ID values of 3078 through 3085; the second octet to Bridge domains 3086 through 3093; etc. Thus, this 128-octet bitmap represents bridge domain ID value 3072~4095. For each Bridge domain configured, the bit corresponding to that bridge domain is set to 1. SNMP Administrator uses cevcSIForwardBdNumberBase + (position of the set bit in bitmap)to calculate BD number of a service instance. Note that if the length of this string is less than 128 octets, any 'missing' octets are assumed to contain the value zero. An NMS may omit any zero-valued octets from the end of this string in order to reduce SetPDU size, and the agent may also omit zero-valued trailing octets, to reduce the size of GetResponse PDUs.")
cevc_evc_notify_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 9, 9, 613, 1, 5, 1), bits().clone(namedValues=named_values(('status', 0), ('creation', 1), ('deletion', 2), ('macSecurityViolation', 3)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
cevcEvcNotifyEnabled.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcNotifyEnabled.setDescription("This object specifies the system generation of notification, including: 'status' This bit set to '1' specifies the system generation of cevcEvcStatusChangedNotification. 'creation' This bit set to '1' specifies the system generation of cevcEvcCreationNotification. 'deletion' This bit set to '1' specifices the system generation of cevcEvcDeletionNotification. 'macSecurityViolation' This bit set to '1' specifies the system generation of cevcMacSecurityViolation.")
cisco_evc_notification_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0))
cevc_evc_status_changed_notification = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0, 1)).setObjects(('CISCO-EVC-MIB', 'cevcEvcOperStatus'), ('CISCO-EVC-MIB', 'cevcEvcCfgUnis'), ('CISCO-EVC-MIB', 'cevcEvcActiveUnis'))
if mibBuilder.loadTexts:
cevcEvcStatusChangedNotification.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcStatusChangedNotification.setDescription("A device generates this notification when an EVC's operational status changes, or the number of active UNIs associated with the EVC (cevcNumActiveUnis) changes.")
cevc_evc_creation_notification = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0, 2)).setObjects(('CISCO-EVC-MIB', 'cevcEvcOperStatus'))
if mibBuilder.loadTexts:
cevcEvcCreationNotification.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcCreationNotification.setDescription('A device generates this notification upon the creation of an EVC.')
cevc_evc_deletion_notification = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0, 3)).setObjects(('CISCO-EVC-MIB', 'cevcEvcOperStatus'))
if mibBuilder.loadTexts:
cevcEvcDeletionNotification.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcDeletionNotification.setDescription('A device generates this notification upon the deletion of an EVC.')
cevc_mac_security_violation_notification = notification_type((1, 3, 6, 1, 4, 1, 9, 9, 613, 0, 0, 4)).setObjects(('IF-MIB', 'ifIndex'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumberBase'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumber1kBitmap'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumber2kBitmap'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumber3kBitmap'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumber4kBitmap'), ('CISCO-EVC-MIB', 'cevcSIID'), ('CISCO-EVC-MIB', 'cevcMacAddress'), ('CISCO-EVC-MIB', 'cevcMaxMacConfigLimit'), ('CISCO-EVC-MIB', 'cevcViolationCause'))
if mibBuilder.loadTexts:
cevcMacSecurityViolationNotification.setStatus('current')
if mibBuilder.loadTexts:
cevcMacSecurityViolationNotification.setDescription("A SNMP entity generates this notification in the following cases: When the system MAC Address limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedSystemLimit' value. When the Bridge domain limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedBdLimit' value. When the Service Instance limit is exceeded, the cevcMacSecurityViolationCauseType will contain 'exceedSILimit' value. If the MAC address is present in the Black list then cevcMacSecurityViolationCauseType will contain 'blackListDeny' value. Description of all the varbinds for this Notification is as follows: ifIndex indicates the interface index which identifies the interface that the service instance is attached. cevcSIForwardBdNumberBase indicates the base of bridge domain. The bridge domain range is 1~16k, this object is to track the base of each 4k bitmap. cevcSIForwardBdNumber1kBitmap indicates a string of octets containing one bit per Bridge domain per service instance. This 128-octet bitmap represents bridge domain ID values 0~1023. cevcSIForwardBdNumber2kBitmap indicates a string of octets containing one bit per Bridge domain per service instance. This 128-octet bitmap represents bridge domain ID values 1024~2047. cevcSIForwardBdNumber3kBitmap indicates a string of octets containing one bit per Bridge domain per service instance. This 128-octet bitmap represents bridge domain ID values 2048~3071. cevcSIForwardBdNumber4kBitmap indicates a string of octets containing one bit per Bridge domain per service instance. This 128-octet bitmap represents bridge domain ID values 3072~4095. cevcSIID indicates the service instance ID for the Mac security violation notification. cevcMacAddress indicates the Mac address which has violated the Mac security rules. cevcMaxMacConfigLimit indicates the maximum Mac configuration limit. This is also sent as a part of Mac security violation notification. cevcViolationCause indicates the Mac security violation cause.")
cisco_evc_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 1))
cisco_evc_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2))
cisco_evc_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 1, 1)).setObjects(('CISCO-EVC-MIB', 'cevcSystemGroup'), ('CISCO-EVC-MIB', 'cevcPortGroup'), ('CISCO-EVC-MIB', 'cevcEvcGroup'), ('CISCO-EVC-MIB', 'cevcSIGroup'), ('CISCO-EVC-MIB', 'cevcEvcNotificationConfigGroup'), ('CISCO-EVC-MIB', 'cevcEvcNotificationGroup'), ('CISCO-EVC-MIB', 'cevcSICosMatchCriteriaGroup'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteGroup'), ('CISCO-EVC-MIB', 'cevcSIMatchCriteriaGroup'), ('CISCO-EVC-MIB', 'cevcSIForwardGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_evc_mib_compliance = ciscoEvcMIBCompliance.setStatus('deprecated')
if mibBuilder.loadTexts:
ciscoEvcMIBCompliance.setDescription('The new compliance statement for entities which implement the CISCO-EVC-MIB.')
cisco_evc_mib_compliance_rev1 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 1, 2)).setObjects(('CISCO-EVC-MIB', 'cevcSystemGroup'), ('CISCO-EVC-MIB', 'cevcPortGroup'), ('CISCO-EVC-MIB', 'cevcEvcGroup'), ('CISCO-EVC-MIB', 'cevcSIGroup'), ('CISCO-EVC-MIB', 'cevcEvcNotificationConfigGroup'), ('CISCO-EVC-MIB', 'cevcEvcNotificationGroup'), ('CISCO-EVC-MIB', 'cevcSICosMatchCriteriaGroup'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteGroup'), ('CISCO-EVC-MIB', 'cevcSIMatchCriteriaGroupRev1'), ('CISCO-EVC-MIB', 'cevcSIForwardGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_evc_mib_compliance_rev1 = ciscoEvcMIBComplianceRev1.setStatus('deprecated')
if mibBuilder.loadTexts:
ciscoEvcMIBComplianceRev1.setDescription('The compliance statement for entities which implement the CISCO-EVC-MIB. This compliance module deprecates ciscoEvcMIBCompliance.')
cisco_evc_mib_compliance_rev2 = module_compliance((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 1, 3)).setObjects(('CISCO-EVC-MIB', 'cevcSystemGroup'), ('CISCO-EVC-MIB', 'cevcPortGroup'), ('CISCO-EVC-MIB', 'cevcEvcGroup'), ('CISCO-EVC-MIB', 'cevcSIGroupRev1'), ('CISCO-EVC-MIB', 'cevcEvcNotificationConfigGroup'), ('CISCO-EVC-MIB', 'cevcEvcNotificationGroupRev1'), ('CISCO-EVC-MIB', 'cevcSICosMatchCriteriaGroup'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteGroup'), ('CISCO-EVC-MIB', 'cevcSIMatchCriteriaGroupRev1'), ('CISCO-EVC-MIB', 'cevcSIForwardGroupRev1'), ('CISCO-EVC-MIB', 'cevcMacSecurityViolationGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cisco_evc_mib_compliance_rev2 = ciscoEvcMIBComplianceRev2.setStatus('current')
if mibBuilder.loadTexts:
ciscoEvcMIBComplianceRev2.setDescription('The compliance statement for entities which implement the CISCO-EVC-MIB. This compliance module deprecates ciscoEvcMIBComplianceRev1.')
cevc_system_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 1)).setObjects(('CISCO-EVC-MIB', 'cevcMaxNumEvcs'), ('CISCO-EVC-MIB', 'cevcNumCfgEvcs'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_system_group = cevcSystemGroup.setStatus('current')
if mibBuilder.loadTexts:
cevcSystemGroup.setDescription('A collection of objects providing system configuration of EVCs.')
cevc_port_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 2)).setObjects(('CISCO-EVC-MIB', 'cevcPortMode'), ('CISCO-EVC-MIB', 'cevcPortMaxNumEVCs'), ('CISCO-EVC-MIB', 'cevcPortMaxNumServiceInstances'), ('CISCO-EVC-MIB', 'cevcPortL2ControlProtocolAction'), ('CISCO-EVC-MIB', 'cevcUniIdentifier'), ('CISCO-EVC-MIB', 'cevcUniPortType'), ('CISCO-EVC-MIB', 'cevcUniServiceAttributes'), ('CISCO-EVC-MIB', 'cevcUniCEVlanEvcEndingVlan'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_port_group = cevcPortGroup.setStatus('current')
if mibBuilder.loadTexts:
cevcPortGroup.setDescription('A collection of objects providing configuration for ports in an EVC.')
cevc_evc_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 3)).setObjects(('CISCO-EVC-MIB', 'cevcEvcIdentifier'), ('CISCO-EVC-MIB', 'cevcEvcType'), ('CISCO-EVC-MIB', 'cevcEvcOperStatus'), ('CISCO-EVC-MIB', 'cevcEvcCfgUnis'), ('CISCO-EVC-MIB', 'cevcEvcActiveUnis'), ('CISCO-EVC-MIB', 'cevcEvcStorageType'), ('CISCO-EVC-MIB', 'cevcEvcRowStatus'), ('CISCO-EVC-MIB', 'cevcEvcUniId'), ('CISCO-EVC-MIB', 'cevcEvcUniOperStatus'), ('CISCO-EVC-MIB', 'cevcEvcLocalUniIfIndex'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_evc_group = cevcEvcGroup.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcGroup.setDescription('A collection of objects providing configuration and status information for EVCs.')
cevc_si_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 4)).setObjects(('CISCO-EVC-MIB', 'cevcSIName'), ('CISCO-EVC-MIB', 'cevcSITargetType'), ('CISCO-EVC-MIB', 'cevcSITarget'), ('CISCO-EVC-MIB', 'cevcSIEvcIndex'), ('CISCO-EVC-MIB', 'cevcSIRowStatus'), ('CISCO-EVC-MIB', 'cevcSIStorageType'), ('CISCO-EVC-MIB', 'cevcSIAdminStatus'), ('CISCO-EVC-MIB', 'cevcSIOperStatus'), ('CISCO-EVC-MIB', 'cevcSIL2ControlProtocolAction'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteAction'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteEncapsulation'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteVlan1'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteVlan2'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteSymmetric'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteStorageType'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteRowStatus'), ('CISCO-EVC-MIB', 'cevcSIForwardingType'), ('CISCO-EVC-MIB', 'cevcSICEVlanRowStatus'), ('CISCO-EVC-MIB', 'cevcSICEVlanStorageType'), ('CISCO-EVC-MIB', 'cevcSICEVlanEndingVlan'), ('CISCO-EVC-MIB', 'cevcSIMatchStorageType'), ('CISCO-EVC-MIB', 'cevcSIMatchRowStatus'), ('CISCO-EVC-MIB', 'cevcSIMatchCriteriaType'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapRowStatus'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapStorageType'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapValid'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapEncapsulation'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanRowStatus'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanStorageType'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanEndingVlan'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_si_group = cevcSIGroup.setStatus('deprecated')
if mibBuilder.loadTexts:
cevcSIGroup.setDescription('A collection of objects providing configuration and match criteria for service instances. cevcSIGroup object is superseded by cevcSIGroupRev1.')
cevc_si_vlan_rewrite_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 5)).setObjects(('CISCO-EVC-MIB', 'cevcSIVlanRewriteAction'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteEncapsulation'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteVlan1'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteVlan2'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteSymmetric'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteStorageType'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteRowStatus'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_si_vlan_rewrite_group = cevcSIVlanRewriteGroup.setStatus('current')
if mibBuilder.loadTexts:
cevcSIVlanRewriteGroup.setDescription('A collection of objects which provides VLAN rewrite information for a service instance.')
cevc_si_cos_match_criteria_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 6)).setObjects(('CISCO-EVC-MIB', 'cevcSIMatchEncapPrimaryCos'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapSecondaryCos'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_si_cos_match_criteria_group = cevcSICosMatchCriteriaGroup.setStatus('current')
if mibBuilder.loadTexts:
cevcSICosMatchCriteriaGroup.setDescription('A collection of objects which provides CoS match criteria for a service instance.')
cevc_si_match_criteria_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 7)).setObjects(('CISCO-EVC-MIB', 'cevcSIMatchRowStatus'), ('CISCO-EVC-MIB', 'cevcSIMatchStorageType'), ('CISCO-EVC-MIB', 'cevcSIMatchCriteriaType'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapRowStatus'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapStorageType'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapValid'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapEncapsulation'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapPrimaryCos'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapSecondaryCos'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapPayloadType'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanRowStatus'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanStorageType'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanEndingVlan'), ('CISCO-EVC-MIB', 'cevcSISecondaryVlanRowStatus'), ('CISCO-EVC-MIB', 'cevcSISecondaryVlanStorageType'), ('CISCO-EVC-MIB', 'cevcSISecondaryVlanEndingVlan'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_si_match_criteria_group = cevcSIMatchCriteriaGroup.setStatus('deprecated')
if mibBuilder.loadTexts:
cevcSIMatchCriteriaGroup.setDescription('A collection of objects providing match criteria information for service instances. cevcSIMatchCriteriaGroup object is superseded by cevcSIMatchCriteriaGroupRev1.')
cevc_si_forward_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 8)).setObjects(('CISCO-EVC-MIB', 'cevcSIForwardingType'), ('CISCO-EVC-MIB', 'cevcSIForwardBdRowStatus'), ('CISCO-EVC-MIB', 'cevcSIForwardBdStorageType'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumber'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_si_forward_group = cevcSIForwardGroup.setStatus('deprecated')
if mibBuilder.loadTexts:
cevcSIForwardGroup.setDescription('A collection of objects providing service frame forwarding information for service instances. cevcSIForwardGroup object is superseded by cevcSIForwardGroupRev1.')
cevc_evc_notification_config_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 9)).setObjects(('CISCO-EVC-MIB', 'cevcEvcNotifyEnabled'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_evc_notification_config_group = cevcEvcNotificationConfigGroup.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcNotificationConfigGroup.setDescription('A collection of objects for configuring notification of this MIB.')
cevc_evc_notification_group = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 10)).setObjects(('CISCO-EVC-MIB', 'cevcEvcStatusChangedNotification'), ('CISCO-EVC-MIB', 'cevcEvcCreationNotification'), ('CISCO-EVC-MIB', 'cevcEvcDeletionNotification'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_evc_notification_group = cevcEvcNotificationGroup.setStatus('deprecated')
if mibBuilder.loadTexts:
cevcEvcNotificationGroup.setDescription('A collection of notifications that this MIB module is required to implement. cevcEvcNotificationGroup object is superseded by cevcEvcNotificationGroupRev1.')
cevc_si_match_criteria_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 11)).setObjects(('CISCO-EVC-MIB', 'cevcSIMatchRowStatus'), ('CISCO-EVC-MIB', 'cevcSIMatchStorageType'), ('CISCO-EVC-MIB', 'cevcSIMatchCriteriaType'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapRowStatus'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapStorageType'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapValid'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapEncapsulation'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapPrimaryCos'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapSecondaryCos'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapPayloadTypes'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapPriorityCos'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanRowStatus'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanStorageType'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanEndingVlan'), ('CISCO-EVC-MIB', 'cevcSISecondaryVlanRowStatus'), ('CISCO-EVC-MIB', 'cevcSISecondaryVlanStorageType'), ('CISCO-EVC-MIB', 'cevcSISecondaryVlanEndingVlan'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_si_match_criteria_group_rev1 = cevcSIMatchCriteriaGroupRev1.setStatus('current')
if mibBuilder.loadTexts:
cevcSIMatchCriteriaGroupRev1.setDescription('A collection of objects providing match criteria information for service instances. This group deprecates the old group cevcSIMatchCriteriaGroup.')
cevc_evc_notification_group_rev1 = notification_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 12)).setObjects(('CISCO-EVC-MIB', 'cevcEvcStatusChangedNotification'), ('CISCO-EVC-MIB', 'cevcEvcCreationNotification'), ('CISCO-EVC-MIB', 'cevcEvcDeletionNotification'), ('CISCO-EVC-MIB', 'cevcMacSecurityViolationNotification'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_evc_notification_group_rev1 = cevcEvcNotificationGroupRev1.setStatus('current')
if mibBuilder.loadTexts:
cevcEvcNotificationGroupRev1.setDescription('A collection of notifications that this MIB module is required to implement. This module deprecates the cevcNotificationGroup')
cevc_si_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 13)).setObjects(('CISCO-EVC-MIB', 'cevcSIName'), ('CISCO-EVC-MIB', 'cevcSITargetType'), ('CISCO-EVC-MIB', 'cevcSITarget'), ('CISCO-EVC-MIB', 'cevcSIEvcIndex'), ('CISCO-EVC-MIB', 'cevcSIRowStatus'), ('CISCO-EVC-MIB', 'cevcSIStorageType'), ('CISCO-EVC-MIB', 'cevcSIAdminStatus'), ('CISCO-EVC-MIB', 'cevcSIOperStatus'), ('CISCO-EVC-MIB', 'cevcPortL2ControlProtocolAction'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteAction'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteEncapsulation'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteVlan1'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteVlan2'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteSymmetric'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteRowStatus'), ('CISCO-EVC-MIB', 'cevcSIVlanRewriteStorageType'), ('CISCO-EVC-MIB', 'cevcSIForwardingType'), ('CISCO-EVC-MIB', 'cevcSICEVlanRowStatus'), ('CISCO-EVC-MIB', 'cevcSICEVlanStorageType'), ('CISCO-EVC-MIB', 'cevcSICEVlanEndingVlan'), ('CISCO-EVC-MIB', 'cevcSIMatchStorageType'), ('CISCO-EVC-MIB', 'cevcSIMatchCriteriaType'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapRowStatus'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapStorageType'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapValid'), ('CISCO-EVC-MIB', 'cevcSIMatchEncapEncapsulation'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanRowStatus'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanStorageType'), ('CISCO-EVC-MIB', 'cevcSIPrimaryVlanEndingVlan'), ('CISCO-EVC-MIB', 'cevcSIMatchRowStatus'), ('CISCO-EVC-MIB', 'cevcSICreationType'), ('CISCO-EVC-MIB', 'cevcSIType'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_si_group_rev1 = cevcSIGroupRev1.setStatus('current')
if mibBuilder.loadTexts:
cevcSIGroupRev1.setDescription('A collection of objects providing configuration and match criteria for service instances. This module deprecates the cevcSIGroup')
cevc_si_forward_group_rev1 = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 14)).setObjects(('CISCO-EVC-MIB', 'cevcSIForwardingType'), ('CISCO-EVC-MIB', 'cevcSIForwardBdRowStatus'), ('CISCO-EVC-MIB', 'cevcSIForwardBdStorageType'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumberBase'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumber1kBitmap'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumber2kBitmap'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumber3kBitmap'), ('CISCO-EVC-MIB', 'cevcSIForwardBdNumber4kBitmap'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_si_forward_group_rev1 = cevcSIForwardGroupRev1.setStatus('current')
if mibBuilder.loadTexts:
cevcSIForwardGroupRev1.setDescription('A collection of objects providing service frame forwarding information for service instances. This module deprecates cevcSIForwardGroup')
cevc_mac_security_violation_group = object_group((1, 3, 6, 1, 4, 1, 9, 9, 613, 2, 2, 15)).setObjects(('CISCO-EVC-MIB', 'cevcMacAddress'), ('CISCO-EVC-MIB', 'cevcMaxMacConfigLimit'), ('CISCO-EVC-MIB', 'cevcSIID'), ('CISCO-EVC-MIB', 'cevcViolationCause'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
cevc_mac_security_violation_group = cevcMacSecurityViolationGroup.setStatus('current')
if mibBuilder.loadTexts:
cevcMacSecurityViolationGroup.setDescription('A collection of objects providing the maximum configured MAC limit, the MAC address, service instance ID and Violation cause for Mac Security Violation Information.')
mibBuilder.exportSymbols('CISCO-EVC-MIB', cevcEvcStorageType=cevcEvcStorageType, cevcSIType=cevcSIType, cevcEvc=cevcEvc, cevcEvcUniOperStatus=cevcEvcUniOperStatus, ciscoEvcMIBCompliance=ciscoEvcMIBCompliance, cevcEvcUniTable=cevcEvcUniTable, cevcSystemGroup=cevcSystemGroup, cevcNumCfgEvcs=cevcNumCfgEvcs, cevcSICEVlanRowStatus=cevcSICEVlanRowStatus, cevcSIName=cevcSIName, cevcSICreationType=cevcSICreationType, cevcSIForwardBdNumberBase=cevcSIForwardBdNumberBase, cevcSIMatchEncapPayloadTypes=cevcSIMatchEncapPayloadTypes, cevcPortTable=cevcPortTable, ServiceInstanceTarget=ServiceInstanceTarget, cevcSIMatchEncapEntry=cevcSIMatchEncapEntry, PYSNMP_MODULE_ID=ciscoEvcMIB, cevcEvcCfgUnis=cevcEvcCfgUnis, cevcSIForwardGroupRev1=cevcSIForwardGroupRev1, cevcSIForwardBdEntry=cevcSIForwardBdEntry, cevcSIEvcIndex=cevcSIEvcIndex, cevcSIForwardBdNumber3kBitmap=cevcSIForwardBdNumber3kBitmap, cevcSIMatchCriteriaIndex=cevcSIMatchCriteriaIndex, cevcSIGroup=cevcSIGroup, cevcSIForwardBdTable=cevcSIForwardBdTable, cevcEvcUniId=cevcEvcUniId, cevcEvcStatusChangedNotification=cevcEvcStatusChangedNotification, cevcViolationCause=cevcViolationCause, cevcSIPrimaryVlanEntry=cevcSIPrimaryVlanEntry, cevcEvcGroup=cevcEvcGroup, cevcSIIndex=cevcSIIndex, cevcSIVlanRewriteVlan1=cevcSIVlanRewriteVlan1, cevcSITable=cevcSITable, cevcSISecondaryVlanStorageType=cevcSISecondaryVlanStorageType, cevcUniPortType=cevcUniPortType, cevcEvcStateTable=cevcEvcStateTable, cevcSIVlanRewriteSymmetric=cevcSIVlanRewriteSymmetric, cevcSIMatchEncapRowStatus=cevcSIMatchEncapRowStatus, cevcMacSecurityViolationNotification=cevcMacSecurityViolationNotification, cevcEvcNotificationGroupRev1=cevcEvcNotificationGroupRev1, ciscoEvcMIB=ciscoEvcMIB, ciscoEvcMIBComplianceRev1=ciscoEvcMIBComplianceRev1, cevcUniTable=cevcUniTable, cevcUniCEVlanEvcTable=cevcUniCEVlanEvcTable, cevcEvcOperStatus=cevcEvcOperStatus, ciscoEvcMIBNotifications=ciscoEvcMIBNotifications, ciscoEvcMIBComplianceRev2=ciscoEvcMIBComplianceRev2, cevcSIVlanRewriteEntry=cevcSIVlanRewriteEntry, cevcUniCEVlanEvcBeginningVlan=cevcUniCEVlanEvcBeginningVlan, cevcSIPrimaryVlanEndingVlan=cevcSIPrimaryVlanEndingVlan, cevcSIMatchEncapPayloadType=cevcSIMatchEncapPayloadType, cevcSISecondaryVlanRowStatus=cevcSISecondaryVlanRowStatus, cevcEvcStateEntry=cevcEvcStateEntry, cevcPortGroup=cevcPortGroup, cevcSIPrimaryVlanStorageType=cevcSIPrimaryVlanStorageType, cevcSIMatchCriteriaType=cevcSIMatchCriteriaType, cevcSICEVlanTable=cevcSICEVlanTable, cevcSITarget=cevcSITarget, cevcSIAdminStatus=cevcSIAdminStatus, cevcSIL2ControlProtocolType=cevcSIL2ControlProtocolType, ciscoEvcNotificationPrefix=ciscoEvcNotificationPrefix, CiscoEvcIndexOrZero=CiscoEvcIndexOrZero, cevcEvcIdentifier=cevcEvcIdentifier, cevcSIStateEntry=cevcSIStateEntry, cevcSIVlanRewriteTable=cevcSIVlanRewriteTable, cevcSIMatchCriteriaEntry=cevcSIMatchCriteriaEntry, cevcEvcRowStatus=cevcEvcRowStatus, cevcEvcNotificationGroup=cevcEvcNotificationGroup, cevcSIForwardBdNumber2kBitmap=cevcSIForwardBdNumber2kBitmap, cevcMaxNumEvcs=cevcMaxNumEvcs, cevcSIL2ControlProtocolTable=cevcSIL2ControlProtocolTable, cevcEvcUniIndex=cevcEvcUniIndex, cevcEvcIndex=cevcEvcIndex, cevcServiceInstance=cevcServiceInstance, cevcUniCEVlanEvcEntry=cevcUniCEVlanEvcEntry, cevcSICEVlanEntry=cevcSICEVlanEntry, cevcSIVlanRewriteDirection=cevcSIVlanRewriteDirection, cevcSIID=cevcSIID, cevcSIMatchEncapEncapsulation=cevcSIMatchEncapEncapsulation, ciscoEvcMIBObjects=ciscoEvcMIBObjects, ServiceInstanceTargetType=ServiceInstanceTargetType, cevcPort=cevcPort, cevcSIVlanRewriteVlan2=cevcSIVlanRewriteVlan2, cevcSIForwardBdNumber1kBitmap=cevcSIForwardBdNumber1kBitmap, cevcMaxMacConfigLimit=cevcMaxMacConfigLimit, cevcSIMatchEncapSecondaryCos=cevcSIMatchEncapSecondaryCos, cevcPortMaxNumServiceInstances=cevcPortMaxNumServiceInstances, cevcEvcNotifyEnabled=cevcEvcNotifyEnabled, cevcEvcType=cevcEvcType, cevcMacSecurityViolation=cevcMacSecurityViolation, cevcEvcDeletionNotification=cevcEvcDeletionNotification, ciscoEvcMIBGroups=ciscoEvcMIBGroups, cevcSIL2ControlProtocolAction=cevcSIL2ControlProtocolAction, cevcSIVlanRewriteGroup=cevcSIVlanRewriteGroup, cevcUniServiceAttributes=cevcUniServiceAttributes, cevcSIMatchRowStatus=cevcSIMatchRowStatus, cevcSICEVlanStorageType=cevcSICEVlanStorageType, cevcSICEVlanBeginningVlan=cevcSICEVlanBeginningVlan, cevcSIMatchEncapStorageType=cevcSIMatchEncapStorageType, cevcSIL2ControlProtocolEntry=cevcSIL2ControlProtocolEntry, cevcSIMatchCriteriaTable=cevcSIMatchCriteriaTable, cevcEvcActiveUnis=cevcEvcActiveUnis, cevcSIVlanRewriteAction=cevcSIVlanRewriteAction, ciscoEvcMIBCompliances=ciscoEvcMIBCompliances, cevcSICEVlanEndingVlan=cevcSICEVlanEndingVlan, cevcSIPrimaryVlanTable=cevcSIPrimaryVlanTable, cevcSIVlanRewriteEncapsulation=cevcSIVlanRewriteEncapsulation, cevcSIForwardingType=cevcSIForwardingType, cevcSISecondaryVlanBeginningVlan=cevcSISecondaryVlanBeginningVlan, cevcSystem=cevcSystem, ciscoEvcMIBConformance=ciscoEvcMIBConformance, cevcMacSecurityViolationGroup=cevcMacSecurityViolationGroup, cevcSIMatchEncapPriorityCos=cevcSIMatchEncapPriorityCos, cevcSIOperStatus=cevcSIOperStatus, CiscoEvcIndex=CiscoEvcIndex, cevcSIMatchCriteriaGroup=cevcSIMatchCriteriaGroup, cevcSITargetType=cevcSITargetType, cevcPortL2ControlProtocolTable=cevcPortL2ControlProtocolTable, cevcUniIdentifier=cevcUniIdentifier, cevcSISecondaryVlanTable=cevcSISecondaryVlanTable, cevcSIStorageType=cevcSIStorageType, CevcL2ControlProtocolType=CevcL2ControlProtocolType, cevcSIMatchCriteriaGroupRev1=cevcSIMatchCriteriaGroupRev1, cevcSICosMatchCriteriaGroup=cevcSICosMatchCriteriaGroup, cevcSIForwardGroup=cevcSIForwardGroup, cevcEvcUniEntry=cevcEvcUniEntry, cevcEvcNotificationConfigGroup=cevcEvcNotificationConfigGroup, cevcPortL2ControlProtocolAction=cevcPortL2ControlProtocolAction, CevcMacSecurityViolationCauseType=CevcMacSecurityViolationCauseType, cevcSIRowStatus=cevcSIRowStatus, cevcEvcEntry=cevcEvcEntry, cevcEvcCreationNotification=cevcEvcCreationNotification, cevcEvcLocalUniIfIndex=cevcEvcLocalUniIfIndex, cevcUniEntry=cevcUniEntry, cevcSIVlanRewriteRowStatus=cevcSIVlanRewriteRowStatus, cevcPortMaxNumEVCs=cevcPortMaxNumEVCs, cevcPortL2ControlProtocolType=cevcPortL2ControlProtocolType, cevcSISecondaryVlanEntry=cevcSISecondaryVlanEntry, cevcUniCEVlanEvcEndingVlan=cevcUniCEVlanEvcEndingVlan, cevcSIForwardBdRowStatus=cevcSIForwardBdRowStatus, cevcPortMode=cevcPortMode, cevcMacAddress=cevcMacAddress, cevcSIMatchEncapValid=cevcSIMatchEncapValid, cevcUniEvcIndex=cevcUniEvcIndex, cevcPortL2ControlProtocolEntry=cevcPortL2ControlProtocolEntry, cevcSIVlanRewriteStorageType=cevcSIVlanRewriteStorageType, cevcSIStateTable=cevcSIStateTable, cevcSIPrimaryVlanRowStatus=cevcSIPrimaryVlanRowStatus, cevcSIMatchEncapTable=cevcSIMatchEncapTable, cevcSISecondaryVlanEndingVlan=cevcSISecondaryVlanEndingVlan, cevcSIForwardBdNumber4kBitmap=cevcSIForwardBdNumber4kBitmap, cevcPortEntry=cevcPortEntry, cevcSIPrimaryVlanBeginningVlan=cevcSIPrimaryVlanBeginningVlan, ServiceInstanceInterface=ServiceInstanceInterface, cevcSIForwardBdNumber=cevcSIForwardBdNumber, cevcSIMatchEncapPrimaryCos=cevcSIMatchEncapPrimaryCos, cevcEvcTable=cevcEvcTable, cevcSIForwardBdStorageType=cevcSIForwardBdStorageType, cevcSIGroupRev1=cevcSIGroupRev1, cevcEvcNotificationConfig=cevcEvcNotificationConfig, cevcSIEntry=cevcSIEntry, cevcSIMatchStorageType=cevcSIMatchStorageType) |
#
# PySNMP MIB module ALPHA-RECTIFIER-SYS-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALPHA-RECTIFIER-SYS-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:20:50 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)
#
simple, ScaledNumber = mibBuilder.importSymbols("ALPHA-RESOURCE-MIB", "simple", "ScaledNumber")
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
TimeTicks, MibIdentifier, Unsigned32, IpAddress, ObjectIdentity, Gauge32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Counter32, Counter64, NotificationType, Integer32, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "MibIdentifier", "Unsigned32", "IpAddress", "ObjectIdentity", "Gauge32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Counter32", "Counter64", "NotificationType", "Integer32", "ModuleIdentity")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
rectifierSystem = ModuleIdentity((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1))
rectifierSystem.setRevisions(('2015-07-28 00:00', '2015-07-23 00:00', '2015-06-23 00:00',))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts: rectifierSystem.setRevisionsDescriptions((' Updated to follow MIB structure conformance rules. Tested with SimpleWeb: http://www.simpleweb.org Passed highest level of compliance. (level 6) ', 'Fixed MIB syntax warnings.', 'General revision.',))
if mibBuilder.loadTexts: rectifierSystem.setLastUpdated('201507280000Z')
if mibBuilder.loadTexts: rectifierSystem.setOrganization('Alpha Technologies Ltd.')
if mibBuilder.loadTexts: rectifierSystem.setContactInfo('Alpha Technologies Ltd. 7700 Riverfront Gate Burnaby, BC V5J 5M4 Canada Tel: 1-604-436-5900 Fax: 1-604-436-1233')
if mibBuilder.loadTexts: rectifierSystem.setDescription('This MIB defines the notification block(s) available in system controllers.')
rectSysTotalOutputCurrent = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 1), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysTotalOutputCurrent.setStatus('current')
if mibBuilder.loadTexts: rectSysTotalOutputCurrent.setDescription(' Total accumulated output current of all the rectifiers associated with the current system. ')
rectSysTotalOutputPower = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 2), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysTotalOutputPower.setStatus('current')
if mibBuilder.loadTexts: rectSysTotalOutputPower.setDescription('Total output current of all system rectifiers.')
rectSysTotalCapacityInstalledAmps = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 3), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysTotalCapacityInstalledAmps.setStatus('current')
if mibBuilder.loadTexts: rectSysTotalCapacityInstalledAmps.setDescription('A rectifier output current multiplied by the number of rectifiers installed.')
rectSysTotalCapacityInstalledPower = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 4), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysTotalCapacityInstalledPower.setStatus('current')
if mibBuilder.loadTexts: rectSysTotalCapacityInstalledPower.setDescription('A rectifier output power multiplied by the number of rectifiers installed.')
rectSysAverageRectifierOutputVoltage = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 5), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysAverageRectifierOutputVoltage.setStatus('current')
if mibBuilder.loadTexts: rectSysAverageRectifierOutputVoltage.setDescription('Average rectifier output voltage.')
rectSysAverageRectifierACInputVoltage = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 6), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysAverageRectifierACInputVoltage.setStatus('current')
if mibBuilder.loadTexts: rectSysAverageRectifierACInputVoltage.setDescription('Average rectifier input voltage.')
rectSysAveragePhase1Voltage = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 7), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysAveragePhase1Voltage.setStatus('current')
if mibBuilder.loadTexts: rectSysAveragePhase1Voltage.setDescription('Average output voltage of rectifiers in Phase 1.')
rectSysAveragePhase2Voltage = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 8), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysAveragePhase2Voltage.setStatus('current')
if mibBuilder.loadTexts: rectSysAveragePhase2Voltage.setDescription('Average output voltage of rectifiers in Phase 2.')
rectSysAveragePhase3Voltage = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 9), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysAveragePhase3Voltage.setStatus('current')
if mibBuilder.loadTexts: rectSysAveragePhase3Voltage.setDescription('Average output voltage of rectifiers in Phase 3.')
rectSysSystemVoltage = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 10), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysSystemVoltage.setStatus('current')
if mibBuilder.loadTexts: rectSysSystemVoltage.setDescription('System voltage.')
rectSysTotalLoadCurrent = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 11), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysTotalLoadCurrent.setStatus('current')
if mibBuilder.loadTexts: rectSysTotalLoadCurrent.setDescription('Total load current.')
rectSysBatteryVoltage = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 12), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysBatteryVoltage.setStatus('current')
if mibBuilder.loadTexts: rectSysBatteryVoltage.setDescription('Battery voltage.')
rectSysBatteryCurrent = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 13), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysBatteryCurrent.setStatus('current')
if mibBuilder.loadTexts: rectSysBatteryCurrent.setDescription('Battery current.')
rectSysBatteryTemperature = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 14), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysBatteryTemperature.setStatus('current')
if mibBuilder.loadTexts: rectSysBatteryTemperature.setDescription('Battery temperature.')
rectSysSystemNumber = MibScalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 15), ScaledNumber()).setMaxAccess("readonly")
if mibBuilder.loadTexts: rectSysSystemNumber.setStatus('current')
if mibBuilder.loadTexts: rectSysSystemNumber.setDescription('Snmp ID# assigned to the system.')
conformance = MibIdentifier((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100))
compliances = MibIdentifier((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100, 1))
compliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100, 1, 1)).setObjects(("ALPHA-RECTIFIER-SYS-MIB", "rectifierGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
compliance = compliance.setStatus('current')
if mibBuilder.loadTexts: compliance.setDescription('The compliance statement for systems supporting the alpha MIB.')
rectifierGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100, 2))
rectifierGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100, 2, 1)).setObjects(("ALPHA-RECTIFIER-SYS-MIB", "rectSysTotalOutputCurrent"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysTotalOutputPower"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysTotalCapacityInstalledAmps"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysTotalCapacityInstalledPower"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysAverageRectifierOutputVoltage"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysAverageRectifierACInputVoltage"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysAveragePhase1Voltage"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysAveragePhase2Voltage"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysAveragePhase3Voltage"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysSystemVoltage"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysTotalLoadCurrent"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysBatteryVoltage"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysBatteryCurrent"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysBatteryTemperature"), ("ALPHA-RECTIFIER-SYS-MIB", "rectSysSystemNumber"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rectifierGroup = rectifierGroup.setStatus('current')
if mibBuilder.loadTexts: rectifierGroup.setDescription('Alpha Rectifier System data list group.')
mibBuilder.exportSymbols("ALPHA-RECTIFIER-SYS-MIB", rectSysTotalCapacityInstalledPower=rectSysTotalCapacityInstalledPower, rectifierGroups=rectifierGroups, rectifierSystem=rectifierSystem, rectSysTotalCapacityInstalledAmps=rectSysTotalCapacityInstalledAmps, rectSysTotalOutputCurrent=rectSysTotalOutputCurrent, rectSysAveragePhase2Voltage=rectSysAveragePhase2Voltage, rectSysTotalLoadCurrent=rectSysTotalLoadCurrent, rectSysTotalOutputPower=rectSysTotalOutputPower, rectSysSystemVoltage=rectSysSystemVoltage, compliance=compliance, rectSysAveragePhase3Voltage=rectSysAveragePhase3Voltage, conformance=conformance, compliances=compliances, rectSysBatteryCurrent=rectSysBatteryCurrent, rectSysAverageRectifierOutputVoltage=rectSysAverageRectifierOutputVoltage, rectSysSystemNumber=rectSysSystemNumber, PYSNMP_MODULE_ID=rectifierSystem, rectSysAverageRectifierACInputVoltage=rectSysAverageRectifierACInputVoltage, rectSysBatteryTemperature=rectSysBatteryTemperature, rectSysAveragePhase1Voltage=rectSysAveragePhase1Voltage, rectSysBatteryVoltage=rectSysBatteryVoltage, rectifierGroup=rectifierGroup)
| (simple, scaled_number) = mibBuilder.importSymbols('ALPHA-RESOURCE-MIB', 'simple', 'ScaledNumber')
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_range_constraint, constraints_intersection, single_value_constraint, constraints_union, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(time_ticks, mib_identifier, unsigned32, ip_address, object_identity, gauge32, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, bits, counter32, counter64, notification_type, integer32, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'MibIdentifier', 'Unsigned32', 'IpAddress', 'ObjectIdentity', 'Gauge32', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Bits', 'Counter32', 'Counter64', 'NotificationType', 'Integer32', 'ModuleIdentity')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
rectifier_system = module_identity((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1))
rectifierSystem.setRevisions(('2015-07-28 00:00', '2015-07-23 00:00', '2015-06-23 00:00'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
if mibBuilder.loadTexts:
rectifierSystem.setRevisionsDescriptions((' Updated to follow MIB structure conformance rules. Tested with SimpleWeb: http://www.simpleweb.org Passed highest level of compliance. (level 6) ', 'Fixed MIB syntax warnings.', 'General revision.'))
if mibBuilder.loadTexts:
rectifierSystem.setLastUpdated('201507280000Z')
if mibBuilder.loadTexts:
rectifierSystem.setOrganization('Alpha Technologies Ltd.')
if mibBuilder.loadTexts:
rectifierSystem.setContactInfo('Alpha Technologies Ltd. 7700 Riverfront Gate Burnaby, BC V5J 5M4 Canada Tel: 1-604-436-5900 Fax: 1-604-436-1233')
if mibBuilder.loadTexts:
rectifierSystem.setDescription('This MIB defines the notification block(s) available in system controllers.')
rect_sys_total_output_current = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 1), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysTotalOutputCurrent.setStatus('current')
if mibBuilder.loadTexts:
rectSysTotalOutputCurrent.setDescription(' Total accumulated output current of all the rectifiers associated with the current system. ')
rect_sys_total_output_power = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 2), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysTotalOutputPower.setStatus('current')
if mibBuilder.loadTexts:
rectSysTotalOutputPower.setDescription('Total output current of all system rectifiers.')
rect_sys_total_capacity_installed_amps = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 3), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysTotalCapacityInstalledAmps.setStatus('current')
if mibBuilder.loadTexts:
rectSysTotalCapacityInstalledAmps.setDescription('A rectifier output current multiplied by the number of rectifiers installed.')
rect_sys_total_capacity_installed_power = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 4), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysTotalCapacityInstalledPower.setStatus('current')
if mibBuilder.loadTexts:
rectSysTotalCapacityInstalledPower.setDescription('A rectifier output power multiplied by the number of rectifiers installed.')
rect_sys_average_rectifier_output_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 5), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysAverageRectifierOutputVoltage.setStatus('current')
if mibBuilder.loadTexts:
rectSysAverageRectifierOutputVoltage.setDescription('Average rectifier output voltage.')
rect_sys_average_rectifier_ac_input_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 6), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysAverageRectifierACInputVoltage.setStatus('current')
if mibBuilder.loadTexts:
rectSysAverageRectifierACInputVoltage.setDescription('Average rectifier input voltage.')
rect_sys_average_phase1_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 7), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysAveragePhase1Voltage.setStatus('current')
if mibBuilder.loadTexts:
rectSysAveragePhase1Voltage.setDescription('Average output voltage of rectifiers in Phase 1.')
rect_sys_average_phase2_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 8), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysAveragePhase2Voltage.setStatus('current')
if mibBuilder.loadTexts:
rectSysAveragePhase2Voltage.setDescription('Average output voltage of rectifiers in Phase 2.')
rect_sys_average_phase3_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 9), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysAveragePhase3Voltage.setStatus('current')
if mibBuilder.loadTexts:
rectSysAveragePhase3Voltage.setDescription('Average output voltage of rectifiers in Phase 3.')
rect_sys_system_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 10), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysSystemVoltage.setStatus('current')
if mibBuilder.loadTexts:
rectSysSystemVoltage.setDescription('System voltage.')
rect_sys_total_load_current = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 11), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysTotalLoadCurrent.setStatus('current')
if mibBuilder.loadTexts:
rectSysTotalLoadCurrent.setDescription('Total load current.')
rect_sys_battery_voltage = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 12), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysBatteryVoltage.setStatus('current')
if mibBuilder.loadTexts:
rectSysBatteryVoltage.setDescription('Battery voltage.')
rect_sys_battery_current = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 13), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysBatteryCurrent.setStatus('current')
if mibBuilder.loadTexts:
rectSysBatteryCurrent.setDescription('Battery current.')
rect_sys_battery_temperature = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 14), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysBatteryTemperature.setStatus('current')
if mibBuilder.loadTexts:
rectSysBatteryTemperature.setDescription('Battery temperature.')
rect_sys_system_number = mib_scalar((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 15), scaled_number()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
rectSysSystemNumber.setStatus('current')
if mibBuilder.loadTexts:
rectSysSystemNumber.setDescription('Snmp ID# assigned to the system.')
conformance = mib_identifier((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100))
compliances = mib_identifier((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100, 1))
compliance = module_compliance((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100, 1, 1)).setObjects(('ALPHA-RECTIFIER-SYS-MIB', 'rectifierGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
compliance = compliance.setStatus('current')
if mibBuilder.loadTexts:
compliance.setDescription('The compliance statement for systems supporting the alpha MIB.')
rectifier_groups = mib_identifier((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100, 2))
rectifier_group = object_group((1, 3, 6, 1, 4, 1, 7309, 5, 3, 1, 100, 2, 1)).setObjects(('ALPHA-RECTIFIER-SYS-MIB', 'rectSysTotalOutputCurrent'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysTotalOutputPower'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysTotalCapacityInstalledAmps'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysTotalCapacityInstalledPower'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysAverageRectifierOutputVoltage'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysAverageRectifierACInputVoltage'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysAveragePhase1Voltage'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysAveragePhase2Voltage'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysAveragePhase3Voltage'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysSystemVoltage'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysTotalLoadCurrent'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysBatteryVoltage'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysBatteryCurrent'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysBatteryTemperature'), ('ALPHA-RECTIFIER-SYS-MIB', 'rectSysSystemNumber'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
rectifier_group = rectifierGroup.setStatus('current')
if mibBuilder.loadTexts:
rectifierGroup.setDescription('Alpha Rectifier System data list group.')
mibBuilder.exportSymbols('ALPHA-RECTIFIER-SYS-MIB', rectSysTotalCapacityInstalledPower=rectSysTotalCapacityInstalledPower, rectifierGroups=rectifierGroups, rectifierSystem=rectifierSystem, rectSysTotalCapacityInstalledAmps=rectSysTotalCapacityInstalledAmps, rectSysTotalOutputCurrent=rectSysTotalOutputCurrent, rectSysAveragePhase2Voltage=rectSysAveragePhase2Voltage, rectSysTotalLoadCurrent=rectSysTotalLoadCurrent, rectSysTotalOutputPower=rectSysTotalOutputPower, rectSysSystemVoltage=rectSysSystemVoltage, compliance=compliance, rectSysAveragePhase3Voltage=rectSysAveragePhase3Voltage, conformance=conformance, compliances=compliances, rectSysBatteryCurrent=rectSysBatteryCurrent, rectSysAverageRectifierOutputVoltage=rectSysAverageRectifierOutputVoltage, rectSysSystemNumber=rectSysSystemNumber, PYSNMP_MODULE_ID=rectifierSystem, rectSysAverageRectifierACInputVoltage=rectSysAverageRectifierACInputVoltage, rectSysBatteryTemperature=rectSysBatteryTemperature, rectSysAveragePhase1Voltage=rectSysAveragePhase1Voltage, rectSysBatteryVoltage=rectSysBatteryVoltage, rectifierGroup=rectifierGroup) |
# O(n) time | O(1) space
def twoNumberSum(array, targetSum):
# Write your code here.
result = []
for num in array:
offset = targetSum - num
if offset in array:
result = [offset, num]
return result
# def twoNumberSum(array, targetSum):
# for i in range(len(array)-1):
# for k in range(i+1, len(array)):
# if array[i] + array[k] == targetSum:
# return [array[i], array[k]]
# else:
# return []
| def two_number_sum(array, targetSum):
result = []
for num in array:
offset = targetSum - num
if offset in array:
result = [offset, num]
return result |
class MockMail:
def __init__(self):
self.inbox = []
def send_mail(self, recipient_list, **kwargs):
for recipient in recipient_list:
self.inbox.append({
'recipient': recipient,
'subject': kwargs['subject'],
'message': kwargs['message']
})
def clear(self):
self.inbox[:] = []
| class Mockmail:
def __init__(self):
self.inbox = []
def send_mail(self, recipient_list, **kwargs):
for recipient in recipient_list:
self.inbox.append({'recipient': recipient, 'subject': kwargs['subject'], 'message': kwargs['message']})
def clear(self):
self.inbox[:] = [] |
for x in range(0, 11):
for c in range(0, 11):
print(x, 'x', c, '= {}'.format(x * c))
print('\t')
| for x in range(0, 11):
for c in range(0, 11):
print(x, 'x', c, '= {}'.format(x * c))
print('\t') |
# Main network and testnet3 definitions
params = {
'argentum_main': {
'pubkey_address': 23,
'script_address': 5,
'genesis_hash': '88c667bc63167685e4e4da058fffdfe8e007e5abffd6855de52ad59df7bb0bb2'
},
'argentum_test': {
'pubkey_address': 111,
'script_address': 196,
'genesis_hash': 'f5ae71e26c74beacc88382716aced69cddf3dffff24f384e1808905e0188f68f'
}
}
| params = {'argentum_main': {'pubkey_address': 23, 'script_address': 5, 'genesis_hash': '88c667bc63167685e4e4da058fffdfe8e007e5abffd6855de52ad59df7bb0bb2'}, 'argentum_test': {'pubkey_address': 111, 'script_address': 196, 'genesis_hash': 'f5ae71e26c74beacc88382716aced69cddf3dffff24f384e1808905e0188f68f'}} |
def add_time(start, duration, day=None):
hour, minutes = start.split(':')
minutes, am_pm = minutes.split()
add_hour, add_min = duration.split(":")
hour = int(hour)
minutes = int(minutes)
add_hour = int(add_hour)
add_min = int(add_min)
n = add_hour // 24
rem_hour = add_hour % 24
new_min = minutes + add_min
extra_hour = new_min // 60
new_min = new_min % 60
new_min = str(new_min).rjust(2, '0')
rem_hour = rem_hour + extra_hour
extra_n = rem_hour // 24
rem_hour = rem_hour % 24
n = n + extra_n
new_hour = hour + rem_hour
changes = new_hour // 12
final_hour = new_hour % 12
if changes == 0:
am_pm = am_pm
elif changes == 1:
if am_pm == 'AM':
am_pm = 'PM'
else:
am_pm = 'AM'
n = n + 1
elif changes == 2:
am_pm = am_pm
n = n + 1
if day is not None:
day = day.lower()
weekdays = {'monday': 0, 'tuesday': 1, "wednesday": 2, 'thursday': 3, 'friday': 4, 'saturday': 5, 'sunday': 6}
day = weekdays[day] + n
day = day % 7
day = list(weekdays.keys())[list(weekdays.values()).index(day)]
day = day.capitalize()
if final_hour == 0:
final_hour = 12
if not n and day is None:
return f"{final_hour}:{new_min} {am_pm}"
if n and day is None:
if n == 1:
return f"{final_hour}:{new_min} {am_pm} (next day)"
else:
return f"{final_hour}:{new_min} {am_pm} ({n} days later)"
if not n and day:
return f"{final_hour}:{new_min} {am_pm}, {day}"
if n and day:
if n == 1:
return f"{final_hour}:{new_min} {am_pm}, {day} (next day)"
else:
return f"{final_hour}:{new_min} {am_pm}, {day} ({n} days later)"
| def add_time(start, duration, day=None):
(hour, minutes) = start.split(':')
(minutes, am_pm) = minutes.split()
(add_hour, add_min) = duration.split(':')
hour = int(hour)
minutes = int(minutes)
add_hour = int(add_hour)
add_min = int(add_min)
n = add_hour // 24
rem_hour = add_hour % 24
new_min = minutes + add_min
extra_hour = new_min // 60
new_min = new_min % 60
new_min = str(new_min).rjust(2, '0')
rem_hour = rem_hour + extra_hour
extra_n = rem_hour // 24
rem_hour = rem_hour % 24
n = n + extra_n
new_hour = hour + rem_hour
changes = new_hour // 12
final_hour = new_hour % 12
if changes == 0:
am_pm = am_pm
elif changes == 1:
if am_pm == 'AM':
am_pm = 'PM'
else:
am_pm = 'AM'
n = n + 1
elif changes == 2:
am_pm = am_pm
n = n + 1
if day is not None:
day = day.lower()
weekdays = {'monday': 0, 'tuesday': 1, 'wednesday': 2, 'thursday': 3, 'friday': 4, 'saturday': 5, 'sunday': 6}
day = weekdays[day] + n
day = day % 7
day = list(weekdays.keys())[list(weekdays.values()).index(day)]
day = day.capitalize()
if final_hour == 0:
final_hour = 12
if not n and day is None:
return f'{final_hour}:{new_min} {am_pm}'
if n and day is None:
if n == 1:
return f'{final_hour}:{new_min} {am_pm} (next day)'
else:
return f'{final_hour}:{new_min} {am_pm} ({n} days later)'
if not n and day:
return f'{final_hour}:{new_min} {am_pm}, {day}'
if n and day:
if n == 1:
return f'{final_hour}:{new_min} {am_pm}, {day} (next day)'
else:
return f'{final_hour}:{new_min} {am_pm}, {day} ({n} days later)' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.