content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
# MODFLOW 6 version file automatically created using...make_release.py # created on...February 18, 2021 08:23:34 major = 6 minor = 2 micro = 1 __version__ = '{:d}.{:d}.{:d}'.format(major, minor, micro)
major = 6 minor = 2 micro = 1 __version__ = '{:d}.{:d}.{:d}'.format(major, minor, micro)
def getFuel(data): return [int(s) for s in data.split("\n")] def fuelbois(n): return (n // 3) - 2 def part1(data): return sum(map(fuelbois, getFuel(data))) def part2(data): return sum(map(doTheThing, getFuel(data))) def doTheThing(n): s = fuelbois(n) if s <= 0: return 0 return s + doTheThing(s)
def get_fuel(data): return [int(s) for s in data.split('\n')] def fuelbois(n): return n // 3 - 2 def part1(data): return sum(map(fuelbois, get_fuel(data))) def part2(data): return sum(map(doTheThing, get_fuel(data))) def do_the_thing(n): s = fuelbois(n) if s <= 0: return 0 return s + do_the_thing(s)
class Sidelink: def __init__(self, name, link, subtitle, http=False, css_classes='sidelink', onclick=''): self.name = name self.link = link self.subtitle = subtitle self.http = http self.css_classes = css_classes self.onclick = onclick class Sidebar: def __init__(self, name, link, http=False): self.name = name self.link = link self.http = http
class Sidelink: def __init__(self, name, link, subtitle, http=False, css_classes='sidelink', onclick=''): self.name = name self.link = link self.subtitle = subtitle self.http = http self.css_classes = css_classes self.onclick = onclick class Sidebar: def __init__(self, name, link, http=False): self.name = name self.link = link self.http = http
class InvalidNoteException(Exception): pass class InvalidModeException(Exception): pass class InvalidChord(Exception): pass
class Invalidnoteexception(Exception): pass class Invalidmodeexception(Exception): pass class Invalidchord(Exception): pass
# Middlewares # https://docs.djangoproject.com/en/3.0/topics/http/middleware/ MIDDLEWARE = [ 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] # Password validation # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] AUTH_USER_MODEL = 'users.User' # Custom User Model
middleware = ['whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] auth_password_validators = [{'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'}, {'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator'}, {'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator'}, {'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'}] auth_user_model = 'users.User'
# Copyright (c) 2016 EMC Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. class StoropsException(Exception): message = 'Storops Error.' class VNXException(StoropsException): message = "VNX Error." class VNXStorageGroupError(VNXException): pass class VNXAttachAluError(VNXException): pass class VNXAluAlreadyAttachedError(VNXAttachAluError): message = ( 'LUN already exists in the specified storage group', 'Requested LUN has already been added to this Storage Group') class VNXDetachAluError(VNXStorageGroupError): pass class VNXDetachAluNotFoundError(VNXDetachAluError): message = 'No such Host LUN in this Storage Group' class VNXCreateStorageGroupError(VNXStorageGroupError): pass class VNXStorageGroupNameInUseError(VNXCreateStorageGroupError): message = 'Storage Group name already in use' class VNXNoHluAvailableError(VNXStorageGroupError): pass class VNXMigrationError(VNXException): pass class VNXLunNotMigratingError(VNXException): pass class VNXLunSyncCompletedError(VNXMigrationError): error_code = 0x714a8021 class VNXTargetNotReadyError(VNXMigrationError): message = 'The destination LUN is not available for migration' class VNXSnapError(VNXException): pass class VNXDeleteAttachedSnapError(VNXSnapError): error_code = 0x716d8003 class VNXCreateSnapError(VNXException): message = 'Cannot create the snapshot.' class VNXAttachSnapError(VNXSnapError): message = 'Cannot attach the snapshot.' class VNXDetachSnapError(VNXSnapError): message = 'Cannot detach the snapshot.' class VNXSnapAlreadyMountedError(VNXSnapError): error_code = 0x716d8055 class VNXSnapNameInUseError(VNXSnapError): error_code = 0x716d8005 class VNXSnapNotExistsError(VNXSnapError): message = 'The specified snapshot does not exist.' class VNXLunError(VNXException): pass class VNXCreateLunError(VNXLunError): pass class VNXLunNameInUseError(VNXCreateLunError): error_code = 0x712d8d04 class VNXLunExtendError(VNXLunError): pass class VNXLunExpandSizeError(VNXLunExtendError): error_code = 0x712d8e04 class VNXLunPreparingError(VNXLunError): error_code = 0x712d8e0e class VNXLunNotFoundError(VNXLunError): message = 'Could not retrieve the specified (pool lun).' class VNXDeleteLunError(VNXLunError): pass class VNXLunUsedByFeatureError(VNXLunError): pass class VNXCompressionError(VNXLunError): pass class VNXCompressionAlreadyEnabledError(VNXCompressionError): message = 'Compression on the specified LUN is already turned on.' class VNXConsistencyGroupError(VNXException): pass class VNXCreateConsistencyGroupError(VNXConsistencyGroupError): pass class VNXConsistencyGroupNameInUseError(VNXCreateConsistencyGroupError): error_code = 0x716d8021 class VNXConsistencyGroupNotFoundError(VNXConsistencyGroupError): message = 'Cannot find the consistency group' class VNXPingNodeError(VNXException): pass class VNXMirrorException(VNXException): pass class VNXMirrorNameInUseError(VNXMirrorException): message = 'Mirror name already in use' class VNXMirrorPromotePrimaryError(VNXMirrorException): message = 'Cannot remove or promote a primary image.' class VNXMirrorNotFoundError(VNXMirrorException): message = 'Mirror not found' class VNXMirrorGroupNameInUseError(VNXMirrorException): message = 'Mirror Group name already in use' class VNXMirrorGroupNotFoundError(VNXMirrorException): message = 'Unable to locate the specified group' class VNXMirrorGroupAlreadyMemberError(VNXMirrorException): message = 'The mirror is already a member of a group' class VNXMirrorGroupMirrorNotMemberError(VNXMirrorException): message = 'The specified mirror is not a member of the group' class VNXMirrorGroupAlreadyPromotedError(VNXMirrorException): message = 'The Consistency Group has no secondary images to promote'
class Storopsexception(Exception): message = 'Storops Error.' class Vnxexception(StoropsException): message = 'VNX Error.' class Vnxstoragegrouperror(VNXException): pass class Vnxattachaluerror(VNXException): pass class Vnxalualreadyattachederror(VNXAttachAluError): message = ('LUN already exists in the specified storage group', 'Requested LUN has already been added to this Storage Group') class Vnxdetachaluerror(VNXStorageGroupError): pass class Vnxdetachalunotfounderror(VNXDetachAluError): message = 'No such Host LUN in this Storage Group' class Vnxcreatestoragegrouperror(VNXStorageGroupError): pass class Vnxstoragegroupnameinuseerror(VNXCreateStorageGroupError): message = 'Storage Group name already in use' class Vnxnohluavailableerror(VNXStorageGroupError): pass class Vnxmigrationerror(VNXException): pass class Vnxlunnotmigratingerror(VNXException): pass class Vnxlunsynccompletederror(VNXMigrationError): error_code = 1900707873 class Vnxtargetnotreadyerror(VNXMigrationError): message = 'The destination LUN is not available for migration' class Vnxsnaperror(VNXException): pass class Vnxdeleteattachedsnaperror(VNXSnapError): error_code = 1903001603 class Vnxcreatesnaperror(VNXException): message = 'Cannot create the snapshot.' class Vnxattachsnaperror(VNXSnapError): message = 'Cannot attach the snapshot.' class Vnxdetachsnaperror(VNXSnapError): message = 'Cannot detach the snapshot.' class Vnxsnapalreadymountederror(VNXSnapError): error_code = 1903001685 class Vnxsnapnameinuseerror(VNXSnapError): error_code = 1903001605 class Vnxsnapnotexistserror(VNXSnapError): message = 'The specified snapshot does not exist.' class Vnxlunerror(VNXException): pass class Vnxcreatelunerror(VNXLunError): pass class Vnxlunnameinuseerror(VNXCreateLunError): error_code = 1898810628 class Vnxlunextenderror(VNXLunError): pass class Vnxlunexpandsizeerror(VNXLunExtendError): error_code = 1898810884 class Vnxlunpreparingerror(VNXLunError): error_code = 1898810894 class Vnxlunnotfounderror(VNXLunError): message = 'Could not retrieve the specified (pool lun).' class Vnxdeletelunerror(VNXLunError): pass class Vnxlunusedbyfeatureerror(VNXLunError): pass class Vnxcompressionerror(VNXLunError): pass class Vnxcompressionalreadyenablederror(VNXCompressionError): message = 'Compression on the specified LUN is already turned on.' class Vnxconsistencygrouperror(VNXException): pass class Vnxcreateconsistencygrouperror(VNXConsistencyGroupError): pass class Vnxconsistencygroupnameinuseerror(VNXCreateConsistencyGroupError): error_code = 1903001633 class Vnxconsistencygroupnotfounderror(VNXConsistencyGroupError): message = 'Cannot find the consistency group' class Vnxpingnodeerror(VNXException): pass class Vnxmirrorexception(VNXException): pass class Vnxmirrornameinuseerror(VNXMirrorException): message = 'Mirror name already in use' class Vnxmirrorpromoteprimaryerror(VNXMirrorException): message = 'Cannot remove or promote a primary image.' class Vnxmirrornotfounderror(VNXMirrorException): message = 'Mirror not found' class Vnxmirrorgroupnameinuseerror(VNXMirrorException): message = 'Mirror Group name already in use' class Vnxmirrorgroupnotfounderror(VNXMirrorException): message = 'Unable to locate the specified group' class Vnxmirrorgroupalreadymembererror(VNXMirrorException): message = 'The mirror is already a member of a group' class Vnxmirrorgroupmirrornotmembererror(VNXMirrorException): message = 'The specified mirror is not a member of the group' class Vnxmirrorgroupalreadypromotederror(VNXMirrorException): message = 'The Consistency Group has no secondary images to promote'
#------------------------------------------------------------------------------- # Name: Signals types (voltage and current) # Author: d.Fathi # Created: 31/03/2020 # Modified: 19/09/2021 # Copyright: (c) PyAMS 2020 # Licence: unlicense #------------------------------------------------------------------------------- voltage={'discipline':'electrical', 'nature':'potential', 'abstol': 1e-8, 'chgtol':1e-14, 'signalType':'voltage', 'unit':'V' } current={'discipline':'electrical', 'nature':'flow', 'abstol': 1e-8, 'chgtol':1e-14, 'signalType':'voltage', 'unit':'A' } electrical={ 'potential':voltage, 'flow':current }
voltage = {'discipline': 'electrical', 'nature': 'potential', 'abstol': 1e-08, 'chgtol': 1e-14, 'signalType': 'voltage', 'unit': 'V'} current = {'discipline': 'electrical', 'nature': 'flow', 'abstol': 1e-08, 'chgtol': 1e-14, 'signalType': 'voltage', 'unit': 'A'} electrical = {'potential': voltage, 'flow': current}
# Replaced with the current commit when building the wheels. __commit__ = "{{CLOUDTIK_COMMIT_SHA}}" __version__ = "0.9.0"
__commit__ = '{{CLOUDTIK_COMMIT_SHA}}' __version__ = '0.9.0'
def configure(conf): conf.env.ARCHITECTURE = 'mips' conf.env.VALID_ARCHITECTURES = ['mips'] conf.env.ARCH_FAMILY = 'mips' conf.env.ARCH_LP64 = False conf.env.append_unique('DEFINES', ['_MIPS'])
def configure(conf): conf.env.ARCHITECTURE = 'mips' conf.env.VALID_ARCHITECTURES = ['mips'] conf.env.ARCH_FAMILY = 'mips' conf.env.ARCH_LP64 = False conf.env.append_unique('DEFINES', ['_MIPS'])
s=[1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0] j=0 for i in range(len(s)): if s[i] > 1: j=j+1 print("%d, %d") % ( i, s[i]) print("count: %d") % (j)
s = [1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0] j = 0 for i in range(len(s)): if s[i] > 1: j = j + 1 print('%d, %d') % (i, s[i]) print('count: %d') % j
# encoding: utf-8 # module perfmon # from C:\Python27\lib\site-packages\win32\perfmon.pyd # by generator 1.147 # no doc # no imports # functions def CounterDefinition(*args, **kwargs): # real signature unknown pass def LoadPerfCounterTextStrings(*args, **kwargs): # real signature unknown pass def ObjectType(*args, **kwargs): # real signature unknown pass def PerfMonManager(*args, **kwargs): # real signature unknown pass def UnloadPerfCounterTextStrings(*args, **kwargs): # real signature unknown pass # no classes
def counter_definition(*args, **kwargs): pass def load_perf_counter_text_strings(*args, **kwargs): pass def object_type(*args, **kwargs): pass def perf_mon_manager(*args, **kwargs): pass def unload_perf_counter_text_strings(*args, **kwargs): pass
temperatura_celsus = 0 def convert_celsus(temperatura_celsus): celsus = ((temperatura_celsus - 32) / 1.8) return celsus print(convert_celsus(100))
temperatura_celsus = 0 def convert_celsus(temperatura_celsus): celsus = (temperatura_celsus - 32) / 1.8 return celsus print(convert_celsus(100))
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def hasCycle(self, head: Optional[ListNode]) -> bool: ## without using any set ## Floyd's Tortoise and Hare method ## https://www.youtube.com/watch?v=gBTe7lFR3vc slow, fast = head, head while fast and fast.next: slow = slow.next fast = fast.next.next ## If there is a cycle at some point in time ## slow and fast will point to the same node if slow == fast: return True return False ################################################## ## We will maintain a set of node val_pos = set() ## We will traverse through the linked list till ## either it ends or we detect a cycle while head: ## if the next node is already in the set then ## we have a loop if head.next in val_pos: return True ## Otherwise keep on adding the current node to ## the linked list else: val_pos.add(head) head = head.next ## Return false in case we have not found any loop return False
class Solution: def has_cycle(self, head: Optional[ListNode]) -> bool: (slow, fast) = (head, head) while fast and fast.next: slow = slow.next fast = fast.next.next if slow == fast: return True return False val_pos = set() while head: if head.next in val_pos: return True else: val_pos.add(head) head = head.next return False
#question 2 #generate the series #3 8 14 22 34 53 83 129 197 294 print("Enter the lenght of the series:") seriesLength =int(input()) s1,s2,s3 = 1,5,3 gen_series = [] for itr in range(1,seriesLength): gen_series.append(s3) s3 += s2 s2 += s1 s1 += itr result = (str(gen_series).replace(',',' '))[1:-1] #print the series print(result)
print('Enter the lenght of the series:') series_length = int(input()) (s1, s2, s3) = (1, 5, 3) gen_series = [] for itr in range(1, seriesLength): gen_series.append(s3) s3 += s2 s2 += s1 s1 += itr result = str(gen_series).replace(',', ' ')[1:-1] print(result)
my_name = "Juan Manuel Young Hoyos" print(my_name[0]) # * Both of them are equal print(my_name[0:3]) print(my_name[:3]) # * Both of them are equal print(my_name[1:len(my_name)]) print(my_name[1:]) # * Slicing with steps print(my_name[1:len(my_name):2]) # * It brings me everything print(my_name[::])
my_name = 'Juan Manuel Young Hoyos' print(my_name[0]) print(my_name[0:3]) print(my_name[:3]) print(my_name[1:len(my_name)]) print(my_name[1:]) print(my_name[1:len(my_name):2]) print(my_name[:])
settlement = "ISHUV" street1="REHOV1" street2="REHOV2" road1="KVISH1" road2="KVISH2" junction_name = "SHEM_ZOMET" settlement_sign = "SEMEL_YISHUV" street_sign = "SEMEL_RECHOV" street_name = "SHEM_RECHOV" table_number = "MS_TAVLA" code = "KOD" name = "NAME" sign = "SEMEL" urban_intersection="ZOMET_IRONI" non_urban_intersection="ZOMET_LO_IRONI" accident_year="SHNAT_TEUNA" accident_month="HODESH_TEUNA" accident_day="YOM_BE_HODESH" accident_hour = "SHAA" x_coordinate="X" y_coordinate="Y" accident_type="SUG_TEUNA" # part of the desciption accident_severity="HUMRAT_TEUNA" # part of the desciption igun="STATUS_IGUN" # part of the desciption id="PK_TEUNA_FIKT" home="BAYIT" road_type="SUG_DEREH" # part of the desciption day_type="SUG_YOM" # part of the desciption road_shape="ZURAT_DEREH" # part of the desciption unit="YEHIDA" # part of the desciption one_lane = "HAD_MASLUL" multi_lane = "RAV_MASLUL" speed_limit = "MEHIRUT_MUTERET" intactness = "TKINUT" road_width = "ROHAV" road_sign = "SIMUN_TIMRUR" road_light = "TEURA" road_control = "BAKARA" weather = "MEZEG_AVIR" road_surface = "PNE_KVISH" road_object = "SUG_EZEM" object_distance = "MERHAK_EZEM" didnt_cross = "LO_HAZA" cross_mode = "OFEN_HAZIYA" cross_location = "MEKOM_HAZIYA" cross_direction = "KIVUN_HAZIYA" road1="KVISH1" road2="KVISH2" km="KM" yishuv_symbol = "SEMEL_YISHUV" geo_area = "THUM_GEOGRAFI" day_night = "YOM_LAYLA" day_in_week = "YOM_BASHAVUA" traffic_light = "RAMZOR" region = "MAHOZ" district = "NAFA" natural_area = "EZOR_TIVI" minizipali_status = "MAAMAD_MINIZIPALI" yishuv_shape = "ZURAT_ISHUV" # Involved csv fields involved_type = "SUG_MEORAV" license_acquiring_date = "SHNAT_HOZAA" age_group = "KVUZA_GIL" sex = "MIN" car_type = "SUG_REHEV_NASA_LMS" safety_measures = "EMZAE_BETIHUT" home_city = "SEMEL_YISHUV_MEGURIM" injury_severity = "HUMRAT_PGIA" injured_type = "SUG_NIFGA_LMS" injured_position = "PEULAT_NIFGA_LMS" population_type = "KVUTZAT_OHLUSIYA_LMS" home_district = "MAHOZ_MEGURIM" home_nafa = "NAFA_MEGURIM" home_area = "EZOR_TIVI_MEGURIM" home_municipal_status = "MAAMAD_MINIZIPALI_MEGURIM" home_residence_type = "ZURAT_ISHUV_MEGURIM" file_type = "SUG_TIK" hospital_time = "PAZUAUSHPAZ_LMS" medical_type = "ISS_LMS" release_dest = "YAADSHIHRUR_PUF_LMS" safety_measures_use = "SHIMUSHBEAVIZAREYBETIHUT_LMS" late_deceased = "PTIRAMEUHERET_LMS" # Vehicles data engine_volume = "NEFAH" manufacturing_year = "SHNAT_YITZUR" driving_directions = "KIVUNE_NESIA" vehicle_status = "MATZAV_REHEV" vehicle_attribution = "SHIYUH_REHEV_LMS" vehicle_type = "SUG_REHEV_LMS" seats = "MEKOMOT_YESHIVA_LMS" total_weight = "MISHKAL_KOLEL_LMS"
settlement = 'ISHUV' street1 = 'REHOV1' street2 = 'REHOV2' road1 = 'KVISH1' road2 = 'KVISH2' junction_name = 'SHEM_ZOMET' settlement_sign = 'SEMEL_YISHUV' street_sign = 'SEMEL_RECHOV' street_name = 'SHEM_RECHOV' table_number = 'MS_TAVLA' code = 'KOD' name = 'NAME' sign = 'SEMEL' urban_intersection = 'ZOMET_IRONI' non_urban_intersection = 'ZOMET_LO_IRONI' accident_year = 'SHNAT_TEUNA' accident_month = 'HODESH_TEUNA' accident_day = 'YOM_BE_HODESH' accident_hour = 'SHAA' x_coordinate = 'X' y_coordinate = 'Y' accident_type = 'SUG_TEUNA' accident_severity = 'HUMRAT_TEUNA' igun = 'STATUS_IGUN' id = 'PK_TEUNA_FIKT' home = 'BAYIT' road_type = 'SUG_DEREH' day_type = 'SUG_YOM' road_shape = 'ZURAT_DEREH' unit = 'YEHIDA' one_lane = 'HAD_MASLUL' multi_lane = 'RAV_MASLUL' speed_limit = 'MEHIRUT_MUTERET' intactness = 'TKINUT' road_width = 'ROHAV' road_sign = 'SIMUN_TIMRUR' road_light = 'TEURA' road_control = 'BAKARA' weather = 'MEZEG_AVIR' road_surface = 'PNE_KVISH' road_object = 'SUG_EZEM' object_distance = 'MERHAK_EZEM' didnt_cross = 'LO_HAZA' cross_mode = 'OFEN_HAZIYA' cross_location = 'MEKOM_HAZIYA' cross_direction = 'KIVUN_HAZIYA' road1 = 'KVISH1' road2 = 'KVISH2' km = 'KM' yishuv_symbol = 'SEMEL_YISHUV' geo_area = 'THUM_GEOGRAFI' day_night = 'YOM_LAYLA' day_in_week = 'YOM_BASHAVUA' traffic_light = 'RAMZOR' region = 'MAHOZ' district = 'NAFA' natural_area = 'EZOR_TIVI' minizipali_status = 'MAAMAD_MINIZIPALI' yishuv_shape = 'ZURAT_ISHUV' involved_type = 'SUG_MEORAV' license_acquiring_date = 'SHNAT_HOZAA' age_group = 'KVUZA_GIL' sex = 'MIN' car_type = 'SUG_REHEV_NASA_LMS' safety_measures = 'EMZAE_BETIHUT' home_city = 'SEMEL_YISHUV_MEGURIM' injury_severity = 'HUMRAT_PGIA' injured_type = 'SUG_NIFGA_LMS' injured_position = 'PEULAT_NIFGA_LMS' population_type = 'KVUTZAT_OHLUSIYA_LMS' home_district = 'MAHOZ_MEGURIM' home_nafa = 'NAFA_MEGURIM' home_area = 'EZOR_TIVI_MEGURIM' home_municipal_status = 'MAAMAD_MINIZIPALI_MEGURIM' home_residence_type = 'ZURAT_ISHUV_MEGURIM' file_type = 'SUG_TIK' hospital_time = 'PAZUAUSHPAZ_LMS' medical_type = 'ISS_LMS' release_dest = 'YAADSHIHRUR_PUF_LMS' safety_measures_use = 'SHIMUSHBEAVIZAREYBETIHUT_LMS' late_deceased = 'PTIRAMEUHERET_LMS' engine_volume = 'NEFAH' manufacturing_year = 'SHNAT_YITZUR' driving_directions = 'KIVUNE_NESIA' vehicle_status = 'MATZAV_REHEV' vehicle_attribution = 'SHIYUH_REHEV_LMS' vehicle_type = 'SUG_REHEV_LMS' seats = 'MEKOMOT_YESHIVA_LMS' total_weight = 'MISHKAL_KOLEL_LMS'
''' Class that maps to the JSON TokenInfo ''' class MTTokenInfo(): v = None code = None code_desc = None token_id = None timestamp_sec = None timestamp_iso = None hostname = None is_dev_host = None action = None ip = None def __init__(self, v: str, code: int, codeDesc: str, tokID: str, timestampSec: int, timestampISO: str, hostname: str, isDevHost: bool, action: str, ip: str) -> None: super().__init__() self.v = v self.code = code self.code_desc = codeDesc self.token_id = tokID self.timestamp_sec = timestampSec self.timestamp_iso = timestampISO self.hostname = hostname self.is_dev_host = isDevHost self.action = action self.ip = ip
""" Class that maps to the JSON TokenInfo """ class Mttokeninfo: v = None code = None code_desc = None token_id = None timestamp_sec = None timestamp_iso = None hostname = None is_dev_host = None action = None ip = None def __init__(self, v: str, code: int, codeDesc: str, tokID: str, timestampSec: int, timestampISO: str, hostname: str, isDevHost: bool, action: str, ip: str) -> None: super().__init__() self.v = v self.code = code self.code_desc = codeDesc self.token_id = tokID self.timestamp_sec = timestampSec self.timestamp_iso = timestampISO self.hostname = hostname self.is_dev_host = isDevHost self.action = action self.ip = ip
class Solution: def twoSum(self, numbers: List[int], target: int) -> List[int]: # O(N) for idx, t in enumerate(numbers): targ = target - t # O(logN) left, right = 0, len(numbers) - 1 ans = [] while left <= right: mid = left + (right - left) // 2 if numbers[mid] < targ: left = mid + 1 elif numbers[mid] > targ: right = mid - 1 else: if mid != idx: ans.append(idx + 1) ans.append(mid + 1) break else: left = mid + 1 if ans: break return ans
class Solution: def two_sum(self, numbers: List[int], target: int) -> List[int]: for (idx, t) in enumerate(numbers): targ = target - t (left, right) = (0, len(numbers) - 1) ans = [] while left <= right: mid = left + (right - left) // 2 if numbers[mid] < targ: left = mid + 1 elif numbers[mid] > targ: right = mid - 1 elif mid != idx: ans.append(idx + 1) ans.append(mid + 1) break else: left = mid + 1 if ans: break return ans
class Sorter: def __init__(self, group): self.group = group self.found = False def __call__(self, x): if x in self.group: self.found = True return (0, x) return (1, x)
class Sorter: def __init__(self, group): self.group = group self.found = False def __call__(self, x): if x in self.group: self.found = True return (0, x) return (1, x)
## Exceptions __all__ = ['PyDSTool_Error', 'PyDSTool_BoundsError', 'PyDSTool_KeyError', 'PyDSTool_UncertainValueError', 'PyDSTool_TypeError', 'PyDSTool_ExistError', 'PyDSTool_AttributeError', 'PyDSTool_ValueError', 'PyDSTool_UndefinedError', 'PyDSTool_InitError', 'PyDSTool_ClearError', 'PyDSTool_ContError'] class PyDSTool_Error(Exception): def __init__(self, value=None): self.value = value self.code = None def __str__(self): return repr(self.value) def __repr__(self): return repr(self.value) class PyDSTool_UncertainValueError(PyDSTool_Error): def __init__(self, value, varval=None): if varval is None: valstr = '' else: valstr = ' at variable = '+str(varval) self.varval = varval PyDSTool_Error.__init__(self, value+valstr) class PyDSTool_BoundsError(PyDSTool_Error): pass class PyDSTool_KeyError(PyDSTool_Error): pass class PyDSTool_ValueError(PyDSTool_Error): pass class PyDSTool_TypeError(PyDSTool_Error): pass class PyDSTool_ExistError(PyDSTool_Error): pass class PyDSTool_UndefinedError(PyDSTool_Error): pass class PyDSTool_AttributeError(PyDSTool_Error): pass class PyDSTool_InitError(PyDSTool_Error): pass class PyDSTool_ClearError(PyDSTool_Error): pass class PyDSTool_ContError(PyDSTool_Error): pass
__all__ = ['PyDSTool_Error', 'PyDSTool_BoundsError', 'PyDSTool_KeyError', 'PyDSTool_UncertainValueError', 'PyDSTool_TypeError', 'PyDSTool_ExistError', 'PyDSTool_AttributeError', 'PyDSTool_ValueError', 'PyDSTool_UndefinedError', 'PyDSTool_InitError', 'PyDSTool_ClearError', 'PyDSTool_ContError'] class Pydstool_Error(Exception): def __init__(self, value=None): self.value = value self.code = None def __str__(self): return repr(self.value) def __repr__(self): return repr(self.value) class Pydstool_Uncertainvalueerror(PyDSTool_Error): def __init__(self, value, varval=None): if varval is None: valstr = '' else: valstr = ' at variable = ' + str(varval) self.varval = varval PyDSTool_Error.__init__(self, value + valstr) class Pydstool_Boundserror(PyDSTool_Error): pass class Pydstool_Keyerror(PyDSTool_Error): pass class Pydstool_Valueerror(PyDSTool_Error): pass class Pydstool_Typeerror(PyDSTool_Error): pass class Pydstool_Existerror(PyDSTool_Error): pass class Pydstool_Undefinederror(PyDSTool_Error): pass class Pydstool_Attributeerror(PyDSTool_Error): pass class Pydstool_Initerror(PyDSTool_Error): pass class Pydstool_Clearerror(PyDSTool_Error): pass class Pydstool_Conterror(PyDSTool_Error): pass
def modpower(x,y,mod): ans = 1 x = x % mod while y: if ((y & 1) == 1) : ans = (ans * x) % mod y = y >> 1 x = (x * x) % mod return ans T=int(input()) for tt in range(1,T+1): N,K=[int(x) for x in input().split()] S=input() copyS=list(S) total=0 MOD=10**9 +7 middle=(N+1)//2 for i in range(0,middle): available=min(ord(copyS[i])-ord('a'),K) total+= (available*modpower(K,middle-i-1,MOD))%MOD copyS[N-i-1]=copyS[i] x='' for i in copyS: x=x+i if x<S: total+=1 total%=MOD print("Case #{}:".format(tt),total%MOD)
def modpower(x, y, mod): ans = 1 x = x % mod while y: if y & 1 == 1: ans = ans * x % mod y = y >> 1 x = x * x % mod return ans t = int(input()) for tt in range(1, T + 1): (n, k) = [int(x) for x in input().split()] s = input() copy_s = list(S) total = 0 mod = 10 ** 9 + 7 middle = (N + 1) // 2 for i in range(0, middle): available = min(ord(copyS[i]) - ord('a'), K) total += available * modpower(K, middle - i - 1, MOD) % MOD copyS[N - i - 1] = copyS[i] x = '' for i in copyS: x = x + i if x < S: total += 1 total %= MOD print('Case #{}:'.format(tt), total % MOD)
#!/usr/bin/python3 ############## # Load input # ############## rules = dict() with open("input.txt", "r") as f: initial_state = f.readline().strip().split(" ")[2] f.readline() for line in f.readlines(): rules[line.split(" => ")[0]] = line.strip().split(" => ")[1] ############## # Solution 1 # ############## current_state = "...." + initial_state + "...." # Pad out non-plants on either end for step in range(20): new_state = "" for idx in range(len(current_state)-4): # Iterate as far as possible new_state += rules.get(current_state[idx:idx+5], '.') current_state = "...." + new_state + "...." # Pad out non-plants on either end # Count padding to get back to the original plant numbers offset = int((len(current_state) - len(initial_state))/2) answer = sum([idx-offset for idx, plant in enumerate(current_state) if plant=="#"]) print(f"Solution to part 1 is {answer}") ############## # Solution 2 # ############## # Find a pattern old_answer = 0 current_state = "...." + initial_state + "...." # Pad out non-plants on either end for step in range(1, 110): new_state = "" for idx in range(len(current_state)-4): # Iterate as far as possible new_state += rules.get(current_state[idx:idx+5], '.') current_state = "...." + new_state + "...." # Pad out non-plants on either end # Count padding to get back to the original plant numbers offset = int((len(current_state) - len(initial_state))/2) answer = sum([idx-offset for idx, plant in enumerate(current_state) if plant=="#"]) # Compare to the previous step #print(step, answer, answer - old_answer) old_answer = answer # On the 100 iterations it reaches a stable state, so no need to iterate 50 billion times: num_steps = 50000000000 answer = 883 + num_steps * 51 print(f"Solution to part 2 is {answer}")
rules = dict() with open('input.txt', 'r') as f: initial_state = f.readline().strip().split(' ')[2] f.readline() for line in f.readlines(): rules[line.split(' => ')[0]] = line.strip().split(' => ')[1] current_state = '....' + initial_state + '....' for step in range(20): new_state = '' for idx in range(len(current_state) - 4): new_state += rules.get(current_state[idx:idx + 5], '.') current_state = '....' + new_state + '....' offset = int((len(current_state) - len(initial_state)) / 2) answer = sum([idx - offset for (idx, plant) in enumerate(current_state) if plant == '#']) print(f'Solution to part 1 is {answer}') old_answer = 0 current_state = '....' + initial_state + '....' for step in range(1, 110): new_state = '' for idx in range(len(current_state) - 4): new_state += rules.get(current_state[idx:idx + 5], '.') current_state = '....' + new_state + '....' offset = int((len(current_state) - len(initial_state)) / 2) answer = sum([idx - offset for (idx, plant) in enumerate(current_state) if plant == '#']) old_answer = answer num_steps = 50000000000 answer = 883 + num_steps * 51 print(f'Solution to part 2 is {answer}')
a = int(input("Please enter the first number: ")) b = int(input("Please enter the second number: ")) count = 0 for i in range(a, b + 1): if i % 2 == 0: count += i print(count)
a = int(input('Please enter the first number: ')) b = int(input('Please enter the second number: ')) count = 0 for i in range(a, b + 1): if i % 2 == 0: count += i print(count)
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: domainbounds.py # # Tests: libsim - connecting to simulation and retrieving data from it. # mesh - 3D rectilinear mesh # # Programmer: Kathleen Biagas # Date: June 17, 2014 # # Modifications: # # ---------------------------------------------------------------------------- # Create our simulation object. sim = TestSimulation("domainbounds", "domainbounds.sim2") # Test that we can start and connect to the simulation. started, connected = TestSimStartAndConnect("domainbounds00", sim) # Perform our tests. if connected: # Make sure the metadata is right. TestSimMetaData("domainbounds01", sim.metadata()) AddPlot("Subset", "Domains") DrawPlots() v = GetView3D() v.viewNormal = (0.672727, 0.569817, 0.471961) v.viewUp = (-0.252634, 0.776445, -0.57733) SetView3D(v) Test("domainbounds02") DeleteAllPlots() AddPlot("Pseudocolor", "zonal") DrawPlots() Test("domainbounds03") DeleteAllPlots() # Close down the simulation. if started: sim.endsim() Exit()
sim = test_simulation('domainbounds', 'domainbounds.sim2') (started, connected) = test_sim_start_and_connect('domainbounds00', sim) if connected: test_sim_meta_data('domainbounds01', sim.metadata()) add_plot('Subset', 'Domains') draw_plots() v = get_view3_d() v.viewNormal = (0.672727, 0.569817, 0.471961) v.viewUp = (-0.252634, 0.776445, -0.57733) set_view3_d(v) test('domainbounds02') delete_all_plots() add_plot('Pseudocolor', 'zonal') draw_plots() test('domainbounds03') delete_all_plots() if started: sim.endsim() exit()
__author__ = 'Devon Evans dle4qw' def main(): greeting('hello') def greeting(msg): print(msg) if __name__=='__main__': main()
__author__ = 'Devon Evans dle4qw' def main(): greeting('hello') def greeting(msg): print(msg) if __name__ == '__main__': main()
## emails ## from_email = "" to_email = "" smtp = ""
from_email = '' to_email = '' smtp = ''
class Item: ''' Component defines entity as an item ''' def __init__(self, use_function=None, targeting=False, targeting_message=None, **kwargs): self.use_function = use_function self.targeting = targeting self.targeting_message = targeting_message self.function_kwargs = kwargs
class Item: """ Component defines entity as an item """ def __init__(self, use_function=None, targeting=False, targeting_message=None, **kwargs): self.use_function = use_function self.targeting = targeting self.targeting_message = targeting_message self.function_kwargs = kwargs
# # # "3 is not equal to 5". # Save the above proposition in ans1 using the # # == or != operator. # # ans1 = None # # # "21 is a number greater than 5*10." # Save the above proposition in ans2 using # # # or < operator. # # ans2 = None # # # "5/3 share is greater than or equal to 1". # Save the above proposition in ans3 using the # #>= or <= operator. # # ans3 = None # # Check the true and false by outputting the above three variables. You don't have to modify the code below. # print(ans1, ans2, ans3) # Let's put the proposition True into ans1 using the # Q1. = or != operator. ans1 = 1!=0 # Let's put the False proposition into ans2 using # Q2. > or < operator. ans2 = 2<1 # Let's put the proposition True into ans3 using the # Q3. >= or <= operator. ans3 = 2<=3 # Let's print out the above three variables and check whether they are True or False. print(ans1, ans2, ans3)
ans1 = 1 != 0 ans2 = 2 < 1 ans3 = 2 <= 3 print(ans1, ans2, ans3)
#Configuration details of user uname = "Guru HariHaraun" email = "[email protected]" district_id = 560 # The 506 is the district code for trichy. vaccine_type = "COVAXIN" # Either user COVISHIED or COVAXIN All should be in UPPERCASE fee_type ="Free" # The fee type should be Paid or Free All should be in UPPERCASE age_limit = 45 # Enter Your Age Here attempt = 1 # Number of days the application should periodically check wait_time = 300 # 5 minutes in seconds #SMTP Email Configuration SMTP_SERVER = 'smtp.gmail.com' SMTP_PORT = 587 SMTP_USER_NAME = '[email protected]' SMTP_PASSWORD = 'qwerty@1234' #Should Not Modify The variables below isUserNotified = 0 # Setting up a flag to say that the user has been notified available_flag_break = 0 # To break the process after notified to user
uname = 'Guru HariHaraun' email = '[email protected]' district_id = 560 vaccine_type = 'COVAXIN' fee_type = 'Free' age_limit = 45 attempt = 1 wait_time = 300 smtp_server = 'smtp.gmail.com' smtp_port = 587 smtp_user_name = '[email protected]' smtp_password = 'qwerty@1234' is_user_notified = 0 available_flag_break = 0
# A P I - K E Y S # --------------- keys = ['XXXX'] # S F T P - S E R V E R # --------------------- hostname = 'XXXX' username = 'XXXX' password = 'XXXX' path = 'XXXX' # P O R T - C O D E #------------------ port_num = 'XXXX'
keys = ['XXXX'] hostname = 'XXXX' username = 'XXXX' password = 'XXXX' path = 'XXXX' port_num = 'XXXX'
''' Author: Justin Muirhead ''' room = 0 rooms = [ 'Hall', 'Hall2', 'Courtyard', 'Hall3', 'Kitchen', 'Hall4', 'Hall5', 'Bedroom', 'CheeseRoom' ] desc = [ 'Hall with carpet', 'Hall with paintings', 'Courtyard with paving stones', 'Hallway with plants', 'Kitchen has old moldy food', 'Hallway has rat droppings', 'Hallway has dusty cobwebs', 'Bedroom has a bed in it', 'Has cheese in it' ] n = [1, 2, 3, 4, 99, 99, 99, 99, 99] s = [99, 0, 1, 2, 3, 99, 99, 99, 99] e = [99, 99, 6, 99, 99, 2, 8, 5, 99] w = [99, 99, 5, 99, 99, 7, 2, 99, 6] while True: print("You are in", rooms[room], desc[room]) if n[room] != 99: print("You can go north") if s[room] != 99: print("You can go south") if e[room] != 99: print("You can go east") if w[room] != 99: print("You can go west") move = input("Enter [n][s][e][w]: ") if move == 'n': room = n[room] elif move == 's': room = s[room] elif move == 'e': room = e[room] elif move == 'w': room = w[room]
""" Author: Justin Muirhead """ room = 0 rooms = ['Hall', 'Hall2', 'Courtyard', 'Hall3', 'Kitchen', 'Hall4', 'Hall5', 'Bedroom', 'CheeseRoom'] desc = ['Hall with carpet', 'Hall with paintings', 'Courtyard with paving stones', 'Hallway with plants', 'Kitchen has old moldy food', 'Hallway has rat droppings', 'Hallway has dusty cobwebs', 'Bedroom has a bed in it', 'Has cheese in it'] n = [1, 2, 3, 4, 99, 99, 99, 99, 99] s = [99, 0, 1, 2, 3, 99, 99, 99, 99] e = [99, 99, 6, 99, 99, 2, 8, 5, 99] w = [99, 99, 5, 99, 99, 7, 2, 99, 6] while True: print('You are in', rooms[room], desc[room]) if n[room] != 99: print('You can go north') if s[room] != 99: print('You can go south') if e[room] != 99: print('You can go east') if w[room] != 99: print('You can go west') move = input('Enter [n][s][e][w]: ') if move == 'n': room = n[room] elif move == 's': room = s[room] elif move == 'e': room = e[room] elif move == 'w': room = w[room]
def main(): n = int(input()) *s, = map(int, input().split()) *t, = map(int, input().split()) inf = 1 << 60 for i in range(2 * n): i %= n j = (i + 1) % n t[j] = min( t[j], t[i] + s[i], ) print(*t, sep='\n') main()
def main(): n = int(input()) (*s,) = map(int, input().split()) (*t,) = map(int, input().split()) inf = 1 << 60 for i in range(2 * n): i %= n j = (i + 1) % n t[j] = min(t[j], t[i] + s[i]) print(*t, sep='\n') main()
inp = int(input()) sum = 0 for i in range(1, inp + 1): sum += i print(sum)
inp = int(input()) sum = 0 for i in range(1, inp + 1): sum += i print(sum)
#!/usr/bin/env python3 if __name__ == '__main__': mark_1 = int(input('Enter the first number: ')) mark_2 = int(input('Enter the second number: ')) mark_3 = int(input('Enter the third number: ')) mark_4 = int(input('Enter the fourth number: ')) mark_5 = int(input('Enter the fifth number: ')) max_mark = max([mark_1, mark_2, mark_3, mark_4, mark_5]) min_mark = min([mark_1, mark_2, mark_3, mark_4, mark_5]) avg_mark = sum([mark_1, mark_2, mark_3, mark_4, mark_5]) / 5 print() print(f'Max Mark: {max_mark}') print(f'Min Mark: {min_mark}') print(f'Average Mark: {avg_mark:.2f}')
if __name__ == '__main__': mark_1 = int(input('Enter the first number: ')) mark_2 = int(input('Enter the second number: ')) mark_3 = int(input('Enter the third number: ')) mark_4 = int(input('Enter the fourth number: ')) mark_5 = int(input('Enter the fifth number: ')) max_mark = max([mark_1, mark_2, mark_3, mark_4, mark_5]) min_mark = min([mark_1, mark_2, mark_3, mark_4, mark_5]) avg_mark = sum([mark_1, mark_2, mark_3, mark_4, mark_5]) / 5 print() print(f'Max Mark: {max_mark}') print(f'Min Mark: {min_mark}') print(f'Average Mark: {avg_mark:.2f}')
def sieve_of_sundaram(n): res = [] if n > 2: res.append(2) n = int((n - 1) / 2) table = [0] * (n + 1) for i in range(1, n + 1): j = i while (i + j + 2 * i * j) <= n: table[i + j + 2 * i * j] = 1 j += 1 for i in range(1, n + 1): if table[i] == 0: res.append((2 * i + 1)) return res
def sieve_of_sundaram(n): res = [] if n > 2: res.append(2) n = int((n - 1) / 2) table = [0] * (n + 1) for i in range(1, n + 1): j = i while i + j + 2 * i * j <= n: table[i + j + 2 * i * j] = 1 j += 1 for i in range(1, n + 1): if table[i] == 0: res.append(2 * i + 1) return res
class FastLRUCache(object): __slots__ = ['__key2value', '__max_size', '__weights'] def __init__(self, max_size: int): self.__max_size = max_size self.__key2value = {} # key->value self.__weights = [] # keys ordered in LRU def __update_weight(self, key): try: self.__weights.remove(key) except ValueError: pass self.__weights.append(key) # add key to end if len(self.__weights) > self.__max_size: _key = self.__weights.pop(0) # remove first key self.__key2value.pop(_key) def __getitem__(self, key): try: value = self.__key2value[key] self.__update_weight(key) return value except KeyError: raise KeyError("key %s not found" % key) def get(self, key, default=None): try: value = self.__key2value[key] self.__update_weight(key) return value except KeyError: return default def __setitem__(self, key, value): self.__key2value[key] = value self.__update_weight(key) def __str__(self): return str(self.__key2value) def size(self): return len(self.__key2value)
class Fastlrucache(object): __slots__ = ['__key2value', '__max_size', '__weights'] def __init__(self, max_size: int): self.__max_size = max_size self.__key2value = {} self.__weights = [] def __update_weight(self, key): try: self.__weights.remove(key) except ValueError: pass self.__weights.append(key) if len(self.__weights) > self.__max_size: _key = self.__weights.pop(0) self.__key2value.pop(_key) def __getitem__(self, key): try: value = self.__key2value[key] self.__update_weight(key) return value except KeyError: raise key_error('key %s not found' % key) def get(self, key, default=None): try: value = self.__key2value[key] self.__update_weight(key) return value except KeyError: return default def __setitem__(self, key, value): self.__key2value[key] = value self.__update_weight(key) def __str__(self): return str(self.__key2value) def size(self): return len(self.__key2value)
weight = int(input("enter your weight ---> " )) unit = input("(L)bs or (K)g ---> ") if unit.upper() == "K": weight_lbs = weight / 0.45 print("your weight in lbs is --->", weight_lbs) elif unit.upper() == "L": weight_kg = weight * 0.45 print("your weight in kg is --->", weight_kg)
weight = int(input('enter your weight ---> ')) unit = input('(L)bs or (K)g ---> ') if unit.upper() == 'K': weight_lbs = weight / 0.45 print('your weight in lbs is --->', weight_lbs) elif unit.upper() == 'L': weight_kg = weight * 0.45 print('your weight in kg is --->', weight_kg)
while True: correto = True try: expressao = input() parenteses_aberto = [] for e in expressao: if e == '(': parenteses_aberto.append(e) if e == ')': if len(parenteses_aberto) > 0: parenteses_aberto.pop() else: correto = False break if correto and len(parenteses_aberto) == 0: print('correct') else: print('incorrect') except EOFError: break
while True: correto = True try: expressao = input() parenteses_aberto = [] for e in expressao: if e == '(': parenteses_aberto.append(e) if e == ')': if len(parenteses_aberto) > 0: parenteses_aberto.pop() else: correto = False break if correto and len(parenteses_aberto) == 0: print('correct') else: print('incorrect') except EOFError: break
# Fibannci-ser def recur_fibo(n): if n <= 1: return n else: return(recur_fibo(n-1) + recur_fibo(n-2)) nterms = int(input("How many terms? ")) if nterms <= 0: print("Plese enter a positive integer") else: print("Fibonacci sequence:") for i in range(nterms): print(recur_fibo(i))
def recur_fibo(n): if n <= 1: return n else: return recur_fibo(n - 1) + recur_fibo(n - 2) nterms = int(input('How many terms? ')) if nterms <= 0: print('Plese enter a positive integer') else: print('Fibonacci sequence:') for i in range(nterms): print(recur_fibo(i))
# management canister interface `aaaaa-aa` # wrap basic interfaces provided by the management canister: # create_canister, install_code, canister_status, etc. class Management: pass
class Management: pass
''' XMODEM Protocol bytes ===================== .. data:: SOH Indicates a packet length of 128 (X/Y) .. data:: STX Indicates a packet length of 1024 (X/Y) .. data:: EOT End of transmission (X/Y) .. data:: ACK Acknowledgement (X/Y) .. data:: XON Enable out of band flow control (Z) .. data:: XOFF Disable out of band flow control (Z) .. data:: NAK Negative acknowledgement (X/Y) .. data:: CAN Cancel (X/Y) .. data:: CRC Cyclic redundancy check (X/Y) ZMODEM Protocol bytes ===================== .. data:: TIMEOUT Timeout or invalid data. .. data:: ZPAD Pad character; frame begins .. data:: ZDLE Escape sequence .. data:: ZDLEE Escaped ``ZDLE`` .. data:: ZBIN, ZVBIN Binary frame indicator (using CRC16) .. data:: ZHEX, ZVHEX Hex frame indicator (using CRC16) .. data:: ZBIN32, ZVBIN32 Binary frame indicator (using CRC32) .. data:: ZBINR32, ZVBINR32 Run length encoded binary frame (using CRC32) .. data:: ZRESC Run length encoding flag or escape character ZMODEM Frame types ================== .. data:: ZRQINIT Request receive init (s->r) .. data:: ZRINIT Receive init (r->s) .. data:: ZSINIT Send init sequence (optional) (s->r) .. data:: ZACK Ack to ZRQINIT ZRINIT or ZSINIT (s<->r) .. data:: ZFILE File name (s->r) .. data:: ZSKIP Skip this file (r->s) .. data:: ZNAK Last packet was corrupted (?) .. data:: ZABORT Abort batch transfers (?) .. data:: ZFIN Finish session (s<->r) .. data:: ZRPOS Resume data transmission here (r->s) .. data:: ZDATA Data packet(s) follow (s->r) .. data:: ZEOF End of file reached (s->r) .. data:: ZFERR Fatal read or write error detected (?) .. data:: ZCRC Request for file CRC and response (?) .. data:: ZCHALLENGE Security challenge (r->s) .. data:: ZCOMPL Request is complete (?) .. data:: ZCAN Pseudo frame; other end cancelled session with 5* CAN .. data:: ZFREECNT Request free bytes on file system (s->r) .. data:: ZCOMMAND Issue command (s->r) .. data:: ZSTDERR Output data to stderr (??) ZMODEM ZDLE sequences ===================== .. data:: ZCRCE CRC next, frame ends, header packet follows .. data:: ZCRCG CRC next, frame continues nonstop .. data:: ZCRCQ CRC next, frame continuous, ZACK expected .. data:: ZCRCW CRC next, ZACK expected, end of frame .. data:: ZRUB0 Translate to rubout 0x7f .. data:: ZRUB1 Translate to rubout 0xff ZMODEM receiver capability flags ================================ .. data:: CANFDX Receiver can send and receive true full duplex .. data:: CANOVIO Receiver can receive data during disk I/O .. data:: CANBRK Receiver can send a break signal .. data:: CANCRY Receiver can decrypt .. data:: CANLZW Receiver can uncompress .. data:: CANFC32 Receiver can use 32 bit Frame Check .. data:: ESCCTL Receiver expects ctl chars to be escaped .. data:: ESC8 Receiver expects 8th bit to be escaped ZMODEM ZRINIT frame =================== .. data:: ZF0_CANFDX Receiver can send and receive true full duplex .. data:: ZF0_CANOVIO Receiver can receive data during disk I/O .. data:: ZF0_CANBRK Receiver can send a break signal .. data:: ZF0_CANCRY Receiver can decrypt DONT USE .. data:: ZF0_CANLZW Receiver can uncompress DONT USE .. data:: ZF0_CANFC32 Receiver can use 32 bit Frame Check .. data:: ZF0_ESCCTL Receiver expects ctl chars to be escaped .. data:: ZF0_ESC8 Receiver expects 8th bit to be escaped .. data:: ZF1_CANVHDR Variable headers OK ZMODEM ZSINIT frame =================== .. data:: ZF0_TESCCTL Transmitter expects ctl chars to be escaped .. data:: ZF0_TESC8 Transmitter expects 8th bit to be escaped ''' SOH = bytes([0x01]) STX = bytes([0x02]) EOT = bytes([0x04]) ACK = bytes([0x06]) XON = bytes([0x11]) XOFF = bytes([0x13]) NAK = bytes([0x15]) CAN = bytes([0x18]) CRC = bytes([0x43]) TIMEOUT = None ZPAD = 0x2a ZDLE = 0x18 ZDLEE = 0x58 ZBIN = 0x41 ZHEX = 0x42 ZBIN32 = 0x43 ZBINR32 = 0x44 ZVBIN = 0x61 ZVHEX = 0x62 ZVBIN32 = 0x63 ZVBINR32 = 0x64 ZRESC = 0x7e # ZMODEM Frame types ZRQINIT = 0x00 ZRINIT = 0x01 ZSINIT = 0x02 ZACK = 0x03 ZFILE = 0x04 ZSKIP = 0x05 ZNAK = 0x06 ZABORT = 0x07 ZFIN = 0x08 ZRPOS = 0x09 ZDATA = 0x0a ZEOF = 0x0b ZFERR = 0x0c ZCRC = 0x0d ZCHALLENGE = 0x0e ZCOMPL = 0x0f ZCAN = 0x10 ZFREECNT = 0x11 ZCOMMAND = 0x12 ZSTDERR = 0x13 # ZMODEM ZDLE sequences ZCRCE = 0x68 ZCRCG = 0x69 ZCRCQ = 0x6a ZCRCW = 0x6b ZRUB0 = 0x6c ZRUB1 = 0x6d # ZMODEM Receiver capability flags CANFDX = 0x01 CANOVIO = 0x02 CANBRK = 0x04 CANCRY = 0x08 CANLZW = 0x10 CANFC32 = 0x20 ESCCTL = 0x40 ESC8 = 0x80 # ZMODEM ZRINIT frame ZF0_CANFDX = 0x01 ZF0_CANOVIO = 0x02 ZF0_CANBRK = 0x04 ZF0_CANCRY = 0x08 ZF0_CANLZW = 0x10 ZF0_CANFC32 = 0x20 ZF0_ESCCTL = 0x40 ZF0_ESC8 = 0x80 ZF1_CANVHDR = 0x01 # ZMODEM ZSINIT frame ZF0_TESCCTL = 0x40 ZF0_TESC8 = 0x80 # ZMODEM Byte positions within header array ZF0, ZF1, ZF2, ZF3 = range(4, 0, -1) ZP0, ZP1, ZP2, ZP3 = range(1, 5) # ZMODEM Frame contents ENDOFFRAME = 0x50 FRAMEOK = 0x51 TIMEOUT = -1 # Rx routine did not receive a character within timeout INVHDR = -2 # Invalid header received; but within timeout INVDATA = -3 # Invalid data subpacket received ZDLEESC = 0x8000 # One of ZCRCE/ZCRCG/ZCRCQ/ZCRCW was ZDLE escaped # MODEM Protocol types PROTOCOL_XMODEM = 0x00 PROTOCOL_XMODEMCRC = 0x01 PROTOCOL_XMODEM1K = 0x02 PROTOCOL_YMODEM = 0x03 PROTOCOL_ZMODEM = 0x04 PACKET_SIZE = { PROTOCOL_XMODEM: 128, PROTOCOL_XMODEMCRC: 128, PROTOCOL_XMODEM1K: 1024, PROTOCOL_YMODEM: 1024, PROTOCOL_ZMODEM: 1024, } # CRC tab calculated by Mark G. Mendel, Network Systems Corporation CRC16_MAP = [ 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, 0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, 0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, 0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de, 0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485, 0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d, 0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4, 0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc, 0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823, 0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b, 0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12, 0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a, 0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41, 0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49, 0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70, 0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78, 0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f, 0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067, 0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e, 0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256, 0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d, 0x34e2, 0x24c3, 0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405, 0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c, 0x26d3, 0x36f2, 0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634, 0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab, 0x5844, 0x4865, 0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3, 0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a, 0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92, 0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9, 0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1, 0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8, 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0, ] # CRC tab calculated by Gary S. Brown CRC32_MAP = [ 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d ]
""" XMODEM Protocol bytes ===================== .. data:: SOH Indicates a packet length of 128 (X/Y) .. data:: STX Indicates a packet length of 1024 (X/Y) .. data:: EOT End of transmission (X/Y) .. data:: ACK Acknowledgement (X/Y) .. data:: XON Enable out of band flow control (Z) .. data:: XOFF Disable out of band flow control (Z) .. data:: NAK Negative acknowledgement (X/Y) .. data:: CAN Cancel (X/Y) .. data:: CRC Cyclic redundancy check (X/Y) ZMODEM Protocol bytes ===================== .. data:: TIMEOUT Timeout or invalid data. .. data:: ZPAD Pad character; frame begins .. data:: ZDLE Escape sequence .. data:: ZDLEE Escaped ``ZDLE`` .. data:: ZBIN, ZVBIN Binary frame indicator (using CRC16) .. data:: ZHEX, ZVHEX Hex frame indicator (using CRC16) .. data:: ZBIN32, ZVBIN32 Binary frame indicator (using CRC32) .. data:: ZBINR32, ZVBINR32 Run length encoded binary frame (using CRC32) .. data:: ZRESC Run length encoding flag or escape character ZMODEM Frame types ================== .. data:: ZRQINIT Request receive init (s->r) .. data:: ZRINIT Receive init (r->s) .. data:: ZSINIT Send init sequence (optional) (s->r) .. data:: ZACK Ack to ZRQINIT ZRINIT or ZSINIT (s<->r) .. data:: ZFILE File name (s->r) .. data:: ZSKIP Skip this file (r->s) .. data:: ZNAK Last packet was corrupted (?) .. data:: ZABORT Abort batch transfers (?) .. data:: ZFIN Finish session (s<->r) .. data:: ZRPOS Resume data transmission here (r->s) .. data:: ZDATA Data packet(s) follow (s->r) .. data:: ZEOF End of file reached (s->r) .. data:: ZFERR Fatal read or write error detected (?) .. data:: ZCRC Request for file CRC and response (?) .. data:: ZCHALLENGE Security challenge (r->s) .. data:: ZCOMPL Request is complete (?) .. data:: ZCAN Pseudo frame; other end cancelled session with 5* CAN .. data:: ZFREECNT Request free bytes on file system (s->r) .. data:: ZCOMMAND Issue command (s->r) .. data:: ZSTDERR Output data to stderr (??) ZMODEM ZDLE sequences ===================== .. data:: ZCRCE CRC next, frame ends, header packet follows .. data:: ZCRCG CRC next, frame continues nonstop .. data:: ZCRCQ CRC next, frame continuous, ZACK expected .. data:: ZCRCW CRC next, ZACK expected, end of frame .. data:: ZRUB0 Translate to rubout 0x7f .. data:: ZRUB1 Translate to rubout 0xff ZMODEM receiver capability flags ================================ .. data:: CANFDX Receiver can send and receive true full duplex .. data:: CANOVIO Receiver can receive data during disk I/O .. data:: CANBRK Receiver can send a break signal .. data:: CANCRY Receiver can decrypt .. data:: CANLZW Receiver can uncompress .. data:: CANFC32 Receiver can use 32 bit Frame Check .. data:: ESCCTL Receiver expects ctl chars to be escaped .. data:: ESC8 Receiver expects 8th bit to be escaped ZMODEM ZRINIT frame =================== .. data:: ZF0_CANFDX Receiver can send and receive true full duplex .. data:: ZF0_CANOVIO Receiver can receive data during disk I/O .. data:: ZF0_CANBRK Receiver can send a break signal .. data:: ZF0_CANCRY Receiver can decrypt DONT USE .. data:: ZF0_CANLZW Receiver can uncompress DONT USE .. data:: ZF0_CANFC32 Receiver can use 32 bit Frame Check .. data:: ZF0_ESCCTL Receiver expects ctl chars to be escaped .. data:: ZF0_ESC8 Receiver expects 8th bit to be escaped .. data:: ZF1_CANVHDR Variable headers OK ZMODEM ZSINIT frame =================== .. data:: ZF0_TESCCTL Transmitter expects ctl chars to be escaped .. data:: ZF0_TESC8 Transmitter expects 8th bit to be escaped """ soh = bytes([1]) stx = bytes([2]) eot = bytes([4]) ack = bytes([6]) xon = bytes([17]) xoff = bytes([19]) nak = bytes([21]) can = bytes([24]) crc = bytes([67]) timeout = None zpad = 42 zdle = 24 zdlee = 88 zbin = 65 zhex = 66 zbin32 = 67 zbinr32 = 68 zvbin = 97 zvhex = 98 zvbin32 = 99 zvbinr32 = 100 zresc = 126 zrqinit = 0 zrinit = 1 zsinit = 2 zack = 3 zfile = 4 zskip = 5 znak = 6 zabort = 7 zfin = 8 zrpos = 9 zdata = 10 zeof = 11 zferr = 12 zcrc = 13 zchallenge = 14 zcompl = 15 zcan = 16 zfreecnt = 17 zcommand = 18 zstderr = 19 zcrce = 104 zcrcg = 105 zcrcq = 106 zcrcw = 107 zrub0 = 108 zrub1 = 109 canfdx = 1 canovio = 2 canbrk = 4 cancry = 8 canlzw = 16 canfc32 = 32 escctl = 64 esc8 = 128 zf0_canfdx = 1 zf0_canovio = 2 zf0_canbrk = 4 zf0_cancry = 8 zf0_canlzw = 16 zf0_canfc32 = 32 zf0_escctl = 64 zf0_esc8 = 128 zf1_canvhdr = 1 zf0_tescctl = 64 zf0_tesc8 = 128 (zf0, zf1, zf2, zf3) = range(4, 0, -1) (zp0, zp1, zp2, zp3) = range(1, 5) endofframe = 80 frameok = 81 timeout = -1 invhdr = -2 invdata = -3 zdleesc = 32768 protocol_xmodem = 0 protocol_xmodemcrc = 1 protocol_xmodem1_k = 2 protocol_ymodem = 3 protocol_zmodem = 4 packet_size = {PROTOCOL_XMODEM: 128, PROTOCOL_XMODEMCRC: 128, PROTOCOL_XMODEM1K: 1024, PROTOCOL_YMODEM: 1024, PROTOCOL_ZMODEM: 1024} crc16_map = [0, 4129, 8258, 12387, 16516, 20645, 24774, 28903, 33032, 37161, 41290, 45419, 49548, 53677, 57806, 61935, 4657, 528, 12915, 8786, 21173, 17044, 29431, 25302, 37689, 33560, 45947, 41818, 54205, 50076, 62463, 58334, 9314, 13379, 1056, 5121, 25830, 29895, 17572, 21637, 42346, 46411, 34088, 38153, 58862, 62927, 50604, 54669, 13907, 9842, 5649, 1584, 30423, 26358, 22165, 18100, 46939, 42874, 38681, 34616, 63455, 59390, 55197, 51132, 18628, 22757, 26758, 30887, 2112, 6241, 10242, 14371, 51660, 55789, 59790, 63919, 35144, 39273, 43274, 47403, 23285, 19156, 31415, 27286, 6769, 2640, 14899, 10770, 56317, 52188, 64447, 60318, 39801, 35672, 47931, 43802, 27814, 31879, 19684, 23749, 11298, 15363, 3168, 7233, 60846, 64911, 52716, 56781, 44330, 48395, 36200, 40265, 32407, 28342, 24277, 20212, 15891, 11826, 7761, 3696, 65439, 61374, 57309, 53244, 48923, 44858, 40793, 36728, 37256, 33193, 45514, 41451, 53516, 49453, 61774, 57711, 4224, 161, 12482, 8419, 20484, 16421, 28742, 24679, 33721, 37784, 41979, 46042, 49981, 54044, 58239, 62302, 689, 4752, 8947, 13010, 16949, 21012, 25207, 29270, 46570, 42443, 38312, 34185, 62830, 58703, 54572, 50445, 13538, 9411, 5280, 1153, 29798, 25671, 21540, 17413, 42971, 47098, 34713, 38840, 59231, 63358, 50973, 55100, 9939, 14066, 1681, 5808, 26199, 30326, 17941, 22068, 55628, 51565, 63758, 59695, 39368, 35305, 47498, 43435, 22596, 18533, 30726, 26663, 6336, 2273, 14466, 10403, 52093, 56156, 60223, 64286, 35833, 39896, 43963, 48026, 19061, 23124, 27191, 31254, 2801, 6864, 10931, 14994, 64814, 60687, 56684, 52557, 48554, 44427, 40424, 36297, 31782, 27655, 23652, 19525, 15522, 11395, 7392, 3265, 61215, 65342, 53085, 57212, 44955, 49082, 36825, 40952, 28183, 32310, 20053, 24180, 11923, 16050, 3793, 7920] crc32_map = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918000, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117]
def countingSort(arr): n = len(arr) max_of_arr = max(arr) count = [0 for i in range(max_of_arr+1)] for i in arr: count[i] += 1 ind = 0 for i in range(max_of_arr+1): c = count[i] while c: arr[ind] = i ind += 1 c -= 1 return arr n = int(input("Enter the size of array : ")) arr = list(map(int, input("Enter the array elements :\n").strip().split()))[:n] print("Array entered") print(arr) countingSort(arr) print("Array after sorting the elements") print(arr)
def counting_sort(arr): n = len(arr) max_of_arr = max(arr) count = [0 for i in range(max_of_arr + 1)] for i in arr: count[i] += 1 ind = 0 for i in range(max_of_arr + 1): c = count[i] while c: arr[ind] = i ind += 1 c -= 1 return arr n = int(input('Enter the size of array : ')) arr = list(map(int, input('Enter the array elements :\n').strip().split()))[:n] print('Array entered') print(arr) counting_sort(arr) print('Array after sorting the elements') print(arr)
# data config trainroot = '/data2/dataset/ICD15/train' testroot = '/data2/dataset/ICD15/test' output_dir = 'output/east_icd15' data_shape = 512 # train config gpu_id = '2' workers = 12 start_epoch = 0 epochs = 600 lr = 0.0001 lr_decay_step = 10000 lr_gamma = 0.94 train_batch_size_per_gpu = 14 init_type = 'xavier' display_interval = 10 show_images_interval = 50 pretrained = True restart_training = True checkpoint = '' seed = 2
trainroot = '/data2/dataset/ICD15/train' testroot = '/data2/dataset/ICD15/test' output_dir = 'output/east_icd15' data_shape = 512 gpu_id = '2' workers = 12 start_epoch = 0 epochs = 600 lr = 0.0001 lr_decay_step = 10000 lr_gamma = 0.94 train_batch_size_per_gpu = 14 init_type = 'xavier' display_interval = 10 show_images_interval = 50 pretrained = True restart_training = True checkpoint = '' seed = 2
SERVER_HOST_1 = "127.0.0.1" SERVER_PORT_1 = 2779 SERVER_HOST_2 = "127.0.0.1" SERVER_PORT_2 = 2775
server_host_1 = '127.0.0.1' server_port_1 = 2779 server_host_2 = '127.0.0.1' server_port_2 = 2775
class Texture(object): def __init__(self): self.file_path = None self.file = None self.data = None def read(self, files): for file_path in files: self.file_path = file_path self.file = open(self.file_path, "rb") self.data = self.file.read() break # print 'tex', self.file_path if self.file is not None: self.file.close() def write(self, data): self.file = open(self.file_path, "wb") # print 'Writing', self.file_path self.file.write(data) self.file.close()
class Texture(object): def __init__(self): self.file_path = None self.file = None self.data = None def read(self, files): for file_path in files: self.file_path = file_path self.file = open(self.file_path, 'rb') self.data = self.file.read() break if self.file is not None: self.file.close() def write(self, data): self.file = open(self.file_path, 'wb') self.file.write(data) self.file.close()
class Flight: counter = 1 def __init__(self, origin, destination, duration): # Keep track of id number self.id = Flight.counter Flight.counter += 1 # Keep track of passengers self.passengers = [] # Details about flight self.origin = origin self.destination = destination self.duration = duration def print_info(self): print(f"Flight origin: {self.origin}") print(f"Flight destination: {self.destination}") print(f"Flight duration: {self.duration}") print(f"Flight id: {self.id}") print() print("passengers:") for passenger in self.passengers: print(f"{passenger.name}") def delay(self, amount): self.duration += amount def add_passenger(self, p): self.passengers.append(p) p.flight_id = self.id class Passenger: def __init__(self, name): self.name = name def main(): # Create Flight f1 = Flight(origin="New York", destination="Paris", duration=540) # Create passengers alice = Passenger(name="Alice") bob = Passenger(name="Bob") f1.add_passenger(alice) f1.add_passenger(bob) f1.print_info() if __name__ == '__main__': main()
class Flight: counter = 1 def __init__(self, origin, destination, duration): self.id = Flight.counter Flight.counter += 1 self.passengers = [] self.origin = origin self.destination = destination self.duration = duration def print_info(self): print(f'Flight origin: {self.origin}') print(f'Flight destination: {self.destination}') print(f'Flight duration: {self.duration}') print(f'Flight id: {self.id}') print() print('passengers:') for passenger in self.passengers: print(f'{passenger.name}') def delay(self, amount): self.duration += amount def add_passenger(self, p): self.passengers.append(p) p.flight_id = self.id class Passenger: def __init__(self, name): self.name = name def main(): f1 = flight(origin='New York', destination='Paris', duration=540) alice = passenger(name='Alice') bob = passenger(name='Bob') f1.add_passenger(alice) f1.add_passenger(bob) f1.print_info() if __name__ == '__main__': main()
### Model Architecture hyper parameters embedding_size = 32 # sequence_length = 500 sequence_length = 33 LSTM_units = 128 ### Training parameters batch_size = 64 epochs = 20 ### Preprocessing parameters # words that occur less than n times to be deleted from dataset N = 10 # test size in ratio, train size is 1 - test_size test_size = 0.2
embedding_size = 32 sequence_length = 33 lstm_units = 128 batch_size = 64 epochs = 20 n = 10 test_size = 0.2
result = 0 def solution(numbers, target): findNum(numbers, 0, 0, target) return result def findNum(numbers, index, acc, target): global result if len(numbers) == index: if acc == target: result += 1 return num = numbers[index] findNum(numbers, index + 1, acc - num, target) findNum(numbers, index + 1, acc + num, target) print(solution([1, 1, 1, 1, 1], 3))
result = 0 def solution(numbers, target): find_num(numbers, 0, 0, target) return result def find_num(numbers, index, acc, target): global result if len(numbers) == index: if acc == target: result += 1 return num = numbers[index] find_num(numbers, index + 1, acc - num, target) find_num(numbers, index + 1, acc + num, target) print(solution([1, 1, 1, 1, 1], 3))
def find_the_secret(f): for x in f.__code__.co_consts: if isinstance(x,str) and len(x) == 32: return x return ''
def find_the_secret(f): for x in f.__code__.co_consts: if isinstance(x, str) and len(x) == 32: return x return ''
def swap(arr,i,j): arr[i],arr[j] = arr[j],arr[i] def partition(arr,l,r): pivot = arr[r] i = l-1 j = l for j in range(l,r): if arr[j] < pivot: i+=1 swap(arr,i,j) i+=1 swap(arr,i,r) return i def quickSort(arr,l,r): if l<r : newIndex = partition(arr,l,r) quickSort(arr,newIndex+1,r) quickSort(arr,l,newIndex-1) arr = [-2,3,4,1,5,0] print("Before:",arr) quickSort(arr,0,len(arr)-1) print('After :',arr)
def swap(arr, i, j): (arr[i], arr[j]) = (arr[j], arr[i]) def partition(arr, l, r): pivot = arr[r] i = l - 1 j = l for j in range(l, r): if arr[j] < pivot: i += 1 swap(arr, i, j) i += 1 swap(arr, i, r) return i def quick_sort(arr, l, r): if l < r: new_index = partition(arr, l, r) quick_sort(arr, newIndex + 1, r) quick_sort(arr, l, newIndex - 1) arr = [-2, 3, 4, 1, 5, 0] print('Before:', arr) quick_sort(arr, 0, len(arr) - 1) print('After :', arr)
# app config APP_CONFIG=dict( SECRET_KEY="SECRET", WTF_CSRF_SECRET_KEY="SECRET", # Webservice config WS_URL="http://localhost:5057", # ws del modello in locale DATASET_REQ = "/dataset", OPERATIVE_CENTERS_REQ = "/operative-centers", OC_DATE_REQ = "/oc-date", OC_DATA_REQ = "/oc-data", PREDICT_REQ = "/predict", DATA_CHARSET ='ISO-8859-1' ) # Application domain config
app_config = dict(SECRET_KEY='SECRET', WTF_CSRF_SECRET_KEY='SECRET', WS_URL='http://localhost:5057', DATASET_REQ='/dataset', OPERATIVE_CENTERS_REQ='/operative-centers', OC_DATE_REQ='/oc-date', OC_DATA_REQ='/oc-data', PREDICT_REQ='/predict', DATA_CHARSET='ISO-8859-1')
__all__ = ['__version__'] # major, minor, patch version_info = 1, 4, 0 # suffix suffix = None # version string __version__ = '.'.join(map(str, version_info)) + (f'.{suffix}' if suffix else '')
__all__ = ['__version__'] version_info = (1, 4, 0) suffix = None __version__ = '.'.join(map(str, version_info)) + (f'.{suffix}' if suffix else '')
#percorrendo itens do dicionario com for dicionario = {'chave1':'valor1','chave2':'valor2','chave3':3} for a,b in dicionario.items(): print(a,b)
dicionario = {'chave1': 'valor1', 'chave2': 'valor2', 'chave3': 3} for (a, b) in dicionario.items(): print(a, b)
# Data sources database( thermoLibraries = ['primaryThermoLibrary'], reactionLibraries = [], seedMechanisms = [], kineticsDepositories = ['training'], kineticsFamilies = 'default', kineticsEstimator = 'rate rules', ) # List of species species( label='ethane', reactive=True, structure=SMILES("CC"), ) species( label='O2', reactive=True, structure=SMILES('[O][O]') ) species( label='N2', reactive=False, structure=SMILES('N#N'), ) # Reaction systems simpleReactor( temperature=[(1000,'K'),(1500,'K')], pressure=[(1.0,'bar'),(10.0,'bar')], nSims=3, initialMoleFractions={ "ethane": [0.05,0.15], "O2": 0.1, "N2": 0.9, }, terminationConversion={ 'ethane': 0.1, }, terminationTime=(1e1,'s'), balanceSpecies = "N2", ) simulator( atol=1e-16, rtol=1e-8, ) model( toleranceKeepInEdge=0.001, toleranceMoveToCore=0.01, toleranceInterruptSimulation=1e8, maximumEdgeSpecies=20, filterReactions=True, minCoreSizeForPrune=5, ) options( units='si', generateOutputHTML=False, generatePlots=False, saveEdgeSpecies=False, saveSimulationProfiles=False, )
database(thermoLibraries=['primaryThermoLibrary'], reactionLibraries=[], seedMechanisms=[], kineticsDepositories=['training'], kineticsFamilies='default', kineticsEstimator='rate rules') species(label='ethane', reactive=True, structure=smiles('CC')) species(label='O2', reactive=True, structure=smiles('[O][O]')) species(label='N2', reactive=False, structure=smiles('N#N')) simple_reactor(temperature=[(1000, 'K'), (1500, 'K')], pressure=[(1.0, 'bar'), (10.0, 'bar')], nSims=3, initialMoleFractions={'ethane': [0.05, 0.15], 'O2': 0.1, 'N2': 0.9}, terminationConversion={'ethane': 0.1}, terminationTime=(10.0, 's'), balanceSpecies='N2') simulator(atol=1e-16, rtol=1e-08) model(toleranceKeepInEdge=0.001, toleranceMoveToCore=0.01, toleranceInterruptSimulation=100000000.0, maximumEdgeSpecies=20, filterReactions=True, minCoreSizeForPrune=5) options(units='si', generateOutputHTML=False, generatePlots=False, saveEdgeSpecies=False, saveSimulationProfiles=False)
#BEGIN_HEADER #END_HEADER class pranjan77ContigFilter: ''' Module Name: pranjan77ContigFilter Module Description: A KBase module: pranjan77ContigFilter ''' ######## WARNING FOR GEVENT USERS ####### # Since asynchronous IO can lead to methods - even the same method - # interrupting each other, you must be *very* careful when using global # state. A method could easily clobber the state set by another while # the latter method is running. ######################################### #BEGIN_CLASS_HEADER #END_CLASS_HEADER # config contains contents of config file in a hash or None if it couldn't # be found def __init__(self, config): #BEGIN_CONSTRUCTOR #END_CONSTRUCTOR pass
class Pranjan77Contigfilter: """ Module Name: pranjan77ContigFilter Module Description: A KBase module: pranjan77ContigFilter """ def __init__(self, config): pass
a = float( input('give a number: ') ) b = float( input('give a number: ') ) print(a, '+', b, '=', a+b) print(a, '-', b, '=', a-b) print(a, '*', b, '=', a*b) print(a, '/', b, '=', a/b)
a = float(input('give a number: ')) b = float(input('give a number: ')) print(a, '+', b, '=', a + b) print(a, '-', b, '=', a - b) print(a, '*', b, '=', a * b) print(a, '/', b, '=', a / b)
# These are all the settings that are specific to a jurisdiction ############################### # These settings are required # ############################### OCD_JURISDICTION_ID = 'ocd-jurisdiction/country:us/state:il/place:chicago/government' OCD_CITY_COUNCIL_ID = 'ocd-organization/ef168607-9135-4177-ad8e-c1f7a4806c3a' CITY_COUNCIL_NAME = 'Sacramento City Council' LEGISLATIVE_SESSIONS = ['2007', '2011', '2015'] # the last one in this list should be the current legislative session CITY_NAME = 'Chicago' CITY_NAME_SHORT = 'Chicago' # VOCAB SETTINGS FOR FRONT-END DISPLAY CITY_VOCAB = { 'MUNICIPAL_DISTRICT': 'Ward', # e.g. 'District' 'SOURCE': 'Chicago City Clerk', 'COUNCIL_MEMBER': 'Alderman', # e.g. 'Council Member' 'COUNCIL_MEMBERS': 'Aldermen', # e.g. 'Council Members' 'EVENTS': 'Meetings', # label for the events listing, e.g. 'Events' } APP_NAME = 'city' ######################### # The rest are optional # ######################### # this is for populating meta tags SITE_META = { 'site_name' : '', # e.g. 'Chicago Councilmatc' 'site_desc' : '', # e.g. 'City Council, demystified. Keep tabs on Chicago legislation, aldermen, & meetings.' 'site_author' : '', # e.g. 'DataMade' 'site_url' : '', # e.g. 'https://chicago.councilmatic.org' 'twitter_site': '', # e.g. '@DataMadeCo' 'twitter_creator': '', # e.g. '@DataMadeCo' } LEGISTAR_URL = '' # e.g. 'https://chicago.legistar.com/Legislation.aspx' # this is for the boundaries of municipal districts, to add # shapes to posts & ultimately display a map with the council # member listing. the boundary set should be the relevant # slug from the ocd api's boundary service # available boundary sets here: http://ocd.datamade.us/boundary-sets/ BOUNDARY_SET = '' # e.g. 'chicago-wards-2015' # this is for configuring a map of council districts using data from the posts # set MAP_CONFIG = None to hide map MAP_CONFIG = { 'center': [41.8369, -87.6847], 'zoom': 10, 'color': "#54afe8", 'highlight_color': "#C00000", } FOOTER_CREDITS = [ { 'name': '', # e.g. 'DataMade' 'url': '', # e.g. 'http://datamade.us' 'image': '', # e.g. 'datamade-logo.png' }, ] # this is the default text in search bars SEARCH_PLACEHOLDER_TEXT = '' # e.g. 'police, zoning, O2015-7825, etc.' # these should live in APP_NAME/static/ IMAGES = { 'favicon': 'images/favicon.ico', 'logo': 'images/logo.png', } # THE FOLLOWING ARE VOCAB SETTINGS RELEVANT TO DATA MODELS, LOGIC # (this is diff from VOCAB above, which is all for the front end) # this is the name of the meetings where the entire city council meets # as stored in legistar CITY_COUNCIL_MEETING_NAME = 'City Council' # this is the name of the role of committee chairs, e.g. 'CHAIRPERSON' or 'Chair' # as stored in legistar # if this is set, committees will display chairs COMMITTEE_CHAIR_TITLE = 'Chairman' # this is the anme of the role of committee members, # as stored in legistar COMMITTEE_MEMBER_TITLE = 'Member' # this is for convenience, & used to populate a table # describing legislation types on the default about page template LEGISLATION_TYPE_DESCRIPTIONS = [ { 'name': 'Ordinance', 'search_term': 'Ordinance', 'fa_icon': 'file-text-o', 'html_desc': True, 'desc': '', }, { 'name': 'Claim', 'search_term': 'Claim', 'fa_icon': 'dollar', 'html_desc': True, 'desc': '', }, ] # these keys should match committee slugs COMMITTEE_DESCRIPTIONS = { # e.g. "committee-on-aviation" : "The Committee on Aviation has jurisdiction over matters relating to aviation and airports.", } # these blurbs populate the wells on the committees, events, & council members pages ABOUT_BLURBS = { "COMMITTEES" : "", "EVENTS": "", "COUNCIL_MEMBERS": "", } # these override the headshots that are automatically populated # the keys should match a person's slug MANUAL_HEADSHOTS = { # e.g. 'emanuel-rahm': {'source': 'cityofchicago.org', 'image': 'manual-headshots/emanuel-rahm.jpg' }, } # notable positions that aren't district representatives, e.g. mayor & city clerk # keys should match person slugs EXTRA_TITLES = { # e.g. 'emanuel-rahm': 'Mayor', }
ocd_jurisdiction_id = 'ocd-jurisdiction/country:us/state:il/place:chicago/government' ocd_city_council_id = 'ocd-organization/ef168607-9135-4177-ad8e-c1f7a4806c3a' city_council_name = 'Sacramento City Council' legislative_sessions = ['2007', '2011', '2015'] city_name = 'Chicago' city_name_short = 'Chicago' city_vocab = {'MUNICIPAL_DISTRICT': 'Ward', 'SOURCE': 'Chicago City Clerk', 'COUNCIL_MEMBER': 'Alderman', 'COUNCIL_MEMBERS': 'Aldermen', 'EVENTS': 'Meetings'} app_name = 'city' site_meta = {'site_name': '', 'site_desc': '', 'site_author': '', 'site_url': '', 'twitter_site': '', 'twitter_creator': ''} legistar_url = '' boundary_set = '' map_config = {'center': [41.8369, -87.6847], 'zoom': 10, 'color': '#54afe8', 'highlight_color': '#C00000'} footer_credits = [{'name': '', 'url': '', 'image': ''}] search_placeholder_text = '' images = {'favicon': 'images/favicon.ico', 'logo': 'images/logo.png'} city_council_meeting_name = 'City Council' committee_chair_title = 'Chairman' committee_member_title = 'Member' legislation_type_descriptions = [{'name': 'Ordinance', 'search_term': 'Ordinance', 'fa_icon': 'file-text-o', 'html_desc': True, 'desc': ''}, {'name': 'Claim', 'search_term': 'Claim', 'fa_icon': 'dollar', 'html_desc': True, 'desc': ''}] committee_descriptions = {} about_blurbs = {'COMMITTEES': '', 'EVENTS': '', 'COUNCIL_MEMBERS': ''} manual_headshots = {} extra_titles = {}
{ "targets": [ { "target_name": "cld-c", "type": "static_library", "include_dirs": [ "internal", ], "sources": [ "internal/cldutil.cc", "internal/cldutil_shared.cc", "internal/compact_lang_det.cc", "internal/compact_lang_det_hint_code.cc", "internal/compact_lang_det_impl.cc", "internal/debug.cc", "internal/fixunicodevalue.cc", "internal/generated_entities.cc", "internal/generated_language.cc", "internal/generated_ulscript.cc", "internal/getonescriptspan.cc", "internal/lang_script.cc", "internal/offsetmap.cc", "internal/scoreonescriptspan.cc", "internal/tote.cc", "internal/utf8statetable.cc", "internal/cld_generated_cjk_uni_prop_80.cc", "internal/cld2_generated_cjk_compatible.cc", "internal/cld_generated_cjk_delta_bi_32.cc", "internal/generated_distinct_bi_0.cc", "internal/cld2_generated_quad0122.cc", "internal/cld2_generated_deltaocta0122.cc", "internal/cld2_generated_deltaoctachrome.cc", "internal/cld2_generated_distinctocta0122.cc", "internal/cld2_generated_distinctoctachrome.cc", "internal/cld2_generated_quadchrome_16.cc", "internal/cld2_generated_quadchrome_2.cc", "internal/cld_generated_score_quad_octa_0122.cc", "internal/cld_generated_score_quad_octa_2.cc" ], "defines": [], "cflags_cc": ["-w", "-std=gnu++98"], "cflags_cc!": ["-std=gnu++0x"], "link_settings" : { "ldflags": ["-z", "muldefs"] }, "xcode_settings": { "OTHER_CFLAGS": ["-w"], 'CLANG_CXX_LANGUAGE_STANDARD': 'c++98' } } ] }
{'targets': [{'target_name': 'cld-c', 'type': 'static_library', 'include_dirs': ['internal'], 'sources': ['internal/cldutil.cc', 'internal/cldutil_shared.cc', 'internal/compact_lang_det.cc', 'internal/compact_lang_det_hint_code.cc', 'internal/compact_lang_det_impl.cc', 'internal/debug.cc', 'internal/fixunicodevalue.cc', 'internal/generated_entities.cc', 'internal/generated_language.cc', 'internal/generated_ulscript.cc', 'internal/getonescriptspan.cc', 'internal/lang_script.cc', 'internal/offsetmap.cc', 'internal/scoreonescriptspan.cc', 'internal/tote.cc', 'internal/utf8statetable.cc', 'internal/cld_generated_cjk_uni_prop_80.cc', 'internal/cld2_generated_cjk_compatible.cc', 'internal/cld_generated_cjk_delta_bi_32.cc', 'internal/generated_distinct_bi_0.cc', 'internal/cld2_generated_quad0122.cc', 'internal/cld2_generated_deltaocta0122.cc', 'internal/cld2_generated_deltaoctachrome.cc', 'internal/cld2_generated_distinctocta0122.cc', 'internal/cld2_generated_distinctoctachrome.cc', 'internal/cld2_generated_quadchrome_16.cc', 'internal/cld2_generated_quadchrome_2.cc', 'internal/cld_generated_score_quad_octa_0122.cc', 'internal/cld_generated_score_quad_octa_2.cc'], 'defines': [], 'cflags_cc': ['-w', '-std=gnu++98'], 'cflags_cc!': ['-std=gnu++0x'], 'link_settings': {'ldflags': ['-z', 'muldefs']}, 'xcode_settings': {'OTHER_CFLAGS': ['-w'], 'CLANG_CXX_LANGUAGE_STANDARD': 'c++98'}}]}
def handle(event, context): # This lambda function will be triggered by a CloudWatch cron-job. # Collect a list of BD phone numbers and the recipient name # from some file located in an s3 and store in `recipient` variable. # You can collect phone numbers from your google contacts. # Now, validate the phone numbers. If all the numbers are valid, # set value for "action" key as `send` and add "phone_numbers" # key in the response and its value is a list if dict as the # following format. Invalid phone numbers is collected in # the following format too. # [{"name": "Rayhan", "phone": "+8801xxxxxxxxx"}] # Invalid phone numbers and their names. invalid_numbers = [{"name": "Abdullah", "phone": "+8819xxxxxxxx"}] # Value for this variable is set based on the validation. It's # False if some percentage of phone numbers are invalid, otherwise # it's True. It's been sent in event now for simplicity and to check # the state machine functionality. is_valid = event["is_valid"] # Value for this variable will be calculated dynamically. recipients = [{"name": "Rayhan", "phone": "+88018xxxxxxxx"}] message = event.get("message_body") if is_valid: response = { "action": "send", "recipients": recipients, "message": message } else: response = { "action": "reject", "admin_phone": "+88017xxxxxxxx", "invalid_numbers": invalid_numbers } return response # Based on the output from this lambda, the state machine will # decide whether to proceed next. If action is `send`, it invokes # sender_lambda. Otherwise, it invokes rejection_lambda
def handle(event, context): invalid_numbers = [{'name': 'Abdullah', 'phone': '+8819xxxxxxxx'}] is_valid = event['is_valid'] recipients = [{'name': 'Rayhan', 'phone': '+88018xxxxxxxx'}] message = event.get('message_body') if is_valid: response = {'action': 'send', 'recipients': recipients, 'message': message} else: response = {'action': 'reject', 'admin_phone': '+88017xxxxxxxx', 'invalid_numbers': invalid_numbers} return response
print('---------- If Condition ----------') a = 1 if a > 0: print('A is a positive number') print('---------- If Else ----------') a = -1 if a > 0: print('A is a positive number') else: print('A is a negative number') print('---------- If Elif Else ----------') a = 0 if a > 0: print('A is a positive number') elif a < 0: print('A is a negative number') else: print('A is zero') print('---------- Short Hand ----------') a = 1 print('A is positive') if a > 0 else print('A is negative') # first condition met, 'A is positive' will be printed print('---------- Nested Conditions ----------') a = 3 if a > 0: if a % 2 == 0: print('A is a positive and even integer') else: print('A is a positive number') elif a == 0: print('A is zero') else: print('A is a negative number') print('---------- If Condition and Logical Operators ---------') a = 2 if a > 0 and a % 2 == 0: print('A is a positive and even integer') elif a > 0 and a % 2 != 0: print('A is a positive number') elif a == 0: print('A is zero') else: print('A is a negative number') print('---------- If and Or Logical Operators ---------') user = 'ZhangSan' access_level = 1 if user == 'admin' or access_level >= 9: print('Access granted!') else: print('Access denied!')
print('---------- If Condition ----------') a = 1 if a > 0: print('A is a positive number') print('---------- If Else ----------') a = -1 if a > 0: print('A is a positive number') else: print('A is a negative number') print('---------- If Elif Else ----------') a = 0 if a > 0: print('A is a positive number') elif a < 0: print('A is a negative number') else: print('A is zero') print('---------- Short Hand ----------') a = 1 print('A is positive') if a > 0 else print('A is negative') print('---------- Nested Conditions ----------') a = 3 if a > 0: if a % 2 == 0: print('A is a positive and even integer') else: print('A is a positive number') elif a == 0: print('A is zero') else: print('A is a negative number') print('---------- If Condition and Logical Operators ---------') a = 2 if a > 0 and a % 2 == 0: print('A is a positive and even integer') elif a > 0 and a % 2 != 0: print('A is a positive number') elif a == 0: print('A is zero') else: print('A is a negative number') print('---------- If and Or Logical Operators ---------') user = 'ZhangSan' access_level = 1 if user == 'admin' or access_level >= 9: print('Access granted!') else: print('Access denied!')
load( "@bazel_toolchains//rules:docker_config.bzl", "docker_toolchain_autoconfig", ) def _tensorflow_rbe_config(name, compiler, python_version, cuda_version = None, cudnn_version = None, tensorrt_version = None): base = "@ubuntu16.04//image" config_repos = [ "local_config_python", "local_config_cc", ] env = { "ABI_VERSION": "gcc", "ABI_LIBC_VERSION": "glibc_2.19", "BAZEL_COMPILER": compiler, "BAZEL_HOST_SYSTEM": "i686-unknown-linux-gnu", "BAZEL_TARGET_LIBC": "glibc_2.19", "BAZEL_TARGET_CPU": "k8", "BAZEL_TARGET_SYSTEM": "x86_64-unknown-linux-gnu", "CC_TOOLCHAIN_NAME": "linux_gnu_x86", "CC": compiler, "PYTHON_BIN_PATH": "/usr/bin/python%s" % python_version, "CLEAR_CACHE": "1", } if cuda_version != None: base = "@cuda%s-cudnn%s-ubuntu14.04//image" % (cuda_version, cudnn_version) # The cuda toolchain currently contains its own C++ toolchain definition, # so we do not fetch local_config_cc. config_repos = [ "local_config_python", "local_config_cuda", "local_config_tensorrt", ] env.update({ "TF_NEED_CUDA": "1", "TF_CUDA_CLANG": "1" if compiler == "clang" else "0", "TF_CUDA_COMPUTE_CAPABILITIES": "3.0", "TF_ENABLE_XLA": "1", "TF_CUDNN_VERSION": cudnn_version, "TF_CUDA_VERSION": cuda_version, "CUDNN_INSTALL_PATH": "/usr/lib/x86_64-linux-gnu", "TF_NEED_TENSORRT" : "1", "TF_TENSORRT_VERSION": tensorrt_version, "TENSORRT_INSTALL_PATH": "/usr/lib/x86_64-linux-gnu", }) docker_toolchain_autoconfig( name = name, base = base, bazel_version = "0.21.0", config_repos = config_repos, env = env, mount_project = "$(mount_project)", tags = ["manual"], incompatible_changes_off = True, ) tensorflow_rbe_config = _tensorflow_rbe_config
load('@bazel_toolchains//rules:docker_config.bzl', 'docker_toolchain_autoconfig') def _tensorflow_rbe_config(name, compiler, python_version, cuda_version=None, cudnn_version=None, tensorrt_version=None): base = '@ubuntu16.04//image' config_repos = ['local_config_python', 'local_config_cc'] env = {'ABI_VERSION': 'gcc', 'ABI_LIBC_VERSION': 'glibc_2.19', 'BAZEL_COMPILER': compiler, 'BAZEL_HOST_SYSTEM': 'i686-unknown-linux-gnu', 'BAZEL_TARGET_LIBC': 'glibc_2.19', 'BAZEL_TARGET_CPU': 'k8', 'BAZEL_TARGET_SYSTEM': 'x86_64-unknown-linux-gnu', 'CC_TOOLCHAIN_NAME': 'linux_gnu_x86', 'CC': compiler, 'PYTHON_BIN_PATH': '/usr/bin/python%s' % python_version, 'CLEAR_CACHE': '1'} if cuda_version != None: base = '@cuda%s-cudnn%s-ubuntu14.04//image' % (cuda_version, cudnn_version) config_repos = ['local_config_python', 'local_config_cuda', 'local_config_tensorrt'] env.update({'TF_NEED_CUDA': '1', 'TF_CUDA_CLANG': '1' if compiler == 'clang' else '0', 'TF_CUDA_COMPUTE_CAPABILITIES': '3.0', 'TF_ENABLE_XLA': '1', 'TF_CUDNN_VERSION': cudnn_version, 'TF_CUDA_VERSION': cuda_version, 'CUDNN_INSTALL_PATH': '/usr/lib/x86_64-linux-gnu', 'TF_NEED_TENSORRT': '1', 'TF_TENSORRT_VERSION': tensorrt_version, 'TENSORRT_INSTALL_PATH': '/usr/lib/x86_64-linux-gnu'}) docker_toolchain_autoconfig(name=name, base=base, bazel_version='0.21.0', config_repos=config_repos, env=env, mount_project='$(mount_project)', tags=['manual'], incompatible_changes_off=True) tensorflow_rbe_config = _tensorflow_rbe_config
# # PySNMP MIB module Unisphere-Data-COPS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Unisphere-Data-COPS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:23:28 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") iso, Unsigned32, Bits, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, NotificationType, Gauge32, TimeTicks, Integer32, Counter64, ModuleIdentity, Counter32, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Unsigned32", "Bits", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "NotificationType", "Gauge32", "TimeTicks", "Integer32", "Counter64", "ModuleIdentity", "Counter32", "ObjectIdentity") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") usDataMibs, = mibBuilder.importSymbols("Unisphere-Data-MIBs", "usDataMibs") UsdName, = mibBuilder.importSymbols("Unisphere-Data-TC", "UsdName") usdCopsProtocolMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37)) usdCopsProtocolMIB.setRevisions(('2002-01-14 19:01', '2000-02-22 00:00',)) if mibBuilder.loadTexts: usdCopsProtocolMIB.setLastUpdated('200201141901Z') if mibBuilder.loadTexts: usdCopsProtocolMIB.setOrganization('Unisphere Networks, Inc.') usdCopsProtocolObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1)) usdCopsProtocolCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 1)) usdCopsProtocolStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 2)) usdCopsProtocolStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3)) usdCopsProtocolSession = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4)) usdCopsProtocolStatisticsScalars = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1)) usdCopsProtocolSessionsCreated = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionsCreated.setStatus('current') usdCopsProtocolSessionsDeleted = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionsDeleted.setStatus('current') usdCopsProtocolCurrentSessions = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolCurrentSessions.setStatus('current') usdCopsProtocolBytesReceived = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolBytesReceived.setStatus('current') usdCopsProtocolPacketsReceived = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolPacketsReceived.setStatus('current') usdCopsProtocolBytesSent = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolBytesSent.setStatus('current') usdCopsProtocolPacketsSent = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolPacketsSent.setStatus('current') usdCopsProtocolKeepAlivesReceived = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolKeepAlivesReceived.setStatus('current') usdCopsProtocolKeepAlivesSent = MibScalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolKeepAlivesSent.setStatus('current') usdCopsProtocolSessionTable = MibTable((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1), ) if mibBuilder.loadTexts: usdCopsProtocolSessionTable.setStatus('current') usdCopsProtocolSessionEntry = MibTableRow((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1), ).setIndexNames((0, "Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionClientType")) if mibBuilder.loadTexts: usdCopsProtocolSessionEntry.setStatus('current') usdCopsProtocolSessionClientType = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: usdCopsProtocolSessionClientType.setStatus('current') usdCopsProtocolSessionRemoteAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 2), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionRemoteAddress.setStatus('current') usdCopsProtocolSessionRemotePort = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionRemotePort.setStatus('current') usdCopsProtocolSessionBytesReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionBytesReceived.setStatus('current') usdCopsProtocolSessionPacketsReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionPacketsReceived.setStatus('current') usdCopsProtocolSessionBytesSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionBytesSent.setStatus('current') usdCopsProtocolSessionPacketsSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionPacketsSent.setStatus('current') usdCopsProtocolSessionREQSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionREQSent.setStatus('current') usdCopsProtocolSessionDECReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionDECReceived.setStatus('current') usdCopsProtocolSessionRPTSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionRPTSent.setStatus('current') usdCopsProtocolSessionDRQSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionDRQSent.setStatus('current') usdCopsProtocolSessionSSQSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionSSQSent.setStatus('current') usdCopsProtocolSessionOPNSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionOPNSent.setStatus('current') usdCopsProtocolSessionCATReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionCATReceived.setStatus('current') usdCopsProtocolSessionCCSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionCCSent.setStatus('current') usdCopsProtocolSessionCCReceived = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionCCReceived.setStatus('current') usdCopsProtocolSessionSSCSent = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionSSCSent.setStatus('current') usdCopsProtocolSessionLocalAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 18), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionLocalAddress.setStatus('current') usdCopsProtocolSessionTransportRouterName = MibTableColumn((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 19), UsdName()).setMaxAccess("readonly") if mibBuilder.loadTexts: usdCopsProtocolSessionTransportRouterName.setStatus('current') usdCopsProtocolMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4)) usdCopsProtocolMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 1)) usdCopsProtocolMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 2)) usdCopsProtocolAuthCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 1, 1)).setObjects(("Unisphere-Data-COPS-MIB", "usdCopsProtocolGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usdCopsProtocolAuthCompliance = usdCopsProtocolAuthCompliance.setStatus('obsolete') usdCopsProtocolAuthCompliance2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 1, 2)).setObjects(("Unisphere-Data-COPS-MIB", "usdCopsProtocolGroup2")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usdCopsProtocolAuthCompliance2 = usdCopsProtocolAuthCompliance2.setStatus('current') usdCopsProtocolGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 2, 1)).setObjects(("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionsCreated"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionsDeleted"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolCurrentSessions"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolBytesReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolPacketsReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolBytesSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolPacketsSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolKeepAlivesReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolKeepAlivesSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionRemoteAddress"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionRemotePort"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionBytesReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionPacketsReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionBytesSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionPacketsSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionREQSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionDECReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionRPTSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionDRQSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionSSQSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionOPNSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionCATReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionCCSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionCCReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionSSCSent")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usdCopsProtocolGroup = usdCopsProtocolGroup.setStatus('obsolete') usdCopsProtocolGroup2 = ObjectGroup((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 2, 2)).setObjects(("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionsCreated"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionsDeleted"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolCurrentSessions"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolBytesReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolPacketsReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolBytesSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolPacketsSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolKeepAlivesReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolKeepAlivesSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionRemoteAddress"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionRemotePort"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionBytesReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionPacketsReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionBytesSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionPacketsSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionREQSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionDECReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionRPTSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionDRQSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionSSQSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionOPNSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionCATReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionCCSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionCCReceived"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionSSCSent"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionLocalAddress"), ("Unisphere-Data-COPS-MIB", "usdCopsProtocolSessionTransportRouterName")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usdCopsProtocolGroup2 = usdCopsProtocolGroup2.setStatus('current') mibBuilder.exportSymbols("Unisphere-Data-COPS-MIB", usdCopsProtocolSessionCCSent=usdCopsProtocolSessionCCSent, usdCopsProtocolMIBGroups=usdCopsProtocolMIBGroups, usdCopsProtocolCurrentSessions=usdCopsProtocolCurrentSessions, usdCopsProtocolSessionREQSent=usdCopsProtocolSessionREQSent, usdCopsProtocolStatisticsScalars=usdCopsProtocolStatisticsScalars, usdCopsProtocolAuthCompliance=usdCopsProtocolAuthCompliance, usdCopsProtocolMIB=usdCopsProtocolMIB, usdCopsProtocolSessionPacketsReceived=usdCopsProtocolSessionPacketsReceived, usdCopsProtocolSessionDRQSent=usdCopsProtocolSessionDRQSent, usdCopsProtocolSessionsCreated=usdCopsProtocolSessionsCreated, usdCopsProtocolSessionClientType=usdCopsProtocolSessionClientType, usdCopsProtocolKeepAlivesSent=usdCopsProtocolKeepAlivesSent, usdCopsProtocolSessionTransportRouterName=usdCopsProtocolSessionTransportRouterName, usdCopsProtocolSessionLocalAddress=usdCopsProtocolSessionLocalAddress, usdCopsProtocolSessionDECReceived=usdCopsProtocolSessionDECReceived, usdCopsProtocolSessionTable=usdCopsProtocolSessionTable, usdCopsProtocolSessionPacketsSent=usdCopsProtocolSessionPacketsSent, usdCopsProtocolBytesSent=usdCopsProtocolBytesSent, usdCopsProtocolSessionRPTSent=usdCopsProtocolSessionRPTSent, usdCopsProtocolPacketsSent=usdCopsProtocolPacketsSent, usdCopsProtocolMIBConformance=usdCopsProtocolMIBConformance, usdCopsProtocolGroup2=usdCopsProtocolGroup2, usdCopsProtocolObjects=usdCopsProtocolObjects, usdCopsProtocolCfg=usdCopsProtocolCfg, usdCopsProtocolSessionEntry=usdCopsProtocolSessionEntry, usdCopsProtocolSessionRemotePort=usdCopsProtocolSessionRemotePort, usdCopsProtocolSessionBytesReceived=usdCopsProtocolSessionBytesReceived, usdCopsProtocolSessionSSQSent=usdCopsProtocolSessionSSQSent, usdCopsProtocolSessionBytesSent=usdCopsProtocolSessionBytesSent, usdCopsProtocolSessionOPNSent=usdCopsProtocolSessionOPNSent, usdCopsProtocolBytesReceived=usdCopsProtocolBytesReceived, usdCopsProtocolMIBCompliances=usdCopsProtocolMIBCompliances, usdCopsProtocolStatistics=usdCopsProtocolStatistics, usdCopsProtocolKeepAlivesReceived=usdCopsProtocolKeepAlivesReceived, usdCopsProtocolSessionCCReceived=usdCopsProtocolSessionCCReceived, usdCopsProtocolPacketsReceived=usdCopsProtocolPacketsReceived, PYSNMP_MODULE_ID=usdCopsProtocolMIB, usdCopsProtocolSessionCATReceived=usdCopsProtocolSessionCATReceived, usdCopsProtocolSessionSSCSent=usdCopsProtocolSessionSSCSent, usdCopsProtocolSessionsDeleted=usdCopsProtocolSessionsDeleted, usdCopsProtocolGroup=usdCopsProtocolGroup, usdCopsProtocolSession=usdCopsProtocolSession, usdCopsProtocolAuthCompliance2=usdCopsProtocolAuthCompliance2, usdCopsProtocolStatus=usdCopsProtocolStatus, usdCopsProtocolSessionRemoteAddress=usdCopsProtocolSessionRemoteAddress)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (iso, unsigned32, bits, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, notification_type, gauge32, time_ticks, integer32, counter64, module_identity, counter32, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Unsigned32', 'Bits', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'NotificationType', 'Gauge32', 'TimeTicks', 'Integer32', 'Counter64', 'ModuleIdentity', 'Counter32', 'ObjectIdentity') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') (us_data_mibs,) = mibBuilder.importSymbols('Unisphere-Data-MIBs', 'usDataMibs') (usd_name,) = mibBuilder.importSymbols('Unisphere-Data-TC', 'UsdName') usd_cops_protocol_mib = module_identity((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37)) usdCopsProtocolMIB.setRevisions(('2002-01-14 19:01', '2000-02-22 00:00')) if mibBuilder.loadTexts: usdCopsProtocolMIB.setLastUpdated('200201141901Z') if mibBuilder.loadTexts: usdCopsProtocolMIB.setOrganization('Unisphere Networks, Inc.') usd_cops_protocol_objects = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1)) usd_cops_protocol_cfg = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 1)) usd_cops_protocol_status = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 2)) usd_cops_protocol_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3)) usd_cops_protocol_session = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4)) usd_cops_protocol_statistics_scalars = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1)) usd_cops_protocol_sessions_created = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionsCreated.setStatus('current') usd_cops_protocol_sessions_deleted = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionsDeleted.setStatus('current') usd_cops_protocol_current_sessions = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolCurrentSessions.setStatus('current') usd_cops_protocol_bytes_received = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolBytesReceived.setStatus('current') usd_cops_protocol_packets_received = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolPacketsReceived.setStatus('current') usd_cops_protocol_bytes_sent = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolBytesSent.setStatus('current') usd_cops_protocol_packets_sent = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolPacketsSent.setStatus('current') usd_cops_protocol_keep_alives_received = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolKeepAlivesReceived.setStatus('current') usd_cops_protocol_keep_alives_sent = mib_scalar((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 3, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolKeepAlivesSent.setStatus('current') usd_cops_protocol_session_table = mib_table((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1)) if mibBuilder.loadTexts: usdCopsProtocolSessionTable.setStatus('current') usd_cops_protocol_session_entry = mib_table_row((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1)).setIndexNames((0, 'Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionClientType')) if mibBuilder.loadTexts: usdCopsProtocolSessionEntry.setStatus('current') usd_cops_protocol_session_client_type = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: usdCopsProtocolSessionClientType.setStatus('current') usd_cops_protocol_session_remote_address = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 2), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionRemoteAddress.setStatus('current') usd_cops_protocol_session_remote_port = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionRemotePort.setStatus('current') usd_cops_protocol_session_bytes_received = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionBytesReceived.setStatus('current') usd_cops_protocol_session_packets_received = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionPacketsReceived.setStatus('current') usd_cops_protocol_session_bytes_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionBytesSent.setStatus('current') usd_cops_protocol_session_packets_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionPacketsSent.setStatus('current') usd_cops_protocol_session_req_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionREQSent.setStatus('current') usd_cops_protocol_session_dec_received = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionDECReceived.setStatus('current') usd_cops_protocol_session_rpt_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionRPTSent.setStatus('current') usd_cops_protocol_session_drq_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionDRQSent.setStatus('current') usd_cops_protocol_session_ssq_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionSSQSent.setStatus('current') usd_cops_protocol_session_opn_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionOPNSent.setStatus('current') usd_cops_protocol_session_cat_received = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionCATReceived.setStatus('current') usd_cops_protocol_session_cc_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionCCSent.setStatus('current') usd_cops_protocol_session_cc_received = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionCCReceived.setStatus('current') usd_cops_protocol_session_ssc_sent = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionSSCSent.setStatus('current') usd_cops_protocol_session_local_address = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 18), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionLocalAddress.setStatus('current') usd_cops_protocol_session_transport_router_name = mib_table_column((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 1, 4, 1, 1, 19), usd_name()).setMaxAccess('readonly') if mibBuilder.loadTexts: usdCopsProtocolSessionTransportRouterName.setStatus('current') usd_cops_protocol_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4)) usd_cops_protocol_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 1)) usd_cops_protocol_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 2)) usd_cops_protocol_auth_compliance = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 1, 1)).setObjects(('Unisphere-Data-COPS-MIB', 'usdCopsProtocolGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usd_cops_protocol_auth_compliance = usdCopsProtocolAuthCompliance.setStatus('obsolete') usd_cops_protocol_auth_compliance2 = module_compliance((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 1, 2)).setObjects(('Unisphere-Data-COPS-MIB', 'usdCopsProtocolGroup2')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usd_cops_protocol_auth_compliance2 = usdCopsProtocolAuthCompliance2.setStatus('current') usd_cops_protocol_group = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 2, 1)).setObjects(('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionsCreated'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionsDeleted'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolCurrentSessions'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolBytesReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolPacketsReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolBytesSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolPacketsSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolKeepAlivesReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolKeepAlivesSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionRemoteAddress'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionRemotePort'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionBytesReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionPacketsReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionBytesSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionPacketsSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionREQSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionDECReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionRPTSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionDRQSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionSSQSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionOPNSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionCATReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionCCSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionCCReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionSSCSent')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usd_cops_protocol_group = usdCopsProtocolGroup.setStatus('obsolete') usd_cops_protocol_group2 = object_group((1, 3, 6, 1, 4, 1, 4874, 2, 2, 37, 4, 2, 2)).setObjects(('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionsCreated'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionsDeleted'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolCurrentSessions'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolBytesReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolPacketsReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolBytesSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolPacketsSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolKeepAlivesReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolKeepAlivesSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionRemoteAddress'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionRemotePort'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionBytesReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionPacketsReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionBytesSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionPacketsSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionREQSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionDECReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionRPTSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionDRQSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionSSQSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionOPNSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionCATReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionCCSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionCCReceived'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionSSCSent'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionLocalAddress'), ('Unisphere-Data-COPS-MIB', 'usdCopsProtocolSessionTransportRouterName')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): usd_cops_protocol_group2 = usdCopsProtocolGroup2.setStatus('current') mibBuilder.exportSymbols('Unisphere-Data-COPS-MIB', usdCopsProtocolSessionCCSent=usdCopsProtocolSessionCCSent, usdCopsProtocolMIBGroups=usdCopsProtocolMIBGroups, usdCopsProtocolCurrentSessions=usdCopsProtocolCurrentSessions, usdCopsProtocolSessionREQSent=usdCopsProtocolSessionREQSent, usdCopsProtocolStatisticsScalars=usdCopsProtocolStatisticsScalars, usdCopsProtocolAuthCompliance=usdCopsProtocolAuthCompliance, usdCopsProtocolMIB=usdCopsProtocolMIB, usdCopsProtocolSessionPacketsReceived=usdCopsProtocolSessionPacketsReceived, usdCopsProtocolSessionDRQSent=usdCopsProtocolSessionDRQSent, usdCopsProtocolSessionsCreated=usdCopsProtocolSessionsCreated, usdCopsProtocolSessionClientType=usdCopsProtocolSessionClientType, usdCopsProtocolKeepAlivesSent=usdCopsProtocolKeepAlivesSent, usdCopsProtocolSessionTransportRouterName=usdCopsProtocolSessionTransportRouterName, usdCopsProtocolSessionLocalAddress=usdCopsProtocolSessionLocalAddress, usdCopsProtocolSessionDECReceived=usdCopsProtocolSessionDECReceived, usdCopsProtocolSessionTable=usdCopsProtocolSessionTable, usdCopsProtocolSessionPacketsSent=usdCopsProtocolSessionPacketsSent, usdCopsProtocolBytesSent=usdCopsProtocolBytesSent, usdCopsProtocolSessionRPTSent=usdCopsProtocolSessionRPTSent, usdCopsProtocolPacketsSent=usdCopsProtocolPacketsSent, usdCopsProtocolMIBConformance=usdCopsProtocolMIBConformance, usdCopsProtocolGroup2=usdCopsProtocolGroup2, usdCopsProtocolObjects=usdCopsProtocolObjects, usdCopsProtocolCfg=usdCopsProtocolCfg, usdCopsProtocolSessionEntry=usdCopsProtocolSessionEntry, usdCopsProtocolSessionRemotePort=usdCopsProtocolSessionRemotePort, usdCopsProtocolSessionBytesReceived=usdCopsProtocolSessionBytesReceived, usdCopsProtocolSessionSSQSent=usdCopsProtocolSessionSSQSent, usdCopsProtocolSessionBytesSent=usdCopsProtocolSessionBytesSent, usdCopsProtocolSessionOPNSent=usdCopsProtocolSessionOPNSent, usdCopsProtocolBytesReceived=usdCopsProtocolBytesReceived, usdCopsProtocolMIBCompliances=usdCopsProtocolMIBCompliances, usdCopsProtocolStatistics=usdCopsProtocolStatistics, usdCopsProtocolKeepAlivesReceived=usdCopsProtocolKeepAlivesReceived, usdCopsProtocolSessionCCReceived=usdCopsProtocolSessionCCReceived, usdCopsProtocolPacketsReceived=usdCopsProtocolPacketsReceived, PYSNMP_MODULE_ID=usdCopsProtocolMIB, usdCopsProtocolSessionCATReceived=usdCopsProtocolSessionCATReceived, usdCopsProtocolSessionSSCSent=usdCopsProtocolSessionSSCSent, usdCopsProtocolSessionsDeleted=usdCopsProtocolSessionsDeleted, usdCopsProtocolGroup=usdCopsProtocolGroup, usdCopsProtocolSession=usdCopsProtocolSession, usdCopsProtocolAuthCompliance2=usdCopsProtocolAuthCompliance2, usdCopsProtocolStatus=usdCopsProtocolStatus, usdCopsProtocolSessionRemoteAddress=usdCopsProtocolSessionRemoteAddress)
def run(proj,OG): n1 = int(proj.parameters['n1']) OG.add("base","o") for i in range(n1): OG.add("level1",str(i),{},OG["base"]) OG.add("level2","o", {}, OG["base"] + OG["level1"])
def run(proj, OG): n1 = int(proj.parameters['n1']) OG.add('base', 'o') for i in range(n1): OG.add('level1', str(i), {}, OG['base']) OG.add('level2', 'o', {}, OG['base'] + OG['level1'])
if __name__ == '__main__': n = int(input()) arr = list(map(int, input().rstrip().split())) arr.reverse() for i in arr: print(i, end= " ")
if __name__ == '__main__': n = int(input()) arr = list(map(int, input().rstrip().split())) arr.reverse() for i in arr: print(i, end=' ')
class map_config: width=500 height=500 obstacle=[ {"shape":"rectangle","center":(60,70),"width":30,"height":40}, {"shape":"rectangle","center":(350,370),"width":20,"height":50}, {"shape":"circle","center":(250,250),"radius":50}, {"shape":"circle","center":(50,150),"radius":30}, {"shape":"circle","center":(170,110),"radius":20} ] start=(50,100) end=(400,400)
class Map_Config: width = 500 height = 500 obstacle = [{'shape': 'rectangle', 'center': (60, 70), 'width': 30, 'height': 40}, {'shape': 'rectangle', 'center': (350, 370), 'width': 20, 'height': 50}, {'shape': 'circle', 'center': (250, 250), 'radius': 50}, {'shape': 'circle', 'center': (50, 150), 'radius': 30}, {'shape': 'circle', 'center': (170, 110), 'radius': 20}] start = (50, 100) end = (400, 400)
# Basic Sekeleton of Plan - Storing - At Particular Date - City where Tourist is supposed to be # And storing travelling period(starting and ending time of travel) on that day class SkeletonEvent: def __init__(self, planid, date, city, startingTime, endingTime, stayingHotel) -> None: self.planid = planid self.date = date self.city = city self.startingTime = startingTime self.endingTime = endingTime self.stayingHotel = stayingHotel
class Skeletonevent: def __init__(self, planid, date, city, startingTime, endingTime, stayingHotel) -> None: self.planid = planid self.date = date self.city = city self.startingTime = startingTime self.endingTime = endingTime self.stayingHotel = stayingHotel
stock_dict = { 'GE': 'General Electric', 'CAT': 'Caterpillar', 'GM': 'General Motors' } purchases = [ ( 'GE', 100, '10-sep-2001', 48 ), ( 'CAT', 100, '1-apr-1999', 24 ), ( 'GM', 200, '1-jul-1998', 56 ), ( 'GM', 150, '3-jul-1998', 47 ) ] total_portfolio_value = 0 for transaction in purchases: # each transaction is a tuple. stock_ticker = transaction[0] number_of_shares = transaction[1] transaction_date = transaction[2] stock_price = transaction[3] company_name = stock_dict[stock_ticker] purchase_price = number_of_shares * stock_price total_portfolio_value += purchase_price output = ['I bought {0} shares '.format(number_of_shares)] output.append('of {0} stock '.format(company_name)) output.append('at {0} dollars per share, '.format(stock_price)) output.append('for a total price of ${0}.'.format(purchase_price)) print(''.join(partial for partial in output)) # output = ['The total value of my investment in {0} is '.format()] output = ['The total value of my stock portfolio is {0}'.format(total_portfolio_value)] print(output) # could also be something like this: # [print ('I own {0} shares of {1} stock at ${2} for a total of ${3}'.format(p[3], p[0], p[1], (p[1] * p[3])) for p in purchases]
stock_dict = {'GE': 'General Electric', 'CAT': 'Caterpillar', 'GM': 'General Motors'} purchases = [('GE', 100, '10-sep-2001', 48), ('CAT', 100, '1-apr-1999', 24), ('GM', 200, '1-jul-1998', 56), ('GM', 150, '3-jul-1998', 47)] total_portfolio_value = 0 for transaction in purchases: stock_ticker = transaction[0] number_of_shares = transaction[1] transaction_date = transaction[2] stock_price = transaction[3] company_name = stock_dict[stock_ticker] purchase_price = number_of_shares * stock_price total_portfolio_value += purchase_price output = ['I bought {0} shares '.format(number_of_shares)] output.append('of {0} stock '.format(company_name)) output.append('at {0} dollars per share, '.format(stock_price)) output.append('for a total price of ${0}.'.format(purchase_price)) print(''.join((partial for partial in output))) output = ['The total value of my stock portfolio is {0}'.format(total_portfolio_value)] print(output)
N, M, *C = map(int, open(0).read().split()) C.sort() for i in range(N): M -= C[i] if M <= 0: break if M >= 0: print(i + 1) elif M < 0: print(i)
(n, m, *c) = map(int, open(0).read().split()) C.sort() for i in range(N): m -= C[i] if M <= 0: break if M >= 0: print(i + 1) elif M < 0: print(i)
# # PySNMP MIB module ESI-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ESI-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:06:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint", "ValueSizeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibIdentifier, Bits, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, Integer32, ObjectIdentity, Unsigned32, iso, enterprises, Counter32, ModuleIdentity, Counter64, NotificationType, Gauge32, NotificationType = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Bits", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "Integer32", "ObjectIdentity", "Unsigned32", "iso", "enterprises", "Counter32", "ModuleIdentity", "Counter64", "NotificationType", "Gauge32", "NotificationType") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") esi = MibIdentifier((1, 3, 6, 1, 4, 1, 683)) general = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 1)) commands = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 2)) esiSNMP = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 3)) esiSNMPCommands = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 3, 2)) driver = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 4)) tokenRing = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 5)) printServers = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6)) psGeneral = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 1)) psOutput = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 2)) psProtocols = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3)) genProtocols = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 1, 15)) outputCommands = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 2, 2)) outputConfigure = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 2, 3)) outputJobLog = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 2, 6)) trCommands = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 5, 2)) trConfigure = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 5, 3)) tcpip = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 1)) netware = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 2)) vines = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 3)) lanManager = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 4)) eTalk = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 5)) tcpipCommands = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 3)) tcpipConfigure = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4)) tcpipStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 5)) nwCommands = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 3)) nwConfigure = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4)) nwStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 5)) bvCommands = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3)) bvConfigure = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4)) bvStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5)) eTalkCommands = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 3)) eTalkConfigure = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4)) eTalkStatus = MibIdentifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 5)) genGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: genGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: genGroupVersion.setDescription('The version for the general group.') genMIBVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: genMIBVersion.setStatus('mandatory') if mibBuilder.loadTexts: genMIBVersion.setDescription('The version of the MIB.') genProductName = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readonly") if mibBuilder.loadTexts: genProductName.setStatus('mandatory') if mibBuilder.loadTexts: genProductName.setDescription('A textual description of the device.') genProductNumber = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 5))).setMaxAccess("readonly") if mibBuilder.loadTexts: genProductNumber.setStatus('mandatory') if mibBuilder.loadTexts: genProductNumber.setDescription('The product number of the device.') genSerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 7))).setMaxAccess("readonly") if mibBuilder.loadTexts: genSerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: genSerialNumber.setDescription('The serial number of the device.') genHWAddress = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 6), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readonly") if mibBuilder.loadTexts: genHWAddress.setStatus('mandatory') if mibBuilder.loadTexts: genHWAddress.setDescription("The device's hardware address.") genCableType = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("tenbase2", 1), ("tenbaseT", 2), ("aui", 3), ("utp", 4), ("stp", 5), ("fiber100fx", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: genCableType.setStatus('mandatory') if mibBuilder.loadTexts: genCableType.setDescription('Indicates the network cable type connected to the device.') genDateCode = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readonly") if mibBuilder.loadTexts: genDateCode.setStatus('mandatory') if mibBuilder.loadTexts: genDateCode.setDescription("The device's datecode.") genVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 10))).setMaxAccess("readonly") if mibBuilder.loadTexts: genVersion.setStatus('mandatory') if mibBuilder.loadTexts: genVersion.setDescription('A string indicating the version of the firmware.') genConfigurationDirty = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: genConfigurationDirty.setStatus('mandatory') if mibBuilder.loadTexts: genConfigurationDirty.setDescription("A variable's value has been changed which will require that the device be reset or power cycled before it will take effect. Set cmdReset to take this action. A list of critical variables that will cause genConfigurationDirty to be set follows: snmpGetCommunityName, snmpSetCommunityName, trPriority, trEarlyTokenRelease, trPacketSize, trRouting, trLocallyAdminAddr, psJetAdminEnabled, outputType, outputHandshake, tcpipEnabled, tcpipIPAddress, tcpipDefaultGateway, tcpipSubnetMask, tcpipUsingNetProtocols, tcpipBootProtocolsEnabled, tcpipRawPortNumber, tcpipMLPTCPPort, tcpipMLPPort, nwEnabled, nwSetFrameFormat, nwMode, nwPrintServerName, nwPrintServerPassword, nwQueueScanTime, nwFileServerName, nwPortPrinterNumber, nwPortFontDownload, nwPortPCLQueue, nwPortPSQueue, nwPortFormsOn, nwPortNotification, bvEnabled, bvSetSequencedRouting, bvLoginName, bvLoginPassword, bvPrintServiceName, bvPrintServiceRouting, lmEnabled, eTalkEnabled") genCompanyName = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 11), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: genCompanyName.setStatus('mandatory') if mibBuilder.loadTexts: genCompanyName.setDescription('A string indicating the manufacturer of the device.') genCompanyLoc = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 12), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: genCompanyLoc.setStatus('mandatory') if mibBuilder.loadTexts: genCompanyLoc.setDescription('A string indicating the location of the manufacturer of the device.') genCompanyPhone = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readonly") if mibBuilder.loadTexts: genCompanyPhone.setStatus('mandatory') if mibBuilder.loadTexts: genCompanyPhone.setDescription('A string indicating the phone number of the manufacturer of the device.') genCompanyTechSupport = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: genCompanyTechSupport.setStatus('mandatory') if mibBuilder.loadTexts: genCompanyTechSupport.setDescription('A string indicating the technical support information for the device.') genNumProtocols = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 15, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: genNumProtocols.setStatus('mandatory') if mibBuilder.loadTexts: genNumProtocols.setDescription('The number of network protocols supported on the device.') genProtocolTable = MibTable((1, 3, 6, 1, 4, 1, 683, 1, 15, 2), ) if mibBuilder.loadTexts: genProtocolTable.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolTable.setDescription('A list of network protocols. The number of entries is given by the value of genNumProtocols.') genProtocolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 1, 15, 2, 1), ).setIndexNames((0, "ESI-MIB", "genProtocolIndex")) if mibBuilder.loadTexts: genProtocolEntry.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolEntry.setDescription('A network protocol supported on the device.') genProtocolIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 1, 15, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: genProtocolIndex.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolIndex.setDescription("A unique value for each network protocol. Its value ranges between 1 and the value of genNumProtocols. The value for each protocol must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.") genProtocolDescr = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 1, 15, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: genProtocolDescr.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolDescr.setDescription('A textual string describing the network protocol.') genProtocolID = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 1, 15, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("tcp-ip", 1), ("netware", 2), ("vines", 3), ("lanmanger", 4), ("ethertalk", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: genProtocolID.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolID.setDescription('A unique identification number for the network protocol.') genSysUpTimeString = MibScalar((1, 3, 6, 1, 4, 1, 683, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 35))).setMaxAccess("readonly") if mibBuilder.loadTexts: genSysUpTimeString.setStatus('mandatory') if mibBuilder.loadTexts: genSysUpTimeString.setDescription('A string indicating the system up time for the device.') cmdGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cmdGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: cmdGroupVersion.setDescription('The version for the commands group.') cmdReset = MibScalar((1, 3, 6, 1, 4, 1, 683, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cmdReset.setStatus('optional') if mibBuilder.loadTexts: cmdReset.setDescription('A value of 2 will reset the device. The following list of variables will also cause the device to reset itself. cmdRestoreDefaults, snmpRestoreDefaults, trRestoreDefaults, outputRestoreDefaults, tcpipRestoreDefaults, tcpipFirmwareUpgrade, nwRestoreDefaults, nwFirmwareUpgrade, bvRestoreDefaults, bvFirmwareUpgrade, eTalkRestoreDefaults') cmdPrintConfig = MibScalar((1, 3, 6, 1, 4, 1, 683, 2, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cmdPrintConfig.setStatus('optional') if mibBuilder.loadTexts: cmdPrintConfig.setDescription('A value of 2 will cause the device to print a configuration page.') cmdRestoreDefaults = MibScalar((1, 3, 6, 1, 4, 1, 683, 2, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: cmdRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: cmdRestoreDefaults.setDescription('A value of 2 will restore all parameters on the device to factory defaults, as well as reset the device.') snmpGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: snmpGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: snmpGroupVersion.setDescription('The version for the snmp group.') snmpRestoreDefaults = MibScalar((1, 3, 6, 1, 4, 1, 683, 3, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: snmpRestoreDefaults.setDescription('A value of 2 will restore all SNMP parameters on the device to factory defaults, as well as reset the device.') snmpGetCommunityName = MibScalar((1, 3, 6, 1, 4, 1, 683, 3, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpGetCommunityName.setStatus('optional') if mibBuilder.loadTexts: snmpGetCommunityName.setDescription('Get community name for the managed node. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') snmpSetCommunityName = MibScalar((1, 3, 6, 1, 4, 1, 683, 3, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpSetCommunityName.setStatus('optional') if mibBuilder.loadTexts: snmpSetCommunityName.setDescription('Set community name for the managed node. This value cannot be read, just set. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') snmpTrapCommunityName = MibScalar((1, 3, 6, 1, 4, 1, 683, 3, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readwrite") if mibBuilder.loadTexts: snmpTrapCommunityName.setStatus('optional') if mibBuilder.loadTexts: snmpTrapCommunityName.setDescription('Trap community name for the managed node.') driverGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 4, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: driverGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: driverGroupVersion.setDescription('The version for the driver group.') driverRXPackets = MibScalar((1, 3, 6, 1, 4, 1, 683, 4, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: driverRXPackets.setStatus('mandatory') if mibBuilder.loadTexts: driverRXPackets.setDescription('The number of packets received.') driverTXPackets = MibScalar((1, 3, 6, 1, 4, 1, 683, 4, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: driverTXPackets.setStatus('mandatory') if mibBuilder.loadTexts: driverTXPackets.setDescription('The number of packets transmitted.') driverRXPacketsUnavailable = MibScalar((1, 3, 6, 1, 4, 1, 683, 4, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: driverRXPacketsUnavailable.setStatus('mandatory') if mibBuilder.loadTexts: driverRXPacketsUnavailable.setDescription('The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol due to a lack of buffer space.') driverRXPacketErrors = MibScalar((1, 3, 6, 1, 4, 1, 683, 4, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: driverRXPacketErrors.setStatus('mandatory') if mibBuilder.loadTexts: driverRXPacketErrors.setDescription('The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.') driverTXPacketErrors = MibScalar((1, 3, 6, 1, 4, 1, 683, 4, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: driverTXPacketErrors.setStatus('mandatory') if mibBuilder.loadTexts: driverTXPacketErrors.setDescription('The number of outbound packets that could not be transmitted because of errors.') driverTXPacketRetries = MibScalar((1, 3, 6, 1, 4, 1, 683, 4, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: driverTXPacketRetries.setStatus('mandatory') if mibBuilder.loadTexts: driverTXPacketRetries.setDescription('The number of retransmitted packets.') driverChecksumErrors = MibScalar((1, 3, 6, 1, 4, 1, 683, 4, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: driverChecksumErrors.setStatus('mandatory') if mibBuilder.loadTexts: driverChecksumErrors.setDescription('The number of packets containing checksum errors received.') trGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 5, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: trGroupVersion.setDescription('The version for the tokenRing group.') trRestoreDefaults = MibScalar((1, 3, 6, 1, 4, 1, 683, 5, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: trRestoreDefaults.setDescription('A value of 2 will restore all token-ring parameters on the device to factory defaults, as well as reset the device.') trPriority = MibScalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 6))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trPriority.setStatus('optional') if mibBuilder.loadTexts: trPriority.setDescription('The token which is passed around the ring until a station needs it can be assigned a priority from 0 to 6. Priority 0 is the lowest and 6 is the highest. The priority of the device can be increased to improve performance. However, the performance of file servers and crucial stations could be affected. In order for changes to this variable to take effect, the device must be reset. See cmdReset to do this.') trEarlyTokenRelease = MibScalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trEarlyTokenRelease.setStatus('optional') if mibBuilder.loadTexts: trEarlyTokenRelease.setDescription('Early token release allows the device to release the token immediately after transmitting data but only on 16 Mbps systems. This feature enhances ring performance. In order for changes to this variable to take effect, the device must be reset. See cmdReset to do this.') trPacketSize = MibScalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("one-k", 1), ("two-k", 2), ("four-k", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trPacketSize.setStatus('optional') if mibBuilder.loadTexts: trPacketSize.setDescription('You should only change the packet size if you are using a driver for your Token Ring adapter which allows packet sizes greater than One_K. In order for changes to this variable to take effect, the device must be reset. See cmdReset to do this.') trRouting = MibScalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("off", 1), ("all-None", 2), ("single-All", 3), ("single-None", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: trRouting.setStatus('optional') if mibBuilder.loadTexts: trRouting.setDescription('Set this variable to change the source routing configuration on the device. Off: No source routing. All, None: All-routes broadcast, nonbroadcast return. The frame will be transmitted on every route within the network resulting in multiple copies on a given ring. Single, All: Single-route broadcast, all routes broadcast return. The frame will be transmitted across the designated bridges, which will result in the frame appearing only once on each ring. The response frame is on all routes broadcast to the originator. Single, None: Single-route broadcast, nonbroadcast return. The frame will be transmitted across designated bridges, which will result in the frame appearing only once each ring. In order for changes to this variable to take effect, the device must be reset. See cmdReset to do this.') trLocallyAdminAddr = MibScalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: trLocallyAdminAddr.setStatus('optional') if mibBuilder.loadTexts: trLocallyAdminAddr.setDescription('This is the locally administered node address for the device. Valid values are 000000000000 and between 400000000000 and 7FFFFFFFFFFF. A value of 000000000000 indicates that a locally administered address is not in use.') psGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: psGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: psGroupVersion.setDescription('The version for the psGeneral group.') psJetAdminEnabled = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: psJetAdminEnabled.setStatus('mandatory') if mibBuilder.loadTexts: psJetAdminEnabled.setDescription('Indicates whether or not the JetAdmin support is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') psVerifyConfiguration = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("getvalue", 0), ("serial-configuration", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: psVerifyConfiguration.setStatus('optional') if mibBuilder.loadTexts: psVerifyConfiguration.setDescription('This variable is used to force the print server to verify valid configuration settings. Setting the variable to the appropriate enumeration will cause the print server to verify the settings for that enumeration. If the settings are valid, the result of the set will be OK. If the settings are not valid, the result will be BadValue. Gets on this variable will always return 0. 1 - Indicates whether or not the current serial configuration is valid. Valid configurations - If the serial port is set in bidirectional mode, the baud rate must be less than 115200 and the handshaking must be set to hardware handshaking. 2 - Not used yet. ') outputGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outputGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: outputGroupVersion.setDescription('The version for the output group.') outputRestoreDefaults = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 2, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputRestoreDefaults.setStatus('mandatory') if mibBuilder.loadTexts: outputRestoreDefaults.setDescription('A value of 2 will restore all output parameters on the print server to factory defaults, as well as reset the print server.') outputCommandsTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 2, 2, 2), ) if mibBuilder.loadTexts: outputCommandsTable.setStatus('mandatory') if mibBuilder.loadTexts: outputCommandsTable.setDescription('A list of physical output ports. The number of entries is given by the value of outputNumPorts.') outputCommandsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 2, 2, 2, 1), ).setIndexNames((0, "ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: outputCommandsEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputCommandsEntry.setDescription('A physical output port on the print server.') outputCancelCurrentJob = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 2, 2, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputCancelCurrentJob.setStatus('optional') if mibBuilder.loadTexts: outputCancelCurrentJob.setDescription('A value of 2 will cancel the job currently printing on that port.') outputNumPorts = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outputNumPorts.setStatus('mandatory') if mibBuilder.loadTexts: outputNumPorts.setDescription('The number of physical output ports on the print server.') outputTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2), ) if mibBuilder.loadTexts: outputTable.setStatus('mandatory') if mibBuilder.loadTexts: outputTable.setDescription('A list of physical output ports. The number of entries is given by the value of outputNumPorts.') outputEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1), ).setIndexNames((0, "ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: outputEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputEntry.setDescription('A physical output port on the print server.') outputIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outputIndex.setStatus('mandatory') if mibBuilder.loadTexts: outputIndex.setDescription("A unique value for each physical output port. Its value ranges between 1 and the value of outputNumPorts. The value for each protocol must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.") outputName = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputName.setStatus('mandatory') if mibBuilder.loadTexts: outputName.setDescription('A textual description of the output port.') outputStatusString = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputStatusString.setStatus('mandatory') if mibBuilder.loadTexts: outputStatusString.setDescription('A string indicating the status of the physical output port.') outputStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("on-Line", 1), ("off-Line", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputStatus.setStatus('mandatory') if mibBuilder.loadTexts: outputStatus.setDescription('Indicates status of the printer. Get outputExtendedStatus for further information.') outputExtendedStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 15))).clone(namedValues=NamedValues(("none", 1), ("no-Printer-Attached", 2), ("toner-Low", 3), ("paper-Out", 4), ("paper-Jam", 5), ("door-Open", 6), ("printer-Error", 15)))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputExtendedStatus.setStatus('mandatory') if mibBuilder.loadTexts: outputExtendedStatus.setDescription('Indicates printer status to be used in conjunction with outputStatus.') outputPrinter = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("hp-III", 1), ("hp-IIISi", 2), ("ibm", 3), ("no-Specific-Printer", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputPrinter.setStatus('optional') if mibBuilder.loadTexts: outputPrinter.setDescription('The type of printer the output port is attached to. Even if the group is supported, this variable may not be supported.') outputLanguageSwitching = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("off", 1), ("pcl", 2), ("postScript", 3), ("als", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputLanguageSwitching.setStatus('optional') if mibBuilder.loadTexts: outputLanguageSwitching.setDescription('Indicates the language switching option for the physical port. Even if the group is supported, this variable may not be supported.') outputConfigLanguage = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("text", 1), ("pcl", 2), ("postScript", 3), ("off", 4), ("epl-zpl", 5)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputConfigLanguage.setStatus('mandatory') if mibBuilder.loadTexts: outputConfigLanguage.setDescription('Indicates the language that configuration pages will be printed in. If set to off, a config sheet will not be printed on this port.') outputPCLString = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(127, 127)).setFixedLength(127)).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputPCLString.setStatus('optional') if mibBuilder.loadTexts: outputPCLString.setDescription('This string will be sent out the physical port if (1) outputLanguageSwitching is set to PCL or outputLanguageSwitching is set to Auto and the job is determined to be PCL, and (2) outputPrinter is set to No_Specific_Printer. Even if the group is supported, this variable may not be supported.') outputPSString = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 10), OctetString().subtype(subtypeSpec=ValueSizeConstraint(127, 127)).setFixedLength(127)).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputPSString.setStatus('optional') if mibBuilder.loadTexts: outputPSString.setDescription('This string will be sent out the physical port if (1) outputLanguageSwitching is set to PostScript or outputLanguageSwitching is set to Auto and the job is determined to be PostScript, and (2) outputPrinter is set to No_Specific_Printer. Even if the group is supported, this variable may not be supported.') outputCascaded = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputCascaded.setStatus('optional') if mibBuilder.loadTexts: outputCascaded.setDescription("A value of 2 indicates that the physical output port is connected to an Extended System's printer sharing device. Even if the group is supported, this variable may not be supported.") outputSetting = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(32758, 32759, 32760, 32761, 32762, 32763, 32764, 32765, 32766, 32767))).clone(namedValues=NamedValues(("serial-infrared", 32758), ("serial-bidirectional", 32759), ("serial-unidirectional", 32760), ("serial-input", 32761), ("parallel-compatibility-no-bidi", 32762), ("ieee-1284-std-nibble-mode", 32763), ("z-Link", 32764), ("internal", 32765), ("ieee-1284-ecp-or-fast-nibble-mode", 32766), ("extendedLink", 32767)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputSetting.setStatus('mandatory') if mibBuilder.loadTexts: outputSetting.setDescription('Indicates the type (and optionally speed) for the physical output port. Setting this variable to physical connections (such as Parallel) will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') outputOwner = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("no-Owner", 1), ("tcpip", 2), ("netware", 3), ("vines", 4), ("lanManager", 5), ("etherTalk", 6), ("config-Page", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputOwner.setStatus('mandatory') if mibBuilder.loadTexts: outputOwner.setDescription('Indicates which protocol or task currently is printing on the port.') outputBIDIStatusEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputBIDIStatusEnabled.setStatus('optional') if mibBuilder.loadTexts: outputBIDIStatusEnabled.setDescription('A value of 2 indicates that the BIDI status system is enabled.') outputPrinterModel = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 60))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputPrinterModel.setStatus('optional') if mibBuilder.loadTexts: outputPrinterModel.setDescription('A string indicating the printer model attached to the output port.') outputPrinterDisplay = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 16), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputPrinterDisplay.setStatus('optional') if mibBuilder.loadTexts: outputPrinterDisplay.setDescription('A string indicating the message on the attached printer front panel.') outputCapabilities = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 4, 8, 16, 32, 64, 128, 256, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824))).clone(namedValues=NamedValues(("serial-Uni-Baud-9600", 1), ("serial-Uni-Baud-19200", 2), ("serial-Uni-Baud-38400", 4), ("serial-Uni-Baud-57600", 8), ("serial-Uni-Baud-115200", 16), ("serial-bidi-Baud-9600", 32), ("serial-bidi-Baud-19200", 64), ("serial-bidi-Baud-38400", 128), ("serial-bidi-Baud-57600", 256), ("zpl-epl-capable", 262144), ("serial-irin", 524288), ("serial-in", 1048576), ("serial-config-settings", 2097152), ("parallel-compatibility-no-bidi", 4194304), ("ieee-1284-std-nibble-mode", 8388608), ("z-link", 16777216), ("bidirectional", 33554432), ("serial-Software-Handshake", 67108864), ("serial-Output", 134217728), ("extendedLink", 268435456), ("internal", 536870912), ("ieee-1284-ecp-or-fast-nibble-mode", 1073741824)))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputCapabilities.setStatus('mandatory') if mibBuilder.loadTexts: outputCapabilities.setDescription('This field is implemented as a BIT mask. If the bit is set then the port is capable of functioning in this mode. Bit Property --- ------------------------ 0 Serial Unidirectional Baud 9600 1 Serial Unidirectional Baud 19200 2 Serial Unidirectional Baud 38400 3 Serial Unidirectional Baud 57600 4 Serial Unidirectional Baud 115200 5 Serial Bidirectional Baud 9600 6 Serial Bidirectional Baud 19200 7 Serial Bidirectional Baud 38400 8 Serial Bidirectional Baud 57600 19 Infrared Input on serial port 20 Serial Input 21 Serial Configuration Settings 22 Parallel Compatibility Mode (no bidi) 23 IEEE 1284 Standard Nibble Mode 24 ZLink 25 Bidirectional Support (PJL status) 26 Serial Software Handshaking 27 Serial Output 28 Extended Link Technology 29 Printer Internal (MIO) 30 IEEE 1284 ECP or Fast Nibble Mode') outputHandshake = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("not-Supported", 1), ("hardware-Software", 2), ("hardware", 3), ("software", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputHandshake.setStatus('optional') if mibBuilder.loadTexts: outputHandshake.setDescription("If the port in serial mode operation this indicates the handshaking method being used. Setting this value to 'not- supported' will result in an error. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") outputDataBits = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(7, 8, 255))).clone(namedValues=NamedValues(("seven-bits", 7), ("eight-bits", 8), ("not-Supported", 255)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputDataBits.setStatus('optional') if mibBuilder.loadTexts: outputDataBits.setDescription("If the port in serial mode operation this indicates the number of data bits being used. Setting this value to 'not- supported' will result in an error. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") outputStopBits = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 255))).clone(namedValues=NamedValues(("one-bit", 1), ("two-bits", 2), ("not-Supported", 255)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputStopBits.setStatus('optional') if mibBuilder.loadTexts: outputStopBits.setDescription("If the port in serial mode operation this indicates the number of stop bits being used. Setting this value to 'not- supported' will result in an error. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") outputParity = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 255))).clone(namedValues=NamedValues(("none", 1), ("odd", 2), ("even", 3), ("not-Supported", 255)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputParity.setStatus('optional') if mibBuilder.loadTexts: outputParity.setDescription("If the port in serial mode operation this indicates the parity checking method being used. Setting this value to 'not- supported' will result in an error. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") outputBaudRate = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("unidirectional-9600", 1), ("unidirectional-19200", 2), ("unidirectional-38400", 3), ("unidirectional-57600", 4), ("unidirectional-115200", 5), ("bidirectional-9600", 6), ("bidirectional-19200", 7), ("bidirectional-38400", 8), ("bidirectional-57600", 9)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: outputBaudRate.setStatus('optional') if mibBuilder.loadTexts: outputBaudRate.setDescription('If the port in serial mode operation this indicates the baud rate being used. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') outputProtocolManager = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("protocol-none", 0), ("protocol-compatibility", 1), ("protocol-1284-4", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputProtocolManager.setStatus('optional') if mibBuilder.loadTexts: outputProtocolManager.setDescription(' Indicates the type of output protocol manager being used on the port. Protocol-none means either there is no printer attached or the print server has not yet determined which output managers are supported on the printer. Protocol-compatibility means the printer does not support any of the protocol managers supported by the print server. Protocol-1284-4 means the output is using the 1284.4 logical port protocol manager. ') outputDisplayMask = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outputDisplayMask.setStatus('mandatory') if mibBuilder.loadTexts: outputDisplayMask.setDescription('Bit mask describing what should be displayed by the utilities bit Description --- ----------- 0 outputCancelCurrentJob (Includes all CancelCurrentJob info) 1 outputName 2 outputStatusString 3 outputStatus 4 outputExtendedStatus 5 outputPrinter 6 outputLanguageSwitching 7 outputConfigLanguage 8 outputString (Includes outputPCLString and outputPSString) 9 outputCascaded 10 outputSetting 11 outputOwner 12 outputBIDIStatusEnabled 13 outputPrinterModel 14 outputPrinterDisplay 15 outputHandshake 16 outputJobLog (includes all job logging) 17 outputSerialConfig') outputAvailableTrapsMask = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outputAvailableTrapsMask.setStatus('mandatory') if mibBuilder.loadTexts: outputAvailableTrapsMask.setDescription('Bit mask describing what output printer traps are available bit Description --- ----------- 0 online 1 offline 2 printer attached 3 toner low 4 paper out 5 paper jam 6 door open 7 printer error') outputNumLogEntries = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outputNumLogEntries.setStatus('mandatory') if mibBuilder.loadTexts: outputNumLogEntries.setDescription('The number of job log entries per output port.') outputJobLogTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 2), ) if mibBuilder.loadTexts: outputJobLogTable.setStatus('mandatory') if mibBuilder.loadTexts: outputJobLogTable.setDescription('A 2 dimensional list of Job log entries indexed by the output port number and the log entry index (1 through outputNumJobLogEntries). The number of entries per output port is given by the value of outputNumJobLogEntries.') outputJobLogEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 2, 1), ).setIndexNames((0, "ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: outputJobLogEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputJobLogEntry.setDescription('A Job log entry.') outputJobLogInformation = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 2, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputJobLogInformation.setStatus('mandatory') if mibBuilder.loadTexts: outputJobLogInformation.setDescription('A textual description of print job information. The protocol, source, and file size are always included. Other information such as File Server, Queue, File Name, etc will be included if available.') outputJobLogTime = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 2, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 50))).setMaxAccess("readonly") if mibBuilder.loadTexts: outputJobLogTime.setStatus('mandatory') if mibBuilder.loadTexts: outputJobLogTime.setDescription('A string indicating the elasped time since the last job was printed. Reported in form X hours X minutes X seconds.') outputTotalJobTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 3), ) if mibBuilder.loadTexts: outputTotalJobTable.setStatus('mandatory') if mibBuilder.loadTexts: outputTotalJobTable.setDescription('Table showing the total number of jobs printed for each port.') outputTotalJobEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 3, 1), ).setIndexNames((0, "ESI-MIB", "outputTotalJobIndex")) if mibBuilder.loadTexts: outputTotalJobEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputTotalJobEntry.setDescription('An entry in the outputTotalJobTable.') outputTotalJobIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outputTotalJobIndex.setStatus('mandatory') if mibBuilder.loadTexts: outputTotalJobIndex.setDescription('A unique value for entry in the outputTotalJobTable. Its value ranges between 1 and the value of numPorts.') outputTotalJobsLogged = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 3, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outputTotalJobsLogged.setStatus('mandatory') if mibBuilder.loadTexts: outputTotalJobsLogged.setDescription('The total number of jobs printed by the port since the print server was powered on. ') tcpipGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: tcpipGroupVersion.setDescription('The version for the tcpip group.') tcpipEnabled = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipEnabled.setStatus('optional') if mibBuilder.loadTexts: tcpipEnabled.setDescription('Indicates whether or not the tcpip protocol stack is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpipRestoreDefaults = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: tcpipRestoreDefaults.setDescription('A value of 2 will restore all tcpip parameters on the print server to factory defaults, as well as reset the print server.') tcpipFirmwareUpgrade = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipFirmwareUpgrade.setStatus('optional') if mibBuilder.loadTexts: tcpipFirmwareUpgrade.setDescription('A value of 2 will put the print server into firmware upgrade mode waiting to receive a firmware upgrade file via tftp.') tcpipIPAddress = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipIPAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipIPAddress.setDescription('The Internet Address. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpipDefaultGateway = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipDefaultGateway.setStatus('optional') if mibBuilder.loadTexts: tcpipDefaultGateway.setDescription('The default gateway for the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpipSubnetMask = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSubnetMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSubnetMask.setDescription('The subnet mask for the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpipUsingNetProtocols = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipUsingNetProtocols.setStatus('optional') if mibBuilder.loadTexts: tcpipUsingNetProtocols.setDescription('A value of 2 indicates that the print server is using a combination of RARP, BOOTP, default IP address, or gleaning to determine its IP address. See tcpipBootProtocolsEnabled to determine which boot protocols are enabled. If the value of tcpipUsingNetProtocols is 1, the IP address is stored permanently in flash memory. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpipBootProtocolsEnabled = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipBootProtocolsEnabled.setStatus('optional') if mibBuilder.loadTexts: tcpipBootProtocolsEnabled.setDescription("This is the 16 bit mask which determines which boot protocols will be used to determine the print server's IP address. BIT Boot Protocol Enabled --- -------------------------- 0 RARP 1 BootP 2 DHCP 3 Gleaning 4 Default Address Enabled (If no address after 2 minutes timeout and go to 198.102.102.254) A value of 31 indicates that all boot protocols are enabled. These protocols will only be used if tcpipUsingNetProtocols is set to 2. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") tcpipIPAddressSource = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("permanent", 1), ("default", 2), ("rarp", 3), ("bootp", 4), ("dhcp", 5), ("glean", 6)))).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipIPAddressSource.setStatus('optional') if mibBuilder.loadTexts: tcpipIPAddressSource.setDescription('This variable indicates how the IP address for the print server was determined.') tcpipIPAddressServerAddress = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 7), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipIPAddressServerAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipIPAddressServerAddress.setDescription('This variable indicates the source of the IP address if a boot protocol was used. This value will be 0.0.0.0 if no boot server was used.') tcpipTimeoutChecking = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipTimeoutChecking.setStatus('optional') if mibBuilder.loadTexts: tcpipTimeoutChecking.setDescription('A value of 2 indicates that a packet timeout will be active on all tcp connections. If a packet has not been received from the connection within this timeout the connection will be reset. To set this timeout, see tcpipTimeoutCheckingValue') tcpipNumTraps = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 9), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipNumTraps.setStatus('mandatory') if mibBuilder.loadTexts: tcpipNumTraps.setDescription('The number of UDP trap destinations.') tcpipTrapTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10), ) if mibBuilder.loadTexts: tcpipTrapTable.setStatus('mandatory') if mibBuilder.loadTexts: tcpipTrapTable.setDescription('A list of UDP trap definitions. The number of entries is given by the value of tcpipNumTraps.') tcpipTrapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1), ).setIndexNames((0, "ESI-MIB", "tcpipTrapIndex")) if mibBuilder.loadTexts: tcpipTrapEntry.setStatus('mandatory') if mibBuilder.loadTexts: tcpipTrapEntry.setDescription('An entry in the tcpipTrapTable.') tcpipTrapIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipTrapIndex.setStatus('mandatory') if mibBuilder.loadTexts: tcpipTrapIndex.setDescription('A unique value for entry in the tcpipTrapTable. Its value ranges between 1 and the value of tcpipNumTraps.') tcpipTrapDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipTrapDestination.setStatus('optional') if mibBuilder.loadTexts: tcpipTrapDestination.setDescription('This is the IP address that traps are sent to. A value of 0.0.0.0 will disable traps over UDP.') tcpipProtocolTrapMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipProtocolTrapMask.setStatus('optional') if mibBuilder.loadTexts: tcpipProtocolTrapMask.setDescription('This is the 16 bit mask which determines which protocol specific traps will be sent out via UDP. Currently no protocol specific traps are supported.') tcpipPrinterTrapMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipPrinterTrapMask.setStatus('optional') if mibBuilder.loadTexts: tcpipPrinterTrapMask.setDescription('This is the 16 bit mask which determines which printer specific traps will be sent out via UDP. A value of 65535 indicates that all printer specific traps should be reported via UDP. BIT CONDITION --- -------------------------- 0 On-line (Condition cleared) 1 Off-line 2 No printer attached 3 Toner Low 4 Paper Out 5 Paper Jam 6 Door Open 15 Printer Error') tcpipOutputTrapMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipOutputTrapMask.setStatus('optional') if mibBuilder.loadTexts: tcpipOutputTrapMask.setDescription('This is the 16 bit mask which determines which physical output ports will be checked when generating printer specific traps to be sent out via UDP. A value of 65535 indicates that all physical output ports will generate traps. BIT CONDITION --- -------------------------- 0 Port 1 1 Port 2 2 Port 3 3 Port 4 ... ...') tcpipBanners = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipBanners.setStatus('optional') if mibBuilder.loadTexts: tcpipBanners.setDescription('A value of 2 indicates that banners will be printed with tcpip jobs. Even if the group is supported, this variable may not be supported.') tcpipWinsAddress = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 12), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWinsAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipWinsAddress.setDescription('The IP address of the WINS server. The print server will register its sysName to this WINS server.') tcpipWinsAddressSource = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("dhcp", 1), ("permanent", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWinsAddressSource.setStatus('optional') if mibBuilder.loadTexts: tcpipWinsAddressSource.setDescription('The source of the WINS server address. If set to dhcp, the print server will use the WINS address supplied with dhcp. If it is set to permanent, it will use the WINS address stored in flash.') tcpipConfigPassword = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(5, 24))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipConfigPassword.setStatus('optional') if mibBuilder.loadTexts: tcpipConfigPassword.setDescription('The print server html/telnet configuration password. This value cannot be read, just set.') tcpipTimeoutCheckingValue = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipTimeoutCheckingValue.setStatus('optional') if mibBuilder.loadTexts: tcpipTimeoutCheckingValue.setDescription('The TCP connection timeout in seconds. A value of 0 has the same effect as disabling timeout checking.') tcpipArpInterval = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 16), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipArpInterval.setStatus('optional') if mibBuilder.loadTexts: tcpipArpInterval.setDescription('The ARP interval in minutes. The print server will ARP itself once when this timer expires. Set to 0 to disable.') tcpipRawPortNumber = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 17), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipRawPortNumber.setStatus('optional') if mibBuilder.loadTexts: tcpipRawPortNumber.setDescription('The raw TCP port number the print server will listen for print jobs on. On multiple port devices, additional ports will sequentially follow this port number. The default port is 9100. Setting this value to a TCP port that is in use by another TCP application will return an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpipNumSecurity = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipNumSecurity.setStatus('mandatory') if mibBuilder.loadTexts: tcpipNumSecurity.setDescription('The number of secure IP address ranges.') tcpipSecurityTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19), ) if mibBuilder.loadTexts: tcpipSecurityTable.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSecurityTable.setDescription('A list of secure IP address ranges. This adds security for both printing and admin rights. AdminEnabled: When the admin enabled field is set to yes for a secure address range, the print server may only be configured via IP from IP address within that range. If the admin field is not set for any address ranges, the print server will accept admin commands from any IP address which has the valid community names and/or passwords. PortMask: When there is a port mask set for a secure IP address range, the print server will only accept TCP/IP print jobs from hosts that are in the secure address range. If there are no ranges with a port mask set, the print server will accept TCP/IP print jobs from any host. The number of entries is given by the value of tcpipNumSecurity.') tcpipSecurityEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1), ).setIndexNames((0, "ESI-MIB", "tcpipSecurityIndex")) if mibBuilder.loadTexts: tcpipSecurityEntry.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSecurityEntry.setDescription('An entry in the tcpipSecurityTable.') tcpipSecurityIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipSecurityIndex.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSecurityIndex.setDescription('A unique value for entry in the tcpipSecurityTable. Its value ranges between 1 and the value of tcpipNumSecurity.') tcpipSecureStartIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 2), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSecureStartIPAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipSecureStartIPAddress.setDescription('This is the starting IP address for the secure IP address range. A value of 0.0.0.0 for both tcpipStartIPAddress and tcpipEndIPAddress will disable the address range.') tcpipSecureEndIPAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSecureEndIPAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipSecureEndIPAddress.setDescription('This is the ending IP address for the secure IP address range. A value of 0.0.0.0 for both tcpipStartIPAddress and tcpipEndIPAddress will disable the address range.') tcpipSecurePrinterMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSecurePrinterMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSecurePrinterMask.setDescription('This is the 8 bit mask which determines which physical output ports this range of IP addresses can print to. A value of 127 indicates that the range of IP addresses can print to any of the output ports. This value can not be configured until a valid start and end address range have been configured. BIT CONDITION --- -------------------------- 0 Port 1 1 Port 2 2 Port 3 3 Port 4 ... ... 8 Reserved, must be set to 0.') tcpipSecureAdminEnabled = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSecureAdminEnabled.setStatus('optional') if mibBuilder.loadTexts: tcpipSecureAdminEnabled.setDescription(' This allows an advanced level of admin security for IP. Setting this will restrict which IP addresses can configure the print server. The correct community names and passwords are still required if this is used, it just adds another level of security. Indicates whether or not admin rights are enabled for this range of IP addresses. If no range of addresses has this enabled, then any IP address can configure the print server if it has the correct community names and/or passwords. If this field is set to yes for any range of addresses, the print server will only be configurable via IP from that range of addresses. This value can not be configured until a valid start and end address range have been configured.') tcpipLowBandwidth = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipLowBandwidth.setStatus('optional') if mibBuilder.loadTexts: tcpipLowBandwidth.setDescription('A value of 2 will optimize the TCP stack for low bandwidth networks. A value of 1 will optimize the TCP stack for high bandwidth networks.') tcpipNumLogicalPrinters = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 21), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipNumLogicalPrinters.setStatus('mandatory') if mibBuilder.loadTexts: tcpipNumLogicalPrinters.setDescription('The number of available logical printers.') tcpipMLPTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22), ) if mibBuilder.loadTexts: tcpipMLPTable.setStatus('mandatory') if mibBuilder.loadTexts: tcpipMLPTable.setDescription('A table of the available logical printers. The number of entries is given by the value of tcpipNumLogicalPrinters.') tcpipMLPEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1), ).setIndexNames((0, "ESI-MIB", "tcpipMLPIndex")) if mibBuilder.loadTexts: tcpipMLPEntry.setStatus('mandatory') if mibBuilder.loadTexts: tcpipMLPEntry.setDescription('An entry in the tcpipMLPTable.') tcpipMLPIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipMLPIndex.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPIndex.setDescription('A unique value for entry in the tcpipMLPTable. Its value ranges between 1 and the value of tcpipNumLogicalPrinters.') tcpipMLPName = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 20))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipMLPName.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPName.setDescription('Contains the name of the logical printer. This name is also the LPR remote queue name associated with the logical printer.') tcpipMLPPort = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipMLPPort.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPPort.setDescription('The number of the physical output port associated with the logical printer. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpipMLPTCPPort = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipMLPTCPPort.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPTCPPort.setDescription('The TCP port associated with the logical printer. Any print data sent to this TCP port will be processed through this logical printer entry. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpipMLPPreString = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipMLPPreString.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPPreString.setDescription("This contains any data that should be sent down to the printer at the beginning of jobs sent to this logical printer. To enter non-printable ascii characters in the string, enclose the decimal value inside of <>. For example, to enter an ESC-E the string would be '<27>E'.") tcpipMLPPostString = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipMLPPostString.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPPostString.setDescription("This contains any data that should be sent down to the printer at the end of jobs sent to this logical printer. To enter non-printable ascii characters in the string, enclose the decimal value inside of <>. For example, to enter an ESC-E the string would be '<27>E'.") tcpipMLPDeleteBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 7), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipMLPDeleteBytes.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPDeleteBytes.setDescription('The number of bytes that will be deleted from the beginning of jobs sent to this logical printer.') tcpipSmtpServerAddr = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 23), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSmtpServerAddr.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpServerAddr.setDescription('The IP address of the e-mail server which will be used to send e-mail notification of printer status conditions. This address must contain the valid IP address of an e-mail server before any of the contents of the SmtpTable are used.') tcpipNumSmtpDestinations = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 24), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipNumSmtpDestinations.setStatus('mandatory') if mibBuilder.loadTexts: tcpipNumSmtpDestinations.setDescription('The number of configurable e-mail destinations to receive printer status conditions. ') tcpipSmtpTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25), ) if mibBuilder.loadTexts: tcpipSmtpTable.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSmtpTable.setDescription('A list of SMTP e-mail addresses and printer status conditions to send e-mails for. The number of entries is given by the value of tcpipNumSmtpDestinations.') tcpipSmtpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1), ).setIndexNames((0, "ESI-MIB", "tcpipSmtpIndex")) if mibBuilder.loadTexts: tcpipSmtpEntry.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSmtpEntry.setDescription('An entry in the tcpipSmtpTable.') tcpipSmtpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipSmtpIndex.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSmtpIndex.setDescription('A unique value for entry in the tcpipSmtpTable. Its value ranges between 1 and the value of tcpipNumSmtpDestinations.') tcpipSmtpEmailAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSmtpEmailAddr.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpEmailAddr.setDescription('This is the e-mail address that printer status conditions are sent to. If this string is empty the status conditions will not be sent.') tcpipSmtpProtocolMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSmtpProtocolMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpProtocolMask.setDescription('This is the 16 bit mask which determines which protocol specific conditions will be sent out via e-mail. Currently no protocol specific conditions are supported.') tcpipSmtpPrinterMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSmtpPrinterMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpPrinterMask.setDescription('This is the 16 bit mask which determines which printer specific conditions will be sent out via e-mail. A value of 65535 indicates that all printer specific conditions should be reported via e-mail. BIT CONDITION --- -------------------------- 0 On-line (Condition cleared) 1 Off-line 2 No printer attached 3 Toner Low 4 Paper Out 5 Paper Jam 6 Door Open 15 Printer Error') tcpipSmtpOutputMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipSmtpOutputMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpOutputMask.setDescription('This is the 16 bit mask which determines which physical output ports will be checked when generating printer specific conditions to be sent out via e-mail. A value of 65535 indicates that all physical output ports will generate e-mails upon a change in status. BIT CONDITION --- -------------------------- 0 Port 1 1 Port 2 2 Port 3 3 Port 4 ... ...') tcpipWebAdminName = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 26), OctetString().subtype(subtypeSpec=ValueSizeConstraint(25, 25)).setFixedLength(25)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWebAdminName.setStatus('optional') if mibBuilder.loadTexts: tcpipWebAdminName.setDescription('This is the admin name used by web configuration for login.') tcpipWebAdminPassword = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 27), OctetString().subtype(subtypeSpec=ValueSizeConstraint(25, 25)).setFixedLength(25)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWebAdminPassword.setStatus('optional') if mibBuilder.loadTexts: tcpipWebAdminPassword.setDescription('This is the admin password used by web configuration for login.') tcpipWebUserName = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 28), OctetString().subtype(subtypeSpec=ValueSizeConstraint(25, 25)).setFixedLength(25)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWebUserName.setStatus('optional') if mibBuilder.loadTexts: tcpipWebUserName.setDescription('This is the user name used by web configuration for login. Not currently used. ') tcpipWebUserPassword = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 29), OctetString().subtype(subtypeSpec=ValueSizeConstraint(25, 25)).setFixedLength(25)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWebUserPassword.setStatus('optional') if mibBuilder.loadTexts: tcpipWebUserPassword.setDescription('This is the user password used by web configuration for login. Not currently used.') tcpipWebHtttpPort = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 30), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWebHtttpPort.setStatus('optional') if mibBuilder.loadTexts: tcpipWebHtttpPort.setDescription('The port number used to communicate over http. Must be between 0 and 65535. It must not be the same as any other port used. Other ports used are 20, 21, 23, 515, & raw port numbers (9100, 9101, ... if at default)') tcpipWebFaqURL = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 31), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWebFaqURL.setStatus('optional') if mibBuilder.loadTexts: tcpipWebFaqURL.setDescription('This is the URL for FAQ at the ESI (or other OEM) website.') tcpipWebUpdateURL = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 32), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWebUpdateURL.setStatus('optional') if mibBuilder.loadTexts: tcpipWebUpdateURL.setDescription('This is the URL for finding firmware updates at the ESI (or other OEM) website.') tcpipWebCustomLinkName = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 33), OctetString().subtype(subtypeSpec=ValueSizeConstraint(25, 25)).setFixedLength(25)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWebCustomLinkName.setStatus('optional') if mibBuilder.loadTexts: tcpipWebCustomLinkName.setDescription('This is the name assigned to the custom link defined by the user.') tcpipWebCustomLinkURL = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 34), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipWebCustomLinkURL.setStatus('optional') if mibBuilder.loadTexts: tcpipWebCustomLinkURL.setDescription('This is the URL for a custom link specified by the user.') tcpipPOP3ServerAddress = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 35), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipPOP3ServerAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipPOP3ServerAddress.setDescription('The IP address of the POP3 server from which email will be retrieved. This address must contain the valid IP address of a POP3 server before any attempts to retrieve email will be made.') tcpipPOP3PollInterval = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 36), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipPOP3PollInterval.setStatus('mandatory') if mibBuilder.loadTexts: tcpipPOP3PollInterval.setDescription('The number of seconds between attempts to retrieve mail from the POP3 server. ') tcpipPOP3UserName = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 37), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipPOP3UserName.setStatus('optional') if mibBuilder.loadTexts: tcpipPOP3UserName.setDescription("This is the user name for the print server's email account on the POP3 server.") tcpipPOP3Password = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 38), OctetString().subtype(subtypeSpec=ValueSizeConstraint(20, 20)).setFixedLength(20)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipPOP3Password.setStatus('optional') if mibBuilder.loadTexts: tcpipPOP3Password.setDescription("This is the password for the print server's email account on the POP3 server.") tcpipDomainName = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 39), OctetString().subtype(subtypeSpec=ValueSizeConstraint(64, 64)).setFixedLength(64)).setMaxAccess("readwrite") if mibBuilder.loadTexts: tcpipDomainName.setStatus('optional') if mibBuilder.loadTexts: tcpipDomainName.setDescription('This is the Domain name used by POP3 and SMTP.') tcpipError = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 5, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipError.setStatus('optional') if mibBuilder.loadTexts: tcpipError.setDescription('Contains any tcpip specific error information.') tcpipDisplayMask = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: tcpipDisplayMask.setStatus('mandatory') if mibBuilder.loadTexts: tcpipDisplayMask.setDescription('Bit mask describing what should be displayed by the utilities bit Description --- ----------- 0 tcpipAddress (Includes tcpipDefaultGateway and tcpipSubnetMask) 1 tcpipUsingNetProtocols (Includes tcpipBootProtocolsEnabled, tcpipAddressSource, tcpipAddressServerAddress) 2 tcpipTimeoutChecking 3 tcpipTraps (Includes all trap info) 4 tcpipBanners 5 tcpipSecurity (Includes all security info) 6 tcpipWinsAddress (Includes tcpipWinsAddressSource) 7 tcpipConfigPassword 8 tcpipTimeoutCheckingValue 9 tcpipArpInterval 10 tcpipRawPortNumber 11 tcpipError 12 tcpipLowBandwidth 13 tcpipMLP (Includes all logical printer settings)') nwGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: nwGroupVersion.setDescription('The version for the netware group.') nwEnabled = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwEnabled.setStatus('optional') if mibBuilder.loadTexts: nwEnabled.setDescription('Indicates whether or not the NetWare protocol stack is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwRestoreDefaults = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: nwRestoreDefaults.setDescription('A value of 2 will restore all NetWare parameters on the print server to factory defaults, as well as reset the print server.') nwFirmwareUpgrade = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwFirmwareUpgrade.setStatus('optional') if mibBuilder.loadTexts: nwFirmwareUpgrade.setDescription('A value of 2 will put the print server into firmware upgrade mode.') nwFrameFormat = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("unknown", 1), ("ethernet-II", 2), ("ethernet-802-3", 3), ("ethernet-802-2", 4), ("ethernet-Snap", 5), ("token-Ring", 6), ("token-Ring-Snap", 7)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwFrameFormat.setStatus('optional') if mibBuilder.loadTexts: nwFrameFormat.setDescription('Indicates the frame format that the print server is using. See nwSetFrameFormat to determine which frame frame format the print server is configured for.') nwSetFrameFormat = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("auto-Sense", 1), ("forced-Ethernet-II", 2), ("forced-Ethernet-802-3", 3), ("forced-Ethernet-802-2", 4), ("forced-Ethernet-Snap", 5), ("forced-Token-Ring", 6), ("forced-Token-Ring-Snap", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwSetFrameFormat.setStatus('optional') if mibBuilder.loadTexts: nwSetFrameFormat.setDescription('Indicates the frame format that the print server is using. Setting this value to 1 (Auto_Sense) indicates that automatic frame format sensing will be used. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwMode = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("unknown", 1), ("pserver", 2), ("rprinter", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwMode.setStatus('optional') if mibBuilder.loadTexts: nwMode.setDescription('Mode the print server is running in. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwPrintServerName = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPrintServerName.setStatus('optional') if mibBuilder.loadTexts: nwPrintServerName.setDescription('Contains print server name. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwPrintServerPassword = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 9))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPrintServerPassword.setStatus('optional') if mibBuilder.loadTexts: nwPrintServerPassword.setDescription('The print server password. This value cannot be read, just set. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwQueueScanTime = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwQueueScanTime.setStatus('optional') if mibBuilder.loadTexts: nwQueueScanTime.setDescription('Determines how often, in tenths of a second that the print server will scan the queues for jobs. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwNetworkNumber = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readonly") if mibBuilder.loadTexts: nwNetworkNumber.setStatus('optional') if mibBuilder.loadTexts: nwNetworkNumber.setDescription("The print server's network number.") nwMaxFileServers = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 8), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwMaxFileServers.setStatus('optional') if mibBuilder.loadTexts: nwMaxFileServers.setDescription('The print server maximum number of file servers which it can be attached to at once.') nwFileServerTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9), ) if mibBuilder.loadTexts: nwFileServerTable.setStatus('optional') if mibBuilder.loadTexts: nwFileServerTable.setDescription('A table of file servers to service.') nwFileServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9, 1), ).setIndexNames((0, "ESI-MIB", "nwFileServerIndex")) if mibBuilder.loadTexts: nwFileServerEntry.setStatus('optional') if mibBuilder.loadTexts: nwFileServerEntry.setDescription('A file server for the print server to service.') nwFileServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwFileServerIndex.setStatus('optional') if mibBuilder.loadTexts: nwFileServerIndex.setDescription("A unique value for each file server. Its value ranges between 1 and the value of nwMaxFileServers. The value for each server must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization. The first entry in the table is the default file server.") nwFileServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwFileServerName.setStatus('optional') if mibBuilder.loadTexts: nwFileServerName.setDescription('The file server name. This name will be NULL if there is no file server to be serviced. Only the default file server (the first entry in the table) can be set. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwFileServerConnectionStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 258, 261, 276, 512, 515, 768, 769, 32767))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("startupInProgress", 3), ("serverReattaching", 4), ("serverNeverAttached", 5), ("pse-UNKNOWN-FILE-SERVER", 258), ("pse-NO-RESPONSE", 261), ("pse-CANT-LOGIN", 276), ("pse-NO-SUCH-QUEUE", 512), ("pse-UNABLE-TO-ATTACH-TO-QUEUE", 515), ("bad-CONNECTION", 768), ("bad-SERVICE-CONNECTION", 769), ("other", 32767)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwFileServerConnectionStatus.setStatus('optional') if mibBuilder.loadTexts: nwFileServerConnectionStatus.setDescription('The value describes the status of the connection between the file server and the print server.') nwPortTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10), ) if mibBuilder.loadTexts: nwPortTable.setStatus('optional') if mibBuilder.loadTexts: nwPortTable.setDescription('A table of NetWare port specific information.') nwPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1), ).setIndexNames((0, "ESI-MIB", "nwPortIndex")) if mibBuilder.loadTexts: nwPortEntry.setStatus('optional') if mibBuilder.loadTexts: nwPortEntry.setDescription('An entry of NetWare port specific information.') nwPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwPortIndex.setStatus('optional') if mibBuilder.loadTexts: nwPortIndex.setDescription("A unique value for each physical output port. Its value ranges between 1 and the value of outputNumPorts. The value for each port must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.") nwPortStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwPortStatus.setStatus('optional') if mibBuilder.loadTexts: nwPortStatus.setDescription('A string indicating the NetWare specific status of the physical output port.') nwPortPrinterNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPortPrinterNumber.setStatus('optional') if mibBuilder.loadTexts: nwPortPrinterNumber.setDescription('Indicates the printer number for the print server to use when running in RPRinter mode. A value of 255 indicates that the port is unconfigured for RPRinter mode. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwPortFontDownload = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("disabled", 1), ("enabled-No-Power-Sense", 2), ("enabled-Power-Sense", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPortFontDownload.setStatus('optional') if mibBuilder.loadTexts: nwPortFontDownload.setDescription('This variable controls the font downloading feature of the print server. Disabled - Do not download fonts. Enabled, without Printer Sense - Only download fonts after the print server has been reset or power cycled. Enabled, with Printer Sense - Download fonts after the print server has been reset or power-cycled, or after the printer has been power-cycled. This option is only available on certain print servers. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwPortPCLQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPortPCLQueue.setStatus('optional') if mibBuilder.loadTexts: nwPortPCLQueue.setDescription('A string indicating the name of the queue containing the PCL fonts to download when font downloading is enabled. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwPortPSQueue = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPortPSQueue.setStatus('optional') if mibBuilder.loadTexts: nwPortPSQueue.setDescription('A string indicating the name of the queue containing the PS fonts to download when font downloading is enabled. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwPortFormsOn = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPortFormsOn.setStatus('optional') if mibBuilder.loadTexts: nwPortFormsOn.setDescription('A value of 2 will enable forms checking. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nwPortFormNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPortFormNumber.setStatus('optional') if mibBuilder.loadTexts: nwPortFormNumber.setDescription('Indicates the form number to check jobs against when nwPortFormsOn is enabled.') nwPortNotification = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPortNotification.setStatus('optional') if mibBuilder.loadTexts: nwPortNotification.setDescription('A value of 2 will enable job notification.') nwNumTraps = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 11), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwNumTraps.setStatus('mandatory') if mibBuilder.loadTexts: nwNumTraps.setDescription('The number of IPX trap destinations.') nwTrapTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12), ) if mibBuilder.loadTexts: nwTrapTable.setStatus('mandatory') if mibBuilder.loadTexts: nwTrapTable.setDescription('A list of IPX trap definitions. The number of entries is given by the value of nwNumTraps.') nwTrapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1), ).setIndexNames((0, "ESI-MIB", "nwTrapIndex")) if mibBuilder.loadTexts: nwTrapEntry.setStatus('mandatory') if mibBuilder.loadTexts: nwTrapEntry.setDescription('An entry in the nwTrapTable.') nwTrapIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwTrapIndex.setStatus('mandatory') if mibBuilder.loadTexts: nwTrapIndex.setDescription('A unique value for entry in the nwTrapTable. Its value ranges between 1 and the value of nwNumTraps.') nwTrapDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwTrapDestination.setStatus('optional') if mibBuilder.loadTexts: nwTrapDestination.setDescription('This is the network address that IPX traps are sent to. A value of 00 00 00 00 00 00 in conjunction with a nwTrapDestinationNet of 00 00 00 00 will disable traps over IPX.') nwTrapDestinationNet = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(4, 4)).setFixedLength(4)).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwTrapDestinationNet.setStatus('mandatory') if mibBuilder.loadTexts: nwTrapDestinationNet.setDescription('This is the network number that IPX traps are sent to. A value of 00 00 00 00 in conjunction with a nwTrapDestination of 00 00 00 00 00 00 will disable traps over IPX.') nwProtocolTrapMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwProtocolTrapMask.setStatus('optional') if mibBuilder.loadTexts: nwProtocolTrapMask.setDescription('This is the 16 bit mask which determines which protocol specific traps will be sent out via IPX. Currently no protocol specific traps are supported.') nwPrinterTrapMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 5), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwPrinterTrapMask.setStatus('optional') if mibBuilder.loadTexts: nwPrinterTrapMask.setDescription('This is the 16 bit mask which determines which printer specific traps will be sent out via IPX. A value of 65535 indicates that all printer specific traps should be reported via IPX. BIT CONDITION --- -------------------------- 0 On-line (Condition cleared) 1 Off-line 2 No printer attached 3 Toner Low 4 Paper Out 5 Paper Jam 6 Door Open 15 Printer Error') nwOutputTrapMask = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwOutputTrapMask.setStatus('optional') if mibBuilder.loadTexts: nwOutputTrapMask.setDescription('This is the 16 bit mask which determines which physical output ports will be checked when generating printer specific traps to be sent out via IPX. A value of 65535 indicates that all physical output ports will generate traps. BIT CONDITION --- -------------------------- 0 Port 1 1 Port 2 2 Port 3 3 Port 4 ... ...') nwNDSPrintServerName = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 13), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 512))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwNDSPrintServerName.setStatus('optional') if mibBuilder.loadTexts: nwNDSPrintServerName.setDescription('Directory Services object used by the print server to connect to the NDS tree. This string contains the entire canonicalized name. NOTE: This variable must be stored in Unicode.') nwNDSPreferredDSTree = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 14), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwNDSPreferredDSTree.setStatus('optional') if mibBuilder.loadTexts: nwNDSPreferredDSTree.setDescription('Directory Services tree to which the NDS print server initially connects.') nwNDSPreferredDSFileServer = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 15), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 47))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwNDSPreferredDSFileServer.setStatus('optional') if mibBuilder.loadTexts: nwNDSPreferredDSFileServer.setDescription('The NetWare server to which the NDS print server initially makes a bindery connection.') nwNDSPacketCheckSumEnabled = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 16), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwNDSPacketCheckSumEnabled.setStatus('optional') if mibBuilder.loadTexts: nwNDSPacketCheckSumEnabled.setDescription('Compute the checksum for packets. 1 = disabled 2 = enabled') nwNDSPacketSignatureLevel = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 17), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwNDSPacketSignatureLevel.setStatus('optional') if mibBuilder.loadTexts: nwNDSPacketSignatureLevel.setDescription('Packet signature is a security method to prevent packet forging. 1 = disabled 2 = enabled 3 = preferred 4 = required') nwAvailablePrintModes = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 18), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwAvailablePrintModes.setStatus('optional') if mibBuilder.loadTexts: nwAvailablePrintModes.setDescription('Reports which NetWare print modes are available. BIT CONDITION --- -------------------------- 0 PServer 1 RPrinter 2 NDS 3 SPX Direct 4 JetAdmin ') nwDirectPrintEnabled = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwDirectPrintEnabled.setStatus('optional') if mibBuilder.loadTexts: nwDirectPrintEnabled.setDescription('Indicates whether or not direct mode ipx/spx printing is enabled.') nwJAConfig = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwJAConfig.setStatus('optional') if mibBuilder.loadTexts: nwJAConfig.setDescription('Indicates whether or not JetAdmin was used to configure the netware settings.') nwDisableSAP = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 21), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: nwDisableSAP.setStatus('optional') if mibBuilder.loadTexts: nwDisableSAP.setDescription('Indicates whether or not SAPs are enabled.') nwError = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 5, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 160))).setMaxAccess("readonly") if mibBuilder.loadTexts: nwError.setStatus('optional') if mibBuilder.loadTexts: nwError.setDescription('Contains any NetWare specific error information.') nwDisplayMask = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: nwDisplayMask.setStatus('mandatory') if mibBuilder.loadTexts: nwDisplayMask.setDescription('Bit mask describing what should be displayed by the utilities bit Description --- ----------- 0 nwFrameFormat 1 nwJetAdmin 2 nwFileServer (Includes all file server info) 3 nwMode 4 nwPrintServerName 5 nwPrintServerPassword 6 nwQueueScanTime 7 nwNetworkNumber 8 nwPortStatus 9 nwPortPrinterNumber 10 nwPortFontDownload (Includes nwPortPCLQueue and nwPortPSQueue) 11 nwPortFormsOn (Includes nwPortFormsNumber) 12 nwPortNotification 13 nwTraps (Includes all trap info) 14 nwNDSPrintServerName 15 nwNDSPreferredDSTree 16 nwNDSPreferredDSFileServer 17 nwNDSPacketCheckSumEnabled 18 nwNDSPacketSignatureLevel 19 nwDirectPrintEnabled 20 nwError 21 nwSapDisable') bvGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: bvGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: bvGroupVersion.setDescription('The version for the vines group.') bvEnabled = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvEnabled.setStatus('optional') if mibBuilder.loadTexts: bvEnabled.setDescription('Indicates whether or not the Banyan VINES protocol stack is enabled on the print server.') bvRestoreDefaults = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: bvRestoreDefaults.setDescription('A value of 2 will restore all VINES parameters on the print server to factory defaults, as well as reset the device.') bvFirmwareUpgrade = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvFirmwareUpgrade.setStatus('optional') if mibBuilder.loadTexts: bvFirmwareUpgrade.setDescription('A value of 2 will put the print server into firmware upgrade mode.') bvSetSequenceRouting = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("automatic-Routing", 1), ("force-Sequenced-Routing", 2), ("force-Non-Sequenced-Routing", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvSetSequenceRouting.setStatus('optional') if mibBuilder.loadTexts: bvSetSequenceRouting.setDescription('Sets the VINES Routing selection. Automatic - Utilizes Sequenced Routing if available, otherwise uses Non-Sequenced Routing. Force-Sequenced - Will only use Sequenced Routing. Force-Non-Sequenced - Will only use Non-Sequenced Routing In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this. WARNING - Sequential Routing requires a VINES 5.5 or greater server on the same subnet.') bvDisableVPMan = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvDisableVPMan.setStatus('optional') if mibBuilder.loadTexts: bvDisableVPMan.setDescription('A value of 2 will disable VPMan access to the print server for one minute.') bvLoginName = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(5, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvLoginName.setStatus('optional') if mibBuilder.loadTexts: bvLoginName.setDescription('The StreetTalk name the device will use to login with. This value will be ESIxxxxxxxx where xxxxxxx is the Serial number of the device if it is unconfigured. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') bvLoginPassword = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvLoginPassword.setStatus('optional') if mibBuilder.loadTexts: bvLoginPassword.setDescription('The password for the login name, bvLoginName. This value cannot be read, just set. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') bvNumberPrintServices = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: bvNumberPrintServices.setStatus('optional') if mibBuilder.loadTexts: bvNumberPrintServices.setDescription('The number of Print Services this device supports.') bvPrintServiceTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4), ) if mibBuilder.loadTexts: bvPrintServiceTable.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceTable.setDescription('Table of Print Services for this device.') bvPrintServiceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4, 1), ).setIndexNames((0, "ESI-MIB", "bvPrintServiceIndex")) if mibBuilder.loadTexts: bvPrintServiceEntry.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceEntry.setDescription('Print Services Table entry.') bvPrintServiceIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: bvPrintServiceIndex.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceIndex.setDescription('A unique value for each print service.') bvPrintServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvPrintServiceName.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceName.setDescription('The StreetTalk Name for this Print Service. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') bvPrintServiceRouting = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4, 1, 3), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvPrintServiceRouting.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceRouting.setDescription('The output port that the print service will print to. This value will range from 0 to the number of output ports, see outputNumPorts. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') bvPnicDescription = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: bvPnicDescription.setStatus('optional') if mibBuilder.loadTexts: bvPnicDescription.setDescription('Contains the VINES PNIC description.') bvError = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvError.setStatus('optional') if mibBuilder.loadTexts: bvError.setDescription('Contains any VINES specific error information.') bvRouting = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 32766, 32767))).clone(namedValues=NamedValues(("sequenced-Routing", 1), ("non-Sequenced-Routing", 2), ("unknown-Routing", 32766), ("protocol-Disabled", 32767)))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvRouting.setStatus('optional') if mibBuilder.loadTexts: bvRouting.setDescription('The current VINES Routing being used by the device.') bvNumPrintServices = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: bvNumPrintServices.setStatus('optional') if mibBuilder.loadTexts: bvNumPrintServices.setDescription('The number of Print Services this device supports.') bvPrintServiceStatusTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4), ) if mibBuilder.loadTexts: bvPrintServiceStatusTable.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceStatusTable.setDescription("Table of Print Service Status Entry's.") bvPrintServiceStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1), ).setIndexNames((0, "ESI-MIB", "bvPSStatusIndex")) if mibBuilder.loadTexts: bvPrintServiceStatusEntry.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceStatusEntry.setDescription('Print Service Status Entry.') bvPSStatusIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: bvPSStatusIndex.setStatus('optional') if mibBuilder.loadTexts: bvPSStatusIndex.setDescription('A unique value for each status entry.') bvPSName = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 63))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvPSName.setStatus('optional') if mibBuilder.loadTexts: bvPSName.setDescription('The StreetTalk Name for this Print Service.') bvPSStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 48))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvPSStatus.setStatus('optional') if mibBuilder.loadTexts: bvPSStatus.setDescription('Print Service Status.') bvPSDestination = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: bvPSDestination.setStatus('optional') if mibBuilder.loadTexts: bvPSDestination.setDescription('Port Destination for this print service.') bvPrinterStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvPrinterStatus.setStatus('optional') if mibBuilder.loadTexts: bvPrinterStatus.setDescription('Printer status for this Print Service.') bvJobActive = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvJobActive.setStatus('optional') if mibBuilder.loadTexts: bvJobActive.setDescription('Whether there is a VINES job active for this print service.') bvJobSource = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvJobSource.setStatus('optional') if mibBuilder.loadTexts: bvJobSource.setDescription('The active print jobs source.') bvJobTitle = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvJobTitle.setStatus('optional') if mibBuilder.loadTexts: bvJobTitle.setDescription('The title of the active print job.') bvJobSize = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 9), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 9))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvJobSize.setStatus('optional') if mibBuilder.loadTexts: bvJobSize.setDescription('The size of the active print job.') bvJobNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 10), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: bvJobNumber.setStatus('optional') if mibBuilder.loadTexts: bvJobNumber.setDescription('The VINES job number of the active print job.') lmGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 4, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: lmGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: lmGroupVersion.setDescription('The version for the lanManger group.') lmEnabled = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 4, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: lmEnabled.setStatus('optional') if mibBuilder.loadTexts: lmEnabled.setDescription('Indicates whether or not the Lan Manager protocol stack is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') eTalkGroupVersion = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eTalkGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: eTalkGroupVersion.setDescription('The version for the eTalk group.') eTalkEnabled = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eTalkEnabled.setStatus('optional') if mibBuilder.loadTexts: eTalkEnabled.setDescription('Indicates whether or not the EtherTalk protocol stack is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') eTalkRestoreDefaults = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 3, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eTalkRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: eTalkRestoreDefaults.setDescription('A value of 2 will restore all EtherTalk parameters on the print server to factory defaults, as well as reset the print server.') eTalkNetwork = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: eTalkNetwork.setStatus('optional') if mibBuilder.loadTexts: eTalkNetwork.setDescription('Indicates the EtherTalk network number that the print server is currently using.') eTalkNode = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: eTalkNode.setStatus('optional') if mibBuilder.loadTexts: eTalkNode.setDescription('Indicates the EtherTalk node number that the print server is currently using.') eTalkNumPorts = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eTalkNumPorts.setStatus('optional') if mibBuilder.loadTexts: eTalkNumPorts.setDescription('Indicates the number of physical output ports that are EtherTalk compatible.') eTalkPortTable = MibTable((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4), ) if mibBuilder.loadTexts: eTalkPortTable.setStatus('optional') if mibBuilder.loadTexts: eTalkPortTable.setDescription('A table of EtherTalk specific port configuration information.') eTalkPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1), ).setIndexNames((0, "ESI-MIB", "eTalkPortIndex")) if mibBuilder.loadTexts: eTalkPortEntry.setStatus('optional') if mibBuilder.loadTexts: eTalkPortEntry.setDescription('An entry of EtherTalk port specific information.') eTalkPortIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: eTalkPortIndex.setStatus('optional') if mibBuilder.loadTexts: eTalkPortIndex.setDescription("A unique value for each physical output port which is compatible with EtherTalk. Its value ranges between 1 and the value of eTalkNumPorts. The value for each port must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.") eTalkPortEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("no", 1), ("yes", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eTalkPortEnable.setStatus('optional') if mibBuilder.loadTexts: eTalkPortEnable.setDescription('Indicates whether or not the physical output port is enabled to print via EtherTalk and will show up in the Chooser.') eTalkName = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eTalkName.setStatus('optional') if mibBuilder.loadTexts: eTalkName.setDescription('This is the EtherTalk name for the print server.') eTalkActiveName = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 4), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: eTalkActiveName.setStatus('optional') if mibBuilder.loadTexts: eTalkActiveName.setDescription('This is the EtherTalk name for the print server that is currently being used.') eTalkType1 = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eTalkType1.setStatus('optional') if mibBuilder.loadTexts: eTalkType1.setDescription('Indicates the first EtherTalk type. This type is mandatory.') eTalkType2 = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 6), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eTalkType2.setStatus('optional') if mibBuilder.loadTexts: eTalkType2.setDescription('Indicates the second EtherTalk type. This type is optional. Setting this name to NULL will disable it.') eTalkZone = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 7), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: eTalkZone.setStatus('optional') if mibBuilder.loadTexts: eTalkZone.setDescription('Indicates the EtherTalk zone. This must be defined on the router.') eTalkActiveZone = MibTableColumn((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 8), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: eTalkActiveZone.setStatus('optional') if mibBuilder.loadTexts: eTalkActiveZone.setDescription('Indicates the EtherTalk zone that is currently being used. This must be defined on the router.') eTalkError = MibScalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 5, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readonly") if mibBuilder.loadTexts: eTalkError.setStatus('optional') if mibBuilder.loadTexts: eTalkError.setDescription('Shows any errors for the EtherTalk protocol.') trapPrinterOnline = NotificationType((1, 3, 6, 1, 4, 1, 683, 6) + (0,1)).setObjects(("ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: trapPrinterOnline.setDescription('The printer is on-line. This trap will be sent out after a printer error condition has been cleared.') trapPrinterOffline = NotificationType((1, 3, 6, 1, 4, 1, 683, 6) + (0,2)).setObjects(("ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: trapPrinterOffline.setDescription('The printer is off-line.') trapNoPrinterAttached = NotificationType((1, 3, 6, 1, 4, 1, 683, 6) + (0,3)).setObjects(("ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: trapNoPrinterAttached.setDescription('No printer is attached to the output port.') trapPrinterTonerLow = NotificationType((1, 3, 6, 1, 4, 1, 683, 6) + (0,4)).setObjects(("ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: trapPrinterTonerLow.setDescription('The printer toner is low.') trapPrinterPaperOut = NotificationType((1, 3, 6, 1, 4, 1, 683, 6) + (0,5)).setObjects(("ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: trapPrinterPaperOut.setDescription('The printer is out of paper.') trapPrinterPaperJam = NotificationType((1, 3, 6, 1, 4, 1, 683, 6) + (0,6)).setObjects(("ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: trapPrinterPaperJam.setDescription('The printer has a paper jam.') trapPrinterDoorOpen = NotificationType((1, 3, 6, 1, 4, 1, 683, 6) + (0,7)).setObjects(("ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: trapPrinterDoorOpen.setDescription('The printer door is open.') trapPrinterError = NotificationType((1, 3, 6, 1, 4, 1, 683, 6) + (0,16)).setObjects(("ESI-MIB", "outputIndex")) if mibBuilder.loadTexts: trapPrinterError.setDescription('General printer error.') mibBuilder.exportSymbols("ESI-MIB", eTalkNode=eTalkNode, bvPrintServiceRouting=bvPrintServiceRouting, nwPortNotification=nwPortNotification, outputDisplayMask=outputDisplayMask, tcpipBootProtocolsEnabled=tcpipBootProtocolsEnabled, bvStatus=bvStatus, nwNDSPreferredDSFileServer=nwNDSPreferredDSFileServer, bvGroupVersion=bvGroupVersion, nwMaxFileServers=nwMaxFileServers, bvEnabled=bvEnabled, trCommands=trCommands, tcpipSecureStartIPAddress=tcpipSecureStartIPAddress, nwTrapDestination=nwTrapDestination, trapPrinterOffline=trapPrinterOffline, tcpipError=tcpipError, driverRXPacketErrors=driverRXPacketErrors, lmGroupVersion=lmGroupVersion, general=general, genVersion=genVersion, outputNumLogEntries=outputNumLogEntries, driverTXPacketRetries=driverTXPacketRetries, tcpipNumSecurity=tcpipNumSecurity, genProtocolIndex=genProtocolIndex, cmdRestoreDefaults=cmdRestoreDefaults, eTalkName=eTalkName, tcpipIPAddressSource=tcpipIPAddressSource, esiSNMP=esiSNMP, tcpipSmtpEmailAddr=tcpipSmtpEmailAddr, nwQueueScanTime=nwQueueScanTime, trapPrinterPaperJam=trapPrinterPaperJam, nwPortTable=nwPortTable, tcpipSmtpPrinterMask=tcpipSmtpPrinterMask, tcpipWinsAddress=tcpipWinsAddress, nwGroupVersion=nwGroupVersion, nwEnabled=nwEnabled, nwMode=nwMode, genCableType=genCableType, outputHandshake=outputHandshake, tcpipPOP3ServerAddress=tcpipPOP3ServerAddress, nwConfigure=nwConfigure, outputJobLogTable=outputJobLogTable, nwStatus=nwStatus, bvJobActive=bvJobActive, eTalkActiveZone=eTalkActiveZone, eTalkZone=eTalkZone, nwFileServerTable=nwFileServerTable, eTalkPortEntry=eTalkPortEntry, trRestoreDefaults=trRestoreDefaults, outputEntry=outputEntry, snmpTrapCommunityName=snmpTrapCommunityName, outputExtendedStatus=outputExtendedStatus, tcpipWebUpdateURL=tcpipWebUpdateURL, eTalkError=eTalkError, outputTable=outputTable, outputBIDIStatusEnabled=outputBIDIStatusEnabled, tcpipOutputTrapMask=tcpipOutputTrapMask, tcpipMLPPort=tcpipMLPPort, eTalkEnabled=eTalkEnabled, eTalkRestoreDefaults=eTalkRestoreDefaults, trRouting=trRouting, outputCommandsEntry=outputCommandsEntry, tcpipSecurityEntry=tcpipSecurityEntry, tcpipPOP3PollInterval=tcpipPOP3PollInterval, nwDisplayMask=nwDisplayMask, cmdGroupVersion=cmdGroupVersion, trapPrinterPaperOut=trapPrinterPaperOut, psOutput=psOutput, nwOutputTrapMask=nwOutputTrapMask, lanManager=lanManager, nwTrapIndex=nwTrapIndex, tcpip=tcpip, bvPnicDescription=bvPnicDescription, outputCommands=outputCommands, tcpipSubnetMask=tcpipSubnetMask, tcpipWinsAddressSource=tcpipWinsAddressSource, tcpipWebAdminName=tcpipWebAdminName, genProtocolTable=genProtocolTable, driverTXPacketErrors=driverTXPacketErrors, bvPrinterStatus=bvPrinterStatus, tcpipTrapEntry=tcpipTrapEntry, tcpipTrapDestination=tcpipTrapDestination, eTalkPortIndex=eTalkPortIndex, outputTotalJobsLogged=outputTotalJobsLogged, outputNumPorts=outputNumPorts, bvLoginName=bvLoginName, vines=vines, trConfigure=trConfigure, tcpipSmtpProtocolMask=tcpipSmtpProtocolMask, lmEnabled=lmEnabled, psGroupVersion=psGroupVersion, tcpipSecurePrinterMask=tcpipSecurePrinterMask, tcpipDomainName=tcpipDomainName, trapNoPrinterAttached=trapNoPrinterAttached, outputPCLString=outputPCLString, outputCommandsTable=outputCommandsTable, nwNDSPacketSignatureLevel=nwNDSPacketSignatureLevel, bvJobSize=bvJobSize, tcpipWebUserPassword=tcpipWebUserPassword, eTalkConfigure=eTalkConfigure, bvConfigure=bvConfigure, tcpipNumLogicalPrinters=tcpipNumLogicalPrinters, outputDataBits=outputDataBits, nwSetFrameFormat=nwSetFrameFormat, outputIndex=outputIndex, eTalkStatus=eTalkStatus, outputProtocolManager=outputProtocolManager, nwJAConfig=nwJAConfig, tokenRing=tokenRing, tcpipNumTraps=tcpipNumTraps, psJetAdminEnabled=psJetAdminEnabled, tcpipMLPIndex=tcpipMLPIndex, genCompanyLoc=genCompanyLoc, nwTrapDestinationNet=nwTrapDestinationNet, nwPortFormsOn=nwPortFormsOn, genSysUpTimeString=genSysUpTimeString, tcpipMLPPostString=tcpipMLPPostString, tcpipSecurityIndex=tcpipSecurityIndex, tcpipWebHtttpPort=tcpipWebHtttpPort, tcpipPrinterTrapMask=tcpipPrinterTrapMask, nwPortPrinterNumber=nwPortPrinterNumber, nwTrapTable=nwTrapTable, bvSetSequenceRouting=bvSetSequenceRouting, bvLoginPassword=bvLoginPassword, genProtocolID=genProtocolID, eTalkGroupVersion=eTalkGroupVersion, outputBaudRate=outputBaudRate, tcpipWebAdminPassword=tcpipWebAdminPassword, outputStatus=outputStatus, outputPrinterModel=outputPrinterModel, outputParity=outputParity, trGroupVersion=trGroupVersion, genProductNumber=genProductNumber, outputTotalJobIndex=outputTotalJobIndex, outputPSString=outputPSString, nwPortIndex=nwPortIndex, trapPrinterError=trapPrinterError, nwNDSPacketCheckSumEnabled=nwNDSPacketCheckSumEnabled, nwPortFontDownload=nwPortFontDownload, genCompanyName=genCompanyName, cmdPrintConfig=cmdPrintConfig, outputCascaded=outputCascaded, outputConfigure=outputConfigure, bvPSName=bvPSName, outputStopBits=outputStopBits, outputTotalJobEntry=outputTotalJobEntry, tcpipSmtpIndex=tcpipSmtpIndex, nwPrinterTrapMask=nwPrinterTrapMask, tcpipWebFaqURL=tcpipWebFaqURL, outputCapabilities=outputCapabilities, printServers=printServers, outputCancelCurrentJob=outputCancelCurrentJob, driver=driver, tcpipRawPortNumber=tcpipRawPortNumber, tcpipWebUserName=tcpipWebUserName, nwNDSPreferredDSTree=nwNDSPreferredDSTree, tcpipMLPDeleteBytes=tcpipMLPDeleteBytes, tcpipTrapIndex=tcpipTrapIndex, tcpipEnabled=tcpipEnabled, tcpipSmtpEntry=tcpipSmtpEntry, psProtocols=psProtocols, driverRXPacketsUnavailable=driverRXPacketsUnavailable, tcpipMLPTable=tcpipMLPTable, nwDisableSAP=nwDisableSAP, bvPrintServiceStatusEntry=bvPrintServiceStatusEntry, esi=esi, genMIBVersion=genMIBVersion, tcpipWebCustomLinkName=tcpipWebCustomLinkName, eTalkPortTable=eTalkPortTable, bvNumPrintServices=bvNumPrintServices, tcpipSecurityTable=tcpipSecurityTable, nwPrintServerName=nwPrintServerName, eTalkType1=eTalkType1, tcpipPOP3Password=tcpipPOP3Password, nwNumTraps=nwNumTraps, outputJobLog=outputJobLog, tcpipDefaultGateway=tcpipDefaultGateway, nwTrapEntry=nwTrapEntry, netware=netware, tcpipMLPEntry=tcpipMLPEntry, genProtocolEntry=genProtocolEntry, trPriority=trPriority, bvPrintServiceStatusTable=bvPrintServiceStatusTable, snmpRestoreDefaults=snmpRestoreDefaults, tcpipConfigPassword=tcpipConfigPassword, nwPortEntry=nwPortEntry, tcpipCommands=tcpipCommands, driverRXPackets=driverRXPackets, tcpipLowBandwidth=tcpipLowBandwidth, bvPSDestination=bvPSDestination, nwDirectPrintEnabled=nwDirectPrintEnabled, tcpipRestoreDefaults=tcpipRestoreDefaults, tcpipGroupVersion=tcpipGroupVersion, tcpipSecureAdminEnabled=tcpipSecureAdminEnabled, outputGroupVersion=outputGroupVersion, tcpipTimeoutChecking=tcpipTimeoutChecking, trapPrinterDoorOpen=trapPrinterDoorOpen, tcpipTimeoutCheckingValue=tcpipTimeoutCheckingValue, nwFileServerName=nwFileServerName, tcpipMLPPreString=tcpipMLPPreString, outputJobLogInformation=outputJobLogInformation, snmpGroupVersion=snmpGroupVersion, tcpipSecureEndIPAddress=tcpipSecureEndIPAddress, nwPortPCLQueue=nwPortPCLQueue, tcpipIPAddress=tcpipIPAddress, bvPSStatus=bvPSStatus, genProtocolDescr=genProtocolDescr, outputAvailableTrapsMask=outputAvailableTrapsMask, driverTXPackets=driverTXPackets, nwFileServerIndex=nwFileServerIndex, nwPortStatus=nwPortStatus, outputConfigLanguage=outputConfigLanguage, tcpipTrapTable=tcpipTrapTable, trapPrinterOnline=trapPrinterOnline, nwFileServerConnectionStatus=nwFileServerConnectionStatus, eTalkNetwork=eTalkNetwork, trEarlyTokenRelease=trEarlyTokenRelease, nwPortPSQueue=nwPortPSQueue, eTalkCommands=eTalkCommands, genDateCode=genDateCode, bvJobTitle=bvJobTitle, genConfigurationDirty=genConfigurationDirty, psVerifyConfiguration=psVerifyConfiguration, tcpipUsingNetProtocols=tcpipUsingNetProtocols, tcpipStatus=tcpipStatus, psGeneral=psGeneral, genNumProtocols=genNumProtocols, bvRouting=bvRouting, bvCommands=bvCommands, driverGroupVersion=driverGroupVersion, genGroupVersion=genGroupVersion, cmdReset=cmdReset, tcpipArpInterval=tcpipArpInterval, nwNetworkNumber=nwNetworkNumber, bvNumberPrintServices=bvNumberPrintServices, bvJobSource=bvJobSource, tcpipWebCustomLinkURL=tcpipWebCustomLinkURL, nwCommands=nwCommands, nwAvailablePrintModes=nwAvailablePrintModes, tcpipFirmwareUpgrade=tcpipFirmwareUpgrade, eTalkNumPorts=eTalkNumPorts, tcpipIPAddressServerAddress=tcpipIPAddressServerAddress, bvPrintServiceIndex=bvPrintServiceIndex, genHWAddress=genHWAddress, genCompanyPhone=genCompanyPhone, bvPrintServiceEntry=bvPrintServiceEntry, eTalkType2=eTalkType2, tcpipMLPName=tcpipMLPName, bvRestoreDefaults=bvRestoreDefaults, tcpipBanners=tcpipBanners, tcpipPOP3UserName=tcpipPOP3UserName, genSerialNumber=genSerialNumber, bvError=bvError, outputLanguageSwitching=outputLanguageSwitching, bvPrintServiceName=bvPrintServiceName) mibBuilder.exportSymbols("ESI-MIB", tcpipDisplayMask=tcpipDisplayMask, nwProtocolTrapMask=nwProtocolTrapMask, nwPrintServerPassword=nwPrintServerPassword, bvFirmwareUpgrade=bvFirmwareUpgrade, bvJobNumber=bvJobNumber, outputJobLogEntry=outputJobLogEntry, outputJobLogTime=outputJobLogTime, nwNDSPrintServerName=nwNDSPrintServerName, tcpipMLPTCPPort=tcpipMLPTCPPort, trapPrinterTonerLow=trapPrinterTonerLow, driverChecksumErrors=driverChecksumErrors, trLocallyAdminAddr=trLocallyAdminAddr, tcpipConfigure=tcpipConfigure, nwRestoreDefaults=nwRestoreDefaults, bvPSStatusIndex=bvPSStatusIndex, tcpipNumSmtpDestinations=tcpipNumSmtpDestinations, outputName=outputName, outputStatusString=outputStatusString, tcpipProtocolTrapMask=tcpipProtocolTrapMask, genProductName=genProductName, bvPrintServiceTable=bvPrintServiceTable, eTalk=eTalk, eTalkActiveName=eTalkActiveName, outputPrinterDisplay=outputPrinterDisplay, commands=commands, genProtocols=genProtocols, nwFirmwareUpgrade=nwFirmwareUpgrade, tcpipSmtpServerAddr=tcpipSmtpServerAddr, outputRestoreDefaults=outputRestoreDefaults, outputSetting=outputSetting, outputOwner=outputOwner, nwFrameFormat=nwFrameFormat, nwError=nwError, nwPortFormNumber=nwPortFormNumber, genCompanyTechSupport=genCompanyTechSupport, nwFileServerEntry=nwFileServerEntry, bvDisableVPMan=bvDisableVPMan, eTalkPortEnable=eTalkPortEnable, esiSNMPCommands=esiSNMPCommands, snmpGetCommunityName=snmpGetCommunityName, tcpipSmtpOutputMask=tcpipSmtpOutputMask, trPacketSize=trPacketSize, outputTotalJobTable=outputTotalJobTable, tcpipSmtpTable=tcpipSmtpTable, outputPrinter=outputPrinter, snmpSetCommunityName=snmpSetCommunityName)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, single_value_constraint, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint', 'ValueSizeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (mib_identifier, bits, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, integer32, object_identity, unsigned32, iso, enterprises, counter32, module_identity, counter64, notification_type, gauge32, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibIdentifier', 'Bits', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'Integer32', 'ObjectIdentity', 'Unsigned32', 'iso', 'enterprises', 'Counter32', 'ModuleIdentity', 'Counter64', 'NotificationType', 'Gauge32', 'NotificationType') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') esi = mib_identifier((1, 3, 6, 1, 4, 1, 683)) general = mib_identifier((1, 3, 6, 1, 4, 1, 683, 1)) commands = mib_identifier((1, 3, 6, 1, 4, 1, 683, 2)) esi_snmp = mib_identifier((1, 3, 6, 1, 4, 1, 683, 3)) esi_snmp_commands = mib_identifier((1, 3, 6, 1, 4, 1, 683, 3, 2)) driver = mib_identifier((1, 3, 6, 1, 4, 1, 683, 4)) token_ring = mib_identifier((1, 3, 6, 1, 4, 1, 683, 5)) print_servers = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6)) ps_general = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 1)) ps_output = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 2)) ps_protocols = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3)) gen_protocols = mib_identifier((1, 3, 6, 1, 4, 1, 683, 1, 15)) output_commands = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 2, 2)) output_configure = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 2, 3)) output_job_log = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 2, 6)) tr_commands = mib_identifier((1, 3, 6, 1, 4, 1, 683, 5, 2)) tr_configure = mib_identifier((1, 3, 6, 1, 4, 1, 683, 5, 3)) tcpip = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 1)) netware = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 2)) vines = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 3)) lan_manager = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 4)) e_talk = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 5)) tcpip_commands = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 3)) tcpip_configure = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4)) tcpip_status = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 5)) nw_commands = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 3)) nw_configure = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4)) nw_status = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 5)) bv_commands = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3)) bv_configure = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4)) bv_status = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5)) e_talk_commands = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 3)) e_talk_configure = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4)) e_talk_status = mib_identifier((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 5)) gen_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: genGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: genGroupVersion.setDescription('The version for the general group.') gen_mib_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: genMIBVersion.setStatus('mandatory') if mibBuilder.loadTexts: genMIBVersion.setDescription('The version of the MIB.') gen_product_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readonly') if mibBuilder.loadTexts: genProductName.setStatus('mandatory') if mibBuilder.loadTexts: genProductName.setDescription('A textual description of the device.') gen_product_number = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 5))).setMaxAccess('readonly') if mibBuilder.loadTexts: genProductNumber.setStatus('mandatory') if mibBuilder.loadTexts: genProductNumber.setDescription('The product number of the device.') gen_serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 7))).setMaxAccess('readonly') if mibBuilder.loadTexts: genSerialNumber.setStatus('mandatory') if mibBuilder.loadTexts: genSerialNumber.setDescription('The serial number of the device.') gen_hw_address = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 6), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readonly') if mibBuilder.loadTexts: genHWAddress.setStatus('mandatory') if mibBuilder.loadTexts: genHWAddress.setDescription("The device's hardware address.") gen_cable_type = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('tenbase2', 1), ('tenbaseT', 2), ('aui', 3), ('utp', 4), ('stp', 5), ('fiber100fx', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: genCableType.setStatus('mandatory') if mibBuilder.loadTexts: genCableType.setDescription('Indicates the network cable type connected to the device.') gen_date_code = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readonly') if mibBuilder.loadTexts: genDateCode.setStatus('mandatory') if mibBuilder.loadTexts: genDateCode.setDescription("The device's datecode.") gen_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 10))).setMaxAccess('readonly') if mibBuilder.loadTexts: genVersion.setStatus('mandatory') if mibBuilder.loadTexts: genVersion.setDescription('A string indicating the version of the firmware.') gen_configuration_dirty = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: genConfigurationDirty.setStatus('mandatory') if mibBuilder.loadTexts: genConfigurationDirty.setDescription("A variable's value has been changed which will require that the device be reset or power cycled before it will take effect. Set cmdReset to take this action. A list of critical variables that will cause genConfigurationDirty to be set follows: snmpGetCommunityName, snmpSetCommunityName, trPriority, trEarlyTokenRelease, trPacketSize, trRouting, trLocallyAdminAddr, psJetAdminEnabled, outputType, outputHandshake, tcpipEnabled, tcpipIPAddress, tcpipDefaultGateway, tcpipSubnetMask, tcpipUsingNetProtocols, tcpipBootProtocolsEnabled, tcpipRawPortNumber, tcpipMLPTCPPort, tcpipMLPPort, nwEnabled, nwSetFrameFormat, nwMode, nwPrintServerName, nwPrintServerPassword, nwQueueScanTime, nwFileServerName, nwPortPrinterNumber, nwPortFontDownload, nwPortPCLQueue, nwPortPSQueue, nwPortFormsOn, nwPortNotification, bvEnabled, bvSetSequencedRouting, bvLoginName, bvLoginPassword, bvPrintServiceName, bvPrintServiceRouting, lmEnabled, eTalkEnabled") gen_company_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 11), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: genCompanyName.setStatus('mandatory') if mibBuilder.loadTexts: genCompanyName.setDescription('A string indicating the manufacturer of the device.') gen_company_loc = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 12), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: genCompanyLoc.setStatus('mandatory') if mibBuilder.loadTexts: genCompanyLoc.setDescription('A string indicating the location of the manufacturer of the device.') gen_company_phone = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readonly') if mibBuilder.loadTexts: genCompanyPhone.setStatus('mandatory') if mibBuilder.loadTexts: genCompanyPhone.setDescription('A string indicating the phone number of the manufacturer of the device.') gen_company_tech_support = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: genCompanyTechSupport.setStatus('mandatory') if mibBuilder.loadTexts: genCompanyTechSupport.setDescription('A string indicating the technical support information for the device.') gen_num_protocols = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 15, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: genNumProtocols.setStatus('mandatory') if mibBuilder.loadTexts: genNumProtocols.setDescription('The number of network protocols supported on the device.') gen_protocol_table = mib_table((1, 3, 6, 1, 4, 1, 683, 1, 15, 2)) if mibBuilder.loadTexts: genProtocolTable.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolTable.setDescription('A list of network protocols. The number of entries is given by the value of genNumProtocols.') gen_protocol_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 1, 15, 2, 1)).setIndexNames((0, 'ESI-MIB', 'genProtocolIndex')) if mibBuilder.loadTexts: genProtocolEntry.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolEntry.setDescription('A network protocol supported on the device.') gen_protocol_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 1, 15, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: genProtocolIndex.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolIndex.setDescription("A unique value for each network protocol. Its value ranges between 1 and the value of genNumProtocols. The value for each protocol must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.") gen_protocol_descr = mib_table_column((1, 3, 6, 1, 4, 1, 683, 1, 15, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: genProtocolDescr.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolDescr.setDescription('A textual string describing the network protocol.') gen_protocol_id = mib_table_column((1, 3, 6, 1, 4, 1, 683, 1, 15, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('tcp-ip', 1), ('netware', 2), ('vines', 3), ('lanmanger', 4), ('ethertalk', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: genProtocolID.setStatus('mandatory') if mibBuilder.loadTexts: genProtocolID.setDescription('A unique identification number for the network protocol.') gen_sys_up_time_string = mib_scalar((1, 3, 6, 1, 4, 1, 683, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 35))).setMaxAccess('readonly') if mibBuilder.loadTexts: genSysUpTimeString.setStatus('mandatory') if mibBuilder.loadTexts: genSysUpTimeString.setDescription('A string indicating the system up time for the device.') cmd_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cmdGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: cmdGroupVersion.setDescription('The version for the commands group.') cmd_reset = mib_scalar((1, 3, 6, 1, 4, 1, 683, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cmdReset.setStatus('optional') if mibBuilder.loadTexts: cmdReset.setDescription('A value of 2 will reset the device. The following list of variables will also cause the device to reset itself. cmdRestoreDefaults, snmpRestoreDefaults, trRestoreDefaults, outputRestoreDefaults, tcpipRestoreDefaults, tcpipFirmwareUpgrade, nwRestoreDefaults, nwFirmwareUpgrade, bvRestoreDefaults, bvFirmwareUpgrade, eTalkRestoreDefaults') cmd_print_config = mib_scalar((1, 3, 6, 1, 4, 1, 683, 2, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cmdPrintConfig.setStatus('optional') if mibBuilder.loadTexts: cmdPrintConfig.setDescription('A value of 2 will cause the device to print a configuration page.') cmd_restore_defaults = mib_scalar((1, 3, 6, 1, 4, 1, 683, 2, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: cmdRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: cmdRestoreDefaults.setDescription('A value of 2 will restore all parameters on the device to factory defaults, as well as reset the device.') snmp_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 3, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: snmpGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: snmpGroupVersion.setDescription('The version for the snmp group.') snmp_restore_defaults = mib_scalar((1, 3, 6, 1, 4, 1, 683, 3, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: snmpRestoreDefaults.setDescription('A value of 2 will restore all SNMP parameters on the device to factory defaults, as well as reset the device.') snmp_get_community_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 3, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpGetCommunityName.setStatus('optional') if mibBuilder.loadTexts: snmpGetCommunityName.setDescription('Get community name for the managed node. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') snmp_set_community_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 3, 4), display_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpSetCommunityName.setStatus('optional') if mibBuilder.loadTexts: snmpSetCommunityName.setDescription('Set community name for the managed node. This value cannot be read, just set. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') snmp_trap_community_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 3, 5), display_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readwrite') if mibBuilder.loadTexts: snmpTrapCommunityName.setStatus('optional') if mibBuilder.loadTexts: snmpTrapCommunityName.setDescription('Trap community name for the managed node.') driver_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 4, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: driverGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: driverGroupVersion.setDescription('The version for the driver group.') driver_rx_packets = mib_scalar((1, 3, 6, 1, 4, 1, 683, 4, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: driverRXPackets.setStatus('mandatory') if mibBuilder.loadTexts: driverRXPackets.setDescription('The number of packets received.') driver_tx_packets = mib_scalar((1, 3, 6, 1, 4, 1, 683, 4, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: driverTXPackets.setStatus('mandatory') if mibBuilder.loadTexts: driverTXPackets.setDescription('The number of packets transmitted.') driver_rx_packets_unavailable = mib_scalar((1, 3, 6, 1, 4, 1, 683, 4, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: driverRXPacketsUnavailable.setStatus('mandatory') if mibBuilder.loadTexts: driverRXPacketsUnavailable.setDescription('The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol due to a lack of buffer space.') driver_rx_packet_errors = mib_scalar((1, 3, 6, 1, 4, 1, 683, 4, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: driverRXPacketErrors.setStatus('mandatory') if mibBuilder.loadTexts: driverRXPacketErrors.setDescription('The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.') driver_tx_packet_errors = mib_scalar((1, 3, 6, 1, 4, 1, 683, 4, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: driverTXPacketErrors.setStatus('mandatory') if mibBuilder.loadTexts: driverTXPacketErrors.setDescription('The number of outbound packets that could not be transmitted because of errors.') driver_tx_packet_retries = mib_scalar((1, 3, 6, 1, 4, 1, 683, 4, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: driverTXPacketRetries.setStatus('mandatory') if mibBuilder.loadTexts: driverTXPacketRetries.setDescription('The number of retransmitted packets.') driver_checksum_errors = mib_scalar((1, 3, 6, 1, 4, 1, 683, 4, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: driverChecksumErrors.setStatus('mandatory') if mibBuilder.loadTexts: driverChecksumErrors.setDescription('The number of packets containing checksum errors received.') tr_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 5, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: trGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: trGroupVersion.setDescription('The version for the tokenRing group.') tr_restore_defaults = mib_scalar((1, 3, 6, 1, 4, 1, 683, 5, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: trRestoreDefaults.setDescription('A value of 2 will restore all token-ring parameters on the device to factory defaults, as well as reset the device.') tr_priority = mib_scalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 6))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trPriority.setStatus('optional') if mibBuilder.loadTexts: trPriority.setDescription('The token which is passed around the ring until a station needs it can be assigned a priority from 0 to 6. Priority 0 is the lowest and 6 is the highest. The priority of the device can be increased to improve performance. However, the performance of file servers and crucial stations could be affected. In order for changes to this variable to take effect, the device must be reset. See cmdReset to do this.') tr_early_token_release = mib_scalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trEarlyTokenRelease.setStatus('optional') if mibBuilder.loadTexts: trEarlyTokenRelease.setDescription('Early token release allows the device to release the token immediately after transmitting data but only on 16 Mbps systems. This feature enhances ring performance. In order for changes to this variable to take effect, the device must be reset. See cmdReset to do this.') tr_packet_size = mib_scalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('one-k', 1), ('two-k', 2), ('four-k', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trPacketSize.setStatus('optional') if mibBuilder.loadTexts: trPacketSize.setDescription('You should only change the packet size if you are using a driver for your Token Ring adapter which allows packet sizes greater than One_K. In order for changes to this variable to take effect, the device must be reset. See cmdReset to do this.') tr_routing = mib_scalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('off', 1), ('all-None', 2), ('single-All', 3), ('single-None', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: trRouting.setStatus('optional') if mibBuilder.loadTexts: trRouting.setDescription('Set this variable to change the source routing configuration on the device. Off: No source routing. All, None: All-routes broadcast, nonbroadcast return. The frame will be transmitted on every route within the network resulting in multiple copies on a given ring. Single, All: Single-route broadcast, all routes broadcast return. The frame will be transmitted across the designated bridges, which will result in the frame appearing only once on each ring. The response frame is on all routes broadcast to the originator. Single, None: Single-route broadcast, nonbroadcast return. The frame will be transmitted across designated bridges, which will result in the frame appearing only once each ring. In order for changes to this variable to take effect, the device must be reset. See cmdReset to do this.') tr_locally_admin_addr = mib_scalar((1, 3, 6, 1, 4, 1, 683, 5, 3, 5), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: trLocallyAdminAddr.setStatus('optional') if mibBuilder.loadTexts: trLocallyAdminAddr.setDescription('This is the locally administered node address for the device. Valid values are 000000000000 and between 400000000000 and 7FFFFFFFFFFF. A value of 000000000000 indicates that a locally administered address is not in use.') ps_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: psGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: psGroupVersion.setDescription('The version for the psGeneral group.') ps_jet_admin_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: psJetAdminEnabled.setStatus('mandatory') if mibBuilder.loadTexts: psJetAdminEnabled.setDescription('Indicates whether or not the JetAdmin support is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') ps_verify_configuration = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('getvalue', 0), ('serial-configuration', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: psVerifyConfiguration.setStatus('optional') if mibBuilder.loadTexts: psVerifyConfiguration.setDescription('This variable is used to force the print server to verify valid configuration settings. Setting the variable to the appropriate enumeration will cause the print server to verify the settings for that enumeration. If the settings are valid, the result of the set will be OK. If the settings are not valid, the result will be BadValue. Gets on this variable will always return 0. 1 - Indicates whether or not the current serial configuration is valid. Valid configurations - If the serial port is set in bidirectional mode, the baud rate must be less than 115200 and the handshaking must be set to hardware handshaking. 2 - Not used yet. ') output_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outputGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: outputGroupVersion.setDescription('The version for the output group.') output_restore_defaults = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 2, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputRestoreDefaults.setStatus('mandatory') if mibBuilder.loadTexts: outputRestoreDefaults.setDescription('A value of 2 will restore all output parameters on the print server to factory defaults, as well as reset the print server.') output_commands_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 2, 2, 2)) if mibBuilder.loadTexts: outputCommandsTable.setStatus('mandatory') if mibBuilder.loadTexts: outputCommandsTable.setDescription('A list of physical output ports. The number of entries is given by the value of outputNumPorts.') output_commands_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 2, 2, 2, 1)).setIndexNames((0, 'ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: outputCommandsEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputCommandsEntry.setDescription('A physical output port on the print server.') output_cancel_current_job = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 2, 2, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputCancelCurrentJob.setStatus('optional') if mibBuilder.loadTexts: outputCancelCurrentJob.setDescription('A value of 2 will cancel the job currently printing on that port.') output_num_ports = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outputNumPorts.setStatus('mandatory') if mibBuilder.loadTexts: outputNumPorts.setDescription('The number of physical output ports on the print server.') output_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2)) if mibBuilder.loadTexts: outputTable.setStatus('mandatory') if mibBuilder.loadTexts: outputTable.setDescription('A list of physical output ports. The number of entries is given by the value of outputNumPorts.') output_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1)).setIndexNames((0, 'ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: outputEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputEntry.setDescription('A physical output port on the print server.') output_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outputIndex.setStatus('mandatory') if mibBuilder.loadTexts: outputIndex.setDescription("A unique value for each physical output port. Its value ranges between 1 and the value of outputNumPorts. The value for each protocol must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.") output_name = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputName.setStatus('mandatory') if mibBuilder.loadTexts: outputName.setDescription('A textual description of the output port.') output_status_string = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputStatusString.setStatus('mandatory') if mibBuilder.loadTexts: outputStatusString.setDescription('A string indicating the status of the physical output port.') output_status = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on-Line', 1), ('off-Line', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputStatus.setStatus('mandatory') if mibBuilder.loadTexts: outputStatus.setDescription('Indicates status of the printer. Get outputExtendedStatus for further information.') output_extended_status = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 15))).clone(namedValues=named_values(('none', 1), ('no-Printer-Attached', 2), ('toner-Low', 3), ('paper-Out', 4), ('paper-Jam', 5), ('door-Open', 6), ('printer-Error', 15)))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputExtendedStatus.setStatus('mandatory') if mibBuilder.loadTexts: outputExtendedStatus.setDescription('Indicates printer status to be used in conjunction with outputStatus.') output_printer = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('hp-III', 1), ('hp-IIISi', 2), ('ibm', 3), ('no-Specific-Printer', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputPrinter.setStatus('optional') if mibBuilder.loadTexts: outputPrinter.setDescription('The type of printer the output port is attached to. Even if the group is supported, this variable may not be supported.') output_language_switching = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('off', 1), ('pcl', 2), ('postScript', 3), ('als', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputLanguageSwitching.setStatus('optional') if mibBuilder.loadTexts: outputLanguageSwitching.setDescription('Indicates the language switching option for the physical port. Even if the group is supported, this variable may not be supported.') output_config_language = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('text', 1), ('pcl', 2), ('postScript', 3), ('off', 4), ('epl-zpl', 5)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputConfigLanguage.setStatus('mandatory') if mibBuilder.loadTexts: outputConfigLanguage.setDescription('Indicates the language that configuration pages will be printed in. If set to off, a config sheet will not be printed on this port.') output_pcl_string = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(127, 127)).setFixedLength(127)).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputPCLString.setStatus('optional') if mibBuilder.loadTexts: outputPCLString.setDescription('This string will be sent out the physical port if (1) outputLanguageSwitching is set to PCL or outputLanguageSwitching is set to Auto and the job is determined to be PCL, and (2) outputPrinter is set to No_Specific_Printer. Even if the group is supported, this variable may not be supported.') output_ps_string = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 10), octet_string().subtype(subtypeSpec=value_size_constraint(127, 127)).setFixedLength(127)).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputPSString.setStatus('optional') if mibBuilder.loadTexts: outputPSString.setDescription('This string will be sent out the physical port if (1) outputLanguageSwitching is set to PostScript or outputLanguageSwitching is set to Auto and the job is determined to be PostScript, and (2) outputPrinter is set to No_Specific_Printer. Even if the group is supported, this variable may not be supported.') output_cascaded = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputCascaded.setStatus('optional') if mibBuilder.loadTexts: outputCascaded.setDescription("A value of 2 indicates that the physical output port is connected to an Extended System's printer sharing device. Even if the group is supported, this variable may not be supported.") output_setting = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(32758, 32759, 32760, 32761, 32762, 32763, 32764, 32765, 32766, 32767))).clone(namedValues=named_values(('serial-infrared', 32758), ('serial-bidirectional', 32759), ('serial-unidirectional', 32760), ('serial-input', 32761), ('parallel-compatibility-no-bidi', 32762), ('ieee-1284-std-nibble-mode', 32763), ('z-Link', 32764), ('internal', 32765), ('ieee-1284-ecp-or-fast-nibble-mode', 32766), ('extendedLink', 32767)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputSetting.setStatus('mandatory') if mibBuilder.loadTexts: outputSetting.setDescription('Indicates the type (and optionally speed) for the physical output port. Setting this variable to physical connections (such as Parallel) will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') output_owner = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('no-Owner', 1), ('tcpip', 2), ('netware', 3), ('vines', 4), ('lanManager', 5), ('etherTalk', 6), ('config-Page', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputOwner.setStatus('mandatory') if mibBuilder.loadTexts: outputOwner.setDescription('Indicates which protocol or task currently is printing on the port.') output_bidi_status_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputBIDIStatusEnabled.setStatus('optional') if mibBuilder.loadTexts: outputBIDIStatusEnabled.setDescription('A value of 2 indicates that the BIDI status system is enabled.') output_printer_model = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 60))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputPrinterModel.setStatus('optional') if mibBuilder.loadTexts: outputPrinterModel.setDescription('A string indicating the printer model attached to the output port.') output_printer_display = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 16), display_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputPrinterDisplay.setStatus('optional') if mibBuilder.loadTexts: outputPrinterDisplay.setDescription('A string indicating the message on the attached printer front panel.') output_capabilities = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 4, 8, 16, 32, 64, 128, 256, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824))).clone(namedValues=named_values(('serial-Uni-Baud-9600', 1), ('serial-Uni-Baud-19200', 2), ('serial-Uni-Baud-38400', 4), ('serial-Uni-Baud-57600', 8), ('serial-Uni-Baud-115200', 16), ('serial-bidi-Baud-9600', 32), ('serial-bidi-Baud-19200', 64), ('serial-bidi-Baud-38400', 128), ('serial-bidi-Baud-57600', 256), ('zpl-epl-capable', 262144), ('serial-irin', 524288), ('serial-in', 1048576), ('serial-config-settings', 2097152), ('parallel-compatibility-no-bidi', 4194304), ('ieee-1284-std-nibble-mode', 8388608), ('z-link', 16777216), ('bidirectional', 33554432), ('serial-Software-Handshake', 67108864), ('serial-Output', 134217728), ('extendedLink', 268435456), ('internal', 536870912), ('ieee-1284-ecp-or-fast-nibble-mode', 1073741824)))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputCapabilities.setStatus('mandatory') if mibBuilder.loadTexts: outputCapabilities.setDescription('This field is implemented as a BIT mask. If the bit is set then the port is capable of functioning in this mode. Bit Property --- ------------------------ 0 Serial Unidirectional Baud 9600 1 Serial Unidirectional Baud 19200 2 Serial Unidirectional Baud 38400 3 Serial Unidirectional Baud 57600 4 Serial Unidirectional Baud 115200 5 Serial Bidirectional Baud 9600 6 Serial Bidirectional Baud 19200 7 Serial Bidirectional Baud 38400 8 Serial Bidirectional Baud 57600 19 Infrared Input on serial port 20 Serial Input 21 Serial Configuration Settings 22 Parallel Compatibility Mode (no bidi) 23 IEEE 1284 Standard Nibble Mode 24 ZLink 25 Bidirectional Support (PJL status) 26 Serial Software Handshaking 27 Serial Output 28 Extended Link Technology 29 Printer Internal (MIO) 30 IEEE 1284 ECP or Fast Nibble Mode') output_handshake = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('not-Supported', 1), ('hardware-Software', 2), ('hardware', 3), ('software', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputHandshake.setStatus('optional') if mibBuilder.loadTexts: outputHandshake.setDescription("If the port in serial mode operation this indicates the handshaking method being used. Setting this value to 'not- supported' will result in an error. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") output_data_bits = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(7, 8, 255))).clone(namedValues=named_values(('seven-bits', 7), ('eight-bits', 8), ('not-Supported', 255)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputDataBits.setStatus('optional') if mibBuilder.loadTexts: outputDataBits.setDescription("If the port in serial mode operation this indicates the number of data bits being used. Setting this value to 'not- supported' will result in an error. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") output_stop_bits = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 255))).clone(namedValues=named_values(('one-bit', 1), ('two-bits', 2), ('not-Supported', 255)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputStopBits.setStatus('optional') if mibBuilder.loadTexts: outputStopBits.setDescription("If the port in serial mode operation this indicates the number of stop bits being used. Setting this value to 'not- supported' will result in an error. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") output_parity = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 255))).clone(namedValues=named_values(('none', 1), ('odd', 2), ('even', 3), ('not-Supported', 255)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputParity.setStatus('optional') if mibBuilder.loadTexts: outputParity.setDescription("If the port in serial mode operation this indicates the parity checking method being used. Setting this value to 'not- supported' will result in an error. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") output_baud_rate = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 22), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('unidirectional-9600', 1), ('unidirectional-19200', 2), ('unidirectional-38400', 3), ('unidirectional-57600', 4), ('unidirectional-115200', 5), ('bidirectional-9600', 6), ('bidirectional-19200', 7), ('bidirectional-38400', 8), ('bidirectional-57600', 9)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: outputBaudRate.setStatus('optional') if mibBuilder.loadTexts: outputBaudRate.setDescription('If the port in serial mode operation this indicates the baud rate being used. Setting this value on non serial capable ports will result in an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') output_protocol_manager = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 3, 2, 1, 23), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('protocol-none', 0), ('protocol-compatibility', 1), ('protocol-1284-4', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputProtocolManager.setStatus('optional') if mibBuilder.loadTexts: outputProtocolManager.setDescription(' Indicates the type of output protocol manager being used on the port. Protocol-none means either there is no printer attached or the print server has not yet determined which output managers are supported on the printer. Protocol-compatibility means the printer does not support any of the protocol managers supported by the print server. Protocol-1284-4 means the output is using the 1284.4 logical port protocol manager. ') output_display_mask = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outputDisplayMask.setStatus('mandatory') if mibBuilder.loadTexts: outputDisplayMask.setDescription('Bit mask describing what should be displayed by the utilities bit Description --- ----------- 0 outputCancelCurrentJob (Includes all CancelCurrentJob info) 1 outputName 2 outputStatusString 3 outputStatus 4 outputExtendedStatus 5 outputPrinter 6 outputLanguageSwitching 7 outputConfigLanguage 8 outputString (Includes outputPCLString and outputPSString) 9 outputCascaded 10 outputSetting 11 outputOwner 12 outputBIDIStatusEnabled 13 outputPrinterModel 14 outputPrinterDisplay 15 outputHandshake 16 outputJobLog (includes all job logging) 17 outputSerialConfig') output_available_traps_mask = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outputAvailableTrapsMask.setStatus('mandatory') if mibBuilder.loadTexts: outputAvailableTrapsMask.setDescription('Bit mask describing what output printer traps are available bit Description --- ----------- 0 online 1 offline 2 printer attached 3 toner low 4 paper out 5 paper jam 6 door open 7 printer error') output_num_log_entries = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outputNumLogEntries.setStatus('mandatory') if mibBuilder.loadTexts: outputNumLogEntries.setDescription('The number of job log entries per output port.') output_job_log_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 2)) if mibBuilder.loadTexts: outputJobLogTable.setStatus('mandatory') if mibBuilder.loadTexts: outputJobLogTable.setDescription('A 2 dimensional list of Job log entries indexed by the output port number and the log entry index (1 through outputNumJobLogEntries). The number of entries per output port is given by the value of outputNumJobLogEntries.') output_job_log_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 2, 1)).setIndexNames((0, 'ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: outputJobLogEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputJobLogEntry.setDescription('A Job log entry.') output_job_log_information = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 2, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputJobLogInformation.setStatus('mandatory') if mibBuilder.loadTexts: outputJobLogInformation.setDescription('A textual description of print job information. The protocol, source, and file size are always included. Other information such as File Server, Queue, File Name, etc will be included if available.') output_job_log_time = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 2, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 50))).setMaxAccess('readonly') if mibBuilder.loadTexts: outputJobLogTime.setStatus('mandatory') if mibBuilder.loadTexts: outputJobLogTime.setDescription('A string indicating the elasped time since the last job was printed. Reported in form X hours X minutes X seconds.') output_total_job_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 3)) if mibBuilder.loadTexts: outputTotalJobTable.setStatus('mandatory') if mibBuilder.loadTexts: outputTotalJobTable.setDescription('Table showing the total number of jobs printed for each port.') output_total_job_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 3, 1)).setIndexNames((0, 'ESI-MIB', 'outputTotalJobIndex')) if mibBuilder.loadTexts: outputTotalJobEntry.setStatus('mandatory') if mibBuilder.loadTexts: outputTotalJobEntry.setDescription('An entry in the outputTotalJobTable.') output_total_job_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outputTotalJobIndex.setStatus('mandatory') if mibBuilder.loadTexts: outputTotalJobIndex.setDescription('A unique value for entry in the outputTotalJobTable. Its value ranges between 1 and the value of numPorts.') output_total_jobs_logged = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 2, 6, 3, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outputTotalJobsLogged.setStatus('mandatory') if mibBuilder.loadTexts: outputTotalJobsLogged.setDescription('The total number of jobs printed by the port since the print server was powered on. ') tcpip_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: tcpipGroupVersion.setDescription('The version for the tcpip group.') tcpip_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipEnabled.setStatus('optional') if mibBuilder.loadTexts: tcpipEnabled.setDescription('Indicates whether or not the tcpip protocol stack is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpip_restore_defaults = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: tcpipRestoreDefaults.setDescription('A value of 2 will restore all tcpip parameters on the print server to factory defaults, as well as reset the print server.') tcpip_firmware_upgrade = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipFirmwareUpgrade.setStatus('optional') if mibBuilder.loadTexts: tcpipFirmwareUpgrade.setDescription('A value of 2 will put the print server into firmware upgrade mode waiting to receive a firmware upgrade file via tftp.') tcpip_ip_address = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipIPAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipIPAddress.setDescription('The Internet Address. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpip_default_gateway = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipDefaultGateway.setStatus('optional') if mibBuilder.loadTexts: tcpipDefaultGateway.setDescription('The default gateway for the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpip_subnet_mask = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSubnetMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSubnetMask.setDescription('The subnet mask for the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpip_using_net_protocols = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipUsingNetProtocols.setStatus('optional') if mibBuilder.loadTexts: tcpipUsingNetProtocols.setDescription('A value of 2 indicates that the print server is using a combination of RARP, BOOTP, default IP address, or gleaning to determine its IP address. See tcpipBootProtocolsEnabled to determine which boot protocols are enabled. If the value of tcpipUsingNetProtocols is 1, the IP address is stored permanently in flash memory. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpip_boot_protocols_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipBootProtocolsEnabled.setStatus('optional') if mibBuilder.loadTexts: tcpipBootProtocolsEnabled.setDescription("This is the 16 bit mask which determines which boot protocols will be used to determine the print server's IP address. BIT Boot Protocol Enabled --- -------------------------- 0 RARP 1 BootP 2 DHCP 3 Gleaning 4 Default Address Enabled (If no address after 2 minutes timeout and go to 198.102.102.254) A value of 31 indicates that all boot protocols are enabled. These protocols will only be used if tcpipUsingNetProtocols is set to 2. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.") tcpip_ip_address_source = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('permanent', 1), ('default', 2), ('rarp', 3), ('bootp', 4), ('dhcp', 5), ('glean', 6)))).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipIPAddressSource.setStatus('optional') if mibBuilder.loadTexts: tcpipIPAddressSource.setDescription('This variable indicates how the IP address for the print server was determined.') tcpip_ip_address_server_address = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 7), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipIPAddressServerAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipIPAddressServerAddress.setDescription('This variable indicates the source of the IP address if a boot protocol was used. This value will be 0.0.0.0 if no boot server was used.') tcpip_timeout_checking = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipTimeoutChecking.setStatus('optional') if mibBuilder.loadTexts: tcpipTimeoutChecking.setDescription('A value of 2 indicates that a packet timeout will be active on all tcp connections. If a packet has not been received from the connection within this timeout the connection will be reset. To set this timeout, see tcpipTimeoutCheckingValue') tcpip_num_traps = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 9), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipNumTraps.setStatus('mandatory') if mibBuilder.loadTexts: tcpipNumTraps.setDescription('The number of UDP trap destinations.') tcpip_trap_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10)) if mibBuilder.loadTexts: tcpipTrapTable.setStatus('mandatory') if mibBuilder.loadTexts: tcpipTrapTable.setDescription('A list of UDP trap definitions. The number of entries is given by the value of tcpipNumTraps.') tcpip_trap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1)).setIndexNames((0, 'ESI-MIB', 'tcpipTrapIndex')) if mibBuilder.loadTexts: tcpipTrapEntry.setStatus('mandatory') if mibBuilder.loadTexts: tcpipTrapEntry.setDescription('An entry in the tcpipTrapTable.') tcpip_trap_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipTrapIndex.setStatus('mandatory') if mibBuilder.loadTexts: tcpipTrapIndex.setDescription('A unique value for entry in the tcpipTrapTable. Its value ranges between 1 and the value of tcpipNumTraps.') tcpip_trap_destination = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipTrapDestination.setStatus('optional') if mibBuilder.loadTexts: tcpipTrapDestination.setDescription('This is the IP address that traps are sent to. A value of 0.0.0.0 will disable traps over UDP.') tcpip_protocol_trap_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipProtocolTrapMask.setStatus('optional') if mibBuilder.loadTexts: tcpipProtocolTrapMask.setDescription('This is the 16 bit mask which determines which protocol specific traps will be sent out via UDP. Currently no protocol specific traps are supported.') tcpip_printer_trap_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipPrinterTrapMask.setStatus('optional') if mibBuilder.loadTexts: tcpipPrinterTrapMask.setDescription('This is the 16 bit mask which determines which printer specific traps will be sent out via UDP. A value of 65535 indicates that all printer specific traps should be reported via UDP. BIT CONDITION --- -------------------------- 0 On-line (Condition cleared) 1 Off-line 2 No printer attached 3 Toner Low 4 Paper Out 5 Paper Jam 6 Door Open 15 Printer Error') tcpip_output_trap_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 10, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipOutputTrapMask.setStatus('optional') if mibBuilder.loadTexts: tcpipOutputTrapMask.setDescription('This is the 16 bit mask which determines which physical output ports will be checked when generating printer specific traps to be sent out via UDP. A value of 65535 indicates that all physical output ports will generate traps. BIT CONDITION --- -------------------------- 0 Port 1 1 Port 2 2 Port 3 3 Port 4 ... ...') tcpip_banners = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipBanners.setStatus('optional') if mibBuilder.loadTexts: tcpipBanners.setDescription('A value of 2 indicates that banners will be printed with tcpip jobs. Even if the group is supported, this variable may not be supported.') tcpip_wins_address = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 12), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWinsAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipWinsAddress.setDescription('The IP address of the WINS server. The print server will register its sysName to this WINS server.') tcpip_wins_address_source = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('dhcp', 1), ('permanent', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWinsAddressSource.setStatus('optional') if mibBuilder.loadTexts: tcpipWinsAddressSource.setDescription('The source of the WINS server address. If set to dhcp, the print server will use the WINS address supplied with dhcp. If it is set to permanent, it will use the WINS address stored in flash.') tcpip_config_password = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 14), display_string().subtype(subtypeSpec=value_size_constraint(5, 24))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipConfigPassword.setStatus('optional') if mibBuilder.loadTexts: tcpipConfigPassword.setDescription('The print server html/telnet configuration password. This value cannot be read, just set.') tcpip_timeout_checking_value = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 15), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipTimeoutCheckingValue.setStatus('optional') if mibBuilder.loadTexts: tcpipTimeoutCheckingValue.setDescription('The TCP connection timeout in seconds. A value of 0 has the same effect as disabling timeout checking.') tcpip_arp_interval = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 16), integer32().subtype(subtypeSpec=value_range_constraint(0, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipArpInterval.setStatus('optional') if mibBuilder.loadTexts: tcpipArpInterval.setDescription('The ARP interval in minutes. The print server will ARP itself once when this timer expires. Set to 0 to disable.') tcpip_raw_port_number = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 17), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipRawPortNumber.setStatus('optional') if mibBuilder.loadTexts: tcpipRawPortNumber.setDescription('The raw TCP port number the print server will listen for print jobs on. On multiple port devices, additional ports will sequentially follow this port number. The default port is 9100. Setting this value to a TCP port that is in use by another TCP application will return an error. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpip_num_security = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipNumSecurity.setStatus('mandatory') if mibBuilder.loadTexts: tcpipNumSecurity.setDescription('The number of secure IP address ranges.') tcpip_security_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19)) if mibBuilder.loadTexts: tcpipSecurityTable.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSecurityTable.setDescription('A list of secure IP address ranges. This adds security for both printing and admin rights. AdminEnabled: When the admin enabled field is set to yes for a secure address range, the print server may only be configured via IP from IP address within that range. If the admin field is not set for any address ranges, the print server will accept admin commands from any IP address which has the valid community names and/or passwords. PortMask: When there is a port mask set for a secure IP address range, the print server will only accept TCP/IP print jobs from hosts that are in the secure address range. If there are no ranges with a port mask set, the print server will accept TCP/IP print jobs from any host. The number of entries is given by the value of tcpipNumSecurity.') tcpip_security_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1)).setIndexNames((0, 'ESI-MIB', 'tcpipSecurityIndex')) if mibBuilder.loadTexts: tcpipSecurityEntry.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSecurityEntry.setDescription('An entry in the tcpipSecurityTable.') tcpip_security_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipSecurityIndex.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSecurityIndex.setDescription('A unique value for entry in the tcpipSecurityTable. Its value ranges between 1 and the value of tcpipNumSecurity.') tcpip_secure_start_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 2), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSecureStartIPAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipSecureStartIPAddress.setDescription('This is the starting IP address for the secure IP address range. A value of 0.0.0.0 for both tcpipStartIPAddress and tcpipEndIPAddress will disable the address range.') tcpip_secure_end_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSecureEndIPAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipSecureEndIPAddress.setDescription('This is the ending IP address for the secure IP address range. A value of 0.0.0.0 for both tcpipStartIPAddress and tcpipEndIPAddress will disable the address range.') tcpip_secure_printer_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSecurePrinterMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSecurePrinterMask.setDescription('This is the 8 bit mask which determines which physical output ports this range of IP addresses can print to. A value of 127 indicates that the range of IP addresses can print to any of the output ports. This value can not be configured until a valid start and end address range have been configured. BIT CONDITION --- -------------------------- 0 Port 1 1 Port 2 2 Port 3 3 Port 4 ... ... 8 Reserved, must be set to 0.') tcpip_secure_admin_enabled = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 19, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSecureAdminEnabled.setStatus('optional') if mibBuilder.loadTexts: tcpipSecureAdminEnabled.setDescription(' This allows an advanced level of admin security for IP. Setting this will restrict which IP addresses can configure the print server. The correct community names and passwords are still required if this is used, it just adds another level of security. Indicates whether or not admin rights are enabled for this range of IP addresses. If no range of addresses has this enabled, then any IP address can configure the print server if it has the correct community names and/or passwords. If this field is set to yes for any range of addresses, the print server will only be configurable via IP from that range of addresses. This value can not be configured until a valid start and end address range have been configured.') tcpip_low_bandwidth = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipLowBandwidth.setStatus('optional') if mibBuilder.loadTexts: tcpipLowBandwidth.setDescription('A value of 2 will optimize the TCP stack for low bandwidth networks. A value of 1 will optimize the TCP stack for high bandwidth networks.') tcpip_num_logical_printers = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 21), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipNumLogicalPrinters.setStatus('mandatory') if mibBuilder.loadTexts: tcpipNumLogicalPrinters.setDescription('The number of available logical printers.') tcpip_mlp_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22)) if mibBuilder.loadTexts: tcpipMLPTable.setStatus('mandatory') if mibBuilder.loadTexts: tcpipMLPTable.setDescription('A table of the available logical printers. The number of entries is given by the value of tcpipNumLogicalPrinters.') tcpip_mlp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1)).setIndexNames((0, 'ESI-MIB', 'tcpipMLPIndex')) if mibBuilder.loadTexts: tcpipMLPEntry.setStatus('mandatory') if mibBuilder.loadTexts: tcpipMLPEntry.setDescription('An entry in the tcpipMLPTable.') tcpip_mlp_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipMLPIndex.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPIndex.setDescription('A unique value for entry in the tcpipMLPTable. Its value ranges between 1 and the value of tcpipNumLogicalPrinters.') tcpip_mlp_name = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 20))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipMLPName.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPName.setDescription('Contains the name of the logical printer. This name is also the LPR remote queue name associated with the logical printer.') tcpip_mlp_port = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipMLPPort.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPPort.setDescription('The number of the physical output port associated with the logical printer. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpip_mlptcp_port = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipMLPTCPPort.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPTCPPort.setDescription('The TCP port associated with the logical printer. Any print data sent to this TCP port will be processed through this logical printer entry. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') tcpip_mlp_pre_string = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipMLPPreString.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPPreString.setDescription("This contains any data that should be sent down to the printer at the beginning of jobs sent to this logical printer. To enter non-printable ascii characters in the string, enclose the decimal value inside of <>. For example, to enter an ESC-E the string would be '<27>E'.") tcpip_mlp_post_string = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipMLPPostString.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPPostString.setDescription("This contains any data that should be sent down to the printer at the end of jobs sent to this logical printer. To enter non-printable ascii characters in the string, enclose the decimal value inside of <>. For example, to enter an ESC-E the string would be '<27>E'.") tcpip_mlp_delete_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 22, 1, 7), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipMLPDeleteBytes.setStatus('optional') if mibBuilder.loadTexts: tcpipMLPDeleteBytes.setDescription('The number of bytes that will be deleted from the beginning of jobs sent to this logical printer.') tcpip_smtp_server_addr = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 23), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSmtpServerAddr.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpServerAddr.setDescription('The IP address of the e-mail server which will be used to send e-mail notification of printer status conditions. This address must contain the valid IP address of an e-mail server before any of the contents of the SmtpTable are used.') tcpip_num_smtp_destinations = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 24), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipNumSmtpDestinations.setStatus('mandatory') if mibBuilder.loadTexts: tcpipNumSmtpDestinations.setDescription('The number of configurable e-mail destinations to receive printer status conditions. ') tcpip_smtp_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25)) if mibBuilder.loadTexts: tcpipSmtpTable.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSmtpTable.setDescription('A list of SMTP e-mail addresses and printer status conditions to send e-mails for. The number of entries is given by the value of tcpipNumSmtpDestinations.') tcpip_smtp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1)).setIndexNames((0, 'ESI-MIB', 'tcpipSmtpIndex')) if mibBuilder.loadTexts: tcpipSmtpEntry.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSmtpEntry.setDescription('An entry in the tcpipSmtpTable.') tcpip_smtp_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipSmtpIndex.setStatus('mandatory') if mibBuilder.loadTexts: tcpipSmtpIndex.setDescription('A unique value for entry in the tcpipSmtpTable. Its value ranges between 1 and the value of tcpipNumSmtpDestinations.') tcpip_smtp_email_addr = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSmtpEmailAddr.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpEmailAddr.setDescription('This is the e-mail address that printer status conditions are sent to. If this string is empty the status conditions will not be sent.') tcpip_smtp_protocol_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSmtpProtocolMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpProtocolMask.setDescription('This is the 16 bit mask which determines which protocol specific conditions will be sent out via e-mail. Currently no protocol specific conditions are supported.') tcpip_smtp_printer_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSmtpPrinterMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpPrinterMask.setDescription('This is the 16 bit mask which determines which printer specific conditions will be sent out via e-mail. A value of 65535 indicates that all printer specific conditions should be reported via e-mail. BIT CONDITION --- -------------------------- 0 On-line (Condition cleared) 1 Off-line 2 No printer attached 3 Toner Low 4 Paper Out 5 Paper Jam 6 Door Open 15 Printer Error') tcpip_smtp_output_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 25, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipSmtpOutputMask.setStatus('optional') if mibBuilder.loadTexts: tcpipSmtpOutputMask.setDescription('This is the 16 bit mask which determines which physical output ports will be checked when generating printer specific conditions to be sent out via e-mail. A value of 65535 indicates that all physical output ports will generate e-mails upon a change in status. BIT CONDITION --- -------------------------- 0 Port 1 1 Port 2 2 Port 3 3 Port 4 ... ...') tcpip_web_admin_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 26), octet_string().subtype(subtypeSpec=value_size_constraint(25, 25)).setFixedLength(25)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWebAdminName.setStatus('optional') if mibBuilder.loadTexts: tcpipWebAdminName.setDescription('This is the admin name used by web configuration for login.') tcpip_web_admin_password = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 27), octet_string().subtype(subtypeSpec=value_size_constraint(25, 25)).setFixedLength(25)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWebAdminPassword.setStatus('optional') if mibBuilder.loadTexts: tcpipWebAdminPassword.setDescription('This is the admin password used by web configuration for login.') tcpip_web_user_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 28), octet_string().subtype(subtypeSpec=value_size_constraint(25, 25)).setFixedLength(25)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWebUserName.setStatus('optional') if mibBuilder.loadTexts: tcpipWebUserName.setDescription('This is the user name used by web configuration for login. Not currently used. ') tcpip_web_user_password = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 29), octet_string().subtype(subtypeSpec=value_size_constraint(25, 25)).setFixedLength(25)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWebUserPassword.setStatus('optional') if mibBuilder.loadTexts: tcpipWebUserPassword.setDescription('This is the user password used by web configuration for login. Not currently used.') tcpip_web_htttp_port = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 30), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWebHtttpPort.setStatus('optional') if mibBuilder.loadTexts: tcpipWebHtttpPort.setDescription('The port number used to communicate over http. Must be between 0 and 65535. It must not be the same as any other port used. Other ports used are 20, 21, 23, 515, & raw port numbers (9100, 9101, ... if at default)') tcpip_web_faq_url = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 31), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWebFaqURL.setStatus('optional') if mibBuilder.loadTexts: tcpipWebFaqURL.setDescription('This is the URL for FAQ at the ESI (or other OEM) website.') tcpip_web_update_url = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 32), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWebUpdateURL.setStatus('optional') if mibBuilder.loadTexts: tcpipWebUpdateURL.setDescription('This is the URL for finding firmware updates at the ESI (or other OEM) website.') tcpip_web_custom_link_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 33), octet_string().subtype(subtypeSpec=value_size_constraint(25, 25)).setFixedLength(25)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWebCustomLinkName.setStatus('optional') if mibBuilder.loadTexts: tcpipWebCustomLinkName.setDescription('This is the name assigned to the custom link defined by the user.') tcpip_web_custom_link_url = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 34), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipWebCustomLinkURL.setStatus('optional') if mibBuilder.loadTexts: tcpipWebCustomLinkURL.setDescription('This is the URL for a custom link specified by the user.') tcpip_pop3_server_address = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 35), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipPOP3ServerAddress.setStatus('optional') if mibBuilder.loadTexts: tcpipPOP3ServerAddress.setDescription('The IP address of the POP3 server from which email will be retrieved. This address must contain the valid IP address of a POP3 server before any attempts to retrieve email will be made.') tcpip_pop3_poll_interval = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 36), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipPOP3PollInterval.setStatus('mandatory') if mibBuilder.loadTexts: tcpipPOP3PollInterval.setDescription('The number of seconds between attempts to retrieve mail from the POP3 server. ') tcpip_pop3_user_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 37), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipPOP3UserName.setStatus('optional') if mibBuilder.loadTexts: tcpipPOP3UserName.setDescription("This is the user name for the print server's email account on the POP3 server.") tcpip_pop3_password = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 38), octet_string().subtype(subtypeSpec=value_size_constraint(20, 20)).setFixedLength(20)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipPOP3Password.setStatus('optional') if mibBuilder.loadTexts: tcpipPOP3Password.setDescription("This is the password for the print server's email account on the POP3 server.") tcpip_domain_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 4, 39), octet_string().subtype(subtypeSpec=value_size_constraint(64, 64)).setFixedLength(64)).setMaxAccess('readwrite') if mibBuilder.loadTexts: tcpipDomainName.setStatus('optional') if mibBuilder.loadTexts: tcpipDomainName.setDescription('This is the Domain name used by POP3 and SMTP.') tcpip_error = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 5, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipError.setStatus('optional') if mibBuilder.loadTexts: tcpipError.setDescription('Contains any tcpip specific error information.') tcpip_display_mask = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 1, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: tcpipDisplayMask.setStatus('mandatory') if mibBuilder.loadTexts: tcpipDisplayMask.setDescription('Bit mask describing what should be displayed by the utilities bit Description --- ----------- 0 tcpipAddress (Includes tcpipDefaultGateway and tcpipSubnetMask) 1 tcpipUsingNetProtocols (Includes tcpipBootProtocolsEnabled, tcpipAddressSource, tcpipAddressServerAddress) 2 tcpipTimeoutChecking 3 tcpipTraps (Includes all trap info) 4 tcpipBanners 5 tcpipSecurity (Includes all security info) 6 tcpipWinsAddress (Includes tcpipWinsAddressSource) 7 tcpipConfigPassword 8 tcpipTimeoutCheckingValue 9 tcpipArpInterval 10 tcpipRawPortNumber 11 tcpipError 12 tcpipLowBandwidth 13 tcpipMLP (Includes all logical printer settings)') nw_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: nwGroupVersion.setDescription('The version for the netware group.') nw_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwEnabled.setStatus('optional') if mibBuilder.loadTexts: nwEnabled.setDescription('Indicates whether or not the NetWare protocol stack is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_restore_defaults = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: nwRestoreDefaults.setDescription('A value of 2 will restore all NetWare parameters on the print server to factory defaults, as well as reset the print server.') nw_firmware_upgrade = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwFirmwareUpgrade.setStatus('optional') if mibBuilder.loadTexts: nwFirmwareUpgrade.setDescription('A value of 2 will put the print server into firmware upgrade mode.') nw_frame_format = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('unknown', 1), ('ethernet-II', 2), ('ethernet-802-3', 3), ('ethernet-802-2', 4), ('ethernet-Snap', 5), ('token-Ring', 6), ('token-Ring-Snap', 7)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwFrameFormat.setStatus('optional') if mibBuilder.loadTexts: nwFrameFormat.setDescription('Indicates the frame format that the print server is using. See nwSetFrameFormat to determine which frame frame format the print server is configured for.') nw_set_frame_format = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=named_values(('auto-Sense', 1), ('forced-Ethernet-II', 2), ('forced-Ethernet-802-3', 3), ('forced-Ethernet-802-2', 4), ('forced-Ethernet-Snap', 5), ('forced-Token-Ring', 6), ('forced-Token-Ring-Snap', 7)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwSetFrameFormat.setStatus('optional') if mibBuilder.loadTexts: nwSetFrameFormat.setDescription('Indicates the frame format that the print server is using. Setting this value to 1 (Auto_Sense) indicates that automatic frame format sensing will be used. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_mode = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('unknown', 1), ('pserver', 2), ('rprinter', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwMode.setStatus('optional') if mibBuilder.loadTexts: nwMode.setDescription('Mode the print server is running in. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_print_server_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 4), display_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPrintServerName.setStatus('optional') if mibBuilder.loadTexts: nwPrintServerName.setDescription('Contains print server name. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_print_server_password = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 9))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPrintServerPassword.setStatus('optional') if mibBuilder.loadTexts: nwPrintServerPassword.setDescription('The print server password. This value cannot be read, just set. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_queue_scan_time = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwQueueScanTime.setStatus('optional') if mibBuilder.loadTexts: nwQueueScanTime.setDescription('Determines how often, in tenths of a second that the print server will scan the queues for jobs. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_network_number = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 7), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readonly') if mibBuilder.loadTexts: nwNetworkNumber.setStatus('optional') if mibBuilder.loadTexts: nwNetworkNumber.setDescription("The print server's network number.") nw_max_file_servers = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 8), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwMaxFileServers.setStatus('optional') if mibBuilder.loadTexts: nwMaxFileServers.setDescription('The print server maximum number of file servers which it can be attached to at once.') nw_file_server_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9)) if mibBuilder.loadTexts: nwFileServerTable.setStatus('optional') if mibBuilder.loadTexts: nwFileServerTable.setDescription('A table of file servers to service.') nw_file_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9, 1)).setIndexNames((0, 'ESI-MIB', 'nwFileServerIndex')) if mibBuilder.loadTexts: nwFileServerEntry.setStatus('optional') if mibBuilder.loadTexts: nwFileServerEntry.setDescription('A file server for the print server to service.') nw_file_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwFileServerIndex.setStatus('optional') if mibBuilder.loadTexts: nwFileServerIndex.setDescription("A unique value for each file server. Its value ranges between 1 and the value of nwMaxFileServers. The value for each server must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization. The first entry in the table is the default file server.") nw_file_server_name = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwFileServerName.setStatus('optional') if mibBuilder.loadTexts: nwFileServerName.setDescription('The file server name. This name will be NULL if there is no file server to be serviced. Only the default file server (the first entry in the table) can be set. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_file_server_connection_status = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 258, 261, 276, 512, 515, 768, 769, 32767))).clone(namedValues=named_values(('up', 1), ('down', 2), ('startupInProgress', 3), ('serverReattaching', 4), ('serverNeverAttached', 5), ('pse-UNKNOWN-FILE-SERVER', 258), ('pse-NO-RESPONSE', 261), ('pse-CANT-LOGIN', 276), ('pse-NO-SUCH-QUEUE', 512), ('pse-UNABLE-TO-ATTACH-TO-QUEUE', 515), ('bad-CONNECTION', 768), ('bad-SERVICE-CONNECTION', 769), ('other', 32767)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwFileServerConnectionStatus.setStatus('optional') if mibBuilder.loadTexts: nwFileServerConnectionStatus.setDescription('The value describes the status of the connection between the file server and the print server.') nw_port_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10)) if mibBuilder.loadTexts: nwPortTable.setStatus('optional') if mibBuilder.loadTexts: nwPortTable.setDescription('A table of NetWare port specific information.') nw_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1)).setIndexNames((0, 'ESI-MIB', 'nwPortIndex')) if mibBuilder.loadTexts: nwPortEntry.setStatus('optional') if mibBuilder.loadTexts: nwPortEntry.setDescription('An entry of NetWare port specific information.') nw_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwPortIndex.setStatus('optional') if mibBuilder.loadTexts: nwPortIndex.setDescription("A unique value for each physical output port. Its value ranges between 1 and the value of outputNumPorts. The value for each port must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.") nw_port_status = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwPortStatus.setStatus('optional') if mibBuilder.loadTexts: nwPortStatus.setDescription('A string indicating the NetWare specific status of the physical output port.') nw_port_printer_number = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPortPrinterNumber.setStatus('optional') if mibBuilder.loadTexts: nwPortPrinterNumber.setDescription('Indicates the printer number for the print server to use when running in RPRinter mode. A value of 255 indicates that the port is unconfigured for RPRinter mode. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_port_font_download = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled-No-Power-Sense', 2), ('enabled-Power-Sense', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPortFontDownload.setStatus('optional') if mibBuilder.loadTexts: nwPortFontDownload.setDescription('This variable controls the font downloading feature of the print server. Disabled - Do not download fonts. Enabled, without Printer Sense - Only download fonts after the print server has been reset or power cycled. Enabled, with Printer Sense - Download fonts after the print server has been reset or power-cycled, or after the printer has been power-cycled. This option is only available on certain print servers. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_port_pcl_queue = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPortPCLQueue.setStatus('optional') if mibBuilder.loadTexts: nwPortPCLQueue.setDescription('A string indicating the name of the queue containing the PCL fonts to download when font downloading is enabled. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_port_ps_queue = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPortPSQueue.setStatus('optional') if mibBuilder.loadTexts: nwPortPSQueue.setDescription('A string indicating the name of the queue containing the PS fonts to download when font downloading is enabled. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_port_forms_on = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPortFormsOn.setStatus('optional') if mibBuilder.loadTexts: nwPortFormsOn.setDescription('A value of 2 will enable forms checking. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') nw_port_form_number = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPortFormNumber.setStatus('optional') if mibBuilder.loadTexts: nwPortFormNumber.setDescription('Indicates the form number to check jobs against when nwPortFormsOn is enabled.') nw_port_notification = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 10, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPortNotification.setStatus('optional') if mibBuilder.loadTexts: nwPortNotification.setDescription('A value of 2 will enable job notification.') nw_num_traps = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 11), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwNumTraps.setStatus('mandatory') if mibBuilder.loadTexts: nwNumTraps.setDescription('The number of IPX trap destinations.') nw_trap_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12)) if mibBuilder.loadTexts: nwTrapTable.setStatus('mandatory') if mibBuilder.loadTexts: nwTrapTable.setDescription('A list of IPX trap definitions. The number of entries is given by the value of nwNumTraps.') nw_trap_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1)).setIndexNames((0, 'ESI-MIB', 'nwTrapIndex')) if mibBuilder.loadTexts: nwTrapEntry.setStatus('mandatory') if mibBuilder.loadTexts: nwTrapEntry.setDescription('An entry in the nwTrapTable.') nw_trap_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwTrapIndex.setStatus('mandatory') if mibBuilder.loadTexts: nwTrapIndex.setDescription('A unique value for entry in the nwTrapTable. Its value ranges between 1 and the value of nwNumTraps.') nw_trap_destination = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwTrapDestination.setStatus('optional') if mibBuilder.loadTexts: nwTrapDestination.setDescription('This is the network address that IPX traps are sent to. A value of 00 00 00 00 00 00 in conjunction with a nwTrapDestinationNet of 00 00 00 00 will disable traps over IPX.') nw_trap_destination_net = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(4, 4)).setFixedLength(4)).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwTrapDestinationNet.setStatus('mandatory') if mibBuilder.loadTexts: nwTrapDestinationNet.setDescription('This is the network number that IPX traps are sent to. A value of 00 00 00 00 in conjunction with a nwTrapDestination of 00 00 00 00 00 00 will disable traps over IPX.') nw_protocol_trap_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 4), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwProtocolTrapMask.setStatus('optional') if mibBuilder.loadTexts: nwProtocolTrapMask.setDescription('This is the 16 bit mask which determines which protocol specific traps will be sent out via IPX. Currently no protocol specific traps are supported.') nw_printer_trap_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 5), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwPrinterTrapMask.setStatus('optional') if mibBuilder.loadTexts: nwPrinterTrapMask.setDescription('This is the 16 bit mask which determines which printer specific traps will be sent out via IPX. A value of 65535 indicates that all printer specific traps should be reported via IPX. BIT CONDITION --- -------------------------- 0 On-line (Condition cleared) 1 Off-line 2 No printer attached 3 Toner Low 4 Paper Out 5 Paper Jam 6 Door Open 15 Printer Error') nw_output_trap_mask = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 12, 1, 6), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwOutputTrapMask.setStatus('optional') if mibBuilder.loadTexts: nwOutputTrapMask.setDescription('This is the 16 bit mask which determines which physical output ports will be checked when generating printer specific traps to be sent out via IPX. A value of 65535 indicates that all physical output ports will generate traps. BIT CONDITION --- -------------------------- 0 Port 1 1 Port 2 2 Port 3 3 Port 4 ... ...') nw_nds_print_server_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 13), display_string().subtype(subtypeSpec=value_size_constraint(0, 512))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwNDSPrintServerName.setStatus('optional') if mibBuilder.loadTexts: nwNDSPrintServerName.setDescription('Directory Services object used by the print server to connect to the NDS tree. This string contains the entire canonicalized name. NOTE: This variable must be stored in Unicode.') nw_nds_preferred_ds_tree = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 14), display_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwNDSPreferredDSTree.setStatus('optional') if mibBuilder.loadTexts: nwNDSPreferredDSTree.setDescription('Directory Services tree to which the NDS print server initially connects.') nw_nds_preferred_ds_file_server = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 15), display_string().subtype(subtypeSpec=value_size_constraint(0, 47))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwNDSPreferredDSFileServer.setStatus('optional') if mibBuilder.loadTexts: nwNDSPreferredDSFileServer.setDescription('The NetWare server to which the NDS print server initially makes a bindery connection.') nw_nds_packet_check_sum_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 16), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwNDSPacketCheckSumEnabled.setStatus('optional') if mibBuilder.loadTexts: nwNDSPacketCheckSumEnabled.setDescription('Compute the checksum for packets. 1 = disabled 2 = enabled') nw_nds_packet_signature_level = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 17), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwNDSPacketSignatureLevel.setStatus('optional') if mibBuilder.loadTexts: nwNDSPacketSignatureLevel.setDescription('Packet signature is a security method to prevent packet forging. 1 = disabled 2 = enabled 3 = preferred 4 = required') nw_available_print_modes = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 18), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwAvailablePrintModes.setStatus('optional') if mibBuilder.loadTexts: nwAvailablePrintModes.setDescription('Reports which NetWare print modes are available. BIT CONDITION --- -------------------------- 0 PServer 1 RPrinter 2 NDS 3 SPX Direct 4 JetAdmin ') nw_direct_print_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwDirectPrintEnabled.setStatus('optional') if mibBuilder.loadTexts: nwDirectPrintEnabled.setDescription('Indicates whether or not direct mode ipx/spx printing is enabled.') nw_ja_config = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwJAConfig.setStatus('optional') if mibBuilder.loadTexts: nwJAConfig.setDescription('Indicates whether or not JetAdmin was used to configure the netware settings.') nw_disable_sap = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 4, 21), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: nwDisableSAP.setStatus('optional') if mibBuilder.loadTexts: nwDisableSAP.setDescription('Indicates whether or not SAPs are enabled.') nw_error = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 5, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 160))).setMaxAccess('readonly') if mibBuilder.loadTexts: nwError.setStatus('optional') if mibBuilder.loadTexts: nwError.setDescription('Contains any NetWare specific error information.') nw_display_mask = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 2, 6), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: nwDisplayMask.setStatus('mandatory') if mibBuilder.loadTexts: nwDisplayMask.setDescription('Bit mask describing what should be displayed by the utilities bit Description --- ----------- 0 nwFrameFormat 1 nwJetAdmin 2 nwFileServer (Includes all file server info) 3 nwMode 4 nwPrintServerName 5 nwPrintServerPassword 6 nwQueueScanTime 7 nwNetworkNumber 8 nwPortStatus 9 nwPortPrinterNumber 10 nwPortFontDownload (Includes nwPortPCLQueue and nwPortPSQueue) 11 nwPortFormsOn (Includes nwPortFormsNumber) 12 nwPortNotification 13 nwTraps (Includes all trap info) 14 nwNDSPrintServerName 15 nwNDSPreferredDSTree 16 nwNDSPreferredDSFileServer 17 nwNDSPacketCheckSumEnabled 18 nwNDSPacketSignatureLevel 19 nwDirectPrintEnabled 20 nwError 21 nwSapDisable') bv_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: bvGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: bvGroupVersion.setDescription('The version for the vines group.') bv_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvEnabled.setStatus('optional') if mibBuilder.loadTexts: bvEnabled.setDescription('Indicates whether or not the Banyan VINES protocol stack is enabled on the print server.') bv_restore_defaults = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: bvRestoreDefaults.setDescription('A value of 2 will restore all VINES parameters on the print server to factory defaults, as well as reset the device.') bv_firmware_upgrade = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvFirmwareUpgrade.setStatus('optional') if mibBuilder.loadTexts: bvFirmwareUpgrade.setDescription('A value of 2 will put the print server into firmware upgrade mode.') bv_set_sequence_routing = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('automatic-Routing', 1), ('force-Sequenced-Routing', 2), ('force-Non-Sequenced-Routing', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvSetSequenceRouting.setStatus('optional') if mibBuilder.loadTexts: bvSetSequenceRouting.setDescription('Sets the VINES Routing selection. Automatic - Utilizes Sequenced Routing if available, otherwise uses Non-Sequenced Routing. Force-Sequenced - Will only use Sequenced Routing. Force-Non-Sequenced - Will only use Non-Sequenced Routing In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this. WARNING - Sequential Routing requires a VINES 5.5 or greater server on the same subnet.') bv_disable_vp_man = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 3, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvDisableVPMan.setStatus('optional') if mibBuilder.loadTexts: bvDisableVPMan.setDescription('A value of 2 will disable VPMan access to the print server for one minute.') bv_login_name = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 1), display_string().subtype(subtypeSpec=value_size_constraint(5, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvLoginName.setStatus('optional') if mibBuilder.loadTexts: bvLoginName.setDescription('The StreetTalk name the device will use to login with. This value will be ESIxxxxxxxx where xxxxxxx is the Serial number of the device if it is unconfigured. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') bv_login_password = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvLoginPassword.setStatus('optional') if mibBuilder.loadTexts: bvLoginPassword.setDescription('The password for the login name, bvLoginName. This value cannot be read, just set. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') bv_number_print_services = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: bvNumberPrintServices.setStatus('optional') if mibBuilder.loadTexts: bvNumberPrintServices.setDescription('The number of Print Services this device supports.') bv_print_service_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4)) if mibBuilder.loadTexts: bvPrintServiceTable.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceTable.setDescription('Table of Print Services for this device.') bv_print_service_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4, 1)).setIndexNames((0, 'ESI-MIB', 'bvPrintServiceIndex')) if mibBuilder.loadTexts: bvPrintServiceEntry.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceEntry.setDescription('Print Services Table entry.') bv_print_service_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: bvPrintServiceIndex.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceIndex.setDescription('A unique value for each print service.') bv_print_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvPrintServiceName.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceName.setDescription('The StreetTalk Name for this Print Service. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') bv_print_service_routing = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 4, 1, 3), integer32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvPrintServiceRouting.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceRouting.setDescription('The output port that the print service will print to. This value will range from 0 to the number of output ports, see outputNumPorts. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') bv_pnic_description = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 4, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: bvPnicDescription.setStatus('optional') if mibBuilder.loadTexts: bvPnicDescription.setDescription('Contains the VINES PNIC description.') bv_error = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvError.setStatus('optional') if mibBuilder.loadTexts: bvError.setDescription('Contains any VINES specific error information.') bv_routing = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 32766, 32767))).clone(namedValues=named_values(('sequenced-Routing', 1), ('non-Sequenced-Routing', 2), ('unknown-Routing', 32766), ('protocol-Disabled', 32767)))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvRouting.setStatus('optional') if mibBuilder.loadTexts: bvRouting.setDescription('The current VINES Routing being used by the device.') bv_num_print_services = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: bvNumPrintServices.setStatus('optional') if mibBuilder.loadTexts: bvNumPrintServices.setDescription('The number of Print Services this device supports.') bv_print_service_status_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4)) if mibBuilder.loadTexts: bvPrintServiceStatusTable.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceStatusTable.setDescription("Table of Print Service Status Entry's.") bv_print_service_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1)).setIndexNames((0, 'ESI-MIB', 'bvPSStatusIndex')) if mibBuilder.loadTexts: bvPrintServiceStatusEntry.setStatus('optional') if mibBuilder.loadTexts: bvPrintServiceStatusEntry.setDescription('Print Service Status Entry.') bv_ps_status_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: bvPSStatusIndex.setStatus('optional') if mibBuilder.loadTexts: bvPSStatusIndex.setDescription('A unique value for each status entry.') bv_ps_name = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(0, 63))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvPSName.setStatus('optional') if mibBuilder.loadTexts: bvPSName.setDescription('The StreetTalk Name for this Print Service.') bv_ps_status = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(0, 48))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvPSStatus.setStatus('optional') if mibBuilder.loadTexts: bvPSStatus.setDescription('Print Service Status.') bv_ps_destination = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: bvPSDestination.setStatus('optional') if mibBuilder.loadTexts: bvPSDestination.setDescription('Port Destination for this print service.') bv_printer_status = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvPrinterStatus.setStatus('optional') if mibBuilder.loadTexts: bvPrinterStatus.setDescription('Printer status for this Print Service.') bv_job_active = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvJobActive.setStatus('optional') if mibBuilder.loadTexts: bvJobActive.setDescription('Whether there is a VINES job active for this print service.') bv_job_source = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvJobSource.setStatus('optional') if mibBuilder.loadTexts: bvJobSource.setDescription('The active print jobs source.') bv_job_title = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvJobTitle.setStatus('optional') if mibBuilder.loadTexts: bvJobTitle.setDescription('The title of the active print job.') bv_job_size = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 9), display_string().subtype(subtypeSpec=value_size_constraint(0, 9))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvJobSize.setStatus('optional') if mibBuilder.loadTexts: bvJobSize.setDescription('The size of the active print job.') bv_job_number = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 3, 5, 4, 1, 10), display_string().subtype(subtypeSpec=value_size_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: bvJobNumber.setStatus('optional') if mibBuilder.loadTexts: bvJobNumber.setDescription('The VINES job number of the active print job.') lm_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 4, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: lmGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: lmGroupVersion.setDescription('The version for the lanManger group.') lm_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 4, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: lmEnabled.setStatus('optional') if mibBuilder.loadTexts: lmEnabled.setDescription('Indicates whether or not the Lan Manager protocol stack is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') e_talk_group_version = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eTalkGroupVersion.setStatus('mandatory') if mibBuilder.loadTexts: eTalkGroupVersion.setDescription('The version for the eTalk group.') e_talk_enabled = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eTalkEnabled.setStatus('optional') if mibBuilder.loadTexts: eTalkEnabled.setDescription('Indicates whether or not the EtherTalk protocol stack is enabled on the print server. In order for changes to this variable to take effect, the print server must be reset. See cmdReset to do this.') e_talk_restore_defaults = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 3, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eTalkRestoreDefaults.setStatus('optional') if mibBuilder.loadTexts: eTalkRestoreDefaults.setDescription('A value of 2 will restore all EtherTalk parameters on the print server to factory defaults, as well as reset the print server.') e_talk_network = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 1), octet_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: eTalkNetwork.setStatus('optional') if mibBuilder.loadTexts: eTalkNetwork.setDescription('Indicates the EtherTalk network number that the print server is currently using.') e_talk_node = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 2), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: eTalkNode.setStatus('optional') if mibBuilder.loadTexts: eTalkNode.setDescription('Indicates the EtherTalk node number that the print server is currently using.') e_talk_num_ports = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eTalkNumPorts.setStatus('optional') if mibBuilder.loadTexts: eTalkNumPorts.setDescription('Indicates the number of physical output ports that are EtherTalk compatible.') e_talk_port_table = mib_table((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4)) if mibBuilder.loadTexts: eTalkPortTable.setStatus('optional') if mibBuilder.loadTexts: eTalkPortTable.setDescription('A table of EtherTalk specific port configuration information.') e_talk_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1)).setIndexNames((0, 'ESI-MIB', 'eTalkPortIndex')) if mibBuilder.loadTexts: eTalkPortEntry.setStatus('optional') if mibBuilder.loadTexts: eTalkPortEntry.setDescription('An entry of EtherTalk port specific information.') e_talk_port_index = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: eTalkPortIndex.setStatus('optional') if mibBuilder.loadTexts: eTalkPortIndex.setDescription("A unique value for each physical output port which is compatible with EtherTalk. Its value ranges between 1 and the value of eTalkNumPorts. The value for each port must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization.") e_talk_port_enable = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('no', 1), ('yes', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eTalkPortEnable.setStatus('optional') if mibBuilder.loadTexts: eTalkPortEnable.setDescription('Indicates whether or not the physical output port is enabled to print via EtherTalk and will show up in the Chooser.') e_talk_name = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eTalkName.setStatus('optional') if mibBuilder.loadTexts: eTalkName.setDescription('This is the EtherTalk name for the print server.') e_talk_active_name = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 4), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: eTalkActiveName.setStatus('optional') if mibBuilder.loadTexts: eTalkActiveName.setDescription('This is the EtherTalk name for the print server that is currently being used.') e_talk_type1 = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eTalkType1.setStatus('optional') if mibBuilder.loadTexts: eTalkType1.setDescription('Indicates the first EtherTalk type. This type is mandatory.') e_talk_type2 = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 6), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eTalkType2.setStatus('optional') if mibBuilder.loadTexts: eTalkType2.setDescription('Indicates the second EtherTalk type. This type is optional. Setting this name to NULL will disable it.') e_talk_zone = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 7), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: eTalkZone.setStatus('optional') if mibBuilder.loadTexts: eTalkZone.setDescription('Indicates the EtherTalk zone. This must be defined on the router.') e_talk_active_zone = mib_table_column((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 4, 4, 1, 8), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: eTalkActiveZone.setStatus('optional') if mibBuilder.loadTexts: eTalkActiveZone.setDescription('Indicates the EtherTalk zone that is currently being used. This must be defined on the router.') e_talk_error = mib_scalar((1, 3, 6, 1, 4, 1, 683, 6, 3, 5, 5, 1), display_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readonly') if mibBuilder.loadTexts: eTalkError.setStatus('optional') if mibBuilder.loadTexts: eTalkError.setDescription('Shows any errors for the EtherTalk protocol.') trap_printer_online = notification_type((1, 3, 6, 1, 4, 1, 683, 6) + (0, 1)).setObjects(('ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: trapPrinterOnline.setDescription('The printer is on-line. This trap will be sent out after a printer error condition has been cleared.') trap_printer_offline = notification_type((1, 3, 6, 1, 4, 1, 683, 6) + (0, 2)).setObjects(('ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: trapPrinterOffline.setDescription('The printer is off-line.') trap_no_printer_attached = notification_type((1, 3, 6, 1, 4, 1, 683, 6) + (0, 3)).setObjects(('ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: trapNoPrinterAttached.setDescription('No printer is attached to the output port.') trap_printer_toner_low = notification_type((1, 3, 6, 1, 4, 1, 683, 6) + (0, 4)).setObjects(('ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: trapPrinterTonerLow.setDescription('The printer toner is low.') trap_printer_paper_out = notification_type((1, 3, 6, 1, 4, 1, 683, 6) + (0, 5)).setObjects(('ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: trapPrinterPaperOut.setDescription('The printer is out of paper.') trap_printer_paper_jam = notification_type((1, 3, 6, 1, 4, 1, 683, 6) + (0, 6)).setObjects(('ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: trapPrinterPaperJam.setDescription('The printer has a paper jam.') trap_printer_door_open = notification_type((1, 3, 6, 1, 4, 1, 683, 6) + (0, 7)).setObjects(('ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: trapPrinterDoorOpen.setDescription('The printer door is open.') trap_printer_error = notification_type((1, 3, 6, 1, 4, 1, 683, 6) + (0, 16)).setObjects(('ESI-MIB', 'outputIndex')) if mibBuilder.loadTexts: trapPrinterError.setDescription('General printer error.') mibBuilder.exportSymbols('ESI-MIB', eTalkNode=eTalkNode, bvPrintServiceRouting=bvPrintServiceRouting, nwPortNotification=nwPortNotification, outputDisplayMask=outputDisplayMask, tcpipBootProtocolsEnabled=tcpipBootProtocolsEnabled, bvStatus=bvStatus, nwNDSPreferredDSFileServer=nwNDSPreferredDSFileServer, bvGroupVersion=bvGroupVersion, nwMaxFileServers=nwMaxFileServers, bvEnabled=bvEnabled, trCommands=trCommands, tcpipSecureStartIPAddress=tcpipSecureStartIPAddress, nwTrapDestination=nwTrapDestination, trapPrinterOffline=trapPrinterOffline, tcpipError=tcpipError, driverRXPacketErrors=driverRXPacketErrors, lmGroupVersion=lmGroupVersion, general=general, genVersion=genVersion, outputNumLogEntries=outputNumLogEntries, driverTXPacketRetries=driverTXPacketRetries, tcpipNumSecurity=tcpipNumSecurity, genProtocolIndex=genProtocolIndex, cmdRestoreDefaults=cmdRestoreDefaults, eTalkName=eTalkName, tcpipIPAddressSource=tcpipIPAddressSource, esiSNMP=esiSNMP, tcpipSmtpEmailAddr=tcpipSmtpEmailAddr, nwQueueScanTime=nwQueueScanTime, trapPrinterPaperJam=trapPrinterPaperJam, nwPortTable=nwPortTable, tcpipSmtpPrinterMask=tcpipSmtpPrinterMask, tcpipWinsAddress=tcpipWinsAddress, nwGroupVersion=nwGroupVersion, nwEnabled=nwEnabled, nwMode=nwMode, genCableType=genCableType, outputHandshake=outputHandshake, tcpipPOP3ServerAddress=tcpipPOP3ServerAddress, nwConfigure=nwConfigure, outputJobLogTable=outputJobLogTable, nwStatus=nwStatus, bvJobActive=bvJobActive, eTalkActiveZone=eTalkActiveZone, eTalkZone=eTalkZone, nwFileServerTable=nwFileServerTable, eTalkPortEntry=eTalkPortEntry, trRestoreDefaults=trRestoreDefaults, outputEntry=outputEntry, snmpTrapCommunityName=snmpTrapCommunityName, outputExtendedStatus=outputExtendedStatus, tcpipWebUpdateURL=tcpipWebUpdateURL, eTalkError=eTalkError, outputTable=outputTable, outputBIDIStatusEnabled=outputBIDIStatusEnabled, tcpipOutputTrapMask=tcpipOutputTrapMask, tcpipMLPPort=tcpipMLPPort, eTalkEnabled=eTalkEnabled, eTalkRestoreDefaults=eTalkRestoreDefaults, trRouting=trRouting, outputCommandsEntry=outputCommandsEntry, tcpipSecurityEntry=tcpipSecurityEntry, tcpipPOP3PollInterval=tcpipPOP3PollInterval, nwDisplayMask=nwDisplayMask, cmdGroupVersion=cmdGroupVersion, trapPrinterPaperOut=trapPrinterPaperOut, psOutput=psOutput, nwOutputTrapMask=nwOutputTrapMask, lanManager=lanManager, nwTrapIndex=nwTrapIndex, tcpip=tcpip, bvPnicDescription=bvPnicDescription, outputCommands=outputCommands, tcpipSubnetMask=tcpipSubnetMask, tcpipWinsAddressSource=tcpipWinsAddressSource, tcpipWebAdminName=tcpipWebAdminName, genProtocolTable=genProtocolTable, driverTXPacketErrors=driverTXPacketErrors, bvPrinterStatus=bvPrinterStatus, tcpipTrapEntry=tcpipTrapEntry, tcpipTrapDestination=tcpipTrapDestination, eTalkPortIndex=eTalkPortIndex, outputTotalJobsLogged=outputTotalJobsLogged, outputNumPorts=outputNumPorts, bvLoginName=bvLoginName, vines=vines, trConfigure=trConfigure, tcpipSmtpProtocolMask=tcpipSmtpProtocolMask, lmEnabled=lmEnabled, psGroupVersion=psGroupVersion, tcpipSecurePrinterMask=tcpipSecurePrinterMask, tcpipDomainName=tcpipDomainName, trapNoPrinterAttached=trapNoPrinterAttached, outputPCLString=outputPCLString, outputCommandsTable=outputCommandsTable, nwNDSPacketSignatureLevel=nwNDSPacketSignatureLevel, bvJobSize=bvJobSize, tcpipWebUserPassword=tcpipWebUserPassword, eTalkConfigure=eTalkConfigure, bvConfigure=bvConfigure, tcpipNumLogicalPrinters=tcpipNumLogicalPrinters, outputDataBits=outputDataBits, nwSetFrameFormat=nwSetFrameFormat, outputIndex=outputIndex, eTalkStatus=eTalkStatus, outputProtocolManager=outputProtocolManager, nwJAConfig=nwJAConfig, tokenRing=tokenRing, tcpipNumTraps=tcpipNumTraps, psJetAdminEnabled=psJetAdminEnabled, tcpipMLPIndex=tcpipMLPIndex, genCompanyLoc=genCompanyLoc, nwTrapDestinationNet=nwTrapDestinationNet, nwPortFormsOn=nwPortFormsOn, genSysUpTimeString=genSysUpTimeString, tcpipMLPPostString=tcpipMLPPostString, tcpipSecurityIndex=tcpipSecurityIndex, tcpipWebHtttpPort=tcpipWebHtttpPort, tcpipPrinterTrapMask=tcpipPrinterTrapMask, nwPortPrinterNumber=nwPortPrinterNumber, nwTrapTable=nwTrapTable, bvSetSequenceRouting=bvSetSequenceRouting, bvLoginPassword=bvLoginPassword, genProtocolID=genProtocolID, eTalkGroupVersion=eTalkGroupVersion, outputBaudRate=outputBaudRate, tcpipWebAdminPassword=tcpipWebAdminPassword, outputStatus=outputStatus, outputPrinterModel=outputPrinterModel, outputParity=outputParity, trGroupVersion=trGroupVersion, genProductNumber=genProductNumber, outputTotalJobIndex=outputTotalJobIndex, outputPSString=outputPSString, nwPortIndex=nwPortIndex, trapPrinterError=trapPrinterError, nwNDSPacketCheckSumEnabled=nwNDSPacketCheckSumEnabled, nwPortFontDownload=nwPortFontDownload, genCompanyName=genCompanyName, cmdPrintConfig=cmdPrintConfig, outputCascaded=outputCascaded, outputConfigure=outputConfigure, bvPSName=bvPSName, outputStopBits=outputStopBits, outputTotalJobEntry=outputTotalJobEntry, tcpipSmtpIndex=tcpipSmtpIndex, nwPrinterTrapMask=nwPrinterTrapMask, tcpipWebFaqURL=tcpipWebFaqURL, outputCapabilities=outputCapabilities, printServers=printServers, outputCancelCurrentJob=outputCancelCurrentJob, driver=driver, tcpipRawPortNumber=tcpipRawPortNumber, tcpipWebUserName=tcpipWebUserName, nwNDSPreferredDSTree=nwNDSPreferredDSTree, tcpipMLPDeleteBytes=tcpipMLPDeleteBytes, tcpipTrapIndex=tcpipTrapIndex, tcpipEnabled=tcpipEnabled, tcpipSmtpEntry=tcpipSmtpEntry, psProtocols=psProtocols, driverRXPacketsUnavailable=driverRXPacketsUnavailable, tcpipMLPTable=tcpipMLPTable, nwDisableSAP=nwDisableSAP, bvPrintServiceStatusEntry=bvPrintServiceStatusEntry, esi=esi, genMIBVersion=genMIBVersion, tcpipWebCustomLinkName=tcpipWebCustomLinkName, eTalkPortTable=eTalkPortTable, bvNumPrintServices=bvNumPrintServices, tcpipSecurityTable=tcpipSecurityTable, nwPrintServerName=nwPrintServerName, eTalkType1=eTalkType1, tcpipPOP3Password=tcpipPOP3Password, nwNumTraps=nwNumTraps, outputJobLog=outputJobLog, tcpipDefaultGateway=tcpipDefaultGateway, nwTrapEntry=nwTrapEntry, netware=netware, tcpipMLPEntry=tcpipMLPEntry, genProtocolEntry=genProtocolEntry, trPriority=trPriority, bvPrintServiceStatusTable=bvPrintServiceStatusTable, snmpRestoreDefaults=snmpRestoreDefaults, tcpipConfigPassword=tcpipConfigPassword, nwPortEntry=nwPortEntry, tcpipCommands=tcpipCommands, driverRXPackets=driverRXPackets, tcpipLowBandwidth=tcpipLowBandwidth, bvPSDestination=bvPSDestination, nwDirectPrintEnabled=nwDirectPrintEnabled, tcpipRestoreDefaults=tcpipRestoreDefaults, tcpipGroupVersion=tcpipGroupVersion, tcpipSecureAdminEnabled=tcpipSecureAdminEnabled, outputGroupVersion=outputGroupVersion, tcpipTimeoutChecking=tcpipTimeoutChecking, trapPrinterDoorOpen=trapPrinterDoorOpen, tcpipTimeoutCheckingValue=tcpipTimeoutCheckingValue, nwFileServerName=nwFileServerName, tcpipMLPPreString=tcpipMLPPreString, outputJobLogInformation=outputJobLogInformation, snmpGroupVersion=snmpGroupVersion, tcpipSecureEndIPAddress=tcpipSecureEndIPAddress, nwPortPCLQueue=nwPortPCLQueue, tcpipIPAddress=tcpipIPAddress, bvPSStatus=bvPSStatus, genProtocolDescr=genProtocolDescr, outputAvailableTrapsMask=outputAvailableTrapsMask, driverTXPackets=driverTXPackets, nwFileServerIndex=nwFileServerIndex, nwPortStatus=nwPortStatus, outputConfigLanguage=outputConfigLanguage, tcpipTrapTable=tcpipTrapTable, trapPrinterOnline=trapPrinterOnline, nwFileServerConnectionStatus=nwFileServerConnectionStatus, eTalkNetwork=eTalkNetwork, trEarlyTokenRelease=trEarlyTokenRelease, nwPortPSQueue=nwPortPSQueue, eTalkCommands=eTalkCommands, genDateCode=genDateCode, bvJobTitle=bvJobTitle, genConfigurationDirty=genConfigurationDirty, psVerifyConfiguration=psVerifyConfiguration, tcpipUsingNetProtocols=tcpipUsingNetProtocols, tcpipStatus=tcpipStatus, psGeneral=psGeneral, genNumProtocols=genNumProtocols, bvRouting=bvRouting, bvCommands=bvCommands, driverGroupVersion=driverGroupVersion, genGroupVersion=genGroupVersion, cmdReset=cmdReset, tcpipArpInterval=tcpipArpInterval, nwNetworkNumber=nwNetworkNumber, bvNumberPrintServices=bvNumberPrintServices, bvJobSource=bvJobSource, tcpipWebCustomLinkURL=tcpipWebCustomLinkURL, nwCommands=nwCommands, nwAvailablePrintModes=nwAvailablePrintModes, tcpipFirmwareUpgrade=tcpipFirmwareUpgrade, eTalkNumPorts=eTalkNumPorts, tcpipIPAddressServerAddress=tcpipIPAddressServerAddress, bvPrintServiceIndex=bvPrintServiceIndex, genHWAddress=genHWAddress, genCompanyPhone=genCompanyPhone, bvPrintServiceEntry=bvPrintServiceEntry, eTalkType2=eTalkType2, tcpipMLPName=tcpipMLPName, bvRestoreDefaults=bvRestoreDefaults, tcpipBanners=tcpipBanners, tcpipPOP3UserName=tcpipPOP3UserName, genSerialNumber=genSerialNumber, bvError=bvError, outputLanguageSwitching=outputLanguageSwitching, bvPrintServiceName=bvPrintServiceName) mibBuilder.exportSymbols('ESI-MIB', tcpipDisplayMask=tcpipDisplayMask, nwProtocolTrapMask=nwProtocolTrapMask, nwPrintServerPassword=nwPrintServerPassword, bvFirmwareUpgrade=bvFirmwareUpgrade, bvJobNumber=bvJobNumber, outputJobLogEntry=outputJobLogEntry, outputJobLogTime=outputJobLogTime, nwNDSPrintServerName=nwNDSPrintServerName, tcpipMLPTCPPort=tcpipMLPTCPPort, trapPrinterTonerLow=trapPrinterTonerLow, driverChecksumErrors=driverChecksumErrors, trLocallyAdminAddr=trLocallyAdminAddr, tcpipConfigure=tcpipConfigure, nwRestoreDefaults=nwRestoreDefaults, bvPSStatusIndex=bvPSStatusIndex, tcpipNumSmtpDestinations=tcpipNumSmtpDestinations, outputName=outputName, outputStatusString=outputStatusString, tcpipProtocolTrapMask=tcpipProtocolTrapMask, genProductName=genProductName, bvPrintServiceTable=bvPrintServiceTable, eTalk=eTalk, eTalkActiveName=eTalkActiveName, outputPrinterDisplay=outputPrinterDisplay, commands=commands, genProtocols=genProtocols, nwFirmwareUpgrade=nwFirmwareUpgrade, tcpipSmtpServerAddr=tcpipSmtpServerAddr, outputRestoreDefaults=outputRestoreDefaults, outputSetting=outputSetting, outputOwner=outputOwner, nwFrameFormat=nwFrameFormat, nwError=nwError, nwPortFormNumber=nwPortFormNumber, genCompanyTechSupport=genCompanyTechSupport, nwFileServerEntry=nwFileServerEntry, bvDisableVPMan=bvDisableVPMan, eTalkPortEnable=eTalkPortEnable, esiSNMPCommands=esiSNMPCommands, snmpGetCommunityName=snmpGetCommunityName, tcpipSmtpOutputMask=tcpipSmtpOutputMask, trPacketSize=trPacketSize, outputTotalJobTable=outputTotalJobTable, tcpipSmtpTable=tcpipSmtpTable, outputPrinter=outputPrinter, snmpSetCommunityName=snmpSetCommunityName)
SEED1_DUNGEON = [ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ... ', ' .@. ', ' ... ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '] CMD_STR = 'kHhhKK' CMD_STR5 = 'llljln' SEED1_DUNGEON2 = [ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' --- ', ' +@. ', ' |.S ', ' | ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '] SEED1_DUNGEON3 = [ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' S.. ', ' .@. ', ' +-- ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '] SEED1_DUNGEON_CLEAR = [ ' ', '######################### ----------------- -------------------- ', ' # |.............*.| |..................| ', '####### ############# ### ######+...............| |...*...........%..| ', '# # # # # # |...............+##+..................| ', '### ##### ############*###### ---------------+- --+----------------- ', ' # # ### ', ' ############## ######## # ', ' # ---------------+- # ', ' -----+- ############+...............| -+---- ', ' |.....| # |...............| #######+....| ', ' |.....+###### |......*........+## |..*.| ', ' |....*| |...............| |....| ', ' ----+-- |...............| ------ ', ' ### --------+-------- ', ' # #### ', ' ----+----------- -+-------- --------------- ', ' |..............| |........| |........*....| ', ' |..............| |.......*| |.............| ', ' |.....*........+###### |........| #+.............| ', ' |............@.| #########+........+#####################|.............| ', ' ---------------- ---------- --------------- ', ' ', ' '] CMD_STR2 = 'kLLjLlKkLkkLKkLKklLlkLL>' CMD_STR3 = 'nLLLlnl>' CMD_STR4 = 'JHHKHJHKLKHKHKKlllll>'
seed1_dungeon = [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ... ', ' .@. ', ' ... ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '] cmd_str = 'kHhhKK' cmd_str5 = 'llljln' seed1_dungeon2 = [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' --- ', ' +@. ', ' |.S ', ' | ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '] seed1_dungeon3 = [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' S.. ', ' .@. ', ' +-- ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '] seed1_dungeon_clear = [' ', '######################### ----------------- -------------------- ', ' # |.............*.| |..................| ', '####### ############# ### ######+...............| |...*...........%..| ', '# # # # # # |...............+##+..................| ', '### ##### ############*###### ---------------+- --+----------------- ', ' # # ### ', ' ############## ######## # ', ' # ---------------+- # ', ' -----+- ############+...............| -+---- ', ' |.....| # |...............| #######+....| ', ' |.....+###### |......*........+## |..*.| ', ' |....*| |...............| |....| ', ' ----+-- |...............| ------ ', ' ### --------+-------- ', ' # #### ', ' ----+----------- -+-------- --------------- ', ' |..............| |........| |........*....| ', ' |..............| |.......*| |.............| ', ' |.....*........+###### |........| #+.............| ', ' |............@.| #########+........+#####################|.............| ', ' ---------------- ---------- --------------- ', ' ', ' '] cmd_str2 = 'kLLjLlKkLkkLKkLKklLlkLL>' cmd_str3 = 'nLLLlnl>' cmd_str4 = 'JHHKHJHKLKHKHKKlllll>'
''' If an element in an MxN matrix is 0, set the entire row and column to 0 ''' def setZero(mat): m = len(mat) n = len(mat[0]) zero_rows = [] zero_cols = [] for i in range(m): for j in range(n): if mat[i][j] == 0 and i not in zero_rows and j not in zero_cols: mat[i] = [0]*n for k in range(m): mat[k][j] = 0 zero_rows.append(i) zero_cols.append(j) return mat mat = [[1, 2, 0], [0, 5, 6], [3, 6, 7]] mat = setZero(mat) for i in range(len(mat)): print(mat[i][:]) print() mat = [[1, 2, 1], [0, 5, 6], [3, 6, 7]] mat = setZero(mat) for i in range(len(mat)): print(mat[i][:])
""" If an element in an MxN matrix is 0, set the entire row and column to 0 """ def set_zero(mat): m = len(mat) n = len(mat[0]) zero_rows = [] zero_cols = [] for i in range(m): for j in range(n): if mat[i][j] == 0 and i not in zero_rows and (j not in zero_cols): mat[i] = [0] * n for k in range(m): mat[k][j] = 0 zero_rows.append(i) zero_cols.append(j) return mat mat = [[1, 2, 0], [0, 5, 6], [3, 6, 7]] mat = set_zero(mat) for i in range(len(mat)): print(mat[i][:]) print() mat = [[1, 2, 1], [0, 5, 6], [3, 6, 7]] mat = set_zero(mat) for i in range(len(mat)): print(mat[i][:])
# # PySNMP MIB module ALTIGA-GLOBAL-REG (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALTIGA-GLOBAL-REG # Produced by pysmi-0.3.4 at Mon Apr 29 17:05:29 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") NotificationType, Gauge32, Unsigned32, Counter32, TimeTicks, enterprises, MibScalar, MibTable, MibTableRow, MibTableColumn, MibIdentifier, Bits, Integer32, IpAddress, iso, ModuleIdentity, ObjectIdentity, Counter64 = mibBuilder.importSymbols("SNMPv2-SMI", "NotificationType", "Gauge32", "Unsigned32", "Counter32", "TimeTicks", "enterprises", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "MibIdentifier", "Bits", "Integer32", "IpAddress", "iso", "ModuleIdentity", "ObjectIdentity", "Counter64") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") altigaGlobalRegModule = ModuleIdentity((1, 3, 6, 1, 4, 1, 3076, 1, 1, 1, 1)) altigaGlobalRegModule.setRevisions(('2005-01-05 00:00', '2003-10-20 00:00', '2003-04-25 00:00', '2002-07-10 00:00',)) if mibBuilder.loadTexts: altigaGlobalRegModule.setLastUpdated('200501050000Z') if mibBuilder.loadTexts: altigaGlobalRegModule.setOrganization('Cisco Systems, Inc.') altigaRoot = MibIdentifier((1, 3, 6, 1, 4, 1, 3076)) altigaReg = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1)) altigaModules = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1)) alGlobalRegModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 1)) alCapModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 2)) alMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 3)) alComplModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 4)) alVersionMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 6)) alAccessMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 7)) alEventMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 8)) alAuthMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 9)) alPptpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 10)) alPppMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 11)) alHttpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 12)) alIpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 13)) alFilterMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 14)) alUserMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 15)) alTelnetMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 16)) alFtpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 17)) alTftpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 18)) alSnmpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 19)) alIpSecMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 20)) alL2tpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 21)) alSessionMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 22)) alDnsMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 23)) alAddressMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 24)) alDhcpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 25)) alWatchdogMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 26)) alHardwareMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 27)) alNatMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 28)) alLan2LanMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 29)) alGeneralMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 30)) alSslMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 31)) alCertMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 32)) alNtpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 33)) alNetworkListMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 34)) alSepMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 35)) alIkeMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 36)) alSyncMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 37)) alT1E1MibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 38)) alMultiLinkMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 39)) alSshMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 40)) alLBSSFMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 41)) alDhcpServerMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 42)) alAutoUpdateMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 43)) alAdminAuthMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 44)) alPPPoEMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 45)) alXmlMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 46)) alCtcpMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 47)) alFwMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 48)) alGroupMatchMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 49)) alACEServerMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 50)) alNatTMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 51)) alBwMgmtMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 52)) alIpSecPreFragMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 53)) alFipsMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 54)) alBackupL2LMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 55)) alNotifyMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 56)) alRebootStatusMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 57)) alAuthorizationModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 58)) alWebPortalMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 59)) alWebEmailMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 60)) alPortForwardMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 61)) alRemoteServerMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 62)) alWebvpnAclMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 63)) alNbnsMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 64)) alSecureDesktopMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 65)) alSslTunnelClientMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 66)) alNacMibModule = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 67)) altigaGeneric = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 2)) altigaProducts = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 3)) altigaCaps = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 4)) altigaReqs = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 5)) altigaExpr = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 6)) altigaHw = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 2)) altigaVpnHw = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1)) altigaVpnChassis = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1)) altigaVpnIntf = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 2)) altigaVpnEncrypt = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 3)) vpnConcentrator = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 1)) vpnRemote = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 2)) vpnClient = MibIdentifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 3)) vpnConcentratorRev1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 1, 1)) if mibBuilder.loadTexts: vpnConcentratorRev1.setStatus('current') vpnConcentratorRev2 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 1, 2)) if mibBuilder.loadTexts: vpnConcentratorRev2.setStatus('current') vpnRemoteRev1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 2, 1)) if mibBuilder.loadTexts: vpnRemoteRev1.setStatus('current') vpnClientRev1 = ObjectIdentity((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 3, 1)) if mibBuilder.loadTexts: vpnClientRev1.setStatus('current') mibBuilder.exportSymbols("ALTIGA-GLOBAL-REG", alTelnetMibModule=alTelnetMibModule, altigaVpnChassis=altigaVpnChassis, alIpSecMibModule=alIpSecMibModule, alPPPoEMibModule=alPPPoEMibModule, alPortForwardMibModule=alPortForwardMibModule, altigaModules=altigaModules, alACEServerMibModule=alACEServerMibModule, alSepMibModule=alSepMibModule, alSslTunnelClientMibModule=alSslTunnelClientMibModule, alGroupMatchMibModule=alGroupMatchMibModule, alGeneralMibModule=alGeneralMibModule, alWebPortalMibModule=alWebPortalMibModule, alPppMibModule=alPppMibModule, altigaVpnHw=altigaVpnHw, vpnClient=vpnClient, alAccessMibModule=alAccessMibModule, vpnRemoteRev1=vpnRemoteRev1, alSshMibModule=alSshMibModule, alNacMibModule=alNacMibModule, PYSNMP_MODULE_ID=altigaGlobalRegModule, alAuthMibModule=alAuthMibModule, altigaReqs=altigaReqs, alWebEmailMibModule=alWebEmailMibModule, alIpMibModule=alIpMibModule, alAutoUpdateMibModule=alAutoUpdateMibModule, altigaProducts=altigaProducts, alCapModule=alCapModule, alDnsMibModule=alDnsMibModule, alAdminAuthMibModule=alAdminAuthMibModule, alSslMibModule=alSslMibModule, alXmlMibModule=alXmlMibModule, vpnClientRev1=vpnClientRev1, altigaHw=altigaHw, altigaGlobalRegModule=altigaGlobalRegModule, vpnConcentrator=vpnConcentrator, alCertMibModule=alCertMibModule, alHttpMibModule=alHttpMibModule, alIkeMibModule=alIkeMibModule, alMultiLinkMibModule=alMultiLinkMibModule, alMibModule=alMibModule, alGlobalRegModule=alGlobalRegModule, alRemoteServerMibModule=alRemoteServerMibModule, alFilterMibModule=alFilterMibModule, vpnConcentratorRev1=vpnConcentratorRev1, alDhcpMibModule=alDhcpMibModule, alWatchdogMibModule=alWatchdogMibModule, alNotifyMibModule=alNotifyMibModule, alAuthorizationModule=alAuthorizationModule, vpnConcentratorRev2=vpnConcentratorRev2, alWebvpnAclMibModule=alWebvpnAclMibModule, alFipsMibModule=alFipsMibModule, alTftpMibModule=alTftpMibModule, alNetworkListMibModule=alNetworkListMibModule, alUserMibModule=alUserMibModule, alRebootStatusMibModule=alRebootStatusMibModule, alDhcpServerMibModule=alDhcpServerMibModule, vpnRemote=vpnRemote, altigaRoot=altigaRoot, alPptpMibModule=alPptpMibModule, alSyncMibModule=alSyncMibModule, alSnmpMibModule=alSnmpMibModule, altigaVpnEncrypt=altigaVpnEncrypt, alEventMibModule=alEventMibModule, alNatTMibModule=alNatTMibModule, alSecureDesktopMibModule=alSecureDesktopMibModule, alT1E1MibModule=alT1E1MibModule, alCtcpMibModule=alCtcpMibModule, alLan2LanMibModule=alLan2LanMibModule, alBwMgmtMibModule=alBwMgmtMibModule, altigaReg=altigaReg, alFwMibModule=alFwMibModule, alNtpMibModule=alNtpMibModule, altigaVpnIntf=altigaVpnIntf, alLBSSFMibModule=alLBSSFMibModule, alComplModule=alComplModule, alNbnsMibModule=alNbnsMibModule, altigaCaps=altigaCaps, alSessionMibModule=alSessionMibModule, alNatMibModule=alNatMibModule, alL2tpMibModule=alL2tpMibModule, alAddressMibModule=alAddressMibModule, alBackupL2LMibModule=alBackupL2LMibModule, alHardwareMibModule=alHardwareMibModule, alIpSecPreFragMibModule=alIpSecPreFragMibModule, alFtpMibModule=alFtpMibModule, altigaExpr=altigaExpr, alVersionMibModule=alVersionMibModule, altigaGeneric=altigaGeneric)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_intersection, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (notification_type, gauge32, unsigned32, counter32, time_ticks, enterprises, mib_scalar, mib_table, mib_table_row, mib_table_column, mib_identifier, bits, integer32, ip_address, iso, module_identity, object_identity, counter64) = mibBuilder.importSymbols('SNMPv2-SMI', 'NotificationType', 'Gauge32', 'Unsigned32', 'Counter32', 'TimeTicks', 'enterprises', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'MibIdentifier', 'Bits', 'Integer32', 'IpAddress', 'iso', 'ModuleIdentity', 'ObjectIdentity', 'Counter64') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') altiga_global_reg_module = module_identity((1, 3, 6, 1, 4, 1, 3076, 1, 1, 1, 1)) altigaGlobalRegModule.setRevisions(('2005-01-05 00:00', '2003-10-20 00:00', '2003-04-25 00:00', '2002-07-10 00:00')) if mibBuilder.loadTexts: altigaGlobalRegModule.setLastUpdated('200501050000Z') if mibBuilder.loadTexts: altigaGlobalRegModule.setOrganization('Cisco Systems, Inc.') altiga_root = mib_identifier((1, 3, 6, 1, 4, 1, 3076)) altiga_reg = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1)) altiga_modules = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1)) al_global_reg_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 1)) al_cap_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 2)) al_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 3)) al_compl_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 4)) al_version_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 6)) al_access_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 7)) al_event_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 8)) al_auth_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 9)) al_pptp_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 10)) al_ppp_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 11)) al_http_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 12)) al_ip_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 13)) al_filter_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 14)) al_user_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 15)) al_telnet_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 16)) al_ftp_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 17)) al_tftp_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 18)) al_snmp_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 19)) al_ip_sec_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 20)) al_l2tp_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 21)) al_session_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 22)) al_dns_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 23)) al_address_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 24)) al_dhcp_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 25)) al_watchdog_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 26)) al_hardware_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 27)) al_nat_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 28)) al_lan2_lan_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 29)) al_general_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 30)) al_ssl_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 31)) al_cert_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 32)) al_ntp_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 33)) al_network_list_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 34)) al_sep_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 35)) al_ike_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 36)) al_sync_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 37)) al_t1_e1_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 38)) al_multi_link_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 39)) al_ssh_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 40)) al_lbssf_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 41)) al_dhcp_server_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 42)) al_auto_update_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 43)) al_admin_auth_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 44)) al_pp_po_e_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 45)) al_xml_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 46)) al_ctcp_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 47)) al_fw_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 48)) al_group_match_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 49)) al_ace_server_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 50)) al_nat_t_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 51)) al_bw_mgmt_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 52)) al_ip_sec_pre_frag_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 53)) al_fips_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 54)) al_backup_l2_l_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 55)) al_notify_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 56)) al_reboot_status_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 57)) al_authorization_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 58)) al_web_portal_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 59)) al_web_email_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 60)) al_port_forward_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 61)) al_remote_server_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 62)) al_webvpn_acl_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 63)) al_nbns_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 64)) al_secure_desktop_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 65)) al_ssl_tunnel_client_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 66)) al_nac_mib_module = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 1, 67)) altiga_generic = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 2)) altiga_products = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 3)) altiga_caps = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 4)) altiga_reqs = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 5)) altiga_expr = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 6)) altiga_hw = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 2)) altiga_vpn_hw = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1)) altiga_vpn_chassis = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1)) altiga_vpn_intf = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 2)) altiga_vpn_encrypt = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 3)) vpn_concentrator = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 1)) vpn_remote = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 2)) vpn_client = mib_identifier((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 3)) vpn_concentrator_rev1 = object_identity((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 1, 1)) if mibBuilder.loadTexts: vpnConcentratorRev1.setStatus('current') vpn_concentrator_rev2 = object_identity((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 1, 2)) if mibBuilder.loadTexts: vpnConcentratorRev2.setStatus('current') vpn_remote_rev1 = object_identity((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 2, 1)) if mibBuilder.loadTexts: vpnRemoteRev1.setStatus('current') vpn_client_rev1 = object_identity((1, 3, 6, 1, 4, 1, 3076, 1, 2, 1, 1, 3, 1)) if mibBuilder.loadTexts: vpnClientRev1.setStatus('current') mibBuilder.exportSymbols('ALTIGA-GLOBAL-REG', alTelnetMibModule=alTelnetMibModule, altigaVpnChassis=altigaVpnChassis, alIpSecMibModule=alIpSecMibModule, alPPPoEMibModule=alPPPoEMibModule, alPortForwardMibModule=alPortForwardMibModule, altigaModules=altigaModules, alACEServerMibModule=alACEServerMibModule, alSepMibModule=alSepMibModule, alSslTunnelClientMibModule=alSslTunnelClientMibModule, alGroupMatchMibModule=alGroupMatchMibModule, alGeneralMibModule=alGeneralMibModule, alWebPortalMibModule=alWebPortalMibModule, alPppMibModule=alPppMibModule, altigaVpnHw=altigaVpnHw, vpnClient=vpnClient, alAccessMibModule=alAccessMibModule, vpnRemoteRev1=vpnRemoteRev1, alSshMibModule=alSshMibModule, alNacMibModule=alNacMibModule, PYSNMP_MODULE_ID=altigaGlobalRegModule, alAuthMibModule=alAuthMibModule, altigaReqs=altigaReqs, alWebEmailMibModule=alWebEmailMibModule, alIpMibModule=alIpMibModule, alAutoUpdateMibModule=alAutoUpdateMibModule, altigaProducts=altigaProducts, alCapModule=alCapModule, alDnsMibModule=alDnsMibModule, alAdminAuthMibModule=alAdminAuthMibModule, alSslMibModule=alSslMibModule, alXmlMibModule=alXmlMibModule, vpnClientRev1=vpnClientRev1, altigaHw=altigaHw, altigaGlobalRegModule=altigaGlobalRegModule, vpnConcentrator=vpnConcentrator, alCertMibModule=alCertMibModule, alHttpMibModule=alHttpMibModule, alIkeMibModule=alIkeMibModule, alMultiLinkMibModule=alMultiLinkMibModule, alMibModule=alMibModule, alGlobalRegModule=alGlobalRegModule, alRemoteServerMibModule=alRemoteServerMibModule, alFilterMibModule=alFilterMibModule, vpnConcentratorRev1=vpnConcentratorRev1, alDhcpMibModule=alDhcpMibModule, alWatchdogMibModule=alWatchdogMibModule, alNotifyMibModule=alNotifyMibModule, alAuthorizationModule=alAuthorizationModule, vpnConcentratorRev2=vpnConcentratorRev2, alWebvpnAclMibModule=alWebvpnAclMibModule, alFipsMibModule=alFipsMibModule, alTftpMibModule=alTftpMibModule, alNetworkListMibModule=alNetworkListMibModule, alUserMibModule=alUserMibModule, alRebootStatusMibModule=alRebootStatusMibModule, alDhcpServerMibModule=alDhcpServerMibModule, vpnRemote=vpnRemote, altigaRoot=altigaRoot, alPptpMibModule=alPptpMibModule, alSyncMibModule=alSyncMibModule, alSnmpMibModule=alSnmpMibModule, altigaVpnEncrypt=altigaVpnEncrypt, alEventMibModule=alEventMibModule, alNatTMibModule=alNatTMibModule, alSecureDesktopMibModule=alSecureDesktopMibModule, alT1E1MibModule=alT1E1MibModule, alCtcpMibModule=alCtcpMibModule, alLan2LanMibModule=alLan2LanMibModule, alBwMgmtMibModule=alBwMgmtMibModule, altigaReg=altigaReg, alFwMibModule=alFwMibModule, alNtpMibModule=alNtpMibModule, altigaVpnIntf=altigaVpnIntf, alLBSSFMibModule=alLBSSFMibModule, alComplModule=alComplModule, alNbnsMibModule=alNbnsMibModule, altigaCaps=altigaCaps, alSessionMibModule=alSessionMibModule, alNatMibModule=alNatMibModule, alL2tpMibModule=alL2tpMibModule, alAddressMibModule=alAddressMibModule, alBackupL2LMibModule=alBackupL2LMibModule, alHardwareMibModule=alHardwareMibModule, alIpSecPreFragMibModule=alIpSecPreFragMibModule, alFtpMibModule=alFtpMibModule, altigaExpr=altigaExpr, alVersionMibModule=alVersionMibModule, altigaGeneric=altigaGeneric)
# -*- coding: utf-8 -*- class Modifier(object): def __init__(self): self.is_disable = False self.is_show_only = False self.is_debug = False self.is_transparent = False def turn_on_disable(self): self.is_disable = True def turn_off_disable(self): self.is_disable = False def turn_on_show_only(self): self.is_show_only = True def turn_off_show_only(self): self.is_show_only = False def turn_on_debug(self): self.is_debug = True def turn_off_debug(self): self.is_debug = False def turn_on_transparent(self): self.is_transparent = True def turn_off_transparent(self): self.is_transparent = False def get_prefix(self): prefix = '' if self.is_disable: prefix += '*' if self.is_show_only: prefix += '!' if self.is_debug: prefix += '#' if self.is_transparent: prefix += '%' return prefix class ModifierMixin(object): def __init__(self): super(ModifierMixin, self).__init__() self.mod = Modifier() def turn_on_disable(self): self.mod.is_disable = True return self def turn_off_disable(self): self.mod.is_disable = False return self def turn_on_show_only(self): self.mod.is_show_only = True return self def turn_off_show_only(self): self.mod.is_show_only = False return self def turn_on_debug(self): self.mod.is_debug = True return self def turn_off_debug(self): self.mod.is_debug = False return self def turn_on_transparent(self): self.mod.is_transparent = True return self def turn_off_transparent(self): self.mod.is_transparent = False return self # Shorthand def disable(self): return self.turn_on_disable() def show_only(self): return self.turn_on_show_only() def debug(self): return self.turn_on_debug() def transparent(self): return self.turn_on_transparent()
class Modifier(object): def __init__(self): self.is_disable = False self.is_show_only = False self.is_debug = False self.is_transparent = False def turn_on_disable(self): self.is_disable = True def turn_off_disable(self): self.is_disable = False def turn_on_show_only(self): self.is_show_only = True def turn_off_show_only(self): self.is_show_only = False def turn_on_debug(self): self.is_debug = True def turn_off_debug(self): self.is_debug = False def turn_on_transparent(self): self.is_transparent = True def turn_off_transparent(self): self.is_transparent = False def get_prefix(self): prefix = '' if self.is_disable: prefix += '*' if self.is_show_only: prefix += '!' if self.is_debug: prefix += '#' if self.is_transparent: prefix += '%' return prefix class Modifiermixin(object): def __init__(self): super(ModifierMixin, self).__init__() self.mod = modifier() def turn_on_disable(self): self.mod.is_disable = True return self def turn_off_disable(self): self.mod.is_disable = False return self def turn_on_show_only(self): self.mod.is_show_only = True return self def turn_off_show_only(self): self.mod.is_show_only = False return self def turn_on_debug(self): self.mod.is_debug = True return self def turn_off_debug(self): self.mod.is_debug = False return self def turn_on_transparent(self): self.mod.is_transparent = True return self def turn_off_transparent(self): self.mod.is_transparent = False return self def disable(self): return self.turn_on_disable() def show_only(self): return self.turn_on_show_only() def debug(self): return self.turn_on_debug() def transparent(self): return self.turn_on_transparent()
# import libraries here ... # Stickbreak function def stickbreak(v): batch_ndims = len(v.shape) - 1 cumprod_one_minus_v = tf.math.cumprod(1 - v, axis=-1) one_v = tf.pad(v, [[0, 0]] * batch_ndims + [[0, 1]], "CONSTANT", constant_values=1) c_one = tf.pad(cumprod_one_minus_v, [[0, 0]] * batch_ndims + [[1, 0]], "CONSTANT", constant_values=1) return one_v * c_one # See: https://www.tensorflow.org/probability/api_docs/python/tfp/distributions/MixtureSameFamily # See: https://www.tensorflow.org/probability/examples/Bayesian_Gaussian_Mixture_Model # Define model builder. def create_dp_sb_gmm(nobs, K, dtype=np.float64): return tfd.JointDistributionNamed(dict( # Mixture means mu = tfd.Independent( tfd.Normal(np.zeros(K, dtype), 3), reinterpreted_batch_ndims=1 ), # Mixture scales sigma = tfd.Independent( tfd.LogNormal(loc=np.full(K, - 2, dtype), scale=0.5), reinterpreted_batch_ndims=1 ), # Mixture weights (stick-breaking construction) alpha = tfd.Gamma(concentration=np.float64(1.0), rate=10.0), v = lambda alpha: tfd.Independent( # tfd.Beta(np.ones(K - 1, dtype), alpha), # NOTE: Dave Moore suggests doing this instead, to ensure # that a batch dimension in alpha doesn't conflict with # the other parameters. tfd.Beta(np.ones(K - 1, dtype), alpha[..., tf.newaxis]), reinterpreted_batch_ndims=1 ), # Observations (likelihood) obs = lambda mu, sigma, v: tfd.Sample(tfd.MixtureSameFamily( # This will be marginalized over. mixture_distribution=tfd.Categorical(probs=stickbreak(v)), # mixture_distribution=tfd.Categorical(probs=v), components_distribution=tfd.Normal(mu, sigma)), sample_shape=nobs) )) # Number of mixture components. ncomponents = 10 # Create model. model = create_dp_sb_gmm(nobs=len(simdata['y']), K=ncomponents) # Define log unnormalized joint posterior density. def target_log_prob_fn(mu, sigma, alpha, v): return model.log_prob(obs=y, mu=mu, sigma=sigma, alpha=alpha, v=v) # NOTE: Read data y here ... # Here, y (a vector of length 500) is noisy univariate draws from a # mixture distribution with 4 components. ### ADVI ### # Prep work for ADVI. Credit: Thanks to Dave Moore at BayesFlow for helping # with the implementation! # ADVI is quite sensitive to initial distritbution. tf.random.set_seed(7) # 7 # Create variational parameters. qmu_loc = tf.Variable(tf.random.normal([ncomponents], dtype=np.float64) * 3, name='qmu_loc') qmu_rho = tf.Variable(tf.random.normal([ncomponents], dtype=np.float64) * 2, name='qmu_rho') qsigma_loc = tf.Variable(tf.random.normal([ncomponents], dtype=np.float64) - 2, name='qsigma_loc') qsigma_rho = tf.Variable(tf.random.normal([ncomponents], dtype=np.float64) - 2, name='qsigma_rho') qv_loc = tf.Variable(tf.random.normal([ncomponents - 1], dtype=np.float64) - 2, name='qv_loc') qv_rho = tf.Variable(tf.random.normal([ncomponents - 1], dtype=np.float64) - 1, name='qv_rho') qalpha_loc = tf.Variable(tf.random.normal([], dtype=np.float64), name='qalpha_loc') qalpha_rho = tf.Variable(tf.random.normal([], dtype=np.float64), name='qalpha_rho') # Create variational distribution. surrogate_posterior = tfd.JointDistributionNamed(dict( # qmu mu=tfd.Independent(tfd.Normal(qmu_loc, tf.nn.softplus(qmu_rho)), reinterpreted_batch_ndims=1), # qsigma sigma=tfd.Independent(tfd.LogNormal(qsigma_loc, tf.nn.softplus(qsigma_rho)), reinterpreted_batch_ndims=1), # qv v=tfd.Independent(tfd.LogitNormal(qv_loc, tf.nn.softplus(qv_rho)), reinterpreted_batch_ndims=1), # qalpha alpha=tfd.LogNormal(qalpha_loc, tf.nn.softplus(qalpha_rho)))) # Run ADVI. losses = tfp.vi.fit_surrogate_posterior( target_log_prob_fn=target_log_prob_fn, surrogate_posterior=surrogate_posterior, optimizer=tf.optimizers.Adam(learning_rate=1e-2), sample_size=100, seed=1, num_steps=2000) # 9 seconds ### MCMC (HMC/NUTS) ### # Creates initial values for HMC, NUTS. def generate_initial_state(seed=None): tf.random.set_seed(seed) return [ tf.zeros(ncomponents, dtype, name='mu'), tf.ones(ncomponents, dtype, name='sigma') * 0.1, tf.ones([], dtype, name='alpha') * 0.5, tf.fill(ncomponents - 1, value=np.float64(0.5), name='v') ] # Create bijectors to transform unconstrained to and from constrained # parameters-space. For example, if X ~ Exponential(theta), then X is # constrained to be positive. A transformation that puts X onto an # unconstrained # space is Y = log(X). In that case, the bijector used should # be the **inverse-transform**, which is exp(.) (i.e. so that X = exp(Y)). # # NOTE: Define the inverse-transforms for each parameter in sequence. bijectors = [ tfb.Identity(), # mu tfb.Exp(), # sigma tfb.Exp(), # alpha tfb.Sigmoid() # v ] # Define HMC sampler. @tf.function(autograph=False, experimental_compile=True) def hmc_sample(num_results, num_burnin_steps, current_state, step_size=0.01, num_leapfrog_steps=100): return tfp.mcmc.sample_chain( num_results=num_results, num_burnin_steps=num_burnin_steps, current_state=current_state, kernel = tfp.mcmc.SimpleStepSizeAdaptation( tfp.mcmc.TransformedTransitionKernel( inner_kernel=tfp.mcmc.HamiltonianMonteCarlo( target_log_prob_fn=target_log_prob_fn, step_size=step_size, num_leapfrog_steps=num_leapfrog_steps, seed=1), bijector=bijectors), num_adaptation_steps=num_burnin_steps), trace_fn = lambda _, pkr: pkr.inner_results.inner_results.is_accepted) # Define NUTS sampler. @tf.function(autograph=False, experimental_compile=True) def nuts_sample(num_results, num_burnin_steps, current_state, max_tree_depth=10): return tfp.mcmc.sample_chain( num_results=num_results, num_burnin_steps=num_burnin_steps, current_state=current_state, kernel = tfp.mcmc.SimpleStepSizeAdaptation( tfp.mcmc.TransformedTransitionKernel( inner_kernel=tfp.mcmc.NoUTurnSampler( target_log_prob_fn=target_log_prob_fn, max_tree_depth=max_tree_depth, step_size=0.01, seed=1), bijector=bijectors), num_adaptation_steps=num_burnin_steps, # should be smaller than burn-in. target_accept_prob=0.8), trace_fn = lambda _, pkr: pkr.inner_results.inner_results.is_accepted) # Run HMC sampler. current_state = generate_initial_state() [mu, sigma, alpha, v], is_accepted = hmc_sample(500, 500, current_state) hmc_output = dict(mu=mu, sigma=sigma, alpha=alpha, v=v, acceptance_rate=is_accepted.numpy().mean()) # Run NUTS sampler. current_state = generate_initial_state() [mu, sigma, alpha, v], is_accepted = nuts_sample(500, 500, current_state) nuts_output = dict(mu=mu, sigma=sigma, alpha=alpha, v=v, acceptance_rate=is_accepted.numpy().mean())
def stickbreak(v): batch_ndims = len(v.shape) - 1 cumprod_one_minus_v = tf.math.cumprod(1 - v, axis=-1) one_v = tf.pad(v, [[0, 0]] * batch_ndims + [[0, 1]], 'CONSTANT', constant_values=1) c_one = tf.pad(cumprod_one_minus_v, [[0, 0]] * batch_ndims + [[1, 0]], 'CONSTANT', constant_values=1) return one_v * c_one def create_dp_sb_gmm(nobs, K, dtype=np.float64): return tfd.JointDistributionNamed(dict(mu=tfd.Independent(tfd.Normal(np.zeros(K, dtype), 3), reinterpreted_batch_ndims=1), sigma=tfd.Independent(tfd.LogNormal(loc=np.full(K, -2, dtype), scale=0.5), reinterpreted_batch_ndims=1), alpha=tfd.Gamma(concentration=np.float64(1.0), rate=10.0), v=lambda alpha: tfd.Independent(tfd.Beta(np.ones(K - 1, dtype), alpha[..., tf.newaxis]), reinterpreted_batch_ndims=1), obs=lambda mu, sigma, v: tfd.Sample(tfd.MixtureSameFamily(mixture_distribution=tfd.Categorical(probs=stickbreak(v)), components_distribution=tfd.Normal(mu, sigma)), sample_shape=nobs))) ncomponents = 10 model = create_dp_sb_gmm(nobs=len(simdata['y']), K=ncomponents) def target_log_prob_fn(mu, sigma, alpha, v): return model.log_prob(obs=y, mu=mu, sigma=sigma, alpha=alpha, v=v) tf.random.set_seed(7) qmu_loc = tf.Variable(tf.random.normal([ncomponents], dtype=np.float64) * 3, name='qmu_loc') qmu_rho = tf.Variable(tf.random.normal([ncomponents], dtype=np.float64) * 2, name='qmu_rho') qsigma_loc = tf.Variable(tf.random.normal([ncomponents], dtype=np.float64) - 2, name='qsigma_loc') qsigma_rho = tf.Variable(tf.random.normal([ncomponents], dtype=np.float64) - 2, name='qsigma_rho') qv_loc = tf.Variable(tf.random.normal([ncomponents - 1], dtype=np.float64) - 2, name='qv_loc') qv_rho = tf.Variable(tf.random.normal([ncomponents - 1], dtype=np.float64) - 1, name='qv_rho') qalpha_loc = tf.Variable(tf.random.normal([], dtype=np.float64), name='qalpha_loc') qalpha_rho = tf.Variable(tf.random.normal([], dtype=np.float64), name='qalpha_rho') surrogate_posterior = tfd.JointDistributionNamed(dict(mu=tfd.Independent(tfd.Normal(qmu_loc, tf.nn.softplus(qmu_rho)), reinterpreted_batch_ndims=1), sigma=tfd.Independent(tfd.LogNormal(qsigma_loc, tf.nn.softplus(qsigma_rho)), reinterpreted_batch_ndims=1), v=tfd.Independent(tfd.LogitNormal(qv_loc, tf.nn.softplus(qv_rho)), reinterpreted_batch_ndims=1), alpha=tfd.LogNormal(qalpha_loc, tf.nn.softplus(qalpha_rho)))) losses = tfp.vi.fit_surrogate_posterior(target_log_prob_fn=target_log_prob_fn, surrogate_posterior=surrogate_posterior, optimizer=tf.optimizers.Adam(learning_rate=0.01), sample_size=100, seed=1, num_steps=2000) def generate_initial_state(seed=None): tf.random.set_seed(seed) return [tf.zeros(ncomponents, dtype, name='mu'), tf.ones(ncomponents, dtype, name='sigma') * 0.1, tf.ones([], dtype, name='alpha') * 0.5, tf.fill(ncomponents - 1, value=np.float64(0.5), name='v')] bijectors = [tfb.Identity(), tfb.Exp(), tfb.Exp(), tfb.Sigmoid()] @tf.function(autograph=False, experimental_compile=True) def hmc_sample(num_results, num_burnin_steps, current_state, step_size=0.01, num_leapfrog_steps=100): return tfp.mcmc.sample_chain(num_results=num_results, num_burnin_steps=num_burnin_steps, current_state=current_state, kernel=tfp.mcmc.SimpleStepSizeAdaptation(tfp.mcmc.TransformedTransitionKernel(inner_kernel=tfp.mcmc.HamiltonianMonteCarlo(target_log_prob_fn=target_log_prob_fn, step_size=step_size, num_leapfrog_steps=num_leapfrog_steps, seed=1), bijector=bijectors), num_adaptation_steps=num_burnin_steps), trace_fn=lambda _, pkr: pkr.inner_results.inner_results.is_accepted) @tf.function(autograph=False, experimental_compile=True) def nuts_sample(num_results, num_burnin_steps, current_state, max_tree_depth=10): return tfp.mcmc.sample_chain(num_results=num_results, num_burnin_steps=num_burnin_steps, current_state=current_state, kernel=tfp.mcmc.SimpleStepSizeAdaptation(tfp.mcmc.TransformedTransitionKernel(inner_kernel=tfp.mcmc.NoUTurnSampler(target_log_prob_fn=target_log_prob_fn, max_tree_depth=max_tree_depth, step_size=0.01, seed=1), bijector=bijectors), num_adaptation_steps=num_burnin_steps, target_accept_prob=0.8), trace_fn=lambda _, pkr: pkr.inner_results.inner_results.is_accepted) current_state = generate_initial_state() ([mu, sigma, alpha, v], is_accepted) = hmc_sample(500, 500, current_state) hmc_output = dict(mu=mu, sigma=sigma, alpha=alpha, v=v, acceptance_rate=is_accepted.numpy().mean()) current_state = generate_initial_state() ([mu, sigma, alpha, v], is_accepted) = nuts_sample(500, 500, current_state) nuts_output = dict(mu=mu, sigma=sigma, alpha=alpha, v=v, acceptance_rate=is_accepted.numpy().mean())
def build_uri(asset_uri, site_uri): asset_uri = asset_uri.strip("..") if asset_uri.startswith("http"): return asset_uri separator = "" if not asset_uri.startswith("/"): separator = "/" return "%s%s%s" % (site_uri, separator, asset_uri) def join_uri(site_uri, file_path): return "%s%s" % (site_uri, file_path)
def build_uri(asset_uri, site_uri): asset_uri = asset_uri.strip('..') if asset_uri.startswith('http'): return asset_uri separator = '' if not asset_uri.startswith('/'): separator = '/' return '%s%s%s' % (site_uri, separator, asset_uri) def join_uri(site_uri, file_path): return '%s%s' % (site_uri, file_path)
# rotate a list N places to the left def rotate(n, l): return l[n:] + l[0:n] def test_rotate(): l = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k'] expected = ['d', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'a', 'b', 'c'] assert rotate(3,l) == expected expected = ['j', 'k', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'] assert rotate(-2, l) == expected assert rotate(0, l) == l assert rotate(0, ['a']) == ['a'] assert rotate(1, ['a']) == ['a'] assert rotate(-1, ['a']) == ['a'] assert rotate(100, ['a']) == ['a'] assert rotate(0, ['a', 'b']) == ['a', 'b'] assert rotate(1, ['a', 'b']) == ['b', 'a'] assert rotate(2, ['a', 'b']) == ['a', 'b'] # not sure how it should work when n > len(list), but this is by default assert rotate(3, ['a', 'b']) == ['a', 'b']
def rotate(n, l): return l[n:] + l[0:n] def test_rotate(): l = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k'] expected = ['d', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'a', 'b', 'c'] assert rotate(3, l) == expected expected = ['j', 'k', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'] assert rotate(-2, l) == expected assert rotate(0, l) == l assert rotate(0, ['a']) == ['a'] assert rotate(1, ['a']) == ['a'] assert rotate(-1, ['a']) == ['a'] assert rotate(100, ['a']) == ['a'] assert rotate(0, ['a', 'b']) == ['a', 'b'] assert rotate(1, ['a', 'b']) == ['b', 'a'] assert rotate(2, ['a', 'b']) == ['a', 'b'] assert rotate(3, ['a', 'b']) == ['a', 'b']
# Puzzle Input ---------- with open('Day04-Input.txt', 'r') as file: puzzle = file.read().split('\n\n') with open('Day04-Test01.txt', 'r') as file: test01 = file.read().split('\n\n') # Main Code ---------- # Convert the board string into a list def process_board(raw_board): new_board = [] for row in raw_board.split('\n'): new_board += [row.split()] return new_board # Find the set of all the numbers on a board def find_numbers(board): nums = [] for row in board: nums += [item for item in row] return set(nums) # Find all lines (rows and columns) on a board, save them as a set def find_lines(board): lines = [] # Save the rows and organize the columns columns = list([] for _ in range(len(board))) for row in board: lines += [set(row)] for index, item in enumerate(row): columns[index] += [item] # Save the columns for col in columns: lines += [set(col)] return lines # Simple Bingo Board class class BingoBoard: def __init__(self, raw_board): self.board = process_board(raw_board) self.numbers = find_numbers(self.board) self.lines = find_lines(self.board) # Determine the first winner and return its score def find_first_winner(boards): # Numbers that were picked num_order = boards[0].split(',') # Bingo Boards bingo_boards = [BingoBoard(b) for b in boards[1:]] # Find the winner and the score winner, score = None, None for max_index, _ in enumerate(num_order): # All numbers until now nums = set(num_order[:max_index + 5]) # Test for every row if that row if in the set of all numbers chosen until now for board in bingo_boards: for line in board.lines: if len(nums.intersection(line)) == 5: winner = board break if winner: break # Calculate the score for the winner if winner: unmarked = winner.numbers.difference(nums) score = sum(list(map(int, list(unmarked)))) * int(num_order[max_index + 4]) break return score # Tests and Solution ---------- print(find_first_winner(test01)) print(find_first_winner(puzzle))
with open('Day04-Input.txt', 'r') as file: puzzle = file.read().split('\n\n') with open('Day04-Test01.txt', 'r') as file: test01 = file.read().split('\n\n') def process_board(raw_board): new_board = [] for row in raw_board.split('\n'): new_board += [row.split()] return new_board def find_numbers(board): nums = [] for row in board: nums += [item for item in row] return set(nums) def find_lines(board): lines = [] columns = list(([] for _ in range(len(board)))) for row in board: lines += [set(row)] for (index, item) in enumerate(row): columns[index] += [item] for col in columns: lines += [set(col)] return lines class Bingoboard: def __init__(self, raw_board): self.board = process_board(raw_board) self.numbers = find_numbers(self.board) self.lines = find_lines(self.board) def find_first_winner(boards): num_order = boards[0].split(',') bingo_boards = [bingo_board(b) for b in boards[1:]] (winner, score) = (None, None) for (max_index, _) in enumerate(num_order): nums = set(num_order[:max_index + 5]) for board in bingo_boards: for line in board.lines: if len(nums.intersection(line)) == 5: winner = board break if winner: break if winner: unmarked = winner.numbers.difference(nums) score = sum(list(map(int, list(unmarked)))) * int(num_order[max_index + 4]) break return score print(find_first_winner(test01)) print(find_first_winner(puzzle))
print("Hi, are you having trouble making a password?") print("let me help you!") number = input("give me a number from 1-3") password = number animal = input("do you prefer dogs or cats?") password = number + animal color=input("what is your favorite color?") password = color+number+animal book=input("ok, last question. What is your favorite book?(the longer the title, the longer the password!") password=book+password
print('Hi, are you having trouble making a password?') print('let me help you!') number = input('give me a number from 1-3') password = number animal = input('do you prefer dogs or cats?') password = number + animal color = input('what is your favorite color?') password = color + number + animal book = input('ok, last question. What is your favorite book?(the longer the title, the longer the password!') password = book + password
# settings.py # sdNum = subdomain number # p1 = spatial bandwidth # p2 = temporal bandwidth # p3 = spatial resolution # p4 = temporal resolution # p5 = number of points threshold (T1) # p6 = buffer ratio threshold (T2) # dir1 = point files (resulting from decomposition) # dir2 = time files (resulting from decomposition) # cList = keeps track of the number of cut circles for each candidate split # pList = stores the number of times each candidate split was chosen def init(): global sdNum, p1, p2, p3, p4, p5, p6, dir1, dir2, pList, cList sdNum, p1, p2, p3, p4, p5, p6, dir1, dir2, pList, cList = 0, 0, 0, 0, 0, 0, 0, 0, 0, [0,0,0,0,0], [0,0,0,0,0]
def init(): global sdNum, p1, p2, p3, p4, p5, p6, dir1, dir2, pList, cList (sd_num, p1, p2, p3, p4, p5, p6, dir1, dir2, p_list, c_list) = (0, 0, 0, 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0], [0, 0, 0, 0, 0])
class AutoTrackConfig: hog_cell_size=4 hog_n_dim=31 gray_cell_size=4 cn_use_for_gray=False cn_cell_size=4 cn_n_dim=10 search_area_shape = 'square' # the shape of the samples search_area_scale = 5.0 # the scaling of the target size to get the search area min_image_sample_size = 150 ** 2 # minimum area of image samples max_image_sample_size = 200 ** 2 # maximum area of image samples feature_downsample_ratio=4 reg_window_max=1e5 reg_window_min=1e-3 # detection parameters refinement_iterations = 1 # number of iterations used to refine the resulting position in a frame newton_iterations = 5 # the number of Netwon iterations used for optimizing the detection score clamp_position = False # clamp the target position to be inside the image # learning parameters output_sigma_factor = 0.06 # label function sigma # ADMM params max_iterations=3 init_penalty_factor=1 max_penalty_factor=10000 penalty_scale_step=10 admm_lambda=1 epsilon=1 zeta=13 delta=0.2 nu=0.2 # scale parameters number_of_scales = 33 # number of scales to run the detector scale_step = 1.03 # the scale factor use_scale_filter = True # use the fDSST scale filter or not # scale_type='LP' # class ScaleConfig: # learning_rate_scale = 0.015 # scale_sz_window = (64, 64) # # scale_config=ScaleConfig() scale_type = 'normal' class ScaleConfig: scale_sigma_factor = 0.5 # scale label function sigma scale_lambda=0.0001 scale_learning_rate = 0.025 # scale filter learning rate number_of_scales_filter = 33 # number of scales number_of_interp_scales = 33 # number of interpolated scales scale_model_factor = 1.0 # scaling of the scale model scale_step_filter = 1.03 # the scale factor of the scale sample patch scale_model_max_area = 32 * 16 # maximume area for the scale sample patch scale_feature = 'HOG4' # features for the scale filter (only HOG4 supported) s_num_compressed_dim = 'MAX' # number of compressed feature dimensions in the scale filter lamBda = 1e-4 # scale filter regularization do_poly_interp = False scale_config = ScaleConfig() # normalize_power = 2 # Lp normalization with this p normalize_size = True # also normalize with respect to the spatial size of the feature normalize_dim = True # also normalize with respect to the dimensionality of the feature square_root_normalization = False
class Autotrackconfig: hog_cell_size = 4 hog_n_dim = 31 gray_cell_size = 4 cn_use_for_gray = False cn_cell_size = 4 cn_n_dim = 10 search_area_shape = 'square' search_area_scale = 5.0 min_image_sample_size = 150 ** 2 max_image_sample_size = 200 ** 2 feature_downsample_ratio = 4 reg_window_max = 100000.0 reg_window_min = 0.001 refinement_iterations = 1 newton_iterations = 5 clamp_position = False output_sigma_factor = 0.06 max_iterations = 3 init_penalty_factor = 1 max_penalty_factor = 10000 penalty_scale_step = 10 admm_lambda = 1 epsilon = 1 zeta = 13 delta = 0.2 nu = 0.2 number_of_scales = 33 scale_step = 1.03 use_scale_filter = True scale_type = 'normal' class Scaleconfig: scale_sigma_factor = 0.5 scale_lambda = 0.0001 scale_learning_rate = 0.025 number_of_scales_filter = 33 number_of_interp_scales = 33 scale_model_factor = 1.0 scale_step_filter = 1.03 scale_model_max_area = 32 * 16 scale_feature = 'HOG4' s_num_compressed_dim = 'MAX' lam_bda = 0.0001 do_poly_interp = False scale_config = scale_config() normalize_power = 2 normalize_size = True normalize_dim = True square_root_normalization = False
# # PySNMP MIB module TPLINK-DHCPSERVER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TPLINK-DHCPSERVER-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:17:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") iso, ModuleIdentity, IpAddress, TimeTicks, Counter32, Gauge32, ObjectIdentity, Bits, Counter64, Integer32, NotificationType, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "ModuleIdentity", "IpAddress", "TimeTicks", "Counter32", "Gauge32", "ObjectIdentity", "Bits", "Counter64", "Integer32", "NotificationType", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") tplinkMgmt, = mibBuilder.importSymbols("TPLINK-MIB", "tplinkMgmt") TPRowStatus, = mibBuilder.importSymbols("TPLINK-TC-MIB", "TPRowStatus") tplinkDhcpServerMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 11863, 6, 38)) tplinkDhcpServerMIB.setRevisions(('2012-11-29 00:00',)) if mibBuilder.loadTexts: tplinkDhcpServerMIB.setLastUpdated('201211290000Z') if mibBuilder.loadTexts: tplinkDhcpServerMIB.setOrganization('TP-LINK') tplinkDhcpServerMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1)) tplinkDhcpServerNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 11863, 6, 38, 2)) tpDhcpServerEnable = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disable", 0), ("enable", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tpDhcpServerEnable.setStatus('current') tpDhcpServerVendorClassId = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tpDhcpServerVendorClassId.setStatus('current') tpDhcpServerCapwapAcIp = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 3), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: tpDhcpServerCapwapAcIp.setStatus('current') tpDhcpServerUnusedIpTable = MibTable((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4), ) if mibBuilder.loadTexts: tpDhcpServerUnusedIpTable.setStatus('current') tpDhcpServerUnusedIpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4, 1), ).setIndexNames((0, "TPLINK-DHCPSERVER-MIB", "tpDhcpServerUnusedStartIp")) if mibBuilder.loadTexts: tpDhcpServerUnusedIpEntry.setStatus('current') tpDhcpServerUnusedStartIp = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerUnusedStartIp.setStatus('current') tpDhcpServerUnusedEndIp = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerUnusedEndIp.setStatus('current') tpDhcpServerUnusedIpStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4, 1, 3), TPRowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerUnusedIpStatus.setStatus('current') tpDhcpServerAddrPoolTable = MibTable((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5), ) if mibBuilder.loadTexts: tpDhcpServerAddrPoolTable.setStatus('current') tpDhcpServerAddrPoolEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1), ).setIndexNames((0, "TPLINK-DHCPSERVER-MIB", "tpDhcpServerAddrPoolNetwork")) if mibBuilder.loadTexts: tpDhcpServerAddrPoolEntry.setStatus('current') tpDhcpServerAddrPoolName = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolName.setStatus('current') tpDhcpServerAddrPoolNetwork = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNetwork.setStatus('current') tpDhcpServerAddrPoolSubnetMask = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 3), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolSubnetMask.setStatus('current') tpDhcpServerAddrPoolRentTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 4), Integer32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolRentTime.setStatus('current') tpDhcpServerAddrPoolGateWayA = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 5), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayA.setStatus('current') tpDhcpServerAddrPoolGateWayB = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 6), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayB.setStatus('current') tpDhcpServerAddrPoolGateWayC = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 7), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayC.setStatus('current') tpDhcpServerAddrPoolGateWayD = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 8), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayD.setStatus('current') tpDhcpServerAddrPoolGateWayE = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 9), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayE.setStatus('current') tpDhcpServerAddrPoolGateWayF = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 10), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayF.setStatus('current') tpDhcpServerAddrPoolGateWayG = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 11), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayG.setStatus('current') tpDhcpServerAddrPoolGateWayH = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 12), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayH.setStatus('current') tpDhcpServerAddrPoolDnsA = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 13), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsA.setStatus('current') tpDhcpServerAddrPoolDnsB = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 14), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsB.setStatus('current') tpDhcpServerAddrPoolDnsC = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 15), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsC.setStatus('current') tpDhcpServerAddrPoolDnsD = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 16), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsD.setStatus('current') tpDhcpServerAddrPoolDnsE = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 17), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsE.setStatus('current') tpDhcpServerAddrPoolDnsF = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 18), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsF.setStatus('current') tpDhcpServerAddrPoolDnsG = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 19), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsG.setStatus('current') tpDhcpServerAddrPoolDnsH = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 20), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsH.setStatus('current') tpDhcpServerAddrPoolNBNServerA = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 21), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerA.setStatus('current') tpDhcpServerAddrPoolNBNServerB = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 22), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerB.setStatus('current') tpDhcpServerAddrPoolNBNServerC = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 23), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerC.setStatus('current') tpDhcpServerAddrPoolNBNServerD = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 24), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerD.setStatus('current') tpDhcpServerAddrPoolNBNServerE = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 25), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerE.setStatus('current') tpDhcpServerAddrPoolNBNServerF = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 26), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerF.setStatus('current') tpDhcpServerAddrPoolNBNServerG = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 27), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerG.setStatus('current') tpDhcpServerAddrPoolNBNServerH = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 28), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerH.setStatus('current') tpDhcpServerAddrPoolNetbiosNodeType = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 4, 8))).clone(namedValues=NamedValues(("none", 0), ("broadcast", 1), ("peer-to-peer", 2), ("mixed", 4), ("hybrid", 8)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNetbiosNodeType.setStatus('current') tpDhcpServerAddrPoolNextServer = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 30), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolNextServer.setStatus('current') tpDhcpServerAddrPoolDomainName = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 31), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 200))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolDomainName.setStatus('current') tpDhcpServerAddrPoolBootfile = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 32), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 128))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolBootfile.setStatus('current') tpDhcpServerAddrPoolStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 33), TPRowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerAddrPoolStatus.setStatus('current') tpDhcpServerStaticBindTable = MibTable((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6), ) if mibBuilder.loadTexts: tpDhcpServerStaticBindTable.setStatus('current') tpDhcpServerStaticBindEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1), ).setIndexNames((0, "TPLINK-DHCPSERVER-MIB", "tpDhcpServerBindIpAddr")) if mibBuilder.loadTexts: tpDhcpServerStaticBindEntry.setStatus('current') tpDhcpServerStaticAddrPoolName = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 8))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerStaticAddrPoolName.setStatus('current') tpDhcpServerBindIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 2), IpAddress()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerBindIpAddr.setStatus('current') tpDhcpServerStaticClientId = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerStaticClientId.setStatus('current') tpDhcpServerMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerMacAddr.setStatus('current') tpDhcpServerHardwareType = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(-2, -1, 1, 6))).clone(namedValues=NamedValues(("ascii", -2), ("hex", -1), ("ethernet", 1), ("ieee802", 6)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerHardwareType.setStatus('current') tpDhcpServerStaticBindStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 6), TPRowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerStaticBindStatus.setStatus('current') tpDhcpServerBindingTable = MibTable((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7), ) if mibBuilder.loadTexts: tpDhcpServerBindingTable.setStatus('current') tpDhcpServerBindingEntry = MibTableRow((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1), ).setIndexNames((0, "TPLINK-DHCPSERVER-MIB", "tpDhcpServerBindingIp")) if mibBuilder.loadTexts: tpDhcpServerBindingEntry.setStatus('current') tpDhcpServerBindingIp = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerBindingIp.setStatus('current') tpDhcpServerBindingClientId = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 2), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 200))).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerBindingClientId.setStatus('current') tpDhcpServerBindingMac = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerBindingMac.setStatus('current') tpDhcpServerBindingType = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("automatic", 0), ("manual", 1)))).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerBindingType.setStatus('current') tpDhcpServerBindingRemainTime = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 5), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerBindingRemainTime.setStatus('current') tpDhcpServerBindingStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 6), TPRowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: tpDhcpServerBindingStatus.setStatus('current') tpDhcpServerBindingClear = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("remain", 0), ("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tpDhcpServerBindingClear.setStatus('current') tpDhcpServerStatistics = MibIdentifier((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9)) tpDhcpServerStatisticsBootRequest = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 1), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsBootRequest.setStatus('current') tpDhcpServerStatisticsDiscover = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 2), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsDiscover.setStatus('current') tpDhcpServerStatisticsRequest = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsRequest.setStatus('current') tpDhcpServerStatisticsDecline = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsDecline.setStatus('current') tpDhcpServerStatisticsRelease = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsRelease.setStatus('current') tpDhcpServerStatisticsInform = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsInform.setStatus('current') tpDhcpServerStatisticsBootReply = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsBootReply.setStatus('current') tpDhcpServerStatisticsOffer = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsOffer.setStatus('current') tpDhcpServerStatisticsAck = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsAck.setStatus('current') tpDhcpServerStatisticsNak = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: tpDhcpServerStatisticsNak.setStatus('current') tpDhcpServerStatisticsClear = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("remain", 0), ("clear", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tpDhcpServerStatisticsClear.setStatus('current') tpDhcpServerPingPackets = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tpDhcpServerPingPackets.setStatus('current') tpDhcpServerPingTimeout = MibScalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(100, 10000))).setMaxAccess("readwrite") if mibBuilder.loadTexts: tpDhcpServerPingTimeout.setStatus('current') mibBuilder.exportSymbols("TPLINK-DHCPSERVER-MIB", tplinkDhcpServerMIB=tplinkDhcpServerMIB, tpDhcpServerMacAddr=tpDhcpServerMacAddr, tpDhcpServerAddrPoolNetbiosNodeType=tpDhcpServerAddrPoolNetbiosNodeType, tpDhcpServerAddrPoolBootfile=tpDhcpServerAddrPoolBootfile, tpDhcpServerBindingEntry=tpDhcpServerBindingEntry, tpDhcpServerUnusedIpEntry=tpDhcpServerUnusedIpEntry, tpDhcpServerAddrPoolNetwork=tpDhcpServerAddrPoolNetwork, tpDhcpServerStatisticsDecline=tpDhcpServerStatisticsDecline, tpDhcpServerAddrPoolGateWayF=tpDhcpServerAddrPoolGateWayF, tpDhcpServerAddrPoolNBNServerG=tpDhcpServerAddrPoolNBNServerG, tpDhcpServerAddrPoolDomainName=tpDhcpServerAddrPoolDomainName, tpDhcpServerStaticBindTable=tpDhcpServerStaticBindTable, tpDhcpServerAddrPoolGateWayA=tpDhcpServerAddrPoolGateWayA, tpDhcpServerAddrPoolGateWayB=tpDhcpServerAddrPoolGateWayB, tpDhcpServerAddrPoolStatus=tpDhcpServerAddrPoolStatus, tpDhcpServerAddrPoolEntry=tpDhcpServerAddrPoolEntry, tpDhcpServerUnusedStartIp=tpDhcpServerUnusedStartIp, tpDhcpServerAddrPoolDnsH=tpDhcpServerAddrPoolDnsH, tpDhcpServerAddrPoolSubnetMask=tpDhcpServerAddrPoolSubnetMask, tpDhcpServerAddrPoolNBNServerB=tpDhcpServerAddrPoolNBNServerB, tpDhcpServerAddrPoolGateWayD=tpDhcpServerAddrPoolGateWayD, tpDhcpServerUnusedIpStatus=tpDhcpServerUnusedIpStatus, tpDhcpServerStatisticsOffer=tpDhcpServerStatisticsOffer, tpDhcpServerStaticClientId=tpDhcpServerStaticClientId, tpDhcpServerAddrPoolNextServer=tpDhcpServerAddrPoolNextServer, tpDhcpServerStatisticsBootReply=tpDhcpServerStatisticsBootReply, tpDhcpServerStatisticsDiscover=tpDhcpServerStatisticsDiscover, tpDhcpServerUnusedEndIp=tpDhcpServerUnusedEndIp, tpDhcpServerStaticBindStatus=tpDhcpServerStaticBindStatus, tpDhcpServerAddrPoolDnsD=tpDhcpServerAddrPoolDnsD, tpDhcpServerStatisticsAck=tpDhcpServerStatisticsAck, tpDhcpServerStatisticsBootRequest=tpDhcpServerStatisticsBootRequest, tpDhcpServerBindingIp=tpDhcpServerBindingIp, tplinkDhcpServerMIBObjects=tplinkDhcpServerMIBObjects, tpDhcpServerAddrPoolGateWayH=tpDhcpServerAddrPoolGateWayH, PYSNMP_MODULE_ID=tplinkDhcpServerMIB, tpDhcpServerAddrPoolDnsC=tpDhcpServerAddrPoolDnsC, tpDhcpServerStatistics=tpDhcpServerStatistics, tpDhcpServerBindingMac=tpDhcpServerBindingMac, tplinkDhcpServerNotifications=tplinkDhcpServerNotifications, tpDhcpServerBindingStatus=tpDhcpServerBindingStatus, tpDhcpServerStatisticsNak=tpDhcpServerStatisticsNak, tpDhcpServerAddrPoolNBNServerE=tpDhcpServerAddrPoolNBNServerE, tpDhcpServerBindingType=tpDhcpServerBindingType, tpDhcpServerBindingTable=tpDhcpServerBindingTable, tpDhcpServerAddrPoolDnsA=tpDhcpServerAddrPoolDnsA, tpDhcpServerAddrPoolDnsB=tpDhcpServerAddrPoolDnsB, tpDhcpServerAddrPoolNBNServerC=tpDhcpServerAddrPoolNBNServerC, tpDhcpServerStaticAddrPoolName=tpDhcpServerStaticAddrPoolName, tpDhcpServerBindingClear=tpDhcpServerBindingClear, tpDhcpServerAddrPoolGateWayE=tpDhcpServerAddrPoolGateWayE, tpDhcpServerEnable=tpDhcpServerEnable, tpDhcpServerAddrPoolDnsE=tpDhcpServerAddrPoolDnsE, tpDhcpServerStatisticsInform=tpDhcpServerStatisticsInform, tpDhcpServerPingTimeout=tpDhcpServerPingTimeout, tpDhcpServerAddrPoolGateWayC=tpDhcpServerAddrPoolGateWayC, tpDhcpServerStaticBindEntry=tpDhcpServerStaticBindEntry, tpDhcpServerAddrPoolTable=tpDhcpServerAddrPoolTable, tpDhcpServerAddrPoolNBNServerA=tpDhcpServerAddrPoolNBNServerA, tpDhcpServerAddrPoolName=tpDhcpServerAddrPoolName, tpDhcpServerStatisticsClear=tpDhcpServerStatisticsClear, tpDhcpServerAddrPoolDnsG=tpDhcpServerAddrPoolDnsG, tpDhcpServerBindingClientId=tpDhcpServerBindingClientId, tpDhcpServerBindIpAddr=tpDhcpServerBindIpAddr, tpDhcpServerCapwapAcIp=tpDhcpServerCapwapAcIp, tpDhcpServerUnusedIpTable=tpDhcpServerUnusedIpTable, tpDhcpServerStatisticsRelease=tpDhcpServerStatisticsRelease, tpDhcpServerAddrPoolNBNServerH=tpDhcpServerAddrPoolNBNServerH, tpDhcpServerStatisticsRequest=tpDhcpServerStatisticsRequest, tpDhcpServerAddrPoolDnsF=tpDhcpServerAddrPoolDnsF, tpDhcpServerVendorClassId=tpDhcpServerVendorClassId, tpDhcpServerHardwareType=tpDhcpServerHardwareType, tpDhcpServerAddrPoolNBNServerF=tpDhcpServerAddrPoolNBNServerF, tpDhcpServerAddrPoolRentTime=tpDhcpServerAddrPoolRentTime, tpDhcpServerBindingRemainTime=tpDhcpServerBindingRemainTime, tpDhcpServerPingPackets=tpDhcpServerPingPackets, tpDhcpServerAddrPoolGateWayG=tpDhcpServerAddrPoolGateWayG, tpDhcpServerAddrPoolNBNServerD=tpDhcpServerAddrPoolNBNServerD)
(object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_range_constraint, constraints_intersection, constraints_union, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (iso, module_identity, ip_address, time_ticks, counter32, gauge32, object_identity, bits, counter64, integer32, notification_type, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'ModuleIdentity', 'IpAddress', 'TimeTicks', 'Counter32', 'Gauge32', 'ObjectIdentity', 'Bits', 'Counter64', 'Integer32', 'NotificationType', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') (tplink_mgmt,) = mibBuilder.importSymbols('TPLINK-MIB', 'tplinkMgmt') (tp_row_status,) = mibBuilder.importSymbols('TPLINK-TC-MIB', 'TPRowStatus') tplink_dhcp_server_mib = module_identity((1, 3, 6, 1, 4, 1, 11863, 6, 38)) tplinkDhcpServerMIB.setRevisions(('2012-11-29 00:00',)) if mibBuilder.loadTexts: tplinkDhcpServerMIB.setLastUpdated('201211290000Z') if mibBuilder.loadTexts: tplinkDhcpServerMIB.setOrganization('TP-LINK') tplink_dhcp_server_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1)) tplink_dhcp_server_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 11863, 6, 38, 2)) tp_dhcp_server_enable = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disable', 0), ('enable', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tpDhcpServerEnable.setStatus('current') tp_dhcp_server_vendor_class_id = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tpDhcpServerVendorClassId.setStatus('current') tp_dhcp_server_capwap_ac_ip = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 3), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: tpDhcpServerCapwapAcIp.setStatus('current') tp_dhcp_server_unused_ip_table = mib_table((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4)) if mibBuilder.loadTexts: tpDhcpServerUnusedIpTable.setStatus('current') tp_dhcp_server_unused_ip_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4, 1)).setIndexNames((0, 'TPLINK-DHCPSERVER-MIB', 'tpDhcpServerUnusedStartIp')) if mibBuilder.loadTexts: tpDhcpServerUnusedIpEntry.setStatus('current') tp_dhcp_server_unused_start_ip = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerUnusedStartIp.setStatus('current') tp_dhcp_server_unused_end_ip = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4, 1, 2), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerUnusedEndIp.setStatus('current') tp_dhcp_server_unused_ip_status = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 4, 1, 3), tp_row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerUnusedIpStatus.setStatus('current') tp_dhcp_server_addr_pool_table = mib_table((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5)) if mibBuilder.loadTexts: tpDhcpServerAddrPoolTable.setStatus('current') tp_dhcp_server_addr_pool_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1)).setIndexNames((0, 'TPLINK-DHCPSERVER-MIB', 'tpDhcpServerAddrPoolNetwork')) if mibBuilder.loadTexts: tpDhcpServerAddrPoolEntry.setStatus('current') tp_dhcp_server_addr_pool_name = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolName.setStatus('current') tp_dhcp_server_addr_pool_network = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 2), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNetwork.setStatus('current') tp_dhcp_server_addr_pool_subnet_mask = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 3), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolSubnetMask.setStatus('current') tp_dhcp_server_addr_pool_rent_time = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 4), integer32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolRentTime.setStatus('current') tp_dhcp_server_addr_pool_gate_way_a = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 5), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayA.setStatus('current') tp_dhcp_server_addr_pool_gate_way_b = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 6), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayB.setStatus('current') tp_dhcp_server_addr_pool_gate_way_c = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 7), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayC.setStatus('current') tp_dhcp_server_addr_pool_gate_way_d = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 8), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayD.setStatus('current') tp_dhcp_server_addr_pool_gate_way_e = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 9), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayE.setStatus('current') tp_dhcp_server_addr_pool_gate_way_f = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 10), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayF.setStatus('current') tp_dhcp_server_addr_pool_gate_way_g = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 11), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayG.setStatus('current') tp_dhcp_server_addr_pool_gate_way_h = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 12), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolGateWayH.setStatus('current') tp_dhcp_server_addr_pool_dns_a = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 13), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsA.setStatus('current') tp_dhcp_server_addr_pool_dns_b = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 14), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsB.setStatus('current') tp_dhcp_server_addr_pool_dns_c = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 15), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsC.setStatus('current') tp_dhcp_server_addr_pool_dns_d = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 16), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsD.setStatus('current') tp_dhcp_server_addr_pool_dns_e = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 17), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsE.setStatus('current') tp_dhcp_server_addr_pool_dns_f = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 18), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsF.setStatus('current') tp_dhcp_server_addr_pool_dns_g = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 19), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsG.setStatus('current') tp_dhcp_server_addr_pool_dns_h = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 20), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolDnsH.setStatus('current') tp_dhcp_server_addr_pool_nbn_server_a = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 21), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerA.setStatus('current') tp_dhcp_server_addr_pool_nbn_server_b = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 22), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerB.setStatus('current') tp_dhcp_server_addr_pool_nbn_server_c = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 23), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerC.setStatus('current') tp_dhcp_server_addr_pool_nbn_server_d = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 24), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerD.setStatus('current') tp_dhcp_server_addr_pool_nbn_server_e = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 25), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerE.setStatus('current') tp_dhcp_server_addr_pool_nbn_server_f = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 26), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerF.setStatus('current') tp_dhcp_server_addr_pool_nbn_server_g = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 27), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerG.setStatus('current') tp_dhcp_server_addr_pool_nbn_server_h = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 28), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNBNServerH.setStatus('current') tp_dhcp_server_addr_pool_netbios_node_type = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 29), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 4, 8))).clone(namedValues=named_values(('none', 0), ('broadcast', 1), ('peer-to-peer', 2), ('mixed', 4), ('hybrid', 8)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNetbiosNodeType.setStatus('current') tp_dhcp_server_addr_pool_next_server = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 30), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolNextServer.setStatus('current') tp_dhcp_server_addr_pool_domain_name = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 31), octet_string().subtype(subtypeSpec=value_size_constraint(0, 200))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolDomainName.setStatus('current') tp_dhcp_server_addr_pool_bootfile = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 32), octet_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolBootfile.setStatus('current') tp_dhcp_server_addr_pool_status = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 5, 1, 33), tp_row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerAddrPoolStatus.setStatus('current') tp_dhcp_server_static_bind_table = mib_table((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6)) if mibBuilder.loadTexts: tpDhcpServerStaticBindTable.setStatus('current') tp_dhcp_server_static_bind_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1)).setIndexNames((0, 'TPLINK-DHCPSERVER-MIB', 'tpDhcpServerBindIpAddr')) if mibBuilder.loadTexts: tpDhcpServerStaticBindEntry.setStatus('current') tp_dhcp_server_static_addr_pool_name = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(0, 8))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerStaticAddrPoolName.setStatus('current') tp_dhcp_server_bind_ip_addr = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 2), ip_address()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerBindIpAddr.setStatus('current') tp_dhcp_server_static_client_id = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerStaticClientId.setStatus('current') tp_dhcp_server_mac_addr = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerMacAddr.setStatus('current') tp_dhcp_server_hardware_type = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(-2, -1, 1, 6))).clone(namedValues=named_values(('ascii', -2), ('hex', -1), ('ethernet', 1), ('ieee802', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerHardwareType.setStatus('current') tp_dhcp_server_static_bind_status = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 6, 1, 6), tp_row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerStaticBindStatus.setStatus('current') tp_dhcp_server_binding_table = mib_table((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7)) if mibBuilder.loadTexts: tpDhcpServerBindingTable.setStatus('current') tp_dhcp_server_binding_entry = mib_table_row((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1)).setIndexNames((0, 'TPLINK-DHCPSERVER-MIB', 'tpDhcpServerBindingIp')) if mibBuilder.loadTexts: tpDhcpServerBindingEntry.setStatus('current') tp_dhcp_server_binding_ip = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerBindingIp.setStatus('current') tp_dhcp_server_binding_client_id = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 2), octet_string().subtype(subtypeSpec=value_size_constraint(0, 200))).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerBindingClientId.setStatus('current') tp_dhcp_server_binding_mac = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerBindingMac.setStatus('current') tp_dhcp_server_binding_type = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('automatic', 0), ('manual', 1)))).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerBindingType.setStatus('current') tp_dhcp_server_binding_remain_time = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 5), octet_string().subtype(subtypeSpec=value_size_constraint(0, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerBindingRemainTime.setStatus('current') tp_dhcp_server_binding_status = mib_table_column((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 7, 1, 6), tp_row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: tpDhcpServerBindingStatus.setStatus('current') tp_dhcp_server_binding_clear = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('remain', 0), ('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tpDhcpServerBindingClear.setStatus('current') tp_dhcp_server_statistics = mib_identifier((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9)) tp_dhcp_server_statistics_boot_request = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 1), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsBootRequest.setStatus('current') tp_dhcp_server_statistics_discover = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 2), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsDiscover.setStatus('current') tp_dhcp_server_statistics_request = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsRequest.setStatus('current') tp_dhcp_server_statistics_decline = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsDecline.setStatus('current') tp_dhcp_server_statistics_release = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsRelease.setStatus('current') tp_dhcp_server_statistics_inform = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsInform.setStatus('current') tp_dhcp_server_statistics_boot_reply = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsBootReply.setStatus('current') tp_dhcp_server_statistics_offer = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsOffer.setStatus('current') tp_dhcp_server_statistics_ack = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsAck.setStatus('current') tp_dhcp_server_statistics_nak = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: tpDhcpServerStatisticsNak.setStatus('current') tp_dhcp_server_statistics_clear = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 9, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('remain', 0), ('clear', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tpDhcpServerStatisticsClear.setStatus('current') tp_dhcp_server_ping_packets = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 10))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tpDhcpServerPingPackets.setStatus('current') tp_dhcp_server_ping_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 11863, 6, 38, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(100, 10000))).setMaxAccess('readwrite') if mibBuilder.loadTexts: tpDhcpServerPingTimeout.setStatus('current') mibBuilder.exportSymbols('TPLINK-DHCPSERVER-MIB', tplinkDhcpServerMIB=tplinkDhcpServerMIB, tpDhcpServerMacAddr=tpDhcpServerMacAddr, tpDhcpServerAddrPoolNetbiosNodeType=tpDhcpServerAddrPoolNetbiosNodeType, tpDhcpServerAddrPoolBootfile=tpDhcpServerAddrPoolBootfile, tpDhcpServerBindingEntry=tpDhcpServerBindingEntry, tpDhcpServerUnusedIpEntry=tpDhcpServerUnusedIpEntry, tpDhcpServerAddrPoolNetwork=tpDhcpServerAddrPoolNetwork, tpDhcpServerStatisticsDecline=tpDhcpServerStatisticsDecline, tpDhcpServerAddrPoolGateWayF=tpDhcpServerAddrPoolGateWayF, tpDhcpServerAddrPoolNBNServerG=tpDhcpServerAddrPoolNBNServerG, tpDhcpServerAddrPoolDomainName=tpDhcpServerAddrPoolDomainName, tpDhcpServerStaticBindTable=tpDhcpServerStaticBindTable, tpDhcpServerAddrPoolGateWayA=tpDhcpServerAddrPoolGateWayA, tpDhcpServerAddrPoolGateWayB=tpDhcpServerAddrPoolGateWayB, tpDhcpServerAddrPoolStatus=tpDhcpServerAddrPoolStatus, tpDhcpServerAddrPoolEntry=tpDhcpServerAddrPoolEntry, tpDhcpServerUnusedStartIp=tpDhcpServerUnusedStartIp, tpDhcpServerAddrPoolDnsH=tpDhcpServerAddrPoolDnsH, tpDhcpServerAddrPoolSubnetMask=tpDhcpServerAddrPoolSubnetMask, tpDhcpServerAddrPoolNBNServerB=tpDhcpServerAddrPoolNBNServerB, tpDhcpServerAddrPoolGateWayD=tpDhcpServerAddrPoolGateWayD, tpDhcpServerUnusedIpStatus=tpDhcpServerUnusedIpStatus, tpDhcpServerStatisticsOffer=tpDhcpServerStatisticsOffer, tpDhcpServerStaticClientId=tpDhcpServerStaticClientId, tpDhcpServerAddrPoolNextServer=tpDhcpServerAddrPoolNextServer, tpDhcpServerStatisticsBootReply=tpDhcpServerStatisticsBootReply, tpDhcpServerStatisticsDiscover=tpDhcpServerStatisticsDiscover, tpDhcpServerUnusedEndIp=tpDhcpServerUnusedEndIp, tpDhcpServerStaticBindStatus=tpDhcpServerStaticBindStatus, tpDhcpServerAddrPoolDnsD=tpDhcpServerAddrPoolDnsD, tpDhcpServerStatisticsAck=tpDhcpServerStatisticsAck, tpDhcpServerStatisticsBootRequest=tpDhcpServerStatisticsBootRequest, tpDhcpServerBindingIp=tpDhcpServerBindingIp, tplinkDhcpServerMIBObjects=tplinkDhcpServerMIBObjects, tpDhcpServerAddrPoolGateWayH=tpDhcpServerAddrPoolGateWayH, PYSNMP_MODULE_ID=tplinkDhcpServerMIB, tpDhcpServerAddrPoolDnsC=tpDhcpServerAddrPoolDnsC, tpDhcpServerStatistics=tpDhcpServerStatistics, tpDhcpServerBindingMac=tpDhcpServerBindingMac, tplinkDhcpServerNotifications=tplinkDhcpServerNotifications, tpDhcpServerBindingStatus=tpDhcpServerBindingStatus, tpDhcpServerStatisticsNak=tpDhcpServerStatisticsNak, tpDhcpServerAddrPoolNBNServerE=tpDhcpServerAddrPoolNBNServerE, tpDhcpServerBindingType=tpDhcpServerBindingType, tpDhcpServerBindingTable=tpDhcpServerBindingTable, tpDhcpServerAddrPoolDnsA=tpDhcpServerAddrPoolDnsA, tpDhcpServerAddrPoolDnsB=tpDhcpServerAddrPoolDnsB, tpDhcpServerAddrPoolNBNServerC=tpDhcpServerAddrPoolNBNServerC, tpDhcpServerStaticAddrPoolName=tpDhcpServerStaticAddrPoolName, tpDhcpServerBindingClear=tpDhcpServerBindingClear, tpDhcpServerAddrPoolGateWayE=tpDhcpServerAddrPoolGateWayE, tpDhcpServerEnable=tpDhcpServerEnable, tpDhcpServerAddrPoolDnsE=tpDhcpServerAddrPoolDnsE, tpDhcpServerStatisticsInform=tpDhcpServerStatisticsInform, tpDhcpServerPingTimeout=tpDhcpServerPingTimeout, tpDhcpServerAddrPoolGateWayC=tpDhcpServerAddrPoolGateWayC, tpDhcpServerStaticBindEntry=tpDhcpServerStaticBindEntry, tpDhcpServerAddrPoolTable=tpDhcpServerAddrPoolTable, tpDhcpServerAddrPoolNBNServerA=tpDhcpServerAddrPoolNBNServerA, tpDhcpServerAddrPoolName=tpDhcpServerAddrPoolName, tpDhcpServerStatisticsClear=tpDhcpServerStatisticsClear, tpDhcpServerAddrPoolDnsG=tpDhcpServerAddrPoolDnsG, tpDhcpServerBindingClientId=tpDhcpServerBindingClientId, tpDhcpServerBindIpAddr=tpDhcpServerBindIpAddr, tpDhcpServerCapwapAcIp=tpDhcpServerCapwapAcIp, tpDhcpServerUnusedIpTable=tpDhcpServerUnusedIpTable, tpDhcpServerStatisticsRelease=tpDhcpServerStatisticsRelease, tpDhcpServerAddrPoolNBNServerH=tpDhcpServerAddrPoolNBNServerH, tpDhcpServerStatisticsRequest=tpDhcpServerStatisticsRequest, tpDhcpServerAddrPoolDnsF=tpDhcpServerAddrPoolDnsF, tpDhcpServerVendorClassId=tpDhcpServerVendorClassId, tpDhcpServerHardwareType=tpDhcpServerHardwareType, tpDhcpServerAddrPoolNBNServerF=tpDhcpServerAddrPoolNBNServerF, tpDhcpServerAddrPoolRentTime=tpDhcpServerAddrPoolRentTime, tpDhcpServerBindingRemainTime=tpDhcpServerBindingRemainTime, tpDhcpServerPingPackets=tpDhcpServerPingPackets, tpDhcpServerAddrPoolGateWayG=tpDhcpServerAddrPoolGateWayG, tpDhcpServerAddrPoolNBNServerD=tpDhcpServerAddrPoolNBNServerD)
print('first') print('second') if True: x = 1 y = 2 print('hi')
print('first') print('second') if True: x = 1 y = 2 print('hi')
''' sekarang kita menghitung bunganya! ooh ya, apakah anda tahu bahwa kita bisa merantai perhitungan seperti ini jawaban = 2000 * /100 kita buat hal serupa di sini ''' ''' ciptakan variabel suku_bunga dan berikan nilai antara 5 hingga 30 -ciptakan juga varibel jumlah_bunga yang merupakan hasil perkalian sisa_cicilan dan suku_bunga dan di bagi 100 kenapa dibagi 100? >>>karena suku bunga satuannya adalah persen ''' harga_laptop = 5000000 uang_muka = 1000000 sisa_cicilan = harga_laptop - uang_muka suku_bunga = 20 jumlah_bunga = sisa_cicilan * suku_bunga /100 print(jumlah_bunga)
""" sekarang kita menghitung bunganya! ooh ya, apakah anda tahu bahwa kita bisa merantai perhitungan seperti ini jawaban = 2000 * /100 kita buat hal serupa di sini """ '\nciptakan variabel suku_bunga dan berikan nilai\nantara 5 hingga 30\n-ciptakan juga varibel jumlah_bunga yang merupakan\nhasil perkalian sisa_cicilan dan suku_bunga \ndan di bagi 100\nkenapa dibagi 100?\n>>>karena suku bunga satuannya adalah persen\n' harga_laptop = 5000000 uang_muka = 1000000 sisa_cicilan = harga_laptop - uang_muka suku_bunga = 20 jumlah_bunga = sisa_cicilan * suku_bunga / 100 print(jumlah_bunga)
# Title : Insert new element before each element # Author : Kiran raj R. # Date : 23:10:2020 def insert_b4(list_in, str_elem): out = [elem for list_elem in list_in for elem in (str_elem, list_elem)] print(f"After inserting element: {out}") def insert_after(list_in, str_elem): out = [elem for list_elem in list_in for elem in (list_elem, str_elem)] print(f"After inserting element: {out}") insert_b4([1, 2, 3, 4, 5], "$") insert_after([1, 2, 3, 4, 5], "#")
def insert_b4(list_in, str_elem): out = [elem for list_elem in list_in for elem in (str_elem, list_elem)] print(f'After inserting element: {out}') def insert_after(list_in, str_elem): out = [elem for list_elem in list_in for elem in (list_elem, str_elem)] print(f'After inserting element: {out}') insert_b4([1, 2, 3, 4, 5], '$') insert_after([1, 2, 3, 4, 5], '#')
NOP = 0 RD = 1 WR = 2 class mmiodev(object): def __init__(self): self.regmap = {} self.regidx = {} def addReg(self, name, addr, length, readonly=0, default=0): # make sure it doesn't overlap with anything. for (a0,a1) in self.regmap: assert addr < a0 or addr >= a1 assert name not in self.regidx self.regmap[(addr, addr+length)] = (name, length, readonly, [default]*length) self.regidx[name] = (addr, addr+length) def read(self, addr): assert addr >= 0 and addr <= 65536 for (a0, a1) in self.regmap: if addr >= a0 and addr < a1: (name, length, readonly, data) = self.regmap[(a0, a1)] offset = addr-a0 return True, data[offset] return False, 0 def write(self, addr, byte): assert addr >= 0 and addr <= 65536 for (a0, a1) in self.regmap: if addr >= a0 and addr < a1: (name, length, readonly, data) = self.regmap[(a0, a1)] if not readonly: offset = addr-a0 data[offset] = byte def getRegB(self, name): (a0, a1) = self.regidx[name] (name, length, readonly, data) = self.regmap[(a0, a1)] return data def getRegI(self, name): (a0, a1) = self.regidx[name] (name, length, readonly, data) = self.regmap[(a0, a1)] m, v = 1, 0 for i in xrange(length): v = v + m * data[i] m = m * 0x100 return v def setRegI(self, name, datain): (a0, a1) = self.regidx[name] (name, length, readonly, data) = self.regmap[(a0, a1)] data = [] for i in xrange(length): data.append(datain & 0xFF) datain = datain >> 8 self.regmap[(a0, a1)] = (name, length, readonly, data) def setRegB(self, name, datain): (a0, a1) = self.regidx[name] (name, length, readonly, data) = self.regmap[(a0, a1)] assert len(datain) == length self.regmap[(a0, a1)] = (name, length, readonly, datain)
nop = 0 rd = 1 wr = 2 class Mmiodev(object): def __init__(self): self.regmap = {} self.regidx = {} def add_reg(self, name, addr, length, readonly=0, default=0): for (a0, a1) in self.regmap: assert addr < a0 or addr >= a1 assert name not in self.regidx self.regmap[addr, addr + length] = (name, length, readonly, [default] * length) self.regidx[name] = (addr, addr + length) def read(self, addr): assert addr >= 0 and addr <= 65536 for (a0, a1) in self.regmap: if addr >= a0 and addr < a1: (name, length, readonly, data) = self.regmap[a0, a1] offset = addr - a0 return (True, data[offset]) return (False, 0) def write(self, addr, byte): assert addr >= 0 and addr <= 65536 for (a0, a1) in self.regmap: if addr >= a0 and addr < a1: (name, length, readonly, data) = self.regmap[a0, a1] if not readonly: offset = addr - a0 data[offset] = byte def get_reg_b(self, name): (a0, a1) = self.regidx[name] (name, length, readonly, data) = self.regmap[a0, a1] return data def get_reg_i(self, name): (a0, a1) = self.regidx[name] (name, length, readonly, data) = self.regmap[a0, a1] (m, v) = (1, 0) for i in xrange(length): v = v + m * data[i] m = m * 256 return v def set_reg_i(self, name, datain): (a0, a1) = self.regidx[name] (name, length, readonly, data) = self.regmap[a0, a1] data = [] for i in xrange(length): data.append(datain & 255) datain = datain >> 8 self.regmap[a0, a1] = (name, length, readonly, data) def set_reg_b(self, name, datain): (a0, a1) = self.regidx[name] (name, length, readonly, data) = self.regmap[a0, a1] assert len(datain) == length self.regmap[a0, a1] = (name, length, readonly, datain)
def of(n, acc1=0, acc2=1): if n < 0: raise ValueError if n == 0: return 0 elif n <= 1: return acc2 else: return of(n - 1, acc2, acc1 + acc2)
def of(n, acc1=0, acc2=1): if n < 0: raise ValueError if n == 0: return 0 elif n <= 1: return acc2 else: return of(n - 1, acc2, acc1 + acc2)
#!/usr/bin/python3 # Create a file and call it lyrics.txt (it does not need to have any content) # Create a new file and call it songs.docx and in this file write 3 lines # of text to it. # Open and read the content and write it to your terminal # window. * you should use the read(), readline(), and readlines() # methods for this. (so 3 times the same output). # from typing import TextIO songs_dox = "../files/songs.docx" def separator(text): print(f"\n#----- Reading from songs.docx with {text} -----#\n") lyricsFile = open("../files/lyrics.txt", "w+") print("lyrics.txt has been created in folder files,", "any previous data has been deleted") lyricsFile.close() songsFile = open(songs_dox, "w+") songsFile.write("This is the first line of the file.\n") songsFile.write("And this is the second line of the file.\n") songsFile.write("Ths is the third and final line of the file,", "I hope you enjoyed your stay.\n") print("songs.docx has been created and overwritten") songsFile.close() # read() separator("read()") songsFile = open(songs_dox, "r") if songsFile.mode == "r": text = songsFile.read() print(text) songsFile.close() # readline() separator("readline()") songsFile = open(songs_dox, "r") if songsFile.mode == "r": text = songsFile.readline() while text: # printline adds a \n char so i want to remove my old one print(text.replace("\n", "")) text = songsFile.readline() songsFile.close() # readlines() separator("readlines()") songsFile = open(songs_dox, "r") if songsFile.mode == "r": text = songsFile.readlines() for x in text: x = x.replace("\n", "") print(x) songsFile.close()
songs_dox = '../files/songs.docx' def separator(text): print(f'\n#----- Reading from songs.docx with {text} -----#\n') lyrics_file = open('../files/lyrics.txt', 'w+') print('lyrics.txt has been created in folder files,', 'any previous data has been deleted') lyricsFile.close() songs_file = open(songs_dox, 'w+') songsFile.write('This is the first line of the file.\n') songsFile.write('And this is the second line of the file.\n') songsFile.write('Ths is the third and final line of the file,', 'I hope you enjoyed your stay.\n') print('songs.docx has been created and overwritten') songsFile.close() separator('read()') songs_file = open(songs_dox, 'r') if songsFile.mode == 'r': text = songsFile.read() print(text) songsFile.close() separator('readline()') songs_file = open(songs_dox, 'r') if songsFile.mode == 'r': text = songsFile.readline() while text: print(text.replace('\n', '')) text = songsFile.readline() songsFile.close() separator('readlines()') songs_file = open(songs_dox, 'r') if songsFile.mode == 'r': text = songsFile.readlines() for x in text: x = x.replace('\n', '') print(x) songsFile.close()
class Star: def __init__(self): self.x = random(-width/2, width/2) self.y = random(-height/2, height/2) self.z = random(width/2) self.pz = self.z def update(self, speed): self.z = self.z - speed if self.z < 1: self.z = width/2 self.x = random(-width/2, width/2) self.y = random(-height/2, height/2) self.pz = self.z def show(self): fill(255) noStroke() sx = map(self.x / self.z, 0, 1, 0, width/2) sy = map(self.y / self.z, 0, 1, 0, height/2) r = map(self.z, 0, width/2, 16, 0) ellipse(sx, sy, r, r) px = map(self.x / self.pz, 0, 1, 0, width/2) py = map(self.y / self.pz, 0, 1, 0, height/2) self.pz = self.z stroke(255) line(px, py, sx, sy)
class Star: def __init__(self): self.x = random(-width / 2, width / 2) self.y = random(-height / 2, height / 2) self.z = random(width / 2) self.pz = self.z def update(self, speed): self.z = self.z - speed if self.z < 1: self.z = width / 2 self.x = random(-width / 2, width / 2) self.y = random(-height / 2, height / 2) self.pz = self.z def show(self): fill(255) no_stroke() sx = map(self.x / self.z, 0, 1, 0, width / 2) sy = map(self.y / self.z, 0, 1, 0, height / 2) r = map(self.z, 0, width / 2, 16, 0) ellipse(sx, sy, r, r) px = map(self.x / self.pz, 0, 1, 0, width / 2) py = map(self.y / self.pz, 0, 1, 0, height / 2) self.pz = self.z stroke(255) line(px, py, sx, sy)
DATABASE_AUTO_CREATE_INDEX = True DATABASES = { 'default': { 'db': 'billing', 'host': 'localhost', 'port': 27017, 'username': '', 'password': '' } } CACHES = { 'default': {}, 'local': { 'backend': 'spaceone.core.cache.local_cache.LocalCache', 'max_size': 128, 'ttl': 300 } } HANDLERS = { } CONNECTORS = { 'BillingPluginConnector': { }, 'SpaceConnector': { 'backend': 'spaceone.core.connector.space_connector.SpaceConnector', 'endpoints': { 'identity': 'grpc://identity:50051', 'plugin': 'grpc://plugin:50051', 'repository': 'grpc://repository:50051', 'secret': 'grpc://secret:50051', 'config': 'grpc://config:50051', } }, } INSTALLED_DATA_SOURCE_PLUGINS = [ # { # 'name': '', # 'plugin_info': { # 'plugin_id': '', # 'version': '', # 'options': {}, # 'secret_data': {}, # 'schema': '', # 'upgrade_mode': '' # }, # 'tags':{ # 'description': '' # } # } ]
database_auto_create_index = True databases = {'default': {'db': 'billing', 'host': 'localhost', 'port': 27017, 'username': '', 'password': ''}} caches = {'default': {}, 'local': {'backend': 'spaceone.core.cache.local_cache.LocalCache', 'max_size': 128, 'ttl': 300}} handlers = {} connectors = {'BillingPluginConnector': {}, 'SpaceConnector': {'backend': 'spaceone.core.connector.space_connector.SpaceConnector', 'endpoints': {'identity': 'grpc://identity:50051', 'plugin': 'grpc://plugin:50051', 'repository': 'grpc://repository:50051', 'secret': 'grpc://secret:50051', 'config': 'grpc://config:50051'}}} installed_data_source_plugins = []
# We're trying to find the sum of the even fibonacci numbers # from 1 to `max_num` class Solution: # We're going to do fibonacci iteratively def solution(self, max_num: int) -> int: # `minus1` and `minus2` keep track of the last two values # starting with 0 and 1, `num` keeps track of the current # value, and `sum` is a running sum of `num`'s even values. # minus1, minus2 = 1, 0 num = 0 sum = 0 while num < max_num: num = minus1 + minus2 minus2 = minus1 minus1 = num # We only care to sum even values of `num` if num % 2 == 0: sum += num return sum
class Solution: def solution(self, max_num: int) -> int: (minus1, minus2) = (1, 0) num = 0 sum = 0 while num < max_num: num = minus1 + minus2 minus2 = minus1 minus1 = num if num % 2 == 0: sum += num return sum
class Solution: def maxDistance(self, position: List[int], m: int) -> int: position=sorted(position) dis=position[-1]-position[0] if m==2: return position[-1]-position[0] low=1 high=dis def validInterval(interval): n=m-1 i=0 while n>0: j=i while j<len(position)-1 and position[j]-position[i]<interval: j+=1 if position[j]-position[i]<interval: return False i=j n-=1 return True while low!=high: mid=(high+low)//2 if mid==low: mid+=1 if validInterval(mid): low=mid else: high=mid-1 return high
class Solution: def max_distance(self, position: List[int], m: int) -> int: position = sorted(position) dis = position[-1] - position[0] if m == 2: return position[-1] - position[0] low = 1 high = dis def valid_interval(interval): n = m - 1 i = 0 while n > 0: j = i while j < len(position) - 1 and position[j] - position[i] < interval: j += 1 if position[j] - position[i] < interval: return False i = j n -= 1 return True while low != high: mid = (high + low) // 2 if mid == low: mid += 1 if valid_interval(mid): low = mid else: high = mid - 1 return high
project = 'django-sms' copyright = '2021, Roald Nefs' author = 'Roald Nefs' release = '0.4.0' extensions = ['m2r2'] templates_path = ['_templates'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] source_suffix = ['.rst', '.md'] html_theme = 'alabaster' html_theme_options = { "description": "A Django app for sending SMS with interchangeable backends.", "show_powered_by": False, "github_user": "roaldnefs", "github_repo": "django-sms", "github_button": True, "github_banner": True, "show_related": False, } html_static_path = ['_static']
project = 'django-sms' copyright = '2021, Roald Nefs' author = 'Roald Nefs' release = '0.4.0' extensions = ['m2r2'] templates_path = ['_templates'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] source_suffix = ['.rst', '.md'] html_theme = 'alabaster' html_theme_options = {'description': 'A Django app for sending SMS with interchangeable backends.', 'show_powered_by': False, 'github_user': 'roaldnefs', 'github_repo': 'django-sms', 'github_button': True, 'github_banner': True, 'show_related': False} html_static_path = ['_static']
def main(): f = [int(i) for i in [line.rstrip("\n") for line in open("Data.txt")][0].split(",")] f[1] = 12 f[2] = 2 i = 0 while True: if f[i] == 99: break elif f[i] == 1: f[f[i + 3]] = f[f[i + 1]] + f[f[i + 2]] elif f[i] == 2: f[f[i + 3]] = f[f[i + 1]]*f[f[i + 2]] else: print("Something went wrong") i += 4 print(f[0]) if __name__ == "__main__": main()
def main(): f = [int(i) for i in [line.rstrip('\n') for line in open('Data.txt')][0].split(',')] f[1] = 12 f[2] = 2 i = 0 while True: if f[i] == 99: break elif f[i] == 1: f[f[i + 3]] = f[f[i + 1]] + f[f[i + 2]] elif f[i] == 2: f[f[i + 3]] = f[f[i + 1]] * f[f[i + 2]] else: print('Something went wrong') i += 4 print(f[0]) if __name__ == '__main__': main()
def register(mf): mf.register_event("main", lambda: print("tests"), unique=False) register_parents = False
def register(mf): mf.register_event('main', lambda : print('tests'), unique=False) register_parents = False
# https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def buildTree(self, inorder: List[int], postorder: List[int]) -> TreeNode: map_inorder = {} for i, val in enumerate(inorder): map_inorder[val] = i def recur(low, high): if low > high: return None x = TreeNode(postorder.pop()) mid = map_inorder[x.val] x.right = recur(mid+1, high) x.left = recur(low, mid-1) return x return recur(0, len(inorder)-1)
class Solution: def build_tree(self, inorder: List[int], postorder: List[int]) -> TreeNode: map_inorder = {} for (i, val) in enumerate(inorder): map_inorder[val] = i def recur(low, high): if low > high: return None x = tree_node(postorder.pop()) mid = map_inorder[x.val] x.right = recur(mid + 1, high) x.left = recur(low, mid - 1) return x return recur(0, len(inorder) - 1)
# compose tree to describe object dictionary # assume all instrument readings are four-byte floats theTree = { 0x1000: { 0x00: {0x40: 0, 'size': 4} }, 0x6001: { 0x00: {0x40: 5}, 0x01: {0x40: 'INST:SEL CH1;:SOUR:VOLT?', 0x23: 'INST:SEL CH1;:SOUR:VOLT'}, 0x02: {0x40: 'INST:SEL CH1;:SOUR:CURR?', 0x23: 'INST:SEL CH1;:SOUR:CURR'}, 0x03: {0x40: 'FETCH:VOLT? CH1'}, 0x04: {0x40: 'FETCH:CURR? CH1'}, 0x05: {0x40: 'FETCH:POW? CH1'} }, 0x6002: { 0x00: {0x40: 5}, 0x01: {0x40: 'INST:SEL CH2;:SOUR:VOLT?', 0x23: 'INST:SEL CH2;:SOUR:VOLT'}, 0x02: {0x40: 'INST:SEL CH2;:SOUR:CURR?', 0x23: 'INST:SEL CH2;:SOUR:CURR'}, 0x03: {0x40: 'FETCH:VOLT? CH2'}, 0x04: {0x40: 'FETCH:CURR? CH2'}, 0x05: {0x40: 'FETCH:POW? CH2'} }, 0x6003: { 0x00: {0x40: 5}, 0x01: {0x40: 'INST:SEL CH3;:SOUR:VOLT?', 0x23: 'INST:SEL CH3;:SOUR:VOLT'}, 0x02: {0x40: 'INST:SEL CH3;:SOUR:CURR?', 0x23: 'INST:SEL CH3;:SOUR:CURR'}, 0x03: {0x40: 'FETCH:VOLT? CH3'}, 0x04: {0x40: 'FETCH:CURR? CH3'}, 0x05: {0x40: 'FETCH:POW? CH3'} } }
the_tree = {4096: {0: {64: 0, 'size': 4}}, 24577: {0: {64: 5}, 1: {64: 'INST:SEL CH1;:SOUR:VOLT?', 35: 'INST:SEL CH1;:SOUR:VOLT'}, 2: {64: 'INST:SEL CH1;:SOUR:CURR?', 35: 'INST:SEL CH1;:SOUR:CURR'}, 3: {64: 'FETCH:VOLT? CH1'}, 4: {64: 'FETCH:CURR? CH1'}, 5: {64: 'FETCH:POW? CH1'}}, 24578: {0: {64: 5}, 1: {64: 'INST:SEL CH2;:SOUR:VOLT?', 35: 'INST:SEL CH2;:SOUR:VOLT'}, 2: {64: 'INST:SEL CH2;:SOUR:CURR?', 35: 'INST:SEL CH2;:SOUR:CURR'}, 3: {64: 'FETCH:VOLT? CH2'}, 4: {64: 'FETCH:CURR? CH2'}, 5: {64: 'FETCH:POW? CH2'}}, 24579: {0: {64: 5}, 1: {64: 'INST:SEL CH3;:SOUR:VOLT?', 35: 'INST:SEL CH3;:SOUR:VOLT'}, 2: {64: 'INST:SEL CH3;:SOUR:CURR?', 35: 'INST:SEL CH3;:SOUR:CURR'}, 3: {64: 'FETCH:VOLT? CH3'}, 4: {64: 'FETCH:CURR? CH3'}, 5: {64: 'FETCH:POW? CH3'}}}
api_key = "" api_secret = "" access_token_key = "" access_token_secret = ""
api_key = '' api_secret = '' access_token_key = '' access_token_secret = ''
USERS = {} def update_user(user): if user not in USERS: USERS[user] = 0 USERS[user] += 1 return {'name': user, 'access': USERS[user]}
users = {} def update_user(user): if user not in USERS: USERS[user] = 0 USERS[user] += 1 return {'name': user, 'access': USERS[user]}
N, A, B = map(int, input().split()) if B >= A*N: print(A*N) else: print(B)
(n, a, b) = map(int, input().split()) if B >= A * N: print(A * N) else: print(B)
class Network: def __init__(self): self.layer_list = [] self.num_layer = 0 def add(self, layer): self.num_layer = self.num_layer + 1 self.layer_list.append(layer) def forward(self, x): for i in range(self.num_layer): x = self.layer_list[i].forward(x) return x def backward(self, delta): for i in reversed(range(self.num_layer)): delta = self.layer_list[i].backward(delta)
class Network: def __init__(self): self.layer_list = [] self.num_layer = 0 def add(self, layer): self.num_layer = self.num_layer + 1 self.layer_list.append(layer) def forward(self, x): for i in range(self.num_layer): x = self.layer_list[i].forward(x) return x def backward(self, delta): for i in reversed(range(self.num_layer)): delta = self.layer_list[i].backward(delta)